Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Room Chat by Fuzzyfirsdog 3/14/18
- pr = "<font size='12'><T>Room Chat - Developed by Fuzzyfirsdog</T><br><br><br><br>"
- ui.addTextArea(0, "<p align='center'><font face='verdana'><font size='20'>Room Chat", nil, 5, 130, 260, 32, 0x324650, 0x000000, 0.2, true)
- system.disableChatCommandDisplay("history",true)
- print(pr)
- ui.addTextArea(1,pr,nil,5,30,260,90,0x324650,0x212F36,0.4,true)
- function eventChatMessage(n,m)
- pr = "<font size='12'><V>["..n.."]<N> "..m.."<br>"..pr.."</font"
- ui.addTextArea(1,pr,nil,5,30,260,90,0x324650,0x212F36,0.4,true)
- end
- function eventLoop()
- print(pr)
- end
- 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
- 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 + 40, 17, 40, false)
- tfm.exec.displayParticle(tfm.enum.particle.spirit, x, y + 30)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment