Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true)
- maps={0,1,2,3,4,5,6,7,8,9,10}
- function eventLoop(time,remaining)
- if remaining<=0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- function eventPlayerDied()
- local i=0
- for n,player in pairs(tfm.get.room.playerList) do
- if not player.isDead then
- i=i+1
- end
- end
- if i==0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- local R = 120
- Rsq = R*R
- for name, player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name,true)
- end
- function eventMouse(name,x,y)
- local dx = tfm.get.room.playerList[name].x - x
- local dy = tfm.get.room.playerList[name].y - y
- local distance = dx*dx + dy*dy
- if distance < Rsq then
- tfm.exec.addShamanObject(10, x, y)
- end
- end
- tfm.exec.setNameColor("Sebitacapoda", 0xffffff)
- tfm.exec.setUIMapName("Prueba Super Kakona , (Y)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement