Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Aviso de script carregado com sucesso
- print ("<font color='#ED67EA'>[Script] Script carregado com sucesso!<font color='#ED67EA'>")
- -- Comandos
- function eventChatCommand(nome, cmd)
- if cmd=="novomapa" then
- tfm.exec.newGame(mapas[math.random(#mapas)]);
- tfm.exec.setVampirePlayer(players[math.random(#players)])
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.setShaman(name)
- end
- end
- if cmd=="rvamp" then
- print ("<font color='#ED67EA'>[Script] Sorteio de quem vai ser o vampiro terminado<font color='#ED67EA'>")
- tfm.exec.setVampirePlayer(players[math.random(#players)])
- end
- if cmd=="vampa" then
- print ("<font color='#ED67EA'>[Script] Agora todos são vampiros!<font color='#ED67EA'>")
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.setVampirePlayer(name)
- end
- end
- if cmd=="sorteiomort" then
- print ("<font color='#ED67EA'>[Script] Sorteio de Morte Terminado<font color='#ED67EA'>")
- tfm.exec.killPlayer(players[math.random(#players)]);
- end
- end
- -- IDEAL PARA O FUNCIONAMENTO DO SCRIPT
- mapas={[[0]],[[1]],[[2]],[[3]],[[4]],[[5]],[[6]],[[11]],[[12]],[[13]],[[14]],[[15]],[[16]],[[17]],[[18]],[[19]],[[20]],[[21]],[[22]],[[24]],[[25]],[[26]],[[28]],[[29]],[[30]],[[31]],[[32]],[[33]],[[34]],[[35]],[[36]],[[37]],[[38]],[[39]],[[40]],[[41]],[[42]],[[43]],[[44]],[[45]],[[46]],[[47]],[[48]],[[49]],[[50]],[[51]],[[52]],[[53]],[[54]],[[55]],[[56]],[[57]],[[58]],[[59]],[[60]],[[61]],[[62]],[[63]],[[64]],[[65]],[[66]],[[67]],[[68]],[[69]],[[70]],[[71]],[[72]],[[73]],[[74]],[[75]],[[76]],[[77]],[[78]],[[79]],[[80]],[[81]],[[82]],[[83]],[[84]],[[85]],[[86]],[[87]],[[88]],[[89]],[[90]],[[91]],[[92]],[[93]],[[95]],[[96]],[[97]],[[98]],[[99]],[[100]],[[110]],[[114]],[[115]],[[116]],[[117]],[[118]],[[119]],[[120]],[[121]],[[122]],[[123]],[[124]],[[125]],[[126]],[[127]],[[128]],[[129]],[[130]],[[131]],[[132]],[[133]],[[134]],[[136]],[[137]],[[138]],[[139]],[[140]],[[141]],[[142]],[[143]],[[200]],[[201]],[[202]],[[203]],[[204]],[[205]],[[206]],[[207]],[[208]],[[209]],[[210]]};
- function eventNewGame()
- tfm.exec.newGame(mapas[math.random(#mapas)]);
- tfm.exec.setVampirePlayer(players[math.random(#players)])
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.setShaman(name)
- end
- end
- players = {}
- for name,player in pairs(tfm.get.room.playerList) do
- table.insert(players,name)
- end
- tfm.exec.setVampirePlayer(players[math.random(#players)])
- ui.addTextArea(0, "Funcorp de pobre\n", nil, 15, -27, 106, 21, 0x4a2f03, 0x000000, 0, true)
- ui.addTextArea(2, "Clique em qualquer lugar da tela pra se teleportar\nAperte espaço para meep/voar", nil, 133, -40, 377, 34, 0x324650, 0x000000, 0, true)
- tfm.exec.disableAutoTimeLeft(true)
- function eventNewPlayer(player)
- print ("<font color='#ED67EA'>[Script] Alguém entrou na sala<font color='#ED67EA'>")
- ui.addTextArea(0, "Funcorp de pobre\n", nil, 15, -27, 106, 21, 0x4a2f03, 0x000000, 0, true)
- ui.addTextArea(2, "Clique em qualquer lugar da tela pra se teleportar\nAperte espaço para meep/voar", nil, 133, -40, 377, 34, 0x324650, 0x000000, 0, true)
- end
- function eventPlayerLeft(player)
- print ("<font color='#ED67EA'>[Script] Alguém saiu na sala<font color='#ED67EA'>")
- end
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.setShaman(name)
- end
- for name, player in pairs(tfm.get.room.playerList) do
- tfm.exec.setNameColor(name, string.format("%x", math.random(0x000000, 0xFFFFFF)))
- end
- tfm.exec.disableAfkDeath(true)
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,32,true,true)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventKeyboard(name,key,down,x,y)
- if key==32 then
- tfm.exec.movePlayer(name,0,0,true,0,-50,false)
- end
- end
- for name,player in pairs(tfm.get.room.playerList) do
- tfm.exec.giveMeep(name)
- end
- function eventPlayerDied(name)
- tfm.exec.respawnPlayer(name)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, true)
- end
- function eventMouse(name, x, y)
- tfm.exec.movePlayer(name, x, y, false, 0, 1, false)
- end
- -- ESCONDER OS COMANDOS
- system.disableChatCommandDisplay("sorteiomort")
- system.disableChatCommandDisplay("novomapa")
- system.disableChatCommandDisplay("rvamp")
- system.disableChatCommandDisplay("vampa")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement