Lua Snippets |
![]() 1452191340000
| | ||
[Modéré par Lemodile, raison : Double post] |
![]() 1452191460000
| | ||
[Modéré par Shamousey, raison : Don't claim other people's code as your own.] |
![]() 1454641020000
| | ||
[Modéré par Shamousey, raison : Please speak English on the EN forums.] |
![]() ![]() « Citoyen » 1454682660000
| 0 | ||
you guys know snippets of the ball that the shaman throws |
![]() ![]() « Citoyen » 1455458280000
| 0 | ||
Why the shaman skills of lua made shams can't be used now? it was fine a version ago. |
![]() ![]() « Citoyen » 1456044060000
| 0 | ||
how can i make the scripts work?I need to put a name or not? for name,player in pairs(tfm.get.room.playerList) do system.bindMouse(name, true) end function eventMouse(name, x, y) tfm.exec.movePlayer(name, x, y, false, 0, 1, false) end |
0 | ||
pufucreepy a dit : Nope, you do not have to put a name. Just load the script by doing the following: Shamousey a dit : and when you click on anywhere on the map, you move to that place. Have fun! ^^ |
![]() ![]() « Censeur » 1456225200000
| 0 | ||
Dear peoples. If you may use them on public rooms you can be reported.. |
0 | ||
skittlesuni a dit : If I'm not mistaken only Lua members are able to use Lua in public rooms, public players cannot load lua scripts in public rooms, so reporting is pretty much redundant. |
![]() ![]() « Consul » 1456247220000
| 0 | ||
yeah why not report Shamo ow o |
![]() ![]() « Citoyen » 1461844380000
| 0 | ||
can someone help me? well... i need a script that... ders 3 grounds, the 2nd ground has 10 mice, the other's are lesser than 10 then the 2nd ground disappears, 3 mice left wins and no respawns |
![]() ![]() « Citoyen » 1461895260000
| 0 | ||
ratrollerz a dit : Your post is unclear, but I'd suggest this topic for script requests. |
0 | ||
how can kick player? |
![]() ![]() « Consul » 1463845320000
| 0 | ||
ahmed12akaa a dit : You can't use Lua to kick a player from a room. |
![]() ![]() « Censeur » 1463848260000
| 0 | ||
How you can "ban" a player? |
0 | ||
skittlesuni a dit : You can't kick players out of your tribe house, but you can give them a black-screen. Here's a simple example; a dit : |
![]() ![]() « Citoyen » 1464326280000
| 0 | ||
--[[Just hide the display using textarea.]]-- --[[ Sorry, I'm more familiar with C and that Python language, so I prefer a tabstop equal to 4 space ]]-- admin="your_name" target="your_doll" -- command list (!sdisp to hide your doll game display, usdisp to unhide your doll game display -- Note: it's not hiding the chat interface ban_shut_display = "sdisp" unban_shut_display = "usdisp" function eventChatCommand(admin, ban_shut_display) ui.addTextArea(1,"",target,-400,0,2000,2000,000000,0x212F36,1,true) if ban_shut_display == unban_shut_display then ui.addTextArea(1,"",target,-400,0,2000,2000,000000,0x212F36,0,true) end end Just a simple go to lua hide display script. (hope this game support Perl someday, if this game still exist). and a cruel snippet to kill player non-stop target="your_doll" function eventPlayerRespawn(target) tfm.exec.killPlayer(target) end If you want above worked, you must kill the player first, by executing tfm.killPlayer(target) first. Idea is credited to Mousetat. |