Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lluvia={"25"}
- pAtOnce=500
- radiusX=100
- radiusY=100
- timer = 0
- despawnTime=5
- tiempo = {"1","2","3"}
- admin = {Aritxy = true, Thetroz = true, Deebuglua = true}
- local maps = {"@3711303"}
- ui.addTextArea(52, "<a href='event:cordenadas'><font size='15'><j><b>Mis cordenadas</b></j></font>", player, 650, 377, 200, 50, 16777215, 16777215, 0,0);
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.newGame(maps[math.random(#maps)])
- function eventTextAreaCallback(id,player,callback)
- if callback=="cordenadas" then
- if tfm.get.room.playerList then
- if tfm.get.room.playerList[player].x then
- if tfm.get.room.playerList[player].y then
- ui.addTextArea(52, "<a href='event:cordenadas'><font size='15'><b><r>X:" .. tfm.get.room.playerList[player].y.. "<n> / <v>Y:".. tfm.get.room.playerList[player].x.."", player, 660, 377, 200, 50, 16777215, 16777215, 0,0);
- end
- end
- end
- end
- end
- function eventLoop(currentTime, timeRemaining,curTime, timeR)
- tfm.exec.displayParticle(27, 400, 200, 0, 0, 0, 0)
- tfm.exec.displayParticle(26, 658, 98, 0, 0, 0, 0)
- tfm.exec.displayParticle(27, 10, 50, 0, 0, 0, 0)
- tfm.exec.displayParticle(26, 500, 380, 0, 0, 0, 0)
- for i=1,pAtOnce do
- tfm.exec.displayParticle(lluvia[math.random(#lluvia)],math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),0,0,0,0,nil)
- end
- tfm.exec.addShamanObject(0, 581, 137);
- end
- if timer == despawnTime * 2 then
- tfm.exec.giveCheese(player)
- else
- timer = timer + 1
- end
- function eventNewGame()
- tfm.exec.setUIMapName("<font color='#BABD2F'>Pesque</font><font color='#6C77C1'> - @0</font>")
- tfm.exec.setGameTime(360)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoShaman(true)
- end
- function eventEmotePlayed(player,emote)
- if emote==8 then
- if tfm.get.room.playerList[player].x < 581 then
- if tfm.get.room.playerList[player].y < 165 then
- ui.addTextArea(2, "<font size='10'>Estás pescando el queso...</font>", player, 5, 30, 200, 50, 16777215, 16777215, 0);
- timer = 0
- end
- end
- end
- end
- function eventChatCommand(name,command)
- if admin[name] then
- if command=="next" then
- tfm.exec.newGame (maps[math.random(#maps)]);
- elseif command=="win" then
- tfm.exec.giveCheese(name)
- tfm.exec.playerVictory(name)
- elseif command=="snow" then
- tfm.exec.snow(20, 99999999999)
- elseif command=="color" then
- tfm.exec.setNameColor(name, 0xED67EA)
- elseif command=="np" then
- ui.addPopup(1,2,"<p align='center'>El código del mapa:</p>",name,300,200,200);
- elseif command=="map" then
- ui.addPopup(2,2,"<p align='center'>Cambia el nombre del mapa:</p>",name,300,200,200);
- elseif command=="time" then
- ui.addPopup(0,2,"<p align='center'>Establece el tiempo en segundos:</p>",name,300,200,200);
- elseif command=="respawn" then
- tfm.exec.respawnPlayer(name)
- end
- end
- end
- function eventPopupAnswer(Id,Name,answer)
- if Id==0 then
- tfm.exec.setGameTime(answer)
- elseif Id==1 then
- tfm.exec.newGame(answer)
- elseif Id==2 then
- tfm.exec.setUIMapName(answer)
- end
- end
- function eventPlayerGetCheese(player)
- ui.addTextArea(2, "<font size='10'>¡Has pescado el queso! Corre a la madriguera.</font>", player, 5, 30, 200, 50, 16777215, 16777215, 0)
- end
- function eventPlayerWon (player)
- ui.removeTextArea(2,player)
- ui.addTextArea(3, "<font size='10'>¡<b>"..player.."</b> ha ganado!</font>", nil, 5, 30, 200, 50, 16777215, 16777215, 0);
- end
Advertisement
Add Comment
Please, Sign In to add comment