Lua Snippets |
0 | ||
a dit : useful in scrolling maps, only horizontal use popUp(int ID, int TYPE, string text) other params are optional EDIT: kinda useless with the new commands |
![]() 1383234780000
| | ||
[Modéré par Katburger, raison : Spam] |
![]() ![]() « Citoyen » 1383491400000
| 0 | ||
Makinit a dit : Added this. *-* |
![]() ![]() « Citoyen » 1383999360000
| 0 | ||
how to use function eventChatCommand(name, cmd) local cmd_args = {} for arg in cmd:gmatch("[^%s]+") do -- splits the command by spaces. table.insert(cmd_args, arg) -- inserts them into the table end if cmd_args[1] == "color" then -- checks if the first word in the table is color tfm.exec.setNameColor(cmd_args[2], tonumber("0x"..cmd_args[3])) -- uses the second argument as a name, and the third as a hex code. end end |
![]() ![]() « Citoyen » 1384005720000
| 0 | ||
a dit : This is like whisper. Who ever runs the script will recieve a message from a certain player. Only the person who ran it can see the message unfortuantely. You can change the colour of [..name..] |
![]() ![]() « Citoyen » 1384009980000
| 0 | ||
Secretuuuuul a dit : When you do a command the first argument would always be the command (!color) The second argument would be anything you put after the command with a space. (!color Jaackster) The third argument would be anything you put after the second argument with a space. (!color Jaackster FF0000) |
![]() « Citoyen » 1384632540000
| 0 | ||
thanks |
![]() ![]() « Censeur » 1385768040000
| 0 | ||
Lua script for drawing, with !setcolor, !clear and !brush commands. a dit : |
![]() ![]() « Citoyen » 1385858280000
| 0 | ||
Safwanrockz a dit : [Thecatbot] !brush [•] Runtime Error : transformice.lua:20: attempt to compare __le on nil and number ;n; |
![]() ![]() « Censeur » 1385901780000
| 0 | ||
Thecatbot a dit : There should be an integer following the command "!brush" (i.e !brush 5). Same goes with the "!setcolor" command. |
![]() ![]() « Consul » 1385936100000
| 0 | ||
A lot of people end up asking for their maps to be P32ed so they can test dual shamans. You can use a script like this one to give any loaded map two shamans. a dit : |
![]() ![]() « Citoyen » 1385940720000
| 0 | ||
Shamousey a dit : Not quite useful until Tig fixes the bugs with setting shamans with lua. Im supprised he didnt even do anything when he was "fixing" the skills. |
![]() ![]() « Citoyen » 1386092400000
| 0 | ||
Jaackster a dit : It was made for no skills so mice won't full the room with millions of balls or 50 ballons at once . Also, I made a script that makes you set an object at a x-y at 45° away of 0-0 cordinates That mean , if u whrite !frame 2 200 / is will spawn a box 200 pixel away from 0-0 cordinates at 45° You can concluse that alone *-* a dit : |
![]() ![]() « Citoyen » 1386558420000
| 0 | ||
I made a superjump command if anyone is interested >.> function eventChatCommand(name, command) if command=="superjump" then tfm.exec.movePlayer(name,0,0,true,0,-200,false) end end |
![]() ![]() « Citoyen » 1386608340000
| 0 | ||
Unimeowse a dit : There is no function and no ends fixing : a dit : That should work /o\ |
![]() ![]() « Citoyen » 1386628320000
| 0 | ||
Abdeltif a dit : My bad I took it out of my script without adding that |
![]() ![]() « Citoyen » 1387286400000
| 0 | ||
system.bindMouse("Samandefoc");<player name function eventMouse(name, x, y) tfm.exec.addShamanObject(tfm.enum.shamanObject.littleBox, x, y, 0, 0, 0, false) end |
![]() ![]() « Citoyen » 1387482840000
| 0 | ||
all you have to do is copy and paste those snippets? ive tried but they don work for me |
![]() ![]() « Censeur » 1387484880000
| 0 | ||
Animaljamvid a dit : You either don't have 1000 cheese or was banned for hacking before. |
![]() ![]() « Citoyen » 1387491540000
| 0 | ||
i was never banned for hacking before (at least i dont think so) and 1000 cheese in shop or the 1000 cheese in profile? cause in profile i have 4533 cheese .-. |