Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- maps={3107377,305748,1539148,4543602,390649,495880,1463332,1492805,292678,305753,1545834,3175437,2964900,1812056,852617,799141,1794907,2939549,459284,1519483,1794873,811211,306360,489829,479091,3419948,290546,276534,3220945,1754355,281649,390657,311496,295988,802958,2643833}
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.newGame(maps[math.random(#maps)])
- function eventChatCommand(name,message)
- if message=="skip" then
- tfm.exec.setGameTime (0 , true )
- end
- end
- function eventNewPlayer(name)
- for _, k in pairs({40, 83, 32}) do
- tfm.exec.bindKeyboard(name, k, true, true)
- end
- end
- function eventKeyboard(player, key, down, x, y)
- if key==40 or key==83 then
- if tfm.get.room.playerList[player].isFacingRight==true then
- tfm.exec.addShamanObject(35, x+15, y, 0, 30, 0, false)
- elseif tfm.get.room.playerList[player].isFacingRight==false then
- tfm.exec.addShamanObject(35, x-15, y, 180, -30, 0, false)
- end
- end
- if key==32 then
- tfm.exec.movePlayer(player,0,0,true,0,-50,false)
- end
- end
- for name in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- tfm.exec.snow()
- local loopCount = 0
- function eventLoop(time,remaining)
- if loopCount == 0 then
- tfm.exec.snow()
- tfm.exec.snow()
- end
- loopCount = (loopCount + 1) % 100
- if remaining<=0 or time<=0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement