Lua Snippets |
![]() ![]() « Citoyen » 1381086840000
| 0 | ||
@Basterfeild Here a dit : This should work, if you wanna add a map change maps like this a dit : like that^ These are map rotations, use the other code if you want a specific P map rotation |
0 | ||
Someone can fix this script? |
![]() ![]() « Citoyen » 1381093080000
| 0 | ||
for some reason all the items keep glitching all the time? here's the code: function eventEmotePlayed(playerName,emote) if emote==8 then tfm.exec.addShamanObject(19, tfm.get.room.playerList[playerName].x, tfm.get.room.playerList[playerName].y, 0, 0, 0, false) elseif emote==9 then tfm.exec.addShamanObject(20, tfm.get.room.playerList[playerName].x, tfm.get.room.playerList[playerName].y, 0, 0, 0, false) end end -- please tell me what's wrong q.q |
![]() ![]() « Consul » 1381098360000
| 0 | ||
Bengalstar a dit : Could you clarify what you mean by "glitching"? It's working fine for me. |
0 | ||
Error? a dit : Help-me |
![]() ![]() « Citoyen » 1381147980000
| 0 | ||
Shamousey a dit : how you change ur pic sham ? i mean ur apperance in the game like in transforcows |
![]() ![]() « Citoyen » 1381147980000
| 0 | ||
Rebornaddict a dit : tfm.exec.addImage, you cant use this unless you are a Lua Team member. |
![]() ![]() « Citoyen » 1381150920000
| 0 | ||
Jaackster a dit : how bout on tribe house ? |
![]() ![]() « Consul » 1381150920000
| 0 | ||
Rebornaddict a dit : You can't use it in the tribe house either - only people on the Lua Team can use that function, as Jaackster said. |
![]() ![]() « Citoyen » 1381150920000
| 0 | ||
In LUA, can I make /nue in tribe? |
![]() ![]() « Consul » 1381151220000
| 0 | ||
Basterfeild a dit : You can't, that's a clientside thing that the user can set in their options menu, not something controllable by Lua. |
![]() ![]() « Citoyen » 1381151700000
| 0 | ||
Okay. Soo can I get invisible comands? !pomoc to invis !help to invis |
![]() ![]() « Consul » 1381151820000
| 0 | ||
Basterfeild a dit : system.disableChatCommandDisplay("help",true) |
![]() ![]() « Citoyen » 1381152240000
| 0 | ||
Thanks. :) Game finished! |
![]() ![]() « Citoyen » 1381152480000
| 0 | ||
Shamousey a dit : hmm ok . thanks sham |
0 | ||
tfm.exec.disableAllShamanSkills(false) --->> how can I put it in a !shaman command to activate the skills? a dit : this is the part of my shaman command code |
![]() ![]() « Consul » 1381155060000
| 0 | ||
If you want to disable/enable shaman skills, you need to run that function before anyone is made a shaman. Anyone made a shaman through tfm.exec.setShaman() will not have skills though, you can't enable them. |
0 | ||
Shamousey a dit : Ah, thanks! |
![]() ![]() « Citoyen » 1381170540000
| 0 | ||
How do you even become a Lua Team Member? e-e |
![]() ![]() « Citoyen » 1381195260000
| 0 | ||
So if i understand this, Lua scripting is when the lua team members make new codes like /mort makes you die? If i write for name,player in pairs(tfm.get.room.playerList) do system.bindMouse(name, true) end function eventMouse(name, x, y) tfm.exec.addConjuration(x/10, y/10, 10000) end I can do conjuration in my tribehouse by writing it in my /lua box right? |