Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Strings and Tables and Disables
- warrirors = {}
- canSkills={}
- data={}
- dataplayer={}
- p={}
- toDespawn={}
- players={}
- idheart1={} idheart2={} idheart3={} idheart4={} idheart5={} idheart6={} idre={}
- canFly={}
- canKill={}
- canSprite={}
- idskill={} idskill2={} idskill3={} idskill4={} idskill5={} idskill6={} idskill7={} idle={} idbar={}
- mice=0
- for _,v in pairs ({'disableAutoScore','disableAutoNewGame','disableAutoShaman','disableDebugCommand','disableMinimalistMode','disableAutoTimeLeft','disableAfkDeath'}) do
- tfm.exec[v](true)
- end
- text={}
- lang={}
- lang.ar={won="لقد فزت",winner="هو الفائز",skills="مهارات",points="نقاط",waiting="بانتظار اللاعبين",fight="القتال بين",respawn="سوف تعود للحياة هنا",up="تطوير",full="مطّور"}
- lang.en={won="You have won",winner="is the Winner",skills="'s Skills",points="'s Points",full="Full",waiting="Waiting players",fight="The fight is between",respawn="You'll respawn here",up="Upgrade"}
- commu={"en", "ar"}
- maps = {
- {code = "@6984519", x = 400, y = 323}
- }
- --Random maps system
- function newMap()
- map = {}
- i = 0
- for _,v in pairs(maps) do
- i = i + 1
- map[i] = v.code
- end
- tfm.exec.newGame(map[math.random(#map)])
- end
- --Translations system
- function setLang(n)
- text[n]=lang[tfm.get.room.playerList[n].community] or lang.en
- end
- --Data system
- function Dataplayer(n)
- for i,dataplayer in ipairs(dataplayer) do
- if n==dataplayer then
- return true
- end
- end
- return false
- end
- function reData(n)
- setLang(n)
- data[n]={player=n,score=0,skill1="<p align='center'><b><a href='event:up'>"..text[n].up.."",skill2="<p align='center'><b><a href='event:up2'>"..text[n].up.."",skill3="<p align='center'><b><a href='event:up3'>"..text[n].up.."",skill4="<p align='center'><b><a href='event:up4'>"..text[n].up.."",skill5="<p align='center'><b><a href='event:up5'>"..text[n].up.."",skill6="<p align='center'><b><a href='event:up6'>"..text[n].up.."",skill7="<p align='center'><b><a href='event:up7'>"..text[n].up.."",up1="<p align='center'><b>[<R>•••<N>]",up2="<p align='center'><b>[<R>•••<N>]",up3="<p align='center'><b>[<R>•<N>]",up4="<p align='center'><b>[<R>•••<N>]",up5="<p align='center'><b>[<R>•••<N>]",up6="<p align='center'><b>[<R>•<N>]",up7="<p align='center'><b>[<R>•<N>]",point1=0,point2=0,point3=0,point4=0,point5=0,point6=0,point7=0,counter=0,counter2=0,counter3=0,expp=0,points=50,level=0,maxexp=10,tier1=0,tier2=0,heart=5,retime=0}
- end
- --Warrirors and Hearts system
- function Warrirors(n)
- for i,warrirors in ipairs(warrirors) do
- if n==warrirors then
- return true
- end
- end
- return false
- end
- function Hearts(n)
- if data[n].heart==5 then
- if idheart6[n] then tfm.exec.removeImage(idheart6[n],n) idheart6[n]=nil end
- elseif data[n].heart==4 then
- if idheart1[n] then tfm.exec.removeImage(idheart1[n],n) idheart1[n]=nil end
- elseif data[n].heart==3 then
- if idheart2[n] then tfm.exec.removeImage(idheart2[n],n) idheart2[n]=nil end
- elseif data[n].heart==2 then
- if idheart3[n] then tfm.exec.removeImage(idheart3[n],n) idheart3[n]=nil end
- elseif data[n].heart==1 then
- if idheart4[n] then tfm.exec.removeImage(idheart4[n],n) idheart4[n]=nil end
- elseif data[n].heart==0 then
- if idheart5[n] then tfm.exec.removeImage(idheart5[n],n) idheart5[n]=nil end
- for index,p in pairs(warrirors) do
- tfm.exec.giveCheese(p)
- tfm.exec.playerVictory(p)
- ui.removeTextArea(21,p)
- if idre[p] then tfm.exec.removeImage(idre[p],p) idre[p]=nil end
- started=false
- end
- end
- end
- --Skills functions
- function Skills(P,n)
- data[n].player=P
- canSkills[n]=true
- ui.addTextArea(1, "", n, 279, 87, 214, 298, 0x2c555c, 0x936240, 1, true)
- ui.addTextArea(2, data[P].up4, n, 440, 250, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(4, "<b><p align='center'><font size='14'><b><V><b>"..P.." "..text[n].skills.."</b>", n, 267, 57, 235, 20, 0x152d30, 0x152d30, 1, true)
- ui.addTextArea(5, data[P].up6, n, 290, 250, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(11, data[P].up1, n, 445, 340, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(12, data[P].up2, n, 365, 340, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(13, data[P].up5, n, 365, 250, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(14, data[P].up3, n, 290, 340, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(15, data[P].up7, n, 370, 160, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(3, "<a href='event:lmao'><font face='serif' color='#2b2b2b' size='12'><b>✕</b></font></a>", n, 485, 59, 16, 16, 0x009D9D, 0x009D9D, 1, true)
- idle[n]=tfm.exec.addImage("15ab8fe3be0.png", "!999", 586, 100, n)--لفل
- idbar[n]=tfm.exec.addImage("15ab8fde446.png", "!999", 501, 227, n)--البار
- ui.addTextArea(17, "<b><p align='center'><BV>"..data[P].expp.." / <R>"..data[P].maxexp.."", n, 552, 235, 200, 20, 0x324650, 0x000000, 0, true)
- ui.addTextArea(18, "<font size='20'><p align='center'><b><J>"..data[P].level.."", n, 595, 135, 100, 100, 0x324650, 0x000000, 0, trueui.addTextArea(20,"<b><p align='center'>"..P.." "..text[n].points.." : "..data[P].points.."",n,200,360,360,22,0,0,0,true)
- idskill[n]=tfm.exec.addImage("15ab8fdb1e5.png", "&1", 290, 280, n)--الميب
- idskill2[n]=tfm.exec.addImage("15ab8fda007.png", "&1", 370, 190, n)--المفرقعات
- idskill3[n]=tfm.exec.addImage("15ab8fe17e6.png", "&1", 370, 280, n)--القفز
- idskill4[n]=tfm.exec.addImage("15ab8fe0697.png", "&1", 450, 190, n)--الطيران
- idskill5[n]=tfm.exec.addImage("15ab8fdd37a.png", "&1", 450, 280, n)--السرعة
- idskill6[n]=tfm.exec.addImage("15ab8fdc2be.png", "&1", 290, 190, n)--إزالة قلب
- idskill7[n]=tfm.exec.addImage("15ab8fdf5ae.png", "&1", 370, 100, n)--زيادة قلب
- if P==n then
- ui.addTextArea(6, data[P].skill2, n, 360, 320, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(7, data[P].skill3, n, 280, 320, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(8, data[P].skill1, n, 440, 320, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(9, data[P].skill6, n, 280, 230, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(10, data[P].skill5, n, 360, 230, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(16, data[P].skill7, n, 360, 140, nil, nil, 0x324650, 0x000000, 0, true)
- ui.addTextArea(0, data[P].skill4, n, 440, 230, nil, nil, 0x324650, 0x000000, 0, true)
- end
- end
- function closeSkills(n)
- canSkills[n]=false
- for areas, k in pairs({"0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20"}) do
- ui.removeTextArea(k, n)
- end
- if idskill[n] then tfm.exec.removeImage(idskill[n]) idskill[n]=nil end
- if idskill2[n] then tfm.exec.removeImage(idskill2[n]) idskill2[n]=nil end
- if idskill3[n] then tfm.exec.removeImage(idskill3[n]) idskill3[n]=nil end
- if idskill4[n] then tfm.exec.removeImage(idskill4[n]) idskill4[n]=nil end
- if idskill5[n] then tfm.exec.removeImage(idskill5[n]) idskill5[n]=nil end
- if idskill6[n] then tfm.exec.removeImage(idskill6[n]) idskill6[n]=nil end
- if idskill7[n] then tfm.exec.removeImage(idskill7[n]) idskill7[n]=nil end
- if idle[n] then tfm.exec.removeImage(idle[n]) idle[n]=nil end
- if idbar[n] then tfm.exec.removeImage(idbar[n]) idbar[n]=nil end
- end
- function eventMouse(n,x,y)
- if started and Warrirors(n) and data[n].point6 > 0 and canKill[n] then
- for k,v in pairs(tfm.get.room.playerList) do
- if (v.x < x+20 and v.x > x-20 and v.y > y-20 and v.y < y+20) then
- if k~=n and Warrirors(k) then
- tfm.exec.killPlayer(k)
- canKill[n]=false
- end end end end end
- --Attack - Skills
- function eventKeyboard(n, k, d, x, y)
- if started then
- if k==2 then
- p[n].right=true
- p[n].left=true
- elseif k==0 then
- p[n].right=false
- p[n].left=false
- elseif k==32 and p[n].timestamp<os.time()-2000 and tfm.get.room.playerList[n].isDead==false and Warrirors(n) then
- p[n].objectid=tfm.exec.addShamanObject(35,x+(p[n].right and 15 or -15),y,0,p[n].right and 20 or -20)
- p[n].timestamp=os.time()
- table.insert(toDespawn,{os.time(),p[n].objectid})
- elseif k==75 and data[n].point1 > 0 and tfm.get.room.playerList[n].isDead==false and Warrirors(n) then
- data[n].counter=data[n].counter+1
- data[n].counter2=0
- data[n].counter3=0
- if data[n].counter==2 then
- tfm.exec.movePlayer(n,0,0,true,data[n].point1*50,0,false)
- data[n].counter=0
- end
- elseif k==72 and data[n].point1 > 0 and tfm.get.room.playerList[n].isDead==false and Warrirors(n) then
- data[n].counter2=data[n].counter2+1
- data[n].counter=0
- data[n].counter3=0
- if data[n].counter2==2 then
- tfm.exec.movePlayer(n,0,0,true,-data[n].point1*50,0,false)
- data[n].counter2=0
- end
- elseif k==85 and data[n].point2 > 0 and tfm.get.room.playerList[n].isDead==false and Warrirors(n) then
- data[n].counter3=data[n].counter3+1
- data[n].counter=0
- data[n].counter2=0
- if data[n].counter3==2 then
- tfm.exec.movePlayer(n,0,0,true,0,-data[n].point2*50,false)
- data[n].counter3=0
- end
- elseif k==74 and data[n].point5 > 0 and tfm.get.room.playerList[n].isDead==false and Warrirors(n) then
- if canSprite[n] and canSprite[n][1] == true then
- tfm.exec.displayParticle(12,x,y+30)
- tfm.exec.movePlayer(n,0,0,true,0,-75,false)
- elseif canSprite[n] == nil then
- canSprite[n] = {true, data[n].point5*20}
- tfm.exec.displayParticle(12,x,y+30)
- tfm.exec.movePlayer(n,0,0,true,0,-75,false)
- end
- elseif k==86 and tfm.get.room.playerList[n].isDead==false and data[n].point4 > 0 and Warrirors(n) then
- if canFly[n] and canFly[n][1] == true then
- tfm.exec.movePlayer(n,0,0,false,0,-40,false)
- elseif canFly[n] == nil then
- canFly[n] = {true, data[n].point4*20}
- tfm.exec.movePlayer(n,0,0,false,0,-40,false)
- end
- end
- end
- end
- --eventNewPlayer - eventPlayerLeft - eventNewGame - eventPlayerDied - eventPlayerRespawn - eventPlayerWon
- function eventNewPlayer(n)
- tfm.exec.setPlayerScore(n,0)
- system.bindMouse(n,true)
- for keys, k in pairs({2,0,32,74,75,72,85,86}) do
- tfm.exec.bindKeyboard(n, k, true, true)
- end
- if Dataplayer(n) then else
- reData(n)
- table.insert(dataplayer,n)
- end
- setLang(n)
- table.insert(players,n)
- p[n]={timestamp=os.time(),imageid=0,objectid=0,right=false,left=false}
- mice=mice+1
- tfm.exec.respawnPlayer(n)
- if mice==4 then
- tfm.exec.setGameTime(5)
- end
- data[n].score=0
- tfm.exec.setPlayerScore(n,data[n].score,true)
- end
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
- function eventPlayerLeft(n)
- if Warrirors(n) then
- for index,p in pairs(warrirors) do
- tfm.exec.giveCheese(p)
- tfm.exec.playerVictory(p)
- end
- end
- players = {};
- for n,p in pairs (tfm.get.room.playerList) do
- table.insert(players, n)
- end
- mice=mice-1
- if mice==3 then
- tfm.exec.setGameTime(5)
- end
- end
- function eventNewGame()
- warrirors={}
- canFly={}
- canSprite={}
- started=false
- for n,p in pairs(tfm.get.room.playerList) do
- canKill[n]=true
- tfm.exec.respawnPlayer(n)
- if idre[n] then tfm.exec.removeImage(idre[n],n) idre[n]=nil end
- ui.removeTextArea(21,n)
- if idheart1[n] then tfm.exec.removeImage(idheart1[n],n) idheart1[n]=nil end
- if idheart2[n] then tfm.exec.removeImage(idheart2[n],n) idheart2[n]=nil end
- if idheart3[n] then tfm.exec.removeImage(idheart3[n],n) idheart3[n]=nil end
- if idheart4[n] then tfm.exec.removeImage(idheart4[n],n) idheart4[n]=nil end
- if idheart5[n] then tfm.exec.removeImage(idheart5[n],n) idheart5[n]=nil end
- if idheart6[n] then tfm.exec.removeImage(idheart6[n],n) idheart6[n]=nil end
- data[n].heart=5
- if data[n].point7 > 0 then
- data[n].heart=6
- end
- end
- if 4 <= mice then
- tfm.exec.setGameTime(180)
- repeat
- warrirors[1] = players[math.random(#players)]
- warrirors[2] = players[math.random(#players)]
- until warrirors[2] ~= warrirors[1]
- for n,p in pairs(tfm.get.room.playerList) do
- tfm.exec.chatMessage(""..text[n].fight.." "..warrirors[1].." & "..warrirors[2].."",n)
- if data[n].point3 > 0 and Warrirors(n) then
- tfm.exec.giveMeep(n)
- end
- data[n].counter=0
- data[n].counter2=0
- data[n].counter3=0
- if Warrirors(n) then
- idheart1[n] = tfm.exec.addImage("1593c276aa5.png", "&1", 679, 26, n)
- idheart2[n] = tfm.exec.addImage("1593c276aa5.png", "&1", 704, 26, n)
- idheart3[n] = tfm.exec.addImage("1593c276aa5.png", "&1", 729, 26, n)
- idheart4[n] = tfm.exec.addImage("1593c276aa5.png", "&1", 754, 26, n)
- idheart5[n] = tfm.exec.addImage("1593c276aa5.png", "&1", 779, 26, n)
- if data[n].point7 > 0 then
- idheart6[n] = tfm.exec.addImage("1593c276aa5.png", "&1", 654, 26, n)
- end
- end
- end
- end
- for i,v in pairs(maps) do
- if v.code == tfm.get.room.currentMap then
- for index,p in pairs(warrirors) do
- tfm.exec.movePlayer(p, v.x, v.y)
- tfm.exec.respawnPlayer(p)
- end
- end
- end
- end
- function eventPlayerRespawn(n)
- if data[n].point3 > 0 and Warrirors(n) then
- tfm.exec.giveMeep(n)
- end
- end
- function eventPlayerWon(n)
- tfm.exec.setGameTime(5)
- tfm.exec.chatMessage(text[n].won,n)
- data[n].expp=data[n].expp+5
- if data[n].expp==data[n].maxexp then
- data[n].expp=0
- data[n].level=data[n].level+1
- data[n].points=data[n].points+1
- data[n].maxexp=data[n].maxexp+10
- end
- for k,p in pairs(tfm.get.room.playerList) do tfm.exec.chatMessage(""..n.." "..text[k].winner.."",k) end
- data[n].score=10
- tfm.exec.setPlayerScore(n,data[n].score,true)
- end
- function eventPlayerDied(n)
- data[n].retime=5
- data[n].counter=0
- data[n].counter2=0
- data[n].counter3=0
- for i,v in pairs(maps) do
- if v.code == tfm.get.room.currentMap then
- if Warrirors(n) and 1 <= data[n].heart and started==true then
- data[n].heart=data[n].heart-1
- if idre[n] then tfm.exec.removeImage(idre[n],n) idre[n]=nil end
- ui.removeTextArea(21,n)
- idre[n] = tfm.exec.addImage("15ab8fe2966.png", "&1", v.x-31.5, v.y-65, n)
- ui.addTextArea(21, "<p align='center'><b>"..text[n].respawn.."", n, v.x-68.5, v.y-85, 166, 23, 0x24650, 0x324650, 1, true)
- elseif n~="warrirors" and 1 <= data[n].heart and started==true then
- X=tfm.get.room.playerList[n].x
- Y=tfm.get.room.playerList[n].y
- if idre[n] then tfm.exec.removeImage(idre[n],n) idre[n]=nil end
- ui.removeTextArea(21,n)
- idre[n] = tfm.exec.addImage("15ab8fe2966.png", "&1", X-31.5, Y-65, n)
- ui.addTextArea(21, "<p align='center'><b>"..text[n].respawn.."", n, X-68.5, Y-85, 166, 23, 0x24650, 0x324650, 1, true)
- end
- end
- end
- if data[n].heart <= 0 then end
- end
- --TextAreaCallback
- function eventTextAreaCallback(ids,n,c)
- if c=="up" and data[n].point1 < 3 and data[n].points > 0 then
- data[n].point1=data[n].point1+1
- data[n].points=data[n].points-1
- if data[n].point1==1 then data[n].up1="<p align='center'><b>[<VP>•<R>••<N>]" elseif data[n].point1==2 then data[n].up1="<p align='center'><b>[<VP>••<R>•<N>]" elseif data[n].point1==3 then data[n].up1="<p align='center'><b>[<VP>•••<N>]" data[n].skill1="<p align='center'><b>"..text[n].full.."" end
- closeSkills(n)
- Skills(n,n)
- data[n].tier1=data[n].tier1+1
- elseif c=="up2" and data[n].point2 < 3 and data[n].points > 0 then
- data[n].point2=data[n].point2+1
- if data[n].point2==1 then data[n].up2="<p align='center'><b>[<VP>•<R>••<N>]" elseif data[n].point2==2 then data[n].up2="<p align='center'><b>[<VP>••<R>•<N>]" elseif data[n].point2==3 then data[n].up2="<p align='center'><b>[<VP>•••<N>]" data[n].skill2="<p align='center'><b>"..text[n].full.."" end
- closeSkills(n)
- Skills(n,n)
- data[n].tier1=data[n].tier1+1
- elseif c=="up3" and data[n].point3 < 1 and data[n].points > 0 then
- data[n].point3=data[n].point3+1
- data[n].points=data[n].points-1
- data[n].up3="<p align='center'><b>[<VP>•<N>]"
- data[n].skill3="<p align='center'><b>"..text[n].full..""
- if Warrirors(n) then
- tfm.exec.giveMeep(n)
- end
- closeSkills(n)
- Skills(n,n)
- data[n].tier1=data[n].tier1+1
- elseif c=="up4" and data[n].point4 < 3 and data[n].points > 0 and data[n].tier1 >= 5 then
- data[n].point4=data[n].point4+1
- data[n].points=data[n].points-1
- if data[n].point4==1 then data[n].up4="<p align='center'><b>[<VP>•<R>••<N>]" elseif data[n].point4==2 then data[n].up4="<p align='center'><b>[<VP>••<R>•<N>]" elseif data[n].point4==3 then data[n].up4="<p align='center'><b>[<VP>•••<N>]" data[n].skill4="<p align='center'><b>"..text[n].full.."" end
- closeSkills(n)
- Skills(n,n)
- data[n].tier2=data[n].tier2+1
- elseif c=="up5" and data[n].point5 < 3 and data[n].points > 0 and data[n].tier1 >= 5 then
- data[n].point5=data[n].point5+1 if data[n].point5==1 then data[n].up5="<p align='center'><b>[<VP>•<R>••<N>]" elseif data[n].point5==2 then data[n].up5="<p align='center'><b>[<VP>••<R>•<N>]" elseif data[n].point5==3 then data[n].up5="<p align='center'><b>[<VP>•••<N>]" data[n].skill5="<p align='center'><b>"..text[n].full.."" end
- data[n].points=data[n].points-1
- closeSkills(n)
- Skills(n,n)
- data[n].tier2=data[n].tier2+1
- elseif c=="up6" and data[n].point6 < 1 and data[n].points > 0 and data[n].tier1 >= 5 then
- data[n].point6=data[n].point6+1
- data[n].up6="<p align='center'><b>[<VP>•<N>]"
- data[n].skill6="<p align='center'><b>"..text[n].full..""
- data[n].points=data[n].points-1
- closeSkills(n)
- Skills(n,n)
- data[n].tier2=data[n].tier2+1
- elseif c=="up7" and data[n].point7 < 1 and data[n].points > 0 and data[n].tier2 >= 5 then
- data[n].point7=data[n].point7+1
- data[n].up7="<p align='center'><b>[<VP>•<N>]"
- data[n].skill7="<p align='center'><b>"..text[n].full..""
- data[n].points=data[n].points-1
- closeSkills(n)
- Skills(n,n)
- elseif c=="lmao" then
- closeSkills(n)
- end
- end
- --Loops!!!
- function eventLoop(time,remaining)
- if remaining <= 0 then
- if 4 <= mice then
- newMap()
- elseif mice <= 3 then
- tfm.exec.newGame("@6984945")
- end
- end
- if mice <= 3 then
- for n,p in pairs(tfm.get.room.playerList) do
- if canSkills[n] then
- else
- ui.addTextArea(22, "<p align='center'><font size='50'><b><R>"..text[n].waiting.."<br>"..mice.." / 4", n, 120, 130, 560, 139, 0x324650, 0x000000, 0, true)
- end
- end
- else
- ui.removeTextArea(22,nil)
- end
- for n,p in pairs(tfm.get.room.playerList) do
- if canSkills[n] then
- ui.addTextArea(20,"<b><p align='center'>"..data[n].player.." "..text[n].points.." : "..data[data[n].player].points.."",n,200,360,360,22,0,0,0,true)
- end
- data[n].retime=data[n].retime-1
- Hearts(n)
- if data[n].retime==0 and started==true then
- tfm.exec.respawnPlayer(n)
- if idre[n] then tfm.exec.removeImage(idre[n],n) idre[n]=nil end
- ui.removeTextArea(21,n)
- if Warrirors(n) then
- for i,v in pairs(maps) do
- if v.code == tfm.get.room.currentMap then
- tfm.exec.movePlayer(n, v.x, v.y)
- if idre[n] then tfm.exec.removeImage(idre[n],n) idre[n]=nil end
- ui.removeTextArea(21,n)
- end
- end
- else
- tfm.exec.movePlayer(n,X,Y)
- end
- end
- end
- if time >= 3000 and not started then
- started=true
- end
- for n in pairs(tfm.get.room.playerList) do
- for i,cannon in ipairs(toDespawn) do
- if cannon[1] <= os.time()-1500 then
- tfm.exec.removeObject(cannon[2])
- table.remove(toDespawn,i)
- end
- end
- end
- for i in pairs(canFly) do
- canFly[i][2] = canFly[i][2] - 1
- if canFly[i][2] <= 0 then
- canFly[i][1] = false
- end
- end
- for i in pairs(canSprite) do
- canSprite[i][2] = canSprite[i][2] - 1
- if canSprite[i][2] <= 0 then
- canSprite[i][1] = false
- end
- end
- end
- --Chat Commands
- local c={"skills","c"}
- function eventChatCommand(n,cmd)
- local c={}
- for i in cmd:gmatch('[^%s]+') do table.insert(c,i) end
- c[1]=c[1]:lower()
- if cmd:sub(0,6)=="skills" and Dataplayer(cmd:sub(8)) then
- closeSkills(n)
- P = cmd:sub(8,8):upper()..cmd:sub(9):lower()
- Skills(P,n)
- elseif cmd:lower()=="skills" then
- closeSkills(n) Skills(n,n)
- elseif c[1]=="np" and n=="Bodykudo" then
- newMap()
- elseif c[1]=="c" and Warrirors(n) then
- for index,p in pairs(warrirors) do
- if p==n then
- tfm.exec.chatMessage("<V>["..n.."] : <N>"..c[2].."",p)
- elseif p~=n then
- tfm.exec.chatMessage("<CH><["..n.."] : <N>"..c[2].."",p)
- end end
- end
- end
- for i=1,#c do system.disableChatCommandDisplay(c[i],true) end
- if 4 <= mice then
- newMap()
- elseif mice <= 3 then
- tfm.exec.newGame("@6984945")
- for n,p in pairs(tfm.get.room.playerList) do
- ui.addTextArea(22, "<p align='center'><font size='50'><b><R>"..text[n].waiting.."<br>"..mice.." / 4", n, 120, 130, 560, 139, 0x324650, 0x000000, 0, true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement