Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- settings --
- Toxic_bomb = 75 -- radius of poison bomb range
- Freeze_bomb = 75 -- r of freeze bomb range
- Explosion_bomb = 100
- throw_raduisX = 60 -- throw range x
- throw_raduisY = 30 -- throw range y
- lobbyAntiThrow = 5
- local timer = {}
- local tox
- local ice
- local gEquip = {}
- local fEquip = {}
- local lEquip = {}
- ----------------
- local wait
- local wait2
- local maptime
- local thrower
- local bombs = {}
- local Gas = {}
- local Lava = {}
- local Freeze = {}
- local FlyTimer = {}
- local DashTimer = {}
- local winner = {}
- local Maps = {
- [[<C><P MEDATA="0,4:1,4:2,4;;;;-0;0:::1-"/><Z><S><S T="19" X="10" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="790" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="400" Y="410" L="20" H="800" P="0,0,0.3,0,90,0,0,0" m=""/><S T="12" X="218" Y="179" L="20" H="20" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18a9ab615ae.png"/><S T="12" X="353" Y="79" L="20" H="20" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18a9ab615ae.png"/><S T="12" X="488" Y="179" L="20" H="20" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18a9ab615ae.png"/><S T="12" X="583" Y="289" L="20" H="20" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18a9ab615ae.png"/><S T="12" X="353" Y="289" L="20" H="20" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18a9ab615ae.png"/><S T="12" X="123" Y="289" L="20" H="20" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18a9ab615ae.png"/><S T="12" X="265" Y="190" L="95" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="400" Y="90" L="95" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="535" Y="190" L="95" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="630" Y="300" L="95" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="400" Y="300" L="95" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="170" Y="300" L="95" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="2" X="670" Y="283" L="15" H="15" P="0,0,0,1.2,0,0,0,0"/><S T="2" X="130" Y="283" L="15" H="15" P="0,0,0,1.2,0,0,0,0"/></S><D><P X="0" Y="0" T="257" P="0,0"/><DS X="402" Y="185"/></D><O/><L/></Z></C>]],
- [[<C><P MEDATA=";;;;-0;0:::1-"/><Z><S><S T="12" X="5" Y="5" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,14e78118c13.jpg"/><S T="12" X="515" Y="175" L="133" H="10" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="272" Y="114" L="133" H="10" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="186" Y="253" L="218" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="596" Y="274" L="133" H="10" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="2" X="408" Y="327" L="85" H="10" P="0,0,0,1,0,0,0,0" m=""/><S T="19" X="-10" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="810" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="400" Y="-10" L="20" H="800" P="0,0,0.3,0,-90,0,0,0" m=""/><S T="19" X="400" Y="410" L="20" H="800" P="0,0,0.3,0,-90,0,0,0" m=""/><S T="2" X="84" Y="236" L="15" H="15" P="0,0,0,1.2,0,0,0,0"/><S T="2" X="655" Y="262" L="15" H="15" P="0,0,0,1.2,0,0,0,0"/></S><D><P X="273" Y="105" T="155" P="1,0"/><P X="516" Y="166" T="155" P="1,0"/><P X="597" Y="265" T="155" P="1,0"/><P X="179" Y="248" T="154" P="1,0"/><P X="400" Y="318" T="156" P="1,0"/><DS X="242" Y="197"/></D><O/><L/></Z></C>]],
- [[<C><P D="x_transformice/x_maps/x_halloween2015/eclairs.jpg,0,0" MEDATA="7,4:8,4:9,4:10,4;;;;-0;0:::1-"/><Z><S><S T="12" X="160" Y="150" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18aa0962397.png"/><S T="12" X="360" Y="60" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18aa0962397.png"/><S T="12" X="560" Y="150" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18aa0962397.png"/><S T="12" X="560" Y="270" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18aa0962397.png"/><S T="12" X="360" Y="320" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18aa0962397.png"/><S T="12" X="160" Y="270" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18aa0962397.png"/><S T="12" X="360" Y="216" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,18aa0962397.png"/><S T="19" X="-10" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="810" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="400" Y="-10" L="20" H="800" P="0,0,0.3,0,-90,0,0,0" m=""/><S T="19" X="400" Y="410" L="20" H="800" P="0,0,0.3,0,-90,0,0,0" m=""/><S T="12" X="199" Y="169" L="80" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="599" Y="169" L="80" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="599" Y="289" L="80" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="199" Y="289" L="80" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="399" Y="79" L="80" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="399" Y="339" L="80" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="399" Y="234" L="80" H="20" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/></S><D><DS X="401" Y="140"/></D><O/><L/></Z></C>]],
- [[<C><P D="tfmadv/picto/village/sol-bois-clair.png,542,118;tfmadv/picto/village/sol-bois-clair.png,542,208;tfmadv/picto/village/sol-bois-clair.png,542,0;tfmadv/picto/village/sol-bois-clair.png,500,118;tfmadv/picto/village/sol-bois-clair.png,500,208;tfmadv/picto/village/sol-bois-clair.png,500,0;tfmadv/picto/village/sol-bois-clair.png,250,118;tfmadv/picto/village/sol-bois-clair.png,250,208;tfmadv/picto/village/sol-bois-clair.png,250,0;tfmadv/picto/village/sol-bois-clair.png,0,118;tfmadv/picto/village/sol-bois-clair.png,0,208;tfmadv/picto/village/sol-bois-clair.png,0,0" DS="m;100,70,300,70,500,70,700,70" MEDATA="0,4:1,4:2,4:3,4:4,4:5,4:6,4:7,4:8,4:9,4:10,4:11,4:12,4:13,4:14,4:15,4:16,4;;;;0,4:1,4:2,4:3,4:4,4:5,4:6,4:7,4:8,4:9,4:10,4:11,4-0;0:::1-"/><Z><S><S T="19" X="-10" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="810" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="400" Y="-10" L="20" H="800" P="0,0,0.3,0,-90,0,0,0" m=""/><S T="19" X="400" Y="410" L="20" H="800" P="0,0,0.3,0,-90,0,0,0" m=""/><S T="12" X="175" Y="343" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="575" Y="343" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="375" Y="343" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="175" Y="283" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="575" Y="283" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="375" Y="283" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="175" Y="223" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="575" Y="223" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="375" Y="223" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="273" Y="93" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="73" Y="93" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="473" Y="93" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="672" Y="93" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16d67f4db39.png"/><S T="12" X="99" Y="119" L="60" H="60" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="299" Y="119" L="60" H="60" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="499" Y="119" L="60" H="60" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="699" Y="119" L="60" H="60" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="601" Y="309" L="60" H="180" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="401" Y="309" L="60" H="180" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="201" Y="309" L="60" H="180" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/></S><D/><O/><L/></Z></C>]],
- [[<C><P DS="m;170,190,420,190,670,190" MEDATA="0,4:1,4:2,4:3,4:4,4:5,4:6,4:7,4;;;;-0;0:::1-"/><Z><S><S T="19" X="-10" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="810" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="400" Y="-10" L="20" H="800" P="0,0,0.3,0,-90,0,0,0" m=""/><S T="19" X="400" Y="410" L="20" H="800" P="0,0,0.3,0,-90,0,0,0" m=""/><S T="12" X="5" Y="5" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16b7c5f9047.png"/><S T="12" X="75" Y="118" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16dae22851d.png"/><S T="12" X="325" Y="118" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16dae22851d.png"/><S T="12" X="575" Y="118" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,16dae22851d.png"/><S T="12" X="169" Y="308" L="83" H="182" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="419" Y="308" L="83" H="182" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/><S T="12" X="669" Y="308" L="83" H="182" P="0,0,0.3,0.2,0,0,0,0" o="D84801" m=""/></S><D/><O/><L/></Z></C>]],
- [[<C><P d="x_transformice/x_evt/x_evt_05/yelfrdge/etgere2.png,240,170;x_transformice/x_evt/x_evt_05/yelfrdge/etgere2.png,440,170;x_transformice/x_evt/x_evt_05/yelfrdge/etgere2.png,340,250;x_transformice/x_evt/x_evt_05/yelfrdge/etgere2.png,580,95;x_transformice/x_evt/x_evt_05/yelfrdge/etgere2.png,580,295;x_transformice/x_evt/x_evt_05/yelfrdge/etgere2.png,120,95;x_transformice/x_evt/x_evt_05/yelfrdge/etgere2.png,120,295" D="tfmadv/picto/village/sol-bois.png,542,208;tfmadv/picto/village/sol-bois.png,542,180;tfmadv/picto/village/sol-bois.png,542,0;tfmadv/picto/village/sol-bois.png,384,208;tfmadv/picto/village/sol-bois.png,384,180;tfmadv/picto/village/sol-bois.png,384,0;tfmadv/picto/village/sol-bois.png,250,208;tfmadv/picto/village/sol-bois.png,250,180;tfmadv/picto/village/sol-bois.png,250,0;tfmadv/picto/village/sol-bois.png,0,208;tfmadv/picto/village/sol-bois.png,0,180;tfmadv/picto/village/sol-bois.png,0,0" MEDATA="0,4:1,4:2,4:3,4:4,4:5,4;0,4;;;0,4:1,4:2,4:3,4:4,4:5,4:6,4:7,4:8,4:9,4:10,4:11,4:12,4:13,4:14,4:15,4:16,4:17,4:18,4-0;0:::1-"/><Z><S><S T="19" X="-10" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="810" Y="200" L="20" H="400" P="0,0,0.3,0,0,0,0,0" m=""/><S T="19" X="400" Y="-10" L="20" H="800" P="0,0,0.3,0,-90,0,0,0" m=""/><S T="19" X="400" Y="410" L="20" H="800" P="0,0,0.3,0,-90,0,0,0" m=""/><S T="2" X="50" Y="395" L="100" H="10" P="0,0,0,1.2,0,0,0,0"/><S T="2" X="750" Y="395" L="100" H="10" P="0,0,0,1.2,0,0,0,0"/><S T="12" X="169" Y="303" L="67" H="10" P="0,0,0.3,0.2,-1,0,0,0" o="D84801" m=""/><S T="12" X="629" Y="303" L="67" H="10" P="0,0,0.3,0.2,-1,0,0,0" o="D84801" m=""/><S T="12" X="629" Y="103" L="67" H="10" P="0,0,0.3,0.2,-1,0,0,0" o="D84801" m=""/><S T="12" X="169" Y="103" L="67" H="10" P="0,0,0.3,0.2,-1,0,0,0" o="D84801" m=""/><S T="12" X="389" Y="258" L="67" H="10" P="0,0,0.3,0.2,-1,0,0,0" o="D84801" m=""/><S T="12" X="489" Y="178" L="67" H="10" P="0,0,0.3,0.2,-1,0,0,0" o="D84801" m=""/><S T="12" X="289" Y="178" L="67" H="10" P="0,0,0.3,0.2,-1,0,0,0" o="D84801" m=""/></S><D><DS X="390" Y="222"/></D><O/><L/></Z></C>]],
- [[<C><P MEDATA=";;;;-0;0:::1-"/><Z><S><S T="12" X="5" Y="5" L="10" H="10" P="0,0,0.3,0.2,0,0,0,0" o="324650" c="4" i="0,0,166dc37c641.png"/><S T="2" X="721" Y="319" L="32" H="21" P="0,0,0,1.2,0,0,0,0"/><S T="2" X="45" Y="351" L="32" H="21" P="0,0,0,1.2,0,0,0,0"/><S T="12" X="682" Y="101" L="214" H="30" P="0,0,0.3,0.2,0,0,0,0" o="4D1568"/><S T="12" X="194" Y="126" L="210" H="30" P="0,0,0.3,0.2,0,0,0,0" o="4D1568"/><S T="12" X="321" Y="285" L="125" H="30" P="0,0,0.3,0.2,0,0,0,0" o="4D1568"/><S T="12" X="545" Y="235" L="125" H="30" P="0,0,0.3,0.2,0,0,0,0" o="4D1568"/><S T="12" X="84" Y="374" L="123" H="30" P="0,0,0.3,0.2,0,0,0,0" o="4D1568"/><S T="12" X="321" Y="285" L="119" H="22" P="0,0,0.3,0.2,0,0,0,0" o="000000"/><S T="12" X="545" Y="235" L="119" H="22" P="0,0,0.3,0.2,0,0,0,0" o="000000"/><S T="12" X="678" Y="339" L="125" H="30" P="0,0,0.3,0.2,0,0,0,0" o="4D1568"/><S T="12" X="678" Y="339" L="119" H="22" P="0,0,0.3,0.2,0,0,0,0" o="000000"/><S T="12" X="194" Y="126" L="205" H="22" P="0,0,0.3,0.2,0,0,0,0" o="000000"/><S T="12" X="681" Y="102" L="205" H="22" P="0,0,0.3,0.2,0,0,0,0" o="000000"/><S T="12" X="84" Y="375" L="119" H="22" P="0,0,0.3,0.2,0,0,0,0" o="000000"/></S><D><P X="737" Y="190" T="222" P="1,0"/><P X="767" Y="191" T="222" P="1,1"/><P X="52" Y="58" T="217" P="1,0"/><P X="81" Y="285" T="217" P="1,0"/><P X="432" Y="158" T="217" P="1,0"/><P X="741" Y="193" T="217" P="1,0"/><P X="743" Y="378" T="217" P="1,0"/><P X="515" Y="375" T="217" P="1,0"/><P X="268" Y="374" T="217" P="1,0"/><P X="644" Y="46" T="217" P="1,0"/><DS X="307" Y="256"/></D><O/><L/></Z></C>]]
- }
- local lifeChance = {}
- local timers = {}
- local frozen = {}
- local images = {}
- -------------------
- tfm.exec.disablePhysicalConsumables(true)
- tfm.exec.disableMortCommand(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoScore(false)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoTimeLeft(true)
- -------- Timers -----------
- function eventLoop()
- for _, bomb in pairs(bombs) do
- local x, y
- if tfm.get.room.objectList[bomb.id] then
- bomb.time = bomb.time - 0.5
- x,y = tfm.get.room.objectList[bomb.id].x, tfm.get.room.objectList[bomb.id].y
- if bomb.time == 0 then
- tfm.exec.removeObject(bomb.id)
- tfm.exec.removeImage(bomb.img , nil)
- tfm.exec.explosion(x , y, 80, 100, false)
- tfm.exec.displayParticle(10, x, y, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
- end
- end
- end
- for _, gas in pairs(Gas) do
- local xg , yg
- if tfm.get.room.objectList[gas.id] then
- gas.time = gas.time - 0.5
- xg , yg = tfm.get.room.objectList[gas.id].x, tfm.get.room.objectList[gas.id].y
- if gas.time == 0 then
- tfm.exec.removeObject(gas.id)
- tfm.exec.removeImage(gas.img , nil)
- gas.effect = tfm.exec.addImage("18a9a96af5c.png", "!1", xg, yg - 55, nil, 0.65, 0.65, 0 , 1, 0.5, 0.5, true)
- for name , player in pairs(tfm.get.room.playerList) do
- local xp , yp = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y
- if (not tfm.get.room.playerList[name].isDead) and (math.abs(xp - xg) <= Freeze_bomb) and (math.abs(xp - xg) <= Freeze_bomb) then
- tfm.exec.killPlayer(name)
- end
- end
- end
- end
- end
- for _,gas in pairs(Gas) do
- if gas.effecTime ~= 0 then gas.effecTime = gas.effecTime - 0.5 end
- if gas.effecTime == 0 then tfm.exec.removeImage(gas.effect , true) end
- end
- for _ , freeze in pairs(Freeze) do
- local xf, yf
- if tfm.get.room.objectList[freeze.id] then
- freeze.time = freeze.time - 0.5
- xf,yf = tfm.get.room.objectList[freeze.id].x, tfm.get.room.objectList[freeze.id].y
- if freeze.time == 0 then
- tfm.exec.removeObject(freeze.id)
- tfm.exec.removeImage(freeze.img , nil)
- tfm.exec.displayParticle(27, xf, yf, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
- tfm.exec.displayParticle(26, xf, yf, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
- tfm.exec.displayParticle(28, xf, yf, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
- for name , player in pairs(tfm.get.room.playerList) do
- local xp , yp = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y
- if (not tfm.get.room.playerList[name].isDead) and (math.abs(xp - xf) <= Toxic_bomb) and (math.abs(xp - xf) <= Toxic_bomb) then
- tfm.exec.freezePlayer(name)
- table.insert(frozen , { frozen = name })
- end
- end
- end
- end
- end
- for _, lava in pairs(Lava) do
- local xl , yl
- if tfm.get.room.objectList[lava.id] then
- lava.time = lava.time - 0.5
- xl , yl = tfm.get.room.objectList[lava.id].x, tfm.get.room.objectList[lava.id].y
- if lava.time == 0 then
- tfm.exec.removeObject(lava.id)
- tfm.exec.removeImage(lava.img , nil)
- lava.effect = tfm.exec.addImage("18ad3c5c5c7.png", "!1", xl, yl - 55, nil, 0.80, 0.80, 0 , 1, 0.5, 0.5, true)
- tfm.exec.addPhysicObject(1 , xl + 55, yl, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
- tfm.exec.addPhysicObject(2 , xl - 20 , yl, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
- tfm.exec.addPhysicObject(3 , xl + 15, yl + 45, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
- tfm.exec.addPhysicObject(4 , xl - 25, yl - 35 , {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
- tfm.exec.addPhysicObject(5 , xl - 55, yl, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
- tfm.exec.addPhysicObject(6 , xl - 75, yl + 10, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
- tfm.exec.addPhysicObject(7 , xl +70 , yl + 60, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
- tfm.exec.addPhysicObject(8 , xl - 90, yl + 60, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
- tfm.exec.addPhysicObject(9 , xl + 20, yl + 60, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
- end
- end
- end
- for _,lava in pairs(Lava) do
- if lava.effectTime ~= 0 then lava.effectTime = lava.effectTime - 0.5 end
- if lava.effectTime == 0 then tfm.exec.removeImage(lava.effect , true) end
- end
- for _ , freeze in pairs(Freeze) do
- freeze.unfreeze = freeze.unfreeze - 0.5
- if freeze.unfreeze == 0 then
- for _ , f in pairs(frozen) do
- tfm.exec.freezePlayer(f.frozen , false , false)
- frozen = {}
- end
- end
- end
- for _,timer in pairs(timers) do
- if timer.t ~= 0 then
- timer.t = timer.t - 0.5
- if timer.t == 0 then
- tfm.exec.bindKeyboard(timer.n, 86, true, true) -- v --
- tfm.exec.bindKeyboard(timer.n, 88, true, true) -- x --
- tfm.exec.bindKeyboard(timer.n, 70, true, true) -- F --
- end
- end
- end
- for _ , jt in pairs (FlyTimer) do
- if jt.t ~= 0 then
- jt.t = jt.t - 0.5
- tfm.exec.bindKeyboard(jt.n, 67, true, false) -- c --
- tfm.exec.bindKeyboard(jt.n, 17, true, false) -- ctrl --
- end
- end
- for _ , dt in pairs(DashTimer) do
- if dt.t ~= 0 then
- dt.t = dt.t - 0.5
- tfm.exec.bindKeyboard(dt.n, 32, true, false) -- space --
- if dt.t == 0 then
- tfm.exec.bindKeyboard(dt.n, 32, true, true) -- space --
- end
- end
- end
- if lobbyAntiThrow ~= 0 then
- lobbyAntiThrow = lobbyAntiThrow - 1
- if lobbyAntiThrow == 0 then
- for name , player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(name, 86, true, true) -- v --
- tfm.exec.bindKeyboard(name, 88, true, true) -- x --
- tfm.exec.bindKeyboard(name, 70, true, true) -- F --
- tfm.exec.bindKeyboard(name, 32, true, true) -- Space --
- tfm.exec.bindKeyboard(name, 67, true, true) -- c --
- tfm.exec.bindKeyboard(name, 17, true, true) -- ctrl --
- end
- end
- end
- if wait2 ~= 0 then
- wait2 = wait2 - 1
- if wait2 == 0 then
- start_maps()
- end
- end
- if maptime ~= 0 then
- maptime = maptime - 1
- if maptime == 0 then
- noWin()
- end
- end
- end
- ----------Main Script------------
- function noWin()
- tfm.exec.setGameTime(5, init)
- tfm.exec.disableAutoNewGame(true)
- wait2 = 10
- ui.addTextArea(777 ,"<font size='30'><p align='center'><font color='#E9BA00'>Nobody <font color='#ffffff'>wins !", nil, 20, 163, 760, 60, 0x1E1E1E, 0x1E1E1E, 1, true)
- end
- function start_maps()
- wait = 0
- wait2 = 0
- maptime = 275
- tfm.exec.disableAutoNewGame(false)
- tfm.exec.newGame(Maps[math.random(1, #Maps)]) -- default map , you can change it if you want that
- ui.removeTextArea(777 , nil)
- ui.addTextArea(9999 , "<font size='20'><p align='center'><font color='#ffffff'>Lives : </a>" , nil, 30, 367, 80, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(9998 , "<font size='22'><p align='center'><font color='#ff0000'>2 </a>", nil, 80, 367, 80, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1 , "<font size='12'><p align='center'><font color='#E9BA00'><a href=\"event:how\">Menu</a>" , nil, 41, 32, 55, 20, 0x000000, 0xE9BA00, 1, true)
- ui.removeTextArea(11 , nil)
- ui.removeTextArea(22 , nil)
- ui.removeTextArea(33 , nil)
- bombs = {}
- winner = {}
- lifeChance = {}
- Gas = {}
- Freeze = {}
- frozen = {}
- timers = {}
- FlyTimer = {}
- DashTimer = {}
- for name , player in pairs(tfm.get.room.playerList) do
- system.bindKeyboard(name, 90, true, false) -- z --
- system.bindKeyboard(name, 88, true, false) -- x --
- system.bindKeyboard(name, 3, true, false) -- ↓ --
- system.bindKeyboard(name, 71, true, false) -- G --
- system.bindKeyboard(name, 70, true, false) -- F --
- tfm.exec.respawnPlayer(name)
- life_chance(name)
- -- tfm.exec.addImage("18ab936f44b.png", "!1", 50, 32, nil, 0.2, 0.2, 0 , 1, 0.5, 0.5, false) ,
- -- life2 = tfm.exec.addImage("18ab936f44b.png", "!1", 55,32, nil, 0.2, 0.2, 0 , 1, 0.5, 0.5, false)
- print(#lifeChance)
- end
- lobbyAntiThrow = 8
- tfm.exec.setGameTime(150, init)
- ui.setMapName("<font color='#E9BA00'>Bomb<font color='#000000'>Squad<font color='#B7B7B7'> - Bartpo#9958 ")
- i2 = tfm.exec.addImage("18ab936f44b.png", "!1", 145,378, nil, 0.145, 0.145, 0 , 1, 0.5, 0.5, false)
- end
- function life_chance (name)
- table.insert(lifeChance , { n = name , chance = 2})
- end
- function eventNewPlayer(playerName)
- timer[playerName] = {}
- ui.setMapName("<font color='#E9BA00'>Bomb<font color='#000000'>Squad<font color='#B7B7B7'> - Bartpo#9958 ")
- ui.addTextArea(1 , "<font size='12'><p align='center'><font color='#E9BA00'><a href=\"event:how\">Menu</a>" , n, 41, 32, 55, 20, 0x000000, 0xE9BA00, 1, true)
- end
- for n in next,tfm.get.room.playerList do
- eventNewPlayer(n)
- end
- function eventPlayerLeft(playerName)
- for i , life in ipairs(lifeChance) do
- if life.n == playerName then
- table.remove(lifeChance , i)
- end
- end
- if #lifeChance == 1 then
- check_alive(true)
- if not #lifeChance == 1 then check_alive(false)
- end
- end
- end
- function eventPlayerDied(playerName)
- for i , life in ipairs(lifeChance) do
- if life.n == playerName and life.chance == 2 then
- life.chance = life.chance - 1
- ui.updateTextArea(9998, "<font size='22'><p align='center'><font color='#ff0000'>1 </a>", life.n)
- tfm.exec.respawnPlayer(life.n)
- end
- if life.n == playerName and life.chance == 1 then
- life.chance = life.chance - 1
- elseif life.n == playerName and life.chance == 0 then
- ui.updateTextArea(9998, "<font size='22'><p align='center'><font color='#ff0000'>0 </a>", life.n)
- table.remove(lifeChance , i)
- end
- end
- print(#lifeChance)
- if #lifeChance == 1 then check_alive(true) end
- if #lifeChance > 1 then check_alive(false) end
- if #lifeChance == 0 then noWin() end
- end
- function check_alive(check)
- for name , player in pairs(tfm.get.room.playerList) do
- if not tfm.get.room.playerList[name].isDead and #lifeChance == 1 then
- table.insert(winner , {winner = name})
- end
- end
- for _ , win in pairs(winner) do
- if check == true then
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.giveCheese(win.winner)
- tfm.exec.playerVictory(win.winner)
- end
- end
- if #lifeChance <= 0 then
- tfm.exec.disableAutoNewGame(true)
- start_maps()
- end
- end
- function eventPlayerWon(playerName, timeElapsed, timeElapsedSinceRespawn)
- for _,win in pairs(winner) do
- tfm.exec.setPlayerScore(win.winner, -15 , true)
- end
- wait2 = 10
- ui.addTextArea(777 ,"<font size='30'><p align='center'><font color='#E9BA00'>"..playerName.." <font color='#ffffff'>is the winner", nil, 20, 163, 760, 60, 0x1E1E1E, 0x1E1E1E, 1, true)
- end
- function eventKeyboard(n, keyCode, down, xPlayerPosition, yPlayerPosition, xPlayerVelocity, yPlayerVelocity)
- local extimerF , extimerN , extimerG , extimerF , extimerJ , score = 3 , 3 , 4 , 4 , 3.5 , tfm.get.room.playerList[n].score
- if not (tfm.get.room.playerList[n].isDead) and timer[n] then
- if not timer[n].bomb or timer[n].bomb + 3000 < os.time() then
- if not (tfm.get.room.playerList[n].isDead) and keyCode == 88 then -- x --
- timer[n].bomb = os.time()
- throw_explode_bomb(n, true )
- elseif keyCode == 86 then -- v --
- timer[n].bomb = os.time()
- throw_explode_bomb(n, false )
- end
- if keyCode == 70 then -- ULTIMATE F --
- for _ , player in pairs(gEquip) do
- if player.g == n then
- timer[n].bomb = os.time()
- throw_gas_bomb(n)
- end
- end
- end
- if keyCode == 70 then -- ULTIMATE F --
- for _ , player in pairs(fEquip) do
- if player.f == n then
- timer[n].bomb = os.time()
- throw_freeze_bomb(n)
- end
- end
- end
- if keyCode == 70 then -- ULTIMATE F --
- for _ , player in pairs(lEquip) do
- if player.l == n then
- timer[n].bomb = os.time()
- throw_lava_bomb(n)
- end
- end
- end
- end
- end
- ------- MOVES ------------
- if not (tfm.get.room.playerList[n].isDead) and keyCode == 32 and (not timer[n].j or timer[n].j + extimerJ*1000 < os.time()) then -- space --
- timer[n].j = os.time() -- C -
- dash(n)
- end
- if not (tfm.get.room.playerList[n].isDead) and keyCode == 67 and (not timer[n].j or timer[n].j + extimerJ*1000 < os.time()) then -- c --
- timer[n].j = os.time() -- c -
- high_jump(n)
- end
- if not (tfm.get.room.playerList[n].isDead) and keyCode == 17 and (not timer[n].j or timer[n].j + extimerJ*1000 < os.time()) then -- ctrl --
- timer[n].j = os.time()
- teleport_up(n)
- end
- end
- function time(name , time)
- tfm.exec.bindKeyboard(name, 86, true, false) -- v --
- tfm.exec.bindKeyboard(name, 88, true, false) -- x --
- tfm.exec.bindKeyboard(name, 70, true, false) -- F --
- table.insert(timers , { n = name , t = time })
- end
- function timeJump(name , time)
- table.insert(FlyTimer , { n = name , t = time })
- end
- function timeDash(name , time)
- table.insert(DashTimer , { n = name , t = time })
- end
- ---------- Bombs Functions --------------
- function high_jump(name)
- local xfly , yfly , facing = tfm.get.room.playerList[name].x , tfm.get.room.playerList[name].y , checkfacePlayer(name)
- tfm.exec.movePlayer(name, 0 , 0 , false, xPlayerVelocity , -80 , false)
- tfm.exec.displayParticle(26, xfly, yfly, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
- end
- function teleport_up(name)
- local xtele , ytele , facing = tfm.get.room.playerList[name].x , tfm.get.room.playerList[name].y , checkfacePlayer(name)
- tfm.exec.movePlayer(name, 0 , ytele - 100 , false, xPlayerVelocity , -50 , false)
- tfm.exec.displayParticle(36, xtele, ytele, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
- end
- function dash(name)
- local xdash , ydash , facing = tfm.get.room.playerList[name].x , tfm.get.room.playerList[name].y , checkfacePlayer(name)
- tfm.exec.movePlayer(name, 0 , 0 , false, 80*facing , yPlayerVelocity , false)
- tfm.exec.displayParticle(27, xdash, ydash, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
- end
- function throw_explode_bomb(name, far )
- local x, y, facing = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y, checkfacePlayer(name)
- local time
- if far then time = 1.5 else time = 1.5 end
- local xSpeed, ySpeed
- if far then xSpeed, ySpeed = 6, -4 else xSpeed, ySpeed = 0, 0 end
- addExplodeBomb(time ,x ,y, far, facing , tfm.exec.addShamanObject(10, x + (throw_raduisX * facing), y - throw_raduisY, 0, xSpeed*facing, ySpeed, false))
- end
- function addExplodeBomb(time ,x ,y, far, facing , id )
- table.insert(bombs, {
- id = id ,
- time = time ,
- img = tfm.exec.addImage("18a9a9490f1.png", "#"..id, 0, -10, nil, 0.2, 0.2, 0 , 1, 0.5, 0.5, false)
- })
- end
- function throw_gas_bomb(name)
- local xg, yg, facing = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y, checkfacePlayer(name)
- local time , effecTime = 2 , 3.5
- local xSpeed, ySpeed = 6 , -4
- addGasBomb(time ,xg ,yg , facing , tfm.exec.addShamanObject(10, xg + (throw_raduisX * facing), yg - throw_raduisY, 0, xSpeed*facing, ySpeed, false) , effecTime )
- end
- function addGasBomb(time ,xg ,yg, facing , id , effecTime )
- table.insert(Gas, {
- id = id ,
- time = time ,
- img = tfm.exec.addImage("18a9a950092.png", "#"..id, 0, -10, nil, 0.2, 0.2, 0 , 1, 0.5, 0.5, false),
- effect = "",
- effecTime = effecTime
- })
- end
- function throw_freeze_bomb(name)
- local xf, yf, facing = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y, checkfacePlayer(name)
- local time , unfreeze = 2 , 6
- local xSpeed, ySpeed = 6 , -4
- addFreezeBomb(time ,xf ,yf , facing , tfm.exec.addShamanObject(10, xf + (throw_raduisX * facing), yf - throw_raduisY, 0, xSpeed*facing, ySpeed, false) , unfreeze)
- end
- function addFreezeBomb(time ,xg ,yg, facing , id , unfreeze)
- table.insert(Freeze, {
- id = id ,
- time = time ,
- img = tfm.exec.addImage("18a9a959c06.png", "#"..id, 0, -10, nil, 0.2, 0.2, 0 , 1, 0.5, 0.5, false),
- unfreeze = unfreeze
- })
- end
- function throw_lava_bomb(name)
- local xl, yl, facing = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y, checkfacePlayer(name)
- local time , removeLava , effectTime = 2 , 6 , 3.5
- local xSpeed, ySpeed = 6 , -4
- addLavaBomb(time ,xl ,yl , facing , tfm.exec.addShamanObject(10, xl + (throw_raduisX * facing), yl - throw_raduisY, 0, xSpeed*facing, ySpeed, false) , removeLava , effectTime)
- end
- function addLavaBomb(time ,xl ,yl, facing , id , removeLava , effectTime)
- table.insert(Lava, {
- id = id ,
- time = time ,
- img = tfm.exec.addImage("18ad3c6618f.png", "#"..id, 0, -10, nil, 0.13, 0.13, 0 , 1, 0.5, 0.5, false),
- effect = "",
- removeLava = removeLava,
- effectTime = effectTime,
- lava = ""
- })
- print("lava")
- end
- function checkfacePlayer(name)
- if (tfm.get.room.playerList[name].isFacingRight) then
- return 1
- else return -1
- end
- end
- -------------PopUps-------------
- function eventTextAreaCallback(id, n, eventName )
- local scoreUI = tfm.get.room.playerList[n].score
- if id == 1 then
- ui.removeTextArea(1 , n)
- ui.addTextArea(0 , "<font size='12'><p align='center'><font color='#ff0000'><a href=\"event:how\">X</a>" , n, 41, 32, 20, 20, 0x000000, 0xE9BA00, 1, true)
- ui.addTextArea(11 , "<font size='12'><p align='center'><font color='#E9BA00'><a href=\"event:how\">Controls</a>" , n, 81, 32, 55, 20, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(22 , "<font size='12'><p align='center'><font color='#E9BA00'><a href=\"event:how\">Abilities</a>" , n, 140, 32, 55, 20, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(33 , "<font size='12'><p align='center'><font color='#E9BA00'><a href=\"event:how\">Credits</a>" , n, 200, 32, 55, 20, 0x000000, 0xE9BA00, 0, true)
- end
- if id == 0 then -- close --
- ui.addTextArea(1 , "<font size='12'><p align='center'><font color='#E9BA00'><a href=\"event:how\">Menu</a>" , n, 41, 32, 55, 20, 0x000000, 0xE9BA00, 1, true)
- ui.removeTextArea(0 , n)
- ui.removeTextArea(11 , n)
- ui.removeTextArea(22 , n)
- ui.removeTextArea(33 , n)
- end
- if id == 10 then
- ui.removeTextArea(10 , n)
- ui.removeTextArea(6 , n)
- ui.removeTextArea(7 , n)
- end
- if id == 69 then
- ui.addTextArea(22 , "<font size='12'><p align='center'><font color='#E9BA00'><a href=\"event:how\">Abilities</a>" , n, 140, 32, 55, 20, 0x000000, 0xE9BA00, 0, true)
- ui.removeTextArea(8 , n)
- ui.removeTextArea(100 , n)
- ui.removeTextArea(101 , n)
- ui.removeTextArea(1000 , n)
- ui.removeTextArea(1011 , n)
- ui.removeTextArea(1012 , n)
- ui.removeTextArea(69 , n)
- ui.removeTextArea(969696 , n)
- for _ , x in pairs(images) do
- if x.nx == n then
- tfm.exec.removeImage(x.tox)
- tfm.exec.removeImage(x.ice)
- tfm.exec.removeImage(x.lava)
- end
- end
- end
- if id == 11 then
- ui.addTextArea(6,
- "<font size='22'><p align='center'><font color='#E9BA00'>________ Controls ________\
- \
- <font size='13'><p align='left'><font color='#E9BA00'> X <font size='11'><font color='#ffffff'> Throw far exploding bomb\
- \
- <font size='13'><p align='left'><font color='#E9BA00'> V <font size='11'><font color='#ffffff'> Throw near exploding bomb\
- \
- <font size='13'><p align='left'><font color='#E9BA00'> C <font size='11'><font color='#ffffff'> Performs a high jump \
- \
- <font size='13'><p align='left'><font color='#E9BA00'> F <font size='11'><font color='#ffffff'> Throw super bomb<font size='9'> Menu > abilities\
- \
- <font size='13'><p align='left'><font color='#E9BA00'> SPACE <font size='11'><font color='#ffffff'> Performs a dash \
- \
- <font size='13'><p align='left'><font color='#E9BA00'> CTRL <font size='11'><font color='#ffffff'> Teleports you up \
- \
- ", n, 230, 100, 350, 250, 0x191919, 0xE9BA00, 0.8, true)
- ui.addTextArea(10 , "<font size='12'><p align='center'><font color='#ff0000'><a href=\"event:how\">X</a>" , n, 560, 100, 20, 20, 0x000000, 0xE9BA00, 1, true)
- end
- if id == 33 then
- ui.addTextArea(7,
- "<font size='22'><p align='center'><font color='#E9BA00'>________ Credits ________\
- \
- <font size='13'><p align='center'><font color='#ffffff'>This module is by <font color='#E9BA00'> Bartpo#9958 \
- <font size='10'><p align='center'><font color='#ffffff'>For any issues or bugs , DM me on ateleir801 forum or /c Bartpo#9958\
- \
- \
- <font size='13'><p align='center'><font color='#E9BA00'>Map Makers\
- \
- <font size='12'><p align='center'><font color='#ffffff'> Night_wolf#8965 Crazy#7020 Sonic12341#0000 \
- \
- <font size='13'><p align='center'><font color='#E9BA00'>Coding Helpers\
- \
- <font size='12'><p align='center'><font color='#ffffff'>Nnoooooooorr#0000 Say#1006\
- \
- ", n, 230, 100, 350, 250, 0x191919, 0xE9BA00, 0.8, true)
- ui.addTextArea(10 , "<font size='12'><p align='center'><font color='#ff0000'><a href=\"event:how\">X</a>" , n, 560, 100, 20, 20, 0x000000, 0xE9BA00, 1, true)
- end
- if id == 22 then
- print("F")
- ui.addTextArea(8,"<font size='22'><p align='center'><font color='#E9BA00'>________ Abilities ________\
- <font size='10'><p align='center'><font color='#ffffff'>You can throw these bombs only if you have the required number of wins \
- ( Enjoy your time )", n, 195, 75, 420, 280, 0x191919, 0xE9BA00, 0.8, true)
- ui.addTextArea(69 , "<font size='12'><p align='center'><font color='#ff0000'><a href=\"event:how\">X</a>" , n, 600, 75, 20, 20, 0x000000, 0xE9BA00, 1, true)
- --ui.addTextArea(100 , "<font size='14'><p align='center'><font color='#E9BA00'>Poison Bomb</a>" , n, 262, 175, 100, 30, 0x000000, 0xE9BA00, 0, true)
- --ui.addTextArea(101 , "<font size='14'><p align='center'><font color='#E9BA00'>Ice Bomb</a>" , n, 447, 175, 100, 30, 0x000000, 0xE9BA00, 0, true)
- ui.removeTextArea(22 , n)
- ui.addTextArea(969696 , "<font size='12'><p align='center'><font color='#E9BA00'>Abilities</a>" , n, 140, 32, 55, 20, 0x000000, 0xE9BA00, 0, true)
- image_remover(n)
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#848484'>LOCKED<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" , n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#05BCC4'> Freeze bomb - Free to be equiped -" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#848484'> LOCKED <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- if scoreUI >= 2 then
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\">Equip<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" , n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#05BCC4'> Freeze bomb - Free to be equiped -" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#848484'> LOCKED <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- end
- if scoreUI >= 3 then
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\">Equip<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" , n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#05BCC4'> Freeze bomb - Free to be equiped -" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- end
- for _ , eq in pairs(gEquip) do
- if eq.g == n then
- if scoreUI == 2 then
- ui.addTextArea(1000 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped", n,280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#848484'> LOCKED <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#05BCC4'> Freeze bomb - Free to be equiped -" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- elseif scoreUI >= 3 then
- ui.addTextArea(1000 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped", n,280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#05BCC4'> Freeze bomb - Free to be equiped -" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- end
- end
- end
- for _ , eq in pairs(fEquip) do
- if eq.f == n then
- if scoreUI == 0 or scoreUI == 1 then
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#848484'> LOCKED <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#848484'>LOCKED<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" ,n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- elseif scoreUI == 2 then
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#848484'> LOCKED <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\">Equip<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" ,n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- end
- if scoreUI >= 3 then
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\">Equip<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" ,n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- end
- end
- end
- for _ , eq in pairs(lEquip) do
- if eq.l == n then
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\">Equip<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" ,n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#05BCC4'> Freeze bomb - Free to be equiped -" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1012 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- end
- end
- end
- if id == 1000 then
- if scoreUI == 2 then
- ui.addTextArea(1000 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped", n,280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#848484'> LOCKED <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#05BCC4'> Freeze bomb - Free to be equiped -" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- gas_equip(n)
- elseif scoreUI >= 3 then
- ui.addTextArea(1000 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped", n,280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#05BCC4'> Freeze bomb - Free to be equiped -" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- gas_equip(n)
- end
- end
- if id == 1011 then
- if scoreUI == 0 or scoreUI == 1 then
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#848484'> LOCKED <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#848484'>LOCKED<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" ,n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- freeze_equip(n)
- elseif scoreUI == 2 then
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#848484'> LOCKED <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\">Equip<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" ,n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- freeze_equip(n)
- end
- if scoreUI >= 3 then
- ui.addTextArea(1012 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#FF8300'> Lava bomb - Three wins required -" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\">Equip<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" ,n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- freeze_equip(n)
- end
- end
- if id == 1012 and scoreUI >= 3 then
- ui.addTextArea(1000 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\">Equip<font size='10'></a> <font color='#00ff00'> Poison bomb - Two wins required -" ,n, 280, 165, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1011 , "<font size='12'><p align='center'><font color='#ffffff'><a href=\"event:how\"> Equip <font size='10'></a> <font color='#05BCC4'> Freeze bomb - Free to be equiped -" , n, 280, 235, 300, 50, 0x000000, 0xE9BA00, 0, true)
- ui.addTextArea(1012 , "<font size='12'><p align='left'><font color='#00ff00'><a href=\"event:how\"> Equiped" , n, 280, 315, 300, 50, 0x000000, 0xE9BA00, 0, true)
- lava_equip(n)
- end
- end
- function image_remover(name)
- print(name)
- table.insert(images , { nx = name ,
- tox = tfm.exec.addImage("18a9a950092.png", "&1", 250, 170, name, 0.2, 0.2, 0 , 1, 0.5, 0.5, false),
- ice = tfm.exec.addImage("18a9a959c06.png", "&1", 250, 240, name, 0.19, 0.19, 0 , 1, 0.5, 0.5, false),
- lava = tfm.exec.addImage("18ad3c6618f.png", "&1", 250, 320, name, 0.115, 0.115, 0 , 1, 0.5, 0.5, false)
- })
- end
- function gas_equip(name)
- for i , pl in ipairs(fEquip) do
- if name == pl.f then
- table.remove(fEquip , i)
- end
- end
- for i , pl in ipairs(gEquip) do
- if name == pl.g then
- table.remove(gEquip , i)
- end
- end
- for i , pl in ipairs(lEquip) do
- if name == pl.l then
- table.remove(lEquip , i)
- end
- end
- table.insert( gEquip , { g = name})
- print("ge")
- end
- function freeze_equip(name)
- for i , pl in ipairs(gEquip) do
- if name == pl.g then
- table.remove(gEquip , i)
- end
- end
- for i , pl in ipairs(fEquip) do
- if name == pl.f then
- table.remove(fEquip , i)
- end
- end
- for i , pl in ipairs(lEquip) do
- if name == pl.l then
- table.remove(lEquip , i)
- end
- end
- table.insert( fEquip , {f = name})
- print("FE")
- end
- function lava_equip(name)
- for i , pl in ipairs(gEquip) do
- if name == pl.g then
- table.remove(gEquip , i)
- end
- end
- for i , pl in ipairs(fEquip) do
- if name == pl.f then
- table.remove(fEquip , i)
- end
- end
- for i , pl in ipairs(lEquip) do
- if name == pl.l then
- table.remove(lEquip , i)
- end
- end
- table.insert( lEquip , {l = name})
- print("FE")
- end
- ----------- Turn on -------------
- start_maps()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement