Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pAtOnce=50
- radiusX=100
- radiusY=100
- id=0
- function eventLoop(ct,tr)
- for i=1,id do
- ui.removeTextArea(i,nil)
- end
- id=0
- for i=1,pAtOnce do
- color=math.random(0x000000, 0xFFFFFF)
- ui.addTextArea(i,"",nil,math.random(400-radiusX*4,400+radiusX*4),math.random(200-radiusY*2,200+radiusY*2),1,1,color,color,0.75,true)
- id=id+1
- end
- end
- function eventChatCommand(p,c)
- if c:sub(0,3)=="par" and tonumber(c:sub(5))<=1000 then
- pAtOnce=c:sub(5)
- elseif c:sub(0,2)=="rx" then
- radiusX=c:sub(4)
- elseif c:sub(0,2)=="ry" then
- radiusY=c:sub(4)
- end
- print("<v>["..p.."] <n>"..c)
- end
- system.disableChatCommandDisplay("par",true)
- system.disableChatCommandDisplay("rx",true)
- system.disableChatCommandDisplay("ry",true)
- players={}
- i=0
- mouseLeft=[[
- <font color='#2E72CB'>BOXER
- ]]
- mouseRight=[[
- <font color='#2E72CB'>BOXER
- ]]
- function eventNewGame()
- end
- function eventNewPlayer(name)
- players[name]={
- x=tfm.get.room.playerList[name].x,
- y=tfm.get.room.playerList[name].y,
- id=i
- }
- print(players[name].x)
- if(tfm.get.room.playerList[name].isFacingRight) then
- mouse=mouseRight
- else
- mouse=mouseLeft
- end
- ui.addTextArea(players[name].id,mouse,nil,players[name].x,players[name].y,0,0,0xffffff,0xffffff,0.0)
- i=i+1
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventLoop(tc,tr)
- for name,player in pairs(tfm.get.room.playerList) do
- if not tfm.get.room.playerList[name].isDead then
- local x= tfm.get.room.playerList[name].x
- local y= tfm.get.room.playerList[name].y
- if(tfm.get.room.playerList[name].isFacingRight) then
- mouse=mouseRight
- x=x+20
- else
- mouse=mouseLeft
- x=x-20
- end
- y=y-10
- if(x~=players[name].x) or (y~=players[name].y) then
- ui.addTextArea(players[name].id,mouse,nil,x,y,0,0,0xffffff,0xffffff,0.0)
- end
- end
- end
- end
- tfm.exec.disableAutoShaman(true)
- tfm.exec.newGame("@2838853")
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.setVampirePlayer("Mercedel")
- tfm.exec.setVampirePlayer("Panadesoim")
- tfm.exec.setVampirePlayer("Micesoareci")
- tfm.exec.giveMeep("Micesoareci")
- tfm.exec.giveMeep("Mercedel")
- tfm.exec.giveMeep("Panadesoim")
- tfm.exec.setNameColor('Panadesoim', 0xFF0000)
- tfm.exec.setNameColor('Micesoareci', 0xFF0000)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.setUIMapName("<font color='#56BFE4'>BOX<font color='#0033CC'>|</font> <font color='#ffffff'>Creatori:</font> <font color='#FF0000'>Panadesoim & Micesoareci</font>")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement