[Module API] Errors |
Error_404 1478029980000
| | ||
[Modéré par Jordy, raison : Fixed.] |
1 | ||
function eventLoop(time, secTime) for i=1,10 do tfm.exec.addConjuration(10, 50, 5000) tfm.exec.addConjuration(200, 50, 5000) tfm.exec.addConjuration(150, 50, 5000) tfm.exec.addConjuration(120, 50, 5000) tfm.exec.addConjuration(100, 50, 5000) tfm.exec.addConjuration(300, 50, 5000) end end |
Saintgio « Consul » 1481247780000
| 0 | ||
pvsto a dit : I don't see the purpose of your post, whatever, your coordinates are out of range, for example: if i want to put the Conjuration in x=300 and y=200, it have to be tfm.exec.addConjuration(30, 20). |
Dannyhpy « Citoyen » 1481652900000
| 0 | ||
Only the last command of this code is working... Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 -- COMMANDE CHEESE Dernière modification le 1481653320000 |
Sebafrancuz « Consul » 1481653800000
| 1 | ||
Dannyiy a dit : You can't use the same event a lot's of time, then only the last one is working. Try to create one eventChatCommand() : Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 function eventChatCommand(pseudo, message) |
Dannyhpy « Citoyen » 1481653860000
| 0 | ||
Thank you for your help! :) And... Code Lua 1 if hasTribe==NAME Dernière modification le 1481654280000 |
Sebafrancuz « Consul » 1481654760000
| 1 | ||
Dannyiy a dit : Sure you can: Code Lua 1 2 3 for playerName, p in pairs(tfm.get.room.playerList) do if you want use it in different situation use: Code Lua 1 tfm.get.room.playerList["Your_nick"].tribeName Dernière modification le 1481654820000 |
Dannyhpy « Citoyen » 1482000960000
| 0 | ||
Hello, And for add an admin for commands? (: |
Tocutoeltuco « Censeur » 1487791380000
| 0 | ||
Dannyiy a dit : It's simple Code Lua 1 2 3 4 5 6 7 8 9 10 11 admins={Danniyiy=true}--here you can put your admins, or use !admin name |
Censere « Consul » 1491545820000
| 0 | ||
local map = '' function main() tfm.exec.disableAutoNewGame() tfm.exec.disableAfkDeath() tfm.exec.newGame(map) end function eventNewGame() end function eventNewPlayer(name) tfm.exec.respawnPlayer(name) end function eventPlayerDied(name) tfm.exec.respawnPlayer(name) end main() I use this script to play maps directly from XML. How can I add the following? Set the mapmaker name in info bar (Ex: @6935131) and set the mapcode in info bar (Ex: Censere) so it appears like a normal map played using /np Make myself (Censere) always the shaman I tried to use tfm.exec.setShaman(Censere) but I get an argument error, so I'm probably using it wrong, and I don't know how to set the map info. Can anyone help? Edit: Answered elsewhere Dernière modification le 1491614700000 |
Loghorizonph « Citoyen » 1491801480000
| 0 | ||
How Can I Spawn Cannon ball or Snowball pressing Letter S/ducking |
Sebafrancuz « Consul » 1492896660000
| 1 | ||
Loghorizonph a dit : Here you got very good tutorial made by Shamousey. |
Dieingflame « Citoyen » 1494896460000
| 0 | ||
Hey, In A Pokelua Survivor Lobby, Something in chat Said Dieingflame Has Been Promoted and i did !help and it said i was admin so i tested it in a private room and now im admin in survivor pokelua (havent tested normal survivor) |
Pegasusya7 « Citoyen » 1502355720000
| 0 | ||
one time, i was in a module and a bunch of ice in it im not sure if its a scam or error someone said its a scam though |
King_seniru « Censeur » 1522210380000
| 0 | ||
OMG this code caused me severe lag and it didnt work properly. Can anyone help Code Lua 1 2 3 4 5 6 7 time = 0 |
King_seniru « Censeur » 1522218780000
| 1 | ||
Loghorizonph a dit : Try this Spwan cannon when pressing s Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 --spawn cannons when pressing 's' spawn snowballs when pressing s Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 players = tfm.get.room.playerList |
0 | ||
King_seniru a dit : Code Lua 1 2 3 4 5 6 7 8 time = 0 Notice that eventLoop is called every half a second, so time will get to 30 after 15 seconds. If you want to do something the first 30 seconds, do time = time + 0.5 instead. |
King_seniru « Censeur » 1522237140000
| 1 | ||
Intas a dit : NO thats not the problem. It prints like this hi'time'(12032) -- not like this but a very big number. the code run at onc without looping every 0.5 sec. and cause lag >my ping was about 29000 |
Sebafrancuz « Consul » 1522237680000
| 0 | ||
King_seniru a dit : Your "while loop" was infinite because your variable "time" was all the time 0 ( I mean in loop ), so lower than 30. While is like a waiting for a condition which is false. So if you gave time < 30 then its waiting for time == 30 when it will stop. You gave time = time + 1 out of a loop so it waited infinitely. Dernière modification le 1522238040000 |
King_seniru « Censeur » 1522292580000
| 1 | ||
Well now that code i have given is workingwell. Maybe some bug or a connection problem. TY |