Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DOWN = string.byte("S")
- data={}
- function eventNewPlayer(n)
- tfm.exec.bindKeyboard(n, DOWN, true, true)
- tfm.exec.bindKeyboard(n, 40, true, true)
- tfm.exec.bindKeyboard(n, 32,true,true)
- end
- for n in next,tfm.get.room.playerList do
- tfm.exec.bindKeyboard(n, DOWN, true, true)
- tfm.exec.bindKeyboard(n, 40, true, true)
- tfm.exec.bindKeyboard(n, 32,true,true)
- end
- tfm.exec.setUIMapName("<N>The Bronze Dragon")
- for n in next,tfm.get.room.playerList do
- system.bindMouse(n,true)
- system.bindKeyboard(name, DOWN1, true)
- system.bindKeyboard(name, DOWN2, true)
- end
- function eventMouse(playerName,x,y)
- tfm.exec.movePlayer(playerName,x,y,false,0,0,false)
- end
- DOWN1 = 40 --keycode of down arrow
- DOWN2 = string.byte("S") --keycode of S
- function eventKeyboard(playerName, keyCode, dow, x, y)
- if keyCode==40 or keyCode==DOWN or keyCode==32 then
- tfm.exec.displayParticle(2,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
- tfm.exec.displayParticle(2,x + math.random(50), y + math.random(10),-0,2,-0.2,-0.1,nil)
- tfm.exec.displayParticle(2,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
- tfm.exec.displayParticle(2,x + math.random(50), y + math.random(10),-0,2,-0.2,-0.1,nil)
- tfm.exec.displayParticle(2,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
- tfm.exec.displayParticle(2,x + math.random(50), y + math.random(10),-0,2,-0.2,-0.1,nil)
- tfm.exec.displayParticle(14,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
- tfm.exec.displayParticle(14,x + math.random(50), y + math.random(10),-0,2,-0.2,-0.1,nil)
- tfm.exec.displayParticle(14,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
- tfm.exec.displayParticle(14,x + math.random(50), y + math.random(10),-0,2,-0.2,-0.1,nil)
- tfm.exec.displayParticle(26,x - math.random(50),y - math.random(10),0.2,0.1,0.2,0.1,nil)
- tfm.exec.displayParticle(10,x -1, y - 3,-0,2,-0.2,-0.1,nil)
- tfm.exec.displayParticle(10,x -150, y - 3,-0,2,-0.2,-0.1,nil)
- tfm.exec.displayParticle(10,x +150, y - 3,-0,2,-0.2,-0.1,nil)
- tfm.exec.explosion(x, y + 30, 20, 25, true)
- tfm.exec.displayParticle(tfm.enum.particle.spirit, x, y + 30)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement