Karluwu

pet mosue wtf

Mar 4th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. players={}
  2. i=0
  3.  
  4. mouseLeft=[[
  5. <ROSE>&lt;'J___)---
  6. ]]
  7. mouseRight=[[
  8. <ROSE>---(___C'>
  9. ]]
  10.  
  11. function eventNewGame()
  12. tfm.exec.setUIShamanName("<CH>Script By: <BV>Issey")
  13. tfm.exec.setUIMapName("<VP>Pet Mouse")
  14. end
  15.  
  16. function eventNewPlayer(name)
  17. players[name]={
  18. x=tfm.get.room.playerList[name].x,
  19. y=tfm.get.room.playerList[name].y,
  20. id=i
  21. }
  22. print(players[name].x)
  23. if(tfm.get.room.playerList[name].isFacingRight) then
  24. mouse=mouseRight
  25. else
  26. mouse=mouseLeft
  27. end
  28. ui.addTextArea(players[name].id,mouse,nil,players[name].x,players[name].y,0,0,0xffffff,0xffffff,0.0)
  29. i=i+1
  30. end
  31.  
  32. for name,player in pairs(tfm.get.room.playerList) do
  33. eventNewPlayer(name)
  34. end
  35.  
  36. function eventLoop(tc,tr)
  37. for name,player in pairs(tfm.get.room.playerList) do
  38. if not tfm.get.room.playerList[name].isDead then
  39. local x= tfm.get.room.playerList[name].x
  40. local y= tfm.get.room.playerList[name].y
  41. if(tfm.get.room.playerList[name].isFacingRight) then
  42. mouse=mouseRight
  43. x=x+20
  44. else
  45. mouse=mouseLeft
  46. x=x-20
  47. end
  48. y=y-10
  49. if(x~=players[name].x) or (y~=players[name].y) then
  50. ui.addTextArea(players[name].id,mouse,nil,x,y,0,0,0xffffff,0xffffff,0.0)
  51. end
  52. end
  53. end
  54. end
Advertisement
Add Comment
Please, Sign In to add comment