Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local items = {1,10}
- local sitem = 0
- local time = 0
- local str = 0
- local p = ""
- local map;
- tfm.exec.disableAutoNewGame()
- tfm.exec.disableAutoShaman()
- alives = function()
- local a = 0 table.foreach(tfm.get.room.playerList,function(k,v) if not v.isDead then a=a+1 end end) return a
- end
- kills = function()
- local a = 0 table.foreach(tfm.get.room.playerList,function(k,v) if v.isDead then a=a+1 end end) return a
- end
- function eventNewGame() str = 0 end
- check=function()
- table.foreach(tfm.get.room.playerList,function(k,v)
- if v.x > 805 then
- tfm.exec.movePlayer(k,0,0,false,0,100,true)
- end
- if v.x < 5 then
- tfm.exec.movePlayer(k,0,0,false,0,100,true)
- end
- if not v.isDead then
- tfm.exec.setPlayerScore(k,str,false)
- end
- end)
- end
- function eventLoop(t,r)
- map = '<C><P aie="1" Ca="" F="'..math.random(1,7)..'" G="'..math.random(-8,8)..','..math.random(4.5,7.0)..'" /><Z><S><S P="0,0,0.0,0.2,0,0,0,0" L="800" o="6a7495" X="400" c="3" Y="398" T="14" H="10" /></S><D><DS Y="373" X="400" /></D><O /></Z></C>'
- if time < os.time()-5000 then
- sitem = items[math.random(#items)]
- time=os.time()
- if math.random(1,14) == 7 then
- local j = {} for n in pairs(tfm.get.room.playerList) do table.insert(j,n) end
- p = j[math.random(#j)]
- else
- p = ""
- end
- end
- if time < os.time()-2000 then
- if math.random(2,8) == 4 then
- angle=180
- else
- angle=math.random(0,270)
- end
- end
- if t > 3000 then
- local imgs = {"15eda680320.png","15eda5e9d64.png"}
- check()
- str=str+math.random(0.1,3.0)
- if p == "" then
- for i = 1,1 do
- id=tfm.exec.addShamanObject(sitem,math.random(-10,790),math.random(1,40),angle,0,str)
- tfm.exec.addImage (imgs[math.random(#imgs)], "#"..id, 0, 0, nil) end
- else
- for i = 1,1 do
- id=tfm.exec.addShamanObject(sitem,tfm.get.room.playerList[p].x+math.random(-20,20),math.random(1,40),180,0,str)
- tfm.exec.addImage (imgs[math.random(#imgs)], "#"..id, 0, 0, nil)
- end
- end
- end
- if r <= 1000 or alives() == 0 then
- tfm.exec.newGame(map)
- end
- ui.setMapName("Coxinha Rain <BL>|</BL> <N>Vivos:</N> <V>"..alives().."</V> <BL>|</BL> <N>Mortos:</N> <V>"..kills().."</V> <BL>|</BL> <N>Strength:</N> <V>"..str.."</V><")
- end
- tfm.exec.newGame(map)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement