Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- About: Transformation is a game where players need to use the powers (Flip: Box, board) to complete the map.
- Created by: Sossia#6280
- Status: Finished
- Translations: BR,EN
- ]]--
- --Variables
- inRoom = 0 -- Players in the room
- livePlayer = 0 -- Live players
- Data = {} -- Player data storage
- Rounds = 0
- InRounds = false
- -----
- maps = {'<C><P H="800" L="1600" /><Z><S><S X="923" L="3000" Y="806" H="51" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="66" L="128" Y="806" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="382" L="128" Y="806" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="702" L="128" Y="806" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="1015" L="128" Y="806" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="951" L="3000" Y="661" H="51" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="1361" L="128" Y="806" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="214" L="128" Y="661" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="538" L="128" Y="661" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="867" L="128" Y="661" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="1200" L="128" Y="661" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="1519" L="128" Y="661" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="1363" L="10" Y="717" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="1429" L="10" Y="749" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="824" L="10" Y="609" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="991" L="3000" Y="520" H="51" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="1" L="128" Y="520" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="366" L="128" Y="520" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="704" L="128" Y="520" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="1040" L="128" Y="520" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="1366" L="128" Y="520" H="52" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="21" L="10" Y="759" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="371" L="520" Y="366" H="41" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="1061" L="520" Y="366" H="41" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="630" L="10" Y="470" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="803" L="10" Y="470" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="711" L="10" Y="406" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /></S><D><T X="368" Y="343" /><F X="1065" Y="344" /><DS X="58" Y="757" /><DC X="108" Y="770" /></D><O /></Z></C>','<C><P /><Z><S><S X="239" L="42" Y="396" H="234" P="0,0,0.3,0.2,90,0,0,0" T="8" /><S X="832" L="200" Y="113" H="87" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="799" L="200" Y="396" H="87" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="22" L="200" Y="396" H="87" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="582" L="42" Y="396" H="234" P="0,0,0.3,0.2,90,0,0,0" T="8" /><S X="415" L="200" Y="396" H="87" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="-33" L="200" Y="113" H="87" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="66" L="42" Y="91" H="234" P="0,0,0.3,0.2,90,0,0,0" T="8" /><S X="734" L="42" Y="92" H="234" P="0,0,0.3,0.2,90,0,0,0" T="8" /><S X="607" L="21" Y="109" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="192" L="21" Y="109" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="329" L="21" Y="314" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="499" L="21" Y="314" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="500" L="21" Y="271" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="498" L="21" Y="214" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="498" L="21" Y="160" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="494" L="21" Y="73" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="329" L="21" Y="271" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="327" L="21" Y="214" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="328" L="21" Y="160" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="328" L="21" Y="73" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="418" L="255" Y="313" H="10" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="418" L="255" Y="270" H="10" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="412" L="255" Y="161" H="10" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="412" L="255" Y="214" H="10" P="0,0,0.3,0.2,0,0,0,0" T="8" /></S><D><T X="762" Y="354" /><T X="46" Y="352" /><F X="755" Y="65" /><F X="27" Y="66" /><DS X="455" Y="341" /><DC X="455" Y="345" /></D><O /></Z></C>','<C><P L="1200" /><Z><S><S X="869" L="555" Y="145" H="42" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="197" L="155" Y="421" H="85" P="0,0,0.3,0.2,20,0,0,0" T="6" /><S X="441" L="300" Y="394" H="42" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="101" L="200" Y="377" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="428" L="32" Y="394" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="741" L="120" Y="394" H="35" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="494" L="555" Y="245" H="42" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="520" L="30" Y="322" H="10" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="65" L="888" Y="142" H="42" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="753" L="32" Y="243" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="520" L="32" Y="245" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="600" L="10" Y="142" H="47" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="205" L="200" Y="245" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="1031" L="25" Y="407" H="32" P="0,0,0,1.2,0,0,0,0" T="2" /><S X="-9" L="345" Y="143" H="45" P="0,0,0.3,0.2,40,0,0,0" T="6" /><S X="503" L="200" Y="142" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="573" L="32" Y="394" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="219" L="32" Y="142" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="826" L="10" Y="142" H="47" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="923" L="200" Y="142" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="1176" L="155" Y="347" H="555" P="0,0,0,0.2,40,0,0,0" T="1" /></S><D><T X="781" Y="376" /><F X="948" Y="110" /><DS X="23" Y="335" /><DC X="24" Y="333" /></D><O /></Z></C>','<C><P L="1200" /><Z><S><S X="197" L="155" Y="421" H="85" P="0,0,0.3,0.2,20,0,0,0" T="6" /><S X="441" L="300" Y="394" H="42" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="98" L="200" Y="379" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="446" L="32" Y="396" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="741" L="120" Y="394" H="35" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="494" L="555" Y="245" H="42" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="445" L="30" Y="310" H="10" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="65" L="888" Y="142" H="42" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="753" L="32" Y="243" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="520" L="32" Y="245" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="606" L="10" Y="142" H="47" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="205" L="200" Y="245" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="512" L="200" Y="140" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="954" L="196" Y="80" H="344" P="0,0,,,,0,0,0" T="9" /><S X="219" L="32" Y="142" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="29" L="200" Y="100" H="51" P="0,0,0.3,0.2,90,0,0,0" T="6" N="" /><S X="955" L="200" Y="243" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="953" L="199" Y="-52" H="13" P="0,0,0,20,0,0,0,0" T="3" /></S><D><T X="781" Y="376" /><F X="544" Y="112" /><DS X="23" Y="335" /><DC X="24" Y="333" /></D><O /></Z></C>','<C><P /><Z><S><S X="197" L="155" Y="421" H="85" P="0,0,0.3,0.2,20,0,0,0" T="6" /><S X="441" L="300" Y="394" H="42" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="101" L="200" Y="377" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="428" L="32" Y="394" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="741" L="120" Y="394" H="35" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="494" L="555" Y="245" H="42" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="520" L="30" Y="322" H="10" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="65" L="888" Y="142" H="42" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="753" L="32" Y="243" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="520" L="32" Y="245" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="606" L="10" Y="142" H="47" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="205" L="200" Y="245" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="-9" L="345" Y="143" H="45" P="0,0,0.3,0.2,40,0,0,0" T="6" /><S X="503" L="200" Y="142" H="51" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="573" L="32" Y="394" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /><S X="219" L="32" Y="142" H="45" P="0,0,0.3,0.2,0,0,0,0" T="6" N="" /></S><D><T X="781" Y="376" /><F X="524" Y="109" /><DS X="23" Y="335" /><DC X="24" Y="333" /></D><O /></Z></C>','<C><P /><Z><S><S X="12" L="24" Y="79" H="444" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="27" L="54" Y="288" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="269" L="54" Y="275" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="450" L="54" Y="275" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="271" L="45" Y="275" H="184" P="0,0,0.3,0.2,40,0,0,0" T="8" /><S X="635" L="54" Y="223" H="26" P="0,0,0.3,0.2,-50,0,0,0" T="0" /><S X="466" L="45" Y="91" H="184" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="467" L="54" Y="169" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="500" L="10" Y="169" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="436" L="10" Y="169" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="309" L="54" Y="169" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="342" L="10" Y="169" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="276" L="10" Y="169" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="74" L="22" Y="70" H="255" P="0,0,0.3,0.2,-40,0,0,0" T="0" N="" /><S X="161" L="10" Y="158" H="10" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="261" L="54" Y="82" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="451" L="45" Y="275" H="184" P="0,0,0.3,0.2,40,0,0,0" T="8" /><S X="635" L="45" Y="223" H="184" P="0,0,0.3,0.2,40,0,0,0" T="8" /><S X="262" L="45" Y="80" H="184" P="0,0,0.3,0.2,40,0,0,0" T="8" /><S X="28" L="54" Y="136" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" /></S><D><T X="183" Y="55" /><F X="45" Y="128" /><DS X="38" Y="122" /><DC X="42" Y="134" /></D><O /></Z></C>','<C><P /><Z><S><S X="11" L="47" Y="229" H="72" P="0,0,0,1.2,40,0,0,0" T="2" /><S X="441" L="615" Y="371" H="52" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="12" L="24" Y="79" H="444" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="27" L="54" Y="288" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="161" L="54" Y="371" H="54" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="139" L="10" Y="112" H="35" P="0,0,20,0.2,40,0,0,0" T="4" /><S X="65" L="225" Y="177" H="10" P="0,0,0,0.2,130,0,0,0" T="1" /><S X="456" L="54" Y="260" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="362" L="15" Y="75" H="10" P="0,0,0.3,0.2,40,0,0,0" T="0" /><S X="147" L="10" Y="100" H="15" P="0,0,20,0.2,-50,0,0,0" T="4" /><S X="257" L="54" Y="260" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="581" L="444" Y="84" H="15" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="63" L="22" Y="190" H="255" P="0,0,0.3,0.2,-140,0,0,0" T="0" N="" /><S X="349" L="26" Y="80" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="361" L="54" Y="371" H="54" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="561" L="54" Y="371" H="54" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="721" L="54" Y="371" H="54" P="0,0,0.3,0.2,0,0,0,0" T="0" /><S X="643" L="54" Y="260" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="458" L="615" Y="221" H="52" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="354" L="54" Y="182" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="568" L="54" Y="182" H="26" P="0,0,0.3,0.2,0,0,0,0" T="0" N="" /><S X="816" L="79" Y="350" H="101" P="0,0,0,1.2,40,0,0,0" T="2" /><S X="802" L="54" Y="357" H="54" P="0,0,0.3,0.2,-50,0,0,0" T="0" /><S X="840" L="73" Y="303" H="66" P="0,0,0.3,0.2,0,0,0,0" T="0" /></S><D><T X="779" Y="75" /><F X="50" Y="38" /><DS X="34" Y="261" /><DC X="40" Y="258" /></D><O /></Z></C>','<C><P F="3" /><Z><S><S X="348" L="999" Y="439" H="124" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="401" L="10" Y="233" H="238" P="1,0,0.3,0.2,0,0,0,0" T="0" /><S X="400" L="10" Y="233" H="238" P="1,0,0.3,0.2,-90,0,0,0" T="0" /><S X="668" L="276" Y="233" H="26" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="136" L="276" Y="233" H="26" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="41" L="80" Y="226" H="37" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="759" L="80" Y="226" H="37" P="0,0,0.3,0.2,0,0,0,0" T="6" /></S><D><T X="780" Y="208" /><F X="28" Y="201" /></D><O><O C="12" X="402" P="0" Y="236" /></O></Z></C>','<C><P F="3" /><Z><S><S X="348" L="999" Y="439" H="124" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="401" L="10" Y="233" H="238" P="1,0,0.3,0.2,0,0,0,0" T="0" /><S X="400" L="10" Y="233" H="238" P="1,0,0.3,0.2,-90,0,0,0" T="0" /><S X="668" L="276" Y="233" H="26" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="136" L="276" Y="233" H="26" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="271" L="10" Y="136" H="30" P="0,0,0,0.2,0,0,0,0" T="1" /><S X="41" L="80" Y="226" H="37" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="759" L="80" Y="226" H="37" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="136" L="276" Y="147" H="26" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="234" L="80" Y="140" H="37" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="140" L="276" Y="67" H="26" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="40" L="80" Y="65" H="37" P="0,0,0.3,0.2,0,0,0,0" T="6" /></S><D><T X="780" Y="208" /><F X="266" Y="44" /></D><O><O C="12" X="402" P="0" Y="236" /></O></Z></C>','<C><P F="3" /><Z><S><S X="348" L="999" Y="439" H="124" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="401" L="10" Y="233" H="238" P="1,0,0.3,0.2,0,0,0,0" T="0" /><S X="400" L="10" Y="233" H="238" P="1,0,0.3,0.2,-90,0,0,0" T="0" /><S X="668" L="276" Y="233" H="26" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="136" L="276" Y="233" H="26" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="41" L="80" Y="226" H="37" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="759" L="80" Y="226" H="37" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="403" L="10" Y="234" H="238" P="1,0,0.3,0.2,-40,0,0,0" T="0" /><S X="402" L="10" Y="235" H="238" P="1,0,0.3,0.2,-140,0,0,0" T="0" /><S X="142" L="276" Y="130" H="26" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="241" L="80" Y="129" H="37" P="0,0,0.3,0.2,0,0,0,0" T="6" /><S X="675" L="276" Y="134" H="26" P="0,0,0.3,0.2,0,0,0,0" T="8" /><S X="572" L="80" Y="129" H="37" P="0,0,0.3,0.2,0,0,0,0" T="6" /></S><D><F X="39" Y="42" /><DS X="464" Y="355" /><T X="784" Y="75" /></D><O><O C="12" X="402" P="0" Y="236" /></O></Z></C>'}
- -----
- -- Shop and Help
- ui.addTextArea(1, "<p align='center'><a href='event:shop'><B><CE>Shop</a>", name, 675, 26, 54, 21, 0x324650, 0x324650, 1, true)
- ui.addTextArea(2, "<p align='center'><a href='event:help'><B><CE>Help</a>", name, 741, 26, 54, 21, 0x324650, 0x324650, 1, true)
- --Disable some automatic things.
- for _, s in next, {'AutoTimeLeft', 'PhysicalConsumables', 'AfkDeath', 'AutoShaman', 'AutoNewGame'} do
- tfm.exec['disable' .. s]()
- end
- -- Translations
- translations = {br = {Buy_SC = "<VP>A habilidade de segunda chance foi adquirida. Você tem 3 chances, mas você só pode usar uma chance por rodada.", Buy_JP = "<VP>Você comprou 3 saltos!!", Buy_ES = "<VP>Você comprou a habilidade de dobrar o seu tamanho. Clique na text area para dobrar seu tamanho.", Buy_VP = "<VP> Você será um vampiro, durante três partidas. Mas você não pode pegar o queijo :(", Usage_ES = "<VP>Você dobrou o seu tamanho, restam ", Coins = "<j>Moedas:</J><R>", Coins50 = "<b><R>50 Moedas", Coins75 = "<b><R>75 Moedas", Coins100 = "<b><R>100 Moedas", Coins200 = "<b><R>200 Moedas", Died = "<R>Opa! Você morreu!!", Won = "<VP>Eba! Você entrou na toca!", UnlockLevel = "<VP>Boa, você desbloqueou um novo nível", NoMoney = "<R>Você não tem moedas suficientes para comprar este item. Jogue mais algumas partidas e tente novamente.", Help = "<VP>Seja cooperativo com outros jogadores e use seu poder de transformação para chegar ao queijo. Ganhe pontos por vitórias, suba de nível, compre segundas chances e até mesmo SALTOS!", Jumps = "<VP>Pulos", JumpLimites = "<R>Você atingiu o limite de saltos nesta rodada.", VampireTimeOff = "<R>Você não é mais um vampiro!", soulmateOn = "<R>O modo alma-gêmea começou.", soulmateOff = "<R>O modo alma-gêmea acabou.", Shop = "<CH><B>Loja", Second_Chance = "Segunda Chance", Shop_VPInfor = "\n\n\n<J>Vampiro 3 rodadas", Shop_SCInfor = "\n\n<J>Segundas Chances 3x", Shop_JPInfor = "\n\n\n<J>Pulos 3x", Shop_ESInfor = "\n\n<J>Tamanho Extra 3x", }, en = {Buy_SC = "<VP>The second chance skill was acquired. You've 3 chances, but you can only use one chance per round.", Buy_JP = "<VP>You got 3 jumps", Buy_ES = "<VP>You've bought the ability to double your size. Click the text area to double its size.", Buy_VP = "<VP> You will be a vampire for three rounds. But you can not get the cheese :(", Usage_ES = "<VP>You doubled your size, there are ", Coins = "<j>Coins:</J><R>", Coins50 = "<b><R>50 Coins", Coins75 = "<B><R>75 Coins", Coins100 = "<b><R>100 Coins", Coins200 = "<b><R> 200 Coins", Died = "<R>Ops! You died!!", Won = "<VP>Gj, You won!", UnlockLevel = "<R>Good job, you've unlocked a new level", NoMoney = "<R>You don't have enough coins to buy this item. Play a few more matches and try again.", Help = "<VP>Be cooperative with other players and use their transformational power to get to the cheese. Earn points for victories, level up, buy second chances and even JUMPS!", Jumps = "<VP>Jumps", JumpLimites = "<R>You've reached the jumping limit in this round.", VampireTimeOff = "<R>You're not a vampire anymore!", soulmateOn = "<R>The soulmate mode started", soulmateOff = "<R>The soulmate mode has been finalized", Shop = "<CH><B>Shop", Second_Chance = "Second Chance", Shop_VPInfor = "\n\n\n<B><J>Vampire 3 rounds", Shop_SCInfor = "\n\n\n<B><J>Second Chances 3x", Shop_JPInfor = "\n\n\n<B><J>Jumps 3x", Shop_ESInfor = "\n\n\n<B><J>Extra Size 3x", }, }
- -- New Player
- eventNewPlayer = function(name)
- inRoom = inRoom + 1
- Data[name] = {
- Activated_Jump = false, --
- Activated_CS = false, --
- Activated_Vampire = false, --
- Buyed_CS = false, --
- Buyed_VP = false, --
- ChangesSize = 0, --
- Coins = 0, -- Player Coins
- Language = "", -- Languagues
- XP = 0, -- Player Experience
- Level = 0, -- Player level
- Second_Chance = 0, -- Allows the player to relive once again after dying. Note: Only works once per match.
- Usage_SecondC = false, -- Informs whether the player has already used or not the second chance in the current round
- Jump = 0, --
- TimeVampire = 0, --
- }
- tfm.exec.respawnPlayer(name)
- settingsKeyboard(name) -- Settings keyboard player
- Data[name].Language = translations[tfm.get.room.playerList[name].community] and tfm.get.room.playerList[name].community or 'en'
- end
- -- New Game
- eventNewGame = function()
- livePlayer = 0
- for name in pairs(tfm.get.room.playerList) do -- All players
- livePlayer = livePlayer + 1 -- Adds one more to the variable
- Rounds = Rounds + 1
- tfm.exec.giveTransformations(name,true)
- Data[name].Usage_SecondC = false -- The value returns false, to say that it has not been used yet.
- Data[name].Jump = 0 -- The variable that stores the value of the amount of "jumps" returns to 0
- Data[name].Activated_CS = false
- tfm.exec.changePlayerSize(name,1)
- removeTextAreaChangeSize(name)
- Round()
- if Data[name].Buyed_CS == true then
- ui.addTextArea(14, "<font size='15'><b><p align='center'><CH><a href='event:doubleSize'>Double size</a></p>", name, 652, 355, 138, 31, 0x315250, 0xc74949, 0.5, true)
- end
- if Data[name].Buyed_VP == true then
- tfm.exec.setVampirePlayer(name)
- Data[name].TimeVampire = Data[name].TimeVampire + 1
- end
- if Data[name].TimeVampire == 3 then
- Data[name].Activated_Vampire = false
- Data[name].TimeVampire = 0
- Data[name].Buyed_VP = false
- tfm.exec.chatMessage(""..translations[Data[name].Language].VampireTimeOff.."",name)
- end
- end
- end
- -- Round
- Round = function()
- local aux = {}
- for name in pairs(tfm.get.room.playerList) do
- aux[#aux+1] = name
- end
- if Rounds >= 10 then
- for i=1, #aux-1, 2 do
- tfm.exec.linkMice(aux[i], aux[i+1], true)
- for name in pairs(tfm.get.room.playerList) do
- tfm.exec.chatMessage(""..translations[Data[name].Language].soulmateOn.."",name)
- end
- end
- end
- if Rounds >= 20 then
- for i=1, #aux-1, 2 do
- tfm.exec.linkMice(aux[i], aux[i+1], false)
- for name in pairs(tfm.get.room.playerList) do
- tfm.exec.chatMessage(""..translations[Data[name].Language].soulmateOff.."",name)
- end
- end
- Rounds = 0
- end
- end
- -- Event Loop
- eventLoop = function(current,remaining)
- if livePlayer == 0 or remaining <= 0 then -- If the number of live players = 0 or time = 0
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- -- When player die
- eventPlayerDied = function(name)
- livePlayer = livePlayer - 1 -- The variable receives its own value - 1
- tfm.exec.chatMessage(""..translations[Data[name].Language].Died.."",name)
- tfm.exec.changePlayerSize(name,1)
- if Data[name].Second_Chance > 0 and Data[name].Usage_SecondC == false then
- ui.addTextArea(13, "<font size='20'><b><p align='center'><CH><a href='event:usage_sc'>"..translations[Data[name].Language].Second_Chance.."</a></p>", name, 298, 185, 203, 30, 0x315250, 0xc74949, 0.5, true)
- end
- end
- -- PLayer Won
- eventPlayerWon = function(name)
- Data[name].XP = Data[name].XP + 5
- Data[name].Coins = Data[name].Coins + 10
- livePlayer = livePlayer - 1
- tfm.exec.chatMessage(""..translations[Data[name].Language].Won.."",name)
- unlockLevel(name)
- if Data[name].Buyed_CS == true then
- ui.addTextArea(14, "<font size='15'><b><p align='center'><CH><a href='event:doubleSize'>Double size</a></p>", name, 652, 355, 138, 31, 0x315250, 0xc74949, 0.5, true)
- end
- end
- -- If the player leaves the room
- eventPlayerLeft = function(name)
- livePlayer = livePlayer - 1
- inRoom = inRoom - 1
- end
- --Unlock level
- unlockLevel = function(name)
- if Data[name].XP >= 100 then
- Data[name].Level = Data[name].Level + 1
- Data[name].XP = 0
- tfm.exec.chatMessage(""..translations[Data[name].Language].UnlockLevel.."",name)
- end
- end
- --
- removeTextAreaChangeSize = function(name)
- if Data[name].Activated_CS == true then
- ui.removeTextArea(14,name)
- elseif Data[name].ChangesSize < 1 then
- Data[name].Buyed_CS = false
- end
- end
- -- Settings text areas
- eventTextAreaCallback = function(t,name,link)
- if link == "shop" then
- ui.addTextArea(50, "<p align='left'><font size='25'>"..translations[Data[name].Language].Shop.."</font></p>", name, 195, 87, 412, 234, 0x313a4a, 0x313a4a, 1, true)
- ui.addTextArea(51, "<font size='15'><a href='event:closeshop'><b><R>X</R></a>", name, 582, 87, 21, 27, 0x324650, 0x000000, 0, true)
- ui.addTextArea(52, "<font size='15'><p align='center'>"..translations[Data[name].Language].Shop_SCInfor.."", name, 205, 136, 120, 100, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(53, "<font size='15'><p align='center'><a href='event:buy_sc'>"..translations[Data[name].Language].Coins50.."</a>", name, 204, 253, 120, 24, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(54, "<font size='15'><p align='center'>"..translations[Data[name].Language].Shop_JPInfor.."</R>", name, 340, 136, 120, 100, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(55, "<font size='15'><p align='center'><a href='event:buy_jump'>"..translations[Data[name].Language].Coins75.."</R></a>", name, 340, 253, 120, 24, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(56, "<font size='15'><p align='center'>"..translations[Data[name].Language].Shop_ESInfor.."</R>", name, 475, 136, 120, 100, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(57, "<font size='15'><p align='center'><a href='event:buy_es'>"..translations[Data[name].Language].Coins100.."</a>", name, 475, 253, 120, 24, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(58, "<font size='15'><p align='left'>| "..translations[Data[name].Language].Coins.." "..Data[name].Coins.."", name, 272, 94, 193, 24, 0x314a4a, 0x314a4a, 0, true)
- ui.addTextArea(59, "<font size='14'><p align='left'><J>Level: <R>"..Data[name].Level.."", name, 204, 291, 193, 24, 0x314a4a, 0x314a4a, 0, true)
- ui.addTextArea(60, "<b><a href='event:nextpage1'><R><font size='15'>Next</a>", name, 558, 298, 49, 23, 0x324650, 0x000000, 0, true)
- for i = 70,80 do
- ui.removeTextArea(i,name)
- end
- elseif link == "closeshop" then
- for i = 50,80 do
- ui.removeTextArea(i,name)
- end
- elseif link == "nextpage1" then
- ui.addTextArea(70, "<p align='left'><font size='25'>"..translations[Data[name].Language].Shop.."</font></p>", name, 195, 87, 412, 234, 0x313a4a, 0x313a4a, 1, true)
- ui.addTextArea(71, "<font size='15'><a href='event:closeshop'><b><R>X</R></a>", name, 582, 87, 21, 27, 0x324650, 0x000000, 0, true)
- ui.addTextArea(72, "<font size='15'><p align='center'>"..translations[Data[name].Language].Shop_VPInfor.."", name, 205, 136, 120, 100, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(73, "<font size='15'><p align='center'><a href='event:buy_vp'>"..translations[Data[name].Language].Coins200.."</a>", name, 204, 253, 120, 24, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(74, "<font size='15'><p align='center'>???</R>", name, 340, 136, 120, 100, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(75, "<font size='15'><p align='center'>???</R></a>", name, 340, 253, 120, 24, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(76, "<font size='15'><p align='center'>???</R>", name, 475, 136, 120, 100, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(77, "<font size='15'><p align='center'>???</a>", name, 475, 253, 120, 24, 0x314a4a, 0x314a4a, 1, true)
- ui.addTextArea(78, "<font size='15'><p align='left'>| "..translations[Data[name].Language].Coins.." "..Data[name].Coins.."", name, 272, 94, 193, 24, 0x314a4a, 0x314a4a, 0, true)
- ui.addTextArea(79, "<font size='14'><p align='left'><J>Level: <R>"..Data[name].Level.."", name, 204, 291, 193, 24, 0x314a4a, 0x314a4a, 0, true)
- ui.addTextArea(80, "<b><a href='event:shop'><R><font size='15'>Back</a>", name, 558, 298, 49, 23, 0x324650, 0x000000, 0, true)
- for i = 50,60 do
- ui.removeTextArea(i,name)
- end
- elseif link == "buy_sc" then
- if Data[name].Coins >= 50 then
- Data[name].Coins = Data[name].Coins - 50
- Data[name].Second_Chance = Data[name].Second_Chance + 3
- tfm.exec.chatMessage(""..translations[Data[name].Language].Buy_SC.."",name)
- else
- tfm.exec.chatMessage(""..translations[Data[name].Language].NoMoney.."",name)
- end
- for i = 50,80 do
- ui.removeTextArea(i,name)
- end
- elseif link == "usage_sc" then
- tfm.exec.respawnPlayer(name)
- Data[name].Second_Chance = Data[name].Second_Chance - 1
- Data[name].Usage_SecondC = true
- ui.removeTextArea(13,name)
- tfm.exec.chatMessage("<VP>You have another "..Data[name].Second_Chance.." second chances",name)
- elseif link == "buy_jump" then
- if Data[name].Coins >= 75 then
- Data[name].Activated_Jump = true
- Data[name].Coins = Data[name].Coins - 75
- tfm.exec.chatMessage(""..translations[Data[name].Language].Buy_JP.."",name)
- else
- tfm.exec.chatMessage(""..translations[Data[name].Language].NoMoney.."",name)
- end
- for i = 50,80 do
- ui.removeTextArea(i,name)
- end
- elseif link == "buy_es" then
- if Data[name].Coins >= 100 then
- Data[name].Coins = Data[name].Coins - 100
- Data[name].ChangesSize = Data[name].ChangesSize + 3
- ui.addTextArea(14, "<font size='15'><b><p align='center'><CH><a href='event:doubleSize'>Double size</a></p>", name, 652, 355, 138, 31, 0x315250, 0xc74949, 0.5, true)
- Data[name].Buyed_CS = true
- tfm.exec.chatMessage(""..translations[Data[name].Language].Buy_ES.."",name)
- else
- tfm.exec.chatMessage(""..translations[Data[name].Language].NoMoney.."",name)
- end
- for i = 50,80 do
- ui.removeTextArea(i,name)
- end
- elseif link == "doubleSize" then
- if Data[name].Activated_CS == false then
- Data[name].ChangesSize = Data[name].ChangesSize - 1
- tfm.exec.changePlayerSize(name,1.8)
- Data[name].Activated_CS = true
- removeTextAreaChangeSize(name)
- tfm.exec.chatMessage(""..translations[Data[name].Language].Usage_ES..""..Data[name].ChangesSize.."",name)
- end
- elseif link == "buy_vp" then
- if Data[name].Coins >= 200 then
- Data[name].Coins = Data[name].Coins - 200
- Data[name].Activated_Vampire = true
- Data[name].Buyed_VP = true
- tfm.exec.setVampirePlayer(name)
- tfm.exec.setNameColor(name,0xff0000)
- tfm.exec.chatMessage(""..translations[Data[name].Language].Buy_VP.."",name)
- settingsKeyboard(name)
- else
- tfm.exec.chatMessage(""..translations[Data[name].Language].NoMoney.."",name)
- end
- for i = 50,80 do
- ui.removeTextArea(i,name)
- end
- elseif link == "help" then
- tfm.exec.chatMessage(""..translations[Data[name].Language].Help.."",name)
- end
- end
- -- Settings keyboard
- settingsKeyboard = function(name)
- if k == 32 and tfm.get.room.playerList[name].isFacingRight == true and info[name].time < os.time()-1500 then
- info[name].time = os.time()
- tfm.exec.movePlayer(name,0,0,true,100,0,false)
- elseif k == 32 and tfm.get.room.playerList[name].isFacingRight == false and info[name].time < os.time()-1500 then
- info[name].time = os.time()
- tfm.exec.movePlayer(name,0,0,true,-100,0,false)
- end
- local facingLeft = {} -- Create a table facing left
- for name in pairs(tfm.get.room.playerList) do
- for _,key in pairs{0,2,3,32,40,74,75} do system.bindKeyboard(name, key, true)
- end
- end
- eventKeyboard = function(name, key, down, x, y)
- if key == 0 or key == 2 then
- facingLeft[name] = key == 0
- elseif key == 32 then
- if Data[name].Activated_Jump == true then -- Verify that the "jump" power is = a true. Which means it has been activated.
- if Data[name].Jump < 3 then
- tfm.exec.movePlayer(name,0,-1,true,0,-49,false)
- Data[name].Jump = Data[name].Jump + 1 -- The variable increases its value each time the player presses the key to reach the limit.
- tfm.exec.chatMessage(""..translations[Data[name].Language].Jumps..""..Data[name].Jump.."",name)
- else
- Data[name].Activated_Jump = false -- If the value has already been exceeded the variable that "unlocks" receives the value of false to "block".
- tfm.exec.chatMessage(""..translations[Data[name].Language].JumpLimites.."",name)
- end
- end
- elseif key == 40 then
- if Data[name].Activated_Vampire == true then
- tfm.exec.movePlayer(name,0,-1,true,0,-49,false)
- end
- end
- end
- end
- --
- tfm.exec.newGame(maps[math.random(#maps)])
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement