Boeing747-8

Fuzzy powers

Feb 22nd, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. DOWN = string.byte("S")
  2.  
  3. data={}
  4.  
  5.  
  6.  
  7. function eventNewPlayer(n)
  8.  
  9.  
  10. tfm.exec.bindKeyboard("Fuzzyfirsdog", DOWN, true, true)
  11. tfm.exec.bindKeyboard("Fuzzyfirsdog", 40, true, true)
  12. tfm.exec.bindKeyboard("Fuzzyfirsdog", 32,true,true)
  13. end
  14. for n in next,tfm.get.room.playerList do
  15. tfm.exec.bindKeyboard("Fuzzyfirsdog", DOWN, true, true)
  16. tfm.exec.bindKeyboard("Fuzzyfirsdog", 40, true, true)
  17. tfm.exec.bindKeyboard("Fuzzyfirsdog", 32, true, true)
  18. end
  19.  
  20.  
  21.  
  22. tfm.exec.setUIMapName("<N>The Bronze Dragon")
  23.  
  24.  
  25.  
  26.  
  27. DOWN1 = 40 --keycode of down arrow
  28. DOWN2 = string.byte("S") --keycode of S
  29.  
  30.  
  31.  
  32. function eventKeyboard(playerName, keyCode, dow, x, y)
  33.  
  34.  
  35.  
  36. if keyCode==40 or keyCode==DOWN or keyCode==32 then
  37. tfm.exec.displayParticle(2,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
  38. tfm.exec.displayParticle(2,x + math.random(50), y + math.random(10),-0,2,-0.2,-0.1,nil)
  39. tfm.exec.displayParticle(2,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
  40. tfm.exec.displayParticle(2,x + math.random(50), y + math.random(10),-0,2,-0.2,-0.1,nil)
  41. tfm.exec.displayParticle(2,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
  42. tfm.exec.displayParticle(2,x + math.random(50), y + math.random(10),-0,2,-0.2,-0.1,nil)
  43. tfm.exec.displayParticle(14,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
  44. tfm.exec.displayParticle(14,x + math.random(50), y + math.random(10),-0,2,-0.2,-0.1,nil)
  45. tfm.exec.displayParticle(14,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
  46. tfm.exec.displayParticle(14,x + math.random(50), y + math.random(10),-0,2,-0.2,-0.1,nil)
  47. tfm.exec.displayParticle(26,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
  48. tfm.exec.displayParticle(10,x -1, y - 3,-0,2,-0.2,-0.1,nil)
  49. tfm.exec.displayParticle(10,x -150, y - 3,-0,2,-0.2,-0.1,nil)
  50. tfm.exec.displayParticle(10,x +150, y - 3,-0,2,-0.2,-0.1,nil)
  51.  
  52. tfm.exec.explosion(x, y + 40, 17, 40, false)
  53. tfm.exec.displayParticle(tfm.enum.particle.spirit, x, y + 30)
  54.  
  55. end
  56.  
  57. end
Advertisement
Add Comment
Please, Sign In to add comment