Lua Snippets |
0 | ||
Epicshawty a dit : For "mort"...it's !2? and creat « ! » for /np and mort, please. admins = {Tinittee} Shaman, script for "page" in Popup. |
![]() ![]() « Consul » 1380488520000
| 0 | ||
It's not a popup, it's using text areas actually. a dit : Here's that 2 page help you all wanted. |
0 | ||
Shamousey a dit : I do not get Edit: I want to make with vamp and fly |
0 | ||
Shaman, +2 pages, please. |
![]() ![]() « Consul » 1380489840000
| 0 | ||
Tinittee a dit : Just take an element out of the translations.help table then. There's 3 in that example, so it'll be 3 pages long. |
0 | ||
Thank you, Shaman. |
![]() « Citoyen » 1380494040000
| 0 | ||
Thank you,shaman. |
![]() ![]() « Citoyen » 1380498120000
| 0 | ||
a dit : Why doesn’t dfly work? :\ |
![]() ![]() « Consul » 1380499800000
| 0 | ||
Because you're binding the keys with tfm.exec.bindKeyboard(sender,32,true,true) and unbinding them with tfm.exec.bindKeyboard(sender,32,false,false) There are two booleans here, the first one binds when a player lets go of a key. When you bind false,false, you're actually unbinding that, so key binding is still set for when a player actually presses the key. Try true,false for unbinding. |
![]() ![]() « Citoyen » 1380503280000
| 0 | ||
Shamousey a dit : Thank you, it worked. ^_^ |
![]() ![]() « Citoyen » 1380507000000
| 0 | ||
I'm just going to leave some stuff here, you may find some scrips interesting or useful: ![]() Object Spawner: Spawns a structure made of objects, with the dimentions specified using chat commands. For instance: "!small box 8x5" will spawn an 8 boxes wide and 5 boxes high building. ![]() Disco names: Names changing colors continuously. !kill command: Simple kill command that will work regardless of Caps ![]() Heart with a click: I took the 'heart code' that has been circulating lately, made it smaller and made it spawn everytime someone clicks, in the place they clicked. btw Thank you guys for all the little and great scripts and tools some of you have been sharing :) They've proven more useful to me than the Lua documentation or anything. |
![]() ![]() « Citoyen » 1380514020000
| 0 | ||
Any reason why this isn't playing a P1 map when I type !new? a dit : None of the P categories work, but vanilla maps and @codes work fine. |
![]() ![]() « Consul » 1380528720000
| 0 | ||
Hakureimouse a dit : Great work! Jtojto a dit : Tribe houses were never meant to load specific perms like that (just like /np reloads the tribe house instead of loading a random map). Hopefully Tig will fix it some time soon. |
![]() ![]() « Citoyen » 1380531180000
| 0 | ||
I need help with this function eventLoop() tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) end function eventLoop() tfm.exec.addShamanObject(tfm.enum.shamanObject.anvil, math.random()*800, 30) end function eventLoop() tfm.exec.addShamanObject(tfm.enum.shamanObject.bomb, math.random()*800, 30) end function eventLoop() tfm.exec.addShamanObject(tfm.enum.shamanObject.littlebox, math.random()*800, 30) end function eventLoop() tfm.exec.addShamanObject(tfm.enum.shamanObject.box, math.random()*800, 30) end -- Can someone help ? It keeps spawning boxes when I'd like it to spawn other objects |
![]() ![]() « Consul » 1380531300000
| 0 | ||
You keep redefining the eventLoop function so that it only ever uses the last one. Put all of the contents you want inside a single one. |
![]() ![]() « Citoyen » 1380531420000
| 0 | ||
Shamousey a dit : oh ok ty sham -- tfm.exec.addShamanObject(tfm.enum.shamanObject.littlebox, tfm.enum.shamanObject.anvil, tfm.enum.shamanObject.bomb, math.random()*800, 30) I think I'm doing this wrong |
0 | ||
Bengalstar a dit : * The function "tfm.exec.addShamanObject()" can only spawn one object not multiple. This is how you do it: a dit : * littlebox should be littleBox. * anvil should be Anvil. * bomb should be Bomb. |
![]() ![]() « Citoyen » 1380532560000
| 0 | ||
Jordynl a dit : ty that makes more sense [•] Runtime Error : transformice.lua:36: attempt to index ? (a nil value) I'm confused |
0 | ||
Ehm. I was wrong. Sorry a dit : bomb and anvil were good. -_- littlebox => littleBox |
![]() ![]() « Citoyen » 1380532980000
| 0 | ||
Jordynl a dit : oh ok thanks ^^ |