Advertisement
NoorTFM

بطاطا سخنة

Oct 5th, 2023
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.55 KB | None | 0 0
  1. -- settings --
  2. Toxic_bomb = 75 -- radius of poison bomb range
  3. Freeze_bomb = 75 -- r of freeze bomb range
  4. Explosion_bomb = 100
  5. throw_raduisX = 60 -- throw range x
  6. throw_raduisY = 30 -- throw range y
  7. lobbyAntiThrow = 5
  8.  
  9. local timer = {}
  10. local tox
  11. local ice
  12. local gEquip = {}
  13. local fEquip = {}
  14. local lEquip = {}
  15. ----------------
  16. local wait
  17. local wait2
  18. local maptime
  19. local thrower
  20. local bombs = {}
  21. local Gas = {}
  22. local Lava = {}
  23. local Freeze = {}
  24. local FlyTimer = {}
  25. local DashTimer = {}
  26. local winner = {}
  27. local Maps = {
  28. [[<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>]],
  29. [[<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>]],
  30. [[<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>]],
  31. [[<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>]],
  32. [[<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>]],
  33. [[<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>]],
  34. [[<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>]]
  35. }
  36. local lifeChance = {}
  37. local timers = {}
  38. local frozen = {}
  39. local images = {}
  40.  
  41. -------------------
  42. tfm.exec.disablePhysicalConsumables(true)
  43. tfm.exec.disableMortCommand(true)
  44. tfm.exec.disableAutoShaman(true)
  45. tfm.exec.disableAutoScore(false)
  46. tfm.exec.disableAfkDeath(true)
  47. tfm.exec.disableAutoTimeLeft(true)
  48. -------- Timers -----------
  49. function eventLoop()
  50.  
  51.  
  52. for _, bomb in pairs(bombs) do
  53. local x, y
  54. if tfm.get.room.objectList[bomb.id] then
  55. bomb.time = bomb.time - 0.5
  56. x,y = tfm.get.room.objectList[bomb.id].x, tfm.get.room.objectList[bomb.id].y
  57. if bomb.time == 0 then
  58. tfm.exec.removeObject(bomb.id)
  59. tfm.exec.removeImage(bomb.img , nil)
  60. tfm.exec.explosion(x , y, 80, 100, false)
  61. tfm.exec.displayParticle(10, x, y, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
  62.  
  63. end
  64. end
  65. end
  66.  
  67. for _, gas in pairs(Gas) do
  68. local xg , yg
  69. if tfm.get.room.objectList[gas.id] then
  70. gas.time = gas.time - 0.5
  71. xg , yg = tfm.get.room.objectList[gas.id].x, tfm.get.room.objectList[gas.id].y
  72. if gas.time == 0 then
  73. tfm.exec.removeObject(gas.id)
  74. tfm.exec.removeImage(gas.img , nil)
  75. gas.effect = tfm.exec.addImage("18a9a96af5c.png", "!1", xg, yg - 55, nil, 0.65, 0.65, 0 , 1, 0.5, 0.5, true)
  76. for name , player in pairs(tfm.get.room.playerList) do
  77. local xp , yp = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y
  78. if (not tfm.get.room.playerList[name].isDead) and (math.abs(xp - xg) <= Freeze_bomb) and (math.abs(xp - xg) <= Freeze_bomb) then
  79. tfm.exec.killPlayer(name)
  80. end
  81. end
  82. end
  83. end
  84. end
  85. for _,gas in pairs(Gas) do
  86. if gas.effecTime ~= 0 then gas.effecTime = gas.effecTime - 0.5 end
  87. if gas.effecTime == 0 then tfm.exec.removeImage(gas.effect , true) end
  88. end
  89. for _ , freeze in pairs(Freeze) do
  90. local xf, yf
  91. if tfm.get.room.objectList[freeze.id] then
  92. freeze.time = freeze.time - 0.5
  93. xf,yf = tfm.get.room.objectList[freeze.id].x, tfm.get.room.objectList[freeze.id].y
  94. if freeze.time == 0 then
  95. tfm.exec.removeObject(freeze.id)
  96. tfm.exec.removeImage(freeze.img , nil)
  97. tfm.exec.displayParticle(27, xf, yf, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
  98. tfm.exec.displayParticle(26, xf, yf, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
  99. tfm.exec.displayParticle(28, xf, yf, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
  100. for name , player in pairs(tfm.get.room.playerList) do
  101. local xp , yp = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y
  102. if (not tfm.get.room.playerList[name].isDead) and (math.abs(xp - xf) <= Toxic_bomb) and (math.abs(xp - xf) <= Toxic_bomb) then
  103. tfm.exec.freezePlayer(name)
  104. table.insert(frozen , { frozen = name })
  105. end
  106. end
  107. end
  108. end
  109. end
  110.  
  111. for _, lava in pairs(Lava) do
  112. local xl , yl
  113. if tfm.get.room.objectList[lava.id] then
  114. lava.time = lava.time - 0.5
  115. xl , yl = tfm.get.room.objectList[lava.id].x, tfm.get.room.objectList[lava.id].y
  116. if lava.time == 0 then
  117. tfm.exec.removeObject(lava.id)
  118. tfm.exec.removeImage(lava.img , nil)
  119. lava.effect = tfm.exec.addImage("18ad3c5c5c7.png", "!1", xl, yl - 55, nil, 0.80, 0.80, 0 , 1, 0.5, 0.5, true)
  120. tfm.exec.addPhysicObject(1 , xl + 55, yl, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
  121. tfm.exec.addPhysicObject(2 , xl - 20 , yl, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
  122. tfm.exec.addPhysicObject(3 , xl + 15, yl + 45, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
  123. tfm.exec.addPhysicObject(4 , xl - 25, yl - 35 , {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
  124. tfm.exec.addPhysicObject(5 , xl - 55, yl, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
  125. tfm.exec.addPhysicObject(6 , xl - 75, yl + 10, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
  126. tfm.exec.addPhysicObject(7 , xl +70 , yl + 60, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
  127. tfm.exec.addPhysicObject(8 , xl - 90, yl + 60, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
  128. tfm.exec.addPhysicObject(9 , xl + 20, yl + 60, {type = 3 , width = 30 , height = 25 , groundCollision = true , restitution = 35})
  129. end
  130. end
  131. end
  132.  
  133.  
  134. for _,lava in pairs(Lava) do
  135. if lava.effectTime ~= 0 then lava.effectTime = lava.effectTime - 0.5 end
  136. if lava.effectTime == 0 then tfm.exec.removeImage(lava.effect , true) end
  137. end
  138.  
  139. for _ , freeze in pairs(Freeze) do
  140. freeze.unfreeze = freeze.unfreeze - 0.5
  141. if freeze.unfreeze == 0 then
  142. for _ , f in pairs(frozen) do
  143. tfm.exec.freezePlayer(f.frozen , false , false)
  144. frozen = {}
  145. end
  146. end
  147. end
  148. for _,timer in pairs(timers) do
  149. if timer.t ~= 0 then
  150. timer.t = timer.t - 0.5
  151. if timer.t == 0 then
  152. tfm.exec.bindKeyboard(timer.n, 86, true, true) -- v --
  153. tfm.exec.bindKeyboard(timer.n, 88, true, true) -- x --
  154. tfm.exec.bindKeyboard(timer.n, 70, true, true) -- F --
  155. end
  156. end
  157. end
  158. for _ , jt in pairs (FlyTimer) do
  159. if jt.t ~= 0 then
  160. jt.t = jt.t - 0.5
  161. tfm.exec.bindKeyboard(jt.n, 67, true, false) -- c --
  162. tfm.exec.bindKeyboard(jt.n, 17, true, false) -- ctrl --
  163. end
  164. end
  165. for _ , dt in pairs(DashTimer) do
  166. if dt.t ~= 0 then
  167. dt.t = dt.t - 0.5
  168. tfm.exec.bindKeyboard(dt.n, 32, true, false) -- space --
  169. if dt.t == 0 then
  170. tfm.exec.bindKeyboard(dt.n, 32, true, true) -- space --
  171. end
  172. end
  173. end
  174.  
  175. if lobbyAntiThrow ~= 0 then
  176. lobbyAntiThrow = lobbyAntiThrow - 1
  177. if lobbyAntiThrow == 0 then
  178. for name , player in pairs(tfm.get.room.playerList) do
  179. tfm.exec.bindKeyboard(name, 86, true, true) -- v --
  180. tfm.exec.bindKeyboard(name, 88, true, true) -- x --
  181. tfm.exec.bindKeyboard(name, 70, true, true) -- F --
  182. tfm.exec.bindKeyboard(name, 32, true, true) -- Space --
  183. tfm.exec.bindKeyboard(name, 67, true, true) -- c --
  184. tfm.exec.bindKeyboard(name, 17, true, true) -- ctrl --
  185. end
  186. end
  187. end
  188.  
  189.  
  190. if wait2 ~= 0 then
  191. wait2 = wait2 - 1
  192. if wait2 == 0 then
  193. start_maps()
  194. end
  195. end
  196.  
  197. if maptime ~= 0 then
  198. maptime = maptime - 1
  199. if maptime == 0 then
  200. noWin()
  201. end
  202. end
  203.  
  204.  
  205. end
  206.  
  207. ----------Main Script------------
  208. function noWin()
  209. tfm.exec.setGameTime(5, init)
  210. tfm.exec.disableAutoNewGame(true)
  211. wait2 = 10
  212. 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)
  213. end
  214.  
  215. function start_maps()
  216. wait = 0
  217. wait2 = 0
  218. maptime = 275
  219. tfm.exec.disableAutoNewGame(false)
  220. tfm.exec.newGame(Maps[math.random(1, #Maps)]) -- default map , you can change it if you want that
  221. ui.removeTextArea(777 , nil)
  222. ui.addTextArea(9999 , "<font size='20'><p align='center'><font color='#ffffff'>Lives : </a>" , nil, 30, 367, 80, 50, 0x000000, 0xE9BA00, 0, true)
  223. ui.addTextArea(9998 , "<font size='22'><p align='center'><font color='#ff0000'>2 </a>", nil, 80, 367, 80, 50, 0x000000, 0xE9BA00, 0, true)
  224. 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)
  225. ui.removeTextArea(11 , nil)
  226. ui.removeTextArea(22 , nil)
  227. ui.removeTextArea(33 , nil)
  228. bombs = {}
  229. winner = {}
  230. lifeChance = {}
  231. Gas = {}
  232. Freeze = {}
  233. frozen = {}
  234. timers = {}
  235. FlyTimer = {}
  236. DashTimer = {}
  237. for name , player in pairs(tfm.get.room.playerList) do
  238. system.bindKeyboard(name, 90, true, false) -- z --
  239. system.bindKeyboard(name, 88, true, false) -- x --
  240. system.bindKeyboard(name, 3, true, false) -- ↓ --
  241. system.bindKeyboard(name, 71, true, false) -- G --
  242. system.bindKeyboard(name, 70, true, false) -- F --
  243. tfm.exec.respawnPlayer(name)
  244. life_chance(name)
  245. -- tfm.exec.addImage("18ab936f44b.png", "!1", 50, 32, nil, 0.2, 0.2, 0 , 1, 0.5, 0.5, false) ,
  246. -- life2 = tfm.exec.addImage("18ab936f44b.png", "!1", 55,32, nil, 0.2, 0.2, 0 , 1, 0.5, 0.5, false)
  247. print(#lifeChance)
  248. end
  249. lobbyAntiThrow = 8
  250. tfm.exec.setGameTime(150, init)
  251. ui.setMapName("<font color='#E9BA00'>Bomb<font color='#000000'>Squad<font color='#B7B7B7'> - Bartpo#9958 ")
  252. i2 = tfm.exec.addImage("18ab936f44b.png", "!1", 145,378, nil, 0.145, 0.145, 0 , 1, 0.5, 0.5, false)
  253. end
  254.  
  255. function life_chance (name)
  256. table.insert(lifeChance , { n = name , chance = 2})
  257. end
  258.  
  259. function eventNewPlayer(playerName)
  260. timer[playerName] = {}
  261. ui.setMapName("<font color='#E9BA00'>Bomb<font color='#000000'>Squad<font color='#B7B7B7'> - Bartpo#9958 ")
  262. 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)
  263. end
  264.  
  265. for n in next,tfm.get.room.playerList do
  266. eventNewPlayer(n)
  267. end
  268.  
  269. function eventPlayerLeft(playerName)
  270. for i , life in ipairs(lifeChance) do
  271. if life.n == playerName then
  272. table.remove(lifeChance , i)
  273. end
  274. end
  275. if #lifeChance == 1 then
  276. check_alive(true)
  277. if not #lifeChance == 1 then check_alive(false)
  278. end
  279. end
  280. end
  281.  
  282. function eventPlayerDied(playerName)
  283. for i , life in ipairs(lifeChance) do
  284. if life.n == playerName and life.chance == 2 then
  285. life.chance = life.chance - 1
  286. ui.updateTextArea(9998, "<font size='22'><p align='center'><font color='#ff0000'>1 </a>", life.n)
  287. tfm.exec.respawnPlayer(life.n)
  288. end
  289. if life.n == playerName and life.chance == 1 then
  290. life.chance = life.chance - 1
  291. elseif life.n == playerName and life.chance == 0 then
  292. ui.updateTextArea(9998, "<font size='22'><p align='center'><font color='#ff0000'>0 </a>", life.n)
  293. table.remove(lifeChance , i)
  294. end
  295. end
  296.  
  297. print(#lifeChance)
  298. if #lifeChance == 1 then check_alive(true) end
  299. if #lifeChance > 1 then check_alive(false) end
  300. if #lifeChance == 0 then noWin() end
  301.  
  302. end
  303.  
  304. function check_alive(check)
  305. for name , player in pairs(tfm.get.room.playerList) do
  306. if not tfm.get.room.playerList[name].isDead and #lifeChance == 1 then
  307. table.insert(winner , {winner = name})
  308. end
  309. end
  310. for _ , win in pairs(winner) do
  311. if check == true then
  312. tfm.exec.disableAutoNewGame(true)
  313. tfm.exec.giveCheese(win.winner)
  314. tfm.exec.playerVictory(win.winner)
  315. end
  316. end
  317. if #lifeChance <= 0 then
  318. tfm.exec.disableAutoNewGame(true)
  319. start_maps()
  320. end
  321. end
  322.  
  323. function eventPlayerWon(playerName, timeElapsed, timeElapsedSinceRespawn)
  324. for _,win in pairs(winner) do
  325. tfm.exec.setPlayerScore(win.winner, -15 , true)
  326. end
  327.  
  328. wait2 = 10
  329. 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)
  330.  
  331. end
  332.  
  333. function eventKeyboard(n, keyCode, down, xPlayerPosition, yPlayerPosition, xPlayerVelocity, yPlayerVelocity)
  334. local extimerF , extimerN , extimerG , extimerF , extimerJ , score = 3 , 3 , 4 , 4 , 3.5 , tfm.get.room.playerList[n].score
  335. if not (tfm.get.room.playerList[n].isDead) and timer[n] then
  336. if not timer[n].bomb or timer[n].bomb + 3000 < os.time() then
  337. if not (tfm.get.room.playerList[n].isDead) and keyCode == 88 then -- x --
  338. timer[n].bomb = os.time()
  339. throw_explode_bomb(n, true )
  340. elseif keyCode == 86 then -- v --
  341. timer[n].bomb = os.time()
  342. throw_explode_bomb(n, false )
  343. end
  344. if keyCode == 70 then -- ULTIMATE F --
  345. for _ , player in pairs(gEquip) do
  346. if player.g == n then
  347. timer[n].bomb = os.time()
  348. throw_gas_bomb(n)
  349. end
  350. end
  351. end
  352. if keyCode == 70 then -- ULTIMATE F --
  353. for _ , player in pairs(fEquip) do
  354. if player.f == n then
  355. timer[n].bomb = os.time()
  356. throw_freeze_bomb(n)
  357. end
  358. end
  359. end
  360. if keyCode == 70 then -- ULTIMATE F --
  361. for _ , player in pairs(lEquip) do
  362. if player.l == n then
  363. timer[n].bomb = os.time()
  364. throw_lava_bomb(n)
  365. end
  366. end
  367. end
  368. end
  369. end
  370. ------- MOVES ------------
  371. 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 --
  372. timer[n].j = os.time() -- C -
  373. dash(n)
  374. end
  375. 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 --
  376. timer[n].j = os.time() -- c -
  377. high_jump(n)
  378. end
  379. 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 --
  380. timer[n].j = os.time()
  381. teleport_up(n)
  382. end
  383. end
  384.  
  385. function time(name , time)
  386. tfm.exec.bindKeyboard(name, 86, true, false) -- v --
  387. tfm.exec.bindKeyboard(name, 88, true, false) -- x --
  388. tfm.exec.bindKeyboard(name, 70, true, false) -- F --
  389. table.insert(timers , { n = name , t = time })
  390. end
  391.  
  392. function timeJump(name , time)
  393. table.insert(FlyTimer , { n = name , t = time })
  394. end
  395.  
  396. function timeDash(name , time)
  397. table.insert(DashTimer , { n = name , t = time })
  398. end
  399.  
  400. ---------- Bombs Functions --------------
  401. function high_jump(name)
  402. local xfly , yfly , facing = tfm.get.room.playerList[name].x , tfm.get.room.playerList[name].y , checkfacePlayer(name)
  403. tfm.exec.movePlayer(name, 0 , 0 , false, xPlayerVelocity , -80 , false)
  404. tfm.exec.displayParticle(26, xfly, yfly, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
  405.  
  406. end
  407.  
  408. function teleport_up(name)
  409. local xtele , ytele , facing = tfm.get.room.playerList[name].x , tfm.get.room.playerList[name].y , checkfacePlayer(name)
  410. tfm.exec.movePlayer(name, 0 , ytele - 100 , false, xPlayerVelocity , -50 , false)
  411. tfm.exec.displayParticle(36, xtele, ytele, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
  412.  
  413. end
  414.  
  415. function dash(name)
  416. local xdash , ydash , facing = tfm.get.room.playerList[name].x , tfm.get.room.playerList[name].y , checkfacePlayer(name)
  417. tfm.exec.movePlayer(name, 0 , 0 , false, 80*facing , yPlayerVelocity , false)
  418. tfm.exec.displayParticle(27, xdash, ydash, xSpeed, ySpeed, xAcceleration, yAcceleration, nil)
  419.  
  420. end
  421.  
  422. function throw_explode_bomb(name, far )
  423. local x, y, facing = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y, checkfacePlayer(name)
  424. local time
  425. if far then time = 1.5 else time = 1.5 end
  426. local xSpeed, ySpeed
  427. if far then xSpeed, ySpeed = 6, -4 else xSpeed, ySpeed = 0, 0 end
  428. addExplodeBomb(time ,x ,y, far, facing , tfm.exec.addShamanObject(10, x + (throw_raduisX * facing), y - throw_raduisY, 0, xSpeed*facing, ySpeed, false))
  429. end
  430.  
  431. function addExplodeBomb(time ,x ,y, far, facing , id )
  432. table.insert(bombs, {
  433. id = id ,
  434. time = time ,
  435. img = tfm.exec.addImage("18a9a9490f1.png", "#"..id, 0, -10, nil, 0.2, 0.2, 0 , 1, 0.5, 0.5, false)
  436. })
  437. end
  438.  
  439. function throw_gas_bomb(name)
  440. local xg, yg, facing = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y, checkfacePlayer(name)
  441. local time , effecTime = 2 , 3.5
  442. local xSpeed, ySpeed = 6 , -4
  443. addGasBomb(time ,xg ,yg , facing , tfm.exec.addShamanObject(10, xg + (throw_raduisX * facing), yg - throw_raduisY, 0, xSpeed*facing, ySpeed, false) , effecTime )
  444. end
  445.  
  446. function addGasBomb(time ,xg ,yg, facing , id , effecTime )
  447. table.insert(Gas, {
  448. id = id ,
  449. time = time ,
  450. img = tfm.exec.addImage("18a9a950092.png", "#"..id, 0, -10, nil, 0.2, 0.2, 0 , 1, 0.5, 0.5, false),
  451. effect = "",
  452. effecTime = effecTime
  453. })
  454. end
  455.  
  456. function throw_freeze_bomb(name)
  457. local xf, yf, facing = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y, checkfacePlayer(name)
  458. local time , unfreeze = 2 , 6
  459. local xSpeed, ySpeed = 6 , -4
  460. addFreezeBomb(time ,xf ,yf , facing , tfm.exec.addShamanObject(10, xf + (throw_raduisX * facing), yf - throw_raduisY, 0, xSpeed*facing, ySpeed, false) , unfreeze)
  461. end
  462.  
  463. function addFreezeBomb(time ,xg ,yg, facing , id , unfreeze)
  464. table.insert(Freeze, {
  465. id = id ,
  466. time = time ,
  467. img = tfm.exec.addImage("18a9a959c06.png", "#"..id, 0, -10, nil, 0.2, 0.2, 0 , 1, 0.5, 0.5, false),
  468. unfreeze = unfreeze
  469. })
  470. end
  471.  
  472. function throw_lava_bomb(name)
  473. local xl, yl, facing = tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y, checkfacePlayer(name)
  474. local time , removeLava , effectTime = 2 , 6 , 3.5
  475. local xSpeed, ySpeed = 6 , -4
  476. addLavaBomb(time ,xl ,yl , facing , tfm.exec.addShamanObject(10, xl + (throw_raduisX * facing), yl - throw_raduisY, 0, xSpeed*facing, ySpeed, false) , removeLava , effectTime)
  477. end
  478.  
  479. function addLavaBomb(time ,xl ,yl, facing , id , removeLava , effectTime)
  480. table.insert(Lava, {
  481. id = id ,
  482. time = time ,
  483. img = tfm.exec.addImage("18ad3c6618f.png", "#"..id, 0, -10, nil, 0.13, 0.13, 0 , 1, 0.5, 0.5, false),
  484. effect = "",
  485. removeLava = removeLava,
  486. effectTime = effectTime,
  487. lava = ""
  488. })
  489. print("lava")
  490. end
  491.  
  492. function checkfacePlayer(name)
  493. if (tfm.get.room.playerList[name].isFacingRight) then
  494. return 1
  495. else return -1
  496. end
  497. end
  498.  
  499.  
  500.  
  501. -------------PopUps-------------
  502. function eventTextAreaCallback(id, n, eventName )
  503. local scoreUI = tfm.get.room.playerList[n].score
  504.  
  505. if id == 1 then
  506. ui.removeTextArea(1 , n)
  507. 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)
  508. 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)
  509. 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)
  510. 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)
  511. end
  512.  
  513. if id == 0 then -- close --
  514. 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)
  515. ui.removeTextArea(0 , n)
  516. ui.removeTextArea(11 , n)
  517. ui.removeTextArea(22 , n)
  518. ui.removeTextArea(33 , n)
  519. end
  520.  
  521. if id == 10 then
  522. ui.removeTextArea(10 , n)
  523. ui.removeTextArea(6 , n)
  524. ui.removeTextArea(7 , n)
  525. end
  526.  
  527. if id == 69 then
  528. 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)
  529. ui.removeTextArea(8 , n)
  530. ui.removeTextArea(100 , n)
  531. ui.removeTextArea(101 , n)
  532. ui.removeTextArea(1000 , n)
  533. ui.removeTextArea(1011 , n)
  534. ui.removeTextArea(1012 , n)
  535. ui.removeTextArea(69 , n)
  536. ui.removeTextArea(969696 , n)
  537. for _ , x in pairs(images) do
  538. if x.nx == n then
  539. tfm.exec.removeImage(x.tox)
  540. tfm.exec.removeImage(x.ice)
  541. tfm.exec.removeImage(x.lava)
  542. end
  543. end
  544. end
  545.  
  546. if id == 11 then
  547. ui.addTextArea(6,
  548. "<font size='22'><p align='center'><font color='#E9BA00'>________ Controls ________\
  549. \
  550. <font size='13'><p align='left'><font color='#E9BA00'> X <font size='11'><font color='#ffffff'> Throw far exploding bomb\
  551. \
  552. <font size='13'><p align='left'><font color='#E9BA00'> V <font size='11'><font color='#ffffff'> Throw near exploding bomb\
  553. \
  554. <font size='13'><p align='left'><font color='#E9BA00'> C <font size='11'><font color='#ffffff'> Performs a high jump \
  555. \
  556. <font size='13'><p align='left'><font color='#E9BA00'> F <font size='11'><font color='#ffffff'> Throw super bomb<font size='9'> Menu > abilities\
  557. \
  558. <font size='13'><p align='left'><font color='#E9BA00'> SPACE <font size='11'><font color='#ffffff'> Performs a dash \
  559. \
  560. <font size='13'><p align='left'><font color='#E9BA00'> CTRL <font size='11'><font color='#ffffff'> Teleports you up \
  561. \
  562. ", n, 230, 100, 350, 250, 0x191919, 0xE9BA00, 0.8, true)
  563. 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)
  564. end
  565.  
  566. if id == 33 then
  567. ui.addTextArea(7,
  568. "<font size='22'><p align='center'><font color='#E9BA00'>________ Credits ________\
  569. \
  570. <font size='13'><p align='center'><font color='#ffffff'>This module is by <font color='#E9BA00'> Bartpo#9958 \
  571. <font size='10'><p align='center'><font color='#ffffff'>For any issues or bugs , DM me on ateleir801 forum or /c Bartpo#9958\
  572. \
  573. \
  574. <font size='13'><p align='center'><font color='#E9BA00'>Map Makers\
  575. \
  576. <font size='12'><p align='center'><font color='#ffffff'> Night_wolf#8965 Crazy#7020 Sonic12341#0000 \
  577. \
  578. <font size='13'><p align='center'><font color='#E9BA00'>Coding Helpers\
  579. \
  580. <font size='12'><p align='center'><font color='#ffffff'>Nnoooooooorr#0000 Say#1006\
  581. \
  582. ", n, 230, 100, 350, 250, 0x191919, 0xE9BA00, 0.8, true)
  583. 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)
  584. end
  585.  
  586. if id == 22 then
  587. print("F")
  588. ui.addTextArea(8,"<font size='22'><p align='center'><font color='#E9BA00'>________ Abilities ________\
  589. <font size='10'><p align='center'><font color='#ffffff'>You can throw these bombs only if you have the required number of wins \
  590. ( Enjoy your time )", n, 195, 75, 420, 280, 0x191919, 0xE9BA00, 0.8, true)
  591. 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)
  592. --ui.addTextArea(100 , "<font size='14'><p align='center'><font color='#E9BA00'>Poison Bomb</a>" , n, 262, 175, 100, 30, 0x000000, 0xE9BA00, 0, true)
  593. --ui.addTextArea(101 , "<font size='14'><p align='center'><font color='#E9BA00'>Ice Bomb</a>" , n, 447, 175, 100, 30, 0x000000, 0xE9BA00, 0, true)
  594. ui.removeTextArea(22 , n)
  595. ui.addTextArea(969696 , "<font size='12'><p align='center'><font color='#E9BA00'>Abilities</a>" , n, 140, 32, 55, 20, 0x000000, 0xE9BA00, 0, true)
  596. image_remover(n)
  597. 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)
  598. 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)
  599. 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)
  600.  
  601.  
  602. if scoreUI >= 2 then
  603. 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)
  604. 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)
  605. 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)
  606. end
  607.  
  608. if scoreUI >= 3 then
  609. 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)
  610. 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)
  611. 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)
  612. end
  613.  
  614. for _ , eq in pairs(gEquip) do
  615. if eq.g == n then
  616. if scoreUI == 2 then
  617. 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)
  618. 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)
  619. 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)
  620. elseif scoreUI >= 3 then
  621. 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)
  622. 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)
  623. 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)
  624. end
  625. end
  626. end
  627.  
  628. for _ , eq in pairs(fEquip) do
  629. if eq.f == n then
  630. if scoreUI == 0 or scoreUI == 1 then
  631. 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)
  632. 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)
  633. 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)
  634. elseif scoreUI == 2 then
  635. 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)
  636. 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)
  637. 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)
  638. end
  639. if scoreUI >= 3 then
  640. 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)
  641. 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)
  642. 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)
  643. end
  644.  
  645. end
  646. end
  647.  
  648. for _ , eq in pairs(lEquip) do
  649. if eq.l == n then
  650. 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)
  651. 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)
  652. 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)
  653. end
  654. end
  655.  
  656. end
  657.  
  658. if id == 1000 then
  659. if scoreUI == 2 then
  660. 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)
  661. 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)
  662. 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)
  663. gas_equip(n)
  664. elseif scoreUI >= 3 then
  665. 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)
  666. 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)
  667. 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)
  668. gas_equip(n)
  669. end
  670. end
  671.  
  672. if id == 1011 then
  673. if scoreUI == 0 or scoreUI == 1 then
  674. 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)
  675. 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)
  676. 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)
  677. freeze_equip(n)
  678. elseif scoreUI == 2 then
  679. 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)
  680. 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)
  681. 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)
  682. freeze_equip(n)
  683. end
  684. if scoreUI >= 3 then
  685. 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)
  686. 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)
  687. 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)
  688. freeze_equip(n)
  689. end
  690. end
  691.  
  692. if id == 1012 and scoreUI >= 3 then
  693. 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)
  694. 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)
  695. 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)
  696. lava_equip(n)
  697. end
  698.  
  699. end
  700.  
  701. function image_remover(name)
  702. print(name)
  703. table.insert(images , { nx = name ,
  704. tox = tfm.exec.addImage("18a9a950092.png", "&1", 250, 170, name, 0.2, 0.2, 0 , 1, 0.5, 0.5, false),
  705. ice = tfm.exec.addImage("18a9a959c06.png", "&1", 250, 240, name, 0.19, 0.19, 0 , 1, 0.5, 0.5, false),
  706. lava = tfm.exec.addImage("18ad3c6618f.png", "&1", 250, 320, name, 0.115, 0.115, 0 , 1, 0.5, 0.5, false)
  707. })
  708. end
  709.  
  710. function gas_equip(name)
  711. for i , pl in ipairs(fEquip) do
  712. if name == pl.f then
  713. table.remove(fEquip , i)
  714. end
  715. end
  716.  
  717. for i , pl in ipairs(gEquip) do
  718. if name == pl.g then
  719. table.remove(gEquip , i)
  720. end
  721. end
  722.  
  723.  
  724. for i , pl in ipairs(lEquip) do
  725. if name == pl.l then
  726. table.remove(lEquip , i)
  727. end
  728. end
  729.  
  730.  
  731. table.insert( gEquip , { g = name})
  732. print("ge")
  733. end
  734.  
  735. function freeze_equip(name)
  736. for i , pl in ipairs(gEquip) do
  737. if name == pl.g then
  738. table.remove(gEquip , i)
  739. end
  740. end
  741. for i , pl in ipairs(fEquip) do
  742. if name == pl.f then
  743. table.remove(fEquip , i)
  744. end
  745. end
  746. for i , pl in ipairs(lEquip) do
  747. if name == pl.l then
  748. table.remove(lEquip , i)
  749. end
  750. end
  751. table.insert( fEquip , {f = name})
  752. print("FE")
  753. end
  754.  
  755. function lava_equip(name)
  756. for i , pl in ipairs(gEquip) do
  757. if name == pl.g then
  758. table.remove(gEquip , i)
  759. end
  760. end
  761. for i , pl in ipairs(fEquip) do
  762. if name == pl.f then
  763. table.remove(fEquip , i)
  764. end
  765. end
  766. for i , pl in ipairs(lEquip) do
  767. if name == pl.l then
  768. table.remove(lEquip , i)
  769. end
  770. end
  771. table.insert( lEquip , {l = name})
  772. print("FE")
  773. end
  774. ----------- Turn on -------------
  775. start_maps()
  776.  
  777.  
  778.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement