Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAfkDeath(true)
- mapas={"@290971","@293222","@293487","@290865","@276534","@280159","@280120","@279689","@1676629","@3079426","@2393716","@289932","@292592","@305748","@3587860","@837797","@1533333"}
- spree=0
- vivo=0;
- shama=""
- sprem=0
- sala=0;
- data={}
- tempspree=0
- system.disableChatCommandDisplay("status")
- function eventNewPlayer(n)
- sala=sala+1
- newData={
- ["shaman"]=0;
- ["sobre"]=0;
- ["spreem"]=0;
- ["kills"]=0;
- ["killed"]=0;
- };
- data[n] = newData;
- end
- function eventPlayerVampire(playerName)
- vivo=vivo-1
- tfm.exec.setPlayerScore(playerName,-1000,false)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventChatCommand(name,message)
- if message == "status" then
- ui.addPopup(0,0,"<font size='12'>Seus status:<br><br>Ratos mortos: "..data[name].kills.."<br>Você morreu: "..data[name].killed.."<br>Você foi shaman "..data[name].shaman.." vezes<br>Você sobreviveu "..data[name].sobre.." vezes",name,350,175,200,true)
- end
- end
- function eventLoop(currentTime, timeRemaining)
- if vivo <= 0 then
- tfm.exec.newGame(mapas[math.random(#mapas)])
- end
- tempspree=tempspree+1
- if tempspree == 20 then
- spree=0
- tempspree=0
- ui.removeTextArea(0,nil)
- print("Spree zerado")
- end
- tfm.exec.setUIMapName("<N>SurvivorSpree versão 1.3 / Tempo restante: <J>"..timeRemaining.." <N>/ Ratos na sala: <J>"..sala.." <N>/ Ratos vivos: <J>"..vivo.."</J>")
- if timeRemaining <= 1000 then
- for name,player in pairs(tfm.get.room.playerList) do
- if not tfm.get.room.playerList[name].isDied then
- tfm.exec.giveCheese(name)
- tfm.exec.playerVictory(name)
- end
- end
- tfm.exec.newGame(mapas[math.random(#mapas)])
- end
- end
- function eventPlayerWon(playerName)
- vivo=vivo-1
- if not tfm.get.room.playerList[playerName].isShaman then
- data[playerName].sobre=data[playerName].sobre+1
- end
- if pos == 1 then
- ui.addPopup(0, 0, "Parabéns "..playerName.."! Você firstou!", NIL, 300, 30, 300, true)
- end
- end
- function eventNewGame()
- vivo=-1;
- sala=0;
- tempspree=0
- for name,player in pairs(tfm.get.room.playerList) do
- sala=sala+1
- vivo=vivo+1
- tfm.exec.setPlayerScore(name,10,false)
- if tfm.get.room.playerList[name].isShaman then
- tfm.exec.setPlayerScore(name,-1001,false)
- shama=name
- end
- end
- data[shama].shaman=data[shama].shaman+1
- end
- function eventPlayerDied(playerName)
- data[playerName].killed=data[playerName].killed+1
- data[shama].kills=data[shama].kills+1
- tfm.exec.setPlayerScore(playerName,-1000,false)
- vivo=vivo-1
- spree=spree+1
- print(spree)
- if spree == 3 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x3<font color='#909090'> do shaman!",nil,0,30,300,35)
- tempspree=1
- elseif spree == 4 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x4<font color='#909090'> Shaman está enfurecido!",nil,0,30,400,35)
- tempspree=1
- elseif spree == 5 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x5<font color='#909090'> Shaman está implacável!",nil,0,30,400,35)
- tempspree=1
- elseif spree == 6 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x6<font color='#909090'> Shaman está dominando!",nil,0,30,400,35)
- tempspree=1
- elseif spree == 7 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x7<font color='#909090'> Shaman é grandioso!",nil,0,30,370,35)
- tempspree=1
- elseif spree == 8 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x8<font color='#909090'> Shaman é lendário!",nil,0,30,370,35)
- tempspree=1
- elseif spree >= 9 and spree <= 12 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x"..spree.."<font color='#909090'> Shaman é supremo!",nil,0,30,370,35)
- tempspree=1
- elseif spree >= 13 and spree <= 16 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x"..spree.."<font color='#909090'> Shaman é um deus!",nil,0,30,370,35)
- tempspree=1
- elseif spree >= 17 and spree <= 20 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x"..spree.."<font color='#909090'> Shaman é foda!",nil,0,30,370,35)
- tempspree=1
- elseif spree >= 21 and spree <= 24 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x"..spree.."<font color='#909090'> Shaman está com hack!",nil,0,30,370,35)
- tempspree=1
- elseif spree >= 25 and spree <= 28 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x"..spree.."<font color='#909090'> Shaman é incrível!",nil,0,30,370,35)
- tempspree=1
- elseif spree >= 29 and spree <= 32 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x"..spree.."<font color='#909090'> Shaman é um assassino!",nil,0,30,390,35)
- tempspree=1
- elseif spree >= 33 then
- ui.addTextArea(0,"<font size='25'><font color='#ffff00'>x"..spree.."<font color='#909090'> Shaman é um imortal!",nil,0,30,370,35)
- tempspree=1
- end
- if tfm.get.room.playerList[playerName].isShaman then
- tfm.exec.newGame(mapas[math.random(#mapas)])
- end
- end
- function eventPlayerLeft(playerName)
- vivo=vivo-1
- sala=sala-1
- end
- tfm.exec.newGame(mapas[math.random(#mapas)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement