Lua Snippets |
![]() ![]() « Citoyen » 1411029840000
| 0 | ||
How to change color name |
![]() ![]() « Citoyen » 1411151700000
| 0 | ||
behurluy a dit : Jaackster a dit : Emberkitx a dit : Yeah, this should probably be in script requests, but I'll respond to your question with a snippet: Infinite Jumps a dit : Dernière modification le 1412030580000 |
![]() 1411152660000
| | ||
[Modéré par Sabusha, raison : Accidental double post] Dernière modification le 1411429320000 |
![]() « Citoyen » 1411933380000
| 0 | ||
For some reason, fly doesn't work in tribe. |
![]() ![]() « Citoyen » 1412069820000
| 0 | ||
Spartttt a dit : What is not working? Pressing space does nothing? Is there an error? Does the script load? Please elaborate. |
![]() ![]() « Citoyen » 1422364200000
| 0 | ||
How to add speed of a mouse? |
![]() ![]() « Citoyen » 1422583020000
| 0 | ||
Dernière modification le 1422583260000 |
![]() ![]() « Citoyen » 1423222680000
| 0 | ||
Shamousey can you give me lua for fly ? |
![]() ![]() « Citoyen » 1423259640000
| 0 | ||
squirtlspkmn a dit : It shows it in the OP: function eventNewPlayer(name) tfm.exec.bindKeyboard(name,32,true,true) end for name,player in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end function eventKeyboard(name,key,down,x,y) if key==32 then tfm.exec.movePlayer(name,0,0,true,0,-50,false) end end |
![]() ![]() « Citoyen » 1423309320000
| 0 | ||
1 more question, can u explain the x and y in this script for name in pairs(tfm.get.room.playerList) do x = tfm.get.room.playerList[name].x y = tfm.get.room.playerList[name].y if x > 885 and x < 1066 and y > 17 and y < 93 then tfm.exec.setShaman(name) end end |
![]() ![]() « Citoyen » 1423318800000
| 0 | ||
squirtlspkmn a dit : The x = tfm.get.room.playerList[name].x gets the player's x axis coordinates for the variable x and the y = tfm.get.room.playerList[name].y gets the player's y axis coordinates for the variable y. Therefore, in the next line (if x > 885 and x < 1066 and y > 17 and y < 93 then), since the variables x and y are checking for the player's coordinates, the system is checking if the player is in an x coordinate greater than 885 but less than 1066 and if the player is in a y coordinate greater than 17 but less than 93. I'm not entirely sure if my theory is correct |
![]() « Citoyen » 1423497480000
| 0 | ||
Cool script made by Robonado: Second Grade Equasion Solver a dit : |
![]() ![]() « Citoyen » 1423546020000
| 0 | ||
Juliantwofan a dit : But why i make a script and it doesnt work in my x and y ._. |
![]() « Citoyen » 1427902860000
| 0 | ||
Dont know if anyone has put anything like this here, myself and my tribe have a lot of fun with this though x) Flood your tribe house. The water will rise until it reaches the top, then restart again. The only downside for me, the water wont act like normal water... SCRIPT a dit : |
![]() ![]() « Citoyen » 1434476700000
| 0 | ||
REZOLVED Dernière modification le 1434551400000 |
![]() ![]() « Citoyen » 1440703560000
| 0 | ||
Colors a dit : You can use this for coloring strings in containers like chat, popup, textarea, etc. Example: a dit : will give you: ![]() |
![]() ![]() « Citoyen » 1441267980000
| 0 | ||
The snow script works out of tribe house for me |
![]() « Citoyen » 1446160200000
| 0 | ||
Someone requested me to make this, it just makes players around you use whatever random emotes you set every interval of the set time. What its already set to will make anyone within 100 pixels/orwhateverunit of me use the kiss emote every second. a dit : *I hope small scripts are also allowed in this thread. |
![]() « Citoyen » 1447578060000
| 0 | ||
for name,player in pairs(tfm.get.room.playerList) do system.bindMouse(name, true) end function eventMouse(name, x, y) tfm.exec.addShamanObject(tfm.enum.shamanObject.littleBox, x, y, 0, 0, 0, false) end -- tfm.enums: http://kikoo.formice.com/doku.php?id=module_api_documentation#tfmenumshamanobject_package -- exact enums: http://kikoo.formice.com/doku.php?id=enums#objects_anchor |