Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.setUIMapName('<b><font color="#95D9D6" size="14">ALL HAIL BOB</font></b><textformat blockindent></textformat>')
- tfm.exec.setUIShamanName('')
- tfm.exec.disableAutoScore(true)
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.newGame('#0')
- rune=0
- rune2=false
- bjoint={}
- jointDef={}
- joint={}
- jtype=0
- sban={}
- pet={}
- speed={}
- space=false
- val='<C><P L="4800" F="6" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="773" o="ffffff" H="10" X="4415" Y="174" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="324650" H="242" X="3930" Y="200" T="14" /><S P="0,0,0.3,0.2,0,0,0,0" L="850" o="324650" H="10" X="4340" Y="86" T="14" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="FFFFFF" H="385" X="4805" Y="208" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="873" o="ffffff" H="30" X="4365" Y="386" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="773" o="ffffff" H="10" X="4415" Y="274" T="12" /><S P="0,0,0.3,0.2,27,0,0,0" L="10" o="324650" H="70" X="4785" Y="54" T="14" /><S P="0,0,0.3,0.2,0,0,0,0" L="3000" H="30" X="2400" Y="386" T="6" /><S P="0,0,0.3,0.2,0,0,0,0" L="40" H="30" X="3913" Y="386" T="6" /><S H="30" P="0,0,0.3,0.2,0,0,0,0" L="3000" X="1500" Y="386" T="6" /></S><D><P X="4726" P="0,0" Y="372" T="68" /><P X="4565" P="0,0" Y="372" T="68" /><P X="4515" P="0,0" Y="372" T="67" /><P X="4615" P="0,1" Y="372" T="67" /><P X="4676" P="0,0" Y="372" T="67" /><P X="4776" P="0,1" Y="372" T="67" /><P X="4404" P="0,0" Y="372" T="68" /><P X="4354" P="0,0" Y="372" T="67" /><P X="4454" P="0,1" Y="372" T="67" /><P X="4566" P="0,0" Y="232" T="72" /><P X="4260" P="0,0" Y="370" T="69" /><P X="4726" P="0,0" Y="232" T="71" /><P X="4404" P="0,0" Y="332" T="71" /><P X="4565" P="0,0" Y="332" T="73" /><P X="4726" P="0,0" Y="332" T="72" /><P X="4565" P="0,0" Y="270" T="68" /><P X="4726" P="0,0" Y="270" T="68" /><P X="4404" P="0,0" Y="270" T="68" /><P X="4354" P="0,0" Y="270" T="67" /><P X="4454" P="0,1" Y="269" T="67" /><P X="4515" P="0,0" Y="269" T="67" /><P X="4615" P="0,1" Y="269" T="67" /><P X="4675" P="0,0" Y="269" T="67" /><P X="4775" P="0,1" Y="269" T="67" /><P X="4404" P="0,0" Y="232" T="73" /><P X="4268" P="0,0" Y="269" T="75" /><P X="3690" P="0,0" Y="370" T="68" /><P X="3690" P="0,0" Y="330" T="66" /><P X="3640" P="0,0" Y="370" T="67" /><P X="3740" P="0,1" Y="370" T="67" /></D><O /></Z></C>'
- mp=0
- mx=0
- my=0
- magnet=false
- dxml2='<C><P F="3" /><Z><S><S P="0,0,0.3,0.2,-40,0,0,0" L="130" o="0" H="40" X="48" Y="135" T="12" /><S P="0,0,0.3,0.2,30,0,0,0" X="27" L="215" o="0" H="320" c="2" Y="379" T="12" /><S P="0,0,0.3,0.2,40,0,0,0" X="-22" L="215" o="0" H="396" c="2" Y="375" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="37" L="20" o="0" H="10" c="2" Y="168" T="13" /><S P="0,0,0.3,0.2,5,0,0,0" L="20" o="0" H="41" X="318" Y="334" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="135" o="111111" H="10" X="187" Y="166" T="13" /><S P="0,0,0.3,0.2,27,0,0,0" L="150" o="0" H="49" X="271" Y="299" T="12" /><S P="0,0,0.3,0.9,-15,0,0,0" L="37" o="0" H="41" X="422" Y="248" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="130" o="0" H="10" X="197" Y="168" T="13" /><S P="0,0,0.3,0.2,75,0,0,0" L="80" o="0" H="41" X="340" Y="324" T="12" /><S P="0,0,0.3,0.2,-15,0,0,0" L="37" o="d7d7d7" H="41" X="357" Y="311" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="60" o="0" H="10" X="389" Y="286" T="13" /><S P="0,0,0.3,0.2,50,0,0,0" L="20" o="0" H="59" X="376" Y="355" T="12" /><S P="0,0,0.3,0.2,30,0,0,0" L="12" o="0" H="59" X="360" Y="358" T="12" /><S P="0,0,0.3,0.2,15,0,0,0" L="159" o="0" H="46" X="341" Y="238" T="12" /><S P="0,0,0.3,0.2,-15,0,0,0" L="37" o="d7d7d7" H="41" X="322" Y="300" T="12" /><S P="0,0,0.3,0.2,-15,0,0,0" L="37" o="bdbdbd" H="41" X="291" Y="272" T="12" /><S P="0,0,0.3,0.2,-15,0,0,0" L="10" o="c5c5c5" H="41" X="308" Y="304" T="12" /><S P="0,0,0.3,0.2,5,0,0,0" L="10" o="c5c5c5" H="41" X="313" Y="295" T="12" /><S P="0,0,0.3,0.2,50,0,0,0" L="159" o="0" H="46" X="325" Y="217" T="12" /><S P="0,0,0.3,0.2,20,0,0,0" L="159" o="0" H="46" X="300" Y="269" T="12" /><S P="0,0,0.3,0.2,40,0,0,0" L="159" o="0" H="46" X="328" Y="277" T="12" /><S P="0,0,0.3,0.2,-75,0,0,0" L="10" o="0" H="10" X="390" Y="256" T="12" /><S P="0,0,0.3,0.2,-30,0,0,0" L="20" o="0" H="10" X="349" Y="382" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="23" o="0" H="10" X="402" Y="275" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="23" o="0" H="10" X="405" Y="282" T="13" /><S P="0,0,0.3,0.2,-75,0,0,0" L="10" o="0" H="10" X="395" Y="263" T="12" /><S P="0,0,0.3,0.2,15,0,0,0" L="10" o="0" H="10" X="400" Y="279" T="12" /><S P="0,0,0.3,0.2,-30,0,0,0" L="20" o="0" H="60" X="239" Y="181" T="12" /><S P="0,0,0.3,0.2,25,0,0,0" L="30" o="0" H="30" X="407" Y="297" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="34" o="0" H="10" X="266" Y="189" T="13" /><S P="0,0,0.3,0.2,-75,0,0,0" L="20" o="0" H="60" X="247" Y="160" T="12" /><S P="0,0,0.3,0.2,15,0,0,0" L="20" o="0" H="41" X="283" Y="204" T="12" /><S P="0,0,0.3,0.2,-100,0,0,0" L="30" o="ffffff" H="30" X="248" Y="177" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="30" o="ffffff" H="10" X="266" Y="189" T="13" /><S P="0,0,0.3,0.2,-75,0,0,0" L="15" o="ffffff" H="10" X="281" Y="212" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="21" o="f696de" H="10" X="272" Y="194" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="19" o="e24bbb" H="10" X="273" Y="194" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="17" o="9c0977" H="10" X="273" Y="195" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="14" o="700e57" H="10" X="274" Y="195" T="13" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="400030" H="10" X="279" Y="198" T="13" /><S P="0,0,0.3,0.2,-30,0,0,0" L="10" o="400030" H="10" X="281" Y="190" T="12" /><S P="0,0,0.3,0.2,-45,0,0,0" H="160" L="40" o="cfc477" X="81" c="2" N="" Y="48" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="16" o="ffffff" H="10" X="267" Y="175" T="13" /><S P="0,0,0.3,0.2,-55,0,0,0" L="10" o="ffffff" H="10" X="275" Y="209" T="12" /><S P="0,0,0.3,0.2,-58,0,0,0" H="160" L="40" o="f8efac" X="95" c="2" N="" Y="31" T="12" /><S P="0,0,0.3,0.2,-75,0,0,0" X="123" L="18" o="0" H="50" c="2" N="" Y="116" T="12" /><S P="0,0,0,0.2,0,0,0,0" X="-238" L="477" o="6a7495" H="800" c="1" Y="300" T="12" /><S P="0,0,0,0.2,180,0,0,0" X="50" L="70" o="6a7495" H="30" c="2" N="" Y="-14" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="800" H="10" X="400" Y="405" T="0" /></S><D><P X="194" P="0,0" Y="471" T="49" /><F Y="80" X="693" /><T Y="227" X="374" /><DS Y="208" X="372" /><P X="432" P="0,0" Y="247" T="55" /><P X="387" P="0,0" Y="384" T="45" /><P X="447" P="0,0" Y="69" T="43" /><P X="424" P="0,0" Y="256" T="55" /><P X="436" P="0,0" Y="276" T="71" /><P X="413" P="0,1" Y="257" T="21" /></D><O /></Z></C>'
- popx=0
- popy=0
- perm=0
- xml=''
- dxml='<C><P F="3" /><Z><S><S H="12" P="0,0,0.3,0.2,180,0,0,0" L="22" o="0" X="104" Y="144" T="12" /><S H="50" P="0,0,0.3,0.2,-160,0,0,0" L="112" o="0" X="467" Y="226" T="12" /><S H="20" P="0,0,0.3,0.2,120,0,0,0" L="42" o="0" X="90" Y="136" T="12" /><S H="10" P="0,0,0.3,0.2,-40,0,0,0" L="42" o="0" X="738" Y="63" T="12" /><S H="35" P="0,0,0.3,0.2,30,0,0,0" L="42" o="0" X="449" Y="221" T="12" /><S H="25" P="0,0,0.3,0.2,160,0,0,0" L="80" o="0" X="124" Y="126" T="12" /><S H="15" P="0,0,0.3,0.2,140,0,0,0" L="35" o="0" X="169" Y="93" T="12" /><S H="48" P="0,0,0.3,0.2,30,0,0,0" L="123" o="0" X="356" Y="139" T="12" /><S H="70" P="0,0,0.3,0.2,0,0,0,0" L="60" o="0" X="375" Y="192" T="12" /><S H="66" P="0,0,0.3,0.2,-120,0,0,0" L="119" o="0" X="404" Y="163" T="12" /><S H="20" P="0,0,0.3,0.2,80,0,0,0" L="59" o="0" X="344" Y="192" T="12" /><S H="75" P="0,0,0.3,0.2,-155,0,0,0" L="64" o="0" X="354" Y="263" T="12" /><S H="42" P="0,0,0.3,0.2,170,0,0,0" L="76" o="0" X="199" Y="116" T="12" /><S H="13" P="0,0,0.3,0.2,-60,0,0,0" L="70" o="0" X="149" Y="176" T="12" /><S H="65" P="0,0,0.3,0.2,-30,0,0,0" L="60" o="0" X="392" Y="220" T="12" /><S H="55" P="0,0,0.3,0.2,-50,0,0,0" L="38" o="0" X="162" Y="125" T="12" /><S H="50" P="0,0,0.3,0.2,150,0,0,0" L="101" o="0" X="276" Y="89" T="12" /><S H="141" P="0,0,0.3,0.2,160,0,0,0" L="68" o="0" X="317" Y="184" T="12" /><S H="26" P="0,0,0.3,0.2,60,0,0,0" L="52" o="0" X="146" Y="141" T="12" /><S H="110" P="0,0,0.3,0.2,150,0,0,0" L="99" o="0" X="262" Y="248" T="12" /><S H="44" P="0,0,0.3,0.2,120,0,0,0" L="220" o="0" X="254" Y="164" T="12" /><S H="65" P="0,0,0.3,0.2,-150,0,0,0" L="114" o="0" X="337" Y="95" T="12" /><S H="11" P="0,0,0.3,0.2,-70,0,0,0" L="41" o="0" X="719" Y="89" T="12" /><S H="44" P="0,0,0.3,0.2,-185,0,0,0" L="87" o="0" X="549" Y="241" T="12" /><S H="15" P="0,0,0.3,0.2,-280,0,0,0" L="48" o="0" X="719" Y="125" T="12" /><S H="10" P="0,0,20,0.2,70,0,0,0" L="31" o="ff" X="708" Y="144" T="12" /><S H="35" P="0,0,0.3,0.2,-220,0,0,0" L="81" o="0" X="614" Y="218" T="12" /><S H="28" P="0,0,0.3,0.2,170,0,0,0" L="66" o="0" X="668" Y="189" T="12" /><S H="23" P="0,0,0.3,0.2,-240,0,0,0" L="61" o="0" X="707" Y="164" T="12" /><S H="10" P="0,0,10,0.2,-80,0,0,0" L="281" o="ff" X="265" Y="206" T="12" /><S H="10" P="0,0,10,0.2,-60,0,0,0" L="240" o="ff" X="226" Y="175" T="12" /><S H="10" P="0,0,0.3,0.2,60,0,0,0" L="132" o="ff" X="320" Y="123" T="12" /><S H="10" P="0,0,0.3,0.2,80,0,0,0" L="120" o="ff" X="364" Y="238" T="12" /><S H="17" P="0,0,0.3,0.2,-20,0,0,0" L="19" o="0" X="134" Y="201" T="12" /><S H="10" P="0,0,0,20,-20,0,0,0" L="20" o="ff0000" X="149" Y="114" T="12" /><S H="10" P="0,0,0,0.2,-80,0,0,0" L="40" o="ff" X="372" Y="315" T="12" /><S H="10" P="0,0,20,0.2,-30,0,0,0" L="35" o="ff" X="143" Y="109" T="12" /><S H="10" P="0,0,20,0.2,40,0,0,0" L="174" o="ff" X="362" Y="125" T="12" /><S H="10" P="0,0,0.3,0.2,60,0,0,0" L="93" o="ff" X="439" Y="208" T="12" /><S H="10" P="0,0,20,0.2,-20,0,0,0" L="36" o="ff" X="725" Y="147" T="12" /></S><D><T Y="323" X="221" /><F Y="171" X="119" /><DS Y="203" X="581" /><DC Y="156" X="680" /><P X="387" P="0,0" Y="386" T="45" /></D><O /></Z></C>'
- btele={}
- bground={}
- bsham={}
- bpart={}
- bexp={}
- ntele={}
- nground={}
- nsham={}
- npart={}
- nexp={}
- deadp=0
- players=0
- survivor=false
- surv={'3685564','787131','2408376','3670885','3620709','3587860','3549404','481676'}
- name3=false
- name2={}
- worship2={}
- obj={}
- sacr={}
- sacrifice=false
- worship={}
- LongMap='<S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="3000" X="-5" Y="2400" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="3000" X="2400" Y="2400" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="0" H="10" X="4800" Y="4805" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="0" H="10" X="2400" Y="-5" T="12" /><S P="1,-1,0.3,0.2,0,0,0,0" X="1200" L="2400" o="6a7495" H="3000" c="4" Y="3200" T="12" lua="bg" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="3000" X="-5" Y="1500" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="3000" X="4805" Y="1500" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="3000" X="-5" Y="3300" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="3000" X="4805" Y="2400" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="0" H="3000" X="4805" Y="3300" T="12" /><S P="1,-1,0.3,0.2,0,0,0,0" H="3000" L="2400" o="6a7495" X="1200" c="4" Y="3300" T="12" lua="bg" /><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="0" H="10" X="2400" Y="805" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="0" H="10" X="1500" Y="805" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="0" H="10" X="3300" Y="805" T="12" /><S P="1,-1,0.3,0.2,0,0,0,0" H="3000" L="2400" o="6a7495" X="1200" c="4" Y="1500" T="12" lua="bg" /><S P="1,-1,0.3,0.2,0,0,0,0" X="1200" L="2400" o="6a7495" H="3000" c="4" Y="3000" T="12" lua="bg" /><S P="0,0,0.3,0.2,0,0,0,0" c="4" L="10" o="0" H="3000" X="2400" Y="1500" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="3000" L="10" o="0" X="2400" c="4" Y="3300" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="4805" L="10" o="0" H="3000" c="1" Y="3300" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" H="3000" L="10" o="0" X="4805" c="1" Y="3000" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" X="4805" L="10" o="0" H="3000" c="1" Y="1500" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="0" H="10" X="1500" Y="-5" T="12" /><S P="0,0,0.3,0.2,0,0,0,0" L="3000" o="0" H="10" X="3300" Y="-5" T="12" /></S><D><DS Y="785" X="2400" /></D><O /></Z></C>'
- rp={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37}
- time=0
- time2=false
- ax=825
- ay=300
- ar=100
- help2=0
- help=0
- doll={}
- ban2=false
- ban={hi}
- objects={}
- print2=false
- rcolor3=0
- rcolor2=false
- nadmins={}
- worsh2={0,10,20,30,40}
- ptype=0
- pid={}
- rcolor=false
- rcolor2=0
- dead=false
- color2={0xff0000,0x0066ff,0x00ff00,0xff66cc,0xffffff,0xffff00,0xff9900}
- gtype=10000
- bodyDef = {}
- id2={1,2,3,4,5,6,7,10,17,18,19,23,24,28,32,34,35,39,40,45,46,54,57,59,60,61,62,101,102,201,201,203,301,302,401,402,403,1002,2801,2802,2803,2805,2806,2807,65,601,1003,701,1701,1702,602,404,303,1703,103,405,304,205,2808,2809,67,68,69,85}
- bl=0
- admins={Itchyboy=true, Drblackjack=true, Bobalmighty=true, Cuppycakeyy=true, Roosderp=true, Smrue=true, Laviender=true, Xxpuppylover=true, Tacoyummy=true, Chuichikaru=true}
- id={}
- function eventNewPlayer(name)
- table.insert(jointDef,name) jointDef[name]={
- type=0,
- point1=0,
- point2=0,
- frequency=10,
- damping=0.2,
- line=10,
- color=0xFF6600,
- alpha=1,
- foreground=false
- }
- table.insert(joint,name) joint[name]=0
- table.insert(bjoint,name) bjoint[name]=false
- table.insert(speed,name) speed[name]={bool=false,num=0}
- table.insert(id,name) id[name]={id,angle,vx,vy,ghost,bool} id[name].bool=false
- table.insert(pid,name) pid[name]={pid,vx,vy,ax,ay,bool} pid[name].bool=false
- table.insert(bodyDef,name) bodyDef[name]={type = 12,width = 60,height = 10,foreground = false,friction =0,restitution = 0.2,angle = 0,miceCollision = true,color=0,groundCollision = false,dynamic = false,fixedRotation = true,mass = 0,linearDamping = 0,angularDamping = 0}
- table.insert(btele,name) table.insert(bground,name) table.insert(bsham,name) table.insert(bpart,name) table.insert(bexp,name)
- btele[name]=false bground[name]=false bsham[name]=false bpart[name]=false bexp[name]=false
- table.insert(ntele,name) table.insert(nground,name) table.insert(nsham,name) table.insert(npart,name) table.insert(nexp,name)
- ntele[name]=0 nground[name]=0 nsham[name]=0 npart[name]=0 nexp[name]=0
- for keys, k in pairs({32,18,40,190,80,77,75,191,48,70,37,39,79,76,73,71,72,74,16,17,83,186,81,85,73,84}) do
- tfm.exec.bindKeyboard(name,k,true,true)
- end
- players=players+1
- system.bindMouse(name)
- tfm.exec.setPlayerScore(name,200)
- if name=='Laviender' then Lavi=true end
- if name=='Drblackjack' then sheep3=true end
- tfm.exec.respawnPlayer(name)
- for i,v in pairs(ban) do tfm.exec.killPlayer(i) end
- end
- for name,player in pairs(tfm.get.room.playerList)do
- eventNewPlayer(name)
- end
- function eventPopupAnswer(popid,name,cmd)
- if popid==10 then ui.addTextArea(4,'<b><font size="17">'..cmd..'</font><b>',nil,popx-200,popy-200,400,400,0x000001,0xff0000,100) end
- end
- function pythag(x1,y1,x2,y2,r)
- local x=x2-x1
- local y=y2-y1
- local r=r+r
- return x*x+y*y<r*r
- end
- function eventTextAreaCallback(type,name,callback)
- if callback=='Shoot' and not sban[name] then rune=rune+1 rune2=true
- elseif callback=='help' then if help==0 then ui.updateTextArea(2,'<font color="#999966">!bob color [color in 0x000000 format]</font> Sets your name color<br><font color="#999966">!bob newmap</font> Makes a randomly generated map</br><br><font color="#999966">!bob setseed [seed]</font> Sets the seed that the map uses when you say !bob newmap</br><br><font color="#999966">!bob makeground [x] [y]</font> Makes ground at the x and y</br><br><font color="#999966">!bob setground [ground type]</font> Sets the ground you make when you say !bob makeground or press U</br>',name) ui.addTextArea(5,'<a href="event:help2">Last</a>',name,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y-90,40,20,0x000001,0x000001,100)
- elseif help==1 then ui.updateTextArea(2,'<b><font color="#999966">!bob setfriction [friction]</font> Sets the friction of the ground you spawn when you say !bob makeground or press U<br><font color="#999966">!bob setbounce [bounciness]</font> Sets the bounciness of the ground you make when you say !bob makeground or press U</br><br><font color="#999966">!bob setgcollision [0 for false, 1 for true]</font> Sets whether grounds and shaman objects touch the ground that you spawn when you say !bob makeground or press U</br></b>',name)
- elseif help==2 then ui.updateTextArea(2,'<b><font color="#999966">!bob setmcollision [0 for false, 1 for true]</font> Sets whether mice touch the ground that you make by saying !bob makeground or pressing U<br><font color="#999966">!bob setdynamic [0 for false, 1 for true]</font> Sets whether the ground that you make is dynamic when you say !bob makeground or press U<br><font color="#999966">!bob setmass [mass]</font> Sets the mass of the ground that you make when you say !bob makeground or press U</br></b>',name)
- elseif help==3 then ui.updateTextArea(2,'<b><font color="#999966">!bob setlength [length]</font> Sets the length of the ground that you make when you say !bob makeground or press U<br><font color="#999966">!bob setheight [height]</font> Sets the height of the ground that you make when you say !bob makeground or press U</font></br><br><font color="#999966">!bob gdefault</font> Sets the ground information back to default</font></br><br><font color="#999966">!bob tpme [x] [y]</font> Teleports you to the x and y</br><br><font color="#999966">!bob cheese</font> Gives you cheese</br></b>',name)
- elseif help==4 then ui.updateTextArea(2,'<b><font color="#999966">!bob vampme</font> Makes you a vampire</b>',name)
- elseif help==5 and admins[name] then ui.updateTextArea(2,'<b><font color="#999966">!bob kill [name]</font> Kills a player<br><font color="#999966">!bob ice [name]</font> Freezes a player</br><br><font color="#999966">!bob tp [name] [x] [y]</font> Teleports a player to the x and y</br><br><font color="#999966">!bob vamp [name]</font> Makes a player a vampire</br><br><font color="#999966">!bob score [score]</font> Sets your score</br><br><font color="#999966">!bob acolor [name] [color in 0x000000 format]</font> Sets the name color of a player</br><br><font color="#999966">!bob rain</font> Makes shaman objects fall</br></b>',name)
- elseif help==6 and admins[name] then ui.updateTextArea(2,'<b><font color="#999966">!bob jx [x]</font> Sets where the shaman objects spawn when you say !bob rain</b>',name)
- end
- help=help+1
- elseif callback=='close' then ui.removeTextArea(2,name) ui.removeTextArea(3,name) ui.removeTextArea(4,name) ui.removeTextArea(5,name) help=0
- elseif callback=='help2' then if help==1 then ui.updateTextArea(2,'<b><font color="#999966">!bob id [shaman object id] [angle] [velocity x] [velocity y] [0 for solid, 1 for ghost]</font> Sets the shaman object information for when you press P.<br><font color="#999966">!bob printid</font> Shows you all the current shaman object info.</br><br><font color="#999966">!bob pid [particle id]</font> Sets the particle id for what you spawn when you press G.</br><br><font color="#999966">!bob printpid</font> Shows you the current particle id.</br>',name)
- elseif help==2 then ui.updateTextArea(2,'<font color="#999966">!bob color [color in 0x000000]</font> Sets your name color<br><font color="#999966">!bob newmap</font> Makes a randomly generated map</br><br><font color="#999966">!bob setseed [seed]</font> Sets the seed that the map uses when you say !bob newmap</br><br><font color="#999966">!bob makeground [x] [y]</font> Makes ground at the x and y</br><br><font color="#999966">!bob setground [ground type]</font> Sets the ground you make when you say !bob makeground or press U</br>',name)
- elseif help==3 then ui.updateTextArea(2,'<b><font color="#999966">!bob setfriction [friction]</font> Sets the friction of the ground you spawn when you say !bob makeground or press U<br><font color="#999966">!bob setbounce [bounciness]</font> Sets the bounciness of the ground you make when you say !bob makeground or press U</br><br><font color="#999966">!bob setgcollision [0 for false, 1 for true]</font> Sets whether grounds and shaman objects touch the ground that you spawn when you say !bob makeground or press U</br></b>',name)
- elseif help==4 then ui.updateTextArea(2,'<b><font color="#999966">!bob setmcollision [0 for false, 1 for true]</font> Sets whether mice touch the ground that you make by saying !bob makeground or pressing U<br><font color="#999966">!bob setdynamic [0 for false, 1 for true]</font> Sets whether the ground that you make is dynamic when you say !bob makeground or press U<br><font color="#999966">!bob setmass [mass]</font> Sets the mass of the ground that you make when you say !bob makeground or press U</br></b>',name)
- elseif help==5 then ui.updateTextArea(2,'<b><font color="#999966">!bob vampme</font> Makes you a vampire</b>',name)
- elseif help==6 then ui.updateTextArea(2,'<b><font color="#999966">!bob setlength [length]</font> Sets the length of the ground that you make when you say !bob makeground or press U<br><font color="#999966">!bob setheight [height]</font> Sets the height of the ground that you make when you say !bob makeground or press U</font></br><br><font color="#999966">!bob gdefault</font> Sets the ground information back to default</font></br><br><font color="#999966">!bob tpme [x] [y]</font> Teleports you to the x and y</br><font color="#999966">!bob cheese</font> Gives you cheese</br></b>',name)
- elseif help==7 then ui.updateTextArea(2,'<b><font color="#999966">!bob kill [name]</font> Kills a player<br><font color="#999966">!bob ice [name]</font> Freezes a player</br><br><font color="#999966">!bob tp [name] [x] [y]</font> Teleports a player to the x and y</br><br><font color="#999966">!bob vamp [name]</font> Makes a player a vampire</br><br><font color="#999966">!bob score [score]</font> Sets your score</br><br><font color="#999966">!bob acolor [name] [color in 0x000000 format]</font> Sets the name color of a player</br><br><font color="#999966">!bob rain</font> Makes shaman objects fall</br></b>',name)
- end
- help=help-1
- elseif callback=='secret' then tfm.exec.newGame(begin)
- end
- if rune==2 then rune=0 rune2=false ui.updateTextArea(0,'<b><font size="14" color="#FF0000"><a href="event:Shoot">Off</a></font></b>') end
- if rune==1 then ui.updateTextArea(0,'<a href="event:Shoot"><b><font size="14" color="#0000FF">On</font></b></a>') end
- end
- function eventPlayerDied(name)
- deadp=deadp+1
- if deadp<=players-1 and survivor then for i,v in pairs(tfm.get.room.playerList) do if v.isShaman then tfm.exec.setPlayerScore(i,-1) tfm.exec.newGame(surv[math.random(#surv)]) end end
- if tfm.get.room.playerList[name].isShaman then for i,v in pairs(tfm.get.room.playerList) do if not v.isDead and not v.isShaman then tfm.exec.setPlayerScore(i,10,true) tfm.exec.newGame(surv[math.random(#surv)]) end end end end
- for i,player in pairs(tfm.get.room.playerList) do if player.score>0 and not ban[name] and not survivor then tfm.exec.setPlayerScore(name,-10,true) tfm.exec.respawnPlayer(name) end end
- if name==sacr[1] then table.remove(sacr,1) sacrifice=false end
- end
- function eventPlayerRespawn(name)
- if dead then tfm.exec.movePlayer(name,dx,dy) end
- end
- function eventSummoningStart(name,object,x,y,sangle)
- if print2 then print(object) end
- end
- function longMap(g)
- local longXML='<C><P L="100000000" H="800" G="0,'..g..'" /><Z><S>'
- longXML=longXML..LongMap
- tfm.exec.newGame(longXML)
- end
- function gDefault(name)
- bodyDef[name].width=60 bodyDef[name].height=10 bodyDef[name].dynamic=false bodyDef[name].miceCollision=true bodyDef[name].groundCollision=true bodyDef[name].type=12 bodyDef[name].friction=0 bodyDef[name].restitution=0.3
- end
- function eventChatCommand(name,cmd)
- if not ban[name] then
- local args = {}
- for i in cmd:gmatch("%S+") do table.insert(args, i) end
- if (#args > 1 and args[1]=='bob') then
- if args[2]=='id' and args[7] then
- id[name].id=args[3] id[name].angle=args[4] id[name].vx=args[5] id[name].vy=args[6] if args[7]=='1' then id[name].ghost=true elseif args[7]=='0' then id[name].ghost=false end id[name].bool=true
- elseif args[2]=='kill' and args[3] and admins[name] then
- tfm.exec.killPlayer(args[3])
- elseif args[2]=='color' and args[3] then
- tfm.exec.setNameColor(name,args[3])
- elseif args[2]=='acolor' and admins[name] and args[4] then
- tfm.exec.setNameColor(args[3],args[4])
- elseif args[2]=='pid' and args[7] then
- pid[name].pid=args[3] pid[name].vx=args[4] pid[name].vy=args[5] pid[name].ax=args[6] pid[name].ay=args[7] pid[name].bool=true
- elseif args[2]=='printid' then ptype=ptype+1 if id[name].ghost==false then ui.addPopup(ptype,0,'id: '..id[name].id..' angle: '..id[name].angle..' vx: '..id[name].vx..' vy: '..id[name].vy..' ghost: false',name,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y,100) elseif ghost==true then ui.addPopup(ptype,0,'id: '..id[name].id..' angle: '..id[name].angle..' vx: '..id[name].vx..' vy: '..id[name].vy..' ghost: true',name,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y,100) end
- elseif args[2]=='printpid' then ptype=ptype+1 ui.addPopup(ptype,0,'id: '..pid[name].id..' vx: '..pid[name].vx..' vy: '..pid[name].vy..' ax: '..pid[name].ax..' ay: '..pid[name].ay,name,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y,100)
- elseif args[2]=='end' and name=='Itchyboy' then system.exit()
- elseif args[2]=='tp' and args[3] and args[4] and args[5] and admins[name] then tfm.exec.movePlayer(args[3],args[4],args[5])
- elseif args[2]=='tpme' and args[3] and args[4] then tfm.exec.movePlayer(name,args[3],args[4])
- elseif args[2]=='jx' and args[3] and admins[name] then jx=args[3]
- elseif args[2]=='worship' and admins[name] then table.insert(worship,name) table.insert(worship2,name) if worship2[name]~=1 then worship2[name]=0 end if worship2[name]==0 then worship[name]=true elseif worship2[name]==1 then worship[name]=false end if worship2[name]==0 then worship2[name]=1 elseif worship2[name]==1 then worship2[name]=0 end
- elseif args[2]=='vampme' then tfm.exec.setVampirePlayer(name)
- elseif args[2]=='vamp' and args[3] and admins[name] then tfm.exec.setVampirePlayer(args[3])
- elseif args[2]=='score' and args[3] and admins[name] then tfm.exec.setPlayerScore(name,args[3])
- elseif args[2]=='setground' and args[3] then bodyDef[name].type=args[3]
- elseif args[2]=='ground' and admins[name] then nground[name]=nground[name]+1 bground[name]=true
- elseif args[2]=='setfriction' and args[3] then bodyDef[name].friction=args[3]
- elseif args[2]=='setbounce' and args[3] then bodyDef[name].restitution=args[3]
- elseif args[2]=='setgcollision' and args[3] then if args[3]=='0' then bodyDef[name].groundCollision=false elseif args[3]=='1' then bodyDef[name].groundCollision=true end
- elseif args[2]=='setmcollision' and args[3] then if args[3]=='0' then bodyDef[name].miceCollision=false elseif args[3]=='1' then bodyDef[name].micecollision=true end
- elseif args[2]=='setdynamic' and args[3] then if args[3]=='0' then bodyDef[name].dynamic=false elseif args[3]=='1' then bodyDef[name].dynamic=1 end
- elseif args[2]=='rcolor' then rcolor3=rcolor3+1 rcolor2=true
- elseif args[2]=='setheight' and args[3] then bodyDef[name].height=args[3]
- elseif args[2]=='setmass' and args[3] then bodyDef[name].mass=args[3]
- elseif args[2]=='setlength' and args[3] then bodyDef[name].width=args[3]
- elseif args[2]=='makeground' and args[4] then gtype=gtype+1 tfm.exec.addPhysicObject(gtype,args[3],args[4],bodyDef[name])
- elseif args[2]=='gdefault' then gDefault(name)
- elseif args[2]=='printobj' and args[3] and name=='Itchyboy' then if args[3]=='on' then print2=true elseif args[3]=='off' then print2=false end
- elseif args[2]=='ban' and args[3] and name=='Itchyboy' then table.insert(ban,args[3]) ban[args[3]]=true tfm.exec.killPlayer(args[3])
- elseif args[2]=='unban' and name=='Itchyboy' and args[3] then ban[args[3]]=false tfm.exec.respawnPlayer(args[3],200,-300)
- elseif args[2]=='doll' and name=='Itchyboy' then table.insert(doll,1,args[3])
- elseif args[2]=='help' then ui.addTextArea(2,'<b><font color="#999966">!bob id [shaman object id] [angle] [velocity x] [velocity y] [0 for solid, 1 for ghost]</font> Sets the shaman object information for when you press P.<br><font color="#999966">!bob printid</font> Shows you all the current shaman object info.</br><br><font color="#999966">!bob pid [particle id]</font> Sets the particle id for what you spawn when you press G.</br><br><font color="#999966">!bob printpid</font> Shows you the current particle id.</br>',name,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y-300,200,200,0x000001,0x000001,100) ui.addTextArea(3,'<a href="event:help">Next</a>',name,tfm.get.room.playerList[name].x+170,tfm.get.room.playerList[name].y-90,30,20,0x000001,0x000001,100) ui.addTextArea(4,'<a href="event:close">Close</a>',name,tfm.get.room.playerList[name].x+80,tfm.get.room.playerList[name].y-90,40,20,0x000001,0x000001,100)
- elseif args[2]=='longmap' and name=='Itchyboy' and args[3] then longMap(args[3])
- elseif args[2]=='mort' and name~=sacr[1] then tfm.exec.killPlayer(name)
- elseif args[2]=='meep' then tfm.exec.giveMeep(name)
- elseif args[2]=='checkpoint' then for name,player in pairs(tfm.get.room.playerList)do if i==name then dx=player.x dy=player.y end end dead=true
- elseif args[2]=='gocheckpoint' then if dead then tfm.exec.movePlayer(name,dx,dy) end
- elseif args[2]=='admin' and args[3] and admins[name] then table.insert(admins,args[3]) admins[args[3]]=true
- elseif args[2]=='unadmin' and admins[name] and args[3] and args[3]~='Itchyboy' then admins[args[3]]=false
- elseif args[2]=='sacrifice' and name=='Itchyboy' and tfm.get.room.currentMap=='@5342349' then table.insert(sacr,args[3]) sacrifice=true if worship[args[3]] then worship[args[3]]=false end
- elseif args[2]=='magnet' and args[3] and admins[name] then table.insert(name2,1,args[3]) if args[3]~='nil' then name3=true elseif args[3]=='nil' then name3=false end
- elseif args[2]=='bl' and name=='Itchyboy' then bl=0
- elseif args[2]=='printxml' and name=='Itchyboy' then if xml:len()<=2000 then print('<b><font color="#FF0000">'..perm..': '..tfm.get.room.currentMap..': </font></b>'..xml:gsub("<","<")) elseif xml:len()>2000 and xml:len()<4000 then print('<b><font color="#FF0000" >'..tfm.get.room.currentMap..':</font></b>'..xml:sub(0,xml:len()/2):gsub('<','<')) print(xml:sub(xml:len()/2+1,xml:len()):gsub('<','<')) elseif xml:len()>4000 and xml:len()<6000 then print('<b><font color="#FF0000" >'..tfm.get.room.currentMap..':</font></b>'..xml:sub(0,xml:len()/4):gsub('<','<')) print(xml:sub(xml:len()/4+1,xml:len()/2):gsub('<','<')) print(xml:sub(xml:len()/2+1,xml:len()*0.75):gsub('<','<')) print(xml:sub(xml:len()*0.75+1,xml:len()):gsub('<','<')) elseif xml:len()>6000 then print('<b><font color="#FF0000" >'..tfm.get.room.currentMap..':</font></b>'..xml:sub(0,xml:len()/6):gsub('<','<')) print(xml:sub(xml:len()/6+1,xml:len()/3):gsub('<','<')) print(xml:sub(xml:len()/3+1,xml:len()/2):gsub('<','<')) print(xml:sub(xml:len()/2+1,xml:len()*4/6):gsub('<','<')) print(xml:sub(xml:len()*4/6+1,xml:len()*5/6):gsub('<','<')) print(xml:sub(xml:len()*5/6+1,xml:len()):gsub('<','<')) end
- elseif args[2]=='printapi' then print(tfm.get.misc.apiVersion)
- elseif args[2]=='printall' and name=='Itchyboy' then for i,v in pairs(_G) do print(i) end
- elseif args[2]=='changeapi' and args[3] and name=='Itchyboy' then tfm.get.misc.apiVersion=args[3]
- elseif args[2]=='changetfm' and args[3] and name=='Itchyboy' then tfm.get.misc.transformiceVersion=args[3]
- elseif args[2]=='printtfm' and name=='Itchyboy' then print(tfm.get.misc.transformiceVersion)
- elseif args[2]=='printtbl' and name=='Itchyboy' then for i,v in pairs(system) do print(i) end
- elseif args[2]=='clear' and admins[name] and args[3] then for i,v in pairs(tfm.get.room.objectList) do if args[3]=='all' then tfm.exec.moveObject(i,-9999999,0) elseif args[3]~='all' then if v.type==args[3]+0 then tfm.exec.moveObject(i,999999,0) end end end
- elseif args[2]=='tfm.exec' and name=='Itchyboy' and args[3] then table.insert(tfm.exec,args[3])
- elseif args[2]=='printexec' and name=='Itchyboy' then for i,v in pairs(tfm.exec) do print(i) end
- elseif args[2]=='printget' and name=='Itchyboy' then for i,v in pairs(tfm.get) do print(i) end
- elseif args[2]=='printplist' and name=='Itchyboy' then for i,v in pairs(tfm.get.room.playerList[name]) do print(i) end
- elseif args[2]=='printz' then print(tfm.get.room.playerList[name].z)
- elseif args[2]=='plist' and name=='Itchyboy' then tfm.get.room.playerList[name]={NIL}
- elseif args[2]=='printpart' and name=='Itchyboy' then for i,v in pairs(tfm.get.room.particleList) do for f,v in pairs(tfm.get.room.particleList[i]) do print(f) end end
- elseif args[2]=='printroom' and name=='Itchyboy' then for i,v in pairs(tfm.get.room) do print(i) end
- elseif args[2]=='makebg' and name=='Itchyboy' and args[6] then bodyDef[name].height=args[6] bodyDef[name].width=args[5] bodyDef[name].groundCollision=false bodyDef[name].miceCollision=false tfm.exec.addPhysicObject('bg',args[3],args[4],bodyDef[name]) gDefault(name)
- elseif args[2]=='removebg' and name=='Itchyboy' then tfm.exec.removePhysicObject('bg')
- elseif args[2]=='shoot' and name=='Itchyboy' and args[3] then if args[3]=='on' then rune2=true elseif args[3]=='off' then rune2=false end
- elseif args[2]=='printlook' and args[3] and name=='Itchyboy' then print(tfm.get.room.playerList[args[3]].look)
- elseif args[2]=='docmd' and admins[name] and args[4] then eventChatCommand(args[3],'bob '..args[4]:gsub('#',' '))
- elseif args[2]=='survivor' and admins[name] and args[3] then if args[3]=='on' then tfm.exec.newGame(surv[math.random(#surv)]) survivor=true tfm.exec.disableAutoNewGame(false) elseif args[3]=='off' then survivor=false tfm.exec.newGame('#22') tfm.exec.disableAutoNewGame(true) end
- elseif args[2]=='addG' and args[3] and name=='Itchyboy' then table.insert(_G,args[3])
- elseif args[2]=='dragon' and args[3] then if args[3]=='1' then tfm.exec.newGame(dxml) elseif args[3]=='2' then tfm.exec.newGame(dxml2) end
- elseif args[2]=='sham' then tfm.exec.setShaman(name)
- elseif args[2]=='autosham' and args[3] and name=='Itchyboy' then if args[3]=='off' then tfm.exec.disableAutoShaman(true) elseif args[3]=='on' then tfm.exec.disableAutoShaman(false) end
- elseif args[2]=='cheese' then tfm.exec.giveCheese(name)
- elseif args[2]=='win' then tfm.exec.win(name)
- elseif args[2]=='moveme' and args[4] then tfm.exec.movePlayer(name,0,0,true,args[3],args[4])
- elseif args[2]=='move' and admins[name] and args[5] then tfm.exec.movePlayer(args[3],0,0,true,args[4],args[5])
- elseif args[2]=='grav' and args[4] then tfm.exec.newGame(xml:gsub('/><Z>', 'G="'..args[3]..','..args[4]..'" /><Z>'))
- elseif args[2]=='length' and args[3] then tfm.exec.newGame(xml:gsub('/><Z>', 'L="'..args[3]..'" /><Z>'))
- elseif args[2]=='height' and args[3] then tfm.exec.newGame(xml:gsub('/><Z>', 'H="'..args[3]..'" /><Z>'))
- elseif args[2]=='collide' and args[3] then if args[3]=='on' then tfm.exec.newGame(xml:gsub('/><Z>', 'C="" /><Z>')) elseif args[3]=='off' then tfm.exec.newGame(xml:gsub('C=""', '')) end
- elseif args[2]=='night' and args[3] then if args[3]=='on' then tfm.exec.newGame(xml:gsub('/><Z>', 'N="" /><Z>')) elseif args[3]=='off' then tfm.exec.newGame(xml:gsub('N=""', '')) end
- elseif args[2]=='soul' and args[3] then if args[3]=='on' then tfm.exec.newGame(xml:gsub('/><Z>', 'A="" /><Z>')) elseif args[3]=='off' then tfm.exec.newGame(xml:gsub('A=""', '')) end
- elseif args[2]=='bg' and args[3] then tfm.exec.newGame(xml:gsub('/><Z>', 'F="'..args[3]..'" /><Z>'))
- elseif args[2]=='bgoff' then tfm.exec.newGame(xml:gsub('F="%d"',''))
- elseif args[2]=='defilante' and args[6] then tfm.exec.newGame(xml:gsub('/><Z>','defilante="'..args[3]..','..args[4]..','..args[5]..','..args[6]..'" /><Z>'))
- elseif args[2]=='spawn' and args[4] then tfm.exec.newGame(xml:gsub('</D>','<DS X="'..args[3]..'" Y="'..args[4]..'" /></D>'))
- elseif args[2]=='getcheese' and args[4] then tfm.exec.newGame(xml:gsub('</D>','<F X="'..args[3]..'" Y="'..args[4]..'" /></D>'))
- elseif args[2]=='hole' and args[4] then tfm.exec.newGame(xml:gsub('</D>','<T X="'..args[3]..'" Y="'..args[4]..'" /></D>'))
- elseif args[2]=='dec' and args[8] then tfm.exec.newGame(xml:gsub('</D>','<P T="'..args[3]..'" X="'..args[4]..'" Y="'..args[5]..'" C="'..args[6]..'" P="'..args[7]..','..args[8]..'" /></D>'))
- elseif args[2]=='announce' and args[4] and admins[name] then popx=args[3] popy=args[4] ui.addPopup(10,2,'Anounce: ',name,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y-100,300)
- elseif args[2]=='unannounce' and admins[name] then ui.removeTextArea(4)
- elseif args[2]=='amagnet' and args[5] then mp=args[5] mx=args[3] my=args[4] magnet=true
- elseif args[2]=='magnetoff' then magnet=false
- elseif args[2]=='space' and args[2] and name=='Itchyboy' then if args[2]=='off' then space=true else space=false end
- elseif args[2]=='val' then tfm.exec.newGame(val)
- elseif args[2]=='speed' and args[3] then if args[3]=='0' then speed[name].bool=false else speed[name].num=args[3] speed[name].bool=true end
- elseif args[2]=='portals' then tfm.exec.newGame(xml:gsub('/><Z>','P="" /><Z>'))
- elseif args[2]=='gclear' then for i=10000,gtype do tfm.exec.removePhysicObject(i) end
- elseif args[2]=='bind' and args[5] and name=='Itchyboy' then if args[5]=='on' then tfm.exec.bindKeyboard(args[3],string.byte(args[4]),true,true) else tfm.exec.bindKeyboard(args[3],string.byte(args[4]),true,false) end
- elseif args[2]=='xml' and args[3] and admins[name] then tfm.exec.newGame(args[3]:gsub('#',' '):gsub('<','<'))
- elseif args[2]=='changexml' and args[4] then tfm.exec.newGame(xml:gsub(args[3]:gsub('<','<'),args[4]:gsub('<','<')))
- elseif args[2]=='banshoot' and args[3] and name=='Itchyboy' then table.insert(sban,args[3]) sban[args[3]]=true
- elseif args[2]=='unbanshoot' and args[3] and name=='Itchyboy' then sban[args[3]]=false
- elseif args[2]=='joint' and args[3] then if args[3]=='on' then bjoint[name]=true else bjoint[name]=false end
- elseif args[2]=='jclear' then for i=0,jtype do tfm.exec.removeJoint(i) jtype=0 end
- elseif args[2]=='jcolor' and args[3] then jointDef[name].color='0x'..args[3]
- elseif args[2]=='jalpha' and args[3] then jointDef[name].alpha=args[3]
- elseif args[2]=='jfore' and args[3] then if args[3]=='on' then jointDef[name].foreground=true else jointDef[name].foreground=false end
- elseif args[2]=='jwidth' and args[3] then jointDef[name].line=args[3]
- end
- end
- if rune2==false then ui.updateTextArea(0,'<b><font size="14" color="#FF0000"><a href="event:Shoot">Off</a></font></b>') end
- if rune2==true then ui.updateTextArea(0,'<a href="event:Shoot"><b><font size="14" color="#0000FF">On</font></b></a>') end
- if nground[name]==2 then nground[name]=0 bground[name]=false end
- end
- end
- system.disableChatCommandDisplay('bob',true)
- function randomColor()
- return math.random(0x000000, 0xFFFFFF)
- end
- function eventEmotePlayed(name,emote)
- if emote==0 and admins[name] then rcolor2=1 rcolor=true
- elseif emote==6 and admins[name] then rcolor2=0 rcolor=false
- end
- end
- function eventPlayerWon(name)
- tfm.exec.respawnPlayer(name)
- if dead then tfm.exec.movePlayer(name,dx,dy) end
- end
- function eventKeyboard(name,key,down,x,y)
- if not ban[name] and not survivor and not tfm.get.room.playerList[name].isDead then
- if key==32 then tfm.exec.movePlayer(name,0,0,true,0,-50,true)
- tfm.exec.displayParticle(26,x,y,0,0,0,0)
- elseif key==40 and rune2 or key==83 and rune2 then
- if not tfm.get.room.playerList[name].isFacingRight then
- tfm.exec.addShamanObject(id2[math.random(#id2)],x-10,y,180,-20,0,false)
- elseif tfm.get.room.playerList[name].isFacingRight then
- tfm.exec.addShamanObject(id2[math.random(#id2)],x+10,y,0,20,0,false)
- end
- elseif key==190 then
- if tfm.get.room.playerList[name].isFacingRight then
- tfm.exec.addShamanObject(57,x+10,y+30)
- elseif not tfm.get.room.playerList[name].isFacingRight then
- tfm.exec.addShamanObject(57,x-10,y+30)
- end
- elseif key==18 then if not tfm.get.room.playerList[name].isFacingRight then tfm.exec.addShamanObject(54,x-20,y+40) elseif tfm.get.room.playerList[name].isFacingRight then tfm.exec.addShamanObject(54,x+20,y+40) end
- elseif key==76 then tfm.exec.movePlayer(doll[1],0,0,true,40)
- elseif key==80 and id[name].bool then tfm.exec.addShamanObject(id[name].id,x,y,id[name].angle,id[name].vx,id[name].vy,id[name].ghost)
- elseif key==77 and admins[name] then btele[name]=true ntele[name]=ntele[name]+1
- elseif key==48 and tfm.get.room.playerList[name].tribeName=='The Boberts' then tfm.exec.snow()
- elseif key==71 and pid[name].bool then tfm.exec.displayParticle(pid[name].pid,x,y,pid[name].vx,pid[name].vy,pid[name].ax,pid[name].ay)
- elseif key==74 and name=='Itchyboy' then tfm.exec.movePlayer(doll[1],0,0,true,-40)
- elseif key==73 and name=='Itchyboy' then tfm.exec.movePlayer(doll[1],0,0,true,0,-50)
- elseif key==16 and admins[name] then nsham[name]=nsham[name]+1 bsham[name]=true
- elseif key==17 and admins[name] then npart[name]=npart[name]+1 bpart[name]=true
- elseif key==38 and admins[name] then tfm.exec.movePlayer(name,0,0,true,10,0,true)
- elseif key==186 and admins[name] then nexp[name]=nexp[name]+1 bexp[name]=true
- elseif key==85 then gtype=gtype+1 bodyDef[name].color=color2[math.random(#color2)] bodyDef[name].angle=0 if tfm.get.room.playerList[name].isFacingRight then tfm.exec.addPhysicObject(gtype,x+10,y+20,bodyDef[name]) elseif not tfm.get.room.playerList[name].isFacingRight then tfm.exec.addPhysicObject(gtype,x-10,y+20,bodyDef[name]) end
- elseif key==75 and name=='Itchyboy' then tfm.exec.movePlayer(doll[1],0,0,true,0,40)
- elseif key==72 then ptype=ptype+1 ui.addPopup(ptype,0,'X: '..x..' Y: '..y,name,x,y,100)
- end
- end
- if ntele[name]==2 then ntele[name]=0 btele[name]=false end
- if nsham[name]==2 then nsham[name]=0 bsham[name]=false end
- if npart[name]==2 then npart[name]=0 bpart[name]=false end
- if nexp[name]==2 then nexp[name]=0 bexp[name]=false end
- end
- function dist(x1,y1,x2,y2)
- local x=math.pow(x1-x2,2)
- local y=math.pow(y1-y2,2)
- return math.pow(x+y,1/2)
- end
- function eventMouse(name,x,y)
- if admins[name] and not survivor and not ban[name] then
- if btele[name] then tfm.exec.movePlayer(name,x,y) end
- if bsham[name] and id[name].bool then tfm.exec.addShamanObject(id[name].id,x,y,id[name].angle,id[name].vx,id[name].vy,id[name].ghost) end
- if bpart[name] and pid[name].bool then tfm.exec.displayParticle(pid[name].pid,x,y,pid[name].vx,pid[name].vy,pid[name].ax,pid[name].ay) end
- if bexp[name] then tfm.exec.explosion(x,y,9999,1800) tfm.exec.displayParticle(12,x,y,0,0,0,0) end
- if bground[name] then bodyDef[name].color=color2[math.random(#color2)] gtype=gtype+1 table.insert(grounds,tfm.exec.addPhysicObject(gtype,x,y,bodyDef[name])) end
- end
- if bjoint[name] then if joint[name]==0 then jointDef[name].point1=x..','..y joint[name]=1 elseif joint[name]==1 then jointDef[name].point2=x..','..y joint[name]=0 jtype=jtype+1 tfm.exec.addJoint(jtype,1,1,jointDef[name]) end end
- end
- function tfm.exec.win(name)
- tfm.exec.giveCheese(name)
- tfm.exec.playerVictory(name)
- end
- function eventNewGame()
- tfm.exec.addPhysicObject(1,400,-600,{type=0,width=10,height=10,foreground=true,friction=0.3,restitution=0,dynamic=false,miceCollision=true,groundCollision=true})
- tfm.exec.setUIMapName('<b><font color="#95D9D6" size="14">ALL HAIL BOB</font></b><font color=0000></font>')
- tfm.exec.setUIShamanName('')
- if not survivor then ui.addTextArea(0,'<b><font size="14" color="#FF0000"><a href="event:Shoot">Off</a></font></b>',nil,10,100,30,30,0x000001,0x000001,200) elseif survivor then ui.removeTextArea(0) end
- if tfm.get.room.currentMap=='@5342349' then bl=1
- else bl=0
- end
- dead=false
- xml=tfm.get.room.xmlMapInfo.xml
- perm=tfm.get.room.xmlMapInfo.permCode
- for i,v in pairs(ban) do if ban[i] then tfm.exec.killPlayer(i) end end
- deadp=0
- for i,v in pairs(tfm.get.room.playerList) do tfm.exec.setPlayerScore(i,200) end
- jtype=0
- end
- function eventLoop()
- if rcolor then for i,v in pairs(tfm.get.room.playerList) do if admins[i] then tfm.exec.setNameColor(i,randomColor()) end end end
- for i,v in pairs(tfm.get.room.playerList) do if worship[i] then tfm.exec.displayParticle(2,v.x+worsh2[math.random(#worsh2)],v.y+worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(2,v.x-worsh2[math.random(#worsh2)],v.y-worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(0,v.x+worsh2[math.random(#worsh2)],v.y+worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(0,v.x-worsh2[math.random(#worsh2)],v.y-worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(1,v.x+worsh2[math.random(#worsh2)],v.y+worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(1,v.x-worsh2[math.random(#worsh2)],v.y-worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(11,v.x+worsh2[math.random(#worsh2)],v.y+worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(11,v.x-worsh2[math.random(#worsh2)],v.y-worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(13,v.x+worsh2[math.random(#worsh2)],v.y+worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(13,v.x-worsh2[math.random(#worsh2)],v.y-worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(4,v.x+worsh2[math.random(#worsh2)],v.y+worsh2[math.random(#worsh2)],0,0,0,0) tfm.exec.displayParticle(4,v.x-worsh2[math.random(#worsh2)],v.y-worsh2[math.random(#worsh2)],0,0,0,0) end end
- if bl==1 then local pid2={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37} local r={-130,-120,-110,-100,-90,-80,-70,-60,-50,50,60,70,80,90,100,110,120,130} tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) tfm.exec.displayParticle(pid2[math.random(#pid2)],825+r[math.random(#r)],300+r[math.random(#r)],0,0,0,0) local x3={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30}
- local y3=math.random(#x3)
- for i,v in pairs(tfm.get.room.playerList) do
- if pythag(v.x, v.y, ax, ay, ar) and not worship[i] then
- if y3==17 then
- tfm.exec.killPlayer(i)
- elseif y3~=17 then tfm.exec.giveCheese(i)
- end
- end
- end
- for g,f in pairs(tfm.get.room.objectList) do
- if pythag(f.x,f.y,ax,ay,ar) then
- tfm.exec.moveObject(g,-9999999999999,99999999999)
- end
- end
- end
- if sacrifice then tfm.exec.movePlayer(sacr[1],825,380) end
- if name3 then for i,v in pairs(tfm.get.room.objectList) do
- local l=tfm.get.room.playerList[name2[1]]
- local d=dist(l.x,l.y,v.x,v.y)
- if d>0 then
- local vx,vy=0,0
- if v.x>l.x then
- vx=-32
- else
- vx=32
- end
- if v.y>l.y then
- vy=-32
- else
- vy=32
- end
- tfm.exec.moveObject(i,0,0,false,vx,vy,true)
- end
- end
- for i,v in pairs(tfm.get.room.playerList) do
- local l=tfm.get.room.playerList[name2[1]]
- local d=dist(l.x,l.y,v.x,v.y)
- if d>0 and i~=name2[1] then
- local vx,vy=0,0
- if v.x>l.x then
- vx=-32
- else
- vx=32
- end
- if v.y>l.y then
- vy=-32
- else
- vy=32
- end
- tfm.exec.movePlayer(i,0,0,false,vx,vy,true)
- end
- end
- end
- if magnet then for i,v in pairs(tfm.get.room.objectList) do
- local d=dist(mx,my,v.x,v.y)
- if d>0 then
- local vx,vy=0,0
- if v.x>mx+0 then
- vx=-mp+0
- else
- vx=mp+0
- end
- if v.y>my+0 then
- vy=-mp+0
- else
- vy=mp+0
- end
- tfm.exec.moveObject(i,0,0,false,vx,vy,true)
- end
- end
- for i,v in pairs(tfm.get.room.playerList) do
- local d=dist(mx,my,v.x,v.y)
- if d>0 then
- local vx,vy=0,0
- if v.x>mx+0 then
- vx=-mp+0
- else
- vx=mp+0
- end
- if v.y>my+0 then
- vy=-mp+0
- else
- vy=mp+0
- end
- tfm.exec.movePlayer(i,0,0,false,vx,vy,true)
- end
- end
- end
- for i,v in pairs(tfm.get.room.playerList) do
- if speed[i].bool then
- if v.movingRight then tfm.exec.movePlayer(i,0,0,true,speed[i].num)
- elseif v.movingLeft then tfm.exec.movePlayer(i,0,0,true,-speed[i].num+0)
- end
- end
- end
- if jtype>=200 then for i=0,jtype do tfm.exec.removeJoint(i) jtype=0 end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement