Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dp={}
- lag=0
- Lives2=600
- icedMouseCost=400
- cakeCost=200
- companionCost=800
- shamanCannonCost=1000
- watermelonCost=500
- mechAnvilCost=800
- rockCost=400
- ultraCannonCost=1000
- nyanCost=400
- local toDespawn = {}
- do
- local addShamanObject = tfm.exec.addShamanObject
- tfm.exec.addShamanObject = function(...)
- toDespawn[#toDespawn + 1] = {
- addShamanObject(...),
- os.time() + 3000
- }
- return toDespawn[#toDespawn][1]
- end
- end
- tfm.exec.disableAllShamanSkills(true)
- tfm.exec.disableMortCommand(true)
- wonCountDown=1
- scores={0,0,0,0,0,0,0,0}
- maps={7455943,7458404}
- powery=320
- powerx=math.random(1600)
- mice=0
- Down=string.byte("S")
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disableAutoScore(true)
- data={}
- text={}
- lang={}
- lang.en={boughtNyan="<J>You bought nyan cat!",nyanInv="<p align='left'>Nyan Cat <J><a href='event:equipNyan'>[Equip]</a></J>",nyan="Nyan Cat<N> - Nyan cat will appear as your attack object when you are the Death. <VP>Worth %s points.<J><a href='event:buyNyan'> [Buy]",boughtUltraCannon="<J>You bought the ultra cannon!",ultraCannonInv="<p align='left'>Ultra Cannon <J><a href='event:equipUltraCannon'>[Equip]</a></J>",ultraCannon="Ultra Cannon<N> - 2 glowing ultra cannons will appear as your attack object when you are the Death. <VP>Worth %s points.<J><a href='event:buyUltraCannon'> [Buy]",boughtRock="<J>You bought the rock anvil!",rock="Rock Anvil<N> - A rock anvil appear as your attack object when you are the Death. <VP>Worth %s points.<J><a href='event:buyRock'> [Buy]",rockInv="<p align='left'>Rock Anvil <J><a href='event:equipRock'>[Equip]</a></J>",mechAnvilInv="<p align='left'>Mechanical Anvil <J><a href='event:equipMechAnvil'>[Equip]</a></J>",boughtMechAnvil="<J>You bought the mechanical anvil!",watermelonInv="<p align='left'>Watermelon Cannon <J><a href='event:equipWatermelon'>[Equip]</a></J>",boughtWatermelon="<J>You bought the watermelon cannon!",mechAnvil="Mechanical Anvil<N> - 2 mechanical anvils will appear as your attack object when you are the Death. <VP>Worth %s points.<J><a href='event:buyMechAnvil'> [Buy]",watermelon="Watermelon Cannon<N> - A watermelon cannon will appear as your attack object when you are the Death. <VP>Worth %s points.<J><a href='event:buyWatermelon'> [Buy]",boughtShamanCannon="<J>You bought the shaman cannon!",shamanCannonInv="<p align='left'>Shaman Cannon <J><a href='event:equipShamanCannon'>[Equip]</a></J>",shamanCannon="Shaman Cannon<N> - 3 shaman cannons will appear as your attack object when you are the Death. <VP>Worth %s points.<J><a href='event:buyShamanCannon'> [Buy]",equip="Equip",need2People="You need 2 people to play",nowHave2Lives="<J>You now have 2 lives on each round!",boughtIcedMouse="<J>You just bought the cake object!",boughtCake="<J>You just bought the cake object!",boughtCompanion="<J>You just bought the companion crate!",companionInv="<p align='left'>Companion Crate <J><a href='event:equipCompanion'>[Equip]</a></J>",companion="Companion Crate<N> - A companion crate will appear as your attack object when you are the Death. <VP>Worth %s points.<J><a href='event:buyCompanion'> [Buy]",inventory2="Inventory",inventory="<p align='center'><font size='20'>INVENTORY</font><br><br><font size='12'><p align='left'>Default Box <a href='event:equipDefault'><J>[Equip]</J></a>",icedMouseInv="<p align='left'>Iced mouse <J><a href='event:equipIcedMouse'>[Equip]</a></J>",cakeInv="<p align='left'>Cake <J><a href='event:equipCake'>[Equip]</a></J>",shop2="Shop",cake="Cake Object<N> - A cake will appear as your attack object when you are the Death. <VP>Worth %s points.<J><a href='event:buyCake'> [Buy]",icedMouse="Iced Mouse Object<N> - An iced mouse will appear as your attack object when you are the Death. <VP>Worth %s points.<J><a href='event:buyIcedMouse'> [Buy]",lives2="2 Lives<N> - After you die your first time on a round, you'll be given another live once. <VP>Worth %s points. <J><a href='event:buy2Lives'>[Buy]",description="Description",points="Points",winsAsRunner="Wins as runner",winsAsDeath="Wins as death",profile2="Profile",rules="Rules</font></font></u><font size='12'>\n\n• Using tricks to glitch the game is not allowed\n\n• You are not allowed to hack just like in any other game.",rules2="Rules",commands="Powerups\n\n<font size='11'>Click - Spawns a random shaman object when you have the role of being a <J>Death</J>.\n\nSpacebar - Makes a large jump followed with an invisible cannon when you have the role of being a <J>Runner</J>. \n\nDown Arrow / S key - Gives you a boost of speed. (Works for both Deaths and Runners)",commands2="Powerups",credits="Credits</font></font><font face='verdana'><font size='11'>\n\n<N>Programming - Fuzzyfirsdog#0000\n\nModule Idea - Reddeathnick#3204\n\nArabic Translations - Bodykudo#0000\n\nPowerup Suggestions - Reddeathnick#3204, Seaqueen2003#000, Mugiwaraloffy#9866\n\nFinding Ways To Remove Hacks - Mariluiss#0000 \n\n<VP>Thank you ^^",credits2="Credits",youCanAttack="<R>Death: <N>You can attack",youCanNotAttack="<R>Death: <N>You can not attack",youCanUsePowerups="<VP>Runner: <N>You can use powerups",youCanNotUsePowerups="<VP>Runner: <N>You can not use powerups",attacked="ATTACKED",youAreARunner="You are a runner",youAreADeath="You are a death",help="In #deathrun there are <J>Deaths</J> and <J>Runners</J>. Deaths should try to kill the mice by clicking to spawn objects, if no runners get into the hole then deaths win! Runners are supposed to use the powerups they are given to get into the hole and escape Deaths. If one runner gets into the hole, runners win.",close="Close",help2="Help",superJump="SUPER JUMP",speed="SPEED",deathsWin="Deaths win!",runnersWin="Runners win!"}
- lang.ar={
- equip="ارتداء",
- need2People="أنت تحتاج لاعبيّن لكي تلعب",
- nowHave2Lives="<J>أنت الآن لديك حيواتان كل جولة",
- boughtIcedMouse="<J>لقد اشتريت الفأر المجمَد!",
- boughtCake="<J>لقد اشتريت صندوق الكعك!",
- boughtCompanion="<J>لقد اشتريت القفص!",
- companionInv="<p align='left'>القفص <J><a href='event:equipCompanion'>[ارتداء]</a></J>",
- companion="القفص<N> - القفص سوف يظهر كهجومك عندما تكون القاتل.<VP>يستحق %s نقطة.<J><a href='event:buyCompanion'> [شراء]",
- inventory2="المخزن",
- inventory="<p align='center'><font size='20'>المخزن</font><br><br><font size='12'><p align='left'>الصندوق العادي <a href='event:equipDefault'><J>[ارتداء]</J></a>",
- icedMouseInv="<p align='left'>الفأر المجمَد <J><a href='event:equipIcedMouse'>[ارتداء]</a></J>",
- cakeInv="<p align='left'>الكعكة <J><a href='event:equipCake'>[ارتداء]</a></J>",
- shop2="المتجر",
- cake="الكعكة<N> - الكعكة سوف تظهر كهجومك عندما تكون القاتل.<VP>تستحق %s نقطة.<J><a href='event:buyCake'> [شراء]",
- icedMouse="الفأر المجمَد<N> - الفأر المجمَد سوف يظهر كهجومك عندما تكون القاتل. <VP>يستحق %s نقطة.<J><a href='event:buyIcedMouse'> [شراء]",
- lives2="حياتان<N> - بعدما تموت لأول مرة في الجولة, سوف يتم إعطائك حياة أخرى فورًا. <VP>تستحق %s نقطة. <J><a href='event:buy2Lives'>[شراء]",
- description="الوصف",
- points="نقاط",
- winsAsRunner="مرات الفوز كراكض",
- winsAsDeath="مرات الفوز كقاتل",
- profile2="الملف الشخصي",
- rules="القواعد</font></font></u><font size='12'>\n\n• استخدام طرق لتخريب اللعبة ليس مسموحًا\n\n• ليس مسموحًا لك استخدام الهكر كباقي الألعاب.",
- rules2="القواعد",
- commands="المقويات\n\n<font size='11'>اضغط - Sلكي تطلق صندوقًا للهجوم عندما تكون <J>القاتل</J>.\n\nالمسافة - تجعلك تقفز طويلًا بالإضافة إلى قذيفة مخفية عندما تكون <J>راكضًا</J>. \n\nزر أسفل / زر S - تعطيك سرعة إضافية. (تعمل لدى القاتل والراكضين)",
- commands2="المقويِات",
- credits="ائتمان</font></font><font face='verdana'><font size='11'>\n\n<N>البرمجة - Fuzzyfirsdog#0000\n\n الترجمة العربية - Bodykudo#0000\n\nفكرة النمط - Reddeathnick#3204\n\nاقتراح المقويِّات - Reddeathnick#3204, Seaqueen2003#000, Mugiwaraloffy#9866\n\nإيجاد طريق لمنع الهكرز - Mariluiss#0000 \n\n<VP>شكرًا لكم ^^",
- credits2="الائتمان",
- youCanAttack="<R>القاتل: <N>يمكنك الهجوم",
- youCanNotAttack="<R>القاتل: <N>لا يمكنك الهجوم",
- youCanUsePowerups="<VP>الراكض: <N>يمكنك استعمال المقويِّات",
- youCanNotUsePowerups="<VP>الراكض: <N>لا يمكنك استعمال المقويِّات",
- attacked="هجم",
- youAreARunner="أنت راكض",
- youAreADeath="أنت قاتل",
- help="في #deathrun يوجد <J>قاتلين</J> و <J>الراكضين</J>. القاتلين يجب أن يحاولوا قتل الراكضين عبر إطلاق أدوات عبر الضغط على الشاشة, إذا لم يفز أي راكض سيفوز القاتل! الراكضين يمكنهم استعمال المقويِّات. إذا وصل راكض واحد للجحر, يفوز الراكضين.",
- close="إغلاق",
- help2="المساعدة",
- superJump="القفزة الخارقة",
- speed="السرعة",
- deathsWin="فاز القاتل!",
- runnersWin="فاز الراكضين!"
- }
- roles={"Death","Runner"}
- death=0
- runner=0
- miceInHole=0
- function setLang(n)
- text[n]=lang[tfm.get.room.playerList[n].community] or lang.en
- end
- function bindMouse()
- for n,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(n, 0, true, true)
- tfm.exec.bindKeyboard(n, 1, true, true)
- tfm.exec.bindKeyboard(n, 2, true, true)
- tfm.exec.bindKeyboard(n, 3, true, true)
- tfm.exec.bindKeyboard(n, 32, true, true)
- system.bindMouse(n,true)
- end
- end
- bindMouse()
- tfm.exec.newGame(maps[math.random(#maps)])
- names={}
- theRole=1
- currentRole=roles[math.floor(theRole)]
- function changeCurrentRole()
- end
- numbs={1,2}
- function showTabs(n)
- ui.addTextArea(130, "", n, -432, -802, 3625, 953, 0xff0000, 0x00a2ff, 0.6, true)
- ui.addTextArea(15, "<VP><a href='event:help'><font size='12'>"..text[n].help2.."</a> | <a href='event:credits'>"..text[n].credits2.." </a>|<a href='event:commands'> "..text[n].commands2.." </a>|<a href='event:rules'> "..text[n].rules2, n, 10, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
- ui.addTextArea(155, "<font size='12'><VP><a href='event:inventory'>"..text[n].inventory2.."</a> | <a href='event:shop'>"..text[n].shop2.." | <a href='event:profile'>"..text[n].profile2, n, 630, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
- end
- function setData(n)
- data[n]=
- {
- nyan=false,
- ultraCannon=false,
- rock=false,
- mechAnvil=false,
- watermelon=false,
- shamanCannon=false,
- companion=false,
- isInRoom=true,
- cake=false,
- objects=2,
- lives2=false,
- normalLives=1,
- lives=1,
- icedMouse=false,
- winsAsRunner=0,
- winsAsDeath=0,
- facingx=85,
- name=n,
- role="Runner",
- points=9000,
- spawnLimit=-1,
- ableToShoot=0,
- ableToShoot2=0,
- pointsAndScore="",
- inventory=text[n].inventory
- }
- end
- function inventory(n)
- ui.addTextArea(152, "", n, 510, 96, 286, 290, 0x00ff6a, 0x047529, 1, true)
- ui.addTextArea(92, "<p align='center'><font size='20'>"..text[n].inventory.."</font>\n", n, 515, 101, 276, 279, 0x034511, 0x005219, 1, true)
- ui.addTextArea(222, "<p align='center'><font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 515, 343, 276, 36, 0x034511, 0x005219, 1, true)
- end
- for n,player in pairs(tfm.get.room.playerList) do
- setLang(n)
- changeCurrentRole()
- mice=mice+1
- table.insert(names,n)
- showTabs(n)
- setData(n)
- data[n].pointsAndScore=data[n].name.." "..data[n].points
- table.insert(scores,data[n].points)
- showTabs(n)
- tfm.exec.lowerSyncDelay(n)
- table.insert(dp,n)
- end
- function Dp(name)
- name = name:sub(1,1):upper()..name:sub(2):lower()
- for i,dp in ipairs(dp) do
- if name==dp then
- return true
- end
- end
- return false
- end
- function shopPage1(n)
- ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
- ui.addTextArea(25, "<CE>"..string.format(text[n].lives2,Lives2), n, 500, 123, 270, 46, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(19, "<CE>"..string.format(text[n].icedMouse,icedMouseCost), n, 500, 182, 270, 46, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(110, "<CE>"..string.format(text[n].cake,cakeCost), n, 500, 241, 270, 47, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(222, "<p align='center'><font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 494, 296, 282, 36, 0x59442c, 0x59442c, 1, true)
- ui.addTextArea(92, "<G>«", n, 498, 310, 19, 18, 0x324650, 0x000000, 1, true)
- ui.addTextArea(152, "<a href='event:nextTo2'>»", n, 752, 310, 19, 18, 0x324650, 0x000000, 1, true)
- end
- function shopPage2(n)
- ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
- ui.addTextArea(25, "<CE>"..string.format(text[n].companion,companionCost), n, 500, 123, 270, 46, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(19, "<CE>"..string.format(text[n].shamanCannon,shamanCannonCost), n, 500, 182, 270, 46, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(110, "<CE>"..string.format(text[n].watermelon,watermelonCost), n, 500, 241, 270, 47, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(222, "<p align='center'><font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 494, 296, 282, 36, 0x59442c, 0x59442c, 1, true)
- ui.addTextArea(92, "<a href='event:backTo1'>«", n, 498, 310, 19, 18, 0x324650, 0x000000, 1, true)
- ui.addTextArea(152, "<a href='event:nextTo3'>»", n, 752, 310, 19, 18, 0x324650, 0x000000, 1, true)
- end
- function shopPage3(n)
- ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
- ui.addTextArea(25, "<CE>"..string.format(text[n].mechAnvil,mechAnvilCost), n, 500, 123, 270, 46, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(19, "<CE>"..string.format(text[n].rock,rockCost), n, 500, 182, 270, 46, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(110, "<CE>"..string.format(text[n].ultraCannon,ultraCannonCost), n, 500, 241, 270, 47, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(222, "<p align='center'><font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 494, 296, 282, 36, 0x59442c, 0x59442c, 1, true)
- ui.addTextArea(92, "<a href='event:backTo2'>«", n, 498, 310, 19, 18, 0x324650, 0x000000, 1, true)
- ui.addTextArea(152, "<a href='event:nextTo4'>»", n, 752, 310, 19, 18, 0x324650, 0x000000, 1, true)
- end
- function shopPage4(n)
- ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
- ui.addTextArea(25, "<CE>"..string.format(text[n].nyan,nyanCost), n, 500, 123, 270, 46, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(19, "<CE>", n, 500, 182, 270, 46, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(110, "<CE>", n, 500, 241, 270, 47, 0x302315, 0x59442c, 1, true)
- ui.addTextArea(222, "<p align='center'><font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 494, 296, 282, 36, 0x59442c, 0x59442c, 1, true)
- ui.addTextArea(92, "<a href='event:backTo3'>«", n, 498, 310, 19, 18, 0x324650, 0x000000, 1, true)
- ui.addTextArea(152, "<G>»", n, 752, 310, 19, 18, 0x324650, 0x000000, 1, true)
- end
- n1=scores[math.floor(1)]
- n2=scores[math.floor(2)]
- n3=scores[math.floor(3)]
- print(n1)
- print(n2)
- print(n3)
- function findRoles(n)
- for n,player in pairs(tfm.get.room.playerList) do
- if data[n].role=="Death" then
- tfm.exec.movePlayer(n,150,30,false,0,0,false)
- elseif data[n].role=="Runner" then
- tfm.exec.movePlayer(n,70,300,false,0,0,false)
- end
- end
- end
- function findRolesNewPlayer(n)
- if data[n].role=="Death" then
- tfm.exec.movePlayer(n,150,30,false,0,0,false)
- elseif data[n].role=="Runner" then
- tfm.exec.movePlayer(n,70,300,false,0,0,false)
- end
- end
- a={}
- function eventNewPlayer(n)
- setLang(n)
- print("yooy")
- bindMouse()
- mice=mice+1
- if not data[n] then
- table.insert(dp,n)
- setData(n)
- end
- data[n].isInRoom=true
- showTabs(n)
- table.insert(names,n)
- findRolesNewPlayer(n)
- tfm.exec.respawnPlayer(n)
- end
- function addToRoleNumber()
- for n,player in pairs(tfm.get.room.playerList) do
- if data[n].role=="Death" then
- death=death+1
- end
- if data[n].role=="Runner" then
- runner=runner+1
- end
- findRoles(n)
- end
- end
- tfm.exec.newGame(maps[math.random(#maps)])
- amountInA=0
- function punishGlitchers()
- if a then
- for i=1,amountInA do
- data[a[math.floor(amountInA)]].role="Runner"
- end
- end
- end
- randomDeath=names[math.floor(math.random(mice))]
- data[randomDeath].role="Death"
- lastDeath=""
- function eventNewGame()
- lag=0
- local toDespawn = {}
- do
- local addShamanObject = tfm.exec.addShamanObject
- tfm.exec.addShamanObject = function(...)
- toDespawn[#toDespawn + 1] = {
- addShamanObject(...),
- os.time() + 3000
- }
- return toDespawn[#toDespawn][1]
- end
- end
- time=0
- theRole=1
- powerx=math.random(1600)
- runner=0
- death=0
- mice=0
- for n,player in pairs(tfm.get.room.playerList) do
- data[n].lives=data[n].normalLives
- mice=mice+1
- changeCurrentRole()
- data[n].role="Runner"
- data[n].ableToShoot=0
- data[n].ableToShoot2=0
- data[n].spawnLimit=-1
- end
- mice=mice
- if lastDeath==randomDeath then
- randomDeath=names[math.random(math.floor(mice))]
- end
- if data[randomDeath].isInRoom==true then
- data[randomDeath].role="Death"
- elseif data[randomDeath].isInRoom==false then
- randomDeath=names[math.random(math.floor(mice))]
- end
- lastDeath=randomDeath
- addToRoleNumber()
- findRoles(n)
- print("Last death: "..lastDeath)
- end
- locationx=0
- locationy=0
- objects={54}
- function eventMouse(n,x,y)
- if data[n].role=="Death" and (math.floor(time)>3) and lag<2 and data[n].spawnLimit<1 and mice>1 then
- lag=lag+1
- if lag>3 then
- randomDeath=names[math.floor(math.random(mice))]
- data[randomDeath].role="Death"
- local toDespawn = {}
- table.insert(a,n)
- amountInA=amountInA+1
- do
- local addShamanObject = tfm.exec.addShamanObject
- tfm.exec.addShamanObject = function(...)
- toDespawn[#toDespawn + 1] = {
- addShamanObject(...),
- os.time() + 0000
- }
- return toDespawn[#toDespawn][1]
- end
- end
- ui.addTextArea(133, "<R><font size='17'><b>USING LAG TRICKS OR HACKS ARE NOT ALLOWED IN THIS ROOM", n, 143, 150, 534, 91, 0x324650, 0x000000, 1, true)
- time=-0.5
- tfm.exec.newGame(maps[math.random(#maps)])
- eventNewGame()
- end
- data[n].spawnLimit=3
- attacked=0
- attacked=n
- for n,player in pairs(tfm.get.room.playerList) do
- ui.addTextArea(2, "<font color='#FF9000'><font size='30'><b>"..attacked.." "..text[n].attacked, n, x, y, 425, 100, 0x324650, 0x000000, 0, false)
- end
- locationx=x
- locationy=y
- if not (data[n].objects==1704) and not (data[n].objects==1002) and not (data[n].objects==1706) and not (data[n].objects==1709) then
- tfm.exec.addShamanObject(data[n].objects,locationx,locationy,0,0,20,false)
- end
- if data[n].objects==1704 then
- tfm.exec.addShamanObject(data[n].objects,locationx,locationy,180,0,20,false)
- tfm.exec.addShamanObject(data[n].objects,locationx-20,locationy,180,0,20,false)
- tfm.exec.addShamanObject(data[n].objects,locationx+20,locationy,180,0,20,false)
- elseif data[n].objects==1706 then
- tfm.exec.addShamanObject(data[n].objects,locationx,locationy,180,0,20,false)
- elseif data[n].objects==1709 then
- tfm.exec.addShamanObject(data[n].objects,locationx+5,locationy,160,10,120,false)
- tfm.exec.addShamanObject(data[n].objects,locationx-5,locationy,-160,10,20,false)
- elseif data[n].objects==1002 then
- tfm.exec.addShamanObject(data[n].objects,locationx-5,locationy,180,0,20,false)
- tfm.exec.addShamanObject(data[n].objects,locationx+5,locationy,180,0,20,false)
- end
- tfm.exec.displayParticle(0,locationx,locationy,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,nil)
- tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,nil)
- tfm.exec.displayParticle(0,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(0,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
- tfm.exec.displayParticle(2,locationx,locationy,1,-3,1,-3,nil)
- tfm.exec.displayParticle(2,locationx,locationy,1,1,3,1,nil)
- tfm.exec.displayParticle(2,locationx,locationy,-1,3,-1,3,nil)
- tfm.exec.displayParticle(2,locationx,locationy,-1,-1,-3,-1,nil)
- tfm.exec.displayParticle(5,locationx,locationy,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(5,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(5,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(5,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
- canShoot()
- end
- end
- time=0
- number1=0
- number2=0
- number3=0
- function eventPlayerGetCheese(n)
- randomDeath=n
- print(n)
- if data[n].role=="Runner" and mice>1 then
- tfm.exec.chatMessage(text[n].runnersWin,n)
- time=119.5
- data[n].points=data[n].points+15
- for n,player in pairs(tfm.get.room.playerList) do
- if data[n].role=="Runner" then
- data[n].points=data[n].points+5
- data[n].winsAsRunner=data[n].winsAsRunner+1
- wonCountDown=-5
- end
- table.insert(scores,data[n].points)
- ui.addTextArea(133, "<b><font size='40'><font color='#0ff164'>"..text[n].runnersWin, n, 296, 282, 351, 189, 0xd41717, 0x000000, 0, true)
- end
- end
- function eventPlayerWon(n)
- print("yo")
- randomDeath=n
- if data[n].role=="Death" then
- time=117
- end
- for n,player in pairs(tfm.get.room.playerList) do
- ui.addTextArea(133, "<b><font size='40'><font color='#d40000'>"..text[n].deathsWin, n, 296, 282, 351, 189, 0xd41717, 0x000000, 0, true)
- tfm.exec.chatMessage(text[n].deathsWin,n)
- if data[n].role=="Death" then
- data[n].winsAsDeath=data[n].winsAsDeath+1
- data[n].points=data[n].points+10
- end
- randomDeath=names[math.floor(math.random(mice))]
- end
- tfm.exec.newGame(maps[math.random(#maps)])
- print("Runners win!")
- end
- end
- function explosions()
- tfm.exec.displayParticle(0,locationx,locationy,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,nil)
- tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,nil)
- tfm.exec.displayParticle(0,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(0,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
- tfm.exec.displayParticle(2,locationx,locationy,1,-3,1,-3,nil)
- tfm.exec.displayParticle(2,locationx,locationy,1,1,3,1,nil)
- tfm.exec.displayParticle(2,locationx,locationy,-1,3,-1,3,nil)
- tfm.exec.displayParticle(2,locationx,locationy,-1,-1,-3,-1,nil)
- tfm.exec.displayParticle(5,locationx,locationy,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(5,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(5,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(5,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
- tfm.exec.explosion(locationx, locationy, 40, 40, false)
- end
- function canShoot()
- for n,player in pairs(tfm.get.room.playerList) do
- if data[n].spawnLimit<1 and data[n].role=="Death" then
- ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanAttack, n, 270, 23, 240, 36, 0x00a611, 0x338500, 0.6, true)
- end
- if not (data[n].spawnLimit<1) and data[n].role=="Death" then
- ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanNotAttack, n, 270, 23, 240, 36, 0x802c2c, 0x6e0000, 0.6, true)
- end
- if data[n].spawnLimit<1 and data[n].role=="Runner" then
- ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanUsePowerups, n, 270, 23, 240, 36, 0x00a611, 0x338500, 0.6, true)
- end
- if not (data[n].spawnLimit<1) and data[n].role=="Runner" then
- ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanNotUsePowerups, n, 270, 23, 240, 36, 0x802c2c, 0x6e0000, 0.6, true)
- end
- end
- end
- function removeObjectAfterTime()
- for k, v in ipairs(toDespawn) do
- if os.time() > v[2] then
- tfm.exec.removeObject(v[1])
- table.remove(toDespawn, k)
- end
- end
- end
- function eventLoop()
- lag=0
- removeObjectAfterTime()
- if mice<2 then
- for n,player in pairs(tfm.get.room.playerList) do
- ui.addTextArea(202, "<p align='center'><R><b><font size='20'>"..text[n].need2People, n, 137, 166, 471, 122, 0x404040, 0x000000, 1, true)
- end
- elseif mice>1 then
- ui.removeTextArea(202,nil)
- wonCoundown=wonCountDown+0.5
- ui.addTextArea(13, "<font size='20'>"..math.floor(time).." / 120s", nil, 316, 73, 251, 32, 0x324650, 0x000000, 0, true)
- canShoot()
- for n,player in pairs(tfm.get.room.playerList) do
- data[n].spawnLimit=data[n].spawnLimit-0.5
- if tfm.get.room.playerList[n].y>100 and data[n].role=="Death" then
- tfm.exec.movePlayer(n,150,30,false,0,0,false)
- elseif tfm.get.room.playerList[n].y<100 and data[n].role=="Runner" then
- tfm.exec.movePlayer(n,70,300,false,0,0,false)
- elseif tfm.get.room.playerList[n].x>600 and time<5 then
- tfm.exec.killPlayer(n)
- tfm.exec.movePlayer(n,150,tfm.get.room.playerList[n].y,false,0,0,false)
- tfm.exec.respawnPlayer(n)
- end
- if data[n].spawnLimit==0 then
- ui.removeTextArea(2,nil)
- system.bindMouse(n, true)
- ui.removeTextArea(11,n)
- end
- end
- time=time+.5
- if time==120 then
- tfm.exec.newGame(maps[math.random(#maps)])
- print("Deaths win!")
- time=-0.5
- elseif time==0 then
- for n,player in pairs(tfm.get.room.playerList) do
- findRoles(n)
- end
- elseif time==5 then
- for n,player in pairs(tfm.get.room.playerList) do
- ui.removeTextArea(0,nil)
- ui.removeTextArea(2,nil)
- system.bindMouse(n, true)
- ui.removeTextArea(133,n)
- end
- end
- end
- end
- function eventKeyboard(n, key, down, x,y)
- --FACING
- if key==0 then
- data[n].facing=-85
- end
- if key==2 then
- data[n].facing=85
- print(-data[n].facing)
- end
- if time>3 and mice>1 then
- --AUTOMATIC POWERUPS
- if key==32 and data[n].role=="Runner" and data[n].spawnLimit<0 then
- ui.addTextArea(11, "<b><font size='30'><font color='#F0F000'>"..text[n].superJump, n, x-50, y-50, 379, 67, 0x324650, 0x000000, 0, false)
- tfm.exec.displayParticle(0,x,y,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,nil)
- tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,nil)
- tfm.exec.displayParticle(0,x,y,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(0,x,y,0.5,-0.5,0.5,-0.5,nil)
- tfm.exec.displayParticle(2,x,y,1,-3,1,-3,nil)
- tfm.exec.displayParticle(2,x,y,1,1,3,1,nil)
- tfm.exec.displayParticle(2,x,y,-1,3,-1,3,nil)
- tfm.exec.displayParticle(2,x,y,-1,-1,-3,-1,nil)
- tfm.exec.displayParticle(5,x,y,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(5,x,y,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(5,x,y,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(5,x,y,0.5,-0.5,0.5,-0.5,nil)
- tfm.exec.movePlayer(n,x,y,false,0,-80,false)
- tfm.exec.displayParticle(0,x,y,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(0,x,locationy,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(10,x,y,3,-3,3,-3,nil)
- tfm.exec.displayParticle(10,x,y,-3,3,-3,3,nil)
- tfm.exec.displayParticle(10,x,y,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(10,x,y,0.5,-0.5,0.5,-0.5,nil)
- tfm.exec.displayParticle(2,x,y,1,-3,1,-3,nil)
- tfm.exec.displayParticle(10,x,y,1,1,3,1,nil)
- tfm.exec.displayParticle(12,x,y,-1,3,-1,3,nil)
- tfm.exec.displayParticle(12,x,y,-1,-1,-3,-1,nil)
- tfm.exec.displayParticle(5,x,y,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(5,x,y,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(5,x,y,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(5,x,y,0.5,-0.5,0.5,-0.5,nil)
- tfm.exec.bindKeyboard(n, 32, false, false)
- tfm.exec.addShamanObject(17,x,y,60,50,-10,true)
- data[n].spawnLimit=3.5
- data[n].ableToShoot=0
- canShoot()
- elseif (key==3) and data[n].spawnLimit<0 then
- ui.addTextArea(11, "<b><font size='30'><font color='#F0F000'>"..text[n].speed, n, x-50, y-50, 379, 67, 0x324650, 0x000000, 0, false)
- tfm.exec.displayParticle(0,x,y,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(0,x,y,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(2,x,y,3,-3,3,-3,nil)
- tfm.exec.displayParticle(2,x,y,-3,3,-3,3,nil)
- tfm.exec.displayParticle(0,x,y,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(0,x,y,0.5,-0.5,0.5,-0.5,nil)
- tfm.exec.displayParticle(2,x,y,1,-3,1,-3,nil)
- tfm.exec.displayParticle(2,x,y,1,1,3,1,nil)
- tfm.exec.displayParticle(2,x,y,-1,3,-1,3,nil)
- tfm.exec.displayParticle(2,x,y,-1,-1,-3,-1,nil)
- tfm.exec.displayParticle(5,x,y,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(5,x,y,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(5,x,y,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(5,x,y,0.5,-0.5,0.5,-0.5,nil)
- tfm.exec.movePlayer(n,x,y,false,data[n].facing,0,true)
- tfm.exec.displayParticle(0,x,y,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(10,locationx,locationy,3,-3,3,-3,nil)
- tfm.exec.displayParticle(10,locationx,locationy,-3,3,-3,3,nil)
- tfm.exec.displayParticle(10,x,y,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(10,x,y,0.5,-0.5,0.5,-0.5,nil)
- tfm.exec.displayParticle(2,x,y,1,-3,1,-3,nil)
- tfm.exec.displayParticle(10,x,y,1,1,3,1,nil)
- tfm.exec.displayParticle(12,x,y,-1,3,-1,3,nil)
- tfm.exec.displayParticle(12,x,y,-1,-1,-3,-1,nil)
- tfm.exec.displayParticle(5,x,y,0.5,0.5,0.5,0.5,nil)
- tfm.exec.displayParticle(5,x,y,-0.5,-0.5,-0.5,-0.5,nil)
- tfm.exec.displayParticle(5,x,y,-0.5,0.5,-0.5,0.5,nil)
- tfm.exec.displayParticle(5,x,y,0.5,-0.5,0.5,-0.5,nil)
- data[n].spawnLimit=3.5
- data[n].ableToShoot=0
- canShoot()
- end
- end
- end
- function removeTextAreas(n)
- ui.removeTextArea(18,n)
- ui.removeTextArea(19,n)
- ui.removeTextArea(110,n)
- ui.removeTextArea(222,n)
- ui.removeTextArea(25,n)
- ui.removeTextArea(152,n)
- ui.removeTextArea(92,n)
- end
- n=0
- function eventTextAreaCallback(id,p,a)
- n=p
- if a=="close" then
- removeTextAreas(n)
- elseif a=="help" then
- removeTextAreas(n)
- --TABS
- ui.addTextArea(110, "", n, 498, 165, 266, 217, 0x324650, 0x000000, 1, true)
- ui.addTextArea(18, "<font size='14'><font face='calibri'>"..text[n].help, n, 504, 172, 254, 179, 0x000000, 0x000000, 1, true)
- ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close, n, 504, 338, 254, 36, 0x000000, 0xffffff, 1, true)
- elseif a=="credits" then
- removeTextAreas(n)
- ui.addTextArea(18, "<p align='center'><font size='16'><font face='verdana'><J>"..text[n].credits, n, 504, 142, 254, 194, 0x4f4132, 0x695743, 1, true)
- ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close, n, 504, 343, 254, 36, 0x4f4132, 0x30291a, 1, true)
- elseif a=="commands" then
- removeTextAreas(n)
- ui.addTextArea(18, "<p align='center'><font size='14'><font face='verdana'>"..text[n].commands, n, 545, 111, 220, 238, 0x50498c, 0x05014f, 1, true)
- ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close, n, 545, 346, 220, 36, 0x284391, 0x0f0759, 1, true)
- elseif a=="rules" then
- removeTextAreas(n)
- ui.addTextArea(18, "<p align='center'><u><font size='17'><font face='calibri'>"..text[n].rules, n, 562, 132, 201, 230, 0xab0000, 0xff4545, 1, true)
- ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close, n, 562, 329, 201, 36, 0xa60000, 0xff0000, 1, true)
- elseif a=="profile" then
- removeTextAreas(n)
- ui.addTextArea(110, "<p align='center'><font size='12'><font color='#000000'><font face='calibri'>"..n, n, 551, 89, 233, 278, 0xffd900, 0x075214, 1, true)
- ui.addTextArea(18, "<p align='left'><font size='13'><font face='calibri'><font color='#FFFFFF'>"..text[n].points..": <br>"..data[n].points.." <br><br>"..text[n].winsAsDeath..": <br>"..data[n].winsAsDeath.."<br><br>"..text[n].winsAsRunner..": <br>"..data[n].winsAsRunner, n, 557, 136, 105, 226, 0x966a03, 0x294d12, 1, true)
- ui.addTextArea(19, "<p align='left'><font size='13'><font face='calibri'><font color='#FFFFFF'>"..text[n].description, n, 675, 136, 104, 226, 0x966a03, 0x294d12, 1, true)
- ui.addTextArea(25, "<p align='center'><font size='13'><a href='event:close'><font color='#505050'>"..text[n].close, n, 551, 368, 233, 36, 0xffd900, 0x075214, 1, true)
- end
- if a=="inventory" then
- removeTextAreas(n)
- ui.addTextArea(152, "", n, 510, 96, 286, 290, 0x00ff6a, 0x047529, 1, true)
- ui.addTextArea(92, "<p align='center'><font size='20'>"..data[n].inventory, n, 515, 101, 276, 279, 0x034511, 0x005219, 1, true)
- ui.addTextArea(222, "<p align='center'><font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 515, 343, 276, 36, 0x034511, 0x005219, 1, true)
- end
- if a=="equipDefault" then
- data[n].objects=2
- elseif a=="equipNyan" then
- data[n].objects=212
- elseif a=="equipUltraCannon" then
- data[n].objects=1709
- elseif a=="equipCompanion" then
- data[n].objects=61
- elseif a=="equipShamanCannon" then
- data[n].objects=1704
- elseif a=="equipWatermelon" then
- data[n].objects=1706
- elseif a=="equipIcedMouse" then
- data[n].objects=54
- elseif a=="equipCake" then
- data[n].objects=207
- elseif a=="equipMechAnvil" then
- data[n].objects=1002
- elseif a=="equipRock" then
- data[n].objects=1003
- elseif a=="shop" then
- shopPage1(n)
- elseif a=="backTo1" then
- shopPage1(n)
- elseif a=="nextTo2" then
- shopPage2(n)
- elseif a=="backTo2" then
- shopPage2(n)
- elseif a=="nextTo3" then
- shopPage3(n)
- elseif a=="backTo3" then
- shopPage3(n)
- elseif a=="nextTo4" then
- shopPage4(n)
- end
- --SHOP ITEMS
- if a=="buyIcedMouse" and (data[n].points>icedMouseCost or data[n].points==icedMouseCost) and data[n].icedMouse==false then
- data[n].inventory = data[n].inventory.."\n"..text[n].icedMouseInv
- data[n].objects=54
- tfm.exec.chatMessage(text[n].boughtIcedMouse,n)
- data[n].icedMouse=true
- data[n].points=data[n].points-icedMouseCost
- elseif a=="buyNyan" and (data[n].points>nyanCost or data[n].points==nyanCost) and data[n].nyan==false then
- data[n].inventory = data[n].inventory.."\n"..text[n].nyanInv
- data[n].objects=212
- tfm.exec.chatMessage(text[n].boughtNyan,n)
- data[n].nyan=true
- data[n].points=data[n].points-nyanCost
- elseif a=="buyUltraCannon" and (data[n].points>ultraCannonCost or data[n].points==ultraCannonCost) and data[n].ultraCannon==false then
- data[n].inventory = data[n].inventory.."\n"..text[n].ultraCannonInv
- data[n].objects=1709
- tfm.exec.chatMessage(text[n].boughtUltraCannon,n)
- data[n].ultraCannon=true
- data[n].points=data[n].points-ultraCannonCost
- elseif a=="buyCake" and (data[n].points>cakeCost or data[n].points==cakeCost) and data[n].cake==false then
- data[n].inventory=data[n].inventory.."\n"..text[n].cakeInv
- data[n].objects=207
- tfm.exec.chatMessage(text[n].boughtCake,n)
- data[n].cake=true
- data[n].points=data[n].points-cakeCost
- elseif a=="buyMechAnvil" and (data[n].points>mechAnvilCost or data[n].points==mechAnvilCost) and data[n].mechAnvil==false then
- data[n].inventory=data[n].inventory.."\n"..text[n].mechAnvilInv
- data[n].objects=1002
- tfm.exec.chatMessage(text[n].boughtMechAnvil,n)
- data[n].mechAnvil=true
- data[n].points=data[n].points-mechAnvilCost
- elseif a=="buyRock" and (data[n].points>rockCost or data[n].points==rockCost) and data[n].rock==false then
- data[n].inventory=data[n].inventory.."\n"..text[n].rockInv
- data[n].objects=1003
- tfm.exec.chatMessage(text[n].boughtRock,n)
- data[n].rock=true
- data[n].points=data[n].points-rockCost
- elseif a=="buy2Lives" and (data[n].points>Lives2 or data[n].points==Lives2) and data[n].lives2==false then
- data[n].normalLives=2
- tfm.exec.chatMessage(text[n].nowHave2Lives,n)
- print(data[n].lives)
- data[n].points=data[n].points-Lives2
- data[n].lives2=true
- elseif a=="buyCompanion" and (data[n].points>companionCost or data[n].points==companionCost) and data[n].companion==false then
- data[n].objects=61
- data[n].inventory = data[n].inventory.."\n"..text[n].companionInv
- data[n].companion=true
- data[n].points=data[n].points-companionCost
- tfm.exec.chatMessage(text[n].boughtCompanion,n)
- elseif a=="buyShamanCannon" and (data[n].points>shamanCannonCost or data[n].points==shamanCannonCost) and data[n].shamanCannon==false then
- data[n].objects=1704
- data[n].inventory = data[n].inventory.."\n"..text[n].shamanCannonInv
- data[n].shamanCannon=true
- data[n].points=data[n].points-shamanCannonCost
- tfm.exec.chatMessage(text[n].boughtshamanCannon,n)
- elseif a=="buyWatermelon" and (data[n].points>watermelonCost or data[n].points==watermelonCost) and data[n].watermelon==false then
- data[n].objects=1706
- data[n].inventory = data[n].inventory.."\n"..text[n].watermelonInv
- data[n].watermelon=true
- data[n].points=data[n].points-watermelonCost
- tfm.exec.chatMessage(text[n].boughtWatermelon,n)
- end
- end
- function eventPlayerDied(n)
- data[n].lives=data[n].lives-1
- if data[n].role=="Runner" and data[n].lives==1 then
- tfm.exec.respawnPlayer(n)
- end
- if data[n].role=="Runner" and data[n].lives==0 then
- runner=runner-1
- print(runner)
- end
- if runner<1 and mice>1 then
- tfm.exec.newGame(maps[math.random(#maps)])
- for n,player in pairs(tfm.get.room.playerList) do
- ui.addTextArea(133, "<b><font size='40'><font color='#d40000'>"..text[n].deathsWin, n, 296, 282, 351, 189, 0xd41717, 0x000000, 0, true)
- tfm.exec.chatMessage(text[n].deathsWin,n)
- if data[n].role=="Death" then
- data[n].points=data[n].points+10
- data[n].winsAsDeath=data[n].winsAsDeath+1
- end
- end
- wonCountDown=-5
- print("hi")
- end
- if death<1 then
- tfm.exec.newGame(maps[math.random(#maps)])
- tfm.exec.disableAutoShaman(true)
- time=0
- for n,player in pairs(tfm.get.room.playerList) do
- wonCountdown=-5
- changeCurrentRole()
- data[n].role="Runner"
- end
- data[names[math.floor(math.random(mice))]].role="Death"
- end
- end
- print(death)
- print(runner)
- print(mice)
- function eventPlayerLeft(n)
- names={}
- for n in pairs(tfm.get.room.playerList) do
- table.insert(names,n)
- end
- data[n].isInRoom=false
- mice=mice-1
- if n==randomDeath then
- randomDeath=names[math.random(math.floor(mice))]
- end
- if data[n].role=="Runner" then
- runner=runner-1
- elseif data[n].role=="Death" then
- death=death-1
- end
- end
- for n,player in pairs(tfm.get.room.playerList) do
- data[n].pointsAndScore=data[n].points.." "..data[n].name
- end
- function eventSummoningEnd(n,id,x,y,angle,t)
- print(id)
- tfm.exec.removeObject(t.id)
- end
- system.disableChatCommandDisplay("profil",true)
- function eventChatCommand(n, c)
- if c:sub(0,7)=="profile" and Dp(c:sub(9)) then
- l = c:sub(9,9):upper()..c:sub(10):lower()
- removeTextAreas(n)
- ui.addTextArea(110, "<p align='center'><font size='12'><font color='#000000'><font face='calibri'>"..l, n, 551, 89, 233, 278, 0xffd900, 0x075214, 1, true)
- ui.addTextArea(18, "<p align='left'><font size='13'><font face='calibri'><font color='#FFFFFF'>"..text[n].points..": <br>"..data[l].points.." <br><br>"..text[n].winsAsDeath..": <br>"..data[l].winsAsDeath.."<br><br>"..text[n].winsAsRunner..": <br>"..data[l].winsAsRunner, n, 557, 136, 105, 226, 0x966a03, 0x294d12, 1, true)
- ui.addTextArea(19, "<p align='left'><font size='13'><font face='calibri'><font color='#FFFFFF'>"..text[n].description, n, 675, 136, 104, 226, 0x966a03, 0x294d12, 1, true)
- ui.addTextArea(25, "<p align='center'><font size='13'><a href='event:close'><font color='#505050'>"..text[n].close, n, 551, 368, 233, 36, 0xffd900, 0x075214, 1, true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment