Advertisement
Guest User

#tornade trampoline

a guest
Dec 6th, 2013
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.15 KB | None | 0 0
  1. for name,player in pairs(tfm.get.room.playerList) do
  2.     system.bindMouse(name, true)
  3. end
  4.  
  5. function eventMouse(name, x, y)
  6.     tfm.exec.addShamanObject(tfm.enum.shamanObject.trampoline, x, y, 0, 0, 0, false)
  7. end
  8.  
  9. -- tfm.enums: http://kikoo.formice.com/doku.php?id=module_api_documentation#tfmenumshamanobject_package
  10. -- exact enums: http://kikoo.formice.com/doku.php?id=enums#objects_anchors
  11.  
  12. ui.addTextArea(1, "<font color='ffffff'><b><u> #furtune </u></b></font>")
  13. function eventLoop(currentTime, remainingTime)
  14. tfm.exec.displayParticle(35, 100, 200,0,0,0, 0, NIL)
  15. tfm.exec.displayParticle(26, 100, 300,0,0,0, 0, NIL)
  16. tfm.exec.displayParticle(35, 100, 100,0,0,0, 0, NIL)
  17. tfm.exec.displayParticle(26, 100, 50,0,0,0, 0, NIL)
  18. tfm.exec.displayParticle(35, 100, 400,0,0,0, 0, NIL)
  19. tfm.exec.displayParticle(26, 100, 500,0,0,0, 0, NIL)
  20. tfm.exec.displayParticle(35, 300, 200,0,0,0, 0, NIL)
  21. tfm.exec.displayParticle(26, 300, 300,0,0,0, 0, NIL)
  22. tfm.exec.displayParticle(35, 300, 400,0,0,0, 0, NIL)
  23. tfm.exec.displayParticle(26, 300, 500,0,0,0, 0, NIL)
  24. tfm.exec.displayParticle(35, 300, 50,0,0,0, 0, NIL)
  25. tfm.exec.displayParticle(26, 500, 200,0,0,0, 0, NIL)
  26. tfm.exec.displayParticle(26, 500, 100,0,0,0, 0, NIL)
  27. tfm.exec.displayParticle(26, 800, 200,0,0,0, 0, NIL)
  28. tfm.exec.displayParticle(26, 800, 100,0,0,0, 0, NIL)
  29. tfm.exec.displayParticle(26, 1200, 100,0,0,0, 0, NIL)
  30. tfm.exec.displayParticle(26, 1200, 300,0,0,0, 0, NIL)
  31. tfm.exec.displayParticle(35, 1250, 200,0,0,0, 0, NIL)
  32. tfm.exec.displayParticle(35, 900, 200,0,0,0, 0, NIL)
  33. tfm.exec.displayParticle(25, 1000, 200,0,0,0, 0, NIL)
  34. tfm.exec.displayParticle(25, 1000, 40,0,0,0, 0, NIL)
  35. tfm.exec.displayParticle(25, 100, 40,0,0,0, 0, NIL)
  36. tfm.exec.displayParticle(25, 400, 50,0,0,0, 0, NIL)
  37. tfm.exec.displayParticle(25, 600, 100,0,0,0, 0, NIL)
  38. end
  39.  
  40. function eventChatCommand(name,command)
  41.     if command=="mort" then
  42.         tfm.exec.killPlayer(name)
  43.     end
  44. end
  45. function eventChatCommand(name, cmd)
  46.     if cmd:sub(0,3) == "map" then
  47.         tfm.exec.newGame(cmd:sub(5))
  48.     end
  49. end
  50.  
  51. -- cmd:sub(0,3) checks if the first 3 characters are 'map'
  52. -- cmd:sub(5) uses anything after, and including the 5th character, like a map code. !map @4572372
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement