Section 1
//achievementsanimation_810 (MechaArenav_fla.achievementsanimation_810)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class achievementsanimation_810 extends MovieClip {
public var txt1:TextField;
public function achievementsanimation_810(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package MechaArenav_fla
Section 2
//bomb_smoker3_383 (MechaArenav_fla.bomb_smoker3_383)
package MechaArenav_fla {
import flash.display.*;
public dynamic class bomb_smoker3_383 extends MovieClip {
public var sm:MovieClip;
}
}//package MechaArenav_fla
Section 3
//bomb_smoker4_382 (MechaArenav_fla.bomb_smoker4_382)
package MechaArenav_fla {
import flash.display.*;
public dynamic class bomb_smoker4_382 extends MovieClip {
public var sm:MovieClip;
public function bomb_smoker4_382(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package MechaArenav_fla
Section 4
//fxradarkenadamage_729 (MechaArenav_fla.fxradarkenadamage_729)
package MechaArenav_fla {
import flash.display.*;
public dynamic class fxradarkenadamage_729 extends MovieClip {
public function fxradarkenadamage_729(){
addFrameScript(0, frame1, 1, frame2, 8, frame9);
}
function frame1(){
stop();
this.visible = false;
}
function frame9(){
stop();
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 5
//GAME_22 (MechaArenav_fla.GAME_22)
package MechaArenav_fla {
import flash.display.*;
public dynamic class GAME_22 extends MovieClip {
public function GAME_22(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package MechaArenav_fla
Section 6
//INGAME_13 (MechaArenav_fla.INGAME_13)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_13 extends MovieClip {
public function INGAME_13(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 7
//INGAME_23 (MechaArenav_fla.INGAME_23)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_23 extends MovieClip {
public function INGAME_23(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 8
//INGAME_244 (MechaArenav_fla.INGAME_244)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_244 extends MovieClip {
public var mcraider1:MovieClip;
public var mcstaffidle1:MovieClip;
public var mcstaffidle2:MovieClip;
public var mcstaffidle3:MovieClip;
public var mcstaffidle4:MovieClip;
public var mc1:MovieClip;
public var mcstaff3:MovieClip;
public var mcstaff4:MovieClip;
public var mcstaff1:MovieClip;
public var mcstaff2:MovieClip;
public var mclvlup3:MovieClip;
public var mclvlup4:MovieClip;
public var mclvlup1:MovieClip;
public var mclvlup2:MovieClip;
public var mcmecha1:MovieClip;
public var mcsponsor:MovieClip;
public var mcrepairdone:MovieClip;
}
}//package MechaArenav_fla
Section 9
//INGAME_245 (MechaArenav_fla.INGAME_245)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_245 extends MovieClip {
public var mcsirene:MovieClip;
}
}//package MechaArenav_fla
Section 10
//INGAME_26 (MechaArenav_fla.INGAME_26)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_26 extends MovieClip {
public var mccheck:MovieClip;
public var txt1:TextField;
public var txt2:TextField;
}
}//package MechaArenav_fla
Section 11
//INGAME_263 (MechaArenav_fla.INGAME_263)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_263 extends MovieClip {
public var txtday:TextField;
public var btnstop:SimpleButton;
public var mcbar:MovieClip;
}
}//package MechaArenav_fla
Section 12
//INGAME_29 (MechaArenav_fla.INGAME_29)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_29 extends MovieClip {
public var mchit:MovieClip;
}
}//package MechaArenav_fla
Section 13
//INGAME_34 (MechaArenav_fla.INGAME_34)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_34 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 14
//INGAME_344 (MechaArenav_fla.INGAME_344)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_344 extends MovieClip {
public var mcpoingained:MovieClip;
public function INGAME_344(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 15
//INGAME_345 (MechaArenav_fla.INGAME_345)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_345 extends MovieClip {
public var mcflag:MovieClip;
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mcturn2:MovieClip;
public var mcturn3:MovieClip;
public var mcturn4:MovieClip;
public var mcfinish:MovieClip;
public var mccanfinish:MovieClip;
public var mcdashdisabled:MovieClip;
public var mcturn1:MovieClip;
public var mcmecha1:MovieClip;
public var btndash:SimpleButton;
public function INGAME_345(){
addFrameScript(0, frame1);
}
function frame1(){
mcmecha1.visible = false;
btndash.visible = false;
mcdashdisabled.visible = false;
}
}
}//package MechaArenav_fla
Section 16
//INGAME_346 (MechaArenav_fla.INGAME_346)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_346 extends MovieClip {
public var mcslower:MovieClip;
public var mcobstacle1:MovieClip;
public var mcobstacle2:MovieClip;
public var mcobstacle4:MovieClip;
public var mcobstacle5:MovieClip;
public var mcobstacle6:MovieClip;
public var mcobstacle3:MovieClip;
public var mcobstacle7:MovieClip;
}
}//package MechaArenav_fla
Section 17
//INGAME_349 (MechaArenav_fla.INGAME_349)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_349 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_349(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 18
//INGAME_353 (MechaArenav_fla.INGAME_353)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_353 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_353(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 19
//INGAME_356 (MechaArenav_fla.INGAME_356)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_356 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_356(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 20
//INGAME_360 (MechaArenav_fla.INGAME_360)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_360 extends MovieClip {
public function INGAME_360(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 21
//INGAME_364 (MechaArenav_fla.INGAME_364)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_364 extends MovieClip {
public var mcshoot1:MovieClip;
public var mcshoot2:MovieClip;
public var mcshoot4:MovieClip;
public var mcshoot3:MovieClip;
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mcmecha1:MovieClip;
public function INGAME_364(){
addFrameScript(0, frame1);
}
function frame1(){
mcmecha1.visible = false;
}
}
}//package MechaArenav_fla
Section 22
//INGAME_371 (MechaArenav_fla.INGAME_371)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_371 extends MovieClip {
public var mc1:MovieClip;
public var mcmecha1:MovieClip;
public function INGAME_371(){
addFrameScript(0, frame1);
}
function frame1(){
mcmecha1.visible = false;
}
}
}//package MechaArenav_fla
Section 23
//INGAME_372 (MechaArenav_fla.INGAME_372)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_372 extends MovieClip {
public var mcstopright1:MovieClip;
public var mcstopright2:MovieClip;
public var mcstopright3:MovieClip;
public var mctarget1:MovieClip;
public var mctarget2:MovieClip;
public var mcstopleft3:MovieClip;
public var mctarget3:MovieClip;
public var mcstopleft1:MovieClip;
public var mcstopleft2:MovieClip;
}
}//package MechaArenav_fla
Section 24
//INGAME_373 (MechaArenav_fla.INGAME_373)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_373 extends MovieClip {
public var mcstand:MovieClip;
public var mcfoot:MovieClip;
public var mcmark:MovieClip;
}
}//package MechaArenav_fla
Section 25
//INGAME_41 (MechaArenav_fla.INGAME_41)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_41 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 26
//INGAME_426 (MechaArenav_fla.INGAME_426)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_426 extends MovieClip {
public var btnok:SimpleButton;
public var txt1:TextField;
public var btncancel:SimpleButton;
}
}//package MechaArenav_fla
Section 27
//INGAME_442 (MechaArenav_fla.INGAME_442)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_442 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_442(){
addFrameScript(0, frame1, 24, frame25, 49, frame50);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
function frame50(){
stop();
}
}
}//package MechaArenav_fla
Section 28
//INGAME_462 (MechaArenav_fla.INGAME_462)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_462 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_462(){
addFrameScript(0, frame1, 24, frame25, 49, frame50);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
function frame50(){
stop();
}
}
}//package MechaArenav_fla
Section 29
//INGAME_463 (MechaArenav_fla.INGAME_463)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_463 extends MovieClip {
public var txttp:TextField;
public var txtmoney:TextField;
public var btntrain3:SimpleButton;
public var btntrain2:SimpleButton;
public var btntrain4:SimpleButton;
public var btntrain1:SimpleButton;
public var mcblink:MovieClip;
public var btnnotrain1:SimpleButton;
public var mctpannouncement:MovieClip;
public function INGAME_463(){
addFrameScript(0, frame1);
}
function frame1(){
mctpannouncement.visible = false;
}
}
}//package MechaArenav_fla
Section 30
//INGAME_472 (MechaArenav_fla.INGAME_472)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_472 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_472(){
addFrameScript(0, frame1, 24, frame25, 49, frame50);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
function frame50(){
stop();
}
}
}//package MechaArenav_fla
Section 31
//INGAME_479 (MechaArenav_fla.INGAME_479)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_479 extends MovieClip {
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 32
//INGAME_481 (MechaArenav_fla.INGAME_481)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_481 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_481(){
addFrameScript(0, frame1, 24, frame25, 49, frame50);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
function frame50(){
stop();
}
}
}//package MechaArenav_fla
Section 33
//INGAME_485 (MechaArenav_fla.INGAME_485)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_485 extends MovieClip {
public var mctimechangeeffect:MovieClip;
public var mctime2:MovieClip;
public var mctime:MovieClip;
public var mcblink:MovieClip;
public var mcmonth:MovieClip;
public var mcblinker:MovieClip;
public var mcyear:MovieClip;
}
}//package MechaArenav_fla
Section 34
//INGAME_486 (MechaArenav_fla.INGAME_486)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_486 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public function INGAME_486(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 35
//INGAME_488 (MechaArenav_fla.INGAME_488)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_488 extends MovieClip {
public function INGAME_488(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 36
//INGAME_491 (MechaArenav_fla.INGAME_491)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_491 extends MovieClip {
public var mcmarking1:MovieClip;
public function INGAME_491(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 37
//INGAME_493 (MechaArenav_fla.INGAME_493)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_493 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_493(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 38
//INGAME_498 (MechaArenav_fla.INGAME_498)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_498 extends MovieClip {
public var mcspd1:MovieClip;
public var mctxthead:MovieClip;
public var mcspd4:MovieClip;
public var mcspd5:MovieClip;
public var mcspd2:MovieClip;
public var mcspd3:MovieClip;
public var txtarm1def:TextField;
public var txtarm2spd:TextField;
public var txtchipset:TextField;
public var mcmecha:MovieClip;
public var mchand2grade:MovieClip;
public var txtbody:TextField;
public var txtatk:TextField;
public var btnopen2:SimpleButton;
public var btnopen6:SimpleButton;
public var btnopen1:SimpleButton;
public var mcbarexp:MovieClip;
public var btnopen4:SimpleButton;
public var txtleg2:TextField;
public var btnopen5:SimpleButton;
public var txtleg1:TextField;
public var btnopen3:SimpleButton;
public var txtleg2hp:TextField;
public var mchead:MovieClip;
public var txtbodyspd:TextField;
public var mctipe4:MovieClip;
public var txtarm2def:TextField;
public var txtleg1spd:TextField;
public var mctipe5:MovieClip;
public var mctipe2:MovieClip;
public var mcleg1:MovieClip;
public var mctipe3:MovieClip;
public var txtleg1hp:TextField;
public var mcblacker:MovieClip;
public var mcbodygrade:MovieClip;
public var txtbodyhp:TextField;
public var mcleg2:MovieClip;
public var mccloseclick:MovieClip;
public var mctipe6:MovieClip;
public var txtbodydef:TextField;
public var txtpersenspd:TextField;
public var txtarm1atk:TextField;
public var mctxthand2:MovieClip;
public var txtstat:TextField;
public var mctxthand1:MovieClip;
public var txtleg1def:TextField;
public var txtleg2spd:TextField;
public var mchp2:MovieClip;
public var mchp3:MovieClip;
public var mchp4:MovieClip;
public var mchp5:MovieClip;
public var mclistequipment:MovieClip;
public var txtarm2effect:TextField;
public var txtleg2effect:TextField;
public var mchp1:MovieClip;
public var mcraider1:MovieClip;
public var txtatk1:TextField;
public var mcleg1grade:MovieClip;
public var txtarm2atk:TextField;
public var txtname:TextField;
public var txtlevel:TextField;
public var txtatk2:TextField;
public var btnclose:SimpleButton;
public var mcatk1:MovieClip;
public var mcatk2:MovieClip;
public var txtleg2def:TextField;
public var txthand1:TextField;
public var txthand2:TextField;
public var mcatk3:MovieClip;
public var mcatk4:MovieClip;
public var mcatk5:MovieClip;
public var txtdef1:TextField;
public var txtdef2:TextField;
public var txtspd:TextField;
public var txtpersendef:TextField;
public var txtbodyatk:TextField;
public var txtarm2hp:TextField;
public var txtchipseteffect:TextField;
public var btnconfirmchanges:SimpleButton;
public var mcdef1:MovieClip;
public var mcdef2:MovieClip;
public var mcdef3:MovieClip;
public var mcdef4:MovieClip;
public var mcdef5:MovieClip;
public var txthp:TextField;
public var txtleg1atk:TextField;
public var mchand1grade:MovieClip;
public var txtdef:TextField;
public var mcchipsetgrade:MovieClip;
public var txtarm1hp:TextField;
public var txtarm1effect:TextField;
public var mcblink:MovieClip;
public var txtpersenatk:TextField;
public var mcleg2grade:MovieClip;
public var txtexp:TextField;
public var txtleg1effect:TextField;
public var txthp1:TextField;
public var txthp2:TextField;
public var txtarm1spd:TextField;
public var mchand1:MovieClip;
public var mchand2:MovieClip;
public var txtleg2atk:TextField;
public var txtpersenhp:TextField;
public var txtspd1:TextField;
public var txtspd2:TextField;
public var txtheadeffect:TextField;
public var mctxtleg1:MovieClip;
public var mctxtleg2:MovieClip;
public function INGAME_498(){
addFrameScript(0, frame1);
}
function frame1(){
mcblacker.visible = false;
mclistequipment.visible = false;
}
}
}//package MechaArenav_fla
Section 39
//INGAME_506 (MechaArenav_fla.INGAME_506)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_506 extends MovieClip {
public function INGAME_506(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 40
//INGAME_528 (MechaArenav_fla.INGAME_528)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_528 extends MovieClip {
public var mcbuy1:MovieClip;
public var mcbuy5:MovieClip;
public var mcbuy4:MovieClip;
public var mcbuy6:MovieClip;
public var mcbuy7:MovieClip;
public var mcbuy3:MovieClip;
public var mcbuy2:MovieClip;
public var btnclose:SimpleButton;
public var txtmoney:TextField;
public var mcmechanic1:MovieClip;
public var mcmechanic2:MovieClip;
public var mcmechanic4:MovieClip;
public var mcmechanic3:MovieClip;
public var mcblink:MovieClip;
public var mcsortwages:MovieClip;
public var mcsortskill:MovieClip;
public var mccloseclick:MovieClip;
public var mcblacker:MovieClip;
public function INGAME_528(){
addFrameScript(0, frame1);
}
function frame1(){
mcblacker.visible = false;
}
}
}//package MechaArenav_fla
Section 41
//INGAME_529 (MechaArenav_fla.INGAME_529)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_529 extends MovieClip {
public var btnpromote:SimpleButton;
public var btnfiredisabled:SimpleButton;
public var txtlevel:TextField;
public var mcstaff:MovieClip;
public var txtno:TextField;
public var mchit:MovieClip;
public var mcbarexp:MovieClip;
public var txtname:TextField;
public var btnfire:SimpleButton;
public var txtskillpt:TextField;
public var txtdrophere:TextField;
public var txtwages:TextField;
}
}//package MechaArenav_fla
Section 42
//INGAME_534 (MechaArenav_fla.INGAME_534)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_534 extends MovieClip {
public var mcstaff:MovieClip;
public var mcblock:MovieClip;
public var txtwages:TextField;
public var txtskill:TextField;
}
}//package MechaArenav_fla
Section 43
//INGAME_540 (MechaArenav_fla.INGAME_540)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_540 extends MovieClip {
public var btnok:SimpleButton;
public var btncancel:SimpleButton;
}
}//package MechaArenav_fla
Section 44
//INGAME_541 (MechaArenav_fla.INGAME_541)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_541 extends MovieClip {
public var btnok:SimpleButton;
}
}//package MechaArenav_fla
Section 45
//INGAME_542 (MechaArenav_fla.INGAME_542)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_542 extends MovieClip {
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 46
//INGAME_543 (MechaArenav_fla.INGAME_543)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_543 extends MovieClip {
public var mclight3:MovieClip;
public var mcblocker1:MovieClip;
public var mcblocker2:MovieClip;
public var mcblocker4:MovieClip;
public var mcblocker3:MovieClip;
public var mclight4:MovieClip;
public var btn3:SimpleButton;
public var btn2:SimpleButton;
public var btn4:SimpleButton;
public var btn1:SimpleButton;
public var mclight1:MovieClip;
public var mclight2:MovieClip;
}
}//package MechaArenav_fla
Section 47
//INGAME_551 (MechaArenav_fla.INGAME_551)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_551 extends MovieClip {
public var mcbtn2:MovieClip;
public var mcbtn1:MovieClip;
public var btnclose:SimpleButton;
public var mcclose:MovieClip;
public var mcshopexplanation:MovieClip;
public var btnscroll:SimpleButton;
public var txtmoney:TextField;
public var mcmoneyadded:MovieClip;
public var mcblink:MovieClip;
public var btnbuy:MovieClip;
public var btnsell:MovieClip;
public var mcbtn3:MovieClip;
public var mcbtn4:MovieClip;
public function INGAME_551(){
addFrameScript(0, frame1);
}
function frame1(){
mcshopexplanation.visible = false;
}
}
}//package MechaArenav_fla
Section 48
//INGAME_553 (MechaArenav_fla.INGAME_553)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_553 extends MovieClip {
public var btnclose:SimpleButton;
public var txtrequired:TextField;
public var mc1:MovieClip;
public var btnequip:SimpleButton;
public var btnbuy:SimpleButton;
public var btnsell:SimpleButton;
public function INGAME_553(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 49
//INGAME_555 (MechaArenav_fla.INGAME_555)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_555 extends MovieClip {
public var mcgrade:MovieClip;
public var mcnotavailable:MovieClip;
public var txtstatus:TextField;
public var txtname:TextField;
public var mcpreview:MovieClip;
public var mctipe2:MovieClip;
public var txtexp:TextField;
public var mcsymbol:MovieClip;
public var txtprice:TextField;
}
}//package MechaArenav_fla
Section 50
//INGAME_558 (MechaArenav_fla.INGAME_558)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_558 extends MovieClip {
public function INGAME_558(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 51
//INGAME_560 (MechaArenav_fla.INGAME_560)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_560 extends MovieClip {
public var mcgrade:MovieClip;
public var mcnotavailable:MovieClip;
public var txtstatus:TextField;
public var txtname:TextField;
public var mcpreview:MovieClip;
public var mctipe2:MovieClip;
public var txtexp:TextField;
public var mcsymbol:MovieClip;
}
}//package MechaArenav_fla
Section 52
//INGAME_561 (MechaArenav_fla.INGAME_561)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_561 extends MovieClip {
public var mcnotavailable:MovieClip;
public var btn1:SimpleButton;
}
}//package MechaArenav_fla
Section 53
//INGAME_563 (MechaArenav_fla.INGAME_563)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_563 extends MovieClip {
public var btn1:SimpleButton;
}
}//package MechaArenav_fla
Section 54
//INGAME_600 (MechaArenav_fla.INGAME_600)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_600 extends MovieClip {
public var mchitter:MovieClip;
public function INGAME_600(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 55
//INGAME_602 (MechaArenav_fla.INGAME_602)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_602 extends MovieClip {
public var mchitter:MovieClip;
public function INGAME_602(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 56
//INGAME_603 (MechaArenav_fla.INGAME_603)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_603 extends MovieClip {
public var mchitter:MovieClip;
public function INGAME_603(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 57
//INGAME_604 (MechaArenav_fla.INGAME_604)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_604 extends MovieClip {
public var mchitter:MovieClip;
public function INGAME_604(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 58
//INGAME_609 (MechaArenav_fla.INGAME_609)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_609 extends MovieClip {
public var btnclose:SimpleButton;
public var mcclose:MovieClip;
public var mc1:MovieClip;
public var btnequip:SimpleButton;
public var btnbuy:SimpleButton;
public function INGAME_609(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 59
//INGAME_611 (MechaArenav_fla.INGAME_611)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_611 extends MovieClip {
public var mcgrade:MovieClip;
public var mcnotavailable:MovieClip;
public var txtstatus:TextField;
public var txtname:TextField;
public var mcpreview:MovieClip;
public var mctipe2:MovieClip;
public var txtexp:TextField;
public var mcsymbol:MovieClip;
public var txtprice:TextField;
}
}//package MechaArenav_fla
Section 60
//INGAME_613 (MechaArenav_fla.INGAME_613)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_613 extends MovieClip {
public var btnclose:SimpleButton;
public var mc2mark:MovieClip;
public var mc4mark:MovieClip;
public var mcanna:MovieClip;
public var btnskiptutorial:SimpleButton;
public var btnupgrade:SimpleButton;
public var btnnext:SimpleButton;
public var txtjudul:TextField;
public var mctechguy:MovieClip;
public var btnstart:SimpleButton;
public var mc3mark:MovieClip;
public var txt1:TextField;
public var btnnext2:SimpleButton;
public var btncancel:SimpleButton;
public function INGAME_613(){
addFrameScript(0, frame1, 1, frame2, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 61
//INGAME_630 (MechaArenav_fla.INGAME_630)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_630 extends MovieClip {
public var btnclose:SimpleButton;
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc2:MovieClip;
public var mc4:MovieClip;
public var mcok1:MovieClip;
public var mcok2:MovieClip;
public var mcok3:MovieClip;
public var mcok4:MovieClip;
public var mccloseclick:MovieClip;
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var txt4:TextField;
public function INGAME_630(){
addFrameScript(0, frame1);
}
function frame1(){
txt1.mouseEnabled = false;
txt2.mouseEnabled = false;
txt3.mouseEnabled = false;
txt4.mouseEnabled = false;
}
}
}//package MechaArenav_fla
Section 62
//INGAME_634 (MechaArenav_fla.INGAME_634)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_634 extends MovieClip {
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 63
//INGAME_635 (MechaArenav_fla.INGAME_635)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_635 extends MovieClip {
public var mcwaypoint14:MovieClip;
public var btnenter:SimpleButton;
public var mcwaypoint19:MovieClip;
public var mclocator8:MovieClip;
public var mcwaypoint15:MovieClip;
public var mcwaypoint16:MovieClip;
public var mcwaypoint10:MovieClip;
public var mcwaypoint11:MovieClip;
public var mclogo1:MovieClip;
public var mclogo3:MovieClip;
public var mclogo4:MovieClip;
public var mclogo7:MovieClip;
public var mclogo2:MovieClip;
public var mcwaypoint12:MovieClip;
public var mclogo6:MovieClip;
public var mcwaypoint21:MovieClip;
public var mcwaypoint22:MovieClip;
public var mcwaypoint24:MovieClip;
public var mclocator2:MovieClip;
public var mclogo5:MovieClip;
public var mcwaypoint20:MovieClip;
public var mcwaypoint23:MovieClip;
public var mclocator6:MovieClip;
public var mclogo8:MovieClip;
public var mclogo9:MovieClip;
public var mctournamentsymbol:MovieClip;
public var mclocator3:MovieClip;
public var mcwin:MovieClip;
public var mclocatortemp1:MovieClip;
public var mclocatortemp3:MovieClip;
public var mclocatortemp5:MovieClip;
public var mclocatortemp2:MovieClip;
public var mccloseclick:MovieClip;
public var mclocatortemp4:MovieClip;
public var mclocatortemp6:MovieClip;
public var mcwinnersummary:MovieClip;
public var btnenterno:SimpleButton;
public var btnokno:SimpleButton;
public var btnclose:SimpleButton;
public var btnok:SimpleButton;
public var mcwaypoint1:MovieClip;
public var mcwaypoint2:MovieClip;
public var mcwaypoint3:MovieClip;
public var mcwaypoint4:MovieClip;
public var mcwaypoint6:MovieClip;
public var mcwaypoint9:MovieClip;
public var mcwaypoint5:MovieClip;
public var mcwaypoint7:MovieClip;
public var mcwaypoint8:MovieClip;
public var mclocator1:MovieClip;
public var mclocator4:MovieClip;
public var mclocator5:MovieClip;
public var mclocator7:MovieClip;
public var mcwaypoint13:MovieClip;
public var mcwaypoint17:MovieClip;
public var mcwaypoint18:MovieClip;
}
}//package MechaArenav_fla
Section 64
//INGAME_636 (MechaArenav_fla.INGAME_636)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_636 extends MovieClip {
public var mchit:MovieClip;
public function INGAME_636(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 65
//INGAME_637 (MechaArenav_fla.INGAME_637)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_637 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_637(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 66
//INGAME_638 (MechaArenav_fla.INGAME_638)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_638 extends MovieClip {
public var mcmecha1:MovieClip;
}
}//package MechaArenav_fla
Section 67
//INGAME_639 (MechaArenav_fla.INGAME_639)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_639 extends MovieClip {
public function INGAME_639(){
addFrameScript(0, frame1, 1, frame2, 5, frame6);
}
function frame6(){
stop();
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 68
//INGAME_641 (MechaArenav_fla.INGAME_641)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_641 extends MovieClip {
public var btnok:SimpleButton;
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 69
//INGAME_642 (MechaArenav_fla.INGAME_642)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_642 extends MovieClip {
public var btnok:SimpleButton;
}
}//package MechaArenav_fla
Section 70
//INGAME_643 (MechaArenav_fla.INGAME_643)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_643 extends MovieClip {
public var btnok:SimpleButton;
}
}//package MechaArenav_fla
Section 71
//INGAME_644 (MechaArenav_fla.INGAME_644)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_644 extends MovieClip {
public var btnok:SimpleButton;
public var btncancel:SimpleButton;
}
}//package MechaArenav_fla
Section 72
//INGAME_645 (MechaArenav_fla.INGAME_645)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_645 extends MovieClip {
public var btnok:SimpleButton;
public var txt1:TextField;
public var btncancel:SimpleButton;
}
}//package MechaArenav_fla
Section 73
//INGAME_647 (MechaArenav_fla.INGAME_647)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_647 extends MovieClip {
public var btnno:SimpleButton;
public var btnok:SimpleButton;
public var txt1:TextField;
public var txt2:TextField;
}
}//package MechaArenav_fla
Section 74
//INGAME_648 (MechaArenav_fla.INGAME_648)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_648 extends MovieClip {
public var mcraider1:MovieClip;
public var txtatk1:TextField;
public var mcrider1:MovieClip;
public var mcrider2:MovieClip;
public var mcrider4:MovieClip;
public var mcrider6:MovieClip;
public var txtlevel:TextField;
public var mcrider3:MovieClip;
public var btnclose:SimpleButton;
public var mcrider5:MovieClip;
public var txtdef1:TextField;
public var txtmoney:TextField;
public var mcbarexp:MovieClip;
public var txtname:TextField;
public var mccloseclick:MovieClip;
public var txtexp:TextField;
public var txthp1:TextField;
public var txtspd1:TextField;
public var txtwages:TextField;
}
}//package MechaArenav_fla
Section 75
//INGAME_649 (MechaArenav_fla.INGAME_649)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_649 extends MovieClip {
public var txtlevel:TextField;
public var txtspd:TextField;
public var txthp:TextField;
public var txtname:TextField;
public var txtdef:TextField;
public var txtatk:TextField;
public var mcblock:MovieClip;
public var mcraider:MovieClip;
public var txtwages:TextField;
}
}//package MechaArenav_fla
Section 76
//INGAME_650 (MechaArenav_fla.INGAME_650)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_650 extends MovieClip {
public var btnplus4:SimpleButton;
public var btnokfalse:MovieClip;
public var txtname:TextField;
public var txtlevel:TextField;
public var btnplus2:SimpleButton;
public var mcmecha:MovieClip;
public var txtspd:TextField;
public var btnok:SimpleButton;
public var txtstatgain:TextField;
public var mcbarexp:MovieClip;
public var txtavailable:TextField;
public var txthp:TextField;
public var mcraiderlvlup:MovieClip;
public var btnplus1:SimpleButton;
public var txtdef:TextField;
public var mctrainingtipe:MovieClip;
public var txtatk:TextField;
public var txtexp:TextField;
public var btnundo:SimpleButton;
public var mcraider:MovieClip;
public var mcpoinhead:MovieClip;
public var mcpoinleg1:MovieClip;
public var mcpoinleg2:MovieClip;
public var mcpoinhand1:MovieClip;
public var mcpoinhand2:MovieClip;
public var btnplus3:SimpleButton;
public function INGAME_650(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 77
//INGAME_660 (MechaArenav_fla.INGAME_660)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_660 extends MovieClip {
public var btnclose:SimpleButton;
public var mccloseclick:MovieClip;
public var mcbutt1:MovieClip;
public var mcbutt2:MovieClip;
public var mctext1:MovieClip;
public var mctext2:MovieClip;
}
}//package MechaArenav_fla
Section 78
//INGAME_661 (MechaArenav_fla.INGAME_661)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_661 extends MovieClip {
public function INGAME_661(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 79
//INGAME_662 (MechaArenav_fla.INGAME_662)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_662 extends MovieClip {
public function INGAME_662(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 80
//INGAME_663 (MechaArenav_fla.INGAME_663)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_663 extends MovieClip {
public function INGAME_663(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 81
//INGAME_664 (MechaArenav_fla.INGAME_664)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_664 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_664(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 82
//INGAME_665 (MechaArenav_fla.INGAME_665)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_665 extends MovieClip {
public var txtjudul:TextField;
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var mctipe:MovieClip;
}
}//package MechaArenav_fla
Section 83
//INGAME_666 (MechaArenav_fla.INGAME_666)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_666 extends MovieClip {
public function INGAME_666(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 84
//INGAME_669 (MechaArenav_fla.INGAME_669)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_669 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_669(){
addFrameScript(0, frame1, 1, frame2, 82, frame83);
}
function frame1(){
stop();
this.visible = false;
}
function frame83(){
stop();
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 85
//INGAME_672 (MechaArenav_fla.INGAME_672)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_672 extends MovieClip {
public var mcfoot:MovieClip;
public function INGAME_672(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 86
//INGAME_674 (MechaArenav_fla.INGAME_674)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_674 extends MovieClip {
public var btnok:SimpleButton;
public var mclogo:MovieClip;
public var btnnext:SimpleButton;
public var btnprev:SimpleButton;
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 87
//INGAME_677 (MechaArenav_fla.INGAME_677)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_677 extends MovieClip {
public var btnok:SimpleButton;
}
}//package MechaArenav_fla
Section 88
//INGAME_678 (MechaArenav_fla.INGAME_678)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_678 extends MovieClip {
public var btnbackmainmenu:SimpleButton;
}
}//package MechaArenav_fla
Section 89
//INGAME_679 (MechaArenav_fla.INGAME_679)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_679 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_679(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 90
//INGAME_680 (MechaArenav_fla.INGAME_680)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_680 extends MovieClip {
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var txt5:TextField;
public var txt4:TextField;
}
}//package MechaArenav_fla
Section 91
//INGAME_681 (MechaArenav_fla.INGAME_681)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_681 extends MovieClip {
public function INGAME_681(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 92
//INGAME_686 (MechaArenav_fla.INGAME_686)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_686 extends MovieClip {
public var btnbackmainmenu:SimpleButton;
public function INGAME_686(){
addFrameScript(0, frame1, 1, frame2, 249, frame250);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame250(){
stop();
}
}
}//package MechaArenav_fla
Section 93
//INGAME_689 (MechaArenav_fla.INGAME_689)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_689 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_689(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 94
//INGAME_692 (MechaArenav_fla.INGAME_692)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_692 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_692(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 95
//INGAME_703 (MechaArenav_fla.INGAME_703)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_703 extends MovieClip {
public var btnok:SimpleButton;
public var txt1:TextField;
public var btncancel:SimpleButton;
}
}//package MechaArenav_fla
Section 96
//INGAME_704 (MechaArenav_fla.INGAME_704)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_704 extends MovieClip {
public var mccamera2:MovieClip;
public var mc1:MovieClip;
public var mccamera1:MovieClip;
public var mc2:MovieClip;
public function INGAME_704(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 97
//INGAME_705 (MechaArenav_fla.INGAME_705)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_705 extends MovieClip {
public function INGAME_705(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 98
//INGAME_727 (MechaArenav_fla.INGAME_727)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_727 extends MovieClip {
public var mcenemybar:MovieClip;
public var mcspeedtimelimits:MovieClip;
public var mcenemyindicator:MovieClip;
public var mcplayerbar:MovieClip;
public var mcplayerindicator:MovieClip;
public function INGAME_727(){
addFrameScript(0, frame1, 27, frame28);
}
function frame1(){
stop();
}
function frame28(){
stop();
}
}
}//package MechaArenav_fla
Section 99
//INGAME_728 (MechaArenav_fla.INGAME_728)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_728 extends MovieClip {
public var mcradar4:MovieClip;
public var mctxtleg2:MovieClip;
public var mcradar2:MovieClip;
public var mcradar1:MovieClip;
public var mcradar3:MovieClip;
public var mcradar5:MovieClip;
public var mctxthead:MovieClip;
public var mchead:MovieClip;
public var mcleg1:MovieClip;
public var mcleg2:MovieClip;
public var mctxthand2:MovieClip;
public var mchand1:MovieClip;
public var mchand2:MovieClip;
public var mctxthand1:MovieClip;
public var mctxtleg1:MovieClip;
}
}//package MechaArenav_fla
Section 100
//INGAME_730 (MechaArenav_fla.INGAME_730)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_730 extends MovieClip {
public var mcredalert:MovieClip;
public var mcraider1:MovieClip;
public var mcblink10:MovieClip;
public var mcblink1:MovieClip;
public var mcblink3:MovieClip;
public var mcblink6:MovieClip;
public var mcblink7:MovieClip;
public var mcblink4:MovieClip;
public var mcblink5:MovieClip;
public var mcbarhealth:MovieClip;
public var txthp:TextField;
public var mcblink2:MovieClip;
public var mcblink8:MovieClip;
public var mcblink9:MovieClip;
public var mcbarenergy:MovieClip;
public var mcenergynumba:MovieClip;
}
}//package MechaArenav_fla
Section 101
//INGAME_754 (MechaArenav_fla.INGAME_754)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_754 extends MovieClip {
public var mcredalert:MovieClip;
public var mcraider1:MovieClip;
public var mcblink10:MovieClip;
public var mcblink1:MovieClip;
public var mcblink3:MovieClip;
public var mcblink6:MovieClip;
public var mcblink7:MovieClip;
public var mcblink4:MovieClip;
public var mcblink5:MovieClip;
public var mcbarhealth:MovieClip;
public var txthp:TextField;
public var mcblink2:MovieClip;
public var mcblink8:MovieClip;
public var mcblink9:MovieClip;
public var mcbarenergy:MovieClip;
public var mcenergynumba:MovieClip;
}
}//package MechaArenav_fla
Section 102
//INGAME_755 (MechaArenav_fla.INGAME_755)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_755 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_755(){
addFrameScript(0, frame1, 5, frame6, 14, frame15);
}
function frame6(){
gotoAndPlay("blinking");
}
function frame1(){
stop();
}
function frame15(){
gotoAndPlay("hit");
}
}
}//package MechaArenav_fla
Section 103
//INGAME_774 (MechaArenav_fla.INGAME_774)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_774 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_774(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 104
//INGAME_775 (MechaArenav_fla.INGAME_775)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_775 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 105
//INGAME_779 (MechaArenav_fla.INGAME_779)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_779 extends MovieClip {
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc5:MovieClip;
public var mc2:MovieClip;
public var mc4:MovieClip;
public var mc7:MovieClip;
public var mc6:MovieClip;
public var mcoutover:MovieClip;
public function INGAME_779(){
addFrameScript(0, frame1, 1, frame2, 38, frame39);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame39(){
stop();
}
}
}//package MechaArenav_fla
Section 106
//INGAME_781 (MechaArenav_fla.INGAME_781)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_781 extends MovieClip {
public var mceffectlocator:MovieClip;
public function INGAME_781(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 107
//INGAME_791 (MechaArenav_fla.INGAME_791)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_791 extends MovieClip {
public var btncentang:SimpleButton;
public var btncentang2:SimpleButton;
}
}//package MechaArenav_fla
Section 108
//INGAME_795 (MechaArenav_fla.INGAME_795)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_795 extends MovieClip {
public var mcnotavailable:MovieClip;
public var btnok:SimpleButton;
public var txtmoney:TextField;
public var txtname:TextField;
public var mcpreview:MovieClip;
}
}//package MechaArenav_fla
Section 109
//INGAME_796 (MechaArenav_fla.INGAME_796)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_796 extends MovieClip {
public var btnok:SimpleButton;
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 110
//INGAME_797 (MechaArenav_fla.INGAME_797)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_797 extends MovieClip {
public var mchelppic:MovieClip;
public var btnpage2:MovieClip;
public var btnpage1:MovieClip;
}
}//package MechaArenav_fla
Section 111
//INGAME_798 (MechaArenav_fla.INGAME_798)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_798 extends MovieClip {
public function INGAME_798(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 112
//INGAME_799 (MechaArenav_fla.INGAME_799)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_799 extends MovieClip {
public function INGAME_799(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 113
//INGAME_800 (MechaArenav_fla.INGAME_800)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_800 extends MovieClip {
public function INGAME_800(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 114
//INGAME_802 (MechaArenav_fla.INGAME_802)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_802 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_802(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
gotoAndPlay("cut");
}
}
}//package MechaArenav_fla
Section 115
//INGAME_806 (MechaArenav_fla.INGAME_806)
package MechaArenav_fla {
import flash.display.*;
public dynamic class INGAME_806 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_806(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 116
//jurusjlarjlar_726 (MechaArenav_fla.jurusjlarjlar_726)
package MechaArenav_fla {
import flash.display.*;
public dynamic class jurusjlarjlar_726 extends MovieClip {
public var mceffectlocator:MovieClip;
public function jurusjlarjlar_726(){
addFrameScript(0, frame1, 47, frame48, 92, frame93);
}
function frame93(){
gotoAndStop(1);
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame48(){
gotoAndStop(1);
}
}
}//package MechaArenav_fla
Section 117
//MAINMENU_401 (MechaArenav_fla.MAINMENU_401)
package MechaArenav_fla {
import flash.display.*;
public dynamic class MAINMENU_401 extends MovieClip {
public var mcfoot:MovieClip;
public var mc1:MovieClip;
public function MAINMENU_401(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package MechaArenav_fla
Section 118
//MAINMENU_430 (MechaArenav_fla.MAINMENU_430)
package MechaArenav_fla {
import flash.display.*;
public dynamic class MAINMENU_430 extends MovieClip {
public var btnlg:SimpleButton;
public function MAINMENU_430(){
addFrameScript(0, frame1, 1, frame2, 8, frame9);
}
function frame1(){
stop();
this.visible = false;
}
function frame9(){
stop();
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 119
//MainTimeline (MechaArenav_fla.MainTimeline)
package MechaArenav_fla {
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var head10unlock;
public var kurangertime;
public var efektifbool;
public var arm19effect;
public var soundberhasil:Sound;
public var chipset8price;
public var poisoncountdown;
public var gradetemp;
public var legclass;
public var leg5effect;
public var leg18unlock;
public var partske;
public var soundwintraining:Sound;
public var speedgain;
public var btnlink:SimpleButton;
public var head7unlock;
public var arm7unlock;
public var armpart;
public var i;
public var j;
public var armprice;
public var linkagenamereal;
public var mcanimasi:MovieClip;
public var leg10effect;
public var arm10unlock;
public var firsttimechipset;
public var mcnofire:MovieClip;
public var drgonke;
public var linkageeffect;
public var leg8numba;
public var mcblackenrepair:MovieClip;
public var playerenergy;
public var mcdeletesavegame:MovieClip;
public var mcteamlogochoose:MovieClip;
public var chipset10unlock;
public var leechlv;
public var mcsponsor:MovieClip;
public var mechaskill;
public var playerdahdown;
public var leg15numba;
public var head12effect;
public var hand2max;
public var chipset7unlock;
public var lengthiteminventoryclick;
public var leg20numba;
public var trainattackhealth;
public var enemymechabuffnegative;
public var mcshopexplanation:MovieClip;
public var defensetime;
public var armskillframe;
public var btnpause:SimpleButton;
public var tahaptungguprep;
public var soundindex;
public var head9effect;
public var leg6unlock;
public var arm9effect;
public var robotused;
public var itemsummary;
public var musuhspd;
public var arm12effect;
public var headtipetext;
public var firsttimetournamenttext;
public var targetplayerwidth;
public var objarraylistsummaryeffect;
public var mccountdown:MovieClip;
public var soundrepair:Sound;
public var tutortext;
public var tutorialbeli;
public var skillmanual;
public var leg11unlock;
public var mcboundright:MovieClip;
public var soundpenontontime;
public var firstimebool;
public var enemymecha;
public var gradeforfreematch;
public var jedaermusutemp;
public var dashbool;
public var mchit1:MovieClip;
public var mchit2:MovieClip;
public var mchit3:MovieClip;
public var mchit4:MovieClip;
public var mchit5:MovieClip;
public var variables2:URLVariables;
public var mysteriouske;
public var mcmousemini:MovieClip;
public var armtipetext;
public var chipset9effect;
public var soundclash:Sound;
public var elemenygdiserang;
public var head13unlock;
public var soundpenontontimetemp;
public var mcmaplocator:MovieClip;
public var headpart;
public var sudahcharge;
public var mcachievementbg:MovieClip;
public var objarraylistname;
public var chipsettipetext;
public var skillclickframe;
public var leg8effect;
public var mcfinishtrain:MovieClip;
public var soundelectricon:Sound;
public var mcclickable:MovieClip;
public var leg;
public var leg17numba;
public var obj2;
public var wewe;
public var obj3;
public var enemydahdown;
public var mcdeficitwarning:MovieClip;
public var mcneedchipsetgrade:MovieClip;
public var sounddamagepart:Sound;
public var mcenemyeffective:MovieClip;
public var btnendday:SimpleButton;
public var chippart;
public var leg13effect;
public var mccredits:MovieClip;
public var head11numba;
public var indexinventoryselect;
public var listtar;
public var arm11numba;
public var mcturnamenpopup:MovieClip;
public var arm13unlock;
public var penambahanspdrider;
public var mcmoneyadded:MovieClip;
public var skillselecttarget;
public var head2effect;
public var enemyskilltipepartske;
public var effectimage;
public var listarraydipakebuwatcek2;
public var textingreloadtemp;
public var arm2effect;
public var head21effect;
public var btnattackover:MovieClip;
public var buffrealname;
public var loader2:URLLoader;
public var randenemy;
public var soundbattle:Sound;
public var head15effect;
public var arm2numba;
public var urutanattack;
public var mcblinker:MovieClip;
public var invenmax;
public var playermechabuffnegative;
public var defensequantity;
public var mcsponsorexp:MovieClip;
public var arm21effect;
public var chipset2effect;
public var leg9unlock;
public var mecharepairbool;
public var loadingnextday;
public var leg20unlock;
public var arm15effect;
public var sounddataprocess:Sound;
public var blumscalespeed;
public var btnsalary:SimpleButton;
public var mctournamentfee:MovieClip;
public var mcmechanicpanel:MovieClip;
public var mctransisinextdayaasd:MovieClip;
public var head2numba;
public var leg1effect;
public var leg14unlock;
public var soundforcefield:Sound;
public var linkageskillname;
public var leg19numba;
public var head3unlock;
public var mcmechaenemy2:MovieClip;
public var arm3unlock;
public var vulhpke;
public var parentexplanationused;
public var tahapcekling;
public var adacrit;
public var linkagetype;
public var head13numba;
public var arm13numba;
public var head16unlock;
public var mcblastereffect1:MovieClip;
public var mcblastereffect2:MovieClip;
public var playerdownrestored;
public var targetenemywidth;
public var musuhtipe;
public var chipset1price;
public var vulspdke;
public var chipset3unlock;
public var arm4numba;
public var penambahanatkrider;
public var allpartsplus;
public var leg16effect;
public var arm16unlock;
public var mceffectlocator:MovieClip;
public var linkagecost;
public var btnfb:SimpleButton;
public var obstaclehealthcountdown1;
public var head5effect;
public var leg2unlock;
public var arm5effect;
public var timeweek;
public var leg1numba;
public var enemyskilltipeparts;
public var objarraylistsummary;
public var head18effect;
public var skillname;
public var bagiwaktu;
public var head4numba;
public var headskillnumba;
public var soundgerakan2:Sound;
public var buildingused;
public var currkolom;
public var defenseballimage;
public var tournamentlose;
public var playermechaeffectcooldown;
public var expincreasetimetemp;
public var legeffectprogram;
public var doneactivity;
public var chipset;
public var enemyrandskillcost;
public var yaklikskipexp;
public var expgain2;
public var chipset5effect;
public var skilldariparts;
public var cooldowneffect;
public var head15numba;
public var arm15numba;
public var arm18effect;
public var timesecondtemp;
public var achievementtext;
public var armskilleffectpersen;
public var crowdimage;
public var head20numba;
public var mcplayereffect1:MovieClip;
public var mcplayereffect2:MovieClip;
public var mcplayereffect3:MovieClip;
public var mcplayereffect4:MovieClip;
public var mcplayereffect5:MovieClip;
public var mcplayereffect6:MovieClip;
public var arm20numba;
public var shopbeli;
public var leg17unlock;
public var leg4effect;
public var listtxt;
public var chipset3price;
public var musuhhand1stat;
public var head6unlock;
public var musuhatktemp;
public var arm6unlock;
public var trainattacktime;
public var arm6numba;
public var moneygained;
public var mechanicbuysort;
public var defensepopputtime;
public var makswidth;
public var head19unlock;
public var poinsharetemp;
public var objarraylisteffect2;
public var objarraylisteffect3;
public var objarraylisteffect4;
public var textingreload;
public var leg3numba;
public var enddaytext;
public var head11effect;
public var soundchannelrepair:SoundChannel;
public var chipset6unlock;
public var jedaer;
public var adanegativebuff;
public var mcboundleft:MovieClip;
public var head6numba;
public var leg10numba;
public var mechaused;
public var leg19effect;
public var arm19unlock;
public var autoattacksetting;
public var musuhheadstat;
public var firsttimelowhealth;
public var musuhleg2stat;
public var shopinidiequip;
public var objtotext;
public var cekmute;
public var enemymechatargetingauto;
public var head8effect;
public var leg5unlock;
public var arm8effect;
public var armskillnumba;
public var posisimarking;
public var enemydownrestored;
public var head17numba;
public var arm17numba;
public var mctribun3row1:MovieClip;
public var mctribun3row2:MovieClip;
public var mctrainover:MovieClip;
public var mctribun3row4:MovieClip;
public var mctribun3row5:MovieClip;
public var mctribun3row6:MovieClip;
public var mctribun3row7:MovieClip;
public var mctribun3row8:MovieClip;
public var mctribun3row9:MovieClip;
public var mctribun3row3:MovieClip;
public var objarraylistunlock2;
public var objarraylistunlock3;
public var objarraylistunlock4;
public var battlepreend;
public var enemydownbool;
public var arm11effect;
public var mcpause:MovieClip;
public var soundbledar:Sound;
public var leg10unlock;
public var mcmousebattle:MovieClip;
public var chipset5price;
public var soundboo:Sound;
public var defensetimetemp;
public var arm8numba;
public var adaover;
public var chipset8effect;
public var btnyt:SimpleButton;
public var head12unlock;
public var timelimitslevel2;
public var mcblacker:MovieClip;
public var leg1max;
public var penambahandefrider;
public var mcdialogbox:MovieClip;
public var yagantihari;
public var vulstabil;
public var expincreasetime;
public var leg7effect;
public var leg5numba;
public var mcui3:MovieClip;
public var mcui4:MovieClip;
public var mcui5:MovieClip;
public var mcautoattack:MovieClip;
public var mcui2:MovieClip;
public var listtartxt;
public var omaxke;
public var timewarp;
public var soundchannelongarage:SoundChannel;
public var head9unlock;
public var loadingtimetoday;
public var arm9unlock;
public var txteffectivetext:TextField;
public var enemyrandskill;
public var btnokauto:SimpleButton;
public var pausegame;
public var head8numba;
public var leg12numba;
public var leg12effect;
public var arm12unlock;
public var mctribun1row1:MovieClip;
public var mctribun1row2:MovieClip;
public var mctribun1row3:MovieClip;
public var mctribun1row4:MovieClip;
public var mctribun1row5:MovieClip;
public var arraylistpemenangdipake;
public var poinshare;
public var autoattackimage;
public var textingphase;
public var arm1effect;
public var enemymechapassivenumba;
public var head1effect;
public var head20effect;
public var negativebuffchance;
public var head19numba;
public var arm19numba;
public var sponsorreq;
public var tembaksebanyak;
public var armskilleffect;
public var volumemusic;
public var head14effect;
public var adaconvert;
public var mcgameover:MovieClip;
public var trainattackresult1;
public var legtipetext;
public var mcskipday:MovieClip;
public var texttulis;
public var mctransition:MovieClip;
public var trainattackresult2;
public var linkagetipe;
public var exptemp;
public var chipset9unlock;
public var adaheal;
public var chipset7price;
public var tutorialequip;
public var mcachieve1:MovieClip;
public var mcachieve2:MovieClip;
public var mcachieve3:MovieClip;
public var mcachieve4:MovieClip;
public var mcachieve5:MovieClip;
public var mcachieve6:MovieClip;
public var mcachieve7:MovieClip;
public var mcachieve8:MovieClip;
public var mcachieve9:MovieClip;
public var headclass;
public var musuhdef;
public var arm20effect;
public var chipset1effect;
public var leg8unlock;
public var tempraiderexp;
public var raidergradepercent;
public var playermechabuffnegativecountdown;
public var mechaskilltipeparts;
public var downcountdown;
public var arm14effect;
public var btncancel:SimpleButton;
public var textingtextindex;
public var mcseraprize:MovieClip;
public var targetmark;
public var mcuibattle:MovieClip;
public var leg13unlock;
public var nomechanicfire;
public var leg7numba;
public var mcmap:mapimage;
public var sounddestroy:Sound;
public var legprice;
public var soundsuccess:Sound;
public var head2unlock;
public var arm2unlock;
public var head21unlock;
public var timewarptemp;
public var timetorepairing;
public var leg14numba;
public var ontelke;
public var head15unlock;
public var indexselect;
public var tournamentbool;
public var mcspeedtimelimits:MovieClip;
public var skillnodariparts;
public var playerdownbool;
public var headskill;
public var enemymechaeffectcooldown;
public var tempraiderexpmax;
public var armclass;
public var musuhspdtemp;
public var leg21effect;
public var arm21unlock;
public var soundrocket:Sound;
public var speedgain2;
public var chipset2unlock;
public var listsotxt;
public var mcskillexplanation:MovieClip;
public var enemymechabuffnegativetimes;
public var leg15effect;
public var arm15unlock;
public var chipset9price;
public var objarraylistsummaryprice;
public var itungehpplayer;
public var winbool;
public var btnbackmainmenu:SimpleButton;
public var head4effect;
public var obstaclehealthcountdown;
public var leg1unlock;
public var arm4effect;
public var soundonmarket:Sound;
public var sponsortime;
public var objarraylisteffect;
public var indexdelete;
public var mechastatarray;
public var texteffect;
public var namaaseli;
public var head17effect;
public var armskilldamage;
public var adapoison;
public var namerand;
public var mccountdownresult:MovieClip;
public var perlambatanmechanicexp;
public var leg9numba;
public var soundrapid:Sound;
public var chipset4effect;
public var leg16numba;
public var armskill;
public var mclogolg:MovieClip;
public var timelimitslevel;
public var timesecond;
public var effectbattle;
public var currbaris;
public var arm17effect;
public var leg21numba;
public var timetorepairingweek;
public var enemymechabuffnegativecountdown;
public var arm10numba;
public var head10numba;
public var leg3effect;
public var leg16unlock;
public var txtdayrepair:TextField;
public var norobotfostatistic;
public var mcmecha1:MovieClip;
public var mcmecha2:MovieClip;
public var head5unlock;
public var mcnextmatch:MovieClip;
public var arm5unlock;
public var vampireke;
public var textdamagepercent;
public var soundchanneldatacrunch:SoundChannel;
public var defensesuccess;
public var head18unlock;
public var arm1numba;
public var defenselimit1;
public var defenselimit2;
public var standartspeedx;
public var standartspeedy;
public var soundtotaldestroyed:Sound;
public var defensequantityballtemp;
public var damagemasuk;
public var mcexittournamentsure:MovieClip;
public var listpricechip;
public var volumemainmusic;
public var enemymechapassive;
public var nosponsor;
public var achievementname;
public var mcreport:MovieClip;
public var vulattke;
public var head10effect;
public var mcbounddown:MovieClip;
public var obstaclelevel;
public var arm;
public var leechpersentase;
public var chipset5unlock;
public var mcefektifdisplay:MovieClip;
public var damagemultiplier;
public var leg18effect;
public var arm18unlock;
public var sponsortextvalue;
public var head1numba;
public var head7effect;
public var leg4unlock;
public var arm7effect;
public var leg18numba;
public var mcturnamenlastchance:MovieClip;
public var vuldefke;
public var namesummary;
public var tutortext10;
public var tutortext11;
public var tutortext12;
public var tutortext13;
public var tutortext14;
public var tutortext15;
public var arm10effect;
public var tutortext16;
public var soundhurray:Sound;
public var mcpauseautoattack:MovieClip;
public var mcsponsorsure:MovieClip;
public var textdamage;
public var head12numba;
public var indexitem;
public var partsyangdiserang;
public var arm12numba;
public var linkageloop;
public var mcnolist:MovieClip;
public var armeffectprogram;
public var shopitem;
public var chipset10effect;
public var defensepopoutmultiplier;
public var headskilldamage;
public var leg2max;
public var tutortext2;
public var tutortext3;
public var tutortext4;
public var chipset7effect;
public var tutortext6;
public var tutortext8;
public var tutortext9;
public var tutortext5;
public var deficitbool;
public var dashduration;
public var tutortext7;
public var head11unlock;
public var tggload;
public var arm3numba;
public var linkageeffectchance;
public var cektournamentfee;
public var animasiwin;
public var defensequantityball;
public var mcachieve10:MovieClip;
public var mcachieve11:MovieClip;
public var mcachieve13:MovieClip;
public var mcachieve14:MovieClip;
public var mcachieve15:MovieClip;
public var mcachieve16:MovieClip;
public var mcachieve17:MovieClip;
public var mcachieve18:MovieClip;
public var mcachieve19:MovieClip;
public var playermechabuffnegativetimes;
public var mcachieve12:MovieClip;
public var mcachieve20:MovieClip;
public var mcachieve21:MovieClip;
public var mcachieve22:MovieClip;
public var mcachieve23:MovieClip;
public var mcachieve24:MovieClip;
public var mcachieve25:MovieClip;
public var leg6effect;
public var itemkeshopbuy;
public var customContextMenu:ContextMenu;
public var leg19unlock;
public var mcbattleexplanation:MovieClip;
public var contextmenu;
public var headmax;
public var cekplayercost;
public var head8unlock;
public var soundonlab:Sound;
public var arm8unlock;
public var mcdebugger:MovieClip;
public var leg11effect;
public var arm11unlock;
public var txt1:TextField;
public var sponsorlogo;
public var head3numba;
public var textingstep;
public var soundspeedclick:Sound;
public var dashdurationtemp;
public var cekdeadtarget;
public var mcuimechastatus:MovieClip;
public var enemyenergy;
public var head14numba;
public var arm14numba;
public var head13effect;
public var chipset8unlock;
public var mcmecha:MovieClip;
public var mcfiremechanic:MovieClip;
public var tujuanframe;
public var mcbg:MovieClip;
public var itungehpenemy;
public var playerattack;
public var enemymechabuffnegativeparts;
public var leg7unlock;
public var chipset2price;
public var hand1max;
public var musuhstatsummary;
public var arm5numba;
public var arm13effect;
public var winnertemp;
public var soundlaser1:Sound;
public var soundlaser2:Sound;
public var soundlaser3:Sound;
public var soundlaser4:Sound;
public var soundlaser5:Sound;
public var musuhhand2stat;
public var fushResult:Object;
public var objarraylisttext;
public var leg12unlock;
public var autoattack;
public var mcsalarysummary:MovieClip;
public var mcskillsummary:MovieClip;
public var mcenemyeffect1:MovieClip;
public var mcenemyeffect2:MovieClip;
public var mcenemyeffect3:MovieClip;
public var mcenemyeffect4:MovieClip;
public var mcenemyeffect5:MovieClip;
public var mcenemyeffect6:MovieClip;
public var mcindicatorhealth:MovieClip;
public var mctrainresult:MovieClip;
public var btnmutemusic:SimpleButton;
public var playerloseleg;
public var arm1unlock;
public var sounddestroyedpart:Sound;
public var mcnomechanicwarning:MovieClip;
public var head20unlock;
public var head1unlock;
public var gradenumba;
public var leg2numba;
public var soundgarage:Sound;
public var obj;
public var enemymechabuffnegativelevel;
public var listparts;
public var defensepopoutspeed;
public var head14unlock;
public var mcachievementwindow:MovieClip;
public var head5numba;
public var hasiltraining;
public var battleend;
public var musuhhp;
public var jedaermusu;
public var chipset10price;
public var leg9effect;
public var healcountdown;
public var ridertemp;
public var persentambahmusu;
public var mcgameend:MovieClip;
public var leg20effect;
public var arm20unlock;
public var chipset1unlock;
public var arm16numba;
public var head16numba;
public var linkagesound;
public var mctpgained:MovieClip;
public var jumcrowd;
public var listarraydipakebuwatcek;
public var leg14effect;
public var arm14unlock;
public var mctribun4row1:MovieClip;
public var mctribun4row3:MovieClip;
public var mctribun4row4:MovieClip;
public var mctribun4row5:MovieClip;
public var arm21numba;
public var mcshop:MovieClip;
public var leveltemp;
public var bolerepair;
public var mctribun4row2:MovieClip;
public var soundchannel1:SoundChannel;
public var head21numba;
public var head3effect;
public var jedaphase;
public var arm3effect;
public var chipset4price;
public var mctpadded:MovieClip;
public var obstaclehealth;
public var objarraylistso;
public var soundbeep:Sound;
public var soundgabisaclick:Sound;
public var arm7numba;
public var tipeitemshop;
public var head16effect;
public var soundclick:Sound;
public var head;
public var shoppricenow;
public var mechastatarraynumba;
public var sponsormoney;
public var tipekudiover;
public var headeffectprogram;
public var musuhhptemp;
public var mcbattlehelp:MovieClip;
public var listarraydipakebuwatcek2hp;
public var leg4numba;
public var mcmainmenu:MovieClip;
public var chipset3effect;
public var yareport;
public var musuhatk;
public var mcboundup:MovieClip;
public var head7numba;
public var enemyloseleg;
public var arm16effect;
public var musuhleg1stat;
public var leg11numba;
public var battlekoobject;
public var so:SharedObject;
public var leg21unlock;
public var leg2effect;
public var leg15unlock;
public var skillrealname;
public var mctribun2row1:MovieClip;
public var mctribun2row2:MovieClip;
public var mctribun2row3:MovieClip;
public var mctribun2row4:MovieClip;
public var mctribun2row5:MovieClip;
public var mctribun2row6:MovieClip;
public var mctribun2row8:MovieClip;
public var soundmiss:Sound;
public var mctribun2row7:MovieClip;
public var head4unlock;
public var slotselected;
public var arm4unlock;
public var head18numba;
public var arm18numba;
public var objarraylistunlock;
public var mcui:MovieClip;
public var loadingtimetodaytemp;
public var battleanimationbool;
public var mcchampionship:MovieClip;
public var mctransisinextday:MovieClip;
public var mcbar:MovieClip;
public var stuncountdown;
public var soundintro:Sound;
public var head17unlock;
public var chipset6price;
public var playermechabuffnegativeparts;
public var jedaertemp;
public var chipseteffectprogram;
public var mcbattleprize:MovieClip;
public var arm9numba;
public var costtp;
public var legpart;
public var indexhelp;
public var critmultiplier;
public var expgain;
public var chipset4unlock;
public var tpbonus;
public var soundelectric:Sound;
public var mcskillexplanation2:MovieClip;
public var leg17effect;
public var arm17unlock;
public var penambahanhprider;
public var listarraydipakebuwatcekhp;
public var enemyskillno;
public var leg6numba;
public var ptgained;
public var head6effect;
public var leg3unlock;
public var arm6effect;
public var headprice;
public var bufflist;
public var listso;
public var mcsplash:MovieClip;
public var request2:URLRequest;
public var mcskillname:MovieClip;
public var head9numba;
public var mcplayereffective:MovieClip;
public var leg13numba;
public var head19effect;
public var mcridershop:MovieClip;
public var headskillframe;
public var btnhelp:SimpleButton;
public var adacounter;
public var elemenserangan;
public var timeweektemp;
public var txtrepairpercent:TextField;
public var playermechabuffnegativelevel;
public var enemyskill;
public var soundongarage:Sound;
public var mcdefensebar:MovieClip;
public var chipset6effect;
public var musuhdeftemp;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 12, frame13);
}
public function donephase2(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
_local1 = 1;
while (_local1 <= 8) {
_local2 = mcchampionship.getChildByName(("mclogo" + int(_local1)));
if (arraylistpemenangdipake[_local1] == 1){
_local3 = 1;
while (_local3 <= 4) {
_local4 = mcchampionship.getChildByName(("mclocatortemp" + int(_local3)));
trace(("apakah nabrak : " + _local2.mchit.hitTestObject(_local4)));
if (_local2.mchit.hitTestObject(_local4) == true){
_local2.x = _local4.x;
_local2.y = _local4.y;
};
_local3++;
};
};
_local1++;
};
if (so.data.championshipcountdownbool[slotselected] == false){
so.data.championshipcountdownbool[slotselected] = true;
mcturnamenpopup.visible = true;
};
stage.removeEventListener(Event.ENTER_FRAME, naikpemenang);
animasiwin = false;
mcchampionship.btnokno.visible = false;
}
public function donephase3(){
if (so.data.championshipcountdownbool[slotselected] == false){
so.data.championshipcountdownbool[slotselected] = true;
mcturnamenpopup.visible = true;
};
stage.removeEventListener(Event.ENTER_FRAME, naikpemenang);
animasiwin = false;
mcchampionship.btnokno.visible = false;
}
public function donephase4(){
if (so.data.championshipcountdownbool[slotselected] == false){
so.data.championshipcountdownbool[slotselected] = true;
mcturnamenpopup.visible = true;
};
stage.removeEventListener(Event.ENTER_FRAME, naikpemenang);
animasiwin = false;
mcchampionship.btnokno.visible = false;
}
public function cekmechanegativeeffect(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:String){
var _local6:*;
var _local7:*;
_local6 = 0;
while (_local6 < _arg1.length) {
trace(("list yg dimiliki : " + _arg1));
if (_arg1[_local6] == "convert"){
adaconvert = (damagemasuk * (_arg2[_local6] / 100));
adaconvert = (adaconvert * -1);
trace(("ADA CONVERT : " + adaconvert));
} else {
_local7 = randRange(0, 100);
if (_local7 <= _arg2[_local6]){
if (_arg1[_local6] == "crit"){
adacrit = (adacrit + (damagemasuk * critmultiplier));
trace(("YA CRIT " + adacrit));
} else {
if (_arg1[_local6] == "crit body"){
if (skilldariparts == 1){
adacrit = (adacrit + (damagemasuk * critmultiplier));
trace("YA CRIT BODY");
};
} else {
if (_arg1[_local6] == "stun"){
trace("YA STUN");
if (_arg5 == "player"){
adanegativebuff = "stun";
isiinibuff(adanegativebuff, enemymechabuffnegativeparts, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes);
} else {
if (_arg5 == "enemy"){
adanegativebuff = "stun";
isiinibuff(adanegativebuff, playermechabuffnegativeparts, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes);
};
};
} else {
if (_arg1[_local6] == "player"){
trace("YA SLOW");
if (_arg5 == "player"){
adanegativebuff = "spddown";
isiinibuff("spddown", enemymechabuffnegativeparts, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes);
} else {
if (_arg5 == "enemy"){
adanegativebuff = "spddown";
isiinibuff(adanegativebuff, playermechabuffnegativeparts, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes);
};
};
} else {
if (_arg1[_local6] == "deplete"){
if (_arg5 == "player"){
trace("YA DEPLETE ENEMY");
enemyenergy = 0;
mcuibattle.mcenemybar.mcenergynumba.mc1.txt1.text = 0;
mcuibattle.mcenemybar.kurangiphase = 1;
mcuibattle.mcenemybar.statenergy = -(enemyenergy);
mcuibattle.mcenemybar.targetwidth = 1;
} else {
if (_arg5 == "enemy"){
trace("YA DEPLETE PLAYER");
playerenergy = 0;
mcuibattle.mcplayerbar.mcenergynumba.mc1.txt1.text = 0;
mcuibattle.mcplayerbar.kurangiphase = 1;
mcuibattle.mcplayerbar.statenergy = -(playerenergy);
mcuibattle.mcplayerbar.targetwidth = 1;
};
};
};
};
};
};
};
};
};
_local6++;
};
}
public function donephase5(){
var _local1:*;
trace("PHASE 5");
if (tournamentlose == true){
trace("PHASE 5 LOSE");
mcchampionship.mcwinnersummary.mc1.mcmecha1.mcprogress.visible = false;
_local1 = so.data.grade[slotselected];
trace(("0 " + _local1));
if (_local1 < 5){
_local1++;
};
trace(((((("00 " + _local1) + " ") + randenemy) + " ") + itemsummary[_local1]));
trace(("gradenya : " + so.data.grade[slotselected]));
if (so.data.grade[slotselected] == 5){
if (mcchampionship.mcwinnersummary.mc1.mcmecha1.mchead != null){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchead.mc1.gotoAndStop(itemsummary[6][1][0]);
};
trace("1");
if (itemsummary[_local1][randenemy][1] != 0){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand1.mc1.gotoAndStop(itemsummary[6][1][1]);
} else {
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand1.visible = false;
};
trace("2");
if (itemsummary[_local1][randenemy][2] != 0){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand2.mc1.gotoAndStop(itemsummary[6][1][2]);
} else {
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand2.visible = false;
};
mcchampionship.mcwinnersummary.mc1.mcmecha1.mcleg1.mc1.gotoAndStop(itemsummary[6][1][3]);
mcchampionship.mcwinnersummary.mc1.mcmecha1.mcleg2.mc1.gotoAndStop(itemsummary[6][1][4]);
} else {
if (mcchampionship.mcwinnersummary.mc1.mcmecha1.mchead != null){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchead.mc1.gotoAndStop(itemsummary[_local1][randenemy][0]);
};
trace("1");
if (itemsummary[_local1][randenemy][1] != 0){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand1.mc1.gotoAndStop(itemsummary[_local1][randenemy][1]);
} else {
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand1.visible = false;
};
trace("2");
if (itemsummary[_local1][randenemy][2] != 0){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand2.mc1.gotoAndStop(itemsummary[_local1][randenemy][2]);
} else {
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand2.visible = false;
};
mcchampionship.mcwinnersummary.mc1.mcmecha1.mcleg1.mc1.gotoAndStop(itemsummary[_local1][randenemy][3]);
mcchampionship.mcwinnersummary.mc1.mcmecha1.mcleg2.mc1.gotoAndStop(itemsummary[_local1][randenemy][4]);
};
trace("3");
trace("4");
mcchampionship.mcwinnersummary.mc1.mcmecha1.visible = true;
mcchampionship.mcwinnersummary.gotoAndPlay(2);
trace("5");
arraylistpemenangdipake = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
so.data.championshipphase[slotselected] = 6;
} else {
if (tournamentlose == false){
trace("PHASE 5 WIN");
soundwintraining.play(0, 1, new SoundTransform(volumemusic));
mcchampionship.mcwinnersummary.mc1.mcmecha1.mcprogress.visible = false;
if (mcchampionship.mcwinnersummary.mc1.mcmecha1.mchead != null){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchead.mc1.gotoAndStop(so.data.charmechahead[slotselected][robotused]);
};
if (mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand1 != null){
if (so.data.charmechahand1[slotselected][robotused] == 0){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand1.visible = false;
} else {
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand1.visible = true;
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand1.mc1.gotoAndStop(so.data.charmechahand1[slotselected][robotused]);
};
};
if (mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand2 != null){
if (so.data.charmechahand2[slotselected][robotused] == 0){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand2.visible = false;
} else {
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand2.visible = true;
mcchampionship.mcwinnersummary.mc1.mcmecha1.mchand2.mc1.gotoAndStop(so.data.charmechahand2[slotselected][robotused]);
};
};
if (mcchampionship.mcwinnersummary.mc1.mcmecha1.mcleg1 != null){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mcleg1.mc1.gotoAndStop(so.data.charmechaleg1[slotselected][robotused]);
};
if (mcchampionship.mcwinnersummary.mc1.mcmecha1.mcleg2 != null){
mcchampionship.mcwinnersummary.mc1.mcmecha1.mcleg2.mc1.gotoAndStop(so.data.charmechaleg2[slotselected][robotused]);
};
mcchampionship.mcwinnersummary.mc1.mcmecha1.visible = true;
mcchampionship.mcwinnersummary.gotoAndPlay(2);
arraylistpemenangdipake = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
so.data.championshipphase[slotselected] = 6;
};
};
}
public function tambaidefrealmecha(_arg1:int, _arg2:int){
so.data.charmechaheaddefreal[slotselected][_arg2] = (so.data.charmechaheaddefreal[slotselected][_arg2] + _arg1);
if (so.data.charmechahand1[slotselected][_arg2] != 0){
so.data.charmechahand1defreal[slotselected][_arg2] = (so.data.charmechahand1defreal[slotselected][_arg2] + _arg1);
};
if (so.data.charmechahand2[slotselected][_arg2] != 0){
so.data.charmechahand2defreal[slotselected][_arg2] = (so.data.charmechahand2defreal[slotselected][_arg2] + _arg1);
};
so.data.charmechaleg1defreal[slotselected][_arg2] = (so.data.charmechaleg1defreal[slotselected][_arg2] + _arg1);
so.data.charmechaleg2defreal[slotselected][_arg2] = (so.data.charmechaleg2defreal[slotselected][_arg2] + _arg1);
}
public function tambaihpberdasarkanpersentase(_arg1:Number, _arg2:int){
so.data.charmechaheadhpreal[slotselected][_arg2] = (so.data.charmechaheadhpreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaheadhpreal[slotselected][_arg2])));
if (so.data.charmechahand1[slotselected][_arg2] != 0){
so.data.charmechahand1hpreal[slotselected][_arg2] = (so.data.charmechahand1hpreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechahand1hpreal[slotselected][_arg2])));
};
if (so.data.charmechahand2[slotselected][_arg2] != 0){
so.data.charmechahand2hpreal[slotselected][_arg2] = (so.data.charmechahand2hpreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechahand2hpreal[slotselected][_arg2])));
};
so.data.charmechaleg1hpreal[slotselected][_arg2] = (so.data.charmechaleg1hpreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaleg1hpreal[slotselected][_arg2])));
so.data.charmechaleg2hpreal[slotselected][_arg2] = (so.data.charmechaleg2hpreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaleg2hpreal[slotselected][_arg2])));
}
public function createshopitemchild(_arg1:int, _arg2:int):void{
var _local3:Point;
trace(((("XE : " + _arg1) + " I : ") + _arg2));
if (mcshop.visible == true){
shopitem[shopitem.length] = new (shopitemimagereal);
shopitem[(shopitem.length - 1)].x = (currkolom * 135.9);
shopitem[(shopitem.length - 1)].y = (99.3 + ((currbaris - 1) * 13));
_local3 = new Point(208.8, 163);
_local3 = shopitem[(shopitem.length - 1)].globalToLocal(_local3);
shopitem[(shopitem.length - 1)].mcmasker.x = _local3.x;
shopitem[(shopitem.length - 1)].mcmasker.y = _local3.y;
shopitem[(shopitem.length - 1)].mcmasker2.x = _local3.x;
shopitem[(shopitem.length - 1)].mcmasker2.y = _local3.y;
} else {
if (mcshop.visible == false){
shopitem[shopitem.length] = new (shopitemimage);
shopitem[(shopitem.length - 1)].x = ((currkolom * 205.3) - ((currkolom - 1) * 20));
shopitem[(shopitem.length - 1)].y = (204.1 + ((currbaris - 1) * 13));
};
};
addChildAt(shopitem[(shopitem.length - 1)], getChildIndex(mcshopexplanation));
shopitem[(shopitem.length - 1)].buttonMode = true;
shopitem[(shopitem.length - 1)].tipe = _arg1;
shopitem[(shopitem.length - 1)].itemke = _arg2;
trace(((("item ini tipe : " + shopitem[(shopitem.length - 1)].tipe) + " itemke : ") + shopitem[(shopitem.length - 1)].itemke));
shopitem[(shopitem.length - 1)].indexke = (shopitem.length - 1);
shopitem[(shopitem.length - 1)].addEventListener(MouseEvent.MOUSE_OVER, shopitemover);
shopitem[(shopitem.length - 1)].addEventListener(MouseEvent.CLICK, shopitemclick);
currbaris++;
if (mcshop.visible == false){
if (currbaris > 20){
currbaris = 1;
currkolom++;
};
};
if (indexitem != 1){
shopitem[(shopitem.length - 1)].txt1.text = (objarraylistname[indexitem][_arg1] + " V1");
} else {
if (indexitem == 1){
if (_arg1 == 1){
shopitem[(shopitem.length - 1)].txt1.text = objarraylistname[indexitem][_arg1];
ontelke++;
} else {
if (_arg1 == 2){
shopitem[(shopitem.length - 1)].txt1.text = objarraylistname[indexitem][_arg1];
omaxke++;
} else {
if (_arg1 == 3){
shopitem[(shopitem.length - 1)].txt1.text = objarraylistname[indexitem][_arg1];
vulhpke++;
} else {
if (_arg1 == 4){
shopitem[(shopitem.length - 1)].txt1.text = objarraylistname[indexitem][_arg1];
vuldefke++;
} else {
if (_arg1 == 5){
shopitem[(shopitem.length - 1)].txt1.text = objarraylistname[indexitem][_arg1];
vulattke++;
} else {
if (_arg1 == 6){
shopitem[(shopitem.length - 1)].txt1.text = objarraylistname[indexitem][_arg1];
vulspdke++;
} else {
if (_arg1 == 7){
shopitem[(shopitem.length - 1)].txt1.text = objarraylistname[indexitem][_arg1];
vulstabil++;
} else {
if (_arg1 == 8){
shopitem[(shopitem.length - 1)].txt1.text = objarraylistname[indexitem][_arg1];
drgonke++;
} else {
if (_arg1 == 9){
shopitem[(shopitem.length - 1)].txt1.text = objarraylistname[indexitem][_arg1];
vampireke++;
} else {
if (_arg1 == 10){
shopitem[(shopitem.length - 1)].txt1.text = objarraylistname[indexitem][_arg1];
mysteriouske++;
};
};
};
};
};
};
};
};
};
};
if (mcshop.visible == false){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + _arg2));
} else {
if (mcshop.visible == true){
if (shopbeli == false){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + _arg2));
} else {
if (shopbeli == true){
if (_arg1 == 1){
trace(("ini ontel ke : " + ontelke));
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + ontelke));
} else {
if (_arg1 == 2){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + omaxke));
} else {
if (_arg1 == 3){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + vulhpke));
} else {
if (_arg1 == 4){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + vuldefke));
} else {
if (_arg1 == 5){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + vulattke));
} else {
if (_arg1 == 6){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + vulspdke));
} else {
if (_arg1 == 7){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + vulstabil));
} else {
if (_arg1 == 8){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + drgonke));
} else {
if (_arg1 == 9){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + vampireke));
} else {
if (_arg1 == 10){
shopitem[(shopitem.length - 1)].txt1.text = (shopitem[(shopitem.length - 1)].txt1.text + (" V" + mysteriouske));
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function buwatseranganmusu2(){
var _local1:*;
mechaused.chargebool = false;
enemymecha.chargebool = false;
playerattack = false;
trace(((("enemy rand skill : " + enemyrandskill) + " hasile : ") + enemyskilltipeparts[enemyrandskill]));
if (enemyskilltipeparts[enemyrandskill] == 1){
trace("pake kepaya");
cekheaddlldll(itemsummary[so.data.grade[slotselected]][musuhtipe][0], musuhatk);
enemymecha.chargebool = true;
enemymecha.chargeboolphase = 1;
enemymecha.statx = enemymecha.x;
enemymecha.staty = enemymecha.y;
elemenserangan = headclass[itemsummary[so.data.grade[slotselected]][musuhtipe][0]];
cekautoattackefektiftoplayer();
createeffectbattle(headskillnumba[itemsummary[so.data.grade[slotselected]][musuhtipe][0]][0], enemymecha, "head", "enemy");
} else {
if (enemyskilltipeparts[enemyrandskill] == 2){
trace("pake tangan");
cekhanddlldll(itemsummary[so.data.grade[slotselected]][musuhtipe][enemyskilltipepartske[enemyrandskill]], enemyskillno[enemyrandskill], musuhatk);
trace(("pake tangan 2 " + itemsummary[so.data.grade[slotselected]][musuhtipe][0]));
createeffectbattle(armskillnumba[itemsummary[so.data.grade[slotselected]][musuhtipe][enemyskilltipepartske[enemyrandskill]]][enemyskillno[enemyrandskill]], enemymecha, "hand", "enemy");
trace(("frame tangan musu : " + itemsummary[so.data.grade[slotselected]][musuhtipe][enemyskilltipepartske[enemyrandskill]]));
elemenserangan = armclass[itemsummary[so.data.grade[slotselected]][musuhtipe][enemyskilltipepartske[enemyrandskill]]];
enemymecha.gotoAndPlay(("frontshoot" + enemyskilltipepartske[enemyrandskill]));
_local1 = enemymecha.getChildByName(("mchand" + enemyskilltipepartske[enemyrandskill]));
linkagesound[soundindex].play(0, 1, new SoundTransform(volumemusic));
_local1.gotoAndPlay(2);
trace("pake tangan 3");
cekautoattackefektiftoplayer();
};
};
}
public function debuggeroutput(_arg1:String){
mcdebugger.txt1.text = (mcdebugger.txt1.text + ("\n" + _arg1));
}
public function createeffectbattle(_arg1:Object, _arg2:Object, _arg3:String, _arg4:String):void{
var _local5:*;
var _local6:*;
adanegativebuff = "";
sudahcharge = false;
trace(("CREATE EFFECT BATTLE : " + _arg4));
if (_arg4 == "enemy"){
trace("ya bwat skill buwat enemy");
};
tembaksebanyak = 0;
trace(("cek " + _arg1));
_local5 = 0;
_local6 = 0;
while (_local6 < linkagetipe.length) {
trace(("ya sama : " + _local6));
if (_arg1 == linkagetipe[_local6]){
if ((((_arg1 == blastershot)) || ((_arg1 == doombringerblast)))){
if (_arg4 == "enemy"){
mcblastereffect1.gotoAndPlay("enemy");
mcblastereffect2.gotoAndPlay("enemy");
} else {
mcblastereffect1.gotoAndPlay("player");
mcblastereffect2.gotoAndPlay("player");
};
};
skillrealname = linkageskillname[_local6];
soundindex = _local6;
_local5 = _local6;
if (linkageeffect[_local6] != undefined){
adanegativebuff = linkageeffect[_local6];
trace(("ya ada buff : " + adanegativebuff));
negativebuffchance = linkageeffectchance[_local6];
if (linkagenamereal[_local6] != undefined){
buffrealname = linkagenamereal[_local6];
};
};
tembaksebanyak = linkageloop[_local6];
if (adacounter == false){
if (_arg4 == "hero"){
playerenergy = (playerenergy - linkagecost[_local6]);
if (playerenergy < 0){
playerenergy = 0;
};
mcuibattle.mcplayerbar.mcenergynumba.mc1.txt1.text = playerenergy;
mcuibattle.mcplayerbar.kurangiphase = 1;
mcuibattle.mcplayerbar.statenergy = -(playerenergy);
mcuibattle.mcplayerbar.targetwidth = (mcuibattle.mcplayerbar.mcbarenergy.width - (linkagecost[_local6] * (makswidth / 10)));
if (mcuibattle.mcplayerbar.targetwidth < 0){
mcuibattle.mcplayerbar.targetwidth = 0;
};
mcuibattle.mcplayerbar.mcbarenergy.width = mcuibattle.mcplayerbar.targetwidth;
} else {
if (_arg4 != "hero"){
enemyenergy = (enemyenergy - linkagecost[_local6]);
if (enemyenergy < 0){
enemyenergy = 0;
};
mcuibattle.mcenemybar.mcenergynumba.mc1.txt1.text = enemyenergy;
mcuibattle.mcenemybar.kurangiphase = 1;
mcuibattle.mcenemybar.statenergy = -(enemyenergy);
trace(((("widthe : " + mcuibattle.mcenemybar.mcbarenergy.width) + " dikurangi : ") + linkagecost[_local6]));
trace(("dapete kurangi : " + (linkagecost[_local6] * (makswidth / 10))));
mcuibattle.mcenemybar.targetwidth = (mcuibattle.mcenemybar.mcbarenergy.width - (linkagecost[_local6] * (makswidth / 10)));
if (mcuibattle.mcenemybar.targetwidth < 0){
mcuibattle.mcenemybar.targetwidth = 0;
};
mcuibattle.mcenemybar.mcbarenergy.width = mcuibattle.mcenemybar.targetwidth;
trace(((("musu energy jadi : " + enemyenergy) + " width : ") + mcuibattle.mcenemybar.mcbarenergy.width));
};
};
};
break;
};
_local6++;
};
trace(("tembak sebanyak : " + tembaksebanyak));
trace(("no tembak : " + _local5));
_local6 = 1;
while (_local6 < (tembaksebanyak + 1)) {
effectbattle[effectbattle.length] = new (_arg1);
addChildAt(effectbattle[(effectbattle.length - 1)], getChildIndex(mceffectlocator));
effectbattle[(effectbattle.length - 1)].delaytime = ((_local6 - 1) * 10);
effectbattle[(effectbattle.length - 1)].targetpartsbool = false;
if (_local6 > 1){
effectbattle[(effectbattle.length - 1)].targetpartsbool = true;
effectbattle[(effectbattle.length - 1)].blumnembak = true;
};
effectbattle[(effectbattle.length - 1)].x = _arg2.x;
effectbattle[(effectbattle.length - 1)].y = _arg2.y;
effectbattle[(effectbattle.length - 1)].indexke = (effectbattle.length - 1);
effectbattle[(effectbattle.length - 1)].mouseChildren = false;
effectbattle[(effectbattle.length - 1)].mouseEnabled = false;
effectbattle[(effectbattle.length - 1)].damagemasuk = damagemasuk;
effectbattle[(effectbattle.length - 1)].back = false;
effectbattle[(effectbattle.length - 1)].directione = 1;
effectbattle[(effectbattle.length - 1)].tipe = _arg3;
effectbattle[(effectbattle.length - 1)].tipetemp = _arg3;
effectbattle[(effectbattle.length - 1)].hero = _arg4;
effectbattle[(effectbattle.length - 1)].addEventListener(Event.ENTER_FRAME, effectbattleremove);
if (((((!((_local5 == 22))) && (!((_local5 == 28))))) && (!((_local5 == 29))))){
if ((((((((_local5 == 12)) || ((_local5 == 15)))) || ((_local5 == 19)))) || ((_local5 == 22)))){
if (_arg4 == "hero"){
effectbattle[(effectbattle.length - 1)].scaleX = (effectbattle[(effectbattle.length - 1)].scaleX * -1);
effectbattle[(effectbattle.length - 1)].rotation = -55;
};
} else {
if (_arg4 == "hero"){
effectbattle[(effectbattle.length - 1)].scaleY = (effectbattle[(effectbattle.length - 1)].scaleY * -1);
effectbattle[(effectbattle.length - 1)].scaleX = (effectbattle[(effectbattle.length - 1)].scaleX * -1);
effectbattle[(effectbattle.length - 1)].y = (effectbattle[(effectbattle.length - 1)].y - 20);
};
};
} else {
if (_local5 == 22){
leechlv = 1;
} else {
if (_local5 == 28){
leechlv = 2;
} else {
if (_local5 == 29){
leechlv = 2;
};
};
};
effectbattle[(effectbattle.length - 1)].back = true;
};
if ((((_arg4 == "hero")) && ((_arg3 == "head")))){
mechaused.chargebool = true;
mechaused.chargeboolphase = 1;
mechaused.statx = mechaused.x;
mechaused.staty = mechaused.y;
effectbattle[(effectbattle.length - 1)].x = (effectbattle[(effectbattle.length - 1)].x - 10);
};
_local6++;
};
battleanimationbool = true;
stage.addEventListener(Event.ENTER_FRAME, battleanimation);
}
public function soundmainmenu(_arg1:Event):void{
if (mcmainmenu.currentLabel == "light"){
soundelectricon.play(0, 1, new SoundTransform(volumemusic));
};
if (mcmainmenu.currentLabel == "roboton"){
soundgerakan2.play(0, 1, new SoundTransform(volumemusic));
};
if (mcanimasi.currentLabel == "clash"){
soundclash.play(0, 1, new SoundTransform(volumemusic));
};
if (mcmainmenu.currentLabel == "datacrunch"){
soundchanneldatacrunch = sounddataprocess.play(0, 999, new SoundTransform(volumemusic));
stage.removeEventListener(Event.ENTER_FRAME, soundmainmenu);
mclogolg.gotoAndPlay(2);
};
}
public function autoattackpartsdown(_arg1:MouseEvent):void{
var _local2:ColorTransform;
_arg1.currentTarget.addEventListener(Event.ENTER_FRAME, autoattackfollowmouse);
_local2 = new ColorTransform();
_arg1.currentTarget.transform.colorTransform = _local2;
}
public function cekbufftarget(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Array, _arg6:Array, _arg7:String, _arg8:String, _arg9:int):String{
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local10 = 0;
_local11 = [undefined, "head", "hand1", "hand2", "leg1", "leg2"];
_local12 = 0;
while (_local12 < _arg1.length) {
if (_arg2[_local12] > 0){
_local13 = 0;
while (_local13 < _arg3[_local12].length) {
if (_arg4[_local12][_local13] > 0){
if ((((_arg3[_local12][_local13] == _arg7)) && ((_arg9 == _local12)))){
if (_arg7 == "stun"){
trace(("KETEMU STUN : " + _arg4[_local12][_local13]));
_local10 = _arg4[_local12][_local13];
//unresolved jump
} else {
_local10 = (_arg4[_local12][_local13] * 0.1);
//unresolved jump
};
};
} else {
_arg4[_local12][_local13] = 0;
};
_local13++;
};
};
_local12++;
};
return (_local10);
}
public function fbconnect(_arg1:MouseEvent):void{
var _local2:URLRequest;
soundclick.play(0, 1, new SoundTransform(volumemusic));
_local2 = new URLRequest("http://www.facebook.com/Littlegiantworld");
navigateToURL(_local2);
}
public function sponsorlinkout(_arg1:MouseEvent):void{
var _local2:URLRequest;
if (so.data.sponsorlogo[slotselected] == 7){
_local2 = new URLRequest("http://www.arcadebomb.com");
navigateToURL(_local2);
};
if (so.data.sponsorlogo[slotselected] == 20){
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
};
}
public function loadtrainspeed(){
mcui.mc1.mcblink.gotoAndStop(1);
trace(("LOAD TRAIN SPEED MECHA" + so.data.tutorialstep[slotselected]));
buildingused = mcmap.getChildByName(("mcbuild" + targetmark));
buildingused.mc1.gotoAndStop(so.data.trainspeedlevel[slotselected]);
buildingused.mcflag.mouseChildren = false;
buildingused.mcflag.mouseEnabled = false;
buildingused.mc2.mouseChildren = false;
buildingused.mc2.mouseEnabled = false;
if (so.data.trainspeedlevel[slotselected] == 3){
buildingused.mcflag.gotoAndStop(2);
};
if (so.data.trainspeedlevel[slotselected] >= 2){
buildingused.btndash.visible = true;
buildingused.btndash.addEventListener(MouseEvent.CLICK, trainspeeddash);
} else {
buildingused.btndash.visible = false;
};
mechaused = buildingused.mcmecha1;
mechaused.gotoAndStop("backidle");
if (blumscalespeed == false){
blumscalespeed = true;
mechaused.scaleX = (mechaused.scaleX * -1);
};
mechaused.mouseChildren = false;
mechaused.mouseEnabled = false;
loadtutorspeed();
mcspeedtimelimits.visible = true;
mcspeedtimelimits.txt1.text = "00";
mechaused.addEventListener(Event.ENTER_FRAME, mechaloadstandart);
}
public function createtutortextextra1(){
createtexting();
}
public function createtutortextextra2(){
createtexting();
}
public function isiinibuff(_arg1:String, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Array, _arg6:Array){
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
trace("open buff list");
_local7 = [undefined, "head", "hand1", "hand2", "leg1", "leg2"];
_local8 = false;
_local9 = false;
_local10 = 0;
while (_local10 < _arg2.length) {
if (_arg2[_local10] == _local7[partsyangdiserang]){
_local11 = 0;
while (_local11 < _arg3[_local10].length) {
trace(((("bandingin : " + _arg3[_local10][_local11]) + " ma ") + adanegativebuff));
if (_arg3[_local10][_local11] == adanegativebuff){
if (_arg3[_local10][_local11] == "poison"){
_local9 = true;
var _local12 = _arg4[_local10];
var _local13 = _local11;
var _local14 = (_local12[_local13] + 1);
_local12[_local13] = _local14;
if (_arg4[_local10][_local11] > 3){
_arg4[_local10][_local11] = 3;
};
_arg5[_local10][_local11] = poisoncountdown;
_arg6[_local10][_local11] = 4;
} else {
if ((((((_arg3[_local10][_local11] == "atkdown")) || ((_arg3[_local10][_local11] == "spddown")))) || ((_arg3[_local10][_local11] == "defdown")))){
_local9 = true;
_local12 = _arg4[_local10];
_local13 = _local11;
_local14 = (_local12[_local13] + 1);
_local12[_local13] = _local14;
_arg5[_local10][_local11] = downcountdown;
} else {
if (_arg3[_local10][_local11] == "stun"){
_local9 = true;
_arg4[_local10][_local11] = 1;
_arg5[_local10][_local11] = stuncountdown;
} else {
if ((((((_arg3[_local10][_local11] == "heal1")) || ((_arg3[_local10][_local11] == "heal2")))) || ((_arg3[_local10][_local11] == "heal3")))){
_local9 = true;
if (_arg3[_local10][_local11] == "heal1"){
_arg4[_local10][_local11] = 1;
} else {
if (_arg3[_local10][_local11] == "heal2"){
_arg4[_local10][_local11] = 2;
} else {
if (_arg3[_local10][_local11] == "heal3"){
_arg4[_local10][_local11] = 3;
};
};
};
_arg5[_local10][_local11] = healcountdown;
_arg6[_local10][_local11] = 1E28;
};
};
};
};
trace(((((("KENA BUFF : " + _arg2[_local10]) + " ") + _arg3[_local10][_local11]) + " ") + _arg4[_local10][_local11]));
break;
};
_local11++;
};
};
_local10++;
};
}
public function clickpointdistribute(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
trace("tambai");
if (poinshare > 0){
soundclick.play(0, 1, new SoundTransform(volumemusic));
poinshare--;
if (_local2 == 1){
so.data.raiderhp[slotselected] = (so.data.raiderhp[slotselected] + 10);
} else {
if (_local2 == 2){
so.data.raideratk[slotselected] = (so.data.raideratk[slotselected] + 1);
} else {
if (_local2 == 3){
so.data.raiderdef[slotselected] = (so.data.raiderdef[slotselected] + 1);
} else {
if (_local2 == 4){
so.data.raiderspd[slotselected] = (so.data.raiderspd[slotselected] + 1);
};
};
};
};
mctrainresult.txthp.text = ("HP : " + so.data.raiderhp[slotselected]);
mctrainresult.txtatk.text = ("ATK : " + so.data.raideratk[slotselected]);
mctrainresult.txtdef.text = ("DEF : " + so.data.raiderdef[slotselected]);
mctrainresult.txtspd.text = ("SPD : " + so.data.raiderspd[slotselected]);
mctrainresult.txtavailable.text = ("Available points : " + poinshare);
if (poinshare <= 0){
_local3 = 1;
while (_local3 <= 4) {
_local4 = mctrainresult.getChildByName(("btnplus" + _local3));
_local4.visible = false;
_local3++;
};
mctrainresult.txtavailable.visible = false;
mctrainresult.btnundo.visible = true;
mctrainresult.btnokfalse.visible = false;
};
} else {
if (poinshare <= 0){
_local3 = 1;
while (_local3 <= 4) {
_local4 = mctrainresult.getChildByName(("btnplus" + _local3));
_local4.visible = false;
_local3++;
};
mctrainresult.txtavailable.visible = false;
mctrainresult.btnundo.visible = true;
mctrainresult.btnokfalse.visible = false;
};
};
}
public function createdamagepoint(_arg1:Object, _arg2:int, _arg3:String):void{
var _local4:*;
trace("create dam point");
_local4 = [battledamagepoint, battledamagepoint2, battledamagepoint3, battledamagepoint4, battledamagepoint5];
effectimage[effectimage.length] = new (_local4[randRange(0, (_local4.length - 1))]);
addChild(effectimage[(effectimage.length - 1)]);
effectimage[(effectimage.length - 1)].x = _arg1.x;
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].gotoAndPlay(2);
effectimage[(effectimage.length - 1)].mcpoingained.gotoAndStop(_arg3);
if (_arg2 < 0){
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt1.text = buffrealname;
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt2.text = (_arg2 * -1);
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt3.text = (_arg2 * -1);
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt4.text = "healed";
} else {
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt1.text = buffrealname;
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt2.text = int((_arg2 + adacrit));
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt3.text = int((_arg2 + adacrit));
if (_arg2 <= 0){
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt4.text = "block";
} else {
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt4.text = "damage";
};
};
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].mouseChildren = false;
effectimage[(effectimage.length - 1)].mouseEnabled = false;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
buffrealname = "";
}
public function loadbattle(){
var i:*;
var battlehelp:Function;
var mutemusicbattle:Function;
var pausegambattle:Function;
var ptok:Function;
var prizeok:Function;
var autoclickdisable:Function;
var autoclickenable:Function;
var autook:Function;
var enemypercentage:*;
var obj:*;
var helppage1:Function;
var temp:*;
var maxrusak:*;
battlehelp = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
createhelp();
};
mutemusicbattle = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (volumemusic == 1){
volumemusic = 0;
} else {
volumemusic = 1;
};
soundchannel1.soundTransform = new SoundTransform(volumemusic);
};
pausegambattle = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcbattlehelp.visible = false;
if (pausegame == false){
pausegame = true;
mcpause.visible = true;
} else {
if (pausegame == true){
pausegame = false;
mcpause.visible = false;
};
};
};
ptok = function (_arg1:MouseEvent):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volumemusic));
mctpgained.visible = false;
_local2 = 0;
while (_local2 < crowdimage.length) {
removeChild(crowdimage[_local2]);
crowdimage[_local2] = null;
_local2++;
};
transisi("ingame");
};
prizeok = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcbattleprize.visible = false;
mctpgained.visible = true;
};
autoclickdisable = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
autoattacksetting = false;
autoattack = false;
mcautoattack.btncentang2.visible = false;
closeautoattack();
mcpauseautoattack.visible = false;
btnokauto.visible = false;
};
autoclickenable = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
autoattacksetting = true;
autoattack = true;
mcautoattack.btncentang2.visible = true;
mcnolist.visible = true;
loadautoattack();
mcpauseautoattack.visible = true;
btnokauto.visible = true;
};
autook = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
autoattacksetting = false;
mcpauseautoattack.visible = false;
btnokauto.visible = false;
closeautoattack();
};
mcuibattle.mcplayerbar.mcenergynumba.mc1.txt1.text = "0";
mcuibattle.mcenemybar.mcenergynumba.mc1.txt1.text = "0";
loadpenonton();
createpenontonriuh();
mcplayereffective.visible = false;
mcenemyeffective.visible = false;
buwathelppic();
i = 1;
while (i <= 2) {
helppage1 = function (_arg1:MouseEvent):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volumemusic));
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
indexhelp = _local2;
buwathelppic();
};
obj = mcbattlehelp.getChildByName(("btnpage" + i));
obj.buttonMode = true;
obj.addEventListener(MouseEvent.CLICK, helppage1);
i = (i + 1);
};
soundchannel1 = soundbattle.play(0, 999, new SoundTransform(volumemusic));
btnhelp.addEventListener(MouseEvent.CLICK, battlehelp);
mcbattlehelp.visible = false;
mcskillexplanation2.visible = false;
btnattackover.visible = false;
btnmutemusic.addEventListener(MouseEvent.CLICK, mutemusicbattle);
btnpause.addEventListener(MouseEvent.CLICK, pausegambattle);
mctpgained.visible = false;
mctpgained.btnok.addEventListener(MouseEvent.CLICK, ptok);
mcbattleprize.visible = false;
mcbattleprize.btnok.addEventListener(MouseEvent.CLICK, prizeok);
btncancel.visible = false;
mcpauseautoattack.visible = false;
autoattack = false;
i = 0;
while (i < 5) {
autoattackimage[i] = new (autoattackbar);
addChildAt(autoattackimage[i], getChildIndex(mcautoattack));
autoattackimage[i].x = 186;
autoattackimage[i].y = (128 + (i * 14));
autoattackimage[i].tipeku = int((i + 1));
trace(("diisi : " + autoattackimage[i].tipeku));
i = (i + 1);
};
closeautoattack();
mcautoattack.btncentang2.visible = false;
mcautoattack.btncentang2.addEventListener(MouseEvent.CLICK, autoclickdisable);
mcautoattack.btncentang.addEventListener(MouseEvent.CLICK, autoclickenable);
btnokauto.addEventListener(MouseEvent.CLICK, autook);
i = 0;
while (i < 5) {
autoattackimage[i].buttonMode = true;
autoattackimage[i].statx = autoattackimage[i].x;
autoattackimage[i].staty = autoattackimage[i].y;
autoattackimage[i].addEventListener(MouseEvent.MOUSE_DOWN, autoattackpartsdown);
autoattackimage[i].addEventListener(MouseEvent.MOUSE_UP, autoattackpartsup);
i = (i + 1);
};
mcuibattle.mouseChildren = false;
mcuibattle.mouseEnabled = false;
mcmechaenemy2.visible = false;
mcbattleexplanation.visible = false;
mcblacker.visible = false;
mechaused = mcmecha1;
mechaused.gotoAndPlay("backidle");
mechaused.addEventListener(Event.ENTER_FRAME, mechaloadstandart);
enemymecha = mcmecha2;
enemymecha.mcprogress.visible = false;
enemymecha.mchead.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][0]);
if (itemsummary[so.data.grade[slotselected]][randenemy][1] != 0){
enemymecha.mchand1.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][1]);
} else {
enemymecha.mchand1.visible = false;
};
if (itemsummary[so.data.grade[slotselected]][randenemy][2] != 0){
enemymecha.mchand2.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][2]);
} else {
enemymecha.mchand2.visible = false;
};
enemymecha.mcleg1.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][3]);
enemymecha.mcleg2.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][4]);
enemymecha.addEventListener(Event.ENTER_FRAME, enemymechaloadstandart);
mcbg.mc1.gotoAndStop(so.data.grade[slotselected]);
mcbg.mc2.gotoAndStop(so.data.grade[slotselected]);
if ((((so.data.championshipphase[slotselected] == 5)) && ((so.data.grade[slotselected] < 5)))){
temp = so.data.grade[slotselected];
temp = (temp + 1);
mcbg.mc1.gotoAndStop(temp);
temp = (temp + 1);
mcbg.mc2.gotoAndStop(temp);
};
mcbg.mccamera1.mc1.gotoAndStop(randRange(1, mcbg.mccamera1.mc1.totalFrames));
mcbg.mccamera2.mc1.gotoAndStop(randRange(1, mcbg.mccamera2.mc1.totalFrames));
tetapkanso(robotused);
loadcharstatistic(mcuibattle.mcplayerindicator);
cekavailableskill(listarraydipakebuwatcek, mechaskill, mechaskilltipeparts, true, listarraydipakebuwatcekhp);
trace(("cek sesudah masukin " + mechaskill));
cekavailableskill(listarraydipakebuwatcek2, enemyskill, enemyskilltipeparts, false, listarraydipakebuwatcek2hp);
trace(("cek sesudah masukin 2 " + enemyskill));
mcuibattle.mcplayerbar.mcraider1.mc1.gotoAndStop(so.data.raider[slotselected]);
mcuibattle.mcenemybar.mcraider1.mc1.gotoAndStop(randRange(0, (namerand.length - 1)));
enemypercentage = 0;
if (so.data.tutorialcomplete[slotselected] == false){
enemypercentage = 0.2;
musuhstatsummary[0] = enemypercentage;
musuhstatsummary[1] = 0;
musuhstatsummary[2] = 0;
musuhstatsummary[3] = enemypercentage;
musuhstatsummary[4] = enemypercentage;
} else {
if (so.data.firstbattle[slotselected] == false){
enemypercentage = 0.5;
so.data.firstbattle[slotselected] = true;
musuhstatsummary[0] = enemypercentage;
musuhstatsummary[1] = enemypercentage;
musuhstatsummary[2] = enemypercentage;
musuhstatsummary[3] = enemypercentage;
musuhstatsummary[4] = enemypercentage;
} else {
maxrusak = [undefined, 70, 80, 90, 100, 100, 100];
enemypercentage = randRange(maxrusak[so.data.grade[slotselected]], 100);
enemypercentage = (enemypercentage / 100);
musuhstatsummary[0] = enemypercentage;
musuhstatsummary[1] = enemypercentage;
musuhstatsummary[2] = enemypercentage;
musuhstatsummary[3] = enemypercentage;
musuhstatsummary[4] = enemypercentage;
};
};
trace(("enemy persentase : " + enemypercentage));
tetapkanso2();
loadcharstatistic(mcuibattle.mcenemyindicator);
cekstattotal(robotused);
cekstatnow(robotused);
targetplayerwidth = (int(((so.data.mechahptemp[slotselected][robotused] / so.data.mechahp[slotselected][robotused]) * 184)) / 58);
targetenemywidth = ((enemypercentage * 184) / 58);
mcuibattle.mcplayerbar.statenergy = 0;
mcuibattle.mcplayerbar.targetwidth = -1;
mcuibattle.mcenemybar.statenergy = 0;
mcuibattle.mcenemybar.targetwidth = -1;
tentuinskillmusupakemana();
cekstatsummarymusu();
mcuibattle.mcplayerbar.txthp.visible = false;
mcuibattle.mcenemybar.txthp.visible = false;
tahaptungguprep = 1;
mcuibattle.gotoAndPlay(2);
stage.addEventListener(Event.ENTER_FRAME, battlewaitframe);
}
public function createtutortext2(){
objtotext = tutortext2;
createtexting();
}
public function createtutortext4(){
objtotext = tutortext4;
createtexting();
}
public function createtutortext6(){
mcmechanicpanel.mcblink.gotoAndStop(3);
objtotext = tutortext6;
createtexting();
}
public function createtutortext7(){
mcmechanicpanel.mcblink.gotoAndStop(4);
objtotext = tutortext7;
createtexting();
}
public function gametimelol(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
cekachievement();
if (so.data.mechahptemp[slotselected][robotused] < (so.data.mechahp[slotselected][robotused] / 5)){
mcui2.mc1.mcndabole2.visible = true;
mcui2.mc1.mcndabole3.visible = true;
mcchampionship.btnenterno.visible = true;
} else {
mcui2.mc1.mcndabole2.visible = false;
mcui2.mc1.mcndabole3.visible = false;
mcchampionship.btnenterno.visible = false;
};
if (tournamentlose == true){
mcui2.mc1.mcndabole3.visible = true;
} else {
mcui2.mc1.mcndabole3.visible = false;
};
if ((((((((((((((((((((((((((mcridershop.visible == false)) && ((mcmechanicpanel.visible == false)))) && ((mcshop.visible == false)))) && ((mcchampionship.visible == false)))) && ((mcsponsor.visible == false)))) && ((mcuimechastatus.visible == false)))) && ((mcdeficitwarning.visible == false)))) && ((mcpause.visible == false)))) && ((mcturnamenlastchance.visible == false)))) && ((mctournamentfee.visible == false)))) && ((timewarp <= 0)))) && ((mcgameover.currentFrame == 1)))) && ((mcgameend.currentFrame == 1)))){
if (so.data.money[slotselected] > 0){
mcui.mc1.txtmoney.textColor = 0xCC00;
};
if (posisimarking == 1){
j = 1;
while (j <= 6) {
_local3 = mcui2.mc1.getChildByName(("mcnew" + j));
if (so.data.marker[slotselected][j] == 1){
_local3.visible = true;
} else {
_local3.visible = false;
};
j++;
};
mcui2.mc1.mcexpired.mouseEnabled = false;
mcui2.mc1.mcexpired.mouseChildren = false;
if (so.data.sponsortimetemp[slotselected] == -1){
mcui2.mc1.mcexpired.visible = true;
} else {
mcui2.mc1.mcexpired.visible = false;
};
mcui.mc1.txtmoney.text = (so.data.money[slotselected] + "G");
if (so.data.tp[slotselected] > 99){
so.data.tp[slotselected] = 99;
};
mcui.mc1.txttp.text = so.data.tp[slotselected];
if (so.data.sponsortimetemp[slotselected] != -1){
mcui2.mc1.btnsponsorndabole.visible = true;
var _local7 = so.data.sponsortime;
var _local8 = slotselected;
var _local9 = (_local7[_local8] - 1);
_local7[_local8] = _local9;
if (so.data.sponsortime[slotselected] < 0){
mcui2.mc1.btnsponsorndabole.visible = false;
so.data.sponsorlogo[slotselected] = 0;
mcmap.mcbuild1.mcsponsor.visible = false;
so.data.sponsortimetemp[slotselected] = -1;
};
};
if (so.data.championshipcountdown[slotselected] > 0){
_local7 = so.data.championshipcountdown;
_local8 = slotselected;
_local9 = (_local7[_local8] + 1);
_local7[_local8] = _local9;
if (mcnextmatch.currentFrame == 1){
mcnextmatch.gotoAndPlay(2);
};
mcnextmatch.mc1.btnenter.visible = false;
mcnextmatch.mc1.mcbartime.visible = true;
mcnextmatch.mc1.mctime.visible = true;
mcnextmatch.mc1.mctime2.visible = false;
mcnextmatch.mc1.mctime.width = ((so.data.championshipcountdown[slotselected] / (timeweektemp * 4)) * 68);
mcnextmatch.mc1.mctime2.width = mcnextmatch.mc1.mctime.width;
if ((((so.data.championshipcountdown[slotselected] >= so.data.championshipcountdownmax[slotselected])) && (!((so.data.championshipphase[slotselected] == 5))))){
mcturnamenlastchance.visible = true;
mcnextmatch.gotoAndStop(1);
};
};
_local2 = 1;
while (_local2 <= 8) {
if (so.data.mechanic[slotselected][_local2].exist == true){
so.data.mechanic[slotselected][_local2].firetime--;
};
_local2++;
};
_local7 = so.data.timeweeke;
_local8 = slotselected;
_local9 = (_local7[_local8] + 1);
_local7[_local8] = _local9;
mcui4.mctime2.visible = false;
mcui4.mctime.width = ((so.data.timeweeke[slotselected] / timeweektemp) * 119);
mcui4.mctime2.width = ((so.data.timeweeke[slotselected] / timeweektemp) * 119);
if (so.data.timeweeke[slotselected] >= timeweektemp){
so.data.timeweeke[slotselected] = 0;
_local7 = so.data.weeke;
_local8 = slotselected;
_local9 = (_local7[_local8] + 1);
_local7[_local8] = _local9;
trace(("cek week : " + so.data.weeke[slotselected]));
if (so.data.weeke[slotselected] > 4){
if (so.data.money[slotselected] < 0){
_local7 = so.data.deficitcount;
_local8 = slotselected;
_local9 = (_local7[_local8] + 1);
_local7[_local8] = _local9;
cekgameover();
} else {
so.data.deficitcount[slotselected] = 0;
};
if (so.data.tutorialcomplete[slotselected] == true){
givetptpoint();
loadsalary();
_local4 = 0;
_local5 = 1;
while (_local5 <= 8) {
if (so.data.mechanic[slotselected][_local5].exist == true){
_local4 = (_local4 + so.data.mechanic[slotselected][_local5].wages);
};
_local5++;
};
_local4 = (_local4 + so.data.raiderwages[slotselected]);
ubahsebanyakinimoney(_local4, "damage");
};
so.data.mechanicbuybool[slotselected] = false;
so.data.raiderbuybool[slotselected] = false;
so.data.weeke[slotselected] = 1;
_local7 = so.data.monthe;
_local8 = slotselected;
_local9 = (_local7[_local8] + 1);
_local7[_local8] = _local9;
if (so.data.monthe[slotselected] > 12){
so.data.monthe[slotselected] = 1;
_local7 = so.data.yeare;
_local8 = slotselected;
_local9 = (_local7[_local8] + 1);
_local7[_local8] = _local9;
if (mcui4.mcyear.currentFrame == mcui4.mcyear.totalFrames){
_local6 = mcui4.mcmonth.mc2.txt1.text;
mcui4.mcyear.gotoAndStop(1);
mcui4.mcyear.mc1.txt1.text = _local6;
mcui4.mcyear.mc2.txt1.text = so.data.yeare[slotselected];
mcui4.mcyear.gotoAndPlay(2);
} else {
mcui4.mcyear.mc2.txt1.text = so.data.yeare[slotselected];
mcui4.mcyear.gotoAndPlay(2);
};
};
if (mcui4.mcmonth.currentFrame == mcui4.mcmonth.totalFrames){
_local6 = mcui4.mcmonth.mc2.txt1.text;
mcui4.mcmonth.gotoAndStop(1);
mcui4.mcmonth.mc1.txt1.text = _local6;
mcui4.mcmonth.mc2.txt1.text = so.data.monthe[slotselected];
mcui4.mcmonth.gotoAndPlay(2);
} else {
mcui4.mcmonth.mc2.txt1.text = so.data.monthe[slotselected];
mcui4.mcmonth.gotoAndPlay(2);
};
};
if (mcui4.mcweek.currentFrame == mcui4.mcweek.totalFrames){
_local6 = mcui4.mcweek.mc2.txt1.text;
mcui4.mcweek.gotoAndStop(1);
mcui4.mcweek.mc1.txt1.text = _local6;
mcui4.mcweek.mc2.txt1.text = so.data.weeke[slotselected];
mcui4.mcweek.gotoAndPlay(2);
} else {
mcui4.mcweek.mc2.txt1.text = so.data.weeke[slotselected];
mcui4.mcweek.gotoAndPlay(2);
};
};
loadrepairing();
} else {
mcui4.mctime2.visible = true;
mcnextmatch.mc1.mctime2.visible = true;
};
} else {
mcui4.mctime2.visible = true;
mcnextmatch.mc1.mctime2.visible = true;
if (soundchannelrepair != null){
soundchannelrepair.stop();
soundchannelrepair = null;
};
};
}
public function createtutortext9(){
objtotext = tutortext9;
createtexting();
}
public function createtutortext5(){
if (so.data.tutorialstep[slotselected] == 6){
mcmechanicpanel.mcblink.gotoAndStop(2);
};
objtotext = tutortext5;
createtexting();
}
public function createtutortext3(){
mcui.mc1.mcblink.gotoAndStop(5);
objtotext = tutortext3;
createtexting();
}
public function loading(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
_local4 = ((_local3 / _local2) * 100);
mcmecha.gotoAndStop(int(_local4));
txt1.text = (("Preparing Mecha . . . " + int(_local4)) + "%");
mcbar.width = ((_local4 / 100) * 185);
if (_local3 == _local2){
gotoAndPlay("preloader2");
stage.removeEventListener(Event.ENTER_FRAME, loading);
};
}
public function mutemusicingame(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (volumemusic == 1){
volumemusic = 0;
volumemainmusic = 0;
} else {
volumemusic = 1;
volumemainmusic = 1;
};
soundchannel1.soundTransform = new SoundTransform(volumemainmusic);
if (soundchanneldatacrunch != null){
soundchanneldatacrunch.soundTransform = new SoundTransform(volumemainmusic);
};
}
public function skillonout(_arg1:MouseEvent):void{
mcskillexplanation.visible = false;
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_OVER, skillonout);
stage.removeEventListener(Event.ENTER_FRAME, skillonoverfollowmouse);
}
public function createtutortext8(){
objtotext = tutortext8;
createtexting();
}
public function buwatseranganmanual2(){
var _local1:*;
skillmanual = true;
if (skilldariparts == 2){
if (partske == 1){
mechaused.gotoAndPlay("backshoot2");
} else {
if (partske == 2){
mechaused.gotoAndPlay("backshoot1");
};
};
};
mcbattleexplanation.visible = false;
mcmousebattle.visible = false;
mcmousebattle.x = -200;
mcmousebattle.y = -200;
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, overtarget);
stage.removeEventListener(MouseEvent.CLICK, targetpartsclick);
mcblacker.visible = false;
mcmechaenemy2.visible = false;
mechaused.chargebool = false;
enemymecha.chargebool = false;
if (skilldariparts == 1){
mechaused.chargebool = true;
createeffectbattle(headskillnumba[so.data.charmechahead[slotselected][robotused]][0], mechaused, "head", "hero");
} else {
if (skilldariparts == 2){
trace(((((("buwat dari parts : " + skilldariparts) + " no skill e : ") + skillnodariparts) + " part ke : ") + partske));
_local1 = [undefined, so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused]];
createeffectbattle(armskillnumba[_local1[partske]][skillnodariparts], mechaused, "hand", "hero");
linkagesound[soundindex].play(0, 1, new SoundTransform(volumemusic));
};
};
}
public function cekbuffcountdown(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Array, _arg6:Array, _arg7:String, _arg8:String, _arg9:int):void{
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:Point;
_local10 = 0;
while (_local10 < _arg1.length) {
if (_arg2[_local10] <= 0){
_local11 = 0;
while (_local11 < _arg3[_local10].length) {
_arg4[_local10][_local11] = 0;
_local12 = 1;
while (_local12 <= 6) {
_local13 = getChildByName(((("mc" + _arg8) + "effect") + _local12));
if (_local13.currentLabel == _arg3[_local10][_local11]){
_local13.gotoAndStop(1);
};
_local12++;
};
_local11++;
};
} else {
if (_arg2[_local10] > 0){
_local11 = 0;
while (_local11 < _arg3[_local10].length) {
if (_arg4[_local10][_local11] > 0){
trace("BUFF : iya ini ada buff ");
_local14 = true;
_local12 = 1;
while (_local12 <= 6) {
_local13 = getChildByName(((("mc" + _arg8) + "effect") + _local12));
if (_local13.currentLabel == _arg3[_local10][_local11]){
trace("BUFF : iya ini sama ");
_local14 = false;
break;
};
_local12++;
};
if (_local14 == true){
_local12 = 1;
while (_local12 <= 6) {
_local13 = getChildByName(((("mc" + _arg8) + "effect") + _local12));
if (_local13.currentFrame == 1){
trace("BUFF : iya ini sama baru nemu");
_local13.gotoAndStop(_arg3[_local10][_local11]);
break;
};
_local12++;
};
};
var _local18 = _arg5[_local10];
var _local19 = _local11;
var _local20 = (_local18[_local19] - 1);
_local18[_local19] = _local20;
if (_arg5[_local10][_local11] < 0){
if (_arg3[_local10][_local11] == "atkdown"){
_arg4[_local10][_local11] = 0;
} else {
if ((((((_arg3[_local10][_local11] == "heal1")) || ((_arg3[_local10][_local11] == "heal2")))) || ((_arg3[_local10][_local11] == "heal3")))){
partsyangdiserang = 1;
adaheal = true;
if (_arg3[_local10][_local11] == "heal1"){
damagemasuk = -10;
} else {
if (_arg3[_local10][_local11] == "heal2"){
damagemasuk = -30;
} else {
if (_arg3[_local10][_local11] == "heal3"){
damagemasuk = -60;
};
};
};
if (_arg8 == "player"){
cekobjkenadamage(mechaused);
createdamagepoint(mechaused, damagemasuk, "recovering");
adaheal = false;
} else {
if (_arg8 == "enemy"){
cekobjkenadamage(enemymecha);
createdamagepoint(enemymecha, damagemasuk, "recovering");
adaheal = false;
};
};
adaheal = false;
_arg5[_local10][_local11] = healcountdown;
} else {
if (_arg3[_local10][_local11] == "stun"){
_arg4[_local10][_local11] = 0;
} else {
if (_arg3[_local10][_local11] == "poison"){
if (_arg8 == "enemy"){
trace("YA POISON");
_local15 = [undefined, 2, 3, 3, 4, 4];
_local16 = objarraylistsummaryeffect[_local15[(_local10 + 1)]][itemsummary[so.data.grade[slotselected]][randenemy][0]][1][0];
partsyangdiserang = (_local10 + 1);
damagemasuk = (_local16 * (_arg4[_local10][_local11] * 0.04));
cekobjkenadamage(enemymecha);
buffrealname = "malfunction";
createdamagepoint(enemymecha, (_local16 * (_arg4[_local10][_local11] * 0.04)), "malfunction");
_local17 = new Point(enemymecha.x, enemymecha.y);
createeffectpoison(enemymecha, _local17);
adapoison = true;
damagemasuk = 0;
} else {
if (_arg8 == "player"){
_local15 = [undefined, so.data.charmechaheadhpreal[slotselected][robotused], so.data.charmechahand1hpreal[slotselected][robotused], so.data.charmechahand2hpreal[slotselected][robotused], so.data.charmechaleg1hpreal[slotselected][robotused], so.data.charmechaleg2hpreal[slotselected][robotused]];
_local16 = _local15[(_local10 + 1)];
partsyangdiserang = (_local10 + 1);
damagemasuk = (_local16 * (_arg4[_local10][_local11] * 0.04));
cekobjkenadamage(mechaused);
buffrealname = "malfunction";
createdamagepoint(mechaused, (_local16 * (_arg4[_local10][_local11] * 0.04)), "malfunction");
_local17 = new Point(mechaused.x, mechaused.y);
createeffectpoison(mechaused, _local17);
adapoison = true;
damagemasuk = 0;
};
};
_arg5[_local10][_local11] = poisoncountdown;
};
};
};
};
_local18 = _arg6[_local10];
_local19 = _local11;
_local20 = (_local18[_local19] - 1);
_local18[_local19] = _local20;
if (_arg6[_local10][_local11] <= 0){
_arg4[_local10][_local11] = 0;
_local14 = true;
_local12 = 1;
while (_local12 <= 6) {
_local13 = getChildByName(((("mc" + _arg8) + "effect") + _local12));
if (_local13.currentLabel == _arg3[_local10][_local11]){
_local13.gotoAndStop(1);
break;
};
_local12++;
};
};
};
};
_local11++;
};
};
};
_local10++;
};
}
public function cekavailableskill(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Boolean, _arg5:Array):void{
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
_local6 = new Array();
_local7 = new Array();
_local8 = new Array();
_local9 = new Array();
_local10 = new Array();
_local11 = new Array();
_local12 = 0;
while (_local12 < _arg1.length) {
if (((!((_arg1[_local12] == 0))) && ((_arg5[_local12] > 0)))){
_local13 = 0;
if (_arg4 == true){
_local13 = cekbufftarget(playermechabuffnegativeparts, listarraydipakebuwatcekhp, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "stun", "player", _local12);
} else {
if (_arg4 == false){
_local13 = cekbufftarget(enemymechabuffnegativeparts, listarraydipakebuwatcek2hp, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes, "stun", "enemy", _local12);
};
};
if ((((_arg4 == true)) || ((((_arg4 == false)) && ((_local13 == 0)))))){
if (_local12 == 0){
if (headskillframe[_arg1[_local12]] != 0){
_local6[_local6.length] = headskillframe[_arg1[_local12]];
_local7[_local7.length] = 1;
_local8[_local8.length] = 1;
_local9[_local9.length] = 1;
_local10[_local10.length] = _arg1[_local12];
if (_arg4 == true){
_local11[_local11.length] = _local13;
};
};
} else {
if ((((_local12 == 1)) || ((_local12 == 2)))){
if (_arg1[_local12] != 0){
_local14 = 0;
while (_local14 < armskillframe[_arg1[_local12]].length) {
if (armskillframe[_arg1[_local12]][_local14] != 0){
_local6[_local6.length] = armskillframe[_arg1[_local12]][_local14];
_local7[_local7.length] = 2;
_local8[_local8.length] = _local12;
_local9[_local9.length] = _local14;
_local10[_local10.length] = _arg1[_local12];
if (_arg4 == true){
_local11[_local11.length] = _local13;
};
};
_local14++;
};
};
};
};
};
};
_local12++;
};
trace("asd");
if (_arg4 == false){
enemyskill = _local6;
enemyskilltipeparts = _local7;
enemyskilltipepartske = _local8;
enemyskillno = _local9;
} else {
if (_arg4 == true){
mechaskill = _local6;
mechaskilltipeparts = _local7;
_local12 = 1;
while (_local12 <= 7) {
_local15 = mcskillsummary.getChildByName(("mc" + _local12));
_local15.visible = false;
_local12++;
};
trace("done 0");
_local12 = 0;
while (_local12 < _local6.length) {
_local15 = mcskillsummary.getChildByName(("mc" + int((_local12 + 1))));
trace("done 11");
if (_local7[_local12] == 1){
trace("prep 1");
cekcost(headskillnumba[so.data.charmechahead[slotselected][robotused]][0], "player");
trace("done 1");
_local15.costnya = cekplayercost;
} else {
if (_local7[_local12] == 2){
trace(("prep 2 " + _local7));
if (_local8[_local12] == 1){
trace("tgn 1");
cekcost(armskillnumba[so.data.charmechahand1[slotselected][robotused]][_local9[_local12]], "player");
} else {
if (_local8[_local12] == 2){
trace("tgn 2");
cekcost(armskillnumba[so.data.charmechahand2[slotselected][robotused]][_local9[_local12]], "player");
};
};
trace("done 2");
_local15.costnya = cekplayercost;
};
};
if ((((playerenergy >= cekplayercost)) && ((_local11[_local12] == 0)))){
_local15.mcnotavailable.visible = false;
_local15.addEventListener(MouseEvent.CLICK, skillonclick);
} else {
_local15.removeEventListener(MouseEvent.CLICK, skillonclick);
_local15.mcnotavailable.visible = true;
_local15.mcnotavailable.gotoAndStop(_local6[_local12]);
_local15.mcnotavailable.frameparts = _local10[_local12];
_local15.mcnotavailable.tipeparts = _local7[_local12];
_local15.mcnotavailable.tipepartske = _local8[_local12];
_local15.mcnotavailable.skillno = _local9[_local12];
_local15.mcnotavailable.addEventListener(MouseEvent.MOUSE_OVER, skillonover);
};
_local15.visible = true;
_local15.frameparts = _local10[_local12];
_local15.tipeparts = _local7[_local12];
_local15.tipepartske = _local8[_local12];
_local15.skillno = _local9[_local12];
_local15.gotoAndStop(_local6[_local12]);
_local15.addEventListener(MouseEvent.MOUSE_OVER, skillonover);
_local12++;
};
};
};
}
public function cektampilanstaffdanrepairrate(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (so.data.onautorepairbool[slotselected][robotused] == false){
_local1 = 1;
while (_local1 <= 8) {
_local3 = buildingused.getChildByName(("mcstaffidle" + _local1));
if (_local3 != null){
trace(("no team : " + so.data.mechanic[slotselected][_local1].team));
if (so.data.mechanic[slotselected][_local1].team == 1){
trace(("cek clash : " + _local3.mcclash));
_local3.mcclash.visible = false;
_local3.visible = true;
};
};
_local1++;
};
_local2 = 0;
_local1 = 1;
while (_local1 <= 8) {
if (so.data.mechanic[slotselected][_local1].team == 1){
_local2 = (_local2 + so.data.mechanic[slotselected][_local1].skillpt);
};
_local1++;
};
trace(("kemampuan betulno mechanic per hari, HP : " + _local2));
cekstattotal(1);
cekstatnow(1);
trace(("hp maks " + so.data.mechahp[slotselected][1]));
trace(("hp now " + so.data.mechahptemp[slotselected][1]));
if (so.data.mechahptemp[slotselected][1] >= so.data.mechahp[slotselected][1]){
mecharepairbool = false;
txtrepairpercent.text = "+0%";
txtdayrepair.text = "";
txtdayrepair.visible = false;
so.data.charmecharepairtime[slotselected][1] = 0;
so.data.charmecharepairtimetemp[slotselected][1] = 0;
mcui.mc1.btnnotrain1.visible = true;
} else {
if ((((so.data.mechahptemp[slotselected][1] <= (so.data.mechahp[slotselected][1] * 0.3))) && ((so.data.firsttimelowhealth[slotselected] == false)))){
so.data.firsttimelowhealth[slotselected] = true;
createfirsttimelowhealth();
};
mecharepairbool = true;
_local4 = (so.data.mechahp[slotselected][1] - so.data.mechahptemp[slotselected][1]);
_local5 = Math.ceil((_local4 / _local2));
so.data.charmecharepairtime[slotselected][1] = _local5;
trace(("mecha dibetulno brp hari : " + _local5));
so.data.repairhead[slotselected][1] = ((1 - so.data.charmechaheadhp[slotselected][1]) / _local5);
trace(("REPAIR HEAD : " + so.data.repairhead[slotselected][1]));
so.data.repairhand1[slotselected][1] = ((1 - so.data.charmechahand1hp[slotselected][1]) / _local5);
trace(("REPAIR HAND 1 : " + so.data.repairhand1[slotselected][1]));
so.data.repairhand2[slotselected][1] = ((1 - so.data.charmechahand2hp[slotselected][1]) / _local5);
trace(("REPAIR HAND 2 : " + so.data.repairhand2[slotselected][1]));
so.data.repairleg1[slotselected][1] = ((1 - so.data.charmechaleg1hp[slotselected][1]) / _local5);
trace(("REPAIR LEG 1 : " + so.data.repairleg1[slotselected][1]));
so.data.repairleg2[slotselected][1] = ((1 - so.data.charmechaleg2hp[slotselected][1]) / _local5);
trace(("REPAIR LEG 2 : " + so.data.repairleg2[slotselected][1]));
if (_local5 == -1){
_local4 = (_local4 / so.data.mechahp[slotselected][1]);
trace(("persentase nya utk per hp betulno : " + _local4));
} else {
_local4 = (_local4 / _local5);
trace(("per hr betulno : " + _local4));
_local4 = (_local4 / so.data.mechahp[slotselected][1]);
trace(("persentase nya utk per hp betulno : " + _local4));
};
if ((_local4 % 1) == 0){
} else {
_local4 = _local4.toFixed(2);
};
txtrepairpercent.text = (("+" + int((_local4 * 100))) + "%");
txtdayrepair.text = String(int(_local5));
so.data.charmecharepairtime[slotselected][1] = 0;
so.data.charmecharepairtimetemp[slotselected][1] = int(txtdayrepair.text);
mechaused.mcprogress.txtday.text = txtdayrepair.text;
txtdayrepair.visible = false;
mcui.mc1.btnnotrain1.visible = false;
};
};
}
public function tetapkanso(_arg1:int):void{
norobotfostatistic = _arg1;
listtar = ["mchead", "mchand1", "mchand2", "mcleg1", "mcleg2"];
listso = [so.data.charmechaheadhp[slotselected][_arg1], so.data.charmechahand1hp[slotselected][_arg1], so.data.charmechahand2hp[slotselected][_arg1], so.data.charmechaleg1hp[slotselected][_arg1], so.data.charmechaleg2hp[slotselected][_arg1]];
listtxt = ["mctxthead", "mctxthand1", "mctxthand2", "mctxtleg1", "mctxtleg2"];
tetapkanlistarraydipakebuwatcek();
listparts = listarraydipakebuwatcek;
}
public function kurangicountdown(_arg1:Object, _arg2:int){
var _local3:*;
var _local4:*;
var _local5:*;
timesecond--;
if (timesecond <= 0){
_local3 = _arg1.txt1.text;
if (currentLabel == "battle"){
_local4 = _local3.charAt(0);
if (int(_local4) == 0){
_local3 = _local3.charAt((_local3.length - 1));
_local3--;
_local3 = ("0" + _local3);
if (_local3 == "00"){
trace("yo iiki 0");
if (itungehpplayer < itungehpenemy){
battlepreend = true;
createbattlepreend("player");
} else {
if (itungehpenemy < itungehpplayer){
battlepreend = true;
createbattlepreend("enemy");
};
};
};
} else {
_local3 = int(_local3);
_local3--;
if (_local3 < 10){
_local3 = ("0" + _local3);
};
};
_arg1.txt1.text = _local3;
} else {
if (currentLabel == "ingame"){
if (posisimarking == 2){
_local5 = _arg1.txt1.text;
_local5 = _local5.charAt(0);
_local3 = int(_local3.charAt((_local3.length - 1)));
_local3--;
if ((((_local5 == "0")) && ((_local3 == "0")))){
cleanuptrainall();
_arg1.txt1.text = (_local5 + _local3);
} else {
if (_local3 < 0){
_local3 = 9;
_local5--;
};
_arg1.txt1.text = ((_local5 + "") + _local3);
};
} else {
if (_local3 < 10){
_local3 = int(_local3.charAt((_local3.length - 1)));
_local3++;
if (_local3 < 10){
_local3 = ("0" + _local3);
};
} else {
_local3++;
};
_arg1.txt1.text = _local3;
};
};
};
timesecond = timesecondtemp;
};
}
public function savegamesdelete(_arg1:MouseEvent):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volumemusic));
_local2 = _arg1.target.name;
_local2 = _local2.charAt((_local2.length - 1));
indexdelete = _local2;
mcdeletesavegame.visible = true;
}
public function loadridershop(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
mcridershop.txtmoney.text = (so.data.money[slotselected] + "G");
mcridershop.visible = true;
mcridershop.txtname.text = so.data.raidername[slotselected];
mcridershop.mcraider1.gotoAndStop(so.data.raider[slotselected]);
mcridershop.txtname.text = so.data.raidername[slotselected];
mcridershop.txtlevel.text = ("Lv." + so.data.raiderlevel[slotselected]);
mcridershop.txtexp.text = ((so.data.raiderexp[slotselected] + "/") + so.data.raiderexpmax[slotselected]);
mcridershop.mcbarexp.width = ((so.data.raiderexp[slotselected] / so.data.raiderexpmax[slotselected]) * 75);
mcridershop.txtwages.text = (so.data.raiderwages[slotselected] + "G");
mcridershop.txthp1.text = ("HP : " + so.data.raiderhp[slotselected]);
mcridershop.txtatk1.text = ("ATK : " + so.data.raideratk[slotselected]);
mcridershop.txtdef1.text = ("DEF : " + so.data.raiderdef[slotselected]);
mcridershop.txtspd1.text = ("SPD : " + so.data.raiderspd[slotselected]);
if (so.data.raiderbuybool[slotselected] == false){
_local1 = 1;
while (_local1 <= 6) {
_local2 = randRange(1, 15);
_local3 = namerand[randRange(0, (namerand.length - 1))];
_local4 = randRange((so.data.raiderlevel[slotselected] - 2), (so.data.raiderlevel[slotselected] + 3));
if (_local4 <= 0){
_local4 = 1;
};
_local5 = randRange(((_local4 - 1) * penambahanhprider), (_local4 * penambahanhprider));
_local5 = (_local5 + 900);
if (_local5 < 100){
_local5 = 100;
};
_local6 = randRange(((_local4 - 1) * penambahanatkrider), (_local4 * penambahanatkrider));
_local6 = (_local6 + 90);
if (_local6 < 10){
_local6 = 10;
};
_local7 = randRange(((_local4 - 1) * penambahandefrider), (_local4 * penambahandefrider));
_local7 = (_local7 + 90);
if (_local7 < 10){
_local7 = 10;
};
_local8 = randRange(((_local4 - 1) * penambahanspdrider), (_local4 * penambahanspdrider));
_local8 = (_local8 + 90);
if (_local8 < 10){
_local8 = 10;
};
_local9 = randRange(((_local4 - 1) * 25), (_local4 * 25));
if (_local9 < 50){
_local9 = 50;
};
trace(("create wagesnya : " + _local9));
so.data.raiderbuyarray[slotselected][_local1] = {levele:_local4, hp:_local5, atk:_local6, def:_local7, spd:_local8, namee:_local3, head:_local2, wages:_local9};
_local1++;
};
so.data.raiderbuybool[slotselected] = true;
};
trace(("cek isi raiderarray : " + so.data.raiderbuyarray[slotselected]));
_local1 = 1;
while (_local1 <= 6) {
_local10 = mcridershop.getChildByName(("mcrider" + _local1));
if (so.data.raiderbuyarray[slotselected][_local1].namee == "none"){
_local10.removeEventListener(MouseEvent.MOUSE_DOWN, raidershopdown);
_local10.removeEventListener(MouseEvent.MOUSE_UP, raidershopup);
_local10.buttonMode = false;
_local10.mcblock.visible = true;
_local10.txtname.visible = false;
_local10.txtlevel.visible = false;
_local10.mcraider.visible = false;
_local10.txthp.visible = false;
_local10.txtatk.visible = false;
_local10.txtdef.visible = false;
_local10.txtspd.visible = false;
_local10.txtwages.visible = false;
} else {
if (so.data.raiderbuyarray[slotselected][_local1].namee != "none"){
_local10.mcblock.visible = false;
_local10.txtname.visible = true;
_local10.txtlevel.visible = true;
_local10.mcraider.visible = true;
_local10.txthp.visible = true;
_local10.txtatk.visible = true;
_local10.txtdef.visible = true;
_local10.txtspd.visible = true;
_local10.txtwages.visible = true;
_local10.txtname.text = so.data.raiderbuyarray[slotselected][_local1].namee;
_local10.txtlevel.text = ("Lv." + so.data.raiderbuyarray[slotselected][_local1].levele);
_local10.mcraider.gotoAndStop(so.data.raiderbuyarray[slotselected][_local1].head);
_local10.txthp.text = ("HP : " + so.data.raiderbuyarray[slotselected][_local1].hp);
_local10.txtatk.text = ("ATK :" + so.data.raiderbuyarray[slotselected][_local1].atk);
_local10.txtdef.text = ("DEF :" + so.data.raiderbuyarray[slotselected][_local1].def);
_local10.txtspd.text = ("SPD :" + so.data.raiderbuyarray[slotselected][_local1].spd);
_local10.txtwages.text = (so.data.raiderbuyarray[slotselected][_local1].wages + "G");
_local10.namee = so.data.raiderbuyarray[slotselected][_local1].namee;
_local10.levele = so.data.raiderbuyarray[slotselected][_local1].levele;
_local10.head = so.data.raiderbuyarray[slotselected][_local1].head;
_local10.hp = so.data.raiderbuyarray[slotselected][_local1].hp;
_local10.atk = so.data.raiderbuyarray[slotselected][_local1].atk;
_local10.def = so.data.raiderbuyarray[slotselected][_local1].def;
_local10.spd = so.data.raiderbuyarray[slotselected][_local1].spd;
_local10.wages = so.data.raiderbuyarray[slotselected][_local1].wages;
_local10.noraiderbuyarray = _local1;
_local10.buttonMode = true;
_local10.statx = _local10.x;
_local10.staty = _local10.y;
_local10.removeEventListener(MouseEvent.MOUSE_DOWN, raidershopdown);
_local10.removeEventListener(MouseEvent.MOUSE_UP, raidershopup);
_local10.addEventListener(MouseEvent.MOUSE_DOWN, raidershopdown);
_local10.addEventListener(MouseEvent.MOUSE_UP, raidershopup);
};
};
_local1++;
};
}
public function createhelp(){
mcpause.visible = false;
if (mcbattlehelp.visible == false){
pausegame = true;
mcbattlehelp.visible = true;
} else {
if (mcbattlehelp.visible == true){
pausegame = false;
mcbattlehelp.visible = false;
};
};
}
public function obstacleattackclick(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
trace("KLIK TAR ATTACK");
if (_arg1.currentTarget.currentLabel != "destroy"){
soundrapid.play(0, 1, new SoundTransform(volumemusic));
_local2 = randRange(1, 2);
createeffect(_local2);
_local3 = 1;
while (_local3 <= 3) {
_local2 = randRange(3, 7);
createeffect(_local2);
_local3++;
};
_arg1.currentTarget.parent.health--;
_local4 = (_arg1.currentTarget.parent.health / _arg1.currentTarget.parent.healthtemp);
if (((!((so.data.charmechahand1[slotselected][robotused] == 0))) && ((so.data.charmechahand2[slotselected][robotused] == 0)))){
mechaused.gotoAndPlay("backshoot2");
} else {
if ((((so.data.charmechahand1[slotselected][robotused] == 0)) && (!((so.data.charmechahand2[slotselected][robotused] == 0))))){
mechaused.gotoAndPlay("backshoot1");
} else {
if (((!((so.data.charmechahand1[slotselected][robotused] == 0))) && (!((so.data.charmechahand2[slotselected][robotused] == 0))))){
_local2 = randRange(1, 2);
if (_local2 == 1){
mechaused.gotoAndPlay("backshoot2");
} else {
if (_local2 == 2){
mechaused.gotoAndPlay("backshoot1");
};
};
};
};
};
if (_local4 <= 0){
sounddestroy.play(0, 1, new SoundTransform(volumemusic));
_arg1.currentTarget.mcmarker.visible = false;
_arg1.currentTarget.parent.buttonMode = false;
_arg1.currentTarget.mouseChildren = false;
_arg1.currentTarget.mouseEnabled = false;
_arg1.currentTarget.parent.mouseChildren = false;
_arg1.currentTarget.parent.mouseEnabled = false;
_arg1.currentTarget.gotoAndPlay("destroy");
_arg1.currentTarget.parent.dead = true;
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK, obstacleattackclick);
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_OVER, obstaclespeedover);
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_OUT, obstaclespeedout);
_local5 = new ColorTransform();
_arg1.currentTarget.transform.colorTransform = _local5;
} else {
if (_local4 > 0.6){
_arg1.currentTarget.gotoAndStop("phase1");
} else {
if (_local4 < 0.5){
_arg1.currentTarget.gotoAndStop("phase2");
};
};
};
};
}
public function tambaihprealmecha(_arg1:int, _arg2:int){
so.data.charmechaheadhpreal[slotselected][_arg2] = (so.data.charmechaheadhpreal[slotselected][_arg2] + _arg1);
if (so.data.charmechahand1[slotselected][_arg2] != 0){
so.data.charmechahand1hpreal[slotselected][_arg2] = (so.data.charmechahand1hpreal[slotselected][_arg2] + _arg1);
};
if (so.data.charmechahand2[slotselected][_arg2] != 0){
so.data.charmechahand2hpreal[slotselected][_arg2] = (so.data.charmechahand2hpreal[slotselected][_arg2] + _arg1);
};
so.data.charmechaleg1hpreal[slotselected][_arg2] = (so.data.charmechaleg1hpreal[slotselected][_arg2] + _arg1);
so.data.charmechaleg2hpreal[slotselected][_arg2] = (so.data.charmechaleg2hpreal[slotselected][_arg2] + _arg1);
}
public function rightclickbugerrorfixer(){
battlepreend = true;
autoattacksetting = true;
txteffectivetext.visible = false;
mcskillexplanation2.visible = false;
mcmousebattle.visible = false;
Mouse.show();
btncancel.visible = false;
skilldariparts = 0;
skillnodariparts = 0;
partske = 0;
skillselecttarget = false;
mcblacker.visible = false;
mcmechaenemy2.visible = false;
mcmechaenemy2.x = enemymecha.x;
mcmechaenemy2.y = enemymecha.y;
mcbattleexplanation.visible = false;
mcmousebattle.visible = false;
mcmousebattle.x = -200;
mcmousebattle.y = -200;
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, overtarget);
stage.removeEventListener(MouseEvent.CLICK, targetpartsclick);
mcblacker.visible = false;
mcmechaenemy2.visible = false;
mcplayereffective.visible = false;
mcenemyeffective.visible = false;
mcskillsummary.visible = false;
}
public function autoattackfollowmouse(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:ColorTransform;
_local2 = _arg1.currentTarget;
_local3 = 0;
_local4 = 0;
while (_local4 < autoattackimage.length) {
if (autoattackimage[_local4] != null){
if (_arg1.currentTarget != autoattackimage[_local4]){
if (_local3 < getChildIndex(autoattackimage[_local4])){
_local3 = getChildIndex(autoattackimage[_local4]);
};
};
};
_local4++;
};
trace("ok nda papa 1");
_local5 = getChildIndex(_local2);
trace("ok nda papa 2");
if (_local5 < _local3){
swapChildrenAt(_local3, _local5);
};
_arg1.currentTarget.x = mouseX;
_arg1.currentTarget.y = mouseY;
_local6 = false;
_local4 = 0;
while (_local4 < autoattackimage.length) {
if (_arg1.currentTarget.tipeku != autoattackimage[_local4].tipeku){
if (_arg1.currentTarget.mchit.hitTestObject(autoattackimage[_local4].mchit) == true){
if (_local6 == false){
_local6 = true;
_local7 = new ColorTransform();
_local7.redOffset = 127;
_local7.greenOffset = 127;
_local7.blueOffset = 127;
autoattackimage[_local4].transform.colorTransform = _local7;
} else {
_local7 = new ColorTransform();
autoattackimage[_local4].transform.colorTransform = _local7;
};
} else {
_local7 = new ColorTransform();
autoattackimage[_local4].transform.colorTransform = _local7;
};
};
_local4++;
};
}
public function buwatmasukturnamen(){
if (so.data.championshipphase[slotselected] != 5){
if (so.data.championshipphase[slotselected] == 4){
gradetemp = so.data.grade[slotselected];
var _local1 = so.data.grade;
var _local2 = slotselected;
var _local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
};
tournamentbool = true;
tetapkanso(robotused);
loadmechastatus(robotused);
clearallwindow();
cleanup();
transisi("battleprep");
};
}
public function tambaispdberdasarkanpersentase(_arg1:Number, _arg2:int){
so.data.charmechaheadspdreal[slotselected][_arg2] = (so.data.charmechaheadspdreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaheadspdreal[slotselected][_arg2])));
if (so.data.charmechahand1[slotselected][_arg2] != 0){
so.data.charmechahand1spdreal[slotselected][_arg2] = (so.data.charmechahand1spdreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechahand1spdreal[slotselected][_arg2])));
};
if (so.data.charmechahand2[slotselected][_arg2] != 0){
so.data.charmechahand2spdreal[slotselected][_arg2] = (so.data.charmechahand2spdreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechahand2spdreal[slotselected][_arg2])));
};
so.data.charmechaleg1spdreal[slotselected][_arg2] = (so.data.charmechaleg1spdreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaleg1spdreal[slotselected][_arg2])));
so.data.charmechaleg2spdreal[slotselected][_arg2] = (so.data.charmechaleg2spdreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaleg2spdreal[slotselected][_arg2])));
}
public function mainmenucredits(_arg1:MouseEvent):void{
mclogolg.gotoAndStop(1);
mcanimasi.gotoAndStop(1);
soundclick.play(0, 1, new SoundTransform(volumemusic));
mccredits.visible = true;
mccredits.mc1.gotoAndPlay(2);
}
public function createtexting(){
stage.addEventListener(Event.ENTER_FRAME, textingtext);
textingstep = 0;
textingphase = 1;
textingtextindex = 0;
textingreload = 1;
textingreloadtemp = textingreload;
mcdialogbox.mctechguy.gotoAndStop(2);
mcdialogbox.btnnext2.visible = true;
mcdialogbox.btnnext2.addEventListener(MouseEvent.CLICK, nextconv);
mcdialogbox.btnskiptutorial.visible = true;
mcdialogbox.btnstart.visible = false;
mcdialogbox.txtjudul.text = "TUTORIAL";
mcdialogbox.btnnext.addEventListener(MouseEvent.CLICK, nextconv);
}
public function attackstart(_arg1:MouseEvent):void{
doneactivity = true;
soundclick.play(0, 1, new SoundTransform(volumemusic));
so.data.tp[slotselected] = (so.data.tp[slotselected] - costtp);
mcdialogbox.btncancel.visible = false;
mcdialogbox.btnupgrade.visible = false;
mcdialogbox.btnclose.visible = true;
mcdialogbox.btnstart.removeEventListener(MouseEvent.CLICK, speedstart);
mcdialogbox.gotoAndStop(1);
mccountdown.gotoAndPlay(2);
createtrainattack();
mcdialogbox.visible = false;
mccountdown.gotoAndPlay(2);
mccountdown.addEventListener(Event.ENTER_FRAME, countdownstartspeed);
}
public function buwatseranganmanual(){
var _local1:*;
var _local2:*;
var _local3:*;
txteffectivetext.visible = false;
cekautoattackefektiftoenemy();
battleanimationbool = true;
mcskillsummary.visible = false;
mcbattleexplanation.visible = false;
mcmousebattle.visible = false;
mcmousebattle.x = -200;
mcmousebattle.y = -200;
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, overtarget);
stage.removeEventListener(MouseEvent.CLICK, targetpartsclick);
mcblacker.visible = false;
mcmechaenemy2.visible = false;
_local1 = "";
if (skilldariparts == 1){
mechaused.chargebool = true;
_local1 = headskillnumba[so.data.charmechahead[slotselected][robotused]][0];
elemenserangan = headclass[so.data.charmechahead[slotselected][robotused]];
} else {
if (skilldariparts == 2){
_local3 = [undefined, so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused]];
_local1 = armskillnumba[_local3[partske]][skillnodariparts];
if (partske == 1){
elemenserangan = armclass[so.data.charmechahand1[slotselected][robotused]];
} else {
if (partske == 2){
elemenserangan = armclass[so.data.charmechahand2[slotselected][robotused]];
};
};
};
};
_local2 = 0;
while (_local2 < linkagetipe.length) {
if (_local1 == linkagetipe[_local2]){
mcskillname.mc1.txt1.text = linkageskillname[_local2];
break;
};
_local2++;
};
buwatefektif();
mcskillname.gotoAndPlay(2);
jedaphase = 1;
buwatjedaer();
}
public function cekdaraheffect(_arg1:Array, _arg2:Object, _arg3:Array):void{
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:Point;
_local4 = 0;
while (_local4 < _arg1.length) {
_local5 = ["head", "hand1", "hand2", "leg1", "leg2"];
if (_arg1[_local4] < 0.5){
var _local8 = _arg3;
var _local9 = _local4;
var _local10 = (_local8[_local9] - 1);
_local8[_local9] = _local10;
if (_arg3[_local4] < 0){
_arg3[_local4] = cooldowneffect;
_local6 = _arg2.getChildByName(("mc" + _local5[_local4]));
if (currentLabel == "battle"){
_local7 = new Point(_arg2.x, _arg2.y);
createeffectrusak(_arg2, _local7);
} else {
if (currentLabel == "ingame"){
_local7 = new Point(0, 0);
_local7 = _arg2.localToGlobal(_local7);
createeffectrusak(_arg2, _local7);
};
};
};
};
_local4++;
};
}
public function accesslink(_arg1:MouseEvent):void{
var _local2:URLRequest;
if (mcsplash.currentLabel == "ab"){
_local2 = new URLRequest("http://www.arcadebomb.com");
navigateToURL(_local2);
} else {
if (mcsplash.currentLabel == "lg"){
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
};
};
}
public function loadsave(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 1;
while (_local1 <= 3) {
trace(("cek ada p ga : " + so.data.savedata[_local1]));
if (so.data.savedata[_local1] == 1){
_local2 = mcanimasi.mc1.getChildByName(("btnempty" + _local1));
_local2.visible = false;
_local3 = mcanimasi.mc1.getChildByName(("btndelete" + _local1));
_local3.visible = true;
} else {
_local2 = mcanimasi.mc1.getChildByName(("btnempty" + _local1));
_local2.visible = true;
_local3 = mcanimasi.mc1.getChildByName(("btndelete" + _local1));
_local3.visible = false;
};
_local1++;
};
}
public function tambaidefberdasarkanpersentase(_arg1:Number, _arg2:int){
so.data.charmechaheaddefreal[slotselected][_arg2] = (so.data.charmechaheaddefreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaheaddefreal[slotselected][_arg2])));
if (so.data.charmechahand1[slotselected][_arg2] != 0){
so.data.charmechahand1defreal[slotselected][_arg2] = (so.data.charmechahand1defreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechahand1defreal[slotselected][_arg2])));
};
if (so.data.charmechahand2[slotselected][_arg2] != 0){
so.data.charmechahand2defreal[slotselected][_arg2] = (so.data.charmechahand2defreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechahand2defreal[slotselected][_arg2])));
};
so.data.charmechaleg1defreal[slotselected][_arg2] = (so.data.charmechaleg1defreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaleg1defreal[slotselected][_arg2])));
so.data.charmechaleg2defreal[slotselected][_arg2] = (so.data.charmechaleg2defreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaleg2defreal[slotselected][_arg2])));
}
public function naikpemenang(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (so.data.championshipphase[slotselected] == 6){
trace(("cek curr frame : " + mcchampionship.mcwinnersummary.currentFrame));
if (mcchampionship.mcwinnersummary.currentFrame == 1){
mcchampionship.mcwinnersummary.gotoAndStop(1);
stage.removeEventListener(Event.ENTER_FRAME, naikpemenang);
so.data.championshipphase[slotselected] = 1;
resetturnamenlocationdll();
loadchampionship();
clearallwindow();
animasiwin = false;
mcchampionship.btnokno.visible = false;
};
};
mcchampionship.btnokno.visible = true;
_local2 = 0;
_local3 = 1;
while (_local3 <= 9) {
_local4 = mcchampionship.getChildByName(("mclogo" + int(_local3)));
trace(("cek isine : " + arraylistpemenangdipake));
if (arraylistpemenangdipake[_local3] == 1){
trace(((("ya ke : " + _local3) + " arahnya : ") + _local4.arah));
_local2++;
if (_local4.arah == "naek"){
_local4.y = (_local4.y - 2);
} else {
if (_local4.arah == "kiri"){
_local4.x = (_local4.x - 2);
} else {
if (_local4.arah == "kanan"){
_local4.x = (_local4.x + 2);
};
};
};
_local5 = 1;
while (_local5 <= 24) {
_local6 = mcchampionship.getChildByName(("mcwaypoint" + int(_local5)));
if ((((_local4.mchit.hitTestObject(_local6) == true)) && (!((_local4.ndacek == _local5))))){
_local4.ndacek = _local5;
if (_local4.arah == "naek"){
if (tournamentlose == true){
_local4.arah = "kiri";
} else {
if (so.data.championshipphase[slotselected] != 3){
trace(("ya ini arah naek : " + (_local3 % 2)));
if ((_local3 % 2) == 0){
_local4.arah = "kiri";
} else {
if ((_local3 % 2) == 1){
_local4.arah = "kanan";
};
};
} else {
if (so.data.championshipphase[slotselected] == 3){
if (_local3 == 1){
if ((_local2 % 2) == 0){
_local4.arah = "kiri";
} else {
if ((_local2 % 2) == 1){
_local4.arah = "kanan";
};
};
} else {
if (_local3 != 1){
trace("ya ini bukan satuuuuuuuu");
if (_local3 <= 6){
_local4.arah = "kanan";
} else {
if (_local3 > 6){
_local4.arah = "kiri";
};
};
};
};
};
};
};
} else {
_local4.arah = "naek";
};
};
_local5++;
};
if (so.data.championshipphase[slotselected] == 5){
_local6 = mcchampionship.getChildByName(("mclocator" + int(8)));
if (_local4.mchit.hitTestObject(_local6) == true){
_local4.x = _local6.x;
_local4.y = _local6.y;
mcchampionship.mcwin.gotoAndPlay(2);
donephase5();
};
} else {
if (so.data.championshipphase[slotselected] == 4){
_local6 = mcchampionship.getChildByName(("mclocator" + int(7)));
if (_local4.mchit.hitTestObject(_local6) == true){
_local4.x = _local6.x;
_local4.y = _local6.y;
donephase4();
};
} else {
if (so.data.championshipphase[slotselected] == 2){
_local7 = false;
_local8 = 1;
while (_local8 <= 4) {
_local6 = mcchampionship.getChildByName(("mclocator" + int(_local8)));
if (_local4.mchit.hitTestObject(_local6) == true){
_local4.x = _local6.x;
_local4.y = _local6.y;
_local7 = true;
};
_local8++;
};
if (_local7 == true){
donephase2();
};
} else {
if (so.data.championshipphase[slotselected] == 3){
_local8 = 5;
while (_local8 <= 6) {
_local6 = mcchampionship.getChildByName(("mclocator" + int(_local8)));
if (_local4.mchit.hitTestObject(_local6) == true){
_local4.x = _local6.x;
_local4.y = _local6.y;
donephase3();
};
_local8++;
};
};
};
};
};
};
_local3++;
};
}
public function cekautoattackefektiftoplayer(){
var _local1:*;
var _local2:*;
_local1 = [undefined, headclass, armclass, armclass, legclass, legclass];
_local2 = [undefined, so.data.charmechahead[slotselected][robotused], so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused], so.data.charmechaleg1[slotselected][robotused], so.data.charmechaleg2[slotselected][robotused]];
elemenygdiserang = _local1[partsyangdiserang][_local2[partsyangdiserang]];
buwatefektif();
}
public function skillonclick(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
skillclickframe = true;
mcdebugger.txt1.text = "-SKILL ON CLICK-";
mcskillexplanation2.visible = false;
skilldariparts = _arg1.currentTarget.tipeparts;
skillnodariparts = _arg1.currentTarget.skillno;
partske = _arg1.currentTarget.tipepartske;
trace(("IYA INI CLICK ATUOTATTACAK : " + autoattack));
if (autoattack == true){
playerattack = true;
debuggeroutput("Auto attack TRUE");
trace(((("ya auto attack " + playerenergy) + " ") + cekplayercost));
debuggeroutput("Energy req TRUE");
_local2 = 0;
_local3 = 0;
_local4 = false;
_local5 = 1;
while (_local5 <= 5) {
if (musuhstatsummary[(urutanattack[_local5] - 1)] > 0){
_local3 = urutanattack[_local5];
_local2++;
};
_local5++;
};
if (_local2 == 1){
debuggeroutput("TARGET : 1");
trace("yap tinggal satue");
_local4 = true;
partsyangdiserang = _local3;
buwatseranganmanual();
} else {
_local6 = [undefined, 90, 80, 70, 60, 50, 40];
_local7 = new Array();
_local8 = new Array();
_local5 = 1;
while (_local5 <= 5) {
if (musuhstatsummary[(urutanattack[_local5] - 1)] > 0){
_local7[_local7.length] = urutanattack[_local5];
_local8[_local8.length] = _local6[_local5];
};
_local5++;
};
debuggeroutput(((("TARGET LENGTH----: " + "[") + _local7) + "]"));
debuggeroutput(((("TARGET SIZE-------: " + "[") + _local8) + "]"));
_local9 = randRange(0, 100);
debuggeroutput(("TARGET SELECTION-: " + _local9));
if (_local9 > 90){
debuggeroutput(("TARGET RESULT-----: " + _local7[0]));
partsyangdiserang = _local7[0];
buwatseranganmanual();
} else {
_local5 = 0;
while (_local5 < _local7.length) {
if (_local9 < _local8[_local5]){
debuggeroutput((((("TARGET RESULT----: " + _local7[_local5]) + "[") + _local5) + "]"));
partsyangdiserang = _local7[_local5];
buwatseranganmanual();
break;
};
_local5++;
};
};
};
} else {
if (autoattack == false){
mcskillexplanation2.visible = true;
debuggeroutput("Auto attack FALSE");
if (skilldariparts == 1){
cekheaddlldll(so.data.charmechahead[slotselected][robotused], so.data.mechaatktemp[slotselected][robotused]);
debuggeroutput("Attack with BODY");
cekcost(headskillnumba[so.data.charmechahead[slotselected][robotused]][0], "player");
} else {
if (skilldariparts == 2){
debuggeroutput("Attack with HAND");
if (partske == 1){
_local10 = [undefined, so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused]];
cekhanddlldll(_local10[_arg1.currentTarget.tipepartske], _arg1.currentTarget.skillno, so.data.mechaatktemp[slotselected][robotused]);
cekcost(armskillnumba[so.data.charmechahand1[slotselected][robotused]][skillnodariparts], "player");
} else {
if (partske == 2){
cekhanddlldll(_arg1.currentTarget.frameparts, _arg1.currentTarget.skillno, so.data.mechaatktemp[slotselected][robotused]);
cekcost(armskillnumba[so.data.charmechahand2[slotselected][robotused]][skillnodariparts], "player");
};
};
};
};
trace(((("energy : " + playerenergy) + " req : ") + cekplayercost));
debuggeroutput("Energy req TRUE");
btncancel.visible = true;
skillselecttarget = true;
mcblacker.visible = true;
enemymecha.gotoAndStop("frontidle");
mcmechaenemy2.visible = true;
mcmechaenemy2.x = enemymecha.x;
mcmechaenemy2.y = enemymecha.y;
mcmechaenemy2.mc1.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][0]);
mcmechaenemy2.mc2.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][1]);
mcmechaenemy2.mc3.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][2]);
mcmechaenemy2.mc4.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][3]);
mcmechaenemy2.mc5.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][4]);
_local5 = 1;
while (_local5 <= 5) {
_local11 = [undefined, 0, 1, 2, 3, 4];
_local12 = [undefined];
_local13 = mcmechaenemy2.getChildByName(("btn" + _local5));
if (musuhstatsummary[(_local5 - 1)] > 0){
_local13.gotoAndPlay(1);
} else {
_local13.gotoAndStop(1);
};
_local5++;
};
_local5 = 1;
while (_local5 <= 5) {
_local14 = mcmechaenemy2.getChildByName(("mc" + _local5));
_local14.visible = false;
_local5++;
};
stage.addEventListener(Event.ENTER_FRAME, overtarget);
stage.addEventListener(MouseEvent.CLICK, targetpartsclick);
};
};
}
public function cekcost(_arg1:Object, _arg2:String):void{
var _local3:*;
_local3 = 0;
while (_local3 < linkagetipe.length) {
if (_arg1 == linkagetipe[_local3]){
if (_arg2 == "enemy"){
enemyrandskillcost = linkagecost[_local3];
} else {
if (_arg2 == "player"){
cekplayercost = linkagecost[_local3];
};
};
break;
};
_local3++;
};
}
public function mechaloadstandart(_arg1:Event):void{
tetapkanlistarraydipakebuwatcekhp();
cekdaraheffect(listarraydipakebuwatcekhp, mechaused, playermechaeffectcooldown);
if (battleanimationbool == false){
loadstandartmecha(_arg1.target);
};
}
public function cekexptonaeklevel(_arg1:int):void{
tahapcekling = 0;
exptemp = _arg1;
tempraiderexp = so.data.raiderexp[slotselected];
tempraiderexpmax = so.data.raiderexpmax[slotselected];
leveltemp = so.data.raiderlevel[slotselected];
do {
_arg1--;
var _local2 = so.data.raiderexp;
var _local3 = slotselected;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (so.data.raiderexp[slotselected] >= so.data.raiderexpmax[slotselected]){
trace(("naek level raider : " + so.data.raiderhp[slotselected]));
so.data.raiderhp[slotselected] = (so.data.raiderhp[slotselected] + penambahanhprider);
trace(("naek level raider jadi : " + so.data.raiderhp[slotselected]));
so.data.raideratk[slotselected] = (so.data.raideratk[slotselected] + penambahanatkrider);
so.data.raiderdef[slotselected] = (so.data.raiderdef[slotselected] + penambahandefrider);
so.data.raiderspd[slotselected] = (so.data.raiderspd[slotselected] + penambahanspdrider);
_local2 = so.data.raiderlevel;
_local3 = slotselected;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
so.data.raiderwages[slotselected] = (so.data.raiderwages[slotselected] + 25);
so.data.raiderexp[slotselected] = 0;
so.data.raiderexpmax[slotselected] = (so.data.raiderexpmax[slotselected] + 10);
mctrainresult.txthp.text = ("HP : " + so.data.raiderhp[slotselected]);
mctrainresult.txtatk.text = ("ATK : " + so.data.raideratk[slotselected]);
mctrainresult.txtdef.text = ("DEF : " + so.data.raiderdef[slotselected]);
mctrainresult.txtspd.text = ("SPD : " + so.data.raiderspd[slotselected]);
};
} while (_arg1 > 0);
ridertemp = [so.data.raiderhp[slotselected], so.data.raideratk[slotselected], so.data.raiderdef[slotselected], so.data.raiderspd[slotselected]];
stage.addEventListener(Event.ENTER_FRAME, barexpmovement);
}
public function createtrainattack(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = cekattackbonus(so.data.mechaatktemp[slotselected][robotused]);
trace(("DIKURANGI SEBANYAK : " + _local1));
_local2 = [undefined, 2, 0, 2];
_local3 = [undefined, 0, 1, 1];
_local4 = 1;
while (_local4 <= 3) {
_local5 = buildingused.mc1.getChildByName(("mctarget" + _local4));
buildingused.mc1.getChildByName(("mctarget" + _local4)).x = _local5.statx;
_local5.y = _local5.staty;
_local5.mcmark.x = -10.8;
_local5.mcmark.y = -36.3;
_local5.mcstand.gotoAndStop(so.data.trainattacklevel[slotselected]);
_local5.mcmark.gotoAndStop(1);
_local5.mcmark.mcmarker.visible = true;
_local5.dead = false;
_local5.speedtargety = _local2[so.data.trainattacklevel[slotselected]];
_local5.naek = false;
_local5.turunsebanyak = 10;
_local5.turunsebanyaktemp = _local5.turunsebanyak;
_local5.speedx = (standartspeedx * _local3[so.data.trainattacklevel[slotselected]]);
_local5.arahjalan = "right";
_local5.speedy = (standartspeedy * _local3[so.data.trainattacklevel[slotselected]]);
_local5.cooldown = randRange(0, 50);
_local5.cooldowntemp = _local5.cooldown;
_local5.health = (trainattackhealth[so.data.trainattacklevel[slotselected]] - _local1);
_local5.healthtemp = _local5.health;
_local5.mouseChildren = true;
_local5.mouseEnabled = true;
_local5.mcmark.mouseChildren = true;
_local5.mcmark.mouseEnabled = true;
_local5.buttonMode = true;
_local5.mcmark.removeEventListener(MouseEvent.CLICK, obstacleattackclick);
_local5.mcmark.removeEventListener(MouseEvent.MOUSE_OVER, obstaclespeedover);
_local5.mcmark.removeEventListener(MouseEvent.MOUSE_OUT, obstaclespeedout);
_local5.mcmark.addEventListener(MouseEvent.CLICK, obstacleattackclick);
_local5.mcmark.addEventListener(MouseEvent.MOUSE_OVER, obstaclespeedover);
_local5.mcmark.addEventListener(MouseEvent.MOUSE_OUT, obstaclespeedout);
_local4++;
};
}
public function connectlg(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
}
public function mechanicfired(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = 0;
_local3 = 1;
while (_local3 <= 8) {
if (so.data.mechanic[slotselected][_local3].exist == true){
_local2++;
};
_local3++;
};
if (_local2 > 1){
mcfiremechanic.visible = true;
nomechanicfire = _arg1.currentTarget.parent.nomechanic;
} else {
mcnofire.visible = true;
};
}
public function tesbuwatmenangdua(){
var _local1:*;
var _local2:*;
var _local3:*;
so.data.championshipwinner2[slotselected][1] = 1;
_local1 = new Array();
_local2 = 5;
while (_local2 <= 8) {
if (so.data.championshipwinner[slotselected][_local2] == 1){
_local1[_local1.length] = _local2;
};
_local2++;
};
_local3 = randRange(0, (_local1.length - 1));
so.data.championshipwinner2[slotselected][_local1[_local3]] = 1;
trace(("yg menang no : " + _local1[_local3]));
}
public function createstoprepair(){
var _local1:*;
var _local2:*;
if (soundchannelrepair != null){
soundchannelrepair.stop();
soundchannelrepair = null;
};
btnendday.visible = true;
so.data.onautorepairbool[slotselected][robotused] = false;
so.data.charmecharepairbool[slotselected][robotused] = false;
stage.removeEventListener(Event.ENTER_FRAME, repairloadingtime);
mechaused.mcprogress.visible = false;
_local1 = 1;
while (_local1 <= 8) {
_local2 = buildingused.getChildByName(("mcstaff" + _local1));
if (_local2 != null){
_local2.visible = false;
};
_local2 = buildingused.getChildByName(("mcstaffidle" + _local1));
if (_local2 != null){
if (so.data.mechanic[slotselected][_local1].team == robotused){
_local2.mcclash.visible = false;
_local2.visible = true;
};
};
_local1++;
};
mcui.gotoAndPlay("up");
mcui2.gotoAndPlay("up");
mcui3.gotoAndPlay("up");
mcui5.gotoAndPlay("up");
txtrepairpercent.visible = true;
mecharepairbool = false;
loadtraingarage();
}
public function creategroupname(){
var logonext:Function;
var logoprev:Function;
var logook:Function;
logonext = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (mcteamlogochoose.mclogo.currentFrame == mcteamlogochoose.mclogo.totalFrames){
mcteamlogochoose.mclogo.gotoAndStop(1);
} else {
mcteamlogochoose.mclogo.nextFrame();
};
};
logoprev = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (mcteamlogochoose.mclogo.currentFrame == 1){
mcteamlogochoose.mclogo.gotoAndStop(mcteamlogochoose.mclogo.totalFrames);
} else {
mcteamlogochoose.mclogo.prevFrame();
};
};
logook = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (mcteamlogochoose.txt1.text != ""){
so.data.tutorialstep[slotselected] = 2;
so.data.teamname[slotselected] = mcteamlogochoose.txt1.text;
so.data.teamlogo[slotselected] = mcteamlogochoose.mclogo.currentFrame;
mcteamlogochoose.visible = false;
createtutortext();
} else {
mcteamlogochoose.txt1.text = "Team Robo";
};
};
buwatsavekeinikosong(slotselected);
so.data.savedata[slotselected] = 1;
so.data.onautorepairbool[slotselected][robotused] = false;
mcteamlogochoose.visible = true;
stage.focus = mcteamlogochoose.txt1;
mcteamlogochoose.btnnext.addEventListener(MouseEvent.CLICK, logonext);
mcteamlogochoose.btnprev.addEventListener(MouseEvent.CLICK, logoprev);
mcteamlogochoose.btnok.addEventListener(MouseEvent.CLICK, logook);
}
public function mechanicbuydown(_arg1:MouseEvent):void{
_arg1.currentTarget.addEventListener(Event.ENTER_FRAME, mechanicfollowmouse);
}
public function tesbuwatmenangsatu(){
var _local1:*;
so.data.championshipwinner[slotselected][1] = 1;
_local1 = randRange(3, 4);
so.data.championshipwinner[slotselected][_local1] = 1;
_local1 = randRange(5, 6);
so.data.championshipwinner[slotselected][_local1] = 1;
_local1 = randRange(7, 8);
so.data.championshipwinner[slotselected][_local1] = 1;
}
public function createtutortext10(){
objtotext = tutortext10;
createtexting();
}
public function createtutortext11(){
mcshop.mcblink.gotoAndStop(2);
objtotext = tutortext11;
createtexting();
}
public function createtutortext13(){
mcuimechastatus.mcblink.gotoAndStop(2);
objtotext = tutortext13;
createtexting();
}
public function createtutortext14(){
mcui4.mcblinker.gotoAndStop(3);
mcuimechastatus.mcblink.gotoAndStop(1);
objtotext = tutortext14;
createtexting();
}
public function createtutortext15(){
mcui2.mc1.mcblink.gotoAndStop(4);
objtotext = tutortext15;
createtexting();
}
public function createtutortext16(){
mcui2.mc1.mcblink.gotoAndStop(7);
objtotext = tutortext16;
createtexting();
}
public function raidershopfollowmouse(_arg1:Event):void{
var _local2:Point;
_local2 = new Point(mouseX, mouseY);
_local2 = mcridershop.globalToLocal(_local2);
_arg1.currentTarget.x = _local2.x;
_arg1.currentTarget.y = _local2.y;
}
public function createtutortext12(){
mcui2.mc1.mcblink.gotoAndStop(3);
objtotext = tutortext12;
createtexting();
}
public function loadbattleprep(){
var exittournamenok:Function;
var exittournamencancel:Function;
var grademecha:*;
var arraytemphead:*;
var arraytemparm:*;
var arraytempleg:*;
var i:*;
var battleprepstart:Function;
var battleprepback:Function;
var randpart:*;
exittournamenok = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
transisi("ingame");
animasiwin = true;
buwattournamentlosesetting();
};
exittournamencancel = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcexittournamentsure.visible = false;
};
battleprepstart = function (_arg1:MouseEvent):void{
var _local2 = so.data.weeke;
var _local3 = slotselected;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (so.data.championshipcountdown[slotselected] > 0){
_local2 = so.data.championshipcountdown;
_local3 = slotselected;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
};
soundclick.play(0, 1, new SoundTransform(volumemusic));
mechaused.removeEventListener(Event.ENTER_FRAME, mechaloadstandart);
transisi("battle");
};
battleprepback = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
trace(("bandingin : " + so.data.championshipcountdown[slotselected]));
trace(("mbe : " + so.data.championshipcountdownmax[slotselected]));
mechaused.removeEventListener(Event.ENTER_FRAME, mechaloadstandart);
if (tournamentbool == true){
mcexittournamentsure.visible = true;
} else {
tournamentbool = false;
transisi("ingame");
};
};
enemymechatargetingauto = -1;
if (so.data.grade[slotselected] > 1){
randpart = [1, 1, 2, 3, 4, 5];
enemymechatargetingauto = randpart[randRange(0, (randpart.length - 1))];
};
soundchannel1.stop();
soundchannel1 = null;
playerloseleg = false;
enemyloseleg = false;
mcexittournamentsure.visible = false;
mcexittournamentsure.btnok.addEventListener(MouseEvent.CLICK, exittournamenok);
mcexittournamentsure.btncancel.addEventListener(MouseEvent.CLICK, exittournamencancel);
mcbg.gotoAndStop(1);
trace("2");
mechaused = mcbg.mcthumbplayer.mcmecha;
trace("3");
mechaused.addEventListener(Event.ENTER_FRAME, mechaloadstandart);
mcbg.mcthumbplayer.txtname.text = so.data.teamname[slotselected];
mcbg.mcthumbplayer.txthp.text = so.data.mechahp[slotselected][robotused];
mcbg.mcthumbplayer.txtatk.text = so.data.mechaatk[slotselected][robotused];
mcbg.mcthumbplayer.txtdef.text = so.data.mechadef[slotselected][robotused];
mcbg.mcthumbplayer.txtspd.text = so.data.mechaspd[slotselected][robotused];
mcbg.mcthumbplayer.mclogo.gotoAndStop(so.data.teamlogo[slotselected]);
trace("1");
if (tournamentbool == false){
if (so.data.tutorialcomplete[slotselected] == false){
randenemy = 8;
} else {
randenemy = randRange(1, 7);
};
};
if ((((so.data.championshipphase[slotselected] == 4)) && ((tournamentbool == true)))){
mcbg.mcboss.gotoAndPlay(2);
};
if ((((so.data.grade[slotselected] == 6)) && ((so.data.championshipphase[slotselected] == 4)))){
randenemy = 1;
};
trace(("RAND ENEMY : " + randenemy));
trace(("a " + mcbg.mcthumbenemy.txtname));
trace(("b " + so.data.grade[slotselected]));
trace(("cek isine : " + namesummary[5]));
mcbg.mcthumbenemy.txtname.text = namesummary[so.data.grade[slotselected]][randenemy];
trace("a1");
mcbg.mcthumbenemy.mclogo.gotoAndStop((((so.data.grade[slotselected] - 1) * 7) + randenemy));
trace("a");
if (mcbg.mcthumbenemy.mclogo.currentFrame == mcbg.mcthumbplayer.mclogo.currentFrame){
mcbg.mcthumbenemy.mclogo.gotoAndStop(mcbg.mcthumbenemy.mclogo.totalFrames);
};
trace("b");
trace(("RAND ENEMY : " + itemsummary[so.data.grade[slotselected]][randenemy]));
trace(("RAND ENEMY 2 : " + itemsummary[so.data.grade[slotselected]][randenemy][0]));
trace(("a" + objarraylistsummaryeffect[2][itemsummary[so.data.grade[slotselected]][randenemy][0]]));
musuhstatsummary = [1, 1, 1, 1, 1];
cekstatsummarymusu();
musuhhptemp = musuhhp;
musuhatktemp = musuhatk;
musuhdeftemp = musuhdef;
musuhspdtemp = musuhspd;
mcbg.mcthumbenemy.txthp.text = musuhhp;
mcbg.mcthumbenemy.txtatk.text = musuhatk;
mcbg.mcthumbenemy.txtdef.text = musuhdef;
mcbg.mcthumbenemy.txtspd.text = musuhspd;
musuhtipe = randenemy;
trace(("MUSUH TIPE : " + musuhtipe));
mcbg.mcthumbenemy.mcmecha.mcprogress.visible = false;
mcbg.mcthumbenemy.mcmecha.mchead.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][randenemy][0]);
if (itemsummary[so.data.grade[slotselected]][randenemy][1] != 0){
mcbg.mcthumbenemy.mcmecha.mchand1.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][randenemy][1]);
} else {
mcbg.mcthumbenemy.mcmecha.mchand1.visible = false;
};
if (itemsummary[so.data.grade[slotselected]][randenemy][2] != 0){
mcbg.mcthumbenemy.mcmecha.mchand2.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][randenemy][2]);
} else {
mcbg.mcthumbenemy.mcmecha.mchand2.visible = false;
};
mcbg.mcthumbenemy.mcmecha.mcleg1.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][randenemy][3]);
mcbg.mcthumbenemy.mcmecha.mcleg2.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][randenemy][4]);
grademecha = so.data.charmechachip[slotselected][robotused];
arraytemphead = new Array();
arraytemparm = new Array();
arraytempleg = new Array();
i = 1;
while (i < objarraylistsummary.length) {
j = 1;
while (j < objarraylistsummary[i].length) {
if (objarraylistsummary[i][j][1] <= grademecha){
if (i == 2){
arraytemphead[arraytemphead.length] = head[j];
} else {
if (i == 3){
arraytemparm[arraytemparm.length] = arm[j];
} else {
if (i == 4){
arraytempleg[arraytempleg.length] = leg[j];
};
};
};
};
j++;
};
i = (i + 1);
};
trace(arraytemphead);
trace(arraytemparm);
trace(arraytempleg);
mcbg.gotoAndPlay(2);
mcbg.btnstart.addEventListener(MouseEvent.CLICK, battleprepstart);
mcbg.btnback.addEventListener(MouseEvent.CLICK, battleprepback);
}
public function loadtutorattack(){
var _local1:*;
mcdialogbox.btnstart.visible = true;
mcdialogbox.txtjudul.text = "-TRAINING TUTORIAL-";
mcdialogbox.txt1.text = "destroy as many target by clicking them before the time ends";
_local1 = mcdialogbox.getChildByName((("mc" + targetmark) + "mark"));
_local1.visible = true;
_local1.gotoAndStop(so.data.trainattacklevel[slotselected]);
mcdialogbox.mctechguy.gotoAndStop(1);
mcdialogbox.btnnext2.visible = false;
mcdialogbox.btncancel.visible = true;
mcdialogbox.btnclose.visible = false;
mcdialogbox.btnskiptutorial.visible = false;
if (so.data.trainattacklevel[slotselected] < 3){
mcdialogbox.btnupgrade.visible = true;
} else {
mcdialogbox.btnupgrade.visible = false;
};
mcdialogbox.gotoAndPlay(2);
mcdialogbox.btnstart.addEventListener(MouseEvent.CLICK, attackstart);
}
function frame3(){
stop();
btnlink.addEventListener(MouseEvent.CLICK, accesslink);
stage.addEventListener(Event.ENTER_FRAME, skipsplash);
}
function frame4(){
volumemusic = 1;
volumemainmusic = 1;
soundonmarket = new ondoingmarketsound();
soundonlab = new ondoinglabsound();
soundongarage = new ondoinggaragesound();
soundbattle = new battlesound();
soundgarage = new garagesound();
soundintro = new introsound();
soundclash = new doorclosesound();
soundclick = new clickattacksound();
soundgerakan2 = new gerakan2sound();
soundelectricon = new electriconsound();
sounddataprocess = new dataprocesssound();
soundrepair = new repairsound();
soundsuccess = new successound();
soundrapid = new rapidshotsound();
sounddestroy = new destroysound();
soundbeep = new beepsound();
soundwintraining = new wintrainingsound();
soundlaser1 = new laser1sound();
soundlaser2 = new laser2sound();
soundlaser3 = new laser3sound();
soundlaser4 = new laser4sound();
soundlaser5 = new laser5sound();
soundelectric = new juruselectricsound();
soundforcefield = new forcefieldsound();
soundrocket = new rocketsmallsound();
soundberhasil = new berhasilsound();
soundgabisaclick = new gabisaclicksound();
soundspeedclick = new speedclick();
soundbledar = new bledarsound();
sounddamagepart = new damagesound();
sounddestroyedpart = new destroyedpartsound();
soundmiss = new misssound();
soundtotaldestroyed = new totaldestroyed();
soundhurray = new peoplehurray();
soundboo = new peopleboo();
}
function frame5(){
stop();
bolerepair = false;
stage.quality = "HIGH";
mclogolg.btnlg.addEventListener(MouseEvent.CLICK, connectlg);
mecharepairbool = false;
wewe = true;
allpartsplus = 0;
yagantihari = false;
yareport = false;
doneactivity = false;
mccredits.gotoAndStop(1);
mccredits.visible = false;
btnmutemusic.addEventListener(MouseEvent.CLICK, mutemusicingame);
mcanimasi.mc1.gotoAndStop(1);
mcanimasi.gotoAndPlay(2);
mcmainmenu.gotoAndPlay(2);
mcmainmenu.visible = true;
mcdeletesavegame.visible = false;
trace("h");
perlambatanmechanicexp = 10;
if (soundchannel1 != null){
soundchannel1.stop();
};
soundchannel1 = soundintro.play(0, 999, new SoundTransform(volumemainmusic));
trace("f");
animasiwin = false;
playerloseleg = false;
enemyloseleg = false;
gradetemp = 0;
gradeforfreematch = 0;
deficitbool = false;
pausegame = false;
blumscalespeed = false;
tournamentbool = false;
tournamentlose = false;
randenemy = 0;
mechaskill = new Array();
mechaskilltipeparts = new Array();
enemyskill = new Array();
enemyskilltipeparts = new Array();
enemyskilltipepartske = new Array();
enemyskillno = new Array();
namerand = ["Adams", "Allen", "Alvarez", "Baker", "Bennett", "Boyd", "Chavez", "Chapman", "Cook", "Cooper", "Dunn", "Denilson", "Fowler", "Gomez", "Gibson", "Graham", "Gonzales", "Howard", "Henderson", "Hughes", "Hamilton", "Lawrence", "Miller", "Martin", "Morris", "Myung", "Nelson", "Navarro", "Osborne", "Ozawa", "Owen", "Parsons", "Rivers", "Stanley", "Chubby", "Goody", "Moyo"];
leg = [undefined, "Sugar Square", "Bomba Crawler", "Bomba Cascada", "Barclay Cougar", "Barclay Creek", "Barclay Avalon", "Galaxy Titanium", "Galaxy Sphere", "Viper Sisco", "Viper Eternal", "Viper Cross", "Titan Express", "Titan Core", "Musashi Sashimi", "Musashi Wasabi", "Odin Baracuda", "Odin Assault", "Odin Armageddon", "Imhotep Abydos", "Ramses Hatsepsut", "Terra Sonic"];
legclass = [undefined, 3, 1, 1, 2, 2, 2, 1, 1, 3, 3, 3, 1, 1, 1, 1, 3, 3, 3, 2, 2, 2];
legtipetext = [undefined, "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "-NONE-", "5% Chance to counter attack", "-NONE-", "5% chance to depleted enemy Mecha energy", "15% chance to block enemy attack"];
legeffectprogram = [undefined, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "counter", "", "deplete", "block"];
legprice = [undefined, 250, 275, 575, 260, 550, 925, 975, 1300, 700, 1100, 1300, 1250, 1525, 1375, 2000, 900, 1250, 2000, 1275, 1525, 4000];
leg1unlock = [undefined, 1];
leg1effect = [undefined, [50, 5, 5, 10]];
leg1numba = [undefined, 0, 0, 0, 0];
leg2unlock = [undefined, 1];
leg2effect = [undefined, [50, 5, 5, 20]];
leg2numba = [undefined, 0, 0, 0, 0];
leg3unlock = [undefined, 2];
leg3effect = [undefined, [200, 10, 10, 40]];
leg3numba = [undefined, 0, 0, 0, 0];
leg4unlock = [undefined, 1];
leg4effect = [undefined, [50, 5, 10, 10]];
leg4numba = [undefined, 0, 0, 0, 0];
leg5unlock = [undefined, 2];
leg5effect = [undefined, [200, 10, 20, 20]];
leg5numba = [undefined, 0, 0, 0, 0];
leg6unlock = [undefined, 3];
leg6effect = [undefined, [450, 30, 30, 30]];
leg6numba = [undefined, 0, 0, 0, 0];
leg7unlock = [undefined, 3];
leg7effect = [undefined, [450, 15, 15, 60]];
leg7numba = [undefined, 0, 0, 0, 0];
leg8unlock = [undefined, 4];
leg8effect = [undefined, [800, 20, 40, 120]];
leg8numba = [undefined, 0, 0, 0, 0];
leg9unlock = [undefined, 2];
leg9effect = [undefined, [100, 20, 10, 40]];
leg9numba = [undefined, 0, 0, 0, 0];
leg10unlock = [undefined, 3];
leg10effect = [undefined, [150, 30, 30, 90]];
leg10numba = [undefined, 0, 0, 0, 0];
leg11unlock = [undefined, 4];
leg11effect = [undefined, [400, 40, 40, 160]];
leg11numba = [undefined, 0, 0, 0, 0];
leg12unlock = [undefined, 4];
leg12effect = [undefined, [400, 80, 40, 80]];
leg12numba = [undefined, 0, 0, 0, 0];
leg13unlock = [undefined, 5];
leg13effect = [undefined, [750, 125, 75, 150]];
leg13numba = [undefined, 0, 0, 0, 0];
leg14unlock = [undefined, 4];
leg14effect = [undefined, [600, 40, 60, 120]];
leg14numba = [undefined, 0, 0, 0, 0];
leg15unlock = [undefined, 5];
leg15effect = [undefined, [1000, 75, 75, 200]];
leg15numba = [undefined, 0, 0, 0, 0];
leg16unlock = [undefined, 3];
leg16effect = [undefined, [300, 30, 30, 60]];
leg16numba = [undefined, 0, 0, 0, 0];
leg17unlock = [undefined, 4];
leg17effect = [undefined, [400, 60, 40, 120]];
leg17numba = [undefined, 0, 0, 0, 0];
leg18unlock = [undefined, 5];
leg18effect = [undefined, [1000, 100, 100, 200]];
leg18numba = [undefined, 5, 5, 5];
leg19unlock = [undefined, 4];
leg19effect = [undefined, [400, 60, 60, 80]];
leg19numba = [undefined, 0, 0, 0];
leg20unlock = [undefined, 5];
leg20effect = [undefined, [750, 100, 100, 150]];
leg20numba = [undefined, 5, 5, 5];
leg21unlock = [undefined, 6];
leg21effect = [undefined, [1250, 125, 125, 250]];
leg21numba = [undefined, 5, 5, 5];
arm = [undefined, "Bomba Cannon", "Bomba GZ", "Barclay Point", "Barclay Maverick", "Barclay Centaur", "Galaxy Macro", "Galaxy Zeon", "Viper Proton", "Viper Magnatron", "Viper Grand", "Titan Pounder", "Titan Flakpanzer", "Musashi Teriyaki", "Musashi Tempura", "Odin Skyscrapper", "Odin Crusher", "Odin\tBattletech", "Imhotep Neytiri", "Imhotep Djedkare", "Saber Alpha", "Saber Omega"];
armclass = [undefined, 1, 1, 2, 2, 2, 1, 1, 3, 3, 3, 1, 1, 1, 1, 3, 3, 3, 2, 2, 2, 3];
armtipetext = [undefined, "-NONE-", "5% chance to depleted enemy Mecha energy", "5% chance to crash enemy mecha", "5% chance to crash enemy mecha", "5% chance to crash enemy mecha", "5% chance to depleted enemy Mecha energy", "5% Chance to counter attack", "-NONE-", "5% chance to slow enemy mecha", "5% chance to slow enemy mecha", "5% chance to slow enemy mecha", "5% Chance to counter attack", "-NONE-", "5% chance to critical attack", "Convert 5% attack damage to health", "Convert 5% attack damage to health", "5% chance to depleted enemy Mecha energy", "5% chance to slow enemy mecha", "5% chance to slow enemy mecha", "75% chance to counter attack", "25% chance to depleted enemy Mecha energy"];
armeffectprogram = [undefined, "-NONE-", "deplete", "stun", "stun", "stun", "deplete", "counter", "-NONE-", "slow", "slow", "slow", "counter", "-NONE-", "crit", "convert", "convert", "deplete", "slow", "slow", "counter", "deplete"];
armskill = [undefined, ["Rapid Fire", "Super Shot"], ["Flame Shot"], ["Beam Shot", "Electrical Shot"], ["Fire Shot", "Electrical Shot"], ["Burning Shot"], ["Burning Shot", "Red Mine"], ["Burning Beam Shot", "Mega Air Cannon"], ["Flame Shot", "Rapid Fire", "Yellow Shuriken"], ["Burning Shot", "Rapid Fire", "Yellow Shuriken"], ["Super Flame Shot", "Super Rapid Fire", "Yellow Shuriken"], ["Super Flame Shot", "Air Cannon", "Blue Grenade"], ["Blaster Shot", "Super Air Cannon", "Blue Grenade"], ["Super Rapid Fire", "Air Cannon", "Leech Bot I"], ["Hyper Rapid Fire", "Super Rapid Fire", "Rapid Fire"], ["Burning Shot", "Beam Shock"], ["Super Flame Shot", "Beam Shock"], ["Proton Beam Shot", "Proton Shock", "Doom Bringer Blast"], ["Proton Beam Shot", "Super Rapid Fire", "Leech Bot II"], ["Blaster Shot", "Hyper Rapid Fire", "Leech Bot III"], ["Doombringer Blast", "Proton Shock", "Leech Bot III"], ["Yellow Shuriken", "Super Air Cannon", "Burning Beam Shot"]];
armskillnumba = [undefined, [rapidfire, supershot], [flameshot], [beamshot, electricalshot], [fireshot, electricalshot], [burningshot], [burningshot, redmine], [burningbeamshot, megaaircannon], [flameshot, rapidfire, yellowshuriken], [burningshot, rapidfire, yellowshuriken], [superflameshot, superrapidfire, yellowshuriken], [superflameshot, aircannon, bluegrenade], [blastershot, superaircannon, bluegrenade], [superrapidfire, aircannon, leechbot1], [hyperrapidfire, superrapidfire, rapidfire], [burningshot, beamshock], [superflameshot, beamshock], [protonbeamshot, protonshock, doombringerblast], [protonbeamshot, superrapidfire, leechbot2], [blastershot, hyperrapidfire, leechbot3], [doombringerblast, protonshock, leechbot3], [yellowshuriken, superaircannon, burningbeamshot]];
armskilleffect = [undefined, [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
armskilleffectpersen = [undefined, undefined, [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
armskillframe = [undefined, [10, 7], [9], [6, 11], [8, 11], [12], [12, 13], [14, 15], [9, 10, 16], [12, 10, 16], [17, 18, 16], [17, 19, 20], [21, 22, 20], [18, 19, 23], [24, 18, 10], [12, 25], [17, 25], [26, 27, 28], [26, 18, 29], [21, 24, 30], [28, 27, 29], [16, 22, 14]];
armskilldamage = [undefined, [5, 30], [50], [20, 25], [40, 25], [60], [60, 40], [80, 10], [50, 5, 40], [60, 5, 40], [70, 10, 40], [70, 5, 40], [100, 8, 40], [10, 5, 40], [25, 10, 5], [60, 50], [70, 50], [90, 75, 100], [90, 10, 60], [100, 25, 85], [100, 75, 85], [40, 8, 80]];
armprice = [undefined, 250, 550, 350, 600, 900, 1000, 1250, 700, 1100, 1350, 1350, 1700, 1400, 1800, 1200, 1375, 1975, 1400, 2000, 4000, 4000];
arm1unlock = [undefined, 1];
arm1effect = [undefined, [50, 10, 5, 10]];
arm1numba = [undefined, 0, 0, 0];
arm2unlock = [undefined, 2];
arm2effect = [undefined, [200, 20, 10, 20]];
arm2numba = [undefined, 5, 5, 5];
arm3unlock = [undefined, 1];
arm3effect = [undefined, [50, 10, 10, 5]];
arm3numba = [undefined, 5, 5, 5];
arm4unlock = [undefined, 2];
arm4effect = [undefined, [200, 20, 20, 10]];
arm4numba = [undefined, 5, 5, 5];
arm5unlock = [undefined, 3];
arm5effect = [undefined, [450, 60, 30, 15]];
arm5numba = [undefined, 5, 5, 5];
arm6unlock = [undefined, 3];
arm6effect = [undefined, [450, 30, 30, 30]];
arm6numba = [undefined, 5, 5, 5];
arm7unlock = [undefined, 4];
arm7effect = [undefined, [800, 40, 40, 60]];
arm7numba = [undefined, 5, 5, 5];
arm8unlock = [undefined, 2];
arm8effect = [undefined, [100, 40, 10, 20]];
arm8numba = [undefined, 0, 0, 0];
arm9unlock = [undefined, 3];
arm9effect = [undefined, [150, 60, 30, 45]];
arm9numba = [undefined, 5, 5, 5];
arm10unlock = [undefined, 4];
arm10effect = [undefined, [400, 80, 40, 80]];
arm10numba = [undefined, 5, 5, 5];
arm11unlock = [undefined, 4];
arm11effect = [undefined, [400, 160, 40, 40]];
arm11numba = [undefined, 5, 5, 5];
arm12unlock = [undefined, 5];
arm12effect = [undefined, [750, 250, 75, 75]];
arm12numba = [undefined, 5, 5, 5];
arm13unlock = [undefined, 4];
arm13effect = [undefined, [600, 80, 40, 60]];
arm13numba = [undefined, 0, 0, 0];
arm14unlock = [undefined, 5];
arm14effect = [undefined, [1000, 150, 75, 100]];
arm14numba = [undefined, 5, 5, 5];
arm15unlock = [undefined, 3];
arm15effect = [undefined, [300, 60, 30, 30]];
arm15numba = [undefined, 5, 5, 5];
arm16unlock = [undefined, 4];
arm16effect = [undefined, [400, 120, 40, 60]];
arm16numba = [undefined, 5, 5, 5];
arm17unlock = [undefined, 5];
arm17effect = [undefined, [1000, 200, 100, 100]];
arm17numba = [undefined, 5, 5, 5];
arm18unlock = [undefined, 4];
arm18effect = [undefined, [400, 120, 60, 40]];
arm18numba = [undefined, 5, 5, 5];
arm19unlock = [undefined, 5];
arm19effect = [undefined, [750, 200, 100, 75]];
arm19numba = [undefined, 5, 5, 5];
arm20unlock = [undefined, 6];
arm20effect = [undefined, [1250, 250, 120, 125]];
arm20numba = [undefined, 75, 5, 5];
arm21unlock = [undefined, 6];
arm21effect = [undefined, [1250, 250, 120, 125]];
arm21numba = [undefined, 25, 5, 5];
head = [undefined, "Sugar Ball", "Bomba Bowl", "Bomba Vista", "Barclay Arc", "Barclay Gaston", "Barclay King", "Galaxy Quadmount", "Galaxy Turbulance", "Viper Ostwind", "Viper Bios", "Viper Atomic", "Titan Spark", "Titan Knight", "Musashi Kimochi", "Musashi Dorayaki", "Odin Universe", "Odin Assault", "Odin Ultimate", "Imhotep Anubis", "Ramses Osiris", "Terra Saber"];
headclass = [undefined, 3, 1, 1, 2, 2, 2, 1, 1, 3, 3, 3, 1, 1, 1, 1, 3, 3, 3, 2, 2, 1];
headskill = [undefined, "Charge", "Charge", "Strong Charge", "Charge", "Strong Charge", "Elegant Charge", "Elegant Charge", "Sexy Charge", "Strong Charge", "Elegant Charge", "Sexy Charge", "Sexy Charge", "Deadly Charge", "Sexy Charge", "Deadly Charge", "Elegant Charge", "Sexy Charge", "Deadly Charge", "Sexy Charge", "Deadly Charge", "Elegant Charge"];
headskillframe = [undefined, 1, 1, 2, 1, 2, 3, 3, 4, 2, 3, 4, 4, 5, 4, 5, 3, 4, 5, 4, 5, 1];
headskillnumba = [undefined, [skillchargehijau], [skillchargehijau], [skillchargeungu], [skillchargehijau], [skillchargeungu], [skillchargehijaukuning], [skillchargehijaukuning], [skillchargekuning], [skillchargeungu], [skillchargehijaukuning], [skillchargekuning], [skillchargekuning], [skillchargebiru], [skillchargekuning], [skillchargebiru], [skillchargehijaukuning], [skillchargekuning], [skillchargebiru], [skillchargekuning], [skillchargebiru], [skillchargehijaukuning]];
headskilldamage = [undefined, 20, 20, 40, 20, 40, 60, 60, 80, 40, 60, 80, 80, 100, 80, 100, 60, 80, 100, 80, 100, 60];
headprice = [undefined, 300, 450, 600, 500, 700, 1100, 1200, 1300, 775, 1100, 1400, 1375, 2000, 1350, 2000, 1300, 1390, 2000, 1400, 2000, 4000];
headtipetext = [undefined, "-NONE-", "5% chance of critical when charge", "5% chance of critical when charge", "-NONE-", "Self maintenance ability lv.1", "Self maintenance ability lv.2", "-NONE-", "5% chance to block enemy's attack", "-NONE-", "5% chance of critical when charge", "10% chance of critical when charge", "-NONE-", "15% chance to block enemy's attack", "5% chance of critical when charge", "15% chance of critical when charge", "-NONE-", "15% chance of critical when charge", "10% chance of critical when charge", "-NONE-", "Self maintenance ability lv.3", "5% chance to block enemy's attack"];
headeffectprogram = [undefined, "", "crit body", "crit body", "", "heal1", "heal2", "", "block", "", "crit body", "crit body", "", "block", "crit body", "crit body", "", "crit body", "crit body", "", "heal3", "block"];
head1unlock = [undefined, 1];
head1effect = [undefined, [200, 10, 20, 10]];
head1numba = [undefined, 0, 0, 0];
head2unlock = [undefined, 1];
head2effect = [undefined, [200, 10, 20, 20]];
head2numba = [undefined, 5, 10, 15];
head3unlock = [undefined, 2];
head3effect = [undefined, [800, 20, 40, 20]];
head3numba = [undefined, 5, 10, 15];
head4unlock = [undefined, 1];
head4effect = [undefined, [200, 10, 40, 10]];
head4numba = [undefined, 0, 0, 0];
head5unlock = [undefined, 2];
head5effect = [undefined, [800, 20, 80, 20]];
head5numba = [undefined, 1, 1, 1];
head6unlock = [undefined, 3];
head6effect = [undefined, [1800, 60, 120, 30]];
head6numba = [undefined, 2, 2, 2];
head7unlock = [undefined, 3];
head7effect = [undefined, [1800, 30, 120, 60]];
head7numba = [undefined, 0, 0, 0];
head8unlock = [undefined, 4];
head8effect = [undefined, [3200, 40, 160, 120]];
head8numba = [undefined, 5, 7, 10];
head9unlock = [undefined, 2];
head9effect = [undefined, [400, 40, 40, 40]];
head9numba = [undefined, 0, 0, 0];
head10unlock = [undefined, 3];
head10effect = [undefined, [600, 60, 120, 90]];
head10numba = [undefined, 5, 10, 15];
head11unlock = [undefined, 4];
head11effect = [undefined, [1600, 80, 160, 160]];
head11numba = [undefined, 10, 15, 15];
head12unlock = [undefined, 4];
head12effect = [undefined, [1600, 160, 160, 80]];
head12numba = [undefined, 0, 0, 0];
head13unlock = [undefined, 5];
head13effect = [undefined, [3000, 250, 300, 150]];
head13numba = [undefined, 15, 15, 20];
head14unlock = [undefined, 4];
head14effect = [undefined, [2400, 80, 240, 120]];
head14numba = [undefined, 5, 10, 15];
head15unlock = [undefined, 5];
head15effect = [undefined, [4000, 150, 300, 200]];
head15numba = [undefined, 15, 20, 20];
head16unlock = [undefined, 3];
head16effect = [undefined, [1200, 60, 120, 60]];
head16numba = [undefined, 0, 0, 0];
head17unlock = [undefined, 4];
head17effect = [undefined, [1600, 120, 160, 120]];
head17numba = [undefined, 15, 20, 20];
head18unlock = [undefined, 5];
head18effect = [undefined, [4000, 200, 400, 200]];
head18numba = [undefined, 10, 15, 15];
head19unlock = [undefined, 4];
head19effect = [undefined, [1600, 120, 240, 80]];
head19numba = [undefined, 0, 0, 0];
head20unlock = [undefined, 5];
head20effect = [undefined, [3000, 200, 300, 150]];
head20numba = [undefined, 3, 3, 3];
head21unlock = [undefined, 6];
head21effect = [undefined, [5000, 250, 500, 250]];
head21numba = [undefined, 5, 3, 3];
chipset = [undefined, "Ontel Stabilizer", "O-MaX Jupiter", "Apache Vulcan Health", "Apache Vulcan Defense", "Alpha Vulcan Attack", "Alpha Vulcan Speed", "Alpha Vulcan Stabilizer", "Ontel Dragonbreath", "Ontel Vampire", "Mysterious chipset"];
chipsettipetext = [undefined, "Add Rider status distibute to Mecha by", "health restored when Mecha down by", "HP increased by", "DEF increased by", "ATK increased by", "SPD increased by", "All status increased by", "critical rate increased by", "chance to depleted enemy Mecha energy", "Chipset do random effect from all available effect"];
chipseteffectprogram = [undefined, "rider", "down", "hp", "def", "atk", "spd", "all", "crit", "deplete", "random"];
chipset1unlock = [undefined, 1, 1, 2, 2, 3, 4, 5];
chipset1effect = [undefined, 5, 7, 10, 13, 16, 22, 25];
chipset1price = [undefined, 400, 700, 1100, 1400, 1650, 2200, 2500];
chipset2unlock = [undefined, 2, 3, 4];
chipset2effect = [undefined, 10, 20, 30];
chipset2price = [undefined, 1000, 1500, 2250];
chipset3unlock = [undefined, 1, 2, 3, 4, 5];
chipset3effect = [undefined, 20, 25, 30, 35, 40];
chipset3price = [undefined, 300, 450, 600, 750, 900];
chipset4unlock = [undefined, 1, 2, 3, 4, 5];
chipset4effect = [undefined, 15, 20, 25, 30, 35];
chipset4price = [undefined, 300, 450, 600, 750, 900];
chipset5unlock = [undefined, 1, 2, 3, 4, 5];
chipset5effect = [undefined, 15, 20, 25, 30, 35];
chipset5price = [undefined, 300, 450, 600, 750, 900];
chipset6unlock = [undefined, 1, 2, 3, 4, 5];
chipset6effect = [undefined, 15, 20, 25, 30, 35];
chipset6price = [undefined, 300, 450, 600, 750, 900];
chipset7unlock = [undefined, 1, 2, 3, 4, 5];
chipset7effect = [undefined, 10, 15, 20, 25, 30];
chipset7price = [undefined, 325, 475, 625, 775, 925];
chipset8unlock = [undefined, 3, 5];
chipset8effect = [undefined, 10, 17];
chipset8price = [undefined, 900, 1300];
chipset9unlock = [undefined, 4, 5];
chipset9effect = [undefined, 5, 10];
chipset9price = [undefined, 2000, 4000];
chipset10unlock = [undefined, 5];
chipset10effect = [undefined, 10];
chipset10price = [undefined, 6500];
timesecond = 25;
timesecondtemp = timesecond;
trace("e");
stage.addEventListener(Event.ENTER_FRAME, soundmainmenu);
so = SharedObject.getLocal("MechaArena");
fushResult = so.flush(10000000);
trace("d");
cekisiso();
slotselected = 0;
mcanimasi.mc1.btncredits.addEventListener(MouseEvent.CLICK, mainmenucredits);
mccredits.btnbackmainmenu.addEventListener(MouseEvent.CLICK, backtomainmenucredits);
mcanimasi.visible = true;
mcanimasi.mc1.btnplay.addEventListener(MouseEvent.CLICK, mainmenuplay);
mcanimasi.mc1.btnachievements.addEventListener(MouseEvent.CLICK, mainmenuachievements);
mcclickable.addEventListener(MouseEvent.CLICK, clickableaway);
mcanimasi.mc1.btnmoregames.addEventListener(MouseEvent.CLICK, mainmenumoregames);
trace("a");
indexdelete = 0;
i = 1;
while (i <= 3) {
obj = mcanimasi.mc1.getChildByName(("btnslot" + i));
obj2 = mcanimasi.mc1.getChildByName(("btnempty" + i));
obj2.addEventListener(MouseEvent.CLICK, slotchoose);
obj.addEventListener(MouseEvent.CLICK, slotchoose);
obj3 = mcanimasi.mc1.getChildByName(("btndelete" + i));
obj3.addEventListener(MouseEvent.CLICK, savegamesdelete);
i++;
};
trace("b");
mcdeletesavegame.btnok.addEventListener(MouseEvent.CLICK, deletegamesok);
mcdeletesavegame.btncancel.addEventListener(MouseEvent.CLICK, deletegamescancel);
tujuanframe = "";
trace("c");
}
public function cekheaddlldll(_arg1:int, _arg2:int){
var _local3:*;
trace(("2 " + _arg2));
_local3 = ((_arg2 / 3) / 100);
_local3 = (headskilldamage[_arg1] * _local3);
textdamage[0] = int((headskilldamage[_arg1] + _local3));
trace(("base damage kepala : " + headskilldamage[_arg1]));
trace(("jadi damage : " + (headskilldamage[_arg1] + _local3)));
damagemasuk = (textdamage[0] * damagemultiplier);
}
function frame9(){
mcpause.visible = false;
mccountdown.visible = false;
mcdeletesavegame.visible = false;
mcmainmenu.visible = false;
mcanimasi.visible = false;
mcuimechastatus.visible = false;
mctrainresult.visible = false;
mcachievementbg.txt1.text = "";
btnfb.addEventListener(MouseEvent.CLICK, fbconnect);
btnyt.addEventListener(MouseEvent.CLICK, ytconnect);
i = 1;
while (i <= 25) {
obj = getChildByName(("mcachieve" + i));
trace(((i + " ") + obj));
obj.no = i;
if (so.data.achievement[i] == 0){
obj.gotoAndStop(1);
} else {
if (so.data.achievement[i] == 1){
obj.gotoAndStop(2);
};
};
obj.addEventListener(MouseEvent.MOUSE_OVER, achievementmouseover);
i++;
};
achievementname = [undefined, "Bot trainer", "The Merchant", "Black Horse", "the Caesar", "Bull's eye", "Grand Prix Master", "You're Rock!", "Ready to Battle", "The Dream Team", "Advance Tech", "Rare Chip", "God of Chip", "Fast Learn", "Rookie Bot", "Intrepid bot", "Almighty Bot", "Victorious Bot", "King of Mecha", "I can handle this", "Consider it done", "Damn I'm Good", "Delayed Victory", "win-win-win!", "Shopaholic Award", "You're the Boss"];
achievementtext = [undefined, "upgrade all training facility", "10 parts sold", "win 10 times", "win 40 times", "upgrade shooting ground 2x", "upgrade racing ground 2x", "rider lv.20", "buy 2 arms", "hire 4 mechanics", "promote mechanics", "buy new chipset", "purchase Ontel Stabilizer V7", "1st time rider level up", "Win Grade E Tournament", "Win Grade D Tournament", "Win Grade C Tournament", "Win Grade B Tournament", "Win Grade A Tournament", "rider lv.5", "rider lv.12", "got a higher-class sponsor", "1st lose", "5 wins in a row", "spent 10.000G in shop", "spent 20.000G in shop"];
btnbackmainmenu.addEventListener(MouseEvent.CLICK, backtomainmenu);
}
public function loadfungsitombolautorepair(){
var _local1:*;
var _local2:*;
cekstattotal(1);
cekstatnow(1);
if (so.data.mechahptemp[slotselected][1] < so.data.mechahp[slotselected][1]){
_local1 = false;
_local2 = 1;
while (_local2 <= 8) {
if (((!((so.data.mechanic[slotselected][_local2].team == ""))) && (!((so.data.mechanic[slotselected][_local2].team == undefined))))){
trace("Ada nih team");
_local1 = true;
break;
};
_local2++;
};
trace(("Ada : " + _local1));
if (_local1 == false){
mcui.mc1.btnnotrain1.visible = true;
} else {
mcui.mc1.btnnotrain1.visible = false;
};
};
}
function frame6(){
stop();
tutorialbeli = 0;
tutorialequip = 0;
stage.quality = "LOW";
raidergradepercent = [undefined, 0.05, 0.05, 0.05, 0.05, 0.05];
invenmax = 40;
persentambahmusu = [undefined, 0.5, 0.5, 0.4, 0.4, 0.35, 0.5];
mcanimasi.visible = false;
mcmainmenu.visible = false;
so.data.grade[slotselected] = so.data.gradetemp[slotselected];
enemymecha = "";
enemymechapassive = new Array();
enemymechapassivenumba = new Array();
enemymechatargetingauto = -1;
cooldowneffect = 15;
enemymechaeffectcooldown = [cooldowneffect, cooldowneffect, cooldowneffect, cooldowneffect, cooldowneffect];
enemymechabuffnegativeparts = [];
enemymechabuffnegativeparts = ["head", "hand1", "hand2", "leg1", "leg2"];
playermechaeffectcooldown = [cooldowneffect, cooldowneffect, cooldowneffect, cooldowneffect, cooldowneffect];
playermechabuffnegativeparts = [];
playermechabuffnegativeparts = ["head", "hand1", "hand2", "leg1", "leg2"];
enemymechabuffnegative = [];
playermechabuffnegative = [];
bufflist = ["poison", "stun", "slow", "atkdown", "spddown", "defdown", "heal1", "heal2", "heal3", "down"];
i = 0;
while (i < enemymechabuffnegativeparts.length) {
enemymechabuffnegative[i] = bufflist;
playermechabuffnegative[i] = bufflist;
i++;
};
enemymechabuffnegativelevel = [];
enemymechabuffnegativelevel = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]];
playermechabuffnegativelevel = [];
playermechabuffnegativelevel = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]];
enemymechabuffnegativecountdown = [];
enemymechabuffnegativecountdown = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]];
playermechabuffnegativecountdown = [];
playermechabuffnegativecountdown = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]];
enemymechabuffnegativetimes = [];
enemymechabuffnegativetimes = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]];
playermechabuffnegativetimes = [];
playermechabuffnegativetimes = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]];
firsttimetournamenttext = ["You have join the tournament", "The tournament will begin in several days"];
firstimebool = false;
firsttimelowhealth = ["You can fully repair your mecha by pressing this button", "Keep in mind that this repair might take several days"];
firsttimechipset = ["congratulations you won your first chipset!", "equiping the chipset will enable you to install new parts."];
enddaytext = ["Skipping without any action isn't wise."];
tutortext = ["welcome to your new garage.", "This is your mecha and it's rider.", "Let's start with training speed."];
tutortext2 = ["Try to beat the time limit to gain maximum speed point", "Let's try it!"];
tutortext3 = ["Each training, repair or battle takes time.", "Ok, lets meet again tomorrow!"];
tutortext4 = ["Welcome to a brand new day !", "A mecha leg got damaged during last training.", "Click here to hire mechanics to repair the mecha."];
tutortext5 = ["Drag and drop to hire a mechanic."];
tutortext6 = ["Drag and drop to hire a second mechanic."];
tutortext7 = ["Click here to leave this menu."];
tutortext8 = ["Better mechanics mean better repairs.", "You can do small repairs by ending the current day.", "click here to make full repairs."];
tutortext9 = ["right now your mecha has a low grade E.", "click here to buy new parts"];
tutortext10 = ["Buy Bomba Cannon from Arm section twice"];
tutortext11 = ["Click here to leave this menu."];
tutortext12 = ["you can upgrade the mecha by clicking here"];
tutortext13 = ["click here to install a left and right arm part"];
tutortext14 = ["that enough for today, lets end the day"];
tutortext15 = ["Now lets learn to compete with another mecha", "click the free match button"];
tutortext16 = ["sponsors are important to make your mecha succesfull.", "click here to apply for sponsor"];
textingstep = 0;
textingphase = 1;
textingtextindex = 0;
objtotext = "";
textingreload = 1;
textingreloadtemp = textingreload;
posisimarking = 0;
buildingused = "";
mechaused = "";
robotused = 1;
targetmark = 1;
effectimage = new Array();
standartspeedx = 2;
standartspeedy = 1;
indexitem = 0;
itemkeshopbuy = 0;
shopitem = new Array();
objarraylistsummaryprice = [undefined, undefined, headprice, armprice, legprice];
objarraylistunlock = [undefined, chipset1unlock, chipset2unlock, chipset3unlock, chipset4unlock, chipset5unlock, chipset6unlock, chipset7unlock, chipset8unlock, chipset9unlock, chipset10unlock];
objarraylisteffect = [undefined, chipset1effect, chipset2effect, chipset3effect, chipset4effect, chipset5effect, chipset6effect, chipset7effect, chipset8effect, chipset9effect, chipset10effect];
objarraylistunlock2 = [undefined, head1unlock, head2unlock, head3unlock, head4unlock, head5unlock, head6unlock, head7unlock, head8unlock, head9unlock, head10unlock, head11unlock, head12unlock, head13unlock, head14unlock, head15unlock, head16unlock, head17unlock, head18unlock, head19unlock, head20unlock, head21unlock];
objarraylisteffect2 = [undefined, head1effect, head2effect, head3effect, head4effect, head5effect, head6effect, head7effect, head8effect, head9effect, head10effect, head11effect, head12effect, head13effect, head14effect, head15effect, head16effect, head17effect, head18effect, head19effect, head20effect, head21effect];
objarraylistunlock3 = [undefined, arm1unlock, arm2unlock, arm3unlock, arm4unlock, arm5unlock, arm6unlock, arm7unlock, arm8unlock, arm9unlock, arm10unlock, arm11unlock, arm12unlock, arm13unlock, arm14unlock, arm15unlock, arm16unlock, arm17unlock, arm18unlock, arm19unlock, arm20unlock, arm21unlock];
objarraylisteffect3 = [undefined, arm1effect, arm2effect, arm3effect, arm4effect, arm5effect, arm6effect, arm7effect, arm8effect, arm9effect, arm10effect, arm11effect, arm12effect, arm13effect, arm14effect, arm15effect, arm16effect, arm17effect, arm18effect, arm19effect, arm20effect, arm21effect];
objarraylistunlock4 = [undefined, leg1unlock, leg2unlock, leg3unlock, leg4unlock, leg5unlock, leg6unlock, leg7unlock, leg8unlock, leg9unlock, leg10unlock, leg11unlock, leg12unlock, leg13unlock, leg14unlock, leg15unlock, leg16unlock, leg17unlock, leg18unlock, leg19unlock, leg20unlock, leg21unlock];
objarraylisteffect4 = [undefined, leg1effect, leg2effect, leg3effect, leg4effect, leg5effect, leg6effect, leg7effect, leg8effect, leg9effect, leg10effect, leg11effect, leg12effect, leg13effect, leg14effect, leg15effect, leg16effect, leg17effect, leg18effect, leg19effect, leg20effect, leg21effect];
objarraylistso = [undefined, so.data.charmechachip, so.data.charmechahead, so.data.charmechahand1, so.data.charmechaleg1];
objarraylisttext = [undefined, chipsettipetext, headtipetext, armtipetext, legtipetext];
objarraylistname = [undefined, chipset, head, arm, leg];
listpricechip = [undefined, chipset1price, chipset2price, chipset3price, chipset4price, chipset5price, chipset6price, chipset7price, chipset8price, chipset9price, chipset10price];
objarraylistsummary = [undefined, objarraylistunlock, objarraylistunlock2, objarraylistunlock3, objarraylistunlock4];
objarraylistsummaryeffect = [undefined, objarraylisteffect, objarraylisteffect2, objarraylisteffect3, objarraylisteffect4];
chippart = [undefined, chipset1effect, chipset2effect, chipset3effect, chipset4effect, chipset5effect, chipset6effect, chipset7effect, chipset8effect, chipset9effect, chipset10effect];
headpart = [undefined, head1numba, head2numba, head3numba, head4numba, head5numba, head6numba, head7numba, head8numba, head9numba, head10numba, head11numba, head12numba, head13numba, head14numba, head15numba, head16numba, head17numba, head18numba, head19numba, head20numba, head21numba];
armpart = [undefined, arm1numba, arm2numba, arm3numba, arm4numba, arm5numba, arm6numba, arm7numba, arm8numba, arm9numba, arm10numba, arm11numba, arm12numba, arm13numba, arm14numba, arm15numba, arm16numba, arm17numba, arm18numba, arm19numba, arm20numba, arm21numba];
legpart = [undefined, leg1numba, leg2numba, leg3numba, leg4numba, leg5numba, leg6numba, leg7numba, leg8numba, leg9numba, leg10numba, leg11numba, leg12numba, leg13numba, leg14numba, leg15numba, leg16numba, leg17numba, leg18numba, leg19numba, leg20numba, leg21numba];
timetorepairing = 0;
timetorepairingweek = 0;
timeweek = 0;
timeweektemp = 130;
indexinventoryselect = 0;
winnertemp = [];
arraylistpemenangdipake = new Array();
costtp = 0;
cektournamentfee = [undefined, 300, 800, 1200, 1500, 2000];
gradenumba = [undefined, "E", "D", "C", "B", "A"];
cekmute = false;
bagiwaktu = 10;
listtartxt = ["hp", "atk", "def", "spd"];
listsotxt = [so.data.raiderhp[slotselected], so.data.raideratk[slotselected], so.data.raiderdef[slotselected], so.data.raiderspd[slotselected]];
mechastatarray = new Array();
mechastatarraynumba = new Array();
loadingtimetoday = 0;
loadingtimetodaytemp = 50;
headmax = [0, 0, 0, 0, 0];
hand1max = [0, 0, 0, 0, 0];
hand2max = [0, 0, 0, 0, 0];
leg1max = [0, 0, 0, 0, 0];
leg2max = [0, 0, 0, 0, 0];
loadstandart();
tpbonus = 1;
namesummary = [undefined, [undefined, "Colossal Bots", "Wise Aztecs", "Brave Pirates", "Upset Bulldogs", "Greedy Marauders", "Whispering Ghost", "Flashy Hermes", "Dummy Mecha"], [undefined, "Exuberant Hitmen", "Gallant Cyborgs", "Swift Jaguars", "Starving Grimreaper", "Mercurial Rockets", "Gigantic Knights", "Victorious Apache"], [undefined, "Charming Sultan", "Hollow Phytons", "Combative Bombers", "Famous Bandit", "Psycho Diablos", "Massive Comets", "Fierce Machines"], [undefined, "Arrogant Nighthawks", "Wild Cowboys", "Fantastic Warrior", "Rapid Chargers", "Prudent Athena", "Glorious Caesars", "Eager thunderbirds"], [undefined, "Strong Gladiators", "Mighty Trojans", "Angry Cyclops", "Flawless Poseidon", "Cruel Cleopatra", "Valiant Centurions", "Immortal Phantoms"], [undefined, "Terra Magnatron"]];
itemsummary = [undefined, [undefined, [1, 1, 1, 1, 1], [4, 3, 3, 4, 4], [1, 3, 3, 2, 2], [1, 1, 1, 2, 2], [2, 1, 1, 2, 2], [2, 3, 3, 4, 4], [4, 1, 1, 2, 2], [1, 1, 1, 1, 1]], [undefined, [9, 4, 4, 9, 9], [5, 2, 8, 5, 5], [3, 4, 8, 3, 3], [9, 2, 2, 5, 5], [9, 8, 8, 9, 9], [3, 2, 2, 3, 3], [5, 4, 4, 5, 5]], [undefined, [6, 5, 5, 6, 6], [10, 9, 9, 10, 10], [16, 6, 6, 6, 6], [7, 6, 6, 7, 7], [16, 15, 5, 10, 10], [7, 15, 15, 16, 16], [6, 9, 9, 16, 16]], [undefined, [8, 7, 7, 8, 8], [12, 11, 11, 12, 12], [14, 13, 13, 14, 14], [11, 10, 10, 11, 11], [14, 7, 16, 13, 13], [17, 16, 16, 17, 17], [19, 18, 18, 19, 19]], [undefined, [18, 19, 19, 15, 15], [13, 14, 12, 20, 20], [20, 17, 14, 13, 13], [13, 12, 12, 13, 13], [20, 19, 19, 20, 20], [18, 17, 17, 18, 18], [15, 14, 14, 15, 15]], [undefined, [21, 21, 20, 21, 21]]];
sponsortextvalue = [undefined, 150, 275, 400, 1000, 250, 375, 600, 1500, 650, 775, 1000, 2000, 1000, 1575, 1800, 2500, 2000, 2675, 3000, 3500];
sponsorreq = [undefined, 1, 3, 3, 1000, 2, 5, 5, 1500, 3, 8, 8, 2000, 4, 10, 12, 2500, 5, 12, 16, 3500];
sponsorlogo = 0;
nosponsor = 0;
sponsortime = 0;
sponsormoney = 0;
shopbeli = true;
currkolom = 1;
currbaris = 1;
ontelke = 1;
omaxke = 1;
vulhpke = 1;
vuldefke = 1;
vulattke = 1;
vulspdke = 1;
vulstabil = 1;
drgonke = 1;
vampireke = 1;
mysteriouske = 1;
indexselect = "chipset";
shopinidiequip = false;
tggload = 1;
lengthiteminventoryclick = 0;
parentexplanationused = "";
shoppricenow = 0;
tipeitemshop = 0;
mechanicbuysort = "wages";
nomechanicfire = 0;
musuhtipe = new Array();
musuhhp = 0;
musuhatk = 0;
musuhdef = 0;
musuhspd = 0;
musuhhptemp = 0;
musuhatktemp = 0;
musuhdeftemp = 0;
musuhspdtemp = 0;
musuhstatsummary = new Array();
musuhheadstat = new Array();
musuhhand1stat = new Array();
musuhhand2stat = new Array();
musuhleg1stat = new Array();
musuhleg2stat = new Array();
listtar = new Array();
listso = new Array();
listtxt = new Array();
listparts = new Array();
norobotfostatistic = 0;
listarraydipakebuwatcek = [so.data.charmechahead[slotselected][robotused], so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused], so.data.charmechaleg1[slotselected][robotused], so.data.charmechaleg2[slotselected][robotused]];
listarraydipakebuwatcekhp = [so.data.charmechaheadhp[slotselected][robotused], so.data.charmechahand1hp[slotselected][robotused], so.data.charmechahand2hp[slotselected][robotused], so.data.charmechaleg1hp[slotselected][robotused], so.data.charmechaleg2hp[slotselected][robotused]];
skillclickframe = false;
partske = 0;
skillselecttarget = false;
skilldariparts = 0;
skillnodariparts = 0;
effectbattle = new Array();
partsyangdiserang = 0;
jedaertemp = 45;
jedaer = jedaertemp;
jedaphase = 0;
elemenserangan = 0;
elemenygdiserang = 0;
playerattack = false;
efektifbool = 0;
makswidth = 170;
linkagetipe = [skillchargehijau, skillchargeungu, skillchargehijaukuning, skillchargekuning, skillchargebiru, beamshot, supershot, fireshot, flameshot, rapidfire, electricalshot, burningshot, redmine, burningbeamshot, megaaircannon, yellowshuriken, superflameshot, superrapidfire, aircannon, bluegrenade, blastershot, superaircannon, leechbot1, hyperrapidfire, beamshock, protonbeamshot, protonshock, doombringerblast, leechbot2, leechbot3];
linkagesound = [soundgerakan2, soundgerakan2, soundgerakan2, soundgerakan2, soundgerakan2, soundlaser1, soundlaser1, soundlaser2, soundlaser2, soundrapid, soundelectric, soundlaser3, soundrocket, soundlaser5, soundlaser2, soundrocket, soundlaser4, soundrapid, soundlaser2, soundrocket, soundbledar, soundlaser2, soundforcefield, soundrapid, soundelectric, soundbledar, soundelectric, soundbledar, soundforcefield, soundforcefield];
linkageskillname = ["Charge", "Strong Charge", "Elegant Charge", "Sexy Charge", "Deadly Charge", "Beam Shot", "Super Shot", "Fire Shot", "Flame Shot", "Rapid Fire", "Electrical Shot", "Burning Shot", "Red Mine", "Burning Beam Shot", "Mega Air Cannon", "Yellow Shuriken", "Super Flame Shot", "Super Rapid Fire", "Air Cannon", "Blue Grenade", "Blaster Shot", "Super Air Cannon", "Leech Bot I", "Hyper Rapid Fire", "Beam Shock", "Proton Beam Shot", "Proton Shock", "Doom Bringer Blast", "Leech Bot II", "Leech Bot III"];
linkagetype = ["Single Hit Damage", "Single Hit Damage", "Single Hit Damage", "Single Hit Damage", "Single Hit Damage", "Single Hit Damage", "Single Hit Damage", "Single Hit Damage", "Single Hit Damage", "% Multiple hit Damage 1-7", "Single Hit Damage + Malfunction Effect", "Single Hit Damage", "Single Hit Damage + ATK Down", "Single Hit Damage", "Single Hit Damage + % Stun chance", "Single Hit Damage + SPD Down", "Single Hit Damage", "% Multiple hit Damage 1-7", "Single Hit Damage + % Stun chance", "Single Hit Damage + DEF Down", "Single Hit Damage", "Single Hit Damage + % Stun chance", "Single Hit Damage + Corrupt Effect", "% Multiple hit Damage 1-7", "Single Hit Damage + Malfunction Effect", "Single Hit Damage", "Single Hit Damage + Malfunction Effect", "Single Hit Damage + All status Down + Malfunction Effect", "Single Hit Damage + Corrupt Effect", "Single Hit Damage + Corrupt Effect"];
skillrealname = "";
linkageloop = [1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1];
linkagecost = [2, 4, 6, 8, 10, 1, 2, 3, 4, 2, 3, 5, 4, 7, 9, 4, 6, 5, 3, 4, 9, 6, 3, 9, 6, 8, 9, 10, 6, 9];
linkageeffect = [undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, "poison", undefined, "atkdown", undefined, "stun", "spddown", undefined, undefined, "stun", "defdown", undefined, "stun", "leech1", undefined, "poison", undefined, "poison", "all", "leech2", "leech3"];
linkagenamereal = [undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, "Malfunction", undefined, "ATK down", undefined, "Crash", "SPD down", undefined, undefined, "Crash", "DEF down", undefined, "Crash", "Worm I", undefined, "Malfunction", undefined, "Malfunction", "Error", "Worm II", "Worm II"];
buffrealname = "";
linkageeffectchance = [undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, 20, undefined, 20, undefined, 20, 20, undefined, undefined, 20, 20, undefined, 20, 100, undefined, 20, undefined, 20, 20, 100, 100];
adanegativebuff = "";
negativebuffchance = 0;
tembaksebanyak = 0;
leechlv = 0;
leechpersentase = 0.6;
soundindex = 0;
sudahcharge = false;
battleanimationbool = false;
soundpenontontime = 0;
soundpenontontimetemp = 25;
critmultiplier = 0.7;
skillmanual = false;
adacounter = 0;
adaconvert = 0;
adacrit = 0;
adaheal = 0;
adapoison = 0;
poisoncountdown = 50;
downcountdown = 125;
stuncountdown = 125;
healcountdown = 125;
battlepreend = false;
battlekoobject = "";
tipekudiover = 0;
texttulis = new Array();
textdamage = new Array();
textdamagepercent = new Array();
texteffect = "";
skillname = "";
damagemultiplier = 2;
damagemasuk = 0;
playerdahdown = false;
playerdownbool = false;
playerdownrestored = 0;
enemydahdown = false;
enemydownbool = false;
enemydownrestored = 0;
timewarp = 0;
timewarptemp = timewarp;
loadingnextday = 25;
defensepopputtime = [undefined, 50, 40, 20];
defensepopoutmultiplier = [undefined, 1, 1, 1];
defensepopoutspeed = [undefined, 4, 4, 5];
defensequantity = [undefined, 4, 8, 12];
defenselimit1 = [undefined, 3, 5, 7];
defenselimit2 = [undefined, 1, 3, 5];
defensequantityball = 0;
defensequantityballtemp = 0;
defensetime = 0;
defensetimetemp = 0;
defensesuccess = 0;
trainattacktime = [undefined, 10, 15, 20];
trainattackhealth = [undefined, 10, 15, 20];
trainattackresult1 = [undefined, 3, 3, 3];
trainattackresult2 = [undefined, 2, 2, 2];
cekdeadtarget = 0;
timelimitslevel = [undefined, 20, 30, 40];
timelimitslevel2 = [undefined, 30, 40, 50];
speedgain = [undefined, 2, 3, 4];
speedgain2 = [undefined, 1, 2, 3];
expgain = [undefined, 5, 10, 20];
expgain2 = [undefined, 3, 5, 10];
obstaclelevel = [undefined, 3, 4, 5];
obstaclehealth = [undefined, 3, 3, 3];
obstaclehealthcountdown1 = [undefined, 100, 80, 70];
obstaclehealthcountdown = [undefined, 125, 100, 80];
dashbool = false;
dashduration = 50;
dashdurationtemp = dashduration;
defenseballimage = new Array();
hasiltraining = 0;
penambahanhprider = 100;
penambahanatkrider = 10;
penambahandefrider = 10;
penambahanspdrider = 10;
exptemp = 0;
tempraiderexp = 0;
tempraiderexpmax = 0;
leveltemp = 0;
tahapcekling = 1;
yaklikskipexp = false;
ridertemp = [];
poinshare = 0;
poinsharetemp = 0;
expincreasetime = 5;
expincreasetimetemp = expincreasetime;
}
function frame1(){
if (loaderInfo.url.substring(0, 4) != "file"){
Security.allowDomain("*");
Security.loadPolicyFile("http://track.g-bot.net/crossdomain.xml");
variables2 = new URLVariables();
variables2.id = "mechaarena";
variables2.ui = loaderInfo.url;
request2 = new URLRequest("http://track.g-bot.net/track.php");
request2.method = "POST";
request2.data = variables2;
loader2 = new URLLoader();
loader2.load(request2);
};
stage.quality = "HIGH";
customContextMenu = new ContextMenu();
customContextMenu.hideBuiltInItems();
contextmenu = new ContextMenuItem("Little Giant World");
contextmenu.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, clikLG);
customContextMenu.customItems.push(contextmenu);
contextMenu = customContextMenu;
mcdebugger.visible = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, debuggeroutputshow);
stage.addEventListener(KeyboardEvent.KEY_UP, textingup);
stop();
stage.addEventListener(Event.ENTER_FRAME, loading);
}
function frame7(){
stop();
loadbattleprep();
}
public function buwatefektif(){
var _local1:*;
trace(((("ELEMEN KU : " + elemenserangan) + " elemen musuh : ") + elemenygdiserang));
if (playerattack == true){
mcefektifdisplay.mc1.mctipe1.gotoAndStop(elemenserangan);
mcefektifdisplay.mc1.mctipe2.gotoAndStop(elemenygdiserang);
mcplayereffective.mc1.gotoAndStop(elemenserangan);
mcenemyeffective.mc1.gotoAndStop(elemenygdiserang);
};
if (playerattack == false){
mcefektifdisplay.mc1.mctipe1.gotoAndStop(elemenygdiserang);
mcefektifdisplay.mc1.mctipe2.gotoAndStop(elemenserangan);
mcplayereffective.mc1.gotoAndStop(elemenygdiserang);
mcenemyeffective.mc1.gotoAndStop(elemenserangan);
};
efektifbool = 0;
_local1 = 0;
if ((((elemenserangan == 1)) && ((elemenygdiserang == 2)))){
mcefektifdisplay.mc1.gotoAndStop(1);
efektifbool = 1;
} else {
if ((((elemenserangan == 2)) && ((elemenygdiserang == 3)))){
mcefektifdisplay.mc1.gotoAndStop(2);
efektifbool = 1;
} else {
if ((((elemenserangan == 3)) && ((elemenygdiserang == 1)))){
mcefektifdisplay.mc1.gotoAndStop(3);
efektifbool = 1;
};
};
};
if ((((elemenserangan == 1)) && ((elemenygdiserang == 3)))){
mcefektifdisplay.mc1.gotoAndStop(1);
efektifbool = -1;
} else {
if ((((elemenserangan == 2)) && ((elemenygdiserang == 1)))){
mcefektifdisplay.mc1.gotoAndStop(2);
efektifbool = -1;
} else {
if ((((elemenserangan == 3)) && ((elemenygdiserang == 2)))){
mcefektifdisplay.mc1.gotoAndStop(3);
efektifbool = -1;
};
};
};
if (efektifbool != 0){
if (efektifbool == -1){
mcplayereffective.visible = false;
mcenemyeffective.visible = false;
if (playerattack == true){
mcefektifdisplay.mc1.mcefektif1.gotoAndStop("player2");
} else {
if (playerattack == false){
mcefektifdisplay.mc1.mcefektif1.gotoAndStop("enemy2");
};
};
mcefektifdisplay.mc1.mcefektif2.gotoAndStop(2);
} else {
mcplayereffective.visible = true;
mcplayereffective.gotoAndStop(1);
mcenemyeffective.visible = true;
mcenemyeffective.gotoAndStop(1);
if (playerattack == true){
mcefektifdisplay.mc1.mcefektif1.gotoAndStop("player1");
} else {
if (playerattack == false){
mcefektifdisplay.mc1.mcefektif1.gotoAndStop("enemy1");
};
};
mcefektifdisplay.mc1.mcefektif2.gotoAndStop(1);
};
mcefektifdisplay.gotoAndPlay(2);
} else {
mcplayereffective.visible = false;
mcenemyeffective.visible = false;
};
}
public function skipsplash(_arg1:Event):void{
if (mcsplash.currentFrame == mcsplash.totalFrames){
gotoAndPlay("intro");
stage.removeEventListener(Event.ENTER_FRAME, skipsplash);
};
}
public function cleartutorial(){
mcdialogbox.mcanna.visible = false;
if (posisimarking == 1){
mcmap.mcbuild1.mcmecha1.mcblink.gotoAndStop(1);
mcmap.mcbuild1.mcraider1.mcblink.gotoAndStop(1);
mcui.mc1.mcblink.gotoAndStop(1);
mcui2.mc1.mcblink.gotoAndStop(1);
if (btnsalary.visible == false){
btnsalary.visible = true;
btnendday.visible = true;
txtrepairpercent.visible = true;
mcmap.mcbuild4.btndash.visible = false;
mcmap.mcbuild4.mcdashdisabled.visible = false;
mcspeedtimelimits.visible = false;
mcui.gotoAndPlay("up");
mcui2.gotoAndPlay("up");
mcui3.gotoAndPlay("up");
mcui5.gotoAndPlay("up");
};
};
}
public function closeautoattack(){
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < autoattackimage.length) {
autoattackimage[_local1].visible = false;
_local2 = getChildByName(("mchit" + int((_local1 + 1))));
_local2.visible = false;
_local1++;
};
mcnolist.visible = false;
btnokauto.visible = false;
}
public function achievementmouseover(_arg1:Event):void{
mcachievementbg.txt1.text = ((achievementname[_arg1.currentTarget.no] + " - ") + achievementtext[_arg1.currentTarget.no]);
}
function frame8(){
stop();
btnpause.visible = true;
btnmutemusic.visible = true;
btnhelp.visible = true;
playerenergy = 0;
enemyenergy = 0;
tahaptungguprep = 1;
targetplayerwidth = 0;
targetenemywidth = 0;
enemyrandskill = 0;
enemyrandskillcost = 0;
listarraydipakebuwatcek2 = [itemsummary[so.data.grade[slotselected]][musuhtipe][0], itemsummary[so.data.grade[slotselected]][musuhtipe][1], itemsummary[so.data.grade[slotselected]][musuhtipe][2], itemsummary[so.data.grade[slotselected]][musuhtipe][3], itemsummary[so.data.grade[slotselected]][musuhtipe][4]];
listarraydipakebuwatcek2hp = [musuhstatsummary[0], musuhstatsummary[1], musuhstatsummary[2], musuhstatsummary[3], musuhstatsummary[4]];
urutanattack = [undefined, 1, 2, 3, 4, 5];
namaaseli = [undefined, "BODY", "RIGHT ARM", "LEFT ARM", "RIGHT LEG", "LEFT LEG"];
indexhelp = 1;
crowdimage = new Array();
jumcrowd = 50;
autoattackimage = new Array();
adaover = false;
autoattack = false;
loadbattle();
itungehpplayer = 0;
itungehpenemy = 0;
moneygained = [undefined, 200, 450, 675, 850, 1000, 2000];
ptgained = [undefined, 3, 4, 5, 6, 7, 10];
winbool = false;
battleend = false;
autoattacksetting = false;
kurangertime = 1;
jedaermusu = 8;
jedaermusutemp = jedaermusu;
cekplayercost = 0;
}
public function transisi(_arg1:String):void{
tujuanframe = _arg1;
mctransition.gotoAndPlay(2);
stage.addEventListener(Event.ENTER_FRAME, transitionwait);
}
public function createfirsttimetournamenttext(){
mcnextmatch.mc1.mcblink.gotoAndStop(2);
objtotext = firsttimetournamenttext;
createtexting();
}
public function createballdefense(_arg1:int):void{
defenseballimage[defenseballimage.length] = new (defenseball);
addChildAt(defenseballimage[(defenseballimage.length - 1)], (getChildIndex(mcdefensebar) + 1));
defenseballimage[(defenseballimage.length - 1)].x = 133.8;
defenseballimage[(defenseballimage.length - 1)].y = 324;
defenseballimage[(defenseballimage.length - 1)].speed = defensepopoutspeed[so.data.traindefenselevel[slotselected]];
defenseballimage[(defenseballimage.length - 1)].mouseChildren = false;
defenseballimage[(defenseballimage.length - 1)].mouseEnabled = false;
defenseballimage[(defenseballimage.length - 1)].gotoAndStop(_arg1);
}
public function trainspeedmovement(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (pausegame == false){
kurangicountdown(mcspeedtimelimits, 1);
if (dashbool == true){
dashduration--;
mechaused.bonusmovement = 1;
if (dashduration <= 0){
dashduration = dashdurationtemp;
dashbool = false;
mechaused.bonusmovement = 0;
buildingused.mcdashdisabled.visible = false;
};
};
if (mechaused.nowalk == false){
_local6 = buildingused.mc1.mcslower;
if (_local6 != null){
if (mechaused.mcfoot.hitTestObject(_local6) == true){
mechaused.x = (mechaused.x + ((mechaused.gerakanx / 2) + (mechaused.bonusmovement * mechaused.gerakanx)));
mechaused.y = (mechaused.y + ((mechaused.gerakany / 2) + (mechaused.bonusmovement * mechaused.gerakany)));
} else {
mechaused.x = (mechaused.x + (mechaused.gerakanx + (mechaused.bonusmovement * mechaused.gerakanx)));
mechaused.y = (mechaused.y + (mechaused.gerakany + (mechaused.bonusmovement * mechaused.gerakany)));
};
} else {
mechaused.x = (mechaused.x + (mechaused.gerakanx + (mechaused.bonusmovement * mechaused.gerakanx)));
mechaused.y = (mechaused.y + (mechaused.gerakany + (mechaused.bonusmovement * mechaused.gerakany)));
};
};
if (mechaused.mcfoot.hitTestObject(buildingused.mccanfinish) == true){
mechaused.canfinish = true;
};
if ((((mechaused.mcfoot.hitTestObject(buildingused.mcfinish) == true)) && ((mechaused.canfinish == true)))){
mechaused.finishe++;
mechaused.canfinish = false;
if (mechaused.finishe >= 2){
cleanuptrainall();
};
};
_local2 = [undefined, "right", "right", "left", "left"];
_local3 = [undefined, "back", "front", "front", "back"];
_local4 = 1;
while (_local4 <= 4) {
_local7 = buildingused.getChildByName(("mcturn" + _local4));
if (mechaused.mcfoot.hitTestObject(_local7) == true){
if (((!((mechaused.direction == _local2[_local4]))) || (!((mechaused.face == _local3[_local4]))))){
mechaused.scaleX = (mechaused.scaleX * -1);
mechaused.direction = _local2[_local4];
mechaused.face = _local3[_local4];
mechaused.gotoAndPlay((_local3[_local4] + "walk"));
loadmechadirection();
break;
};
};
_local4++;
};
_local5 = false;
_local4 = 1;
while (_local4 <= obstaclelevel[so.data.trainspeedlevel[slotselected]]) {
_local6 = buildingused.mc1.getChildByName(("mcobstacle" + _local4));
if (_local6 != null){
if (_local6.mc1.currentLabel == "idle"){
_local6.countdowntospawn--;
if (_local6.countdowntospawn <= 0){
_local6.countdowntospawn = _local6.countdowntospawntemp;
_local6.mc1.gotoAndPlay("pop out");
};
} else {
if (_local6.mc1.currentLabel != "idle"){
if (mechaused.mcfoot.hitTestObject(_local6.mc1.mcfoot) == true){
mechaused.nowalk = true;
_local5 = true;
};
};
};
};
_local4++;
};
if (_local5 == false){
mechaused.nowalk = false;
};
};
}
public function textingup(_arg1:KeyboardEvent):void{
if (mcdebugger.txt2.text == "`yongay"){
mcdebugger.mccheck.gotoAndStop(2);
} else {
if (mcdebugger.txt2.text != "`yongay"){
mcdebugger.mccheck.gotoAndStop(1);
};
};
}
public function shopsellmode(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
shopbeli = false;
bukafungsishop();
}
public function tetapkanlistarraydipakebuwatcekhp(){
listarraydipakebuwatcekhp = [so.data.charmechaheadhp[slotselected][robotused], so.data.charmechahand1hp[slotselected][robotused], so.data.charmechahand2hp[slotselected][robotused], so.data.charmechaleg1hp[slotselected][robotused], so.data.charmechaleg2hp[slotselected][robotused]];
}
public function backtomainmenucredits(_arg1:MouseEvent):void{
mclogolg.gotoAndPlay(2);
mcanimasi.mc1.gotoAndStop(1);
mcanimasi.gotoAndPlay(36);
soundclick.play(0, 1, new SoundTransform(volumemusic));
mccredits.visible = false;
}
public function cekperubahanbardarah(_arg1:int, _arg2:int, _arg3:int, _arg4:Object, _arg5:String){
var _local6:*;
if (_arg1 != _arg3){
if (_arg1 > _arg2){
_arg1 = _arg2;
};
trace(((("yap darah skrg : " + _arg1) + " darah text : ") + _arg3));
_local6 = (_arg3 - _arg1);
_local6 = (_local6 / _arg2);
_local6 = (_local6 * 186);
_arg4.darahganti = true;
_arg4.speedperubahanhpwidth = (_local6 / 25);
_arg4.speedperubahanhptxt = ((_arg3 - _arg1) / 25);
trace(("dirubah sebanyak width : " + _arg4.speedperubahanhpwidth));
trace(("dirubah sebanyak txt : " + _arg4.speedperubahanhptxt));
_arg4.speedperubahanhptexttime = 25;
};
}
public function buwatsavekeinikosong(_arg1:int){
var _local2:*;
var _local3:*;
var _local4:*;
so.data.likeab = new Array();
if (so.data.likeab == undefined){
so.data.likeab = new Array();
};
so.data.likeab[_arg1] = false;
so.data.likelg = new Array();
if (so.data.likelg == undefined){
so.data.likelg = new Array();
};
so.data.likelg[_arg1] = false;
if (so.data.firsttimetournament == undefined){
so.data.firsttimetournament = new Array();
};
so.data.firsttimetournament[_arg1] = false;
if (so.data.firsttimechipprize == undefined){
so.data.firsttimechipprize = new Array();
};
so.data.firsttimechipprize[_arg1] = 0;
so.data.firsttimelowhealth[_arg1] = false;
so.data.lvl3bool[_arg1] = false;
so.data.adareport[_arg1] = false;
so.data.adareportstaff[_arg1] = 0;
so.data.adareportjumstaff[_arg1] = 0;
so.data.adareportrider[_arg1] = 0;
if (so.data.reportskipday == undefined){
so.data.reportskipday = new Array();
};
so.data.reportskipday[_arg1] = false;
so.data.winrow[_arg1] = 0;
so.data.marker[_arg1] = new Array();
_local3 = 1;
while (_local3 <= 6) {
so.data.marker[_arg1][_local3] = 0;
_local3++;
};
so.data.followtournamentbool[_arg1] = false;
so.data.firstbattle[_arg1] = false;
so.data.tp[_arg1] = 2;
so.data.deficitcount[_arg1] = 0;
so.data.teambool[_arg1] = false;
so.data.championshipcountdownexpired[_arg1] = 0;
so.data.championshipcountdownbool[_arg1] = false;
so.data.championshipcountdownmax[_arg1] = 0;
so.data.championshipcountdown[_arg1] = 0;
so.data.championshipmaster[_arg1] = 1;
so.data.championshipphase[_arg1] = 1;
so.data.championshipfollower[_arg1] = new Array();
so.data.championshipwinner[_arg1] = new Array();
so.data.championshipwinner2[_arg1] = new Array();
_local2 = [1, 2, 3, 4, 5, 6, 7];
_local3 = 2;
while (_local3 <= 8) {
_local4 = randRange(0, (_local2.length - 1));
so.data.championshipfollower[_arg1][_local3] = _local2[_local4];
_local2.splice(_local4, 1);
_local3++;
};
_local3 = 2;
while (_local3 <= 8) {
so.data.championshipwinner[_arg1][_local3] = 0;
so.data.championshipwinner2[_arg1][_local3] = 0;
_local3++;
};
so.data.sponsorlogo[_arg1] = 0;
so.data.sponsortime[_arg1] = 0;
so.data.sponsortimetemp[_arg1] = -1;
so.data.sponsormoney[_arg1] = 0;
so.data.money[_arg1] = 1000;
so.data.win[_arg1] = 0;
so.data.teamname[_arg1] = "Cihuahua Combatant";
so.data.teamlogo[_arg1] = 1;
so.data.mechahp[_arg1] = new Array();
so.data.mechaatk[_arg1] = new Array();
so.data.mechadef[_arg1] = new Array();
so.data.mechaspd[_arg1] = new Array();
so.data.mechahptemp[_arg1] = new Array();
so.data.mechaatktemp[_arg1] = new Array();
so.data.mechadeftemp[_arg1] = new Array();
so.data.mechaspdtemp[_arg1] = new Array();
_local3 = 1;
while (_local3 <= 2) {
so.data.mechahp[_arg1][_local3] = 1;
so.data.mechaatk[_arg1][_local3] = 1;
so.data.mechadef[_arg1][_local3] = 1;
so.data.mechaspd[_arg1][_local3] = 1;
so.data.mechahptemp[_arg1][_local3] = 1;
so.data.mechaatktemp[_arg1][_local3] = 1;
so.data.mechadeftemp[_arg1][_local3] = 1;
so.data.mechaspdtemp[_arg1][_local3] = 1;
_local3++;
};
so.data.timeweeke[_arg1] = 0;
so.data.yeare[_arg1] = 1;
so.data.monthe[_arg1] = 1;
so.data.weeke[_arg1] = 1;
so.data.savedata[_arg1] = 0;
so.data.tutorialbattle[_arg1] = false;
so.data.tutorialstep[_arg1] = 0;
so.data.tutorialcomplete[_arg1] = false;
so.data.trainspeedlevel[_arg1] = 1;
so.data.trainattacklevel[_arg1] = 1;
so.data.traindefenselevel[_arg1] = 1;
so.data.traingaragelevel[_arg1] = 1;
so.data.charmechaeffect[_arg1] = new Array();
so.data.charmechaeffectnumba[_arg1] = new Array();
so.data.onautorepairbool[_arg1] = new Array();
so.data.charmecharepairbool[_arg1] = new Array();
so.data.charmecharepairtime[_arg1] = new Array();
so.data.charmecharepairtimetemp[_arg1] = new Array();
_local3 = 1;
while (_local3 <= 2) {
so.data.onautorepairbool[_arg1][_local3] = false;
so.data.charmecharepairbool[_arg1][_local3] = false;
so.data.charmecharepairtime[_arg1][_local3] = 0;
so.data.charmecharepairtimetemp[_arg1][_local3] = 0;
so.data.charmechaeffect[_arg1][_local3] = new Array();
so.data.charmechaeffectnumba[_arg1][_local3] = new Array();
_local3++;
};
so.data.charmechachip[_arg1] = new Array();
so.data.charmechachiplevel[_arg1] = new Array();
so.data.charmechahead[_arg1] = new Array();
so.data.charmechaheadhp[_arg1] = new Array();
so.data.charmechaheadhpreal2[_arg1] = new Array();
so.data.charmechaheadhpreal[_arg1] = new Array();
so.data.charmechaheadatk[_arg1] = new Array();
so.data.charmechaheadatkreal[_arg1] = new Array();
so.data.charmechaheaddef[_arg1] = new Array();
so.data.charmechaheaddefreal[_arg1] = new Array();
so.data.charmechaheadspd[_arg1] = new Array();
so.data.charmechaheadspdreal[_arg1] = new Array();
so.data.charmechahand1[_arg1] = new Array();
so.data.charmechahand1hp[_arg1] = new Array();
so.data.charmechahand1hpreal2[_arg1] = new Array();
so.data.charmechahand1hpreal[_arg1] = new Array();
so.data.charmechahand1atk[_arg1] = new Array();
so.data.charmechahand1atkreal[_arg1] = new Array();
so.data.charmechahand1def[_arg1] = new Array();
so.data.charmechahand1defreal[_arg1] = new Array();
so.data.charmechahand1spd[_arg1] = new Array();
so.data.charmechahand1spdreal[_arg1] = new Array();
so.data.charmechahand2[_arg1] = new Array();
so.data.charmechahand2hp[_arg1] = new Array();
so.data.charmechahand2hpreal2[_arg1] = new Array();
so.data.charmechahand2hpreal[_arg1] = new Array();
so.data.charmechahand2atk[_arg1] = new Array();
so.data.charmechahand2atkreal[_arg1] = new Array();
so.data.charmechahand2def[_arg1] = new Array();
so.data.charmechahand2defreal[_arg1] = new Array();
so.data.charmechahand2spd[_arg1] = new Array();
so.data.charmechahand2spdreal[_arg1] = new Array();
so.data.charmechaleg1[_arg1] = new Array();
so.data.charmechaleg1hp[_arg1] = new Array();
so.data.charmechaleg1hpreal2[_arg1] = new Array();
so.data.charmechaleg1hpreal[_arg1] = new Array();
so.data.charmechaleg1atk[_arg1] = new Array();
so.data.charmechaleg1atkreal[_arg1] = new Array();
so.data.charmechaleg1def[_arg1] = new Array();
so.data.charmechaleg1defreal[_arg1] = new Array();
so.data.charmechaleg1spd[_arg1] = new Array();
so.data.charmechaleg1spdreal[_arg1] = new Array();
so.data.charmechaleg2[_arg1] = new Array();
so.data.charmechaleg2hp[_arg1] = new Array();
so.data.charmechaleg2hpreal2[_arg1] = new Array();
so.data.charmechaleg2hpreal[_arg1] = new Array();
so.data.charmechaleg2atk[_arg1] = new Array();
so.data.charmechaleg2atkreal[_arg1] = new Array();
so.data.charmechaleg2def[_arg1] = new Array();
so.data.charmechaleg2defreal[_arg1] = new Array();
so.data.charmechaleg2spd[_arg1] = new Array();
so.data.charmechaleg2spdreal[_arg1] = new Array();
so.data.repairhead[_arg1] = new Array();
so.data.repairhand1[_arg1] = new Array();
so.data.repairhand2[_arg1] = new Array();
so.data.repairleg1[_arg1] = new Array();
so.data.repairleg2[_arg1] = new Array();
_local3 = 1;
while (_local3 <= 2) {
so.data.repairhead[_arg1][_local3] = 0;
so.data.repairhand1[_arg1][_local3] = 0;
so.data.repairhand2[_arg1][_local3] = 0;
so.data.repairleg1[_arg1][_local3] = 0;
so.data.repairleg2[_arg1][_local3] = 0;
_local3++;
};
so.data.charmechachip[_arg1][1] = 1;
so.data.charmechachiplevel[_arg1][1] = 1;
so.data.charmechahead[_arg1][1] = 1;
so.data.charmechahand1[_arg1][1] = 0;
so.data.charmechahand2[_arg1][1] = 0;
so.data.charmechaleg1[_arg1][1] = 1;
so.data.charmechaleg2[_arg1][1] = 1;
so.data.charmechachip[_arg1][2] = 0;
so.data.charmechachiplevel[_arg1][2] = 1;
so.data.charmechahead[_arg1][2] = 0;
so.data.charmechaheadhp[_arg1][2] = 1;
so.data.charmechaheadhpreal2[_arg1][2] = 1;
so.data.charmechaheadhpreal[_arg1][2] = 1;
so.data.charmechaheadatk[_arg1][2] = 1;
so.data.charmechaheaddef[_arg1][2] = 1;
so.data.charmechaheadspd[_arg1][2] = 1;
so.data.charmechahand1[_arg1][2] = 7;
so.data.charmechahand1hp[_arg1][2] = 1;
so.data.charmechahand1hpreal2[_arg1][2] = 1;
so.data.charmechahand1hpreal[_arg1][2] = 1;
so.data.charmechahand1atk[_arg1][2] = 1;
so.data.charmechahand1def[_arg1][2] = 1;
so.data.charmechahand1spd[_arg1][2] = 1;
so.data.charmechahand2[_arg1][2] = 0;
so.data.charmechahand2hp[_arg1][2] = 1;
so.data.charmechahand2hpreal2[_arg1][2] = 1;
so.data.charmechahand2hpreal[_arg1][2] = 1;
so.data.charmechahand2atk[_arg1][2] = 1;
so.data.charmechahand2def[_arg1][2] = 1;
so.data.charmechahand2spd[_arg1][2] = 1;
so.data.charmechaleg1[_arg1][2] = 0;
so.data.charmechaleg1hp[_arg1][2] = 1;
so.data.charmechaleg1hpreal2[_arg1][2] = 1;
so.data.charmechaleg1hpreal[_arg1][2] = 1;
so.data.charmechaleg1atk[_arg1][2] = 1;
so.data.charmechaleg1def[_arg1][2] = 1;
so.data.charmechaleg1spd[_arg1][2] = 1;
so.data.charmechaleg2[_arg1][2] = 0;
so.data.charmechaleg2hp[_arg1][2] = 1;
so.data.charmechaleg2hpreal2[_arg1][2] = 1;
so.data.charmechaleg2hpreal[_arg1][2] = 1;
so.data.charmechaleg2atk[_arg1][2] = 1;
so.data.charmechaleg2def[_arg1][2] = 1;
so.data.raider[_arg1] = randRange(1, 15);
so.data.raiderwages[_arg1] = 30;
so.data.raidername[_arg1] = namerand[randRange(0, (namerand.length - 1))];
so.data.raiderlevel[_arg1] = 1;
so.data.raiderexp[_arg1] = 0;
so.data.raiderexpmax[_arg1] = 10;
so.data.raiderhp[_arg1] = 500;
so.data.raideratk[_arg1] = 30;
so.data.raiderdef[_arg1] = 30;
so.data.raiderspd[_arg1] = 30;
so.data.raiderbuybool[_arg1] = false;
so.data.raiderbuyarray[_arg1] = new Array();
_local3 = 1;
while (_local3 <= 7) {
so.data.raiderbuyarray[_arg1][_local3] = new Array();
_local3++;
};
so.data.mechanic[_arg1] = new Array();
_local3 = 1;
while (_local3 <= 8) {
so.data.mechanic[_arg1][_local3] = new Array();
so.data.mechanic[_arg1][_local3].exist = false;
so.data.mechanic[_arg1][_local3].head = "";
so.data.mechanic[_arg1][_local3].namee = "";
so.data.mechanic[_arg1][_local3].wages = "";
so.data.mechanic[_arg1][_local3].firetime = (100 * 4);
so.data.mechanic[_arg1][_local3].skillpt = "";
so.data.mechanic[_arg1][_local3].experienceloading = "";
so.data.mechanic[_arg1][_local3].experienceloadingtemp = "";
so.data.mechanic[_arg1][_local3].experience = "";
so.data.mechanic[_arg1][_local3].experiencemax = "";
so.data.mechanic[_arg1][_local3].levele = "";
so.data.mechanic[_arg1][_local3].putwhere = "";
so.data.mechanic[_arg1][_local3].team = "";
_local3++;
};
so.data.mechanicbuybool[_arg1] = false;
so.data.mechanicbuyarray[_arg1] = new Array();
_local3 = 1;
while (_local3 <= 7) {
so.data.mechanicbuyarray[_arg1][_local3] = new Array();
_local3++;
};
so.data.chipowned[_arg1] = new Array();
so.data.grade[_arg1] = 1;
so.data.gradetemp[_arg1] = so.data.grade[_arg1];
so.data.equipment[_arg1] = new Array();
_local3 = 1;
while (_local3 <= 4) {
so.data.equipment[_arg1][_local3] = new Array();
_local3++;
};
so.data.equipmentstatus[_arg1] = new Array();
_local3 = 1;
while (_local3 <= 4) {
so.data.equipmentstatus[_arg1][_local3] = new Array();
_local3++;
};
so.data.equipmenthp[_arg1] = new Array();
_local3 = 1;
while (_local3 <= 4) {
so.data.equipmenthp[_arg1][_local3] = new Array();
_local3++;
};
so.data.equipment[_arg1][1][so.data.equipment[_arg1][1].length] = so.data.charmechachip[_arg1][1];
so.data.equipmentstatus[_arg1][1][so.data.equipmentstatus[_arg1][1].length] = 1;
so.data.equipment[_arg1][2][so.data.equipment[_arg1][2].length] = so.data.charmechahead[_arg1][1];
so.data.equipmentstatus[_arg1][2][so.data.equipmentstatus[_arg1][2].length] = [undefined, head1effect[1][0], head1effect[1][1], head1effect[1][2], head1effect[1][3]];
so.data.equipmenthp[_arg1][2][so.data.equipmenthp[_arg1][2].length] = 1;
so.data.equipment[_arg1][4][so.data.equipment[_arg1][4].length] = so.data.charmechaleg1[_arg1][1];
so.data.equipmentstatus[_arg1][4][so.data.equipmentstatus[_arg1][4].length] = [undefined, leg1effect[1][0], leg1effect[1][1], leg1effect[1][2], leg1effect[1][3]];
so.data.equipmenthp[_arg1][4][so.data.equipmenthp[_arg1][4].length] = 1;
so.data.equipment[_arg1][4][so.data.equipment[_arg1][4].length] = so.data.charmechaleg2[_arg1][1];
so.data.equipmentstatus[_arg1][4][so.data.equipmentstatus[_arg1][4].length] = [undefined, leg1effect[1][0], leg1effect[1][1], leg1effect[1][2], leg1effect[1][3]];
so.data.equipmenthp[_arg1][4][so.data.equipmenthp[_arg1][4].length] = 1;
so.data.chipequipindex[_arg1] = (so.data.equipment[_arg1][1].length - 1);
so.data.headequipindex[_arg1] = (so.data.equipment[_arg1][2].length - 1);
so.data.hand1equipindex[_arg1] = -1;
so.data.hand2equipindex[_arg1] = -1;
so.data.leg1equipindex[_arg1] = (so.data.equipment[_arg1][4].length - 2);
so.data.leg2equipindex[_arg1] = (so.data.equipment[_arg1][4].length - 1);
so.data.charmechaheadhpreal2[_arg1][1] = so.data.equipmentstatus[_arg1][2][so.data.headequipindex[_arg1]][1];
so.data.charmechaheadhpreal[_arg1][1] = so.data.equipmentstatus[_arg1][2][so.data.headequipindex[_arg1]][1];
so.data.charmechaheadatk[_arg1][1] = so.data.equipmentstatus[_arg1][2][so.data.headequipindex[_arg1]][2];
so.data.charmechaheaddef[_arg1][1] = so.data.equipmentstatus[_arg1][2][so.data.headequipindex[_arg1]][3];
so.data.charmechaheadspd[_arg1][1] = so.data.equipmentstatus[_arg1][2][so.data.headequipindex[_arg1]][4];
so.data.charmechahand1hpreal2[_arg1][1] = 0;
so.data.charmechahand1hpreal[_arg1][1] = 0;
so.data.charmechahand1atk[_arg1][1] = 0;
so.data.charmechahand1def[_arg1][1] = 0;
so.data.charmechahand1spd[_arg1][1] = 0;
so.data.charmechahand2hpreal2[_arg1][1] = 0;
so.data.charmechahand2hpreal[_arg1][1] = 0;
so.data.charmechahand2atk[_arg1][1] = 0;
so.data.charmechahand2def[_arg1][1] = 0;
so.data.charmechahand2spd[_arg1][1] = 0;
so.data.charmechaleg1hpreal2[_arg1][1] = so.data.equipmentstatus[_arg1][4][so.data.leg1equipindex[_arg1]][1];
so.data.charmechaleg1hpreal[_arg1][1] = so.data.equipmentstatus[_arg1][4][so.data.leg1equipindex[_arg1]][1];
so.data.charmechaleg1atk[_arg1][1] = so.data.equipmentstatus[_arg1][4][so.data.leg1equipindex[_arg1]][2];
so.data.charmechaleg1def[_arg1][1] = so.data.equipmentstatus[_arg1][4][so.data.leg1equipindex[_arg1]][3];
so.data.charmechaleg1spd[_arg1][1] = so.data.equipmentstatus[_arg1][4][so.data.leg1equipindex[_arg1]][4];
so.data.charmechaleg2hpreal2[_arg1][1] = so.data.equipmentstatus[_arg1][4][so.data.leg2equipindex[_arg1]][1];
so.data.charmechaleg2hpreal[_arg1][1] = so.data.equipmentstatus[_arg1][4][so.data.leg2equipindex[_arg1]][1];
so.data.charmechaleg2atk[_arg1][1] = so.data.equipmentstatus[_arg1][4][so.data.leg2equipindex[_arg1]][2];
so.data.charmechaleg2def[_arg1][1] = so.data.equipmentstatus[_arg1][4][so.data.leg2equipindex[_arg1]][3];
so.data.charmechaleg2spd[_arg1][1] = so.data.equipmentstatus[_arg1][4][so.data.leg2equipindex[_arg1]][4];
so.data.charmechaheadhp[_arg1][1] = so.data.equipmenthp[_arg1][2][so.data.headequipindex[_arg1]];
so.data.charmechahand1hp[_arg1][1] = 1;
so.data.charmechahand2hp[_arg1][1] = 1;
so.data.charmechaleg1hp[_arg1][1] = so.data.equipmenthp[_arg1][4][so.data.leg1equipindex[_arg1]];
so.data.charmechaleg2hp[_arg1][1] = so.data.equipmenthp[_arg1][4][so.data.leg2equipindex[_arg1]];
}
public function enemymechaloadstandart(_arg1:Event):void{
if (_arg1.currentTarget.mchead != null){
_arg1.currentTarget.mchead.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][0]);
};
if (_arg1.currentTarget.mchand1 != null){
if (itemsummary[so.data.grade[slotselected]][musuhtipe][1] != 0){
_arg1.currentTarget.mchand1.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][1]);
} else {
_arg1.currentTarget.mchand1.visible = false;
};
};
if (_arg1.currentTarget.mchand2 != null){
if (itemsummary[so.data.grade[slotselected]][musuhtipe][1] != 0){
_arg1.currentTarget.mchand2.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][2]);
} else {
_arg1.currentTarget.mchand2.visible = false;
};
};
if (_arg1.currentTarget.mcleg1 != null){
_arg1.currentTarget.mcleg1.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][3]);
};
if (_arg1.currentTarget.mcleg2 != null){
_arg1.currentTarget.mcleg2.mc1.gotoAndStop(itemsummary[so.data.grade[slotselected]][musuhtipe][4]);
};
}
public function createeffectrusak(_arg1:Object, _arg2:Point):void{
var _local3:*;
var _local4:*;
_local3 = [effectclash, effectsmoke];
_local4 = randRange(0, (_local3.length - 1));
effectimage[effectimage.length] = new (_local3[_local4]);
if (currentLabel == "ingame"){
addChildAt(effectimage[(effectimage.length - 1)], (getChildIndex(mcmap) + 1));
} else {
addChild(effectimage[(effectimage.length - 1)]);
};
effectimage[(effectimage.length - 1)].x = (_arg2.x + randRange(-20, 10));
effectimage[(effectimage.length - 1)].y = (_arg2.y + randRange(-5, 5));
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].mouseChildren = false;
effectimage[(effectimage.length - 1)].mouseEnabled = false;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function itungmoneygained(){
mcbattleprize.txtmoney.text = (moneygained[so.data.grade[slotselected]] + "G");
so.data.money[slotselected] = (so.data.money[slotselected] + moneygained[so.data.grade[slotselected]]);
}
public function ytconnect(_arg1:MouseEvent):void{
var _local2:URLRequest;
soundclick.play(0, 1, new SoundTransform(volumemusic));
_local2 = new URLRequest("http://www.youtube.com/user/LittleGiantWorld");
navigateToURL(_local2);
}
public function obstaclespeedclick(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (_arg1.currentTarget.mc1.currentLabel != "idle"){
soundspeedclick.play(0, 1, new SoundTransform(volumemusic));
_arg1.currentTarget.gotoAndPlay(2);
_local2 = randRange(1, 2);
createeffect(_local2);
_local3 = 1;
while (_local3 <= 3) {
_local2 = randRange(3, 7);
createeffect(_local2);
_local3++;
};
_arg1.currentTarget.health--;
_local4 = (_arg1.currentTarget.health / _arg1.currentTarget.healthtemp);
if (_local4 > 0.6){
_arg1.currentTarget.mc1.gotoAndStop("phase3");
} else {
if (_local4 > 0.4){
_arg1.currentTarget.mc1.gotoAndStop("phase2");
} else {
if (_local4 > 0.1){
_arg1.currentTarget.mc1.gotoAndStop("phase1");
} else {
_arg1.currentTarget.health = _arg1.currentTarget.healthtemp;
_arg1.currentTarget.mc1.gotoAndStop("idle");
};
};
};
};
}
public function createoktextdefense():void{
effectimage[effectimage.length] = new (battledamagepointnew);
addChild(effectimage[(effectimage.length - 1)]);
effectimage[(effectimage.length - 1)].x = mouseX;
effectimage[(effectimage.length - 1)].y = mouseY;
effectimage[(effectimage.length - 1)].gotoAndPlay(2);
effectimage[(effectimage.length - 1)].mcpoingained.gotoAndStop(1);
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt1.text = "OK!";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].mouseChildren = false;
effectimage[(effectimage.length - 1)].mouseEnabled = false;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function ubahsebanyakinimoney(_arg1:int, _arg2:String){
so.data.money[slotselected] = (so.data.money[slotselected] - _arg1);
mcui.mc1.txtmoney.text = (so.data.money[slotselected] + "G");
if (so.data.money[slotselected] < 0){
mcui.mc1.txtmoney.textColor = 0xFF0000;
} else {
if (so.data.money[slotselected] > 0){
mcui.mc1.txtmoney.textColor = 0xCC00;
};
};
mcmoneyadded.mcpoingained.gotoAndStop(_arg2);
mcmoneyadded.mcpoingained.mc1.txt1.text = (_arg1 + "G");
mcmoneyadded.gotoAndPlay(2);
}
public function cekpatch(){
var _local1:*;
trace(("cek patch : " + so.data.likelg));
if (so.data.likelg == undefined){
so.data.likelg = new Array();
_local1 = 1;
while (_local1 <= 3) {
so.data.likelg[_local1] = false;
_local1++;
};
};
if (so.data.likelg[slotselected] == undefined){
so.data.likelg[slotselected] = false;
};
trace(("cek patch : " + so.data.likeab));
if (so.data.likeab == undefined){
so.data.likeab = new Array();
_local1 = 1;
while (_local1 <= 3) {
so.data.likeab[_local1] = false;
_local1++;
};
};
if (so.data.likeab[slotselected] == undefined){
so.data.likeab[slotselected] = false;
};
if (so.data.reportskipday == undefined){
so.data.reportskipday = new Array();
_local1 = 1;
while (_local1 <= 3) {
so.data.reportskipday[_local1] = false;
_local1++;
};
};
if (so.data.firsttimelowhealth == undefined){
so.data.firsttimelowhealth = new Array();
_local1 = 1;
while (_local1 <= 3) {
so.data.firsttimelowhealth[_local1] = false;
_local1++;
};
};
if (so.data.firsttimechipprize == undefined){
so.data.firsttimechipprize = new Array();
_local1 = 1;
while (_local1 <= 3) {
so.data.firsttimechipprize[_local1] = 0;
_local1++;
};
};
if (so.data.firsttimetournament == undefined){
so.data.firsttimetournament = new Array();
_local1 = 1;
while (_local1 <= 3) {
so.data.firsttimetournament[_local1] = false;
_local1++;
};
};
}
public function clicktoskipbarexp(_arg1:MouseEvent):void{
yaklikskipexp = true;
do {
doincreaseexp();
} while (exptemp > 0);
yaklikskipexp = false;
stage.removeEventListener(MouseEvent.CLICK, clicktoskipbarexp);
}
public function mainmenuplay(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcanimasi.mc1.gotoAndStop(2);
loadsave();
}
public function clicktoclose(_arg1:MouseEvent):void{
mcdialogbox.gotoAndStop(1);
mcdialogbox.btnnext.removeEventListener(MouseEvent.CLICK, clicktoclose);
}
public function clikLG(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
}
public function countdownstartspeed(_arg1:Event):void{
if ((((((mccountdown.currentLabel == "three")) || ((mccountdown.currentLabel == "two")))) || ((mccountdown.currentLabel == "one")))){
soundbeep.play(0, 1, new SoundTransform(volumemusic));
};
if (mccountdown.currentLabel == "go"){
soundclash.play(0, 1, new SoundTransform(volumemusic));
};
if (mccountdown.currentFrame == mccountdown.totalFrames){
mccountdown.removeEventListener(Event.ENTER_FRAME, countdownstartspeed);
mccountdown.gotoAndStop(1);
if (posisimarking == 2){
trace("ABIS COUNTDOWN TRAIN ATTACK");
stage.addEventListener(Event.ENTER_FRAME, trainattacktarget);
} else {
if (posisimarking == 3){
trace("ABIS COUNTDOWN TRAIN DEFENSE");
stage.addEventListener(Event.ENTER_FRAME, traindefensetarget);
} else {
if (posisimarking == 4){
trace("ABIS COUNTDOWN TRAIN SPEED");
mechaused.addEventListener(Event.ENTER_FRAME, trainspeedmovement);
};
};
};
};
}
public function createpenontonriuh(){
var _local1:*;
var _local2:*;
var _local3:*;
if (soundpenontontime < 0){
soundhurray.play(0, 1, new SoundTransform(volumemusic));
soundpenontontime = soundpenontontimetemp;
};
_local1 = 0;
while (_local1 < crowdimage.length) {
if (crowdimage[_local1] != null){
_local2 = randRange(0, 1);
if (_local2 == 1){
crowdimage[_local1].gotoAndStop(("jump" + crowdimage[_local1].facee));
} else {
_local3 = randRange(0, 1);
if (_local3 == 1){
crowdimage[_local1].gotoAndStop(("standby" + crowdimage[_local1].facee));
};
};
};
_local1++;
};
}
public function loadstandartmecha(_arg1:Object):void{
if (((!((posisimarking == 1))) || (!((currentLabel == "ingame"))))){
_arg1.mcprogress.visible = false;
};
if (_arg1.mchead != null){
_arg1.mchead.mc1.gotoAndStop(so.data.charmechahead[slotselected][robotused]);
};
if (_arg1.mchand1 != null){
if (so.data.charmechahand1[slotselected][robotused] == 0){
_arg1.mchand1.visible = false;
} else {
_arg1.mchand1.visible = true;
_arg1.mchand1.mc1.gotoAndStop(so.data.charmechahand1[slotselected][robotused]);
};
};
if (_arg1.mchand2 != null){
if (so.data.charmechahand2[slotselected][robotused] == 0){
_arg1.mchand2.visible = false;
} else {
_arg1.mchand2.visible = true;
_arg1.mchand2.mc1.gotoAndStop(so.data.charmechahand2[slotselected][robotused]);
};
};
if (_arg1.mcleg1 != null){
_arg1.mcleg1.mc1.gotoAndStop(so.data.charmechaleg1[slotselected][robotused]);
};
if (_arg1.mcleg2 != null){
_arg1.mcleg2.mc1.gotoAndStop(so.data.charmechaleg2[slotselected][robotused]);
};
_arg1.visible = true;
}
public function buwatblinkerefektif(){
if (mcblinker.currentFrame == 1){
mcblinker.gotoAndPlay(2);
};
}
public function loadtraingarage(){
var _local1:*;
var _local2:*;
mcindicatorhealth.visible = true;
cekstattotal(robotused);
cekstatnow(robotused);
trace("LOAD TRAIN GARAGE MECHA");
buildingused = mcmap.getChildByName(("mcbuild" + targetmark));
buildingused.mcraider1.visible = true;
buildingused.mcraider1.gotoAndStop(so.data.raider[slotselected]);
buildingused.mc1.gotoAndStop(so.data.traingaragelevel[slotselected]);
if (so.data.tutorialcomplete[slotselected] == false){
_local1 = 1;
while (_local1 <= 4) {
buildingused.getChildByName(("mcstaff" + _local1)).visible = false;
_local1++;
};
};
mechaused = buildingused.getChildByName(("mcmecha" + robotused));
mechaused.visible = true;
mechaused.mcprogress.visible = false;
mechaused.addEventListener(Event.ENTER_FRAME, mechaloadstandart);
if (so.data.sponsorlogo[slotselected] != 0){
buildingused.mcsponsor.visible = true;
buildingused.mcsponsor.gotoAndStop(so.data.sponsorlogo[slotselected]);
mcmap.mcbuild1.mcsponsor.removeEventListener(MouseEvent.CLICK, sponsorlinkout);
mcmap.mcbuild1.mcsponsor.addEventListener(MouseEvent.CLICK, sponsorlinkout);
} else {
buildingused.mcsponsor.visible = false;
};
_local1 = 1;
while (_local1 <= 8) {
_local2 = buildingused.getChildByName(("mcstaffidle" + _local1));
if (_local2 != null){
_local2.gotoAndStop(so.data.mechanic[slotselected][_local1].head);
_local2.visible = false;
};
_local2 = buildingused.getChildByName(("mcstaff" + _local1));
if (_local2 != null){
_local2.gotoAndStop(so.data.mechanic[slotselected][_local1].head);
_local2.visible = false;
};
_local1++;
};
trace(((("TRAIN GARAGE CEK" + so.data.tutorialstep[slotselected]) + "ha : ") + mecharepairbool));
if ((((((so.data.tutorialcomplete[slotselected] == true)) || ((so.data.tutorialstep[slotselected] == 5)))) || ((so.data.tutorialstep[slotselected] == 10)))){
loadmechanicingarage(1);
};
}
public function mechanicbuyup(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, mechanicfollowmouse);
_arg1.currentTarget.txtwages.visible = true;
_arg1.currentTarget.txtskill.visible = true;
_local2 = 1;
while (_local2 <= 4) {
_local3 = mcmechanicpanel.getChildByName(("mcmechanic" + _local2));
if (_local3.mchit.hitTestObject(_arg1.currentTarget.mcstaff) == true){
_local4 = 0;
_local5 = false;
j = 1;
while (j <= 8) {
if (so.data.mechanic[slotselected][j].putwhere == _local2){
trace("ya nda bole ada isi");
_local5 = true;
break;
};
j++;
};
if (_local5 == false){
j = 1;
while (j <= 8) {
if (so.data.mechanic[slotselected][j].putwhere == ""){
_local4 = j;
trace((("ya ini : " + _local4) + " kosong"));
break;
};
j++;
};
if (((!((_local4 == 0))) && (((_arg1.currentTarget.wages / 2) <= so.data.money[slotselected])))){
trace(("ya kebeli : " + so.data.tutorialstep[slotselected]));
ubahsebanyakinimoney((_arg1.currentTarget.wages / 2), "damage");
so.data.mechanicbuyarray[slotselected][_arg1.currentTarget.nomechanicarray].head = -1;
so.data.mechanic[slotselected][_local4].exist = true;
so.data.mechanic[slotselected][_local4].head = _arg1.currentTarget.head;
so.data.mechanic[slotselected][_local4].namee = namerand[randRange(0, (namerand.length - 1))];
so.data.mechanic[slotselected][_local4].wages = _arg1.currentTarget.wages;
so.data.mechanic[slotselected][_local4].firetime = (100 * 4);
so.data.mechanic[slotselected][_local4].skillpt = _arg1.currentTarget.skill;
so.data.mechanic[slotselected][_local4].experienceloading = perlambatanmechanicexp;
so.data.mechanic[slotselected][_local4].experienceloadingtemp = perlambatanmechanicexp;
so.data.mechanic[slotselected][_local4].experience = 0;
so.data.mechanic[slotselected][_local4].experiencemax = 10;
so.data.mechanic[slotselected][_local4].levele = _arg1.currentTarget.levele;
so.data.mechanic[slotselected][_local4].putwhere = _local2;
trace((("ya ini : " + so.data.mechanic[slotselected][_local4].putwhere) + " isi"));
if (j <= 4){
so.data.mechanic[slotselected][_local4].team = 1;
} else {
if (j > 4){
so.data.mechanic[slotselected][_local4].team = 2;
};
};
_local3.mcstaff.visible = true;
_local3.btnpromote.visible = true;
_local3.btnfire.visible = true;
_local3.txtlevel.visible = true;
_local3.txtwages.visible = true;
_local3.txtskillpt.visible = true;
_local3.mcbarexp.visible = true;
_local3.txtname.visible = true;
_local3.txtno.visible = true;
_local3.txtdrophere.visible = false;
_local3.mcstaff.gotoAndStop(so.data.mechanic[slotselected][_local4].head);
_local3.mcstaff.mcclash.visible = false;
_local3.txtlevel.text = ("Lv." + so.data.mechanic[slotselected][_local4].levele);
_local3.txtname.text = so.data.mechanic[slotselected][_local4].namee;
_local3.txtwages.text = (so.data.mechanic[slotselected][_local4].wages + "G");
_local3.txtskillpt.text = (so.data.mechanic[slotselected][_local4].skillpt + "pt");
_local3.mcbarexp.width = ((so.data.mechanic[slotselected][_local4].experience / so.data.mechanic[slotselected][_local4].experiencemax) * 36);
if (so.data.tutorialstep[slotselected] == 6){
so.data.mechanic[slotselected][_local4].skillpt = 50;
so.data.tutorialstep[slotselected] = 7;
createtutortext6();
} else {
if (so.data.tutorialstep[slotselected] == 7){
so.data.mechanic[slotselected][_local4].skillpt = 50;
so.data.tutorialstep[slotselected] = 8;
createtutortext7();
};
};
cektampilanstaffdanrepairrate();
loadfungsitombolautorepair();
} else {
mcneedchipsetgrade.gotoAndPlay(2);
mcneedchipsetgrade.x = mouseX;
mcneedchipsetgrade.y = mouseY;
mcneedchipsetgrade.mc1.txt1.text = "Not enough Money";
};
};
};
_local2++;
};
_arg1.currentTarget.x = _arg1.currentTarget.statx;
_arg1.currentTarget.y = _arg1.currentTarget.staty;
loadmechanicpanel();
}
public function cleanup(){
var _local1:*;
trace("0");
if (soundchannelrepair != null){
soundchannelrepair.stop();
soundchannelrepair = null;
};
trace("1");
stage.removeEventListener(MouseEvent.CLICK, clicktoskipbarexp);
stage.removeEventListener(Event.ENTER_FRAME, naikpemenang);
stage.removeEventListener(Event.ENTER_FRAME, textingtext);
stage.removeEventListener(Event.ENTER_FRAME, mapswap);
mechaused.removeEventListener(Event.ENTER_FRAME, mechaloadstandart);
mccountdown.removeEventListener(Event.ENTER_FRAME, countdownstartspeed);
mechaused.removeEventListener(Event.ENTER_FRAME, trainspeedmovement);
trace("1");
_local1 = 0;
while (_local1 < effectimage.length) {
if (effectimage[_local1] != null){
trace("asd");
effectimage[_local1].removeEventListener(Event.ENTER_FRAME, effectremover);
trace("asds");
removeChild(effectimage[_local1]);
trace("asd");
effectimage[_local1] = null;
};
_local1++;
};
trace("2");
_local1 = 0;
while (_local1 < shopitem.length) {
if (shopitem[_local1] != null){
shopitem[_local1].removeEventListener(Event.ENTER_FRAME, shopitemclick);
removeChild(shopitem[_local1]);
shopitem[_local1] = null;
};
_local1++;
};
stage.removeEventListener(Event.ENTER_FRAME, barexpmovement);
stage.removeEventListener(Event.ENTER_FRAME, trainattacktarget);
stage.removeEventListener(Event.ENTER_FRAME, transitionwait);
stage.removeEventListener(Event.ENTER_FRAME, gametimelol);
stage.removeEventListener(Event.ENTER_FRAME, repairloadingtime);
stage.removeEventListener(MouseEvent.MOUSE_UP, shopscrollupitem);
stage.removeEventListener(MouseEvent.CLICK, clicktoskipbarexp);
stage.removeEventListener(Event.ENTER_FRAME, mendaltahap);
stage.removeEventListener(Event.ENTER_FRAME, enddayertransisi);
stage.removeEventListener(Event.ENTER_FRAME, repairloadingtime);
cleanupfixer();
}
public function sponsoronclick(_arg1:MouseEvent):void{
var _local2:*;
if (so.data.sponsortimetemp[slotselected] == -1){
_local2 = false;
if (nosponsor == 1){
if (so.data.grade[slotselected] >= sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + nosponsor)]){
_local2 = true;
};
} else {
if (nosponsor == 2){
if (so.data.raiderlevel[slotselected] >= sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + nosponsor)]){
_local2 = true;
};
} else {
if (nosponsor == 3){
if (so.data.win[slotselected] >= sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + nosponsor)]){
_local2 = true;
};
} else {
if (nosponsor == 4){
if (so.data.money[slotselected] >= sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + nosponsor)]){
_local2 = true;
};
};
};
};
};
if (_local2 == true){
mcsponsorsure.visible = true;
};
};
}
public function tambaiatkberdasarkanpersentase(_arg1:Number, _arg2:int){
so.data.charmechaheadatkreal[slotselected][_arg2] = (so.data.charmechaheadatkreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaheadatkreal[slotselected][_arg2])));
if (so.data.charmechahand1[slotselected][_arg2] != 0){
so.data.charmechahand1atkreal[slotselected][_arg2] = (so.data.charmechahand1atkreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechahand1atkreal[slotselected][_arg2])));
};
if (so.data.charmechahand2[slotselected][_arg2] != 0){
so.data.charmechahand2atkreal[slotselected][_arg2] = (so.data.charmechahand2atkreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechahand2atkreal[slotselected][_arg2])));
};
so.data.charmechaleg1atkreal[slotselected][_arg2] = (so.data.charmechaleg1atkreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaleg1atkreal[slotselected][_arg2])));
so.data.charmechaleg2atkreal[slotselected][_arg2] = (so.data.charmechaleg2atkreal[slotselected][_arg2] + int(((_arg1 / 100) * so.data.charmechaleg2atkreal[slotselected][_arg2])));
}
public function undoskillpt(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
soundclick.play(0, 1, new SoundTransform(volumemusic));
_arg1.currentTarget.visible = false;
poinshare = poinsharetemp;
mctrainresult.txthp.text = ("HP : " + ridertemp[0]);
mctrainresult.txtatk.text = ("ATK : " + ridertemp[1]);
mctrainresult.txtdef.text = ("DEF : " + ridertemp[2]);
mctrainresult.txtspd.text = ("SPD : " + ridertemp[3]);
mctrainresult.txtavailable.visible = true;
mctrainresult.txtavailable.text = ("Available points : " + poinshare);
so.data.raiderhp[slotselected] = ridertemp[0];
so.data.raideratk[slotselected] = ridertemp[1];
so.data.raiderdef[slotselected] = ridertemp[2];
so.data.raiderspd[slotselected] = ridertemp[3];
_local2 = 1;
while (_local2 <= 4) {
_local3 = mctrainresult.getChildByName(("btnplus" + _local2));
_local3.visible = true;
_local2++;
};
}
public function cekattackbonus(_arg1:int):int{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = [undefined, 300, 500, 800];
_local3 = 4;
_local4 = (_arg1 / _local2[so.data.trainattacklevel[slotselected]]);
_local4 = int((_local4 * _local3));
if (_local4 > _local3){
_local4 = _local3;
};
return (_local4);
}
public function sponsorexpfollowmouse(_arg1:Event):void{
var _local2:*;
var _local3:*;
mcsponsorexp.visible = true;
mcsponsorexp.x = mouseX;
mcsponsorexp.y = mouseY;
_local2 = [undefined, "Unlocked grade ", "Rider level ", " Battle won", " G collected in cash"];
if (nosponsor == 1){
_local3 = [undefined, "E", "D", "C", "B", "A"];
mcsponsorexp.txt1.text = ("Unlocked grade " + _local3[sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + nosponsor)]]);
} else {
if (nosponsor == 2){
mcsponsorexp.txt1.text = ("Rider level " + sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + nosponsor)]);
} else {
if (nosponsor == 3){
mcsponsorexp.txt1.text = (("Won " + sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + nosponsor)]) + " battles");
} else {
if (nosponsor == 4){
mcsponsorexp.txt1.text = (("Have " + sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + nosponsor)]) + "G in cash");
};
};
};
};
}
public function targetpartsclick(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
if (mcmousebattle.mchit.hitTestObject(btncancel) == true){
skillclickframe = false;
txteffectivetext.visible = false;
mcskillexplanation2.visible = false;
mcmousebattle.visible = false;
Mouse.show();
btncancel.visible = false;
skilldariparts = 0;
skillnodariparts = 0;
partske = 0;
skillselecttarget = false;
mcblacker.visible = false;
mcmechaenemy2.visible = false;
mcmechaenemy2.x = enemymecha.x;
mcmechaenemy2.y = enemymecha.y;
mcbattleexplanation.visible = false;
partsyangdiserang = _local2;
mcmousebattle.visible = false;
mcmousebattle.x = -200;
mcmousebattle.y = -200;
Mouse.show();
stage.removeEventListener(Event.ENTER_FRAME, overtarget);
stage.removeEventListener(MouseEvent.CLICK, targetpartsclick);
mcblacker.visible = false;
mcmechaenemy2.visible = false;
trace(((("YA DI CANCEL " + battleanimationbool) + " ") + skillselecttarget));
};
_local2 = 1;
while (_local2 <= 5) {
_local3 = mcmechaenemy2.getChildByName(("btn" + _local2));
if ((((((mcmousebattle.mchit.hitTestObject(_local3) == true)) && ((musuhstatsummary[(_local2 - 1)] > 0)))) && (!((itemsummary[so.data.grade[slotselected]][randenemy][(_local2 - 1)] == 0))))){
mcskillexplanation2.visible = false;
btncancel.visible = false;
partsyangdiserang = _local2;
playerattack = true;
buwatseranganmanual();
break;
};
_local2++;
};
}
public function repairautoout(_arg1:MouseEvent):void{
txtdayrepair.visible = false;
}
public function shopscrollupitem(_arg1:MouseEvent):void{
stage.removeEventListener(Event.ENTER_FRAME, scrollitemshop);
stage.removeEventListener(MouseEvent.MOUSE_UP, shopscrollupitem);
}
public function loadinventory(){
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < shopitem.length) {
if (shopitem[_local1] != null){
removeChild(shopitem[_local1]);
shopitem[_local1] = null;
};
_local1++;
};
shopitem = new Array();
currkolom = 1;
currbaris = 1;
ontelke = 0;
omaxke = 0;
vulhpke = 0;
vuldefke = 0;
vulattke = 0;
vulspdke = 0;
vulstabil = 0;
drgonke = 0;
vampireke = 0;
mysteriouske = 0;
trace(("LENGTH : " + so.data.equipment[slotselected][indexitem].length));
if (so.data.equipment[slotselected][indexitem].length > 0){
_local1 = 0;
while (_local1 < so.data.equipment[slotselected][indexitem].length) {
_local2 = false;
if (indexitem == 1){
trace(("chip set status list : " + so.data.equipmentstatus[slotselected][indexitem]));
trace(((("chip set ini nti waktu diklik nomor : " + so.data.equipment[slotselected][indexitem][_local1]) + " dia versi V ke : ") + objarraylistsummary[1][so.data.equipment[slotselected][indexitem][_local1]][so.data.equipmentstatus[slotselected][indexitem][_local1]]));
createshopitemchild(so.data.equipment[slotselected][indexitem][_local1], so.data.equipmentstatus[slotselected][indexitem][_local1]);
} else {
if (indexitem != 1){
createshopitemchild(so.data.equipment[slotselected][indexitem][_local1], 1);
};
};
shopitem[(shopitem.length - 1)].equippedbool = false;
if (indexitem == 1){
trace(((("cek CHIP equip index : " + so.data.chipequipindex[slotselected]) + " ma : ") + _local1));
if (so.data.chipequipindex[slotselected] == _local1){
_local2 = true;
};
};
if (indexitem == 2){
trace(((("cek HEAD equip index : " + so.data.headequipindex[slotselected]) + " ma : ") + _local1));
if (so.data.headequipindex[slotselected] == _local1){
_local2 = true;
};
};
if (indexitem == 3){
trace(((("cek HAND1 equip index : " + so.data.hand1equipindex[slotselected]) + " ma : ") + _local1));
trace(((("cek HAND2 equip index : " + so.data.hand2equipindex[slotselected]) + " ma : ") + _local1));
if (so.data.hand1equipindex[slotselected] == _local1){
_local2 = true;
};
if (so.data.hand2equipindex[slotselected] == _local1){
_local2 = true;
};
};
if (indexitem == 4){
trace(((("cek LEG1 equip index : " + so.data.leg1equipindex[slotselected]) + " ma : ") + _local1));
trace(((("cek LEG2 equip index : " + so.data.leg2equipindex[slotselected]) + " ma : ") + _local1));
if (so.data.leg1equipindex[slotselected] == _local1){
_local2 = true;
};
if (so.data.leg2equipindex[slotselected] == _local1){
_local2 = true;
};
};
if (_local2 == true){
shopitem[(shopitem.length - 1)].gotoAndStop(3);
shopitem[(shopitem.length - 1)].txt1.textColor = "0x0000";
shopitem[(shopitem.length - 1)].equippedbool = true;
shopitem[(shopitem.length - 1)].buttonMode = false;
shopitem[(shopitem.length - 1)].removeEventListener(MouseEvent.MOUSE_OVER, shopitemover);
shopitem[(shopitem.length - 1)].removeEventListener(MouseEvent.CLICK, shopitemclick);
};
_local1++;
};
};
}
public function cekgameover(){
if (so.data.deficitcount[slotselected] >= 12){
mcgameover.gotoAndPlay(2);
} else {
if (so.data.deficitcount[slotselected] >= 6){
if (deficitbool == false){
mcdeficitwarning.visible = true;
deficitbool = true;
};
};
};
}
public function cekachievement(){
var _local1:*;
var _local2:*;
_local1 = 0;
if (so.data.achievement[1] == 0){
if ((((((so.data.trainattacklevel[slotselected] > 1)) && ((so.data.traindefenselevel[slotselected] > 1)))) && ((so.data.trainspeedlevel[slotselected] > 1)))){
so.data.achievement[1] = 1;
_local1 = 1;
};
};
if (so.data.achievement[2] == 0){
if (so.data.sold >= 10){
so.data.achievement[2] = 1;
_local1 = 2;
};
};
if (so.data.achievement[3] == 0){
if (so.data.win[slotselected] >= 10){
so.data.achievement[3] = 1;
_local1 = 3;
};
};
if (so.data.achievement[4] == 0){
if (so.data.win[slotselected] >= 40){
so.data.achievement[4] = 1;
_local1 = 4;
};
};
if (so.data.achievement[5] == 0){
if (so.data.trainattacklevel[slotselected] == 3){
so.data.achievement[5] = 1;
_local1 = 5;
};
};
if (so.data.achievement[6] == 0){
if (so.data.trainspeedlevel[slotselected] == 3){
so.data.achievement[6] = 1;
_local1 = 6;
};
};
if (so.data.achievement[7] == 0){
if (so.data.raiderlevel[slotselected] >= 20){
so.data.achievement[7] = 1;
_local1 = 7;
};
};
if (so.data.achievement[8] == 0){
if (so.data.armbuy >= 2){
so.data.achievement[8] = 1;
_local1 = 8;
};
};
if (so.data.achievement[9] == 0){
_local2 = 0;
j = 1;
while (j <= 8) {
if (so.data.mechanic[slotselected][j].exist == true){
_local2++;
};
j++;
};
if (_local2 >= 4){
so.data.achievement[9] = 1;
_local1 = 9;
};
};
if (so.data.achievement[10] == 0){
if (so.data.promote == true){
so.data.achievement[10] = 1;
_local1 = 10;
};
};
if (so.data.achievement[11] == 0){
if (so.data.chipsetbuy == 1){
so.data.achievement[11] = 1;
_local1 = 11;
};
};
if (so.data.achievement[12] == 0){
if (so.data.finalchipset == 1){
so.data.achievement[12] = 1;
_local1 = 12;
};
};
if (so.data.achievement[13] == 0){
if (so.data.raiderlevel[slotselected] > 1){
so.data.achievement[13] = 1;
_local1 = 13;
};
};
if (so.data.achievement[14] == 0){
if (so.data.grade[slotselected] == 2){
so.data.achievement[14] = 1;
_local1 = 14;
};
};
if (so.data.achievement[15] == 0){
if (so.data.grade[slotselected] == 3){
so.data.achievement[15] = 1;
_local1 = 15;
};
};
if (so.data.achievement[16] == 0){
if (so.data.grade[slotselected] == 4){
so.data.achievement[16] = 1;
_local1 = 16;
};
};
if (so.data.achievement[17] == 0){
if (so.data.grade[slotselected] == 5){
so.data.achievement[17] = 1;
_local1 = 17;
};
};
if (so.data.achievement[18] == 0){
if (so.data.endgame == true){
so.data.achievement[18] = 1;
_local1 = 18;
};
};
if (so.data.achievement[19] == 0){
if (so.data.raiderlevel[slotselected] == 5){
so.data.achievement[19] = 1;
_local1 = 19;
};
};
if (so.data.achievement[20] == 0){
if (so.data.raiderlevel[slotselected] == 12){
so.data.achievement[20] = 1;
_local1 = 20;
};
};
if (so.data.achievement[21] == 0){
if ((((so.data.grade[slotselected] == 5)) && (!((so.data.sponsortimetemp[slotselected] == -1))))){
so.data.achievement[21] = 1;
_local1 = 21;
};
};
if (so.data.achievement[22] == 0){
if (so.data.lose == true){
so.data.achievement[22] = 1;
_local1 = 22;
};
};
if (so.data.achievement[23] == 0){
if (so.data.winrow >= 5){
so.data.achievement[23] = 1;
_local1 = 23;
};
};
if (so.data.achievement[24] == 0){
if (so.data.moneyspend >= 10000){
so.data.achievement[24] = 1;
_local1 = 24;
};
};
if (so.data.achievement[25] == 0){
if (so.data.moneyspend >= 20000){
so.data.achievement[25] = 1;
_local1 = 25;
};
};
if (_local1 != 0){
mcachievementwindow.mc1.mc1.gotoAndStop(_local1);
mcachievementwindow.gotoAndPlay(2);
};
}
public function createpenontonmendal(_arg1:String){
var _local2:*;
if (_arg1 == ""){
_local2 = 0;
while (_local2 < crowdimage.length) {
crowdimage[_local2].countdown = ((crowdimage[_local2].rowe - 1) * 2);
crowdimage[_local2].mendalbool = false;
_local2++;
};
};
stage.addEventListener(Event.ENTER_FRAME, mendaltahap);
}
public function defensebuttonclick(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = false;
_local3 = 0;
while (_local3 < defenseballimage.length) {
if (defenseballimage[_local3] != null){
if (defenseballimage[_local3].mchit.hitTestObject(_arg1.currentTarget) == true){
soundberhasil.play(0, 1, new SoundTransform(volumemusic));
if (mechaused.currentLabel != "frontdodge"){
mechaused.gotoAndPlay("frontdodge");
};
traindefensesembur();
defensequantityball--;
defensesuccess++;
_local2 = true;
createeffect(8);
removeChild(defenseballimage[_local3]);
defenseballimage[_local3] = null;
if (defensequantityball <= 0){
trace("TRAIN DEFENSE COMPLETED");
cleanuptrainall();
};
};
};
_local3++;
};
if (_local2 == false){
soundgabisaclick.play(0, 1, new SoundTransform(volumemusic));
if (mechaused.currentLabel != "frontmelee"){
mechaused.gotoAndPlay("frontmelee");
};
mechaused.mchead.gotoAndPlay(2);
mechaused.mchand1.gotoAndPlay(2);
mechaused.mchand2.gotoAndPlay(2);
mechaused.mcleg1.gotoAndPlay(2);
mechaused.mcleg2.gotoAndPlay(2);
_local4 = _arg1.currentTarget.name;
_local4 = _arg1.currentTarget.name.charAt((_local4.length - 1));
_local5 = mcdefensebar.getChildByName(("mcblocker" + _local4));
_local5.visible = true;
_local5.timeshow = 25;
traindefensesembur();
} else {
_local4 = _arg1.currentTarget.name;
_local4 = _arg1.currentTarget.name.charAt((_local4.length - 1));
_local5 = mcdefensebar.getChildByName(("mclight" + _local4));
_local5.gotoAndPlay(2);
createoktextdefense();
};
}
public function cleanupfixer(){
stage.removeEventListener(Event.ENTER_FRAME, textingtext);
stage.removeEventListener(Event.ENTER_FRAME, mapswap);
mechaused.removeEventListener(Event.ENTER_FRAME, mechaloadstandart);
mccountdown.removeEventListener(Event.ENTER_FRAME, countdownstartspeed);
mechaused.removeEventListener(Event.ENTER_FRAME, trainspeedmovement);
stage.removeEventListener(Event.ENTER_FRAME, barexpmovement);
stage.removeEventListener(Event.ENTER_FRAME, trainattacktarget);
stage.removeEventListener(Event.ENTER_FRAME, transitionwait);
stage.removeEventListener(Event.ENTER_FRAME, gametimelol);
stage.removeEventListener(Event.ENTER_FRAME, traindefensetarget);
stage.removeEventListener(Event.ENTER_FRAME, battlewaitframe);
stage.removeEventListener(Event.ENTER_FRAME, skillonoverfollowmouse);
stage.removeEventListener(Event.ENTER_FRAME, battlemainframe);
stage.removeEventListener(Event.ENTER_FRAME, mechanicfollowmouse);
stage.removeEventListener(Event.ENTER_FRAME, overtarget);
stage.removeEventListener(MouseEvent.CLICK, targetpartsclick);
stage.removeEventListener(Event.ENTER_FRAME, battleanimation);
stage.removeEventListener(Event.ENTER_FRAME, countdownbattleend);
stage.removeEventListener(Event.ENTER_FRAME, sponsorexpfollowmouse);
stage.removeEventListener(Event.ENTER_FRAME, raidershopfollowmouse);
stage.removeEventListener(Event.ENTER_FRAME, naikpemenang);
stage.removeEventListener(Event.ENTER_FRAME, onskillarea);
stage.removeEventListener(Event.ENTER_FRAME, shopextractor);
stage.removeEventListener(Event.ENTER_FRAME, scrollitemshop);
stage.removeEventListener(Event.ENTER_FRAME, jedaertime);
stage.removeEventListener(MouseEvent.MOUSE_UP, shopscrollupitem);
stage.removeEventListener(MouseEvent.CLICK, clicktoskipbarexp);
stage.removeEventListener(Event.ENTER_FRAME, mendaltahap);
stage.removeEventListener(Event.ENTER_FRAME, enddayertransisi);
stage.removeEventListener(Event.ENTER_FRAME, repairloadingtime);
}
public function onskillarea(_arg1:Event):void{
mcmousemini.x = mouseX;
mcmousemini.y = mouseY;
if (mcmousemini.hitTestObject(mcskillsummary.mcoutover) == false){
stage.removeEventListener(Event.ENTER_FRAME, onskillarea);
mcskillsummary.gotoAndStop(1);
mcblacker.visible = false;
skillselecttarget = false;
pausegame = false;
btnattackover.visible = true;
};
}
public function battlewaitframe(_arg1:Event):void{
if (pausegame == true){
mccountdown.stop();
} else {
if (pausegame == false){
if ((((((mccountdown.currentLabel == "three")) || ((mccountdown.currentLabel == "two")))) || ((mccountdown.currentLabel == "one")))){
soundbeep.play(0, 1, new SoundTransform(volumemusic));
};
if (mccountdown.currentLabel == "go"){
soundclash.play(0, 1, new SoundTransform(volumemusic));
};
if (tahaptungguprep == 1){
if (mcuibattle.currentFrame == mcuibattle.totalFrames){
mcuibattle.mcplayerbar.mcbarhealth.width = 1;
mcuibattle.mcenemybar.mcbarhealth.width = 1;
mccountdown.gotoAndPlay(2);
tahaptungguprep++;
};
} else {
if (tahaptungguprep == 2){
mccountdown.nextFrame();
if (mccountdown.currentLabel != "done"){
mcuibattle.mcplayerbar.txthp.visible = true;
mcuibattle.mcenemybar.txthp.visible = true;
mcuibattle.mcplayerbar.mcbarhealth.width = (mcuibattle.mcplayerbar.mcbarhealth.width + targetplayerwidth);
mcuibattle.mcenemybar.mcbarhealth.width = (mcuibattle.mcenemybar.mcbarhealth.width + targetenemywidth);
itungehpplayer = (itungehpplayer + (so.data.mechahptemp[slotselected][robotused] / 58));
mcuibattle.mcplayerbar.txthp.text = ((so.data.mechahp[slotselected][robotused] + "/") + int(itungehpplayer));
itungehpenemy = (itungehpenemy + (musuhhp / 58));
mcuibattle.mcenemybar.txthp.text = ((int(itungehpenemy) + "/") + musuhhptemp);
} else {
createpenontonduduk();
if (so.data.tutorialcomplete[slotselected] == false){
createhelp();
};
mccountdown.gotoAndStop(1);
mcskillsummary.gotoAndPlay(2);
stage.removeEventListener(Event.ENTER_FRAME, battlewaitframe);
stage.addEventListener(Event.ENTER_FRAME, battlemainframe);
};
};
};
};
};
}
public function effectbattleremove(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (pausegame == true){
} else {
if (pausegame == false){
if ((((so.data.mechahptemp[slotselected][robotused] < 1)) || ((musuhhp < 1)))){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, effectbattleremove);
tembaksebanyak--;
trace(("kurangi tembak sbnyk : " + tembaksebanyak));
if (tembaksebanyak <= 0){
skillselecttarget = false;
battleanimationbool = false;
stage.removeEventListener(Event.ENTER_FRAME, battleanimation);
};
effectbattle[_arg1.currentTarget.indexke].removeEventListener(Event.ENTER_FRAME, effectbattleremove);
removeChild(effectbattle[_arg1.currentTarget.indexke]);
effectbattle[_arg1.currentTarget.indexke] = null;
} else {
if ((((so.data.mechahptemp[slotselected][robotused] > 0)) && ((musuhhp > 0)))){
if ((((_arg1.currentTarget.tipe == "hand")) && (!((_arg1.currentTarget.tipe == "done"))))){
_arg1.currentTarget.delaytime--;
if (_arg1.currentTarget.delaytime > 0){
_arg1.currentTarget.visible = false;
} else {
if (_arg1.currentTarget.delaytime < 0){
_arg1.currentTarget.visible = true;
if (_arg1.currentTarget.hero == "hero"){
if (_arg1.currentTarget.blumnembak == true){
_arg1.currentTarget.blumnembak = false;
if (mcplayereffective.currentLabel != "blinking"){
mcplayereffective.gotoAndPlay("blinking");
};
linkagesound[soundindex].play(0, 1, new SoundTransform(volumemusic));
if (partske == 1){
mechaused.gotoAndPlay("backshoot2");
} else {
if (partske == 2){
mechaused.gotoAndPlay("backshoot1");
};
};
};
if ((((_arg1.currentTarget.currentLabel == "go")) && ((_arg1.currentTarget.directione == 1)))){
_arg1.currentTarget.x = (_arg1.currentTarget.x + (standartspeedx * 6));
_arg1.currentTarget.y = (_arg1.currentTarget.y - (standartspeedy * 6));
} else {
if ((((_arg1.currentTarget.currentLabel == "go")) && ((_arg1.currentTarget.directione == 2)))){
_arg1.currentTarget.x = (_arg1.currentTarget.x - (standartspeedx * 6));
_arg1.currentTarget.y = (_arg1.currentTarget.y + (standartspeedy * 6));
};
};
if ((((_arg1.currentTarget.hitTestObject(mechaused.mchead) == true)) && ((_arg1.currentTarget.directione == 2)))){
partsyangdiserang = partske;
trace("ya ini heal");
damagemasuk = (((damagemasuk * leechlv) * leechpersentase) * -1);
trace(("cek heal : " + damagemasuk));
cekobjkenadamage(mechaused);
createdamagepoint(mechaused, damagemasuk, "recovering");
_arg1.currentTarget.tipe = "done";
_arg1.currentTarget.gotoAndPlay("explode");
} else {
if ((((_arg1.currentTarget.hitTestObject(enemymecha.mchead) == true)) && ((_arg1.currentTarget.directione == 1)))){
_local2 = cekdodge(so.data.mechaatktemp[slotselected][robotused], so.data.mechadeftemp[slotselected][robotused], so.data.mechaspdtemp[slotselected][robotused], ((objarraylistsummaryeffect[4][itemsummary[so.data.grade[slotselected]][randenemy][3]][1][3] * musuhstatsummary[3]) + (objarraylistsummaryeffect[4][itemsummary[so.data.grade[slotselected]][randenemy][4]][1][3] * musuhstatsummary[4])));
if (_local2 == false){
soundmiss.play(0, 1, new SoundTransform(volumemusic));
enemymecha.gotoAndPlay("frontdodge");
createmisspoint(enemymecha);
_arg1.currentTarget.tipe = "done";
_arg1.currentTarget.gotoAndPlay("explode");
} else {
createpenontonriuh();
if (mcenemyeffective.currentLabel != "hit"){
mcenemyeffective.gotoAndPlay("hit");
};
trace(("NABRAK, DAM BRP : " + damagemasuk));
if (_arg1.currentTarget.targetpartsbool == true){
_arg1.currentTarget.targetpartsbool = false;
_local3 = randRange(1, 5);
do {
_local3 = randRange(1, 5);
} while (musuhstatsummary[(_local3 - 1)] <= 0);
partsyangdiserang = _local3;
cekautoattackefektiftoenemy();
buwatefektif();
};
if (efektifbool == 1){
buwatblinkerefektif();
damagemasuk = (_arg1.currentTarget.damagemasuk + (_arg1.currentTarget.damagemasuk * 0.25));
} else {
if (efektifbool == -1){
damagemasuk = (_arg1.currentTarget.damagemasuk - (_arg1.currentTarget.damagemasuk * 0.25));
};
};
enemymecha.gotoAndPlay("frontmelee");
cekobjkenadamage(enemymecha);
createdamagepoint(enemymecha, damagemasuk, "damage");
if (adaconvert != 0){
trace("ya ini heal kluar");
partsyangdiserang = 1;
damagemasuk = adaconvert;
cekobjkenadamage(mechaused);
createdamagepoint(mechaused, damagemasuk, "recovering");
};
if (_arg1.currentTarget.back == false){
_arg1.currentTarget.tipe = "done";
_arg1.currentTarget.gotoAndPlay("explode");
} else {
_arg1.currentTarget.x = enemymecha.x;
_arg1.currentTarget.y = enemymecha.y;
_arg1.currentTarget.gotoAndPlay("bite");
_arg1.currentTarget.directione = 2;
};
};
};
};
} else {
if (_arg1.currentTarget.hero != "hero"){
if (_arg1.currentTarget.blumnembak == true){
if (mcenemyeffective.currentLabel != "blinking"){
mcenemyeffective.gotoAndPlay("blinking");
};
_arg1.currentTarget.blumnembak = false;
linkagesound[soundindex].play(0, 1, new SoundTransform(volumemusic));
enemymecha.gotoAndPlay(("frontshoot" + enemyskilltipepartske[enemyrandskill]));
};
if ((((_arg1.currentTarget.currentLabel == "go")) && ((_arg1.currentTarget.directione == 1)))){
_arg1.currentTarget.x = (_arg1.currentTarget.x - (standartspeedx * 6));
_arg1.currentTarget.y = (_arg1.currentTarget.y + (standartspeedy * 6));
} else {
if ((((_arg1.currentTarget.currentLabel == "go")) && ((_arg1.currentTarget.directione == 2)))){
_arg1.currentTarget.x = (_arg1.currentTarget.x + (standartspeedx * 6));
_arg1.currentTarget.y = (_arg1.currentTarget.y - (standartspeedy * 6));
};
};
if ((((_arg1.currentTarget.hitTestObject(enemymecha.mchead) == true)) && ((_arg1.currentTarget.directione == 2)))){
partsyangdiserang = 1;
trace("ya ini heal");
damagemasuk = (((damagemasuk * leechlv) * leechpersentase) * -1);
trace(("cek heal : " + damagemasuk));
cekobjkenadamage(enemymecha);
createdamagepoint(enemymecha, damagemasuk, "recovering");
_arg1.currentTarget.tipe = "done";
_arg1.currentTarget.gotoAndPlay("explode");
} else {
if ((((_arg1.currentTarget.hitTestObject(mechaused.mchead) == true)) && ((_arg1.currentTarget.directione == 1)))){
_local4 = cekdodge(musuhatk, musuhdef, musuhspd, (so.data.charmechaleg1spd[slotselected][robotused] + so.data.charmechaleg2spd[slotselected][robotused]));
if (_local4 == false){
soundmiss.play(0, 1, new SoundTransform(volumemusic));
mechaused.gotoAndPlay("backdodge");
createmisspoint(mechaused);
_arg1.currentTarget.tipe = "done";
_arg1.currentTarget.gotoAndPlay("explode");
} else {
createpenontonriuh();
if (mcplayereffective.currentLabel != "hit"){
mcplayereffective.gotoAndPlay("hit");
};
if (_arg1.currentTarget.targetpartsbool == true){
do {
_local5 = randRange(0, (listarraydipakebuwatcek.length - 1));
trace(("a2 : " + listarraydipakebuwatcek[_local5]));
trace(("b2 : " + listarraydipakebuwatcekhp[_local5]));
partsyangdiserang = _local5;
} while ((((listarraydipakebuwatcek[partsyangdiserang] == 0)) || ((listarraydipakebuwatcekhp[partsyangdiserang] == 0))));
partsyangdiserang++;
trace(("parts diserang : " + partsyangdiserang));
cekautoattackefektiftoplayer();
};
if (efektifbool == 1){
buwatblinkerefektif();
damagemasuk = (_arg1.currentTarget.damagemasuk + (_arg1.currentTarget.damagemasuk * 0.25));
} else {
if (efektifbool == -1){
damagemasuk = (_arg1.currentTarget.damagemasuk - (_arg1.currentTarget.damagemasuk * 0.25));
};
};
mechaused.gotoAndPlay("backmelee");
cekobjkenadamage(mechaused);
createdamagepoint(mechaused, damagemasuk, "damage");
if (_arg1.currentTarget.back == false){
_arg1.currentTarget.tipe = "done";
_arg1.currentTarget.gotoAndPlay("explode");
} else {
_arg1.currentTarget.directione = 2;
};
if (adaconvert != 0){
trace("ya ini heal kluar");
partsyangdiserang = 1;
damagemasuk = adaconvert;
cekobjkenadamage(enemymecha);
createdamagepoint(enemymecha, damagemasuk, "recovering");
};
};
tentuinskillmusupakemana();
};
};
};
};
};
};
} else {
if (_arg1.currentTarget.tipe == "head"){
if (_arg1.currentTarget.hero == "hero"){
_arg1.currentTarget.x = mechaused.x;
_arg1.currentTarget.y = mechaused.y;
_arg1.currentTarget.x = (_arg1.currentTarget.x - 10);
_arg1.currentTarget.y = (_arg1.currentTarget.y - 20);
if (mechaused.mchead.hitTestObject(enemymecha.mchead) == true){
trace("HIT 2");
_arg1.currentTarget.tipe = "done";
_arg1.currentTarget.gotoAndPlay("explode");
};
} else {
if (_arg1.currentTarget.hero != "hero"){
_arg1.currentTarget.x = enemymecha.x;
_arg1.currentTarget.y = enemymecha.y;
if (enemymecha.mchead.hitTestObject(mechaused.mchead) == true){
trace("HIT 2");
_arg1.currentTarget.tipe = "done";
_arg1.currentTarget.gotoAndPlay("explode");
};
};
};
};
};
if (_arg1.currentTarget.tipe == "done"){
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, effectbattleremove);
trace("done tipe hand");
if (_arg1.currentTarget.tipetemp == "hand"){
tembaksebanyak--;
trace(("kurangi tembak sbnyk : " + tembaksebanyak));
if (tembaksebanyak <= 0){
if (adacounter == true){
skillselecttarget = false;
battleanimationbool = false;
stage.removeEventListener(Event.ENTER_FRAME, battleanimation);
mcskillname.mc1.txt1.text = "Counter Attack";
mcskillname.gotoAndPlay(2);
if (_arg1.currentTarget.hero == "hero"){
trace("YAP ENEMY COUNTER");
cekheaddlldll(itemsummary[so.data.grade[slotselected]][musuhtipe][0], musuhatk);
enemymecha.chargebool = true;
enemymecha.chargeboolphase = 1;
enemymecha.statx = enemymecha.x;
enemymecha.staty = enemymecha.y;
skilldariparts = 1;
createeffectbattle(headskillnumba[itemsummary[so.data.grade[slotselected]][musuhtipe][0]][0], enemymecha, "head", "enemy");
} else {
if (_arg1.currentTarget.hero != "hero"){
trace("YAP HERO COUNTER");
cekheaddlldll(so.data.charmechahead[slotselected][robotused], so.data.mechaatktemp[slotselected][robotused]);
skilldariparts = 1;
createeffectbattle(headskillnumba[so.data.charmechahead[slotselected][robotused]][0], mechaused, "head", "hero");
};
};
} else {
mcplayereffective.visible = false;
mcenemyeffective.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, battleanimation);
jedaphase = 2;
buwatjedaer();
};
};
};
effectbattle[_arg1.currentTarget.indexke].removeEventListener(Event.ENTER_FRAME, effectbattleremove);
removeChild(effectbattle[_arg1.currentTarget.indexke]);
effectbattle[_arg1.currentTarget.indexke] = null;
};
};
};
};
};
};
}
public function loadcharstatistic(_arg1:Object):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = 0;
while (_local2 < listtar.length) {
_local3 = _arg1.getChildByName(listtar[_local2]);
if (listparts[_local2] == 0){
_local4 = _arg1.getChildByName(listtxt[_local2]);
_local3.visible = false;
_local4.visible = false;
if (currentLabel == "ingame"){
_local5 = mcindicatorhealth.getChildByName(("mc" + int((int(_local2) + int(1)))));
trace(("nomor ilang : " + int((int(_local2) + int(1)))));
_local5.visible = false;
};
} else {
if (listparts[_local2] != 0){
_local3.visible = true;
_local6 = 0;
if (listso[_local2] >= 0.7){
_local6 = 1;
} else {
if ((((listso[_local2] < 0.7)) && ((listso[_local2] >= 0.4)))){
_local6 = 2;
} else {
if (listso[_local2] < 0.4){
_local6 = 3;
};
};
};
_local3.mc1.gotoAndStop(_local6);
_local4 = _arg1.getChildByName(listtxt[_local2]);
_local4.gotoAndStop(_local6);
_local4.visible = true;
if ((((listso[_local2] < 0.01)) && ((listso[_local2] > 0)))){
debuggeroutput(("PART HP : " + listso[_local2]));
_local4.mc1.txt1.text = "1%";
} else {
_local4.mc1.txt1.text = (int((listso[_local2] * 100)) + "%");
};
if (listso[_local2] <= 0){
_local4.mc1.txt1.text = "0%";
};
if (((listso[_local2] * 100) >= 100)){
_local4.mc1.txt1.text = "100%";
};
if (currentLabel == "ingame"){
_local5 = mcindicatorhealth.getChildByName(("mc" + int((int(_local2) + int(1)))));
_local5.visible = true;
_local5.mc1.gotoAndStop(_local6);
trace(("nomor : " + int((int(_local2) + int(1)))));
_local5.mc1.mc1.txt1.text = _local4.mc1.txt1.text;
};
if (_arg1.name != "mcenemyindicator"){
if (so.data.charmechahand1[slotselected][norobotfostatistic] == 0){
_arg1.mchand1.visible = false;
_arg1.mctxthand1.visible = false;
};
if (so.data.charmechahand2[slotselected][norobotfostatistic] == 0){
_arg1.mchand2.visible = false;
_arg1.mctxthand2.visible = false;
};
};
};
};
_local2++;
};
}
public function createbattleend(){
btnpause.visible = false;
btnmutemusic.visible = false;
btnhelp.visible = false;
soundhurray.play(0, 1, new SoundTransform(volumemusic));
soundchannel1.stop();
soundchannel1 = null;
so.data.championshipcountdownbool[slotselected] = false;
if (mccountdownresult.mc1.currentFrame == 2){
var _local1 = so.data.winrow;
var _local2 = slotselected;
var _local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
soundwintraining.play(0, 1, new SoundTransform(volumemusic));
winbool = true;
_local1 = so.data.win;
_local2 = slotselected;
_local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
trace(("TUTORIAL " + so.data.tutorialcomplete[slotselected]));
if (so.data.tutorialcomplete[slotselected] == false){
so.data.tutorialstep[slotselected] = 17;
trace("WIN BATTLE TUTORIAL");
};
} else {
so.data.winrow[slotselected] = 0;
so.data.lose = true;
if (so.data.tutorialcomplete[slotselected] == false){
so.data.tutorialstep[slotselected] = 15;
};
};
if (tournamentbool == true){
animasiwin = true;
if (mccountdownresult.mc1.currentFrame == 2){
if (so.data.championshipphase[slotselected] == 1){
tesbuwatmenangsatu();
} else {
if (so.data.championshipphase[slotselected] == 2){
tesbuwatmenangdua();
};
};
_local1 = so.data.championshipphase;
_local2 = slotselected;
_local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
if (so.data.championshipphase[slotselected] != 5){
so.data.championshipcountdownmax[slotselected] = bagiwaktu;
so.data.championshipcountdown[slotselected] = 1;
so.data.championshipcountdownexpired[slotselected] = (timeweektemp * 2);
};
trace(("YA TURNAMEN MENANG " + tournamentlose));
} else {
if (mccountdownresult.mc1.currentFrame == 1){
buwattournamentlosesetting();
};
};
};
cleanupbattle();
stage.addEventListener(Event.ENTER_FRAME, countdownbattleend);
}
public function barexpmovement(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (mcfinishtrain.currentFrame != 1){
mctrainresult.visible = false;
} else {
if (mcfinishtrain.currentFrame == 1){
mctrainresult.visible = true;
expincreasetime--;
if ((((expincreasetime < 0)) && ((exptemp > 0)))){
stage.addEventListener(MouseEvent.CLICK, clicktoskipbarexp);
doincreaseexp();
} else {
if ((((expincreasetime < 0)) && ((exptemp <= 0)))){
stage.removeEventListener(MouseEvent.CLICK, clicktoskipbarexp);
if (poinshare > 0){
_local2 = 1;
while (_local2 <= 4) {
_local3 = mctrainresult.getChildByName(("btnplus" + _local2));
_local3.visible = true;
_local2++;
};
mctrainresult.txtavailable.text = ("Available points : " + poinshare);
mctrainresult.btnokfalse.visible = true;
} else {
mctrainresult.btnokfalse.visible = false;
};
if (currentLabel == "ingame"){
_local4 = "";
if (posisimarking == 2){
_local4 = "ATK";
} else {
if (posisimarking == 3){
_local4 = "DEF";
} else {
if (posisimarking == 4){
_local4 = "SPD";
};
};
};
expincreasetime = expincreasetimetemp;
if (tahapcekling == 5){
stage.removeEventListener(Event.ENTER_FRAME, barexpmovement);
} else {
if (tahapcekling == 0){
if (so.data.charmechahand1[slotselected][robotused] != 0){
soundbeep.play(0, 1, new SoundTransform(volumemusic));
mctrainresult.mcpoinhand1.mcpoingained.gotoAndStop(targetmark);
if (hand1max[posisimarking] == 1){
mctrainresult.mcpoinhand1.mcpoingained.mc1.txt1.text = "MAX";
} else {
mctrainresult.mcpoinhand1.mcpoingained.mc1.txt1.text = ((_local4 + "\n+") + hasiltraining);
};
mctrainresult.mcpoinhand1.gotoAndPlay(2);
mctrainresult.mcmecha.mchand1.gotoAndPlay(2);
};
} else {
if (tahapcekling == 1){
if (so.data.charmechahead[slotselected][robotused] != 0){
_local5 = hasiltraining;
_local5 = (hasiltraining * 2);
soundbeep.play(0, 1, new SoundTransform(volumemusic));
mctrainresult.mcpoinhead.mcpoingained.gotoAndStop(targetmark);
if (headmax[posisimarking] == 1){
mctrainresult.mcpoinhead.mcpoingained.mc1.txt1.text = "MAX";
} else {
mctrainresult.mcpoinhead.mcpoingained.mc1.txt1.text = ((_local4 + "\n+") + _local5);
};
mctrainresult.mcpoinhead.gotoAndPlay(2);
mctrainresult.mcmecha.mchead.gotoAndPlay(2);
};
} else {
if (tahapcekling == 2){
if (so.data.charmechahand2[slotselected][robotused] != 0){
soundbeep.play(0, 1, new SoundTransform(volumemusic));
mctrainresult.mcpoinhand2.mcpoingained.gotoAndStop(targetmark);
if (hand2max[posisimarking] == 1){
mctrainresult.mcpoinhand2.mcpoingained.mc1.txt1.text = "MAX";
} else {
mctrainresult.mcpoinhand2.mcpoingained.mc1.txt1.text = ((_local4 + "\n+") + hasiltraining);
};
mctrainresult.mcpoinhand2.gotoAndPlay(2);
mctrainresult.mcmecha.mchand2.gotoAndPlay(2);
};
} else {
if (tahapcekling == 3){
if (so.data.charmechaleg1[slotselected][robotused] != 0){
soundbeep.play(0, 1, new SoundTransform(volumemusic));
mctrainresult.mcpoinleg1.mcpoingained.gotoAndStop(targetmark);
if (leg1max[posisimarking] == 1){
mctrainresult.mcpoinleg1.mcpoingained.mc1.txt1.text = "MAX";
} else {
mctrainresult.mcpoinleg1.mcpoingained.mc1.txt1.text = ((_local4 + "\n+") + hasiltraining);
};
mctrainresult.mcpoinleg1.gotoAndPlay(2);
mctrainresult.mcmecha.mcleg1.gotoAndPlay(2);
};
} else {
if (tahapcekling == 4){
if (so.data.charmechaleg2[slotselected][robotused] != 0){
soundbeep.play(0, 1, new SoundTransform(volumemusic));
mctrainresult.mcpoinleg2.mcpoingained.gotoAndStop(targetmark);
if (leg2max[posisimarking] == 1){
mctrainresult.mcpoinleg2.mcpoingained.mc1.txt1.text = "MAX";
} else {
mctrainresult.mcpoinleg2.mcpoingained.mc1.txt1.text = ((_local4 + "\n+") + hasiltraining);
};
mctrainresult.mcpoinleg2.gotoAndPlay(2);
mctrainresult.mcmecha.mcleg2.gotoAndPlay(2);
};
};
};
};
};
};
};
tahapcekling++;
} else {
expincreasetime = expincreasetimetemp;
stage.removeEventListener(Event.ENTER_FRAME, barexpmovement);
};
};
};
};
};
}
public function cekprogresstournament(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
trace(("ikot turnamen nda : " + so.data.followtournamentbool[slotselected]));
if (so.data.followtournamentbool[slotselected] == false){
mcchampionship.btnok.visible = false;
} else {
if (so.data.followtournamentbool[slotselected] == true){
tournamentbool = false;
mcchampionship.btnok.visible = true;
if (tournamentlose == true){
so.data.followtournamentbool[slotselected] = false;
so.data.championshipcountdownmax[slotselected] = 0;
so.data.championshipcountdown[slotselected] = 0;
so.data.championshipcountdownexpired[slotselected] = 0;
randenemy = so.data.championshipmaster[slotselected];
mcchampionship.mclogo9.gotoAndStop(((so.data.grade[slotselected] * 7) + so.data.championshipmaster[slotselected]));
trace("ya kalah");
mcchampionship.visible = true;
winnertemp = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 1];
arraylistpemenangdipake = winnertemp;
_local1 = 2;
_local2 = 2;
while (_local2 <= 8) {
_local3 = mcchampionship.getChildByName(("mclogo" + int(_local2)));
_local3.gotoAndStop(so.data.championshipfollower[slotselected][_local2]);
if (so.data.championshipfollower[slotselected][_local2] == so.data.teamlogo[slotselected]){
_local3.gotoAndStop(_local3.totalFrames);
};
_local2++;
};
mcchampionship.mclogo9.arah = "naek";
arraylistpemenangdipake = winnertemp;
stage.addEventListener(Event.ENTER_FRAME, naikpemenang);
} else {
if (so.data.championshipphase[slotselected] == 5){
mcnextmatch.gotoAndStop(1);
so.data.championshipcountdownmax[slotselected] = 0;
so.data.championshipcountdown[slotselected] = 0;
so.data.championshipcountdownexpired[slotselected] = 0;
mcchampionship.mclogo9.gotoAndStop(((so.data.grade[slotselected] * 7) + so.data.championshipmaster[slotselected]));
mcchampionship.visible = true;
winnertemp = [undefined, 1, 0, 0, 0, 0, 0, 0, 0, 0];
arraylistpemenangdipake = winnertemp;
mcchampionship.mclogo1.x = mcchampionship.mclocator7.x;
mcchampionship.mclogo1.y = mcchampionship.mclocator7.y;
mcchampionship.mclogo1.gotoAndStop(so.data.teamlogo[slotselected]);
mcchampionship.mclogo1.arah = "naek";
_local1 = 2;
_local2 = 2;
while (_local2 <= 8) {
_local3 = mcchampionship.getChildByName(("mclogo" + int(_local2)));
_local3.gotoAndStop(so.data.championshipfollower[slotselected][_local2]);
if (so.data.championshipfollower[slotselected][_local2] == so.data.teamlogo[slotselected]){
_local3.gotoAndStop(_local3.totalFrames);
};
trace(((("logo ke : " + _local2) + " goto : ") + so.data.championshipfollower[slotselected][_local2]));
if (so.data.championshipwinner[slotselected][_local2] == 1){
trace(((("ini nomor : " + j) + " menang tahap satu,goto locator ") + _local1));
_local4 = mcchampionship.getChildByName(("mclocator" + int(_local1)));
_local3.x = _local4.x;
_local3.y = _local4.y;
_local1++;
};
if (so.data.championshipwinner2[slotselected][_local2] == 1){
_local3.x = mcchampionship.mclocator6.x;
_local3.y = mcchampionship.mclocator6.y;
};
_local2++;
};
arraylistpemenangdipake = winnertemp;
stage.addEventListener(Event.ENTER_FRAME, naikpemenang);
} else {
if (so.data.championshipphase[slotselected] == 4){
mcturnamenpopup.txt1.text = "Great, you've run into the Final\n\nthe next match will be starts in 10 weeks";
randenemy = so.data.championshipmaster[slotselected];
mcchampionship.mclogo9.gotoAndStop(((so.data.grade[slotselected] * 7) + so.data.championshipmaster[slotselected]));
mcchampionship.visible = true;
winnertemp = [undefined, 1, 0, 0, 0, 0, 0, 0, 0, 0];
arraylistpemenangdipake = winnertemp;
mcchampionship.mclogo1.x = mcchampionship.mclocator5.x;
mcchampionship.mclogo1.y = mcchampionship.mclocator5.y;
mcchampionship.mclogo1.gotoAndStop(so.data.teamlogo[slotselected]);
mcchampionship.mclogo1.arah = "naek";
_local1 = 2;
_local2 = 2;
while (_local2 <= 8) {
_local3 = mcchampionship.getChildByName(("mclogo" + int(_local2)));
_local3.gotoAndStop(so.data.championshipfollower[slotselected][_local2]);
if (so.data.championshipfollower[slotselected][_local2] == so.data.teamlogo[slotselected]){
_local3.gotoAndStop(_local3.totalFrames);
};
trace(((("logo ke : " + _local2) + " goto : ") + so.data.championshipfollower[slotselected][_local2]));
if (so.data.championshipwinner[slotselected][_local2] == 1){
trace(((("ini nomor : " + j) + " menang tahap satu,goto locator ") + _local1));
_local4 = mcchampionship.getChildByName(("mclocator" + int(_local1)));
_local3.x = _local4.x;
_local3.y = _local4.y;
_local1++;
};
if (so.data.championshipwinner2[slotselected][_local2] == 1){
_local3.x = mcchampionship.mclocator6.x;
_local3.y = mcchampionship.mclocator6.y;
};
_local2++;
};
arraylistpemenangdipake = winnertemp;
stage.addEventListener(Event.ENTER_FRAME, naikpemenang);
} else {
if ((((so.data.championshipphase[slotselected] > 1)) && ((tournamentlose == false)))){
if (so.data.championshipphase[slotselected] == 2){
mcturnamenpopup.txt1.text = "Great, you've run into the Quarterfinal\n\nthe next match will be starts in 10 weeks";
} else {
if (so.data.championshipphase[slotselected] == 3){
mcturnamenpopup.txt1.text = "Great, you've run into the Semifinal\n\nthe next match will be starts in 10 weeks";
};
};
loadchampionship();
} else {
if (so.data.championshipphase[slotselected] == 1){
randenemy = so.data.championshipfollower[slotselected][2];
};
};
};
};
};
};
};
}
public function shopextractor(_arg1:Event):void{
trace("masi nul yeyek");
if (parentexplanationused.mc1 != null){
tggload--;
if (tggload < 0){
tggload = 1;
trace("wis mari nda nul");
stage.removeEventListener(Event.ENTER_FRAME, shopextractor);
loaditemshopclick(shopitem[0].tipe, shopitem[0].itemke, shopitem[0].indexke);
};
};
}
public function kumpulkantambahkanstattotal(_arg1:int){
var _local2:*;
if (so.data.charmechaheadhpreal[slotselected][_arg1] > 5000){
so.data.charmechaheadhpreal[slotselected][_arg1] = 5000;
};
if (so.data.charmechahand1hpreal[slotselected][_arg1] > 1250){
so.data.charmechahand1hpreal[slotselected][_arg1] = 1250;
};
if (so.data.charmechahand2hpreal[slotselected][_arg1] > 1250){
so.data.charmechahand2hpreal[slotselected][_arg1] = 1250;
};
if (so.data.charmechaleg1hpreal[slotselected][_arg1] > 1250){
so.data.charmechaleg1hpreal[slotselected][_arg1] = 1250;
};
if (so.data.charmechaleg2hpreal[slotselected][_arg1] > 1250){
so.data.charmechaleg2hpreal[slotselected][_arg1] = 1250;
};
so.data.mechahp[slotselected][_arg1] = 0;
so.data.mechaatk[slotselected][_arg1] = 0;
so.data.mechadef[slotselected][_arg1] = 0;
so.data.mechaspd[slotselected][_arg1] = 0;
trace(("kumpulkan def head : " + so.data.charmechaheadhpreal[slotselected][_arg1]));
so.data.mechahp[slotselected][_arg1] = (so.data.mechahp[slotselected][_arg1] + so.data.charmechaheadhpreal[slotselected][_arg1]);
so.data.mechaatk[slotselected][_arg1] = (so.data.mechaatk[slotselected][_arg1] + so.data.charmechaheadatkreal[slotselected][_arg1]);
so.data.mechadef[slotselected][_arg1] = (so.data.mechadef[slotselected][_arg1] + so.data.charmechaheaddefreal[slotselected][_arg1]);
so.data.mechaspd[slotselected][_arg1] = (so.data.mechaspd[slotselected][_arg1] + so.data.charmechaheadspdreal[slotselected][_arg1]);
if (so.data.charmechahand1[slotselected][_arg1] != 0){
trace(("kumpulkan hand1 def : " + so.data.charmechahand1hpreal[slotselected][_arg1]));
so.data.mechahp[slotselected][_arg1] = (so.data.mechahp[slotselected][_arg1] + so.data.charmechahand1hpreal[slotselected][_arg1]);
so.data.mechaatk[slotselected][_arg1] = (so.data.mechaatk[slotselected][_arg1] + so.data.charmechahand1atkreal[slotselected][_arg1]);
so.data.mechadef[slotselected][_arg1] = (so.data.mechadef[slotselected][_arg1] + so.data.charmechahand1defreal[slotselected][_arg1]);
so.data.mechaspd[slotselected][_arg1] = (so.data.mechaspd[slotselected][_arg1] + so.data.charmechahand1spdreal[slotselected][_arg1]);
};
if (so.data.charmechahand2[slotselected][_arg1] != 0){
trace(("kumpulkan hand2 def : " + so.data.charmechahand2hpreal[slotselected][_arg1]));
so.data.mechahp[slotselected][_arg1] = (so.data.mechahp[slotselected][_arg1] + so.data.charmechahand2hpreal[slotselected][_arg1]);
so.data.mechaatk[slotselected][_arg1] = (so.data.mechaatk[slotselected][_arg1] + so.data.charmechahand2atkreal[slotselected][_arg1]);
so.data.mechadef[slotselected][_arg1] = (so.data.mechadef[slotselected][_arg1] + so.data.charmechahand2defreal[slotselected][_arg1]);
so.data.mechaspd[slotselected][_arg1] = (so.data.mechaspd[slotselected][_arg1] + so.data.charmechahand2spdreal[slotselected][_arg1]);
};
if (so.data.charmechaleg1[slotselected][_arg1] != 0){
trace(("kumpulkan leg1 def : " + so.data.charmechaleg1hpreal[slotselected][_arg1]));
so.data.mechahp[slotselected][_arg1] = (so.data.mechahp[slotselected][_arg1] + so.data.charmechaleg1hpreal[slotselected][_arg1]);
so.data.mechaatk[slotselected][_arg1] = (so.data.mechaatk[slotselected][_arg1] + so.data.charmechaleg1atkreal[slotselected][_arg1]);
so.data.mechadef[slotselected][_arg1] = (so.data.mechadef[slotselected][_arg1] + so.data.charmechaleg1defreal[slotselected][_arg1]);
so.data.mechaspd[slotselected][_arg1] = (so.data.mechaspd[slotselected][_arg1] + so.data.charmechaleg1spdreal[slotselected][_arg1]);
};
if (so.data.charmechaleg2[slotselected][_arg1] != 0){
trace(("kumpulkan leg2 hp : " + so.data.charmechaleg2hpreal[slotselected][_arg1]));
so.data.mechahp[slotselected][_arg1] = (so.data.mechahp[slotselected][_arg1] + so.data.charmechaleg2hpreal[slotselected][_arg1]);
so.data.mechaatk[slotselected][_arg1] = (so.data.mechaatk[slotselected][_arg1] + so.data.charmechaleg2atkreal[slotselected][_arg1]);
so.data.mechadef[slotselected][_arg1] = (so.data.mechadef[slotselected][_arg1] + so.data.charmechaleg2defreal[slotselected][_arg1]);
so.data.mechaspd[slotselected][_arg1] = (so.data.mechaspd[slotselected][_arg1] + so.data.charmechaleg2spdreal[slotselected][_arg1]);
};
_local2 = 1000;
if (so.data.mechaatk[slotselected][_arg1] > 1000){
so.data.mechaatk[slotselected][_arg1] = 1000;
};
if (so.data.mechadef[slotselected][_arg1] > 1000){
so.data.mechadef[slotselected][_arg1] = 1000;
};
if (so.data.mechaspd[slotselected][_arg1] > 1000){
so.data.mechaspd[slotselected][_arg1] = 1000;
};
trace(("HASIL STAT TOTAL HP: " + so.data.mechahp[slotselected][_arg1]));
trace(("HASIL STAT TOTAL ATK: " + so.data.mechaatk[slotselected][_arg1]));
trace(("HASIL STAT TOTAL DEF: " + so.data.mechadef[slotselected][_arg1]));
trace(("HASIL STAT TOTAL SPD: " + so.data.mechaspd[slotselected][_arg1]));
}
public function shopitemclick(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
shopinidiequip = false;
_local2 = false;
lengthiteminventoryclick = _arg1.currentTarget.indexke;
if (mcshop.visible == true){
parentexplanationused = mcshop.mcshopexplanation;
_local3 = 0;
while (_local3 < shopitem.length) {
shopitem[_local3].gotoAndStop(1);
shopitem[_local3].txt1.textColor = "0xFFFFFF";
if (parentexplanationused.currentFrame == 3){
if (shopitem[_local3].equippedbool == true){
shopitem[_local3].gotoAndStop(3);
shopitem[_local3].txt1.textColor = "0x0000";
};
};
_local3++;
};
_arg1.currentTarget.gotoAndStop(3);
_arg1.currentTarget.txt1.textColor = "0x0000";
} else {
if (indexitem != 1){
_local4 = [undefined, undefined, 2, 3, 3, 4, 4];
trace(("index inv select : " + indexinventoryselect));
trace(("equipment ke : " + so.data.equipment[slotselected][_local4[indexinventoryselect]][lengthiteminventoryclick]));
_local5 = objarraylistsummary[_local4[indexinventoryselect]][so.data.equipment[slotselected][_local4[indexinventoryselect]][lengthiteminventoryclick]][1];
trace(("cek grade item yg diklik : " + objarraylistsummary[_local4[indexinventoryselect]][so.data.equipment[slotselected][_local4[indexinventoryselect]][lengthiteminventoryclick]][1]));
trace(("grade chip : " + objarraylistsummary[1][so.data.charmechachip[slotselected][robotused]][so.data.equipmentstatus[slotselected][1][so.data.chipequipindex[slotselected]]]));
_local6 = objarraylistsummary[1][so.data.charmechachip[slotselected][robotused]][so.data.equipmentstatus[slotselected][1][so.data.chipequipindex[slotselected]]];
if (_local6 < _local5){
_local2 = true;
_local7 = [undefined, "E", "D", "C", "B", "A"];
mcneedchipsetgrade.gotoAndPlay(2);
mcneedchipsetgrade.x = mouseX;
mcneedchipsetgrade.y = mouseY;
mcneedchipsetgrade.mc1.txt1.text = (("Grade " + _local7[_local5]) + " chipset must be equipped");
};
};
parentexplanationused = mcshopexplanation;
};
if (_local2 == false){
loaditemshopclick(_arg1.currentTarget.tipe, _arg1.currentTarget.itemke, _arg1.currentTarget.indexke);
};
}
public function enddayertransisi(_arg1:Event):void{
if (volumemainmusic > 0){
soundchannel1.soundTransform = new SoundTransform(volumemainmusic);
};
if (mctransisinextday.currentLabel == "skip"){
if (cekmute == true){
volumemainmusic = 1;
};
stage.removeEventListener(Event.ENTER_FRAME, enddayertransisi);
gotoAndStop("enddayer");
};
}
public function loadtutorspeed(){
var _local1:*;
mcdialogbox.btnstart.visible = true;
mcdialogbox.txtjudul.text = "-TRAINING TUTORIAL-";
mcdialogbox.txt1.text = "beat the time limit and destroy the obstacle by clicking them";
_local1 = mcdialogbox.getChildByName((("mc" + targetmark) + "mark"));
_local1.visible = true;
_local1.gotoAndStop(so.data.trainspeedlevel[slotselected]);
if (so.data.trainspeedlevel[slotselected] < 3){
mcdialogbox.btnupgrade.visible = true;
} else {
mcdialogbox.btnupgrade.visible = false;
};
mcdialogbox.mctechguy.gotoAndStop(1);
mcdialogbox.btnnext2.visible = false;
mcdialogbox.gotoAndPlay(2);
mcdialogbox.btncancel.visible = true;
mcdialogbox.btnclose.visible = false;
mcdialogbox.btnskiptutorial.visible = false;
mcdialogbox.btnstart.addEventListener(MouseEvent.CLICK, speedstart);
}
public function resetturnamenlocationdll(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
so.data.championshipcountdownmax[slotselected] = 0;
so.data.championshipcountdown[slotselected] = 0;
so.data.championshipcountdownexpired[slotselected] = 0;
if (tournamentlose == false){
var _local5 = so.data.grade;
var _local6 = slotselected;
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
if (so.data.grade[slotselected] > 5){
mcgameend.gotoAndPlay(2);
so.data.endgame = true;
so.data.grade[slotselected] = 5;
} else {
mcui5.mc1.txt1.text = ("GRADE " + gradenumba[so.data.grade[slotselected]]);
j = 1;
while (j <= 6) {
so.data.marker[slotselected][j] = 1;
j++;
};
j = 1;
while (j <= 6) {
_local3 = mcui2.mc1.getChildByName(("mcnew" + j));
if (so.data.marker[slotselected][j] == 1){
_local3.visible = true;
} else {
_local3.visible = false;
};
j++;
};
};
mcui5.mc1.txt1.text = ("GRADE " + gradenumba[so.data.grade[slotselected]]);
so.data.gradetemp[slotselected] = so.data.grade[slotselected];
};
so.data.followtournamentbool[slotselected] = false;
tournamentlose = false;
so.data.championshipphase[slotselected] = 1;
so.data.championshipfollower[slotselected] = new Array();
so.data.championshipwinner[slotselected] = new Array();
so.data.championshipwinner2[slotselected] = new Array();
mcchampionship.mclogo9.x = 32;
mcchampionship.mclogo9.y = -32.5;
_local1 = [1, 2, 3, 4, 5, 6, 7];
j = 2;
while (j <= 8) {
_local4 = randRange(0, (_local1.length - 1));
so.data.championshipfollower[slotselected][j] = _local1[_local4];
trace(("isi no : " + so.data.championshipfollower[slotselected][j]));
_local1.splice(_local4, 1);
j++;
};
j = 2;
while (j <= 8) {
so.data.championshipmaster[slotselected] = randRange(1, 7);
so.data.championshipwinner[slotselected][j] = 0;
so.data.championshipwinner2[slotselected][j] = 0;
j++;
};
_local2 = 1;
while (_local2 <= 8) {
_local3 = mcchampionship.getChildByName(("mclogo" + _local2));
_local3.x = (-245.1 + ((_local2 - 1) * 70));
_local3.y = 159.6;
_local2++;
};
mcnextmatch.gotoAndStop(1);
}
function frame13(){
}
public function deletegamesok(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
buwatsavekeinikosong(indexdelete);
mcdeletesavegame.visible = false;
loadsave();
}
public function skillonoverfollowmouse(_arg1:Event):void{
mcskillexplanation.x = mouseX;
mcskillexplanation.y = mouseY;
if (mcskillexplanation.hitTestObject(mcboundright) == true){
mcskillexplanation.gotoAndStop(2);
};
if (mcskillexplanation.hitTestObject(mcboundleft) == true){
mcskillexplanation.gotoAndStop(1);
};
}
public function loadmechastatus(_arg1:int):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
if (so.data.tutorialstep[slotselected] == 13){
mcui2.mc1.mcblink.gotoAndStop(1);
createtutortext13();
tutorialequip = 0;
so.data.tutorialstep[slotselected] = 14;
};
if (volumemainmusic != 0){
volumemainmusic = 0.5;
soundchannel1.soundTransform = new SoundTransform(volumemainmusic);
};
if (soundchannelongarage == null){
soundchannelongarage = soundonlab.play(0, 999, new SoundTransform(volumemusic));
};
mcuimechastatus.mclistequipment.visible = false;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = 0;
trace(("LOAD MECHA STATUS : " + so.data.tutorialstep[slotselected]));
trace("a");
if (firstimebool == false){
mcui.mc1.mcblink.gotoAndStop(1);
};
mcuimechastatus.visible = true;
trace("b");
if (so.data.tutorialcomplete[slotselected] == true){
mcuimechastatus.mcblacker.visible = false;
};
trace(("c " + so.data.raidername[slotselected]));
trace(("c 2" + mcuimechastatus.txtname));
trace(("a : " + so.data.raidername[slotselected]));
mcuimechastatus.txtname.text = so.data.raidername[slotselected];
trace("d");
mcuimechastatus.mcmecha.mcprogress.visible = false;
loadstandartmecha(mcuimechastatus.mcmecha);
trace("e");
tetapkanso(_arg1);
loadcharstatistic(mcuimechastatus);
tetapkanlistarraydipakebuwatcek();
tetapkanlistarraydipakebuwatcekhp();
cekpassiveeffect(listarraydipakebuwatcek, listarraydipakebuwatcekhp, "player", _arg1);
trace("h");
mcuimechastatus.mcraider1.gotoAndStop(so.data.raider[slotselected]);
mcuimechastatus.txtname.text = so.data.raidername[slotselected];
mcuimechastatus.txtname.text = so.data.raidername[slotselected];
mcuimechastatus.txtlevel.text = ("Lv." + so.data.raiderlevel[slotselected]);
mcuimechastatus.txtexp.text = ((so.data.raiderexp[slotselected] + "/") + so.data.raiderexpmax[slotselected]);
mcuimechastatus.mcbarexp.width = ((so.data.raiderexp[slotselected] / so.data.raiderexpmax[slotselected]) * 75);
trace("asd");
listsotxt = [so.data.raiderhp[slotselected], so.data.raideratk[slotselected], so.data.raiderdef[slotselected], so.data.raiderspd[slotselected]];
trace("asdef");
trace(listsotxt);
trace(listtartxt);
_local6 = 0;
while (_local6 < listtartxt.length) {
_local8 = mcuimechastatus.getChildByName((("txt" + listtartxt[_local6]) + "1"));
trace(("cek 1 : " + _local8));
_local8.text = listsotxt[_local6];
_local8 = mcuimechastatus.getChildByName(("txtpersen" + listtartxt[_local6]));
trace(("cek 2 : " + _local8));
_local9 = objarraylistsummary[1][so.data.charmechachip[slotselected][robotused]][so.data.equipmentstatus[slotselected][1][so.data.chipequipindex[slotselected]]];
_local10 = raidergradepercent[_local9];
_local11 = 0;
while (_local11 < so.data.charmechaeffect[slotselected][_arg1].length) {
if (so.data.charmechaeffect[slotselected][_arg1][_local11] == "rider"){
_local10 = (_local10 + (so.data.charmechaeffectnumba[slotselected][_arg1][_local11] / 100));
};
_local11++;
};
_local8.text = ((_local10 * 100) + "%");
_local8 = mcuimechastatus.getChildByName((("txt" + listtartxt[_local6]) + "2"));
trace(("cek 3 : " + _local8));
_local8.text = int((listsotxt[_local6] * _local10));
_local6++;
};
_local7 = [undefined, undefined, headclass, armclass, armclass, legclass, legclass];
_local6 = 2;
while (_local6 <= 6) {
_local12 = [undefined, undefined, so.data.charmechahead[slotselected][_arg1], so.data.charmechahand1[slotselected][_arg1], so.data.charmechahand2[slotselected][_arg1], so.data.charmechaleg1[slotselected][_arg1], so.data.charmechaleg2[slotselected][_arg1]];
_local8 = mcuimechastatus.getChildByName(("mctipe" + _local6));
if (_local12[_local6] != 0){
_local8.visible = true;
_local8.gotoAndStop(_local7[_local6][_local12[_local6]]);
} else {
_local8.visible = false;
};
_local6++;
};
trace(("cek chip isinya : " + so.data.equipmentstatus[slotselected][1]));
mcuimechastatus.txtchipset.text = ((chipset[so.data.charmechachip[slotselected][_arg1]] + " V") + so.data.equipmentstatus[slotselected][1][so.data.chipequipindex[slotselected]]);
trace(((("cek chip : " + objarraylisteffect[so.data.charmechachip[slotselected][_arg1]]) + " ") + so.data.charmechachip[slotselected][_arg1]));
mcuimechastatus.txtchipseteffect.text = (((chipsettipetext[so.data.charmechachip[slotselected][_arg1]] + " ") + int(objarraylisteffect[so.data.charmechachip[slotselected][_arg1]][so.data.equipmentstatus[slotselected][1][so.data.chipequipindex[slotselected]]])) + "%");
mcuimechastatus.mcchipsetgrade.gotoAndStop(objarraylistsummary[1][so.data.charmechachip[slotselected][_arg1]][so.data.equipmentstatus[slotselected][1][so.data.chipequipindex[slotselected]]]);
if (mcuimechastatus.txtchipseteffect.text != "-NONE-"){
mcuimechastatus.txtstat.text = mcuimechastatus.txtchipseteffect.text;
};
cekstattotal(_arg1);
cekstatnow(_arg1);
cekmaksimumpergrade();
trace("tls head");
if (so.data.charmechahead[slotselected][_arg1] != 0){
trace("a");
mcuimechastatus.txtbody.text = head[so.data.charmechahead[slotselected][_arg1]];
trace(("a " + so.data.charmechahead[slotselected][_arg1]));
mcuimechastatus.mcbodygrade.gotoAndStop(objarraylistsummary[2][so.data.charmechahead[slotselected][_arg1]][1]);
mcuimechastatus.txtbodyhp.text = ("HP:" + int(so.data.charmechaheadhpreal[slotselected][_arg1]));
_local2 = (_local2 + int(so.data.charmechaheadhpreal[slotselected][_arg1]));
trace("e");
mcuimechastatus.txtbodyatk.text = ("ATK:" + so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][2]);
_local3 = (_local3 + so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][2]);
mcuimechastatus.txtbodydef.text = ("DEF:" + so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][3]);
_local4 = (_local4 + so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][3]);
trace("d");
mcuimechastatus.txtbodyspd.text = ("SPD:" + so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][4]);
_local5 = (_local5 + so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][4]);
mcuimechastatus.txtheadeffect.text = headtipetext[so.data.charmechahead[slotselected][_arg1]];
trace("c");
_local2 = (_local2 + int((so.data.raiderhp[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local3 = (_local3 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local4 = (_local4 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local5 = (_local5 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
if (mcuimechastatus.txtheadeffect.text != "-NONE-"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + ("\n" + mcuimechastatus.txtheadeffect.text));
};
trace("b");
} else {
if (so.data.charmechahead[slotselected][_arg1] == 0){
mcuimechastatus.txtbody.text = "-NONE-";
mcuimechastatus.txtbodyhp.text = "-NONE-";
mcuimechastatus.txtbodyatk.text = "-NONE-";
mcuimechastatus.txtbodydef.text = "-NONE-";
mcuimechastatus.txtbodyspd.text = "-NONE-";
mcuimechastatus.txtheadeffect.text = "-NONE-";
mcuimechastatus.mcbodygrade.gotoAndStop(7);
};
};
trace("tls hand1");
if (so.data.charmechahand1[slotselected][_arg1] != 0){
mcuimechastatus.txthand1.text = arm[so.data.charmechahand1[slotselected][_arg1]];
mcuimechastatus.mchand1grade.gotoAndStop(objarraylistsummary[3][so.data.charmechahand1[slotselected][_arg1]][1]);
mcuimechastatus.txtarm1hp.text = ("HP:" + int(so.data.charmechahand1hpreal[slotselected][_arg1]));
_local2 = (_local2 + int(so.data.charmechahand1hpreal[slotselected][_arg1]));
mcuimechastatus.txtarm1atk.text = ("ATK:" + so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][2]);
_local3 = (_local3 + so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][2]);
mcuimechastatus.txtarm1def.text = ("DEF:" + so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][3]);
_local4 = (_local4 + so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][3]);
mcuimechastatus.txtarm1spd.text = ("SPD:" + so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][4]);
_local5 = (_local5 + so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][4]);
mcuimechastatus.txtarm1effect.text = armtipetext[so.data.charmechahand1[slotselected][_arg1]];
_local2 = (_local2 + int((so.data.raiderhp[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local3 = (_local3 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local4 = (_local4 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local5 = (_local5 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
if (mcuimechastatus.txtarm1effect.text != "-NONE-"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + ("\n" + mcuimechastatus.txtarm1effect.text));
};
} else {
mcuimechastatus.txthand1.text = "-NONE-";
mcuimechastatus.txtarm1hp.text = "-NONE-";
mcuimechastatus.txtarm1atk.text = "-NONE-";
mcuimechastatus.txtarm1def.text = "-NONE-";
mcuimechastatus.txtarm1spd.text = "-NONE-";
mcuimechastatus.txtarm1effect.text = "-NONE-";
mcuimechastatus.mchand1grade.gotoAndStop(7);
};
trace("tls hand2");
if (so.data.charmechahand2[slotselected][_arg1] != 0){
mcuimechastatus.txthand2.text = arm[so.data.charmechahand2[slotselected][_arg1]];
mcuimechastatus.mchand2grade.gotoAndStop(objarraylistsummary[3][so.data.charmechahand2[slotselected][_arg1]][1]);
mcuimechastatus.txtarm2hp.text = ("HP:" + int(so.data.charmechahand2hpreal[slotselected][_arg1]));
_local2 = (_local2 + int(so.data.charmechahand2hpreal[slotselected][_arg1]));
mcuimechastatus.txtarm2atk.text = ("ATK:" + so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][2]);
_local3 = (_local3 + so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][2]);
mcuimechastatus.txtarm2def.text = ("DEF:" + so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][3]);
_local4 = (_local4 + so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][3]);
mcuimechastatus.txtarm2spd.text = ("SPD:" + so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][4]);
_local5 = (_local5 + so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][4]);
mcuimechastatus.txtarm2effect.text = armtipetext[so.data.charmechahand2[slotselected][_arg1]];
_local2 = (_local2 + int((so.data.raiderhp[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local3 = (_local3 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local4 = (_local4 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local5 = (_local5 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
if (mcuimechastatus.txtarm2effect.text != "-NONE-"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + ("\n" + mcuimechastatus.txtarm2effect.text));
};
} else {
mcuimechastatus.txthand2.text = "-NONE-";
mcuimechastatus.txtarm2hp.text = "-NONE-";
mcuimechastatus.txtarm2atk.text = "-NONE-";
mcuimechastatus.txtarm2def.text = "-NONE-";
mcuimechastatus.txtarm2spd.text = "-NONE-";
mcuimechastatus.txtarm2effect.text = "-NONE-";
mcuimechastatus.mchand2grade.gotoAndStop(7);
};
trace("tls leg1");
if (so.data.charmechaleg1[slotselected][_arg1] != 0){
mcuimechastatus.txtleg1.text = leg[so.data.charmechaleg1[slotselected][_arg1]];
mcuimechastatus.mcleg1grade.gotoAndStop(objarraylistsummary[4][so.data.charmechaleg1[slotselected][_arg1]][1]);
mcuimechastatus.txtleg1hp.text = ("HP:" + int(so.data.charmechaleg1hpreal[slotselected][_arg1]));
_local2 = (_local2 + int(so.data.charmechaleg1hpreal[slotselected][_arg1]));
mcuimechastatus.txtleg1atk.text = ("ATK:" + so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][2]);
_local3 = (_local3 + so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][2]);
mcuimechastatus.txtleg1def.text = ("DEF:" + so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][3]);
_local4 = (_local4 + so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][3]);
mcuimechastatus.txtleg1spd.text = ("SPD:" + so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][4]);
_local5 = (_local5 + so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][4]);
_local2 = (_local2 + int((so.data.raiderhp[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local3 = (_local3 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local4 = (_local4 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local5 = (_local5 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
mcuimechastatus.txtleg1effect.text = legtipetext[so.data.charmechaleg1[slotselected][_arg1]];
if (mcuimechastatus.txtleg1effect.text != "-NONE-"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + ("\n" + mcuimechastatus.txtleg1effect.text));
};
} else {
mcuimechastatus.txtleg1.text = "-NONE-";
mcuimechastatus.txtleg1hp.text = "-NONE-";
mcuimechastatus.txtleg1atk.text = "-NONE-";
mcuimechastatus.txtleg1def.text = "-NONE-";
mcuimechastatus.txtleg1spd.text = "-NONE-";
mcuimechastatus.txtleg1effect.text = "-NONE-";
mcuimechastatus.mcleg1grade.gotoAndStop(7);
};
trace("tls leg2");
if (so.data.charmechaleg2[slotselected][_arg1] != 0){
mcuimechastatus.txtleg2.text = leg[so.data.charmechaleg2[slotselected][_arg1]];
mcuimechastatus.mcleg2grade.gotoAndStop(objarraylistsummary[4][so.data.charmechaleg2[slotselected][_arg1]][1]);
mcuimechastatus.txtleg2hp.text = ("HP:" + int(so.data.charmechaleg2hpreal[slotselected][_arg1]));
_local2 = (_local2 + int(so.data.charmechaleg2hpreal[slotselected][_arg1]));
mcuimechastatus.txtleg2atk.text = ("ATK:" + so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][2]);
_local3 = (_local3 + so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][2]);
mcuimechastatus.txtleg2def.text = ("DEF:" + so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][3]);
_local4 = (_local4 + so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][3]);
mcuimechastatus.txtleg2spd.text = ("SPD:" + so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][4]);
_local5 = (_local5 + so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][4]);
mcuimechastatus.txtleg2effect.text = legtipetext[so.data.charmechaleg2[slotselected][_arg1]];
_local2 = (_local2 + int((so.data.raiderhp[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local3 = (_local3 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local4 = (_local4 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
_local5 = (_local5 + int((so.data.raideratk[slotselected] * raidergradepercent[int((so.data.raiderlevel[slotselected] / 10))])));
if (mcuimechastatus.txtleg2effect.text != "-NONE-"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + ("\n" + mcuimechastatus.txtleg2effect.text));
};
} else {
mcuimechastatus.txtleg2.text = "-NONE-";
mcuimechastatus.txtleg2hp.text = "-NONE-";
mcuimechastatus.txtleg2atk.text = "-NONE-";
mcuimechastatus.txtleg2def.text = "-NONE-";
mcuimechastatus.txtleg2spd.text = "-NONE-";
mcuimechastatus.txtleg2effect.text = "-NONE-";
mcuimechastatus.mcleg2grade.gotoAndStop(7);
};
mcuimechastatus.txtstat.text = "";
_local6 = 0;
while (_local6 < so.data.charmechaeffect[slotselected][_arg1].length) {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "rider"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (("Add Rider status distibute to Mecha by " + so.data.charmechaeffectnumba[slotselected][_arg1][_local6]) + "% \n"));
_local2 = (_local2 + int(((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] / 100) * mcuimechastatus.txthp1.text)));
_local3 = (_local3 + int(((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] / 100) * mcuimechastatus.txtatk1.text)));
_local4 = (_local4 + int(((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] / 100) * mcuimechastatus.txtdef1.text)));
_local5 = (_local5 + int(((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] / 100) * mcuimechastatus.txtspd1.text)));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "down"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (("Health restored when Mecha down by " + so.data.charmechaeffectnumba[slotselected][_arg1][_local6]) + "%\n"));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "hp"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (("HP increased by " + so.data.charmechaeffectnumba[slotselected][_arg1][_local6]) + "%\n"));
_local2 = (_local2 + int((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] * mcuimechastatus.txthp1.text)));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "atk"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (("ATK increased by " + so.data.charmechaeffectnumba[slotselected][_arg1][_local6]) + "%\n"));
_local3 = (_local3 + int((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] * mcuimechastatus.txtatk1.text)));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "def"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (("DEF increased by " + so.data.charmechaeffectnumba[slotselected][_arg1][_local6]) + "%\n"));
_local4 = (_local4 + int((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] * mcuimechastatus.txtdef1.text)));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "spd"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (("SPD increased by " + so.data.charmechaeffectnumba[slotselected][_arg1][_local6]) + "%\n"));
_local5 = (_local5 + int((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] * mcuimechastatus.txtspd1.text)));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "all"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (("All status increased by " + so.data.charmechaeffectnumba[slotselected][_arg1][_local6]) + "%\n"));
_local2 = (_local2 + int((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] * _local2)));
_local3 = (_local3 + int((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] * _local3)));
_local4 = (_local4 + int((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] * _local4)));
_local5 = (_local5 + int((so.data.charmechaeffectnumba[slotselected][_arg1][_local6] * _local5)));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "crit"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (("Critical rate increased by " + so.data.charmechaeffectnumba[slotselected][_arg1][_local6]) + "%\n"));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "deplete"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (so.data.charmechaeffectnumba[slotselected][_arg1][_local6] + "% chance to depleted enemy Mecha energy\n"));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "random"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + "Chipset do random effect from all available effect\n");
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "crit body"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (so.data.charmechaeffectnumba[slotselected][_arg1][_local6] + "% chance of critical when charge\n"));
} else {
if ((((((so.data.charmechaeffect[slotselected][_arg1][_local6] == "heal1")) || ((so.data.charmechaeffect[slotselected][_arg1][_local6] == "heal2")))) || ((so.data.charmechaeffect[slotselected][_arg1][_local6] == "heal3")))){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (("Self maintenance ability lv" + so.data.charmechaeffectnumba[slotselected][_arg1][_local6]) + "\n"));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "block"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (so.data.charmechaeffectnumba[slotselected][_arg1][_local6] + "% chance to block enemy's attack\n"));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "stun"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (so.data.charmechaeffectnumba[slotselected][_arg1][_local6] + "% chance to crash enemy mecha\n"));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "counter"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (so.data.charmechaeffectnumba[slotselected][_arg1][_local6] + "% Chance to counter attack\n"));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "slow"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (so.data.charmechaeffectnumba[slotselected][_arg1][_local6] + "% chance to slow enemy mecha\n"));
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local6] == "convert"){
mcuimechastatus.txtstat.text = (mcuimechastatus.txtstat.text + (("Convert " + so.data.charmechaeffectnumba[slotselected][_arg1][_local6]) + "% damage to health\n"));
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
_local6++;
};
trace("tls all");
}
public function cekisiso(){
var _local1:*;
trace(("SIZE : " + so.size));
if (so.size == 0){
so.data.likeab = new Array();
so.data.likelg = new Array();
so.data.firsttimetournament = new Array();
so.data.firsttimechipprize = new Array();
so.data.firsttimelowhealth = new Array();
so.data.lvl3bool = new Array();
so.data.adareport = new Array();
so.data.adareportstaff = new Array();
so.data.adareportjumstaff = new Array();
so.data.adareportrider = new Array();
so.data.reportskipday = new Array();
so.data.winrow = new Array();
so.data.moneyspend = 0;
so.data.lose = false;
so.data.endgame = false;
so.data.finalchipset = 0;
so.data.promote = false;
so.data.chipsetbuy = 0;
so.data.armbuy = 0;
so.data.sold = 0;
so.data.achievement = new Array();
_local1 = 1;
while (_local1 <= 25) {
so.data.achievement[_local1] = 0;
_local1++;
};
so.data.marker = new Array();
so.data.followtournamentbool = new Array();
so.data.firstbattle = new Array();
so.data.tp = new Array();
so.data.deficitcount = new Array();
so.data.championshipcountdownexpired = new Array();
so.data.championshipcountdownbool = new Array();
so.data.championshipcountdownmax = new Array();
so.data.championshipcountdown = new Array();
so.data.championshipmaster = new Array();
so.data.championshipphase = new Array();
so.data.championshipfollower = new Array();
so.data.championshipwinner = new Array();
so.data.championshipwinner2 = new Array();
so.data.sponsorlogo = new Array();
so.data.sponsortime = new Array();
so.data.sponsortimetemp = new Array();
so.data.sponsormoney = new Array();
so.data.money = new Array();
so.data.win = new Array();
so.data.teambool = new Array();
so.data.teamname = new Array();
so.data.teamlogo = new Array();
so.data.timeweeke = new Array();
so.data.yeare = new Array();
so.data.monthe = new Array();
so.data.weeke = new Array();
so.data.mechahp = new Array();
so.data.mechaatk = new Array();
so.data.mechadef = new Array();
so.data.mechaspd = new Array();
so.data.mechahptemp = new Array();
so.data.mechaatktemp = new Array();
so.data.mechadeftemp = new Array();
so.data.mechaspdtemp = new Array();
so.data.savedata = new Array();
so.data.tutorialbattle = new Array();
so.data.tutorialstep = new Array();
so.data.tutorialcomplete = new Array();
so.data.trainspeedlevel = new Array();
so.data.traindefenselevel = new Array();
so.data.trainattacklevel = new Array();
so.data.traingaragelevel = new Array();
so.data.charmechaeffect = new Array();
so.data.charmechaeffectnumba = new Array();
so.data.onautorepairbool = new Array();
so.data.charmecharepairbool = new Array();
so.data.charmecharepairtime = new Array();
so.data.charmecharepairtimetemp = new Array();
so.data.charmechachip = new Array();
so.data.charmechachiplevel = new Array();
so.data.charmechahead = new Array();
so.data.charmechaheadhp = new Array();
so.data.charmechaheadhpreal2 = new Array();
so.data.charmechaheadhpreal = new Array();
so.data.charmechaheadatk = new Array();
so.data.charmechaheadatkreal = new Array();
so.data.charmechaheaddef = new Array();
so.data.charmechaheaddefreal = new Array();
so.data.charmechaheadspd = new Array();
so.data.charmechaheadspdreal = new Array();
so.data.charmechahand1 = new Array();
so.data.charmechahand1hp = new Array();
so.data.charmechahand1hpreal2 = new Array();
so.data.charmechahand1hpreal = new Array();
so.data.charmechahand1atk = new Array();
so.data.charmechahand1atkreal = new Array();
so.data.charmechahand1def = new Array();
so.data.charmechahand1defreal = new Array();
so.data.charmechahand1spd = new Array();
so.data.charmechahand1spdreal = new Array();
so.data.charmechahand2 = new Array();
so.data.charmechahand2hp = new Array();
so.data.charmechahand2hpreal2 = new Array();
so.data.charmechahand2hpreal = new Array();
so.data.charmechahand2atk = new Array();
so.data.charmechahand2atkreal = new Array();
so.data.charmechahand2def = new Array();
so.data.charmechahand2defreal = new Array();
so.data.charmechahand2spd = new Array();
so.data.charmechahand2spdreal = new Array();
so.data.charmechaleg1 = new Array();
so.data.charmechaleg1hp = new Array();
so.data.charmechaleg1hpreal2 = new Array();
so.data.charmechaleg1hpreal = new Array();
so.data.charmechaleg1atk = new Array();
so.data.charmechaleg1atkreal = new Array();
so.data.charmechaleg1def = new Array();
so.data.charmechaleg1defreal = new Array();
so.data.charmechaleg1spd = new Array();
so.data.charmechaleg1spdreal = new Array();
so.data.charmechaleg2 = new Array();
so.data.charmechaleg2hp = new Array();
so.data.charmechaleg2hpreal2 = new Array();
so.data.charmechaleg2hpreal = new Array();
so.data.charmechaleg2hp = new Array();
so.data.charmechaleg2hpreal = new Array();
so.data.charmechaleg2atk = new Array();
so.data.charmechaleg2atkreal = new Array();
so.data.charmechaleg2def = new Array();
so.data.charmechaleg2defreal = new Array();
so.data.charmechaleg2spd = new Array();
so.data.charmechaleg2spdreal = new Array();
so.data.repairhead = new Array();
so.data.repairhand1 = new Array();
so.data.repairhand2 = new Array();
so.data.repairleg1 = new Array();
so.data.repairleg2 = new Array();
so.data.raider = new Array();
so.data.raiderwages = new Array();
so.data.raidername = new Array();
so.data.raiderlevel = new Array();
so.data.raiderexp = new Array();
so.data.raiderexpmax = new Array();
so.data.raiderhp = new Array();
so.data.raideratk = new Array();
so.data.raiderdef = new Array();
so.data.raiderspd = new Array();
so.data.raiderbuybool = new Array();
so.data.raiderbuyarray = new Array();
so.data.mechanic = new Array();
so.data.mechanicbuybool = new Array();
so.data.mechanicbuyarray = new Array();
so.data.chipowned = new Array();
so.data.grade = new Array();
so.data.gradetemp = new Array();
so.data.equipment = new Array();
so.data.equipmentstatus = new Array();
so.data.equipmenthp = new Array();
so.data.chipequipindex = new Array();
so.data.headequipindex = new Array();
so.data.hand1equipindex = new Array();
so.data.hand2equipindex = new Array();
so.data.leg1equipindex = new Array();
so.data.leg2equipindex = new Array();
_local1 = 1;
while (_local1 <= 3) {
buwatsavekeinikosong(_local1);
_local1++;
};
};
}
public function cekstatsummarymusu(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
musuhhp = 0;
musuhatk = 0;
musuhdef = 0;
musuhspd = 0;
_local1 = 0;
while (_local1 < itemsummary[so.data.grade[slotselected]][randenemy].length) {
if (itemsummary[so.data.grade[slotselected]][randenemy][_local1] != 0){
_local2 = [2, 3, 3, 4, 4];
_local3 = _local2[_local1];
if (_local1 == 0){
trace("endaz");
_local5 = objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][0]][1];
musuhheadstat = _local5;
} else {
if (_local1 == 1){
trace(("tgn 1" + objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][1]][1]));
_local5 = objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][1]][1];
musuhhand1stat = _local5;
} else {
if (_local1 == 2){
trace("tgn 2");
_local5 = objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][2]][1];
musuhhand2stat = _local5;
} else {
if (_local1 == 3){
trace(((("leg 1 " + _local3) + " ") + itemsummary[so.data.grade[slotselected]][randenemy][3]));
_local5 = objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][3]][1];
musuhleg1stat = _local5;
} else {
if (_local1 == 3){
trace("leg 2");
_local5 = objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][4]][1];
musuhleg2stat = _local5;
};
};
};
};
};
trace("lga");
trace(((("lga 2 " + _local3) + " ") + itemsummary[so.data.grade[slotselected]][randenemy][0]));
objarraylistsummaryeffect[3][20];
_local4 = 0;
while (_local4 < objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][_local1]][1].length) {
if (_local4 == 0){
_local5 = objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][_local1]][1][_local4];
_local5 = (objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][_local1]][1][_local4] + (_local5 * persentambahmusu[so.data.grade[slotselected]]));
_local6 = [5000, 1250, 1250, 1250, 1250];
if (_local5 > _local6[_local1]){
_local5 = _local6[_local1];
};
trace(((("asal : " + musuhhp) + " hp tamba : ") + (_local5 * musuhstatsummary[_local1])));
musuhhp = (musuhhp + (_local5 * musuhstatsummary[_local1]));
} else {
if (_local4 == 1){
_local7 = 0;
_local5 = objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][_local1]][1][_local4];
_local5 = (objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][_local1]][1][_local4] + (_local5 * persentambahmusu[so.data.grade[slotselected]]));
_local6 = [125, 250, 250, 125, 125];
if (_local5 > _local6[_local1]){
_local5 = _local6[_local1];
};
_local8 = (_local5 * musuhstatsummary[_local1]);
if (currentLabel == "battle"){
trace("4");
_local7 = cekbufftarget(enemymechabuffnegativeparts, listarraydipakebuwatcek2hp, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes, "atkdown", "enemy", _local1);
_local7 = (_local8 * _local7);
trace(("atk kurangi : " + _local7));
};
musuhatk = (musuhatk + (_local8 - _local7));
} else {
if (_local4 == 2){
trace("II");
_local9 = 0;
_local5 = objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][_local1]][1][_local4];
_local5 = (objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][_local1]][1][_local4] + (_local5 * persentambahmusu[so.data.grade[slotselected]]));
_local6 = [500, 125, 125, 125, 125];
if (_local5 > _local6[_local1]){
_local5 = _local6[_local1];
};
_local10 = (_local5 * musuhstatsummary[_local1]);
if (currentLabel == "battle"){
_local9 = cekbufftarget(enemymechabuffnegativeparts, listarraydipakebuwatcek2hp, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes, "defdown", "enemy", _local1);
_local9 = (_local10 * _local9);
trace(("def kurangi : " + _local9));
};
musuhdef = (musuhdef + (_local10 - _local9));
} else {
if (_local4 == 3){
trace("III");
_local11 = 0;
_local5 = objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][_local1]][1][_local4];
_local5 = (objarraylistsummaryeffect[_local3][itemsummary[so.data.grade[slotselected]][randenemy][_local1]][1][_local4] + (_local5 * persentambahmusu[so.data.grade[slotselected]]));
_local6 = [250, 125, 125, 250, 250];
if (_local5 > _local6[_local1]){
_local5 = _local6[_local1];
};
_local12 = (_local5 * musuhstatsummary[_local1]);
if (currentLabel == "battle"){
_local11 = cekbufftarget(enemymechabuffnegativeparts, listarraydipakebuwatcek2hp, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes, "spddown", "enemy", _local1);
_local11 = (_local12 * _local11);
trace(("spd kurangi : " + _local11));
};
musuhspd = (musuhspd + (_local12 - _local11));
};
};
};
};
_local4++;
};
};
_local1++;
};
musuhhp = int(musuhhp);
musuhatk = int(musuhatk);
musuhdef = int(musuhdef);
musuhspd = int(musuhspd);
if (musuhhp > 10000){
musuhhp = 10000;
};
if (musuhatk > 1000){
musuhatk = 1000;
};
if (musuhdef > 1000){
musuhdef = 1000;
};
if (musuhspd > 1000){
musuhspd = 1000;
};
trace(("HP ENEMY : " + musuhhp));
trace(("ATK ENEMY : " + musuhatk));
trace(("DEF ENEMY : " + musuhdef));
trace(("SPD ENEMY : " + musuhspd));
if (currentLabel == "battle"){
tetapkanlistarraydipakebuwatcek2();
tetapkanlistarraydipakebuwatcek2hp();
cekpassiveeffect(listarraydipakebuwatcek2, listarraydipakebuwatcek2hp, "enemy", 0);
_local1 = 0;
while (_local1 < enemymechapassive.length) {
if ((((((enemymechapassive[_local1] == "heal1")) || ((enemymechapassive[_local1] == "heal2")))) || ((enemymechapassive[_local1] == "heal3")))){
partsyangdiserang = 1;
adanegativebuff = enemymechapassive[_local1];
isiinibuff(adanegativebuff, enemymechabuffnegativeparts, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes);
adanegativebuff = "";
} else {
if (enemymechapassive[_local1] == "down"){
enemydownbool = true;
enemydownrestored = enemymechapassivenumba[_local1];
};
};
_local1++;
};
};
}
public function speedstart(_arg1:MouseEvent):void{
doneactivity = true;
soundclick.play(0, 1, new SoundTransform(volumemusic));
so.data.tp[slotselected] = (so.data.tp[slotselected] - costtp);
mcdialogbox.btncancel.visible = false;
mcdialogbox.btnupgrade.visible = false;
mcdialogbox.btnclose.visible = true;
mcdialogbox.btnstart.removeEventListener(MouseEvent.CLICK, speedstart);
mcdialogbox.gotoAndStop(1);
mccountdown.gotoAndPlay(2);
createtrainspeed();
mcdialogbox.visible = false;
}
public function loadpenonton(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
if (tournamentbool == false){
jumcrowd = (so.data.grade[slotselected] * 20);
} else {
jumcrowd = ((so.data.grade[slotselected] * 20) + (so.data.championshipphase[slotselected] * 20));
};
_local1 = 5;
_local2 = [undefined, 5, 8, 9, 5];
_local3 = [undefined, 10, 20, 30, 10];
_local4 = new Array();
_local5 = 1;
while (_local5 <= 4) {
_local4[_local5] = new Array();
_local9 = 1;
while (_local9 <= _local2[_local5]) {
_local4[_local5][_local9] = new Array();
_local10 = 1;
while (_local10 <= _local3[_local5]) {
_local4[_local5][_local9][_local10] = 0;
_local10++;
};
_local9++;
};
_local5++;
};
_local6 = 1;
_local7 = 1;
_local8 = (jumcrowd / (_local1 - 1));
_local5 = 1;
while (_local5 < _local1) {
_local11 = _local8;
_local12 = new Array();
_local9 = 1;
while (_local9 <= _local2[_local5]) {
_local12[_local9] = 0;
_local9++;
};
trace(("crowd per tribun : " + _local11));
do {
_local13 = randRange(1, _local2[_local5]);
trace(("masukno row ke : " + _local13));
_local12[_local13] = (_local12[_local13] + 1);
if (_local12[_local13] > _local3[_local5]){
_local12[_local13] = _local3[_local5];
};
--_local11;
} while (_local11 > 0);
_local9 = 1;
while (_local9 < _local12.length) {
trace(((("baris " + _local9) + " diisi : ") + _local12[_local9]));
_local14 = new Array();
_local10 = 0;
while (_local10 < _local12[_local9]) {
do {
_local16 = int(randRange(0, _local3[_local5]));
trace(("cek isi : " + _local4[_local5][_local9][_local16]));
} while (_local4[_local5][_local9][_local16] == 1);
trace(("ok isi di alokasi : " + _local16));
_local4[_local5][_local9][_local16] = 1;
_local14[_local10] = int(_local16);
trace(((("array ke : " + _local10) + " diisi : ") + _local16));
_local10++;
};
trace(("isi aseli " + _local14));
_local14.sort((Array.DESCENDING | Array.NUMERIC));
trace(((("baris ke : " + _local9) + " jejeran kursine ke : ") + _local14));
_local15 = 0;
while (_local15 < _local14.length) {
_local17 = [people1, people2, people3, people4, people5, people6, people7, people8, people9, people10, people11, people12, people13, people14, people15, people16];
crowdimage[crowdimage.length] = new (_local17[randRange(0, (_local17.length - 1))]);
_local18 = getChildByName(((("mctribun" + _local5) + "row") + _local9));
addChildAt(crowdimage[(crowdimage.length - 1)], getChildIndex(_local18));
crowdimage[(crowdimage.length - 1)].x = _local18.x;
crowdimage[(crowdimage.length - 1)].y = _local18.y;
crowdimage[(crowdimage.length - 1)].tribun = _local5;
crowdimage[(crowdimage.length - 1)].rowe = _local9;
if (_local5 == 1){
crowdimage[(crowdimage.length - 1)].scaleX = (crowdimage[(crowdimage.length - 1)].scaleX * -1);
crowdimage[(crowdimage.length - 1)].gotoAndStop("sit2");
crowdimage[(crowdimage.length - 1)].x = (crowdimage[(crowdimage.length - 1)].x - (_local14[_local15] * 10));
crowdimage[(crowdimage.length - 1)].y = (crowdimage[(crowdimage.length - 1)].y - (_local14[_local15] * 5));
crowdimage[(crowdimage.length - 1)].facee = 2;
} else {
if (_local5 == 2){
crowdimage[(crowdimage.length - 1)].gotoAndStop("sit2");
crowdimage[(crowdimage.length - 1)].x = (crowdimage[(crowdimage.length - 1)].x + (_local14[_local15] * 10));
crowdimage[(crowdimage.length - 1)].y = (crowdimage[(crowdimage.length - 1)].y - (_local14[_local15] * 5));
crowdimage[(crowdimage.length - 1)].facee = 2;
} else {
if (_local5 == 3){
crowdimage[(crowdimage.length - 1)].gotoAndStop("sit1");
crowdimage[(crowdimage.length - 1)].x = (crowdimage[(crowdimage.length - 1)].x - (_local14[_local15] * 10));
crowdimage[(crowdimage.length - 1)].y = (crowdimage[(crowdimage.length - 1)].y + (_local14[_local15] * 5));
crowdimage[(crowdimage.length - 1)].facee = 1;
} else {
if (_local5 == 4){
crowdimage[(crowdimage.length - 1)].scaleX = (crowdimage[(crowdimage.length - 1)].scaleX * -1);
crowdimage[(crowdimage.length - 1)].gotoAndStop("sit1");
crowdimage[(crowdimage.length - 1)].x = (crowdimage[(crowdimage.length - 1)].x + (_local14[_local15] * 10));
crowdimage[(crowdimage.length - 1)].y = (crowdimage[(crowdimage.length - 1)].y + (_local14[_local15] * 5));
crowdimage[(crowdimage.length - 1)].facee = 1;
};
};
};
};
_local15++;
};
_local9++;
};
_local5++;
};
}
function frame10(){
gotoAndStop("ingame");
}
public function createmisspoint(_arg1:Object):void{
var _local2:*;
_local2 = [battledamagepoint, battledamagepoint2, battledamagepoint3, battledamagepoint4, battledamagepoint5];
effectimage[effectimage.length] = new (_local2[randRange(0, (_local2.length - 1))]);
addChild(effectimage[(effectimage.length - 1)]);
effectimage[(effectimage.length - 1)].x = _arg1.x;
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].gotoAndPlay(2);
effectimage[(effectimage.length - 1)].mcpoingained.gotoAndStop(3);
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt1.text = "";
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt2.text = "MISS";
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt3.text = "MISS";
effectimage[(effectimage.length - 1)].mcpoingained.mc1.txt4.text = "";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].mouseChildren = false;
effectimage[(effectimage.length - 1)].mouseEnabled = false;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
buffrealname = "";
}
public function nextconv(_arg1:MouseEvent):void{
if ((((textingstep >= (objtotext.length - 1))) && ((textingtextindex >= objtotext[textingstep].length)))){
mcdialogbox.gotoAndStop(1);
mcdialogbox.btnnext.removeEventListener(MouseEvent.CLICK, nextconv);
stage.removeEventListener(Event.ENTER_FRAME, textingtext);
if (firstimebool == true){
firstimebool = false;
mcui.mc1.mcblink.gotoAndStop(1);
};
if (so.data.tutorialstep[slotselected] == 2){
so.data.tutorialstep[slotselected] = 3;
} else {
if (so.data.tutorialstep[slotselected] == 3){
so.data.tutorialstep[slotselected] = 4;
loadtrainspeed();
} else {
if (so.data.tutorialstep[slotselected] == 4){
so.data.tutorialstep[slotselected] = 5;
createendday();
} else {
if (so.data.tutorialstep[slotselected] == 5){
so.data.tutorialstep[slotselected] = 6;
} else {
if (so.data.tutorialstep[slotselected] == 10){
so.data.tutorialstep[slotselected] = 11;
} else {
if (so.data.tutorialstep[slotselected] == 17){
mcui2.mc1.mcblink.gotoAndStop(1);
} else {
if (so.data.tutorialstep[slotselected] == 18){
mcui2.mc1.mcblink.gotoAndStop(1);
};
};
};
};
};
};
};
} else {
if (textingtextindex <= objtotext[textingstep].length){
textingtextindex = objtotext[textingstep].length;
} else {
if ((((so.data.tutorialstep[slotselected] == 2)) && ((textingstep == 0)))){
mcmap.mcbuild1.mcmecha1.mcblink.gotoAndStop(2);
mcmap.mcbuild1.mcraider1.mcblink.gotoAndStop(2);
} else {
mcmap.mcbuild1.mcmecha1.mcblink.gotoAndStop(1);
mcmap.mcbuild1.mcraider1.mcblink.gotoAndStop(1);
};
if ((((so.data.tutorialstep[slotselected] == 2)) && ((textingstep == 1)))){
mcui.mc1.mcblink.gotoAndStop(2);
} else {
if ((((so.data.tutorialstep[slotselected] == 2)) && (!((textingstep == 1))))){
mcui.mc1.mcblink.gotoAndStop(1);
};
};
trace(((("Step : " + so.data.tutorialstep[slotselected]) + " ha : ") + textingstep));
if ((((so.data.tutorialstep[slotselected] == 5)) && ((textingstep == 1)))){
mcui2.mc1.mcblink.gotoAndStop(2);
} else {
if ((((so.data.tutorialstep[slotselected] == 5)) && (!((textingstep == 1))))){
mcui2.mc1.mcblink.gotoAndStop(1);
};
};
if ((((so.data.tutorialstep[slotselected] == 10)) && ((textingstep == 0)))){
mcui2.mc1.mcblink.gotoAndStop(6);
} else {
if ((((so.data.tutorialstep[slotselected] == 10)) && (!((textingstep == 0))))){
mcui2.mc1.mcblink.gotoAndStop(1);
};
};
if ((((so.data.tutorialstep[slotselected] == 9)) && ((textingstep == 0)))){
mcui4.mcblinker.gotoAndStop(3);
} else {
if ((((so.data.tutorialstep[slotselected] == 9)) && ((textingstep == 1)))){
mcui.mc1.mcblink.gotoAndStop(5);
mcui4.mcblinker.gotoAndStop(1);
};
};
textingtextindex = 0;
textingstep++;
textingreload = textingreloadtemp;
};
};
}
public function clickableaway(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcanimasi.mc1.gotoAndStop(1);
}
public function autoattackpartsup(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = 0;
while (_local2 < autoattackimage.length) {
if (_arg1.currentTarget.tipeku != autoattackimage[_local2].tipeku){
if (_arg1.currentTarget.mchit.hitTestObject(autoattackimage[_local2].mchit) == true){
_local3 = _arg1.currentTarget.tipeku;
_local4 = autoattackimage[_local2].tipeku;
autoattackimage[_local2].tipeku = _local3;
_arg1.currentTarget.tipeku = _local4;
loadautoattack();
break;
};
};
_local2++;
};
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, autoattackfollowmouse);
_arg1.currentTarget.x = _arg1.currentTarget.statx;
_arg1.currentTarget.y = _arg1.currentTarget.staty;
}
public function mechanicsortbywages(_arg1:MouseEvent):void{
mechanicbuysort = "wages";
loadmechanicpanel();
}
public function mapswap(_arg1:Event):void{
timewarp--;
mcmap.x = (mcmap.x + mcmap.selisihx);
mcmap.y = (mcmap.y + mcmap.selisihy);
if (timewarp <= 0){
posisimarking = targetmark;
stage.removeEventListener(Event.ENTER_FRAME, mapswap);
mcindicatorhealth.visible = false;
if (targetmark == 2){
loadtrainattack();
} else {
if (targetmark == 3){
loadtraindefense();
} else {
if (targetmark == 4){
if (so.data.tutorialstep[slotselected] != 3){
loadtrainspeed();
} else {
createtutortext2();
};
} else {
if (targetmark == 1){
if ((((doneactivity == true)) && ((so.data.tutorialcomplete[slotselected] == true)))){
mecharepairbool = false;
createendday();
} else {
if (so.data.tutorialstep[slotselected] != 4){
if (so.data.adareport[slotselected] == true){
mcreport.visible = true;
};
btnsalary.visible = true;
btnendday.visible = true;
txtrepairpercent.visible = true;
mcmap.mcbuild4.btndash.visible = false;
mcmap.mcbuild4.mcdashdisabled.visible = false;
mcspeedtimelimits.visible = false;
mcui.gotoAndPlay("up");
mcui2.gotoAndPlay("up");
mcui3.gotoAndPlay("up");
mcui5.gotoAndPlay("up");
} else {
createtutortext3();
};
loadtraingarage();
};
};
};
};
};
};
}
public function mainmenumoregames(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
}
public function repairstop(_arg1:MouseEvent):void{
createstoprepair();
}
public function buwathelppic(){
var _local1:*;
mcbattlehelp.mchelppic.gotoAndStop(indexhelp);
mcbattlehelp.btnpage1.gotoAndStop(1);
mcbattlehelp.btnpage2.gotoAndStop(1);
_local1 = mcbattlehelp.getChildByName(("btnpage" + indexhelp));
_local1.gotoAndStop(2);
}
public function givetptpoint(){
so.data.tp[slotselected] = (so.data.tp[slotselected] + tpbonus);
mctpadded.mcpoingained.gotoAndStop(1);
mctpadded.mcpoingained.mc1.txt1.text = ("TP+" + tpbonus);
mctpadded.gotoAndPlay(2);
mcui.mc1.txttp.text = so.data.tp[slotselected];
}
public function clearallwindow(){
var _local1:*;
var _local2:*;
if (volumemainmusic != 0){
volumemainmusic = 1;
soundchannel1.soundTransform = new SoundTransform(volumemainmusic);
};
if (soundchannelongarage != null){
soundchannelongarage.stop();
soundchannelongarage = null;
};
_local1 = 1;
while (_local1 <= 4) {
_local2 = mcshop.getChildByName(("mcbtn" + _local1));
_local2.gotoAndStop(1);
_local1++;
};
_local1 = 0;
while (_local1 < shopitem.length) {
if (shopitem[_local1] != null){
removeChild(shopitem[_local1]);
shopitem[_local1] = null;
};
_local1++;
};
mcchampionship.visible = false;
mcshop.visible = false;
mcridershop.visible = false;
mcsponsor.visible = false;
mcuimechastatus.visible = false;
mcmechanicpanel.visible = false;
mcturnamenlastchance.visible = false;
}
public function obstaclespeedout(_arg1:MouseEvent):void{
var _local2:*;
_local2 = new ColorTransform();
_arg1.currentTarget.transform.colorTransform = _local2;
}
public function createtrainspeed(){
var _local1:*;
var _local2:*;
mechaused.direction = "left";
mechaused.face = "back";
mechaused.nowalk = false;
mechaused.canfinish = false;
mechaused.finishe = 0;
mechaused.bonusmovement = 0;
loadmechadirection();
_local1 = 1;
while (_local1 <= obstaclelevel[so.data.trainspeedlevel[slotselected]]) {
_local2 = buildingused.mc1.getChildByName(("mcobstacle" + _local1));
_local2.mc1.gotoAndStop(1);
_local2.countdowntospawn = randRange(obstaclehealthcountdown1[so.data.trainspeedlevel[slotselected]], obstaclehealthcountdown[so.data.trainspeedlevel[slotselected]]);
_local2.countdowntospawntemp = _local2.countdowntospawn;
_local2.health = obstaclehealth[so.data.trainspeedlevel[slotselected]];
_local2.healthtemp = _local2.health;
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.CLICK, obstaclespeedclick);
_local2.addEventListener(MouseEvent.MOUSE_OVER, obstaclespeedover);
_local2.addEventListener(MouseEvent.MOUSE_OUT, obstaclespeedout);
_local1++;
};
mccountdown.addEventListener(Event.ENTER_FRAME, countdownstartspeed);
}
public function itungitemgained(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local1 = randRange(1, 100);
_local2 = randRange(1, 4);
if ((((so.data.grade[slotselected] == 1)) && ((so.data.championshipphase[slotselected] == 6)))){
_local1 = 1;
_local2 = 1;
} else {
_local2 = randRange(1, 4);
};
if (_local1 >= 4){
mcbattleprize.mcpreview.visible = false;
mcbattleprize.mcnotavailable.visible = true;
mcbattleprize.txtname.text = "";
} else {
if (_local1 < 4){
trace(("YA DAPET ITEM KE " + _local2));
_local3 = 1;
while (_local3 <= 4) {
_local4 = mcbattleprize.mcpreview.getChildByName(("mc" + _local3));
_local4.visible = false;
_local3++;
};
trace(("CEK LENGTH : " + so.data.equipment[slotselected][_local2].length));
if (so.data.equipment[slotselected][_local2].length < invenmax){
trace(("YA INVEN MASI ADA SLOT : " + so.data.equipment[slotselected][_local2].length));
_local4 = mcbattleprize.mcpreview.getChildByName(("mc" + _local2));
_local4.visible = true;
trace(("pjg 1 : " + objarraylistsummary[_local2].length));
_local3 = 1;
while (_local3 < objarraylistsummary[_local2].length) {
trace(("pjg 2 : " + objarraylistsummary[_local2][_local3].length));
objarraylistsummary[1][1][1];
_local5 = 1;
while (_local5 < objarraylistsummary[_local2][_local3].length) {
trace(("cek gradenya : " + objarraylistsummary[_local2][_local3][_local5]));
if (objarraylistsummary[_local2][_local3][_local5] <= so.data.grade[slotselected]){
_local6 = randRange(1, 1);
if (_local6 == 1){
if (so.data.firsttimechipprize[slotselected] == 0){
so.data.firsttimechipprize[slotselected] = 1;
};
trace("Dapeti");
mcbattleprize.mcpreview.visible = true;
mcbattleprize.mcnotavailable.visible = false;
mcbattleprize.txtname.text = objarraylistname[_local2][_local3];
if (_local2 == 1){
so.data.equipment[slotselected][_local2][so.data.equipment[slotselected][_local2].length] = _local3;
trace("a");
so.data.equipmentstatus[slotselected][_local2][so.data.equipmentstatus[slotselected][_local2].length] = _local5;
trace("b");
so.data.equipmenthp[slotselected][_local2][so.data.equipmenthp[slotselected][_local2].length] = 1;
trace("c");
_local4.gotoAndStop(_local5);
} else {
so.data.equipment[slotselected][_local2][so.data.equipment[slotselected][_local2].length] = _local5;
so.data.equipmentstatus[slotselected][_local2][so.data.equipmentstatus[slotselected][_local2].length] = [undefined, objarraylistsummaryeffect[_local2][_local5][1][0], objarraylistsummaryeffect[_local2][_local5][1][1], objarraylistsummaryeffect[_local2][_local5][1][2], objarraylistsummaryeffect[_local2][_local5][1][3]];
so.data.equipmenthp[slotselected][_local2][so.data.equipmenthp[slotselected][_local2].length] = 1;
_local4.mc1.gotoAndStop(_local5);
};
//unresolved jump
};
};
_local5++;
};
_local3++;
};
};
};
};
}
public function shopbuymode(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
shopbeli = true;
bukafungsishop();
}
public function traindefensesembur(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = [undefined, 2, 3, 3];
_local2 = [undefined, ["fire"], ["fire", "ice"], ["fire", "ice"]];
_local3 = 1;
while (_local3 <= _local1[so.data.traindefenselevel[slotselected]]) {
_local4 = buildingused.getChildByName(("mcshoot" + _local3));
_local5 = randRange(0, (_local2[so.data.traindefenselevel[slotselected]].length - 1));
trace(("hasil : " + _local5));
if (_local4.currentFrame == 1){
_local4.gotoAndPlay(_local2[so.data.traindefenselevel[slotselected]][_local5]);
};
_local3++;
};
if (so.data.traindefenselevel[slotselected] == 3){
if (buildingused.mcshoot4.currentFrame == 1){
buildingused.mcshoot4.gotoAndPlay("lighting");
};
};
}
public function createfirsttimechipset(){
objtotext = firsttimechipset;
createtexting();
}
public function cekkurangerenergybar(_arg1:Object):void{
var _local2:*;
if (_arg1.targetwidth != -1){
_local2 = _arg1.mcbarenergy;
if (_arg1.kurangiphase == 1){
trace(("cek width fungsi : " + _local2.width));
trace(("cek tar width fungsi : " + _arg1.targetwidth));
_arg1.speedkuranger = ((_local2.width - _arg1.targetwidth) / kurangertime);
trace(("SPD KURANGER : " + _arg1.speedkuranger));
_arg1.kurangertime = kurangertime;
_arg1.kurangiphase = 2;
} else {
if (_arg1.kurangiphase == 2){
_arg1.kurangertime--;
_local2.width = (_local2.width - _arg1.speedkuranger);
if (_arg1.kurangertime < 0){
_local2.width = _local2.targetwidth;
_arg1.targetwidth = -1;
};
};
};
};
}
public function slotchoose(_arg1:MouseEvent):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volumemusic));
_local2 = _arg1.target.name;
_local2 = _local2.charAt((_local2.length - 1));
so.data.savedata[_local2] = 1;
trace(((("save ke : " + _local2) + " isi ") + so.data.savedata[_local2]));
slotselected = _local2;
transisi("ingame");
stage.removeEventListener(Event.ENTER_FRAME, soundmainmenu);
if (soundchanneldatacrunch != null){
soundchanneldatacrunch.stop();
soundchanneldatacrunch = null;
};
soundchannel1.stop();
soundchannel1 = null;
}
public function mainmenuachievements(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
transisi("achievements");
stage.removeEventListener(Event.ENTER_FRAME, soundmainmenu);
if (soundchanneldatacrunch != null){
soundchanneldatacrunch.stop();
soundchanneldatacrunch = null;
};
}
public function effectremover(_arg1:Event):void{
if (_arg1.target.currentFrame == _arg1.target.totalFrames){
_arg1.target.removeEventListener(Event.ENTER_FRAME, effectremover);
removeChild(effectimage[_arg1.target.indexke]);
effectimage[_arg1.target.indexke] = null;
};
}
public function tetapkanlistarraydipakebuwatcek(){
listarraydipakebuwatcek = [so.data.charmechahead[slotselected][robotused], so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused], so.data.charmechaleg1[slotselected][robotused], so.data.charmechaleg2[slotselected][robotused]];
}
public function battleanimation(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pausegame == false){
if (mechaused.chargebool == true){
if (mechaused.chargeboolphase == 2){
if (mechaused.currentLabel != "backwalk"){
mechaused.gotoAndPlay("backwalk");
};
mechaused.timemundur--;
mechaused.x = (mechaused.x - (standartspeedx * 4));
mechaused.y = (mechaused.y + (standartspeedy * 4));
if (mechaused.timemundur <= 0){
mechaused.chargebool = false;
mechaused.gotoAndPlay("backidle");
if (adacounter == true){
mcskillname.mc1.txt1.text = "Counter Attack";
mcskillname.gotoAndPlay(2);
skillselecttarget = false;
battleanimationbool = false;
stage.removeEventListener(Event.ENTER_FRAME, battleanimation);
trace("YAP ENEMY COUNTER");
cekheaddlldll(itemsummary[so.data.grade[slotselected]][musuhtipe][0], musuhatk);
enemymecha.chargebool = true;
enemymecha.chargeboolphase = 1;
enemymecha.statx = enemymecha.x;
enemymecha.staty = enemymecha.y;
skilldariparts = 1;
createeffectbattle(headskillnumba[itemsummary[so.data.grade[slotselected]][musuhtipe][0]][0], enemymecha, "head", "enemy");
} else {
mcplayereffective.visible = false;
mcenemyeffective.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, battleanimation);
jedaphase = 2;
buwatjedaer();
};
};
};
if (mechaused.chargeboolphase == 1){
if (sudahcharge == false){
sudahcharge = true;
linkagesound[soundindex].play(0, 1, new SoundTransform(volumemusic));
};
if (mcplayereffective.currentLabel != "blinking"){
mcplayereffective.gotoAndPlay("blinking");
};
if (mechaused.currentLabel != "backwalk"){
mechaused.gotoAndPlay("backwalk");
};
if (mechaused.mchead.hitTestObject(enemymecha.mchead) == true){
mechaused.timemundur = 25;
mechaused.chargeboolphase = 2;
_local2 = cekdodge(so.data.mechaatktemp[slotselected][robotused], so.data.mechadeftemp[slotselected][robotused], so.data.mechaspdtemp[slotselected][robotused], ((objarraylistsummaryeffect[4][itemsummary[so.data.grade[slotselected]][randenemy][3]][1][3] * musuhstatsummary[3]) + (objarraylistsummaryeffect[4][itemsummary[so.data.grade[slotselected]][randenemy][4]][1][3] * musuhstatsummary[4])));
if (_local2 == false){
soundmiss.play(0, 1, new SoundTransform(volumemusic));
enemymecha.gotoAndPlay("frontdodge");
createmisspoint(enemymecha);
} else {
createpenontonmendal("");
if (mcenemyeffective.currentLabel != "hit"){
mcenemyeffective.gotoAndPlay("hit");
};
if (efektifbool == 1){
buwatblinkerefektif();
damagemasuk = (damagemasuk + (damagemasuk * 0.25));
} else {
if (efektifbool == -1){
damagemasuk = (damagemasuk - (damagemasuk * 0.25));
};
};
mcbg.mccamera1.gotoAndPlay(2);
mcbg.mccamera2.gotoAndPlay(2);
mcbg.gotoAndPlay(2);
trace(("cek ada heal ndaaaa : " + adaconvert));
enemymecha.gotoAndPlay("frontmelee");
cekobjkenadamage(enemymecha);
createdamagepoint(enemymecha, damagemasuk, "damage");
if (adaconvert != 0){
trace("ya ini heal kluar");
partsyangdiserang = 1;
damagemasuk = adaconvert;
cekobjkenadamage(mechaused);
createdamagepoint(mechaused, damagemasuk, "recovering");
};
};
} else {
mechaused.x = (mechaused.x + (standartspeedx * 4));
mechaused.y = (mechaused.y - (standartspeedy * 4));
};
};
} else {
if (enemymecha.chargebool == true){
trace(("cek chargebool : " + enemymecha.chargeboolphase));
if (enemymecha.chargeboolphase == 2){
trace("ENEMY MUNDUR");
if (enemymecha.currentLabel != "frontwalk"){
enemymecha.gotoAndPlay("frontwalk");
};
enemymecha.timemundur--;
enemymecha.x = (enemymecha.x + (standartspeedx * 4));
enemymecha.y = (enemymecha.y - (standartspeedy * 4));
if (enemymecha.timemundur <= 0){
enemymecha.chargebool = false;
tentuinskillmusupakemana();
enemymecha.gotoAndPlay("frontidle");
if (adacounter == true){
mcskillname.mc1.txt1.text = "Counter Attack";
mcskillname.gotoAndPlay(2);
enemymecha.chargebool = false;
skillselecttarget = false;
battleanimationbool = false;
stage.removeEventListener(Event.ENTER_FRAME, battleanimation);
trace("YAP HERO COUNTER");
cekheaddlldll(so.data.charmechahead[slotselected][robotused], so.data.mechaatktemp[slotselected][robotused]);
skilldariparts = 1;
createeffectbattle(headskillnumba[so.data.charmechahead[slotselected][robotused]][0], mechaused, "head", "hero");
} else {
mcplayereffective.visible = false;
mcenemyeffective.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, battleanimation);
jedaphase = 2;
buwatjedaer();
};
};
};
if (enemymecha.chargeboolphase == 1){
if (sudahcharge == false){
sudahcharge = true;
linkagesound[soundindex].play(0, 1, new SoundTransform(volumemusic));
};
if (mcenemyeffective.currentLabel != "blinking"){
mcenemyeffective.gotoAndPlay("blinking");
};
trace("ENEMY MAJU");
if (enemymecha.currentLabel != "frontwalk"){
enemymecha.gotoAndPlay("frontwalk");
};
if (enemymecha.mchead.hitTestObject(mechaused.mchead) == true){
trace("NABRAK MECHA");
enemymecha.chargeboolphase = 2;
trace(("CHARGE PHASE : " + enemymecha.chargeboolphase));
enemymecha.timemundur = 25;
_local3 = cekdodge(musuhatk, musuhdef, musuhspd, (so.data.charmechaleg1spd[slotselected][robotused] + so.data.charmechaleg2spd[slotselected][robotused]));
if (_local3 == false){
soundmiss.play(0, 1, new SoundTransform(volumemusic));
mechaused.gotoAndPlay("backdodge");
createmisspoint(mechaused);
} else {
createpenontonmendal("");
if (mcplayereffective.currentLabel != "hit"){
mcplayereffective.gotoAndPlay("hit");
};
if (efektifbool == 1){
buwatblinkerefektif();
damagemasuk = (damagemasuk + (damagemasuk * 0.25));
} else {
if (efektifbool == -1){
damagemasuk = (damagemasuk - (damagemasuk * 0.25));
};
};
mcbg.mccamera1.gotoAndPlay(2);
mcbg.mccamera2.gotoAndPlay(2);
mcbg.gotoAndPlay(2);
mechaused.gotoAndPlay("backmelee");
cekobjkenadamage(mechaused);
createdamagepoint(mechaused, damagemasuk, "damage");
if (adaconvert != 0){
trace("ya ini heal kluar");
partsyangdiserang = 1;
damagemasuk = adaconvert;
cekobjkenadamage(enemymecha);
createdamagepoint(enemymecha, damagemasuk, "recovering");
};
};
} else {
enemymecha.x = (enemymecha.x - (standartspeedx * 4));
enemymecha.y = (enemymecha.y + (standartspeedy * 4));
};
};
};
};
};
}
public function cekmaksimumpergrade(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local1 = [undefined, 250, 450, 650, 850, 1000];
trace("1123");
_local2 = [2, 3, 3, 4, 4];
_local3 = [so.data.charmechahead[slotselected][robotused], so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused], so.data.charmechaleg1[slotselected][robotused], so.data.charmechaleg2[slotselected][robotused]];
trace("1");
_local4 = 0;
while (_local4 < _local2.length) {
trace(((("list index : " + _local2[_local4]) + " list so : ") + _local3[_local4]));
if (_local3[_local4] == 0){
if (_local4 == 0){
mcuimechastatus.mchp1.visible = false;
mcuimechastatus.mcatk1.visible = false;
mcuimechastatus.mcdef1.visible = false;
mcuimechastatus.mcspd1.visible = false;
} else {
if (_local4 == 1){
mcuimechastatus.mchp2.visible = false;
mcuimechastatus.mcatk2.visible = false;
mcuimechastatus.mcdef2.visible = false;
mcuimechastatus.mcspd2.visible = false;
} else {
if (_local4 == 2){
mcuimechastatus.mchp3.visible = false;
mcuimechastatus.mcatk3.visible = false;
mcuimechastatus.mcdef3.visible = false;
mcuimechastatus.mcspd3.visible = false;
} else {
if (_local4 == 3){
mcuimechastatus.mchp4.visible = false;
mcuimechastatus.mcatk4.visible = false;
mcuimechastatus.mcdef4.visible = false;
mcuimechastatus.mcspd4.visible = false;
} else {
if (_local4 == 4){
mcuimechastatus.mchp5.visible = false;
mcuimechastatus.mcatk5.visible = false;
mcuimechastatus.mcdef5.visible = false;
mcuimechastatus.mcspd5.visible = false;
};
};
};
};
};
} else {
if (_local3[_local4] != 0){
_local5 = objarraylistsummary[_local2[_local4]][_local3[_local4]][1];
trace(((("item ke : " + _local2[_local4]) + " grade : ") + _local5));
if (_local4 == 0){
_local1 = [undefined, 100, 200, 300, 400, 500];
_local6 = [undefined, 50, 100, 150, 200, 250];
trace("a");
trace(so.data.charmechaheadhpreal[slotselected][robotused]);
if (so.data.charmechaheadhpreal[slotselected][robotused] >= (_local1[_local5] * 10)){
trace("d");
so.data.charmechaheadhpreal[slotselected][robotused] = (_local1[_local5] * 10);
mcuimechastatus.mchp1.visible = true;
headmax[0] = 1;
} else {
trace("f");
mcuimechastatus.mchp1.visible = false;
trace("fgg");
headmax[0] = 0;
};
trace("g");
if (so.data.charmechaheadatkreal[slotselected][robotused] >= _local6[_local5]){
so.data.charmechaheadatkreal[slotselected][robotused] = _local6[_local5];
so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][2] = _local6[_local5];
mcuimechastatus.mcatk1.visible = true;
headmax[2] = 1;
} else {
mcuimechastatus.mcatk1.visible = false;
headmax[2] = 0;
};
trace("b");
if (so.data.charmechaheaddefreal[slotselected][robotused] >= _local1[_local5]){
so.data.charmechaheaddefreal[slotselected][robotused] = _local1[_local5];
so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][3] = _local1[_local5];
mcuimechastatus.mcdef1.visible = true;
headmax[3] = 1;
} else {
mcuimechastatus.mcdef1.visible = false;
headmax[3] = 0;
};
trace("c");
if (so.data.charmechaheadspdreal[slotselected][robotused] >= _local6[_local5]){
so.data.charmechaheadspdreal[slotselected][robotused] = _local6[_local5];
so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][4] = _local6[_local5];
mcuimechastatus.mcspd1.visible = true;
headmax[4] = 1;
} else {
mcuimechastatus.mcspd1.visible = false;
headmax[4] = 0;
};
} else {
if (_local4 == 1){
_local1 = [undefined, 50, 100, 150, 200, 250];
_local6 = [undefined, 25, 50, 75, 100, 125];
if (so.data.charmechahand1hpreal[slotselected][robotused] >= (_local6[_local5] * 10)){
so.data.charmechahand1hpreal[slotselected][robotused] = (_local6[_local5] * 10);
mcuimechastatus.mchp2.visible = true;
hand1max[0] = 1;
} else {
mcuimechastatus.mchp2.visible = false;
hand1max[0] = 0;
};
if (so.data.charmechahand1atkreal[slotselected][robotused] >= _local1[_local5]){
so.data.charmechahand1atkreal[slotselected][robotused] = _local1[_local5];
so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][2] = _local1[_local5];
mcuimechastatus.mcatk2.visible = true;
hand1max[2] = 1;
} else {
mcuimechastatus.mcatk2.visible = false;
hand1max[2] = 0;
};
if (so.data.charmechahand1defreal[slotselected][robotused] >= _local6[_local5]){
so.data.charmechahand1defreal[slotselected][robotused] = _local6[_local5];
so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][3] = _local6[_local5];
mcuimechastatus.mcdef2.visible = true;
hand1max[3] = 1;
} else {
mcuimechastatus.mcdef2.visible = false;
hand1max[3] = 0;
};
if (so.data.charmechahand1spdreal[slotselected][robotused] >= _local6[_local5]){
so.data.charmechahand1spdreal[slotselected][robotused] = _local6[_local5];
so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][4] = _local6[_local5];
mcuimechastatus.mcspd2.visible = true;
hand1max[4] = 1;
} else {
mcuimechastatus.mcspd2.visible = false;
hand1max[4] = 0;
};
} else {
if (_local4 == 2){
_local1 = [undefined, 50, 100, 150, 200, 250];
_local6 = [undefined, 25, 50, 75, 100, 125];
if (so.data.charmechahand2hpreal[slotselected][robotused] >= (_local6[_local5] * 10)){
so.data.charmechahand2hpreal[slotselected][robotused] = (_local6[_local5] * 10);
mcuimechastatus.mchp3.visible = true;
hand2max[0] = 1;
} else {
mcuimechastatus.mchp3.visible = false;
hand2max[0] = 0;
};
if (so.data.charmechahand2atkreal[slotselected][robotused] >= _local1[_local5]){
so.data.charmechahand2atkreal[slotselected][robotused] = _local1[_local5];
so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][2] = _local1[_local5];
mcuimechastatus.mcatk3.visible = true;
hand2max[2] = 1;
} else {
mcuimechastatus.mcatk3.visible = false;
hand2max[2] = 0;
};
if (so.data.charmechahand2defreal[slotselected][robotused] >= _local6[_local5]){
so.data.charmechahand2defreal[slotselected][robotused] = _local6[_local5];
so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][3] = _local6[_local5];
mcuimechastatus.mcdef3.visible = true;
hand2max[3] = 1;
} else {
mcuimechastatus.mcdef3.visible = false;
hand2max[3] = 0;
};
if (so.data.charmechahand2spdreal[slotselected][robotused] >= _local6[_local5]){
so.data.charmechahand2spdreal[slotselected][robotused] = _local6[_local5];
so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][4] = _local6[_local5];
mcuimechastatus.mcspd3.visible = true;
hand2max[4] = 1;
} else {
mcuimechastatus.mcspd3.visible = false;
hand2max[4] = 0;
};
} else {
if (_local4 == 3){
_local1 = [undefined, 50, 100, 150, 200, 250];
_local6 = [undefined, 25, 50, 75, 100, 125];
if (so.data.charmechaleg1hpreal[slotselected][robotused] >= (_local6[_local5] * 10)){
so.data.charmechaleg1hpreal[slotselected][robotused] = (_local6[_local5] * 10);
mcuimechastatus.mchp4.visible = true;
leg1max[0] = 1;
} else {
mcuimechastatus.mchp4.visible = false;
leg1max[0] = 0;
};
if (so.data.charmechaleg1atkreal[slotselected][robotused] > _local6[_local5]){
so.data.charmechaleg1atkreal[slotselected][robotused] = _local6[_local5];
so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][2] = _local6[_local5];
mcuimechastatus.mcatk4.visible = true;
leg1max[2] = 1;
} else {
mcuimechastatus.mcatk4.visible = false;
leg1max[2] = 0;
};
if (so.data.charmechaleg1defreal[slotselected][robotused] >= _local6[_local5]){
so.data.charmechaleg1defreal[slotselected][robotused] = _local6[_local5];
so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][3] = _local6[_local5];
mcuimechastatus.mcdef4.visible = true;
leg1max[3] = 1;
} else {
mcuimechastatus.mcdef4.visible = false;
leg1max[3] = 0;
};
if (so.data.charmechaleg1spdreal[slotselected][robotused] >= _local1[_local5]){
so.data.charmechaleg1spdreal[slotselected][robotused] = _local1[_local5];
so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][4] = _local1[_local5];
mcuimechastatus.mcspd4.visible = true;
leg1max[4] = 1;
} else {
mcuimechastatus.mcspd4.visible = false;
leg1max[4] = 0;
};
} else {
if (_local4 == 4){
_local1 = [undefined, 50, 100, 150, 200, 250];
_local6 = [undefined, 25, 50, 75, 100, 125];
if (so.data.charmechaleg2hpreal[slotselected][robotused] >= (_local6[_local5] * 10)){
so.data.charmechaleg2hpreal[slotselected][robotused] = (_local6[_local5] * 10);
mcuimechastatus.mchp5.visible = true;
leg2max[0] = 1;
} else {
mcuimechastatus.mchp5.visible = false;
leg2max[0] = 0;
};
if (so.data.charmechaleg2atkreal[slotselected][robotused] >= _local6[_local5]){
so.data.charmechaleg2atkreal[slotselected][robotused] = _local6[_local5];
so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][2] = _local6[_local5];
mcuimechastatus.mcatk5.visible = true;
leg2max[2] = 1;
} else {
mcuimechastatus.mcatk5.visible = false;
leg2max[2] = 0;
};
if (so.data.charmechaleg2defreal[slotselected][robotused] >= _local6[_local5]){
so.data.charmechaleg2defreal[slotselected][robotused] = _local6[_local5];
so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][3] = _local6[_local5];
mcuimechastatus.mcdef5.visible = true;
leg2max[3] = 1;
} else {
mcuimechastatus.mcdef5.visible = false;
leg2max[3] = 0;
};
if (so.data.charmechaleg2spdreal[slotselected][robotused] >= _local1[_local5]){
so.data.charmechaleg2spdreal[slotselected][robotused] = _local1[_local5];
so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][4] = _local1[_local5];
mcuimechastatus.mcspd5.visible = true;
leg2max[4] = 1;
} else {
mcuimechastatus.mcspd5.visible = false;
leg2max[4] = 0;
};
};
};
};
};
};
};
};
_local4++;
};
}
public function cektimemonth(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (so.data.money[slotselected] < 0){
var _local6 = so.data.deficitcount;
var _local7 = slotselected;
var _local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
cekgameover();
} else {
so.data.deficitcount[slotselected] = 0;
};
if (so.data.tutorialcomplete[slotselected] == true){
givetptpoint();
so.data.adareport[slotselected] = true;
mcreport.visible = true;
_local1 = 0;
_local2 = 0;
_local3 = 1;
while (_local3 <= 8) {
if (so.data.mechanic[slotselected][_local3].exist == true){
_local2++;
_local1 = (_local1 + so.data.mechanic[slotselected][_local3].wages);
};
_local3++;
};
so.data.adareportjumstaff[slotselected] = _local2;
so.data.adareportstaff[slotselected] = _local1;
so.data.adareportrider[slotselected] = so.data.raiderwages[slotselected];
_local4 = 0;
_local3 = 1;
while (_local3 <= 8) {
if (so.data.mechanic[slotselected][_local3].exist == true){
_local4 = (_local4 + so.data.mechanic[slotselected][_local3].wages);
};
_local3++;
};
_local4 = (_local4 + so.data.raiderwages[slotselected]);
ubahsebanyakinimoney(_local4, "damage");
};
so.data.mechanicbuybool[slotselected] = false;
so.data.raiderbuybool[slotselected] = false;
so.data.weeke[slotselected] = 1;
_local6 = so.data.monthe;
_local7 = slotselected;
_local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
if (so.data.monthe[slotselected] > 12){
so.data.monthe[slotselected] = 1;
_local6 = so.data.yeare;
_local7 = slotselected;
_local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
if (mcui4.mcyear.currentFrame == mcui4.mcyear.totalFrames){
_local5 = mcui4.mcmonth.mc2.txt1.text;
mcui4.mcyear.gotoAndStop(1);
mcui4.mcyear.mc1.txt1.text = _local5;
mcui4.mcyear.mc2.txt1.text = so.data.yeare[slotselected];
mcui4.mcyear.gotoAndPlay(2);
} else {
mcui4.mcyear.mc2.txt1.text = so.data.yeare[slotselected];
mcui4.mcyear.gotoAndPlay(2);
};
};
if (mcui4.mcmonth.currentFrame == mcui4.mcmonth.totalFrames){
_local5 = mcui4.mcmonth.mc2.txt1.text;
mcui4.mcmonth.gotoAndStop(1);
mcui4.mcmonth.mc1.txt1.text = _local5;
mcui4.mcmonth.mc2.txt1.text = so.data.monthe[slotselected];
mcui4.mcmonth.gotoAndPlay(2);
} else {
mcui4.mcmonth.mc2.txt1.text = so.data.monthe[slotselected];
mcui4.mcmonth.gotoAndPlay(2);
};
}
public function tentuinskillmusupakemana(){
trace(("LENGTH : " + enemyskill));
trace(("LENGTH PARTS : " + enemyskilltipeparts));
enemyrandskill = randRange(0, (enemyskill.length - 1));
trace(("dapete : " + enemyskilltipeparts[enemyrandskill]));
if (enemyskilltipeparts[enemyrandskill] == 1){
cekcost(headskillnumba[itemsummary[so.data.grade[slotselected]][musuhtipe][0]][0], "enemy");
} else {
if (enemyskilltipeparts[enemyrandskill] == 2){
cekcost(armskillnumba[itemsummary[so.data.grade[slotselected]][musuhtipe][1]][enemyskillno[enemyrandskill]], "enemy");
};
};
}
public function loadtrainattack(){
cekdeadtarget = 0;
buildingused = mcmap.mcbuild2;
mechaused = buildingused.mcmecha1;
buildingused.mc1.gotoAndStop(so.data.trainattacklevel[slotselected]);
mechaused.visible = true;
mechaused.gotoAndPlay("backidle");
mechaused.addEventListener(Event.ENTER_FRAME, mechaloadstandart);
mcspeedtimelimits.visible = true;
mcspeedtimelimits.txt1.text = trainattacktime[so.data.trainattacklevel[slotselected]];
loadtutorattack();
}
public function loadautoattack(){
var _local1:*;
var _local2:ColorTransform;
var _local3:*;
_local1 = 0;
while (_local1 < autoattackimage.length) {
autoattackimage[_local1].visible = true;
_local2 = new ColorTransform();
autoattackimage[_local1].transform.colorTransform = _local2;
trace((" isi tipe : " + autoattackimage[_local1].tipeku));
autoattackimage[_local1].txt1.text = namaaseli[autoattackimage[_local1].tipeku];
urutanattack[(_local1 + 1)] = autoattackimage[_local1].tipeku;
_local3 = getChildByName(("mchit" + int((_local1 + 1))));
_local3.visible = true;
trace("BERSIIN COLO TRANSFORM");
_local1++;
};
}
public function buwatjedaer(){
jedaer = jedaertemp;
stage.addEventListener(Event.ENTER_FRAME, jedaertime);
}
public function loadsalary(){
var _local1:*;
var _local2:*;
var _local3:*;
mcsalarysummary.visible = true;
_local1 = 0;
_local2 = 0;
_local3 = 1;
while (_local3 <= 8) {
if (so.data.mechanic[slotselected][_local3].exist == true){
_local2++;
_local1 = (_local1 + so.data.mechanic[slotselected][_local3].wages);
};
_local3++;
};
mcsalarysummary.mc1.txt3.text = (("Mechanic salary (" + _local2) + ") ");
mcsalarysummary.mc1.txt4.text = (_local1 + "G");
mcsalarysummary.mc1.txt1.text = "Rider salary";
mcsalarysummary.mc1.txt2.text = (so.data.raiderwages[slotselected] + "G");
mcsalarysummary.mc1.txt5.text = (int((_local1 + so.data.raiderwages[slotselected])) + "G");
if (so.data.adareport[slotselected] == true){
so.data.adareport[slotselected] = false;
mcreport.visible = false;
mcsalarysummary.mc1.txt3.text = (("Mechanic salary (" + so.data.adareportjumstaff[slotselected]) + ") ");
mcsalarysummary.mc1.txt4.text = (so.data.adareportstaff[slotselected] + "G");
mcsalarysummary.mc1.txt1.text = "Rider salary";
mcsalarysummary.mc1.txt2.text = (so.data.adareportrider[slotselected] + "G");
mcsalarysummary.mc1.txt5.text = (int((so.data.adareportstaff[slotselected] + so.data.adareportrider[slotselected])) + "G");
};
}
public function textingtext(_arg1:Event):void{
var _local2:*;
if (textingphase == 1){
mcdialogbox.gotoAndPlay(2);
mcdialogbox.txt1.text = "";
textingphase++;
} else {
if (textingphase == 2){
if (mcdialogbox.mcanna.currentFrame == 1){
mcdialogbox.mcanna.gotoAndPlay(2);
};
textingreload--;
if (textingreload <= 0){
textingtextindex = objtotext[textingstep].length;
if (textingtextindex <= objtotext[textingstep].length){
mcdialogbox.txt1.text = "";
textingreload = textingreloadtemp;
_local2 = 0;
while (_local2 < textingtextindex) {
mcdialogbox.txt1.text = (mcdialogbox.txt1.text + objtotext[textingstep].charAt(_local2));
_local2++;
};
textingtextindex++;
} else {
mcdialogbox.mcanna.gotoAndStop(1);
};
};
};
};
}
public function loadtutordefense(){
var _local1:*;
defensesuccess = 0;
defensetime = defensepopputtime[so.data.traindefenselevel[slotselected]];
defensetimetemp = defensepopputtime[so.data.traindefenselevel[slotselected]];
defensequantityball = defensequantity[so.data.traindefenselevel[slotselected]];
defensequantityballtemp = defensequantity[so.data.traindefenselevel[slotselected]];
mcdefensebar.mcblocker1.visible = false;
mcdefensebar.mcblocker2.visible = false;
mcdefensebar.mcblocker3.visible = false;
mcdefensebar.mcblocker4.visible = false;
mcdialogbox.mctechguy.gotoAndStop(1);
mcdialogbox.btnnext2.visible = false;
mcdialogbox.btnskiptutorial.visible = false;
mcdialogbox.btnstart.visible = true;
mcdialogbox.txtjudul.text = "-TRAINING TUTORIAL-";
mcdialogbox.txt1.text = "click the button when they pass right in the circle";
_local1 = mcdialogbox.getChildByName((("mc" + targetmark) + "mark"));
_local1.visible = true;
_local1.gotoAndStop(so.data.traindefenselevel[slotselected]);
if (so.data.traindefenselevel[slotselected] < 3){
mcdialogbox.btnupgrade.visible = true;
} else {
mcdialogbox.btnupgrade.visible = false;
};
mcdialogbox.gotoAndPlay(2);
mcdialogbox.btncancel.visible = true;
mcdialogbox.btnclose.visible = false;
mcdialogbox.btnstart.addEventListener(MouseEvent.CLICK, defensestart);
}
public function debuggeroutputshow(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 192){
if (mcdebugger.visible == false){
mcdebugger.visible = true;
} else {
if (mcdebugger.visible == true){
mcdebugger.visible = false;
};
};
mcdebugger.txt1.text = "";
stage.focus = mcdebugger.txt2;
mcdebugger.mccheck.gotoAndStop(1);
debuggeroutput(("NUM CHILDREN : " + numChildren));
};
if (_arg1.keyCode == 13){
trace(("text isinya ENTER : " + mcdebugger.txt2.text));
if (mcdebugger.txt2.text == "`yongay"){
mcdebugger.visible = false;
tambaimoney(2000);
};
};
trace(("text isinya : " + mcdebugger.txt2.text));
}
public function loadmechadirection(){
var _local1:*;
_local1 = cekspeedbonus(so.data.mechaspd[slotselected][robotused]);
trace(("HASIL KALI : " + _local1));
if ((((mechaused.direction == "left")) && ((mechaused.face == "back")))){
mechaused.gerakanx = (-(standartspeedx) + (_local1 * -(standartspeedx)));
mechaused.gerakany = (-(standartspeedy) + (_local1 * -(standartspeedy)));
} else {
if ((((mechaused.direction == "right")) && ((mechaused.face == "back")))){
mechaused.gerakanx = (standartspeedx + (_local1 * standartspeedx));
mechaused.gerakany = (-(standartspeedy) + (_local1 * -(standartspeedy)));
} else {
if ((((mechaused.direction == "left")) && ((mechaused.face == "front")))){
mechaused.gerakanx = (-(standartspeedx) + (_local1 * -(standartspeedx)));
mechaused.gerakany = (standartspeedy + (_local1 * standartspeedy));
} else {
if ((((mechaused.direction == "right")) && ((mechaused.face == "front")))){
mechaused.gerakanx = (standartspeedx + (_local1 * standartspeedx));
mechaused.gerakany = (standartspeedy + (_local1 * standartspeedy));
};
};
};
};
}
public function backtomainmenu(_arg1:MouseEvent):void{
transisi("main menu");
}
public function cekdefensereduction(_arg1:int, _arg2:int):int{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
trace(("damage masuk : " + _arg2));
_local3 = _arg1;
_local4 = 1000;
_local5 = (_local3 / _local4);
_local6 = 0.5;
_local7 = (_local6 * _local5);
_local7 = (_arg2 * _local7);
trace(("dikurangi defense : " + _local7));
return (_local7);
}
public function tetapkanso2():void{
listtar = ["mchead", "mchand1", "mchand2", "mcleg1", "mcleg2"];
listso = [musuhstatsummary[0], musuhstatsummary[1], musuhstatsummary[2], musuhstatsummary[3], musuhstatsummary[4]];
listtxt = ["mctxthead", "mctxthand1", "mctxthand2", "mctxtleg1", "mctxtleg2"];
listparts = listarraydipakebuwatcek2;
trace(("MUSU STAT SUMMARY : " + listso));
}
public function tambaimoney(_arg1:int){
so.data.money[slotselected] = (so.data.money[slotselected] + _arg1);
mcui.mc1.txtmoney.text = (so.data.money[slotselected] + "G");
if (so.data.money[slotselected] < 0){
mcui.mc1.txtmoney.textColor = 0xFF0000;
} else {
if (so.data.money[slotselected] > 0){
mcui.mc1.txtmoney.textColor = 0xCC00;
};
};
mcmoneyadded.mcpoingained.gotoAndStop("heal");
mcmoneyadded.mcpoingained.mc1.txt1.text = (_arg1 + "G");
mcmoneyadded.gotoAndPlay(2);
}
public function loadseraprize(){
var i:*;
var obj:*;
var seraprizeclick:Function;
var seraprizeonover:Function;
var seraprizeonout:Function;
if (so.data.likelg[slotselected] == true){
mcseraprize.mcbutt2.gotoAndStop(2);
mcseraprize.mctext2.gotoAndStop(2);
};
if (so.data.likeab[slotselected] == true){
mcseraprize.mcbutt1.gotoAndStop(2);
mcseraprize.mctext1.gotoAndStop(2);
};
i = 1;
while (i <= 2) {
seraprizeclick = function (_arg1:MouseEvent):void{
var _local2:*;
var _local3:URLRequest;
_local2 = _arg1.target.name;
_local2 = _local2.charAt((_local2.length - 1));
if (_local2 == 1){
if (so.data.likeab[slotselected] == false){
so.data.likeab[slotselected] = true;
tambaimoney(500);
};
_local3 = new URLRequest("https://www.facebook.com/pages/Arcadebomb/117601914933248");
navigateToURL(_local3);
} else {
if (_local2 == 2){
if (so.data.likelg[slotselected] == false){
so.data.likelg[slotselected] = true;
tambaimoney(500);
};
_local3 = new URLRequest("https://www.facebook.com/Littlegiantworld");
navigateToURL(_local3);
};
};
loadseraprize();
};
seraprizeonover = function (_arg1:MouseEvent):void{
var _local2:ColorTransform;
_local2 = new ColorTransform();
_local2.redOffset = 127;
_local2.greenOffset = 127;
_local2.blueOffset = 127;
_arg1.currentTarget.transform.colorTransform = _local2;
_arg1.currentTarget.gotoAndStop(2);
};
seraprizeonout = function (_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = new ColorTransform();
_arg1.currentTarget.transform.colorTransform = _local2;
_local3 = _arg1.currentTarget.name;
_local3 = _local3.charAt((_local3.length - 1));
trace(("namaku : " + _local3));
if (_local3 == 1){
trace(so.data.likeab[slotselected]);
if (so.data.likeab[slotselected] == false){
_arg1.currentTarget.gotoAndStop(1);
};
} else {
if (_local3 == 2){
trace(so.data.likelg[slotselected]);
if (so.data.likelg[slotselected] == false){
_arg1.currentTarget.gotoAndStop(1);
};
};
};
};
obj = mcseraprize.getChildByName(("mcbutt" + i));
obj.buttonMode = true;
obj.buttonMode = true;
obj.removeEventListener(MouseEvent.CLICK, seraprizeclick);
obj.removeEventListener(MouseEvent.MOUSE_OVER, seraprizeonover);
obj.removeEventListener(MouseEvent.MOUSE_OUT, seraprizeonout);
obj.addEventListener(MouseEvent.CLICK, seraprizeclick);
obj.addEventListener(MouseEvent.MOUSE_OVER, seraprizeonover);
obj.addEventListener(MouseEvent.MOUSE_OUT, seraprizeonout);
i = (i + 1);
};
}
public function inventorysell(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
trace("ini lgo diklik sell");
_local2 = 0;
while (_local2 < shopitem.length) {
if (shopitem[_local2] != null){
removeChild(shopitem[_local2]);
shopitem[_local2] = null;
};
_local2++;
};
so.data.sold++;
tambaimoney(shoppricenow);
_local3 = [undefined, so.data.charmechahead[slotselected][robotused], so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused], so.data.charmechaleg1[slotselected][robotused], so.data.charmechaleg2[slotselected][robotused]];
tetapkanstatusequipment();
if (indexitem == 1){
trace("Yg dijuwal chip");
trace(("dipotong mulae : " + lengthiteminventoryclick));
trace(("Asal : " + so.data.equipment[slotselected][1]));
so.data.equipment[slotselected][1].splice(lengthiteminventoryclick, 1);
so.data.equipmentstatus[slotselected][1].splice(lengthiteminventoryclick, 1);
so.data.equipmenthp[slotselected][1].splice(lengthiteminventoryclick, 1);
trace(("Jd : " + so.data.equipment[slotselected][1]));
if (lengthiteminventoryclick < so.data.chipequipindex[slotselected]){
var _local4 = so.data.chipequipindex;
var _local5 = slotselected;
var _local6 = (_local4[_local5] - 1);
_local4[_local5] = _local6;
};
} else {
if (indexitem == 2){
so.data.equipment[slotselected][2].splice(lengthiteminventoryclick, 1);
so.data.equipmentstatus[slotselected][2].splice(lengthiteminventoryclick, 1);
so.data.equipmenthp[slotselected][2].splice(lengthiteminventoryclick, 1);
if (lengthiteminventoryclick < so.data.headequipindex[slotselected]){
_local4 = so.data.headequipindex;
_local5 = slotselected;
_local6 = (_local4[_local5] - 1);
_local4[_local5] = _local6;
};
} else {
if (indexitem == 3){
so.data.equipment[slotselected][3].splice(lengthiteminventoryclick, 1);
so.data.equipmentstatus[slotselected][3].splice(lengthiteminventoryclick, 1);
so.data.equipmenthp[slotselected][3].splice(lengthiteminventoryclick, 1);
if (lengthiteminventoryclick < so.data.hand1equipindex[slotselected]){
_local4 = so.data.hand1equipindex;
_local5 = slotselected;
_local6 = (_local4[_local5] - 1);
_local4[_local5] = _local6;
};
if (lengthiteminventoryclick < so.data.hand2equipindex[slotselected]){
_local4 = so.data.hand2equipindex;
_local5 = slotselected;
_local6 = (_local4[_local5] - 1);
_local4[_local5] = _local6;
};
} else {
if (indexitem == 4){
so.data.equipment[slotselected][4].splice(lengthiteminventoryclick, 1);
so.data.equipmentstatus[slotselected][4].splice(lengthiteminventoryclick, 1);
so.data.equipmenthp[slotselected][4].splice(lengthiteminventoryclick, 1);
if (lengthiteminventoryclick < so.data.leg1equipindex[slotselected]){
_local4 = so.data.leg1equipindex;
_local5 = slotselected;
_local6 = (_local4[_local5] - 1);
_local4[_local5] = _local6;
};
if (lengthiteminventoryclick < so.data.leg2equipindex[slotselected]){
_local4 = so.data.leg2equipindex;
_local5 = slotselected;
_local6 = (_local4[_local5] - 1);
_local4[_local5] = _local6;
};
};
};
};
};
bukafungsishop();
}
public function traindefensetarget(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (pausegame == false){
trace(("defense time : " + defensetime));
if (defensequantityballtemp > 0){
defensetime--;
if (defensetime <= 0){
defensequantityballtemp--;
defensetime = defensetimetemp;
_local2 = 1;
while (_local2 <= defensepopoutmultiplier[so.data.traindefenselevel[slotselected]]) {
_local3 = randRange(1, 4);
createballdefense(_local3);
_local2++;
};
};
};
_local2 = 0;
while (_local2 < defenseballimage.length) {
if (defenseballimage[_local2] != null){
defenseballimage[_local2].x = (defenseballimage[_local2].x + defenseballimage[_local2].speed);
if (defenseballimage[_local2].x > 476){
defenseballimage[_local2].alpha = (defenseballimage[_local2].alpha - 0.1);
};
if (defenseballimage[_local2].alpha < 0.1){
removeChild(defenseballimage[_local2]);
defenseballimage[_local2] = null;
defensequantityball--;
if (defensequantityball <= 0){
trace("TRAIN DEFENSE 2 COMPLETED");
cleanuptrainall();
};
};
};
_local2++;
};
_local2 = 1;
while (_local2 <= 4) {
_local4 = mcdefensebar.getChildByName(("mcblocker" + _local2));
if (_local4.visible == true){
_local4.timeshow--;
if (_local4.timeshow < 0){
_local4.visible = false;
};
};
_local2++;
};
};
}
public function cekmechapositiveeffect(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:String){
var _local6:*;
var _local7:*;
_local6 = 0;
while (_local6 < _arg1.length) {
_local7 = randRange(0, 100);
if (_local7 <= _arg2[_local6]){
if (_arg1[_local6] == "block"){
trace(("ya keblock : " + _arg2[_local6]));
damagemasuk = 0;
};
if (_arg1[_local6] == "counter"){
if (_arg5 == "player"){
if (so.data.charmechaheadhp[slotselected][robotused] > 0){
adacounter = true;
trace("aDA COUNTER");
};
} else {
if (_arg5 == "enemy"){
if (musuhstatsummary[0] > 0){
adacounter = true;
};
};
};
};
};
_local6++;
};
}
public function sponsoronover(_arg1:MouseEvent):void{
nosponsor = _arg1.currentTarget.no;
sponsorlogo = (((so.data.grade[slotselected] - 1) * 4) + nosponsor);
sponsortime = (bagiwaktu * nosponsor);
sponsormoney = sponsortextvalue[(((so.data.grade[slotselected] - 1) * 4) + nosponsor)];
stage.addEventListener(Event.ENTER_FRAME, sponsorexpfollowmouse);
}
public function pausegamebacktomainmenu(_arg1:MouseEvent):void{
var _local2:*;
trace("TEKEN BACK TO MAIN MENU");
tournamentbool = false;
cleanup();
if (currentLabel == "battle"){
battleend = true;
cleanupbattle();
_local2 = 0;
while (_local2 < crowdimage.length) {
if (crowdimage[_local2] != null){
removeChild(crowdimage[_local2]);
crowdimage[_local2] = null;
};
_local2++;
};
} else {
clearallwindow();
};
transisi("main menu");
}
public function doincreaseexp(){
exptemp--;
expincreasetime = expincreasetimetemp;
tempraiderexp++;
if (yaklikskipexp == false){
soundbeep.play(0, 1, new SoundTransform(volumemusic));
};
mctrainresult.txtexp.text = ((tempraiderexp + "/") + tempraiderexpmax);
mctrainresult.mcbarexp.mcbarexp.width = ((tempraiderexp / tempraiderexpmax) * 75);
if (tempraiderexp >= tempraiderexpmax){
soundsuccess.play(0, 1, new SoundTransform(volumemusic));
poinshare = (poinshare + 4);
poinsharetemp = poinshare;
mctrainresult.mcraiderlvlup.mcpoingained.mc1.gotoAndStop(1);
mctrainresult.mcraiderlvlup.mcpoingained.mc1.txt1.text = "LEVEL UP";
mctrainresult.mcraiderlvlup.gotoAndPlay(2);
leveltemp++;
mctrainresult.txtlevel.text = ("Lv." + leveltemp);
tempraiderexp = 0;
tempraiderexpmax = (tempraiderexpmax * 2);
mctrainresult.mcbarexp.mcbarexp.width = ((tempraiderexp / tempraiderexpmax) * 75);
mctrainresult.txtexp.text = ((tempraiderexp + "/") + tempraiderexpmax);
};
}
public function cekstattotal(_arg1:int):void{
var _local2:*;
var _local3:*;
var _local4:*;
tetapkanstatusequipment();
_local2 = 0;
while (_local2 < so.data.charmechaeffect[slotselected][_arg1].length) {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "rider"){
tambaihprealmecha(int(((so.data.charmechaeffectnumba[slotselected][_arg1][_local2] / 100) * so.data.raiderhp[slotselected])), _arg1);
tambaiatkrealmecha(int(((so.data.charmechaeffectnumba[slotselected][_arg1][_local2] / 100) * so.data.raideratk[slotselected])), _arg1);
tambaidefrealmecha(int(((so.data.charmechaeffectnumba[slotselected][_arg1][_local2] / 100) * so.data.raiderdef[slotselected])), _arg1);
tambaispdrealmecha(int(((so.data.charmechaeffectnumba[slotselected][_arg1][_local2] / 100) * so.data.raiderspd[slotselected])), _arg1);
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "down"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "hp"){
tambaihpberdasarkanpersentase(so.data.charmechaeffectnumba[slotselected][_arg1][_local2], _arg1);
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "atk"){
tambaiatkberdasarkanpersentase(so.data.charmechaeffectnumba[slotselected][_arg1][_local2], _arg1);
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "def"){
tambaidefberdasarkanpersentase(so.data.charmechaeffectnumba[slotselected][_arg1][_local2], _arg1);
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "spd"){
tambaispdberdasarkanpersentase(so.data.charmechaeffectnumba[slotselected][_arg1][_local2], _arg1);
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "all"){
tambaihpberdasarkanpersentase(so.data.charmechaeffectnumba[slotselected][_arg1][_local2], _arg1);
tambaiatkberdasarkanpersentase(so.data.charmechaeffectnumba[slotselected][_arg1][_local2], _arg1);
tambaidefberdasarkanpersentase(so.data.charmechaeffectnumba[slotselected][_arg1][_local2], _arg1);
tambaispdberdasarkanpersentase(so.data.charmechaeffectnumba[slotselected][_arg1][_local2], _arg1);
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "crit"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "deplete"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "random"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "crit body"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "heal"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "block"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "stun"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "poison"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "counter"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "slow"){
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "crit"){
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
_local2++;
};
kumpulkantambahkanstattotal(_arg1);
_local3 = objarraylistsummary[1][so.data.charmechachip[slotselected][robotused]][so.data.equipmentstatus[slotselected][1][so.data.chipequipindex[slotselected]]];
trace(("1 " + objarraylistsummary[1]));
trace(("2 " + so.data.charmechachip[slotselected][robotused]));
trace(("3 " + so.data.equipmentstatus[slotselected][1][so.data.chipequipindex[slotselected]]));
trace(("a " + _local3));
trace(("b " + raidergradepercent));
_local4 = raidergradepercent[_local3];
trace(("RAIDER MASUKI PERSENTASE SBNYK : " + _local4));
trace(("tambai attack : " + int((so.data.raideratk[slotselected] * _local4))));
so.data.charmechaheadhpreal[slotselected][_arg1] = (so.data.charmechaheadhpreal[slotselected][_arg1] + int((so.data.raiderhp[slotselected] * _local4)));
so.data.charmechaheadatkreal[slotselected][_arg1] = (so.data.charmechaheadatkreal[slotselected][_arg1] + int((so.data.raideratk[slotselected] * _local4)));
so.data.charmechaheaddefreal[slotselected][_arg1] = (so.data.charmechaheaddefreal[slotselected][_arg1] + int((so.data.raiderdef[slotselected] * _local4)));
so.data.charmechaheadspdreal[slotselected][_arg1] = (so.data.charmechaheadspdreal[slotselected][_arg1] + int((so.data.raiderspd[slotselected] * _local4)));
if (so.data.charmechahand1[slotselected][_arg1] != 0){
so.data.charmechahand1hpreal[slotselected][_arg1] = (so.data.charmechahand1hpreal[slotselected][_arg1] + int((so.data.raiderhp[slotselected] * _local4)));
so.data.charmechahand1atkreal[slotselected][_arg1] = (so.data.charmechahand1atkreal[slotselected][_arg1] + int((so.data.raideratk[slotselected] * _local4)));
so.data.charmechahand1defreal[slotselected][_arg1] = (so.data.charmechahand1defreal[slotselected][_arg1] + int((so.data.raiderdef[slotselected] * _local4)));
so.data.charmechahand1spdreal[slotselected][_arg1] = (so.data.charmechahand1spdreal[slotselected][_arg1] + int((so.data.raiderspd[slotselected] * _local4)));
};
if (so.data.charmechahand2[slotselected][_arg1] != 0){
so.data.charmechahand2hpreal[slotselected][_arg1] = (so.data.charmechahand2hpreal[slotselected][_arg1] + int((so.data.raiderhp[slotselected] * _local4)));
so.data.charmechahand2atkreal[slotselected][_arg1] = (so.data.charmechahand2atkreal[slotselected][_arg1] + int((so.data.raideratk[slotselected] * _local4)));
so.data.charmechahand2defreal[slotselected][_arg1] = (so.data.charmechahand2defreal[slotselected][_arg1] + int((so.data.raiderdef[slotselected] * _local4)));
so.data.charmechahand2spdreal[slotselected][_arg1] = (so.data.charmechahand2spdreal[slotselected][_arg1] + int((so.data.raiderspd[slotselected] * _local4)));
};
if (so.data.charmechaleg1[slotselected][_arg1] != 0){
trace(("attacke : " + int((so.data.raideratk[slotselected] * _local4))));
so.data.charmechaleg1hpreal[slotselected][_arg1] = (so.data.charmechaleg1hpreal[slotselected][_arg1] + int((so.data.raiderhp[slotselected] * _local4)));
so.data.charmechaleg1atkreal[slotselected][_arg1] = (so.data.charmechaleg1atkreal[slotselected][_arg1] + int((so.data.raideratk[slotselected] * _local4)));
so.data.charmechaleg1defreal[slotselected][_arg1] = (so.data.charmechaleg1defreal[slotselected][_arg1] + int((so.data.raiderdef[slotselected] * _local4)));
so.data.charmechaleg1spdreal[slotselected][_arg1] = (so.data.charmechaleg1spdreal[slotselected][_arg1] + int((so.data.raiderspd[slotselected] * _local4)));
};
trace("2");
if (so.data.charmechaleg2[slotselected][_arg1] != 0){
trace(("darae : " + so.data.charmechaleg2hpreal[slotselected][_arg1]));
so.data.charmechaleg2hpreal[slotselected][_arg1] = (so.data.charmechaleg2hpreal[slotselected][_arg1] + int((so.data.raiderhp[slotselected] * _local4)));
so.data.charmechaleg2atkreal[slotselected][_arg1] = (so.data.charmechaleg2atkreal[slotselected][_arg1] + int((so.data.raideratk[slotselected] * _local4)));
so.data.charmechaleg2defreal[slotselected][_arg1] = (so.data.charmechaleg2defreal[slotselected][_arg1] + int((so.data.raiderdef[slotselected] * _local4)));
so.data.charmechaleg2spdreal[slotselected][_arg1] = (so.data.charmechaleg2spdreal[slotselected][_arg1] + int((so.data.raiderspd[slotselected] * _local4)));
};
trace(("cek atk head sblm kasi effect : " + so.data.charmechaheadhpreal[slotselected][_arg1]));
kumpulkantambahkanstattotal(_arg1);
trace(("cek hp head stlh kasi effect : " + so.data.charmechaheadhpreal[slotselected][_arg1]));
trace("3");
trace(("cek HP REAL SUMMARY : " + so.data.mechahp[slotselected][_arg1]));
trace(("cek ATK REAL SUMMARY : " + so.data.mechaatk[slotselected][_arg1]));
trace(("cek DEF REAL SUMMARY : " + so.data.mechadef[slotselected][_arg1]));
trace(("cek SPD REAL SUMMARY : " + so.data.mechaspd[slotselected][_arg1]));
}
public function raidershopdown(_arg1:MouseEvent):void{
_arg1.currentTarget.txtname.visible = false;
_arg1.currentTarget.txtlevel.visible = false;
_arg1.currentTarget.txthp.visible = false;
_arg1.currentTarget.txtatk.visible = false;
_arg1.currentTarget.txtdef.visible = false;
_arg1.currentTarget.txtspd.visible = false;
_arg1.currentTarget.txtwages.visible = false;
_arg1.currentTarget.addEventListener(Event.ENTER_FRAME, raidershopfollowmouse);
}
public function trainspeeddash(_arg1:MouseEvent):void{
soundlaser2.play(0, 1, new SoundTransform(volumemusic));
dashbool = true;
buildingused.mcdashdisabled.visible = true;
}
public function shopitemover(_arg1:MouseEvent):void{
_arg1.currentTarget.addEventListener(MouseEvent.MOUSE_OUT, shopitemout);
if (_arg1.currentTarget.txt1.textColor != "0x0000"){
_arg1.currentTarget.gotoAndStop(2);
_arg1.currentTarget.txt1.textColor = "0xFFFF";
};
}
public function loadautorepair(){
var _local1:*;
var _local2:*;
mcindicatorhealth.visible = false;
mecharepairbool = true;
btnendday.visible = false;
txtrepairpercent.visible = false;
btnsalary.visible = false;
mcreport.visible = false;
_local1 = 1;
while (_local1 <= 8) {
_local2 = buildingused.getChildByName(("mcstaff" + _local1));
if (_local2 != null){
if (so.data.mechanic[slotselected][_local1].team == robotused){
_local2.visible = true;
_local2.gotoAndStop(so.data.mechanic[slotselected][_local1].head);
} else {
if (so.data.mechanic[slotselected][_local1].team == robotused){
_local2.visible = false;
};
};
};
_local2 = buildingused.getChildByName(("mcstaffidle" + _local1));
if (_local2 != null){
_local2.mcclash.visible = false;
_local2.visible = false;
};
_local1++;
};
loadingtimetoday = 0;
mcui.gotoAndPlay("down");
mcui2.gotoAndPlay("down");
mcui3.gotoAndPlay("down");
mcui5.gotoAndPlay("down");
mechaused.mcprogress.visible = true;
mechaused.mcprogress.txtday.text = (so.data.charmecharepairtimetemp[slotselected][robotused] - so.data.charmecharepairtime[slotselected][robotused]);
if (so.data.tutorialcomplete[slotselected] == false){
mechaused.mcprogress.btnstop.visible = false;
} else {
mechaused.mcprogress.btnstop.visible = true;
};
mechaused.mcprogress.btnstop.removeEventListener(MouseEvent.CLICK, repairstop);
mechaused.mcprogress.btnstop.addEventListener(MouseEvent.CLICK, repairstop);
so.data.onautorepairbool[slotselected][robotused] = true;
mcdialogbox.visible = false;
stage.addEventListener(Event.ENTER_FRAME, repairloadingtime);
}
public function createenddaytext(){
objtotext = enddaytext;
createtexting();
}
public function createpenontonduduk(){
var _local1:*;
if (soundpenontontime < 0){
soundboo.play(0, 1, new SoundTransform(volumemusic));
soundpenontontime = soundpenontontimetemp;
};
_local1 = 0;
while (_local1 < crowdimage.length) {
crowdimage[_local1].gotoAndStop(("sit" + crowdimage[_local1].facee));
_local1++;
};
}
public function cekgametimesecond(){
var _local1:*;
cekachievement();
if (so.data.mechahptemp[slotselected][robotused] < (so.data.mechahp[slotselected][robotused] / 5)){
mcui2.mc1.mcndabole2.visible = true;
mcui2.mc1.mcndabole3.visible = true;
mcchampionship.btnenterno.visible = true;
} else {
mcui2.mc1.mcndabole2.visible = false;
mcui2.mc1.mcndabole3.visible = false;
mcchampionship.btnenterno.visible = false;
};
if (tournamentlose == true){
mcui2.mc1.mcndabole3.visible = true;
} else {
mcui2.mc1.mcndabole3.visible = false;
};
if (so.data.money[slotselected] > 0){
mcui.mc1.txtmoney.textColor = 0xCC00;
};
j = 1;
while (j <= 6) {
_local1 = mcui2.mc1.getChildByName(("mcnew" + j));
if (so.data.marker[slotselected][j] == 1){
_local1.visible = true;
} else {
_local1.visible = false;
};
j++;
};
mcui2.mc1.mcexpired.mouseEnabled = false;
mcui2.mc1.mcexpired.mouseChildren = false;
if ((((so.data.sponsortimetemp[slotselected] == -1)) && ((so.data.tutorialcomplete[slotselected] == true)))){
mcui2.mc1.mcexpired.visible = true;
} else {
mcui2.mc1.mcexpired.visible = false;
};
mcui.mc1.txtmoney.text = (so.data.money[slotselected] + "G");
if (so.data.tp[slotselected] > 99){
so.data.tp[slotselected] = 99;
};
mcui.mc1.txttp.text = so.data.tp[slotselected];
if (so.data.sponsortimetemp[slotselected] != -1){
mcui2.mc1.btnsponsorndabole.visible = true;
var _local2 = so.data.sponsortime;
var _local3 = slotselected;
var _local4 = (_local2[_local3] - 1);
_local2[_local3] = _local4;
if (so.data.sponsortime[slotselected] < 0){
mcui2.mc1.btnsponsorndabole.visible = false;
so.data.sponsorlogo[slotselected] = 0;
mcmap.mcbuild1.mcsponsor.visible = false;
so.data.sponsortimetemp[slotselected] = -1;
};
};
loadchampionshipbar();
}
public function shopitemout(_arg1:MouseEvent):void{
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_OUT, shopitemout);
if (_arg1.currentTarget.equippedbool == true){
_arg1.currentTarget.gotoAndStop(3);
_arg1.currentTarget.txt1.textColor = "0x0000";
} else {
if (_arg1.currentTarget.txt1.textColor != "0x0000"){
_arg1.currentTarget.gotoAndStop(1);
_arg1.currentTarget.txt1.textColor = "0xFFFFFF";
};
};
}
public function createtutortext(){
objtotext = tutortext;
createtexting();
}
public function tetapkanstatusequipment(){
so.data.charmechaheadhpreal2[slotselected][robotused] = so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][1];
so.data.charmechaheadhpreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][1];
so.data.charmechaheadatkreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][2];
so.data.charmechaheaddefreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][3];
so.data.charmechaheadspdreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][4];
trace(("HP REAL : " + so.data.charmechaheadhpreal[slotselected][robotused]));
if (so.data.charmechahand1[slotselected][robotused] != 0){
so.data.charmechahand1hpreal2[slotselected][robotused] = so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][1];
so.data.charmechahand1hpreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][1];
so.data.charmechahand1atkreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][2];
so.data.charmechahand1defreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][3];
so.data.charmechahand1spdreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][4];
};
if (so.data.charmechahand2[slotselected][robotused] != 0){
so.data.charmechahand2hpreal2[slotselected][robotused] = so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][1];
so.data.charmechahand2hpreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][1];
so.data.charmechahand2atkreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][2];
so.data.charmechahand2defreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][3];
so.data.charmechahand2spdreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][4];
};
if (so.data.charmechaleg1[slotselected][robotused] != 0){
so.data.charmechaleg1hpreal2[slotselected][robotused] = so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][1];
so.data.charmechaleg1hpreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][1];
so.data.charmechaleg1atkreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][2];
so.data.charmechaleg1defreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][3];
so.data.charmechaleg1spdreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][4];
trace(("LEG STANDARTIN 1 : " + so.data.charmechaleg1atk[slotselected][robotused]));
};
if (so.data.charmechaleg2[slotselected][robotused] != 0){
so.data.charmechaleg2hpreal2[slotselected][robotused] = so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][1];
so.data.charmechaleg2hpreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][1];
so.data.charmechaleg2atkreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][2];
so.data.charmechaleg2defreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][3];
so.data.charmechaleg2spdreal[slotselected][robotused] = so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][4];
trace(("LEG STANDARTIN 2 : " + so.data.charmechaleg2atk[slotselected][robotused]));
};
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
public function transitionwait(_arg1:Event):void{
if (mctransition.currentLabel == "clash"){
soundclash.play(0, 1, new SoundTransform(volumemusic));
};
if (mctransition.currentLabel == "done"){
gotoAndStop(tujuanframe);
mctransition.gotoAndPlay("open");
stage.removeEventListener(Event.ENTER_FRAME, transitionwait);
tujuanframe = "";
};
}
public function repairautoclick(_arg1:MouseEvent):void{
if ((((so.data.tutorialcomplete[slotselected] == true)) || ((so.data.tutorialstep[slotselected] == 9)))){
if (so.data.tutorialstep[slotselected] == 9){
so.data.tutorialstep[slotselected] = 10;
};
loadautorepair();
};
}
public function repairloadingtime(_arg1:Event):void{
var _local2:*;
if (mcturnamenlastchance.visible == false){
if (soundchannelrepair == null){
soundchannelrepair = soundrepair.play(0, 999, new SoundTransform(volumemusic));
};
_local2 = (98 / so.data.charmecharepairtimetemp[slotselected][robotused]);
loadingtimetoday++;
trace(("pjg standart : " + (so.data.charmecharepairtime[slotselected][robotused] * _local2)));
trace(("tamba progress : " + ((loadingtimetoday / loadingtimetodaytemp) * _local2)));
mechaused.mcprogress.mcbar.width = ((so.data.charmecharepairtime[slotselected][robotused] * _local2) + ((loadingtimetoday / loadingtimetodaytemp) * _local2));
trace((((" 1 : " + loadingtimetoday) + " ") + loadingtimetodaytemp));
if (loadingtimetoday >= loadingtimetodaytemp){
soundchannelrepair.stop();
soundchannelrepair = null;
createendday();
var _local3 = so.data.charmecharepairtime[slotselected];
var _local4 = robotused;
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
trace((((" 2 : " + so.data.charmecharepairtime[slotselected][robotused]) + " ") + so.data.charmecharepairtimetemp[slotselected][robotused]));
if (so.data.charmecharepairtime[slotselected][robotused] >= so.data.charmecharepairtimetemp[slotselected][robotused]){
so.data.onautorepairbool[slotselected][robotused] = false;
stage.removeEventListener(Event.ENTER_FRAME, repairloadingtime);
};
};
};
}
public function raidershopup(_arg1:MouseEvent):void{
if ((((_arg1.currentTarget.mcraider.hitTestObject(mcridershop.mcraider1) == true)) && (((_arg1.currentTarget.wages / 2) <= so.data.money[slotselected])))){
ubahsebanyakinimoney((_arg1.currentTarget.wages / 2), "damage");
so.data.raiderbuyarray[slotselected][_arg1.currentTarget.noraiderbuyarray].namee = "none";
so.data.raider[slotselected] = _arg1.currentTarget.head;
so.data.raiderwages[slotselected] = _arg1.currentTarget.wages;
so.data.raidername[slotselected] = _arg1.currentTarget.namee;
so.data.raiderlevel[slotselected] = _arg1.currentTarget.levele;
so.data.raiderexp[slotselected] = 0;
so.data.raiderexpmax[slotselected] = (_arg1.currentTarget.levele * 10);
so.data.raiderhp[slotselected] = _arg1.currentTarget.hp;
so.data.raideratk[slotselected] = _arg1.currentTarget.atk;
so.data.raiderdef[slotselected] = _arg1.currentTarget.def;
so.data.raiderspd[slotselected] = _arg1.currentTarget.spd;
buildingused.mcraider1.visible = true;
buildingused.mcraider1.gotoAndStop(so.data.raider[slotselected]);
};
if ((((_arg1.currentTarget.mcraider.hitTestObject(mcridershop.mcraider1) == true)) && (((_arg1.currentTarget.wages / 2) > so.data.money[slotselected])))){
mcneedchipsetgrade.gotoAndPlay(2);
mcneedchipsetgrade.x = mouseX;
mcneedchipsetgrade.y = mouseY;
mcneedchipsetgrade.mc1.txt1.text = "Not enough Money";
};
_arg1.currentTarget.txtname.visible = true;
_arg1.currentTarget.txtlevel.visible = true;
_arg1.currentTarget.txthp.visible = true;
_arg1.currentTarget.txtatk.visible = true;
_arg1.currentTarget.txtdef.visible = true;
_arg1.currentTarget.txtspd.visible = true;
_arg1.currentTarget.txtwages.visible = true;
_arg1.currentTarget.x = _arg1.currentTarget.statx;
_arg1.currentTarget.y = _arg1.currentTarget.staty;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, raidershopfollowmouse);
loadridershop();
}
public function cleanupbattle(){
var _local1:*;
rightclickbugerrorfixer();
mcmousebattle.visible = false;
trace("CLEANUP BATTLE");
stage.removeEventListener(Event.ENTER_FRAME, mendaltahap);
stage.removeEventListener(Event.ENTER_FRAME, battlewaitframe);
stage.removeEventListener(Event.ENTER_FRAME, skillonoverfollowmouse);
_local1 = 0;
while (_local1 < effectbattle.length) {
if (effectbattle[_local1] != null){
effectbattle[_local1].removeEventListener(Event.ENTER_FRAME, effectbattleremove);
removeChild(effectbattle[_local1]);
effectbattle[_local1] = null;
};
_local1++;
};
trace("1");
_local1 = 0;
while (_local1 < effectimage.length) {
if (effectimage[_local1] != null){
effectimage[_local1].removeEventListener(Event.ENTER_FRAME, effectremover);
removeChild(effectimage[_local1]);
effectimage[_local1] = null;
};
_local1++;
};
trace("2");
stage.removeEventListener(Event.ENTER_FRAME, battlemainframe);
stage.removeEventListener(Event.ENTER_FRAME, overtarget);
stage.removeEventListener(MouseEvent.CLICK, targetpartsclick);
stage.removeEventListener(Event.ENTER_FRAME, battleanimation);
enemymecha.removeEventListener(Event.ENTER_FRAME, enemymechaloadstandart);
mechaused.removeEventListener(Event.ENTER_FRAME, mechaloadstandart);
trace("3");
_local1 = 0;
while (_local1 < autoattackimage.length) {
autoattackimage[_local1].removeEventListener(MouseEvent.MOUSE_DOWN, autoattackpartsdown);
autoattackimage[_local1].removeEventListener(MouseEvent.MOUSE_UP, autoattackpartsup);
removeChild(autoattackimage[_local1]);
autoattackimage[_local1] = null;
_local1++;
};
trace("4");
trace("remop mecha load standart");
}
public function bukafungsishop(){
var _local1:*;
var _local2:*;
so.data.marker[slotselected][3] = 0;
clearallwindow();
mcshopexplanation.gotoAndStop(1);
mcshop.mcbtn1.gotoAndStop(3);
if (so.data.tutorialstep[slotselected] == 11){
createtutortext10();
indexitem = 3;
_local1 = 1;
while (_local1 <= 4) {
_local2 = mcshop.getChildByName(("mcbtn" + _local1));
_local2.gotoAndStop(1);
_local1++;
};
mcshop.mcbtn3.gotoAndStop(3);
} else {
indexitem = 1;
};
if (indexitem >= 3){
mcshopexplanation.gotoAndStop(2);
};
loadshop();
}
public function skillonover(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
texttulis = new Array();
textdamage = new Array();
textdamagepercent = new Array();
mcskillexplanation.visible = true;
stage.addEventListener(Event.ENTER_FRAME, skillonoverfollowmouse);
_arg1.currentTarget.addEventListener(MouseEvent.MOUSE_OUT, skillonout);
cekstatnow(robotused);
if (_arg1.currentTarget.tipeparts == 1){
cekheaddlldll(so.data.charmechahead[slotselected][robotused], so.data.mechaatktemp[slotselected][robotused]);
mcskillexplanation.mc1.mctipe.gotoAndStop(headclass[so.data.charmechahead[slotselected][robotused]]);
tipekudiover = headclass[so.data.charmechahead[slotselected][robotused]];
mcskillexplanation.mc1.txtjudul.text = "";
mcskillexplanation.mc1.txt1.text = "";
mcskillexplanation.mc1.txtjudul.text = (("-" + headskill[_arg1.currentTarget.frameparts]) + "-");
mcskillexplanation.mc1.txt1.text = (mcskillexplanation.mc1.txt1.text + (("+Damage : " + (textdamage[0] * damagemultiplier)) + "\n"));
_local2 = 0;
while (_local2 < linkageskillname.length) {
if (headskill[_arg1.currentTarget.frameparts] == linkageskillname[_local2]){
mcskillexplanation.mc1.txt2.text = ("Type : " + linkagetype[_local2]);
mcskillexplanation.mc1.txt3.text = ("Energy Cost : " + linkagecost[_local2]);
break;
};
_local2++;
};
if (currentLabel == "battle"){
mcskillexplanation2.mc1.txtjudul.text = "";
mcskillexplanation2.mc1.txt1.text = "";
mcskillexplanation2.mc1.txtjudul.text = (("-" + headskill[_arg1.currentTarget.frameparts]) + "-");
mcskillexplanation2.mc1.txt1.text = (mcskillexplanation2.mc1.txt1.text + (("+Damage : " + (textdamage[0] * damagemultiplier)) + "\n"));
mcskillexplanation2.mc1.txt2.text = ("Type : " + linkagetype[_local2]);
mcskillexplanation2.mc1.txt3.text = ("Energy Cost : " + linkagecost[_local2]);
mcskillexplanation2.mc1.mctipe.gotoAndStop(mcskillexplanation.mc1.mctipe.currentFrame);
};
} else {
if (_arg1.currentTarget.tipeparts == 2){
if (_arg1.currentTarget.tipepartske != 0){
_local3 = [undefined, so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused]];
cekhanddlldll(_local3[_arg1.currentTarget.tipepartske], _arg1.currentTarget.skillno, so.data.mechaatktemp[slotselected][robotused]);
mcskillexplanation.mc1.mctipe.gotoAndStop(armclass[_local3[_arg1.currentTarget.tipepartske]]);
tipekudiover = armclass[_local3[_arg1.currentTarget.tipepartske]];
} else {
if (_arg1.currentTarget.tipepartske == 0){
cekhanddlldll(_arg1.currentTarget.frameparts, _arg1.currentTarget.skillno, so.data.mechaatktemp[slotselected][robotused]);
mcskillexplanation.mc1.mctipe.gotoAndStop(armclass[_arg1.currentTarget.frameparts]);
tipekudiover = armclass[_arg1.currentTarget.frameparts];
};
};
mcskillexplanation.mc1.txtjudul.text = "";
mcskillexplanation.mc1.txt1.text = "";
mcskillexplanation.mc1.txtjudul.text = (("-" + armskill[_arg1.currentTarget.frameparts][_arg1.currentTarget.skillno]) + "-");
mcskillexplanation.mc1.txt1.text = (mcskillexplanation.mc1.txt1.text + (("+Damage : " + (textdamage[0] * damagemultiplier)) + "\n"));
_local2 = 0;
while (_local2 < linkageskillname.length) {
if (armskill[_arg1.currentTarget.frameparts][_arg1.currentTarget.skillno] == linkageskillname[_local2]){
mcskillexplanation.mc1.txt2.text = ("Type : " + linkagetype[_local2]);
mcskillexplanation.mc1.txt3.text = ("Energy Cost : " + linkagecost[_local2]);
break;
};
_local2++;
};
if (currentLabel == "battle"){
mcskillexplanation2.mc1.txtjudul.text = "";
mcskillexplanation2.mc1.txt1.text = "";
mcskillexplanation2.mc1.txtjudul.text = (("-" + armskill[_arg1.currentTarget.frameparts][_arg1.currentTarget.skillno]) + "-");
mcskillexplanation2.mc1.txt1.text = (mcskillexplanation2.mc1.txt1.text + (("+Damage : " + (textdamage[0] * damagemultiplier)) + "\n"));
mcskillexplanation2.mc1.txt2.text = ("Type : " + linkagetype[_local2]);
mcskillexplanation2.mc1.txt3.text = ("Energy Cost : " + linkagecost[_local2]);
mcskillexplanation2.mc1.mctipe.gotoAndStop(mcskillexplanation.mc1.mctipe.currentFrame);
};
_local2 = 0;
while (_local2 < texttulis.length) {
_local2++;
};
};
};
}
public function tambaispdrealmecha(_arg1:int, _arg2:int){
so.data.charmechaheadspdreal[slotselected][_arg2] = (so.data.charmechaheadspdreal[slotselected][_arg2] + _arg1);
if (so.data.charmechahand1[slotselected][_arg2] != 0){
so.data.charmechahand1spdreal[slotselected][_arg2] = (so.data.charmechahand1spdreal[slotselected][_arg2] + _arg1);
};
if (so.data.charmechahand2[slotselected][_arg2] != 0){
so.data.charmechahand2spdreal[slotselected][_arg2] = (so.data.charmechahand2spdreal[slotselected][_arg2] + _arg1);
};
so.data.charmechaleg1spdreal[slotselected][_arg2] = (so.data.charmechaleg1spdreal[slotselected][_arg2] + _arg1);
so.data.charmechaleg2spdreal[slotselected][_arg2] = (so.data.charmechaleg2spdreal[slotselected][_arg2] + _arg1);
}
public function cekobjkenadamage(_arg1:Object):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
adacrit = 0;
_local2 = [undefined, "mchead", "mchand1", "mchand2", "mcleg1", "mcleg2"];
trace(("PARTS YG DISERANG : " + partsyangdiserang));
_local3 = _arg1.getChildByName(_local2[partsyangdiserang]);
_local3.gotoAndPlay(2);
if (_arg1.name == "mcmecha2"){
_local4 = mcuibattle.mcenemyindicator;
} else {
if (_arg1.name == "mcmecha1"){
_local4 = mcuibattle.mcplayerindicator;
};
};
_local5 = _local4.getChildByName(("mcradar" + partsyangdiserang));
_local5.gotoAndPlay(2);
_local6 = [musuhstatsummary[0], musuhstatsummary[1], musuhstatsummary[2], musuhstatsummary[3], musuhstatsummary[4]];
_local7 = false;
if (adanegativebuff != ""){
_local7 = false;
_local9 = randRange(0, 100);
_local9 = negativebuffchance;
if (_local9 <= negativebuffchance){
_local7 = true;
};
};
trace(("cek nama mecha yang diserang : " + _arg1.name));
if (_arg1.name == "mcmecha2"){
mcuibattle.mcenemybar.mcraider1.gotoAndPlay(("effect" + randRange(1, 2)));
trace(("cek DM 0 : " + damagemasuk));
if (skillmanual == true){
trace("cek ada negatip buff ndaaa");
cekmechapositiveeffect(enemymechapassive, enemymechapassivenumba, so.data.charmechaeffect[slotselected][robotused], so.data.charmechaeffectnumba[slotselected][robotused], "enemy");
cekmechanegativeeffect(so.data.charmechaeffect[slotselected][robotused], so.data.charmechaeffectnumba[slotselected][robotused], enemymechapassive, enemymechapassivenumba, "player");
} else {
adacounter = 0;
adaconvert = 0;
adacrit = 0;
adaheal = 0;
adapoison = 0;
};
skillmanual = false;
trace(("cek DM : " + damagemasuk));
trace(("kenabuff : " + _local7));
if (_local7 == true){
if (adanegativebuff != "all"){
trace("ENEMY KENA NEGATIVE BUFF");
isiinibuff(adanegativebuff, enemymechabuffnegativeparts, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes);
adanegativebuff = "";
} else {
if (adanegativebuff == "all"){
adanegativebuff = "atkdown";
isiinibuff("atkdown", enemymechabuffnegativeparts, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes);
adanegativebuff = "defdown";
isiinibuff("defdown", enemymechabuffnegativeparts, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes);
adanegativebuff = "spddown";
isiinibuff("spddown", enemymechabuffnegativeparts, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes);
adanegativebuff = "poison";
isiinibuff("poison", enemymechabuffnegativeparts, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes);
};
};
};
trace(("cek DM 2: " + damagemasuk));
_local10 = cekdefensereduction(musuhdeftemp, damagemasuk);
damagemasuk = (damagemasuk - _local10);
_local11 = false;
_local12 = [undefined, 2, 3, 3, 4, 4];
_local13 = objarraylistsummaryeffect[_local12[partsyangdiserang]][itemsummary[so.data.grade[slotselected]][randenemy][(partsyangdiserang - 1)]][1][0];
trace(("darah max : " + _local13));
_local14 = (objarraylistsummaryeffect[_local12[partsyangdiserang]][itemsummary[so.data.grade[slotselected]][randenemy][(partsyangdiserang - 1)]][1][0] * musuhstatsummary[(partsyangdiserang - 1)]);
trace(("darah skrg : " + _local14));
_local15 = (_local14 - (damagemasuk + adacrit));
if (_local15 <= 0){
if ((partsyangdiserang - 1) == 0){
musuhstatsummary[0] = 0;
musuhstatsummary[1] = 0;
musuhstatsummary[2] = 0;
musuhstatsummary[3] = 0;
musuhstatsummary[4] = 0;
};
sounddestroyedpart.play(0, 1, new SoundTransform(volumemusic));
_local11 = true;
_local15 = 0;
} else {
if (damagemasuk < 0){
soundsuccess.play(0, 1, new SoundTransform(volumemusic));
} else {
sounddamagepart.play(0, 1, new SoundTransform(volumemusic));
};
};
trace(("dikurangi jd : " + _local15));
_local14 = (_local15 / _local13);
trace(("dikurangi jd : " + _local14));
if (_local14 > 1){
_local14 = 1;
};
musuhstatsummary[(partsyangdiserang - 1)] = _local14;
trace(((("part ke ini : " + int((partsyangdiserang - 1))) + " jadi : ") + musuhstatsummary[(partsyangdiserang - 1)]));
tetapkanso2();
loadcharstatistic(mcuibattle.mcenemyindicator);
cekstatsummarymusu();
cekperubahanbardarah(musuhhp, musuhhptemp, itungehpenemy, mcuibattle.mcenemybar, "enemy");
if ((((musuhstatsummary[3] <= 0)) && ((musuhstatsummary[4] <= 0)))){
enemyloseleg = true;
};
if (_local11 == true){
tetapkanlistarraydipakebuwatcek2();
tetapkanlistarraydipakebuwatcek2hp();
trace(((((((((("cek summary musu : " + musuhstatsummary[0]) + " ") + musuhstatsummary[1]) + " ") + musuhstatsummary[2]) + " ") + musuhstatsummary[3]) + " ") + musuhstatsummary[4]));
trace("YA INI RUSAK");
cekavailableskill(listarraydipakebuwatcek2, enemyskill, enemyskilltipeparts, false, _local6);
tentuinskillmusupakemana();
};
} else {
if (_arg1.name == "mcmecha1"){
mcuibattle.mcplayerbar.mcraider1.gotoAndPlay(("effect" + randRange(1, 2)));
trace(("Ada negatip tu : " + adanegativebuff));
if (skillmanual == true){
skillmanual = false;
cekmechapositiveeffect(so.data.charmechaeffect[slotselected][robotused], so.data.charmechaeffectnumba[slotselected][robotused], enemymechapassive, enemymechapassivenumba, "player");
cekmechanegativeeffect(enemymechapassive, enemymechapassivenumba, so.data.charmechaeffect[slotselected][robotused], so.data.charmechaeffectnumba[slotselected][robotused], "enemy");
} else {
adacounter = 0;
adaconvert = 0;
adacrit = 0;
adaheal = 0;
adapoison = 0;
};
skillmanual = false;
trace(("Ada negatip tu 2 : " + adanegativebuff));
if (_local7 == true){
if (adanegativebuff != "all"){
trace("PLAYER KENA NEGATIVE BUFF");
isiinibuff(adanegativebuff, playermechabuffnegativeparts, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes);
adanegativebuff = "";
} else {
isiinibuff("atkdown", playermechabuffnegativeparts, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes);
isiinibuff("defdown", playermechabuffnegativeparts, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes);
isiinibuff("spddown", playermechabuffnegativeparts, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes);
isiinibuff("poison", playermechabuffnegativeparts, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes);
};
};
_local10 = cekdefensereduction(so.data.mechadeftemp[slotselected][robotused], damagemasuk);
damagemasuk = (damagemasuk - _local10);
_local12 = [undefined, 2, 3, 3, 4, 4];
_local16 = [undefined, so.data.charmechaheadhpreal[slotselected][robotused], so.data.charmechahand1hpreal[slotselected][robotused], so.data.charmechahand2hpreal[slotselected][robotused], so.data.charmechaleg1hpreal[slotselected][robotused], so.data.charmechaleg2hpreal[slotselected][robotused]];
_local17 = [undefined, so.data.charmechaheadhpreal2[slotselected][robotused], so.data.charmechahand1hpreal2[slotselected][robotused], so.data.charmechahand2hpreal2[slotselected][robotused], so.data.charmechaleg1hpreal2[slotselected][robotused], so.data.charmechaleg2hpreal2[slotselected][robotused]];
_local18 = _local17[partsyangdiserang];
trace(("ambel darah : " + _local18));
_local18 = (_local18 - damagemasuk);
trace(((("dikulangi : " + damagemasuk) + " jd : ") + _local18));
if (_local18 < 0){
_local18 = 0;
sounddestroyedpart.play(0, 1, new SoundTransform(volumemusic));
} else {
if (damagemasuk < 0){
soundsuccess.play(0, 1, new SoundTransform(volumemusic));
} else {
sounddamagepart.play(0, 1, new SoundTransform(volumemusic));
};
};
_local19 = _local16[partsyangdiserang];
trace(("ambil darah maxnya : " + _local19));
_local20 = (_local18 / _local19);
trace(("dibagi jd : " + _local20));
if (_local20 > 1){
_local20 = 1;
};
if (partsyangdiserang == 1){
so.data.charmechaheadhp[slotselected][robotused] = _local20;
if (so.data.charmechaheadhp[slotselected][robotused] == 0){
so.data.charmechaheadhp[slotselected][robotused] = 0;
so.data.charmechahand1hp[slotselected][robotused] = 0;
so.data.charmechahand2hp[slotselected][robotused] = 0;
so.data.charmechaleg1hp[slotselected][robotused] = 0;
so.data.charmechaleg2hp[slotselected][robotused] = 0;
};
} else {
if (partsyangdiserang == 2){
so.data.charmechahand1hp[slotselected][robotused] = _local20;
} else {
if (partsyangdiserang == 3){
so.data.charmechahand2hp[slotselected][robotused] = _local20;
} else {
if (partsyangdiserang == 4){
so.data.charmechaleg1hp[slotselected][robotused] = _local20;
} else {
if (partsyangdiserang == 5){
so.data.charmechaleg2hp[slotselected][robotused] = _local20;
};
};
};
};
};
if ((((so.data.charmechaleg1hp[slotselected][robotused] <= 0)) && ((so.data.charmechaleg2hp[slotselected][robotused] <= 0)))){
playerloseleg = true;
};
trace(("cek 1 : " + so.data.charmechaheadhp[slotselected][robotused]));
trace(("cek 2 : " + so.data.charmechahand1hp[slotselected][robotused]));
trace(("cek 3 : " + so.data.charmechahand2hp[slotselected][robotused]));
trace(("cek 4 : " + so.data.charmechaleg1hp[slotselected][robotused]));
trace(("cek 5 : " + so.data.charmechaleg2hp[slotselected][robotused]));
tetapkanso(robotused);
loadcharstatistic(mcuibattle.mcplayerindicator);
cekstatnow(robotused);
cekperubahanbardarah(so.data.mechahptemp[slotselected][robotused], so.data.mechahp[slotselected][robotused], itungehpplayer, mcuibattle.mcplayerbar, "player");
};
};
_local8 = [so.data.charmechaheadhp[slotselected][robotused], so.data.charmechahand1hp[slotselected][robotused], so.data.charmechahand2hp[slotselected][robotused], so.data.charmechaleg1hp[slotselected][robotused], so.data.charmechaleg2hp[slotselected][robotused]];
}
public function resetrepairing(){
var _local1:*;
var _local2:*;
_local1 = 1;
while (_local1 <= 8) {
_local2 = buildingused.getChildByName(("mcstaff" + _local1));
if (_local2 != null){
_local2.visible = false;
};
_local1++;
};
so.data.charmecharepairbool[slotselected][robotused] = false;
so.data.charmecharepairtime[slotselected][robotused] = 0;
so.data.charmecharepairtimetemp[slotselected][robotused] = 0;
timetorepairingweek = 0;
so.data.repairhead[slotselected][robotused] = 0;
so.data.repairhand1[slotselected][robotused] = 0;
so.data.repairhand2[slotselected][robotused] = 0;
so.data.repairleg1[slotselected][robotused] = 0;
so.data.repairleg2[slotselected][robotused] = 0;
}
public function loadshop(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:*;
var _local22:*;
var _local23:*;
var _local24:*;
var _local25:*;
if (volumemainmusic != 0){
volumemainmusic = 0.5;
soundchannel1.soundTransform = new SoundTransform(volumemainmusic);
};
if (soundchannelongarage == null){
soundchannelongarage = soundonmarket.play(0, 999, new SoundTransform(volumemusic));
};
mcshop.txtmoney.text = (so.data.money[slotselected] + "G");
if (shopbeli == true){
mcshop.btnbuy.gotoAndStop(1);
mcshop.btnsell.gotoAndStop(2);
} else {
if (shopbeli == false){
mcshop.btnbuy.gotoAndStop(2);
mcshop.btnsell.gotoAndStop(1);
};
};
mcshop.btnbuy.buttonMode = true;
mcshop.btnsell.buttonMode = true;
mcshop.mcshopexplanation.btnsell.removeEventListener(MouseEvent.CLICK, inventorysell);
mcshop.mcshopexplanation.btnsell.addEventListener(MouseEvent.CLICK, inventorysell);
mcshop.btnscroll.x = 200;
mcshop.btnscroll.y = 77;
trace(("cek shopitem length : " + shopitem.length));
_local1 = 0;
while (_local1 < shopitem.length) {
if (shopitem[_local1] != null){
removeChild(shopitem[_local1]);
shopitem[_local1] = null;
};
_local1++;
};
currkolom = 1;
currbaris = 1;
ontelke = 0;
omaxke = 0;
vulhpke = 0;
vuldefke = 0;
vulattke = 0;
vulspdke = 0;
vulstabil = 0;
drgonke = 0;
vampireke = 0;
mysteriouske = 0;
shopitem = new Array();
mcshop.visible = true;
_local2 = 1;
_local3 = 1;
_local4 = 1;
_local5 = 1;
_local6 = 1;
_local7 = 1;
_local8 = 1;
_local9 = 1;
_local10 = 1;
_local11 = 1;
_local12 = 1;
_local13 = 1;
_local14 = 1;
_local15 = 1;
_local16 = 1;
_local17 = 1;
_local18 = 1;
_local19 = 1;
_local20 = 1;
_local21 = 1;
_local22 = objarraylistsummary[indexitem];
trace(("ARRAY : " + objarraylistsummary));
parentexplanationused = mcshop.mcshopexplanation;
if (shopbeli == true){
parentexplanationused.gotoAndStop(1);
if (indexitem >= 3){
parentexplanationused.gotoAndStop(2);
};
_local23 = 1;
while (_local23 < _local22.length) {
_local24 = _local22[_local23];
_local1 = 1;
while (_local1 < _local24.length) {
if (_local24[_local1] <= so.data.grade[slotselected]){
trace("masuk");
createshopitemchild(_local23, _local1);
shopitem[(shopitem.length - 1)].equippedbool = false;
shopitem[(shopitem.length - 1)].statx = shopitem[(shopitem.length - 1)].x;
shopitem[(shopitem.length - 1)].staty = shopitem[(shopitem.length - 1)].y;
if ((((so.data.tutorialstep[slotselected] == 11)) && ((tutorialbeli <= 0)))){
tutorialbeli = 0;
//unresolved jump
};
if (so.data.tutorialcomplete[slotselected] == false){
//unresolved jump
};
};
_local1++;
};
_local23++;
};
parentexplanationused.visible = true;
lengthiteminventoryclick = shopitem[0].indexke;
stage.addEventListener(Event.ENTER_FRAME, shopextractor);
} else {
parentexplanationused.txtrequired.text = "EQUIPPED";
parentexplanationused.gotoAndStop(3);
trace(((("length index item : " + indexitem) + " yaitu : ") + so.data.equipment[slotselected][indexitem].length));
if (so.data.equipment[slotselected][indexitem].length > 0){
parentexplanationused.visible = true;
_local1 = 0;
while (_local1 < so.data.equipment[slotselected][indexitem].length) {
_local25 = false;
if (indexitem == 1){
createshopitemchild(so.data.equipment[slotselected][indexitem][_local1], so.data.equipmentstatus[slotselected][1][_local1]);
} else {
createshopitemchild(so.data.equipment[slotselected][indexitem][_local1], 1);
};
shopitem[(shopitem.length - 1)].equippedbool = false;
if (indexitem == 1){
trace(((("cek CHIP equip index : " + so.data.chipequipindex[slotselected]) + " ma : ") + _local1));
if (so.data.chipequipindex[slotselected] == _local1){
_local25 = true;
};
};
if (indexitem == 2){
trace(((("cek HEAD equip index : " + so.data.headequipindex[slotselected]) + " ma : ") + _local1));
if (so.data.headequipindex[slotselected] == _local1){
_local25 = true;
};
};
if (indexitem == 3){
trace(((("cek HAND1 equip index : " + so.data.hand1equipindex[slotselected]) + " ma : ") + _local1));
trace(((("cek HAND2 equip index : " + so.data.hand2equipindex[slotselected]) + " ma : ") + _local1));
if (so.data.hand1equipindex[slotselected] == _local1){
_local25 = true;
};
if (so.data.hand2equipindex[slotselected] == _local1){
_local25 = true;
};
};
if (indexitem == 4){
trace(((("cek LEG1 equip index : " + so.data.leg1equipindex[slotselected]) + " ma : ") + _local1));
trace(((("cek LEG2 equip index : " + so.data.leg2equipindex[slotselected]) + " ma : ") + _local1));
if (so.data.leg1equipindex[slotselected] == _local1){
_local25 = true;
};
if (so.data.leg2equipindex[slotselected] == _local1){
_local25 = true;
};
};
if (_local25 == true){
trace("ya ini diequip lgo");
shopitem[(shopitem.length - 1)].gotoAndStop(3);
shopitem[(shopitem.length - 1)].txt1.textColor = "0x0000";
shopitem[(shopitem.length - 1)].equippedbool = true;
shopitem[(shopitem.length - 1)].buttonMode = false;
shopitem[(shopitem.length - 1)].removeEventListener(MouseEvent.MOUSE_OVER, shopitemover);
shopitem[(shopitem.length - 1)].removeEventListener(MouseEvent.CLICK, shopitemclick);
shopinidiequip = true;
};
_local1++;
};
lengthiteminventoryclick = shopitem[0].indexke;
stage.addEventListener(Event.ENTER_FRAME, shopextractor);
} else {
parentexplanationused.visible = false;
};
};
}
public function shopitemfollowmouse(_arg1:Event):void{
mcshopexplanation.visible = true;
mcshopexplanation.x = mouseX;
mcshopexplanation.y = mouseY;
if ((((mcshopexplanation.hitTestObject(mcboundright) == true)) && ((mcshopexplanation.hitTestObject(mcboundup) == true)))){
mcshopexplanation.gotoAndStop("downleft");
} else {
if ((((mcshopexplanation.hitTestObject(mcboundright) == true)) && ((mcshopexplanation.hitTestObject(mcbounddown) == true)))){
mcshopexplanation.gotoAndStop("upleft");
} else {
if ((((mcshopexplanation.hitTestObject(mcboundleft) == true)) && ((mcshopexplanation.hitTestObject(mcboundup) == true)))){
mcshopexplanation.gotoAndStop("right");
} else {
if ((((mcshopexplanation.hitTestObject(mcboundleft) == true)) && ((mcshopexplanation.hitTestObject(mcbounddown) == true)))){
mcshopexplanation.gotoAndStop("up");
} else {
if (mcshopexplanation.hitTestObject(mcboundright) == true){
mcshopexplanation.gotoAndStop("downleft");
} else {
if (mcshopexplanation.hitTestObject(mcboundleft) == true){
mcshopexplanation.gotoAndStop("right");
} else {
if (mcshopexplanation.hitTestObject(mcbounddown) == true){
mcshopexplanation.gotoAndStop("up");
} else {
if (mcshopexplanation.hitTestObject(mcboundup) == true){
mcshopexplanation.gotoAndStop("right");
};
};
};
};
};
};
};
};
}
public function buwatseranganmusu(){
var _local1:*;
var _local2:*;
battleanimationbool = true;
_local1 = "";
if (enemyskilltipeparts[enemyrandskill] == 1){
_local1 = headskillnumba[itemsummary[so.data.grade[slotselected]][musuhtipe][0]][0];
};
if (enemyskilltipeparts[enemyrandskill] == 2){
trace(((((musuhtipe + " ") + enemyskillno) + " ") + enemyrandskill));
_local1 = armskillnumba[itemsummary[so.data.grade[slotselected]][musuhtipe][enemyskilltipepartske[enemyrandskill]]][enemyskillno[enemyrandskill]];
};
trace(("apa namane image : " + _local1));
_local2 = 0;
while (_local2 < linkagetipe.length) {
trace(((("bandingin : " + _local1) + " ma : ") + linkagetipe[_local2]));
if (_local1 == linkagetipe[_local2]){
trace(("hasil : " + linkageskillname[_local2]));
mcskillname.mc1.txt1.text = linkageskillname[_local2];
break;
};
_local2++;
};
mcskillname.gotoAndPlay(2);
jedaphase = 3;
buwatjedaer();
}
public function createendday(){
soundclick.play(0, 1, new SoundTransform(volumemusic));
if ((((((((so.data.tutorialcomplete[slotselected] == true)) || ((so.data.tutorialstep[slotselected] == 5)))) || ((so.data.tutorialstep[slotselected] == 15)))) || ((so.data.tutorialstep[slotselected] == 10)))){
bolerepair = true;
btnendday.visible = false;
txtrepairpercent.visible = false;
cekmute = false;
yagantihari = true;
var _local1 = so.data.weeke;
var _local2 = slotselected;
var _local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
if (so.data.championshipcountdown[slotselected] > 0){
_local1 = so.data.championshipcountdown;
_local2 = slotselected;
_local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
};
if (mcui.currentLabel != "down"){
mcui.gotoAndPlay("down");
mcui2.gotoAndPlay("down");
mcui3.gotoAndPlay("down");
mcui5.gotoAndPlay("down");
};
mctransisinextday.gotoAndPlay(2);
tournamentbool = false;
clearallwindow();
cleanup();
stage.addEventListener(Event.ENTER_FRAME, enddayertransisi);
};
}
public function loadday(){
if (so.data.weeke[slotselected] >= bagiwaktu){
so.data.weeke[slotselected] = 1;
yareport = true;
};
if (yareport == true){
yareport = false;
cektimemonth();
};
mcui4.mctime.width = (so.data.weeke[slotselected] * (82 / bagiwaktu));
mcui4.mctime2.width = mcui4.mctime.width;
if (yagantihari == true){
soundsuccess.play(0, 1, new SoundTransform(volumemusic));
mcui4.mcblink.x = (mcui4.mctime.x + mcui4.mctime.width);
mcui4.mcblink.gotoAndPlay(2);
mcui4.mctime.gotoAndPlay(2);
};
}
public function loadmechanicingarage(_arg1:int):void{
var _local2:*;
var _local3:*;
var _local4:*;
trace(((("isa dibetulno : " + mecharepairbool) + " ") + bolerepair));
if ((((mecharepairbool == true)) && ((bolerepair == true)))){
_local2 = 0;
trace(((("YA MECHANIC BOOL DIBETULNO " + so.data.repairleg1[slotselected][_arg1]) + " ") + so.data.repairleg2[slotselected][_arg1]));
so.data.charmechaheadhp[slotselected][_arg1] = (so.data.charmechaheadhp[slotselected][_arg1] + so.data.repairhead[slotselected][_arg1]);
so.data.charmechahand1hp[slotselected][_arg1] = (so.data.charmechahand1hp[slotselected][_arg1] + so.data.repairhand1[slotselected][_arg1]);
so.data.charmechahand2hp[slotselected][_arg1] = (so.data.charmechahand2hp[slotselected][_arg1] + so.data.repairhand2[slotselected][_arg1]);
so.data.charmechaleg1hp[slotselected][_arg1] = (so.data.charmechaleg1hp[slotselected][_arg1] + so.data.repairleg1[slotselected][_arg1]);
so.data.charmechaleg2hp[slotselected][_arg1] = (so.data.charmechaleg2hp[slotselected][_arg1] + so.data.repairleg2[slotselected][_arg1]);
if (so.data.charmechahand1[slotselected][_arg1] != 0){
_local2++;
};
if (so.data.charmechahand2[slotselected][_arg1] != 0){
_local2++;
};
if (so.data.charmechaleg1[slotselected][_arg1] != 0){
_local2++;
};
if (so.data.charmechaleg2[slotselected][_arg1] != 0){
_local2++;
};
if (so.data.charmechaheadhp[slotselected][_arg1] > 1){
so.data.charmechaheadhp[slotselected][_arg1] = 1;
};
if (so.data.charmechahand1hp[slotselected][_arg1] > 1){
so.data.charmechahand1hp[slotselected][_arg1] = 1;
};
if (so.data.charmechahand2hp[slotselected][_arg1] > 1){
so.data.charmechahand2hp[slotselected][_arg1] = 1;
};
if (so.data.charmechaleg1hp[slotselected][_arg1] > 1){
so.data.charmechaleg1hp[slotselected][_arg1] = 1;
};
if (so.data.charmechaleg2hp[slotselected][_arg1] > 1){
so.data.charmechaleg2hp[slotselected][_arg1] = 1;
};
if (so.data.charmechaheadhp[slotselected][_arg1] >= 0.99){
so.data.charmechaheadhp[slotselected][_arg1] = 1;
};
if (so.data.charmechahand1hp[slotselected][_arg1] >= 0.99){
so.data.charmechahand1hp[slotselected][_arg1] = 1;
};
if (so.data.charmechahand2hp[slotselected][_arg1] >= 0.99){
so.data.charmechahand2hp[slotselected][_arg1] = 1;
};
if (so.data.charmechaleg1hp[slotselected][_arg1] >= 0.99){
so.data.charmechaleg1hp[slotselected][_arg1] = 1;
};
if (so.data.charmechaleg2hp[slotselected][_arg1] >= 0.99){
so.data.charmechaleg2hp[slotselected][_arg1] = 1;
};
_local3 = 1;
while (_local3 <= 8) {
if (so.data.mechanic[slotselected][_local3].team == _arg1){
so.data.mechanic[slotselected][_local3].experienceloading = (so.data.mechanic[slotselected][_local3].experienceloading - _local2);
if (so.data.mechanic[slotselected][_local3].experienceloading < 0){
so.data.mechanic[slotselected][_local3].experienceloading = so.data.mechanic[slotselected][_local3].experienceloadingtemp;
trace(((("bandingin : " + so.data.mechanic[slotselected][_local3].experience) + " ma : ") + so.data.mechanic[slotselected][_local3].experiencemax));
if (so.data.mechanic[slotselected][_local3].experience == so.data.mechanic[slotselected][_local3].experiencemax){
so.data.mechanic[slotselected][_local3].experience++;
_local4 = buildingused.getChildByName(("mclvlup" + _local3));
if (_local4 != null){
_local4.mcpoingained.mc1.gotoAndStop(1);
_local4.mcpoingained.mc1.txt1.text = "LEVEL UP";
_local4.gotoAndPlay(2);
};
} else {
if (so.data.mechanic[slotselected][_local3].experience < so.data.mechanic[slotselected][_local3].experiencemax){
so.data.mechanic[slotselected][_local3].experience++;
};
};
};
};
_local3++;
};
};
cektampilanstaffdanrepairrate();
loadfungsitombolautorepair();
}
public function mechaniclevelup(_arg1:MouseEvent):void{
so.data.promote = true;
trace(("level ini asale : " + so.data.mechanic[slotselected][_arg1.currentTarget.parent.nomechanic].levele));
so.data.mechanic[slotselected][_arg1.currentTarget.parent.nomechanic].wages = (so.data.mechanic[slotselected][_arg1.currentTarget.parent.nomechanic].wages + 10);
so.data.mechanic[slotselected][_arg1.currentTarget.parent.nomechanic].skillpt = (so.data.mechanic[slotselected][_arg1.currentTarget.parent.nomechanic].skillpt + 25);
so.data.mechanic[slotselected][_arg1.currentTarget.parent.nomechanic].levele++;
so.data.mechanic[slotselected][_arg1.currentTarget.parent.nomechanic].experience = 0;
so.data.mechanic[slotselected][_arg1.currentTarget.parent.nomechanic].experiencemax = (so.data.mechanic[slotselected][_arg1.currentTarget.parent.nomechanic].levele * 10);
loadmechanicpanel();
}
public function createbattlepreend(_arg1:String){
rightclickbugerrorfixer();
battlekoobject = _arg1;
soundtotaldestroyed.play(0, 1, new SoundTransform(volumemusic));
if (_arg1 == "player"){
mechaused.gotoAndPlay("backexplode");
} else {
if (_arg1 == "enemy"){
enemymecha.gotoAndPlay("frontexplode");
};
};
}
public function cekdodge(_arg1:int, _arg2:int, _arg3:int, _arg4:int):Boolean{
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local5 = false;
_local6 = ((_arg1 + _arg2) + _arg3);
_local7 = _arg4;
trace(("SUMMARY ATTACKER : " + _local6));
trace(("SPD VICTIM : " + _local7));
_local6 = (_local6 / _local7);
_local6 = (_local6 * 20);
if (_local6 > 100){
_local6 = 100;
} else {
if (_local6 < 20){
_local6 = 20;
};
};
trace(("kemungkinan kena : " + _local6));
_local8 = randRange(0, 100);
trace(("hasil random : " + _local8));
if (_local8 < _local6){
_local5 = true;
};
trace(("kena pa nda : " + _local5));
return (_local5);
}
public function cleanuptrainall(){
var _local1:*;
var _local2:*;
var _local3:*;
stage.removeEventListener(MouseEvent.CLICK, clicktoskipbarexp);
mcdialogbox.btnstart.removeEventListener(MouseEvent.CLICK, attackstart);
mcdialogbox.btnstart.removeEventListener(MouseEvent.CLICK, defensestart);
mcdialogbox.btnstart.removeEventListener(MouseEvent.CLICK, speedstart);
if (posisimarking == 4){
buildingused.mcdashdisabled.visible = false;
buildingused.btndash.visible = false;
_local1 = 1;
while (_local1 <= obstaclelevel[so.data.trainspeedlevel[slotselected]]) {
_local2 = buildingused.mc1.getChildByName(("mcobstacle" + _local1));
_local2.mc1.gotoAndStop(1);
_local2.buttonMode = false;
_local3 = new ColorTransform();
_local2.colorTransform = _local3;
_local2.removeEventListener(MouseEvent.CLICK, obstaclespeedclick);
_local2.removeEventListener(MouseEvent.MOUSE_OVER, obstaclespeedover);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, obstaclespeedout);
_local1++;
};
mcspeedtimelimits.visible = false;
mechaused.removeEventListener(Event.ENTER_FRAME, trainspeedmovement);
mccountdown.removeEventListener(Event.ENTER_FRAME, countdownstartspeed);
};
if (posisimarking == 3){
_local1 = 0;
while (_local1 < defenseballimage.length) {
if (defenseballimage[_local1] != null){
removeChild(defenseballimage[_local1]);
defenseballimage[_local1] = null;
};
_local1++;
};
_local1 = 1;
while (_local1 <= 4) {
_local2 = mcdefensebar.getChildByName(("btn" + _local1));
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, defensebuttonclick);
_local2 = mcdefensebar.getChildByName(("mcblocker" + _local1));
_local2.visible = false;
_local1++;
};
mcdefensebar.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, traindefensetarget);
};
if (posisimarking == 2){
_local1 = 1;
while (_local1 <= 3) {
_local2 = buildingused.mc1.getChildByName(("mctarget" + _local1));
_local2.mcmark.gotoAndStop(1);
_local2.mcmark.removeEventListener(MouseEvent.CLICK, obstacleattackclick);
_local2.mcmark.mcmarker.visible = false;
_local2.mcmark.removeEventListener(MouseEvent.MOUSE_OVER, obstaclespeedover);
_local2.mcmark.removeEventListener(MouseEvent.MOUSE_OUT, obstaclespeedout);
_local1++;
};
mcspeedtimelimits.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, trainattacktarget);
mccountdown.removeEventListener(Event.ENTER_FRAME, countdownstartspeed);
};
trainresultload();
}
public function cekspeedbonus(_arg1:int):Number{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = 1000;
_local3 = 1.5;
if (_arg1 > _local2){
trace("lbh besar");
_arg1 = _local2;
};
trace(("SPD NOW : " + _arg1));
_local4 = (_arg1 / _local2);
_local4 = (_local4 * _local3);
trace(("hasilnya : " + _local4));
return (_local4);
}
public function tetapkanlistarraydipakebuwatcek2(){
listarraydipakebuwatcek2 = [itemsummary[so.data.grade[slotselected]][musuhtipe][0], itemsummary[so.data.grade[slotselected]][musuhtipe][1], itemsummary[so.data.grade[slotselected]][musuhtipe][2], itemsummary[so.data.grade[slotselected]][musuhtipe][3], itemsummary[so.data.grade[slotselected]][musuhtipe][4]];
}
public function repairautoover(_arg1:MouseEvent):void{
txtdayrepair.visible = true;
}
public function createeffect(_arg1:int):void{
var _local2:*;
_local2 = [undefined, hiteffect1, hiteffect2, debriseffect1, debriseffect2, debriseffect3, debriseffect4, debriseffect5, defenseeffect];
effectimage[effectimage.length] = new (_local2[_arg1]);
addChild(effectimage[(effectimage.length - 1)]);
effectimage[(effectimage.length - 1)].x = mouseX;
effectimage[(effectimage.length - 1)].y = mouseY;
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].mouseChildren = false;
effectimage[(effectimage.length - 1)].mouseEnabled = false;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function mechanicfollowmouse(_arg1:Event):void{
var _local2:Point;
_local2 = new Point(mouseX, mouseY);
_local2 = mcmechanicpanel.globalToLocal(_local2);
_arg1.currentTarget.x = _local2.x;
_arg1.currentTarget.y = _local2.y;
_arg1.currentTarget.txtwages.visible = false;
_arg1.currentTarget.txtskill.visible = false;
}
public function itungexperience(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
mccountdown.visible = false;
mccountdownresult.visible = false;
poinshare = 0;
_local1 = [undefined, 3, 8, 15, 20, 30, 40];
_local2 = [undefined, 8, 15, 20, 30, 45, 50];
_local3 = [undefined, 3, 6, 9, 14, 18];
trace(((("MECHA HP : " + so.data.mechahptemp[slotselected][robotused]) + " cek full : ") + so.data.mechahp[slotselected][robotused]));
_local4 = (so.data.mechahptemp[slotselected][robotused] / so.data.mechahp[slotselected][robotused]);
trace(("dara player : " + _local4));
_local4 = (_local4 * _local2[so.data.grade[slotselected]]);
trace(("dara player persentase : " + _local4));
if (_local4 < _local1[so.data.grade[slotselected]]){
trace(("ok min tu : " + _local1[so.data.grade[slotselected]]));
_local4 = _local1[so.data.grade[slotselected]];
};
trace(("dapet standart : " + _local4));
_local5 = mcuibattle.mcspeedtimelimits.txt1.text;
_local6 = _local5.charAt(0);
if (int(_local6) == 0){
_local5 = _local5.charAt((_local5.length - 1));
};
_local5 = (_local5 / 99);
_local5 = (_local5 * _local3[so.data.grade[slotselected]]);
trace(("dapet bonus : " + _local5));
_local7 = (_local4 + _local5);
trace(("DAPET EXP RAIDER : " + _local7));
loadstandartmecha(mctrainresult.mcmecha);
mctrainresult.txtstatgain.text = "";
mctrainresult.mctrainingtipe.gotoAndStop(5);
mctrainresult.btnundo.visible = false;
mctrainresult.btnundo.removeEventListener(MouseEvent.CLICK, undoskillpt);
mctrainresult.btnundo.addEventListener(MouseEvent.CLICK, undoskillpt);
mctrainresult.mcraider.gotoAndStop(so.data.raider[slotselected]);
mctrainresult.txtlevel.text = ("Lv." + so.data.raiderlevel[slotselected]);
mctrainresult.txtexp.text = ((so.data.raiderexp[slotselected] + "/") + so.data.raiderexpmax[slotselected]);
mctrainresult.txtname.text = so.data.raidername[slotselected];
mctrainresult.txthp.text = ("HP : " + so.data.raiderhp[slotselected]);
mctrainresult.txtatk.text = ("ATK : " + so.data.raideratk[slotselected]);
mctrainresult.txtdef.text = ("DEF : " + so.data.raiderdef[slotselected]);
mctrainresult.txtspd.text = ("SPD : " + so.data.raiderspd[slotselected]);
ridertemp = [so.data.raiderhp[slotselected], so.data.raideratk[slotselected], so.data.raiderdef[slotselected], so.data.raiderspd[slotselected]];
mctrainresult.btnok.addEventListener(MouseEvent.CLICK, trainok);
_local8 = 1;
while (_local8 <= 4) {
_local9 = mctrainresult.getChildByName(("btnplus" + _local8));
_local9.removeEventListener(MouseEvent.CLICK, clickpointdistribute);
_local9.addEventListener(MouseEvent.CLICK, clickpointdistribute);
_local9.visible = false;
_local8++;
};
mctrainresult.txtavailable.text = "";
mctrainresult.btnokfalse.visible = true;
if (_local7 > 0){
cekexptonaeklevel(_local7);
} else {
exptemp = 0;
expincreasetime = 0;
stage.addEventListener(Event.ENTER_FRAME, barexpmovement);
};
}
public function loadstandart(){
var seraprizeclose:Function;
var cannotrepairfullhealthdude:Function;
var endday:Function;
var gameoverok:Function;
var mechanicnofireok:Function;
var mechanicfireyes:Function;
var mechanicfirecancel:Function;
var enterturnamenshortcut:Function;
var turnamenpopupclose:Function;
var okchampionship:Function;
var skiptutorialbool:Function;
var trainingcancel:Function;
var i:*;
var cost:*;
var salaryload:Function;
var salaryclick:Function;
var mecha1status:Function;
var mechanicpanel:Function;
var mechanicpanelclose:Function;
var freematchaccess:Function;
var shopstatus:Function;
var shopscrollitem:Function;
var shopclose:Function;
var loadrider:Function;
var listequipmentclose:Function;
var mechastatusclose:Function;
var sponsorload:Function;
var sponsorclose:Function;
var shopexpclose:Function;
var shopbuy:Function;
var inventoryequip:Function;
var shopclose2:Function;
var shopclose3:Function;
var sponsorok:Function;
var sponsorsureclose:Function;
var ridershopclose:Function;
var championshipcostout:Function;
var okfollowtournament:Function;
var okcanceltournament:Function;
var championshipcostover:Function;
var championshipload:Function;
var championshipclose:Function;
var championshipenter:Function;
var deficitok:Function;
var connectab2:Function;
var pausegameingame:Function;
var mutemusicingame:Function;
var seraprize:Function;
var pausegameunpause:Function;
var lastchanceok:Function;
var nomechanicwarning:Function;
var skipdaywarning:Function;
var lastchanceno:Function;
var upgradebuildingcost:*;
var upgradebuilding:Function;
var obj:*;
var objtar:*;
var dialogboxclose:Function;
var objbutt:*;
var trainout:Function;
var trainover:Function;
var trainthings:Function;
var shopindexitemchoose:Function;
var shopindexitemover:Function;
var shopindexitemout:Function;
var shoplistinventoryopen:Function;
seraprizeclose = function (_arg1:MouseEvent):void{
mcseraprize.visible = false;
};
cannotrepairfullhealthdude = function (_arg1:MouseEvent):void{
mcdialogbox.txtjudul.text = "";
if (so.data.mechahptemp[slotselected][1] == so.data.mechahp[slotselected][1]){
mcdialogbox.txt1.text = "your mecha is at 100% health and needs no further repairs.";
} else {
mcdialogbox.txt1.text = "your must have at least a mechanic to repair mecha";
};
mcdialogbox.btnstart.visible = false;
mcdialogbox.btnupgrade.visible = false;
mcdialogbox.btncancel.visible = false;
mcdialogbox.btnskiptutorial.visible = false;
mcdialogbox.gotoAndPlay(2);
mcdialogbox.btnnext2.visible = true;
mcdialogbox.btnnext2.addEventListener(MouseEvent.CLICK, clicktoclose);
mcdialogbox.btnnext.addEventListener(MouseEvent.CLICK, clicktoclose);
};
endday = function (_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
if (so.data.tutorialstep[slotselected] == 15){
createendday();
} else {
trace(("cek step end day: " + so.data.tutorialstep[slotselected]));
trace(("cek report skip : " + so.data.reportskipday[slotselected]));
_local2 = false;
_local3 = 1;
while (_local3 <= 8) {
if (((!((so.data.mechanic[slotselected][_local3].team == ""))) && (!((so.data.mechanic[slotselected][_local3].team == undefined))))){
trace("Ada nih team");
_local2 = true;
break;
};
_local3++;
};
if ((((_local2 == false)) && ((mecharepairbool == true)))){
mcnomechanicwarning.visible = true;
};
if (so.data.reportskipday[slotselected] == false){
if (mecharepairbool == false){
if (so.data.tutorialcomplete[slotselected] == true){
mcskipday.visible = true;
so.data.reportskipday[slotselected] = true;
};
} else {
if ((((mecharepairbool == true)) && ((_local2 == true)))){
createendday();
} else {
if ((((mecharepairbool == true)) && ((_local2 == false)))){
if (so.data.tutorialcomplete[slotselected] == true){
mcskipday.visible = true;
so.data.reportskipday[slotselected] = true;
};
};
};
};
} else {
if ((((_local2 == true)) || ((((_local2 == false)) && ((mecharepairbool == false)))))){
createendday();
};
};
};
};
gameoverok = function (_arg1:MouseEvent):void{
tournamentbool = false;
cleanup();
if (currentLabel == "battle"){
battleend = true;
cleanupbattle();
} else {
clearallwindow();
};
transisi("main menu");
};
mechanicnofireok = function (_arg1:MouseEvent):void{
mcnofire.visible = false;
};
mechanicfireyes = function (_arg1:MouseEvent):void{
so.data.mechanic[slotselected][nomechanicfire].exist = false;
so.data.mechanic[slotselected][nomechanicfire].head = "";
so.data.mechanic[slotselected][nomechanicfire].namee = "";
so.data.mechanic[slotselected][nomechanicfire].wages = "";
so.data.mechanic[slotselected][nomechanicfire].skillpt = "";
so.data.mechanic[slotselected][nomechanicfire].experienceloading = "";
so.data.mechanic[slotselected][nomechanicfire].experienceloadingtemp = "";
so.data.mechanic[slotselected][nomechanicfire].experience = "";
so.data.mechanic[slotselected][nomechanicfire].experiencemax = "";
so.data.mechanic[slotselected][nomechanicfire].levele = "";
so.data.mechanic[slotselected][nomechanicfire].putwhere = "";
so.data.mechanic[slotselected][nomechanicfire].team = "";
loadmechanicpanel();
loadtraingarage();
mcfiremechanic.visible = false;
};
mechanicfirecancel = function (_arg1:MouseEvent):void{
mcfiremechanic.visible = false;
};
enterturnamenshortcut = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
};
turnamenpopupclose = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcturnamenpopup.visible = false;
};
okchampionship = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcchampionship.visible = false;
};
skiptutorialbool = function (_arg1:MouseEvent):void{
mcdialogbox.btnnext2.removeEventListener(MouseEvent.CLICK, nextconv);
mcdialogbox.btnnext.removeEventListener(MouseEvent.CLICK, nextconv);
mcdialogbox.txt1.text = "";
objtotext = "";
clearallwindow();
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (posisimarking == 4){
stage.removeEventListener(Event.ENTER_FRAME, textingtext);
mcdialogbox.btnnext.removeEventListener(MouseEvent.CLICK, clicktoclose);
loadtrainspeed();
loadtutorspeed();
};
stage.removeEventListener(Event.ENTER_FRAME, textingtext);
so.data.tp[slotselected] = 2;
mcui.mc1.txttp.text = so.data.tp[slotselected];
so.data.teambool[slotselected] = true;
so.data.tutorialcomplete[slotselected] = true;
so.data.tutorialstep[slotselected] = 18;
mcdialogbox.visible = false;
cleartutorial();
};
trainingcancel = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (so.data.tutorialcomplete[slotselected] == true){
mcdialogbox.btnstart.removeEventListener(MouseEvent.CLICK, attackstart);
mcdialogbox.btnstart.removeEventListener(MouseEvent.CLICK, defensestart);
mcdialogbox.btnstart.removeEventListener(MouseEvent.CLICK, speedstart);
stage.removeEventListener(Event.ENTER_FRAME, barexpmovement);
targetmap(1);
mctrainresult.visible = false;
};
};
salaryload = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
loadsalary();
mcsalarysummary.gotoAndPlay(2);
};
salaryclick = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcsalarysummary.visible = false;
};
mecha1status = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if ((((so.data.tutorialcomplete[slotselected] == true)) || ((so.data.tutorialstep[slotselected] == 13)))){
clearallwindow();
mcui.mc1.mcblink.gotoAndStop(1);
loadmechastatus(1);
};
};
mechanicpanel = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if ((((((so.data.tutorialcomplete[slotselected] == true)) || ((so.data.tutorialstep[slotselected] == 6)))) || ((so.data.tutorialstep[slotselected] == 7)))){
so.data.marker[slotselected][2] = 0;
clearallwindow();
loadmechanicpanel();
};
};
mechanicpanelclose = function (_arg1:MouseEvent):void{
if (so.data.tutorialstep[slotselected] == 8){
so.data.tutorialstep[slotselected] = 9;
createtutortext8();
};
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcmechanicpanel.visible = false;
clearallwindow();
};
freematchaccess = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if ((((so.data.tutorialcomplete[slotselected] == true)) || ((so.data.tutorialstep[slotselected] == 16)))){
mecharepairbool = false;
so.data.marker[slotselected][4] = 0;
tournamentbool = false;
tetapkanso(robotused);
loadmechastatus(robotused);
clearallwindow();
cleanup();
transisi("battleprep");
};
};
shopstatus = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if ((((so.data.tutorialcomplete[slotselected] == true)) || ((so.data.tutorialstep[slotselected] == 11)))){
bukafungsishop();
};
};
shopscrollitem = function (_arg1:MouseEvent):void{
stage.addEventListener(Event.ENTER_FRAME, scrollitemshop);
};
shopclose = function (_arg1:MouseEvent):void{
if (so.data.tutorialstep[slotselected] == 12){
createtutortext12();
so.data.tutorialstep[slotselected] = 13;
};
soundclick.play(0, 1, new SoundTransform(volumemusic));
clearallwindow();
};
loadrider = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (so.data.tutorialcomplete[slotselected] == true){
so.data.marker[slotselected][1] = 0;
clearallwindow();
loadridershop();
};
};
listequipmentclose = function (_arg1:MouseEvent):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcuimechastatus.mclistequipment.visible = false;
_local2 = 0;
while (_local2 < shopitem.length) {
if (shopitem[_local2] != null){
removeChild(shopitem[_local2]);
shopitem[_local2] = null;
};
_local2++;
};
};
mechastatusclose = function (_arg1:MouseEvent):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volumemusic));
_local2 = 0;
while (_local2 < shopitem.length) {
if (shopitem[_local2] != null){
removeChild(shopitem[_local2]);
shopitem[_local2] = null;
};
_local2++;
};
mcuimechastatus.visible = false;
clearallwindow();
};
sponsorload = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (so.data.tutorialcomplete[slotselected] == true){
so.data.marker[slotselected][6] = 0;
clearallwindow();
loadsponsor();
};
};
sponsorclose = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
clearallwindow();
};
shopexpclose = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcshopexplanation.visible = false;
};
shopbuy = function (_arg1:MouseEvent):void{
if ((((so.data.tutorialstep[slotselected] == 11)) || ((so.data.tutorialcomplete[slotselected] == true)))){
soundclick.play(0, 1, new SoundTransform(volumemusic));
trace(((("bandingin : " + shoppricenow) + " ma money : ") + so.data.money[slotselected]));
if (so.data.money[slotselected] >= shoppricenow){
if ((((so.data.tutorialstep[slotselected] == 11)) && ((tutorialbeli == 0)))){
tutorialbeli = 1;
} else {
if ((((so.data.tutorialstep[slotselected] == 11)) && ((tutorialbeli == 1)))){
tutorialbeli = 2;
so.data.tutorialstep[slotselected] = 12;
createtutortext11();
};
};
mcshop.mcmoneyadded.mcpoingained.gotoAndStop("damage");
mcshop.mcmoneyadded.mcpoingained.mc1.txt1.text = (("-" + shoppricenow) + "G");
mcshop.mcmoneyadded.gotoAndPlay(2);
if (so.data.tutorialcomplete[slotselected] == true){
so.data.moneyspend = (so.data.moneyspend + shoppricenow);
} else {
shoppricenow = 0;
};
ubahsebanyakinimoney(shoppricenow, "damage");
mcshop.txtmoney.text = (so.data.money[slotselected] + "G");
trace(((((("INDEX ITEM YG DIBELI : " + indexitem) + " ") + tipeitemshop) + " ") + itemkeshopbuy));
if (indexitem == 1){
if ((((tipeitemshop == 1)) && ((itemkeshopbuy == 7)))){
so.data.finalchipset = 1;
};
so.data.chipsetbuy = 1;
trace("beli chip");
so.data.equipment[slotselected][indexitem][so.data.equipment[slotselected][indexitem].length] = tipeitemshop;
so.data.equipmentstatus[slotselected][indexitem][so.data.equipmentstatus[slotselected][indexitem].length] = itemkeshopbuy;
so.data.equipmenthp[slotselected][indexitem][so.data.equipmenthp[slotselected][indexitem].length] = 1;
trace(("jd : " + so.data.equipment[slotselected][indexitem]));
} else {
if (indexitem == 3){
so.data.armbuy++;
};
so.data.equipment[slotselected][indexitem][so.data.equipment[slotselected][indexitem].length] = tipeitemshop;
so.data.equipmentstatus[slotselected][indexitem][so.data.equipmentstatus[slotselected][indexitem].length] = [undefined, objarraylistsummaryeffect[indexitem][tipeitemshop][1][0], objarraylistsummaryeffect[indexitem][tipeitemshop][1][1], objarraylistsummaryeffect[indexitem][tipeitemshop][1][2], objarraylistsummaryeffect[indexitem][tipeitemshop][1][3]];
so.data.equipmenthp[slotselected][indexitem][so.data.equipmenthp[slotselected][indexitem].length] = 1;
};
} else {
mcneedchipsetgrade.gotoAndPlay(2);
mcneedchipsetgrade.x = mouseX;
mcneedchipsetgrade.y = mouseY;
mcneedchipsetgrade.mc1.txt1.text = "Not enough money";
};
};
};
inventoryequip = function (_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
soundclick.play(0, 1, new SoundTransform(volumemusic));
_local2 = 0;
while (_local2 < shopitem.length) {
if (shopitem[_local2] != null){
removeChild(shopitem[_local2]);
shopitem[_local2] = null;
};
_local2++;
};
_local3 = [undefined, so.data.charmechahead[slotselected][robotused], so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused], so.data.charmechaleg1[slotselected][robotused], so.data.charmechaleg2[slotselected][robotused]];
trace(((("INDEX INV SELECT : " + indexinventoryselect) + "DIEQUIP : ") + tipeitemshop));
tetapkanstatusequipment();
if (indexinventoryselect == 1){
so.data.charmechachip[slotselected][robotused] = tipeitemshop;
so.data.chipequipindex[slotselected] = lengthiteminventoryclick;
} else {
if (indexinventoryselect == 2){
so.data.charmechahead[slotselected][robotused] = tipeitemshop;
so.data.headequipindex[slotselected] = lengthiteminventoryclick;
so.data.charmechaheadhp[slotselected][robotused] = so.data.equipmenthp[slotselected][2][so.data.headequipindex[slotselected]];
} else {
if (indexinventoryselect == 3){
if (so.data.tutorialstep[slotselected] == 14){
tutorialequip++;
if (tutorialequip >= 2){
so.data.tutorialstep[slotselected] = 15;
createtutortext14();
};
};
so.data.charmechahand1[slotselected][robotused] = tipeitemshop;
so.data.hand1equipindex[slotselected] = lengthiteminventoryclick;
trace(("HP SIMPEN : " + so.data.equipmenthp[slotselected][3][so.data.hand1equipindex[slotselected]]));
so.data.charmechahand1hp[slotselected][robotused] = so.data.equipmenthp[slotselected][3][so.data.hand1equipindex[slotselected]];
} else {
if (indexinventoryselect == 4){
if (so.data.tutorialstep[slotselected] == 14){
tutorialequip++;
if (tutorialequip >= 2){
so.data.tutorialstep[slotselected] = 15;
createtutortext14();
};
};
so.data.charmechahand2[slotselected][robotused] = tipeitemshop;
so.data.hand2equipindex[slotselected] = lengthiteminventoryclick;
so.data.charmechahand2hp[slotselected][robotused] = so.data.equipmenthp[slotselected][3][so.data.hand2equipindex[slotselected]];
} else {
if (indexinventoryselect == 5){
so.data.charmechaleg1[slotselected][robotused] = tipeitemshop;
so.data.leg1equipindex[slotselected] = lengthiteminventoryclick;
so.data.charmechaleg1hp[slotselected][robotused] = so.data.equipmenthp[slotselected][4][so.data.leg1equipindex[slotselected]];
} else {
if (indexinventoryselect == 6){
so.data.charmechaleg2[slotselected][robotused] = tipeitemshop;
so.data.leg2equipindex[slotselected] = lengthiteminventoryclick;
so.data.charmechaleg2hp[slotselected][robotused] = so.data.equipmenthp[slotselected][4][so.data.leg2equipindex[slotselected]];
};
};
};
};
};
};
mcuimechastatus.mclistequipment.visible = false;
mcshopexplanation.visible = false;
loadmechastatus(1);
};
shopclose2 = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcshopexplanation.visible = false;
};
shopclose3 = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
clearallwindow();
};
sponsorok = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
trace("KLIK BUT");
if ((((sponsortime == 4)) && ((so.data.grade[slotselected] == 5)))){
sponsortime = 2;
};
so.data.sponsortimetemp[slotselected] = sponsortime;
so.data.sponsortime[slotselected] = so.data.sponsortimetemp[slotselected];
so.data.sponsormoney[slotselected] = sponsormoney;
so.data.sponsorlogo[slotselected] = sponsorlogo;
mcmap.mcbuild1.mcsponsor.visible = true;
mcmap.mcbuild1.mcsponsor.gotoAndStop(so.data.sponsorlogo[slotselected]);
trace(("sponsor time status : " + so.data.sponsortimetemp[slotselected]));
trace(("sponsor money status : " + so.data.sponsormoney[slotselected]));
tambaimoney(so.data.sponsormoney[slotselected]);
mcsponsorsure.visible = false;
mcsponsor.visible = false;
if (so.data.sponsortimetemp[slotselected] == -1){
mcui2.mc1.mcexpired.visible = true;
} else {
mcui2.mc1.mcexpired.visible = false;
};
mcui2.mc1.btnsponsorndabole.visible = true;
};
sponsorsureclose = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcsponsorsure.visible = false;
};
ridershopclose = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
clearallwindow();
};
championshipcostout = function (_arg1:MouseEvent):void{
mctrainover.visible = false;
};
okfollowtournament = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
so.data.marker[slotselected][5] = 0;
so.data.followtournamentbool[slotselected] = true;
ubahsebanyakinimoney(cektournamentfee[so.data.grade[slotselected]], "damage");
so.data.championshipcountdownmax[slotselected] = bagiwaktu;
so.data.championshipcountdown[slotselected] = 1;
so.data.championshipcountdownexpired[slotselected] = (timeweektemp * 2);
mctournamentfee.visible = false;
loadchampionshipbar();
};
okcanceltournament = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mctournamentfee.visible = false;
};
championshipcostover = function (_arg1:MouseEvent):void{
mctrainover.visible = true;
mctrainover.txt1.text = (("Registration fee :\n" + cektournamentfee[so.data.grade[slotselected]]) + "G");
mctrainover.x = (mouseX - 80);
mctrainover.y = (mouseY + 28);
};
championshipload = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
trace(("cek 1 : " + so.data.tutorialcomplete[slotselected]));
if (so.data.tutorialcomplete[slotselected] == true){
mcchampionship.btnokno.visible = false;
if (so.data.followtournamentbool[slotselected] == false){
trace(((("cek 2 : " + so.data.money[slotselected]) + " mbe : ") + cektournamentfee[so.data.grade[slotselected]]));
if (so.data.money[slotselected] >= cektournamentfee[so.data.grade[slotselected]]){
mctournamentfee.txt1.text = (("Register tournament at the cost of " + cektournamentfee[so.data.grade[slotselected]]) + "G?");
mctournamentfee.visible = true;
} else {
mcneedchipsetgrade.gotoAndPlay(2);
mcneedchipsetgrade.x = 459;
mcneedchipsetgrade.y = 315;
mcneedchipsetgrade.mc1.txt1.text = "Not enough money";
};
} else {
if (so.data.followtournamentbool[slotselected] == true){
if (so.data.championshipphase[slotselected] == 5){
mcchampionship.mcwinnersummary.gotoAndStop(1);
stage.removeEventListener(Event.ENTER_FRAME, naikpemenang);
so.data.championshipphase[slotselected] = 1;
resetturnamenlocationdll();
};
clearallwindow();
loadchampionship();
};
};
};
};
championshipclose = function (_arg1:MouseEvent):void{
};
championshipenter = function (_arg1:MouseEvent):void{
};
deficitok = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcdeficitwarning.visible = false;
};
connectab2 = function (_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.arcadebomb.com");
navigateToURL(_local2);
};
pausegameingame = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (volumemusic != 0){
volumemainmusic = 0.5;
soundchannel1.soundTransform = new SoundTransform(volumemainmusic);
};
if (soundchannelrepair != null){
soundchannelrepair.stop();
soundchannelrepair = null;
};
pausegame = true;
mcpause.visible = true;
};
mutemusicingame = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (volumemainmusic == 1){
volumemusic = 0;
volumemainmusic = 0;
} else {
volumemainmusic = 1;
volumemusic = 1;
};
soundchannel1.soundTransform = new SoundTransform(volumemainmusic);
if (soundchannelrepair != null){
soundchannelrepair.soundTransform = new SoundTransform(volumemusic);
};
};
seraprize = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcseraprize.visible = true;
loadseraprize();
};
pausegameunpause = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (volumemainmusic == 0.5){
volumemainmusic = 1;
soundchannel1.soundTransform = new SoundTransform(volumemainmusic);
};
pausegame = false;
mcpause.visible = false;
};
lastchanceok = function (_arg1:MouseEvent):void{
mecharepairbool = false;
if (so.data.onautorepairbool[slotselected][robotused] == true){
createstoprepair();
};
soundclick.play(0, 1, new SoundTransform(volumemusic));
tournamentbool = true;
cekprogresstournament();
buwatmasukturnamen();
};
nomechanicwarning = function (_arg1:MouseEvent):void{
if (mcskipday.visible == false){
createendday();
} else {
mcnomechanicwarning.visible = false;
};
};
skipdaywarning = function (_arg1:MouseEvent):void{
if (mcnomechanicwarning.visible == false){
createendday();
} else {
mcskipday.visible = false;
};
};
lastchanceno = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
clearallwindow();
buwattournamentlosesetting();
cekprogresstournament();
};
upgradebuilding = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if ((((so.data.money[slotselected] >= upgradebuildingcost)) && ((so.data.tutorialcomplete[slotselected] == true)))){
soundsuccess.play(0, 1, new SoundTransform(volumemusic));
ubahsebanyakinimoney(upgradebuildingcost, "damage");
if (posisimarking == 2){
var _local2 = so.data.trainattacklevel;
var _local3 = slotselected;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
loadtrainattack();
mcdialogbox.mc2mark.gotoAndStop(so.data.trainattacklevel[slotselected]);
} else {
if (posisimarking == 3){
_local2 = so.data.traindefenselevel;
_local3 = slotselected;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
loadtraindefense();
mcdialogbox.mc3mark.gotoAndStop(so.data.traindefenselevel[slotselected]);
} else {
if (posisimarking == 4){
_local2 = so.data.trainspeedlevel;
_local3 = slotselected;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
loadtrainspeed();
mcdialogbox.mc4mark.gotoAndStop(so.data.trainspeedlevel[slotselected]);
};
};
};
};
};
mcseraprize.btnclose.addEventListener(MouseEvent.CLICK, seraprizeclose);
mcui.mc1.btnnotrain1.addEventListener(MouseEvent.CLICK, cannotrepairfullhealthdude);
trace(("cek isi tp : " + so.data.tp[slotselected]));
if (isNaN(so.data.tp[slotselected]) == true){
trace("ya refill");
so.data.tp[slotselected] = 5;
};
trace(("cek isi tp : " + so.data.tp[slotselected]));
mctrainresult.gotoAndStop(1);
mctrainresult.mcbarexp.gotoAndStop(1);
if (so.data.firsttimechipprize[slotselected] == 1){
so.data.firsttimechipprize[slotselected] = 2;
createfirsttimechipset();
};
trace(("TUTORIAL STEP STANDART : " + so.data.tutorialstep[slotselected]));
mcdialogbox.btnupgrade.visible = false;
mcpause.visible = false;
mcdialogbox.txt1.mouseEnabled = false;
mcspeedtimelimits.visible = false;
mctrainresult.visible = false;
mcuimechastatus.visible = false;
mcmechanicpanel.visible = false;
mcshop.visible = false;
mcshopexplanation.visible = false;
mcdefensebar.visible = false;
mcsponsor.visible = false;
mcsponsorsure.visible = false;
mcmoneyadded.mouseEnabled = false;
mcmoneyadded.mouseChildren = false;
mcridershop.visible = false;
mcchampionship.visible = false;
mcdeficitwarning.visible = false;
mccountdown.visible = false;
mccountdownresult.visible = false;
mcfinishtrain.visible = false;
mcsalarysummary.visible = false;
mcturnamenpopup.visible = false;
mcturnamenlastchance.visible = false;
mctournamentfee.visible = false;
mcfiremechanic.visible = false;
mcnofire.visible = false;
mcskipday.visible = false;
mcteamlogochoose.visible = false;
mcnomechanicwarning.visible = false;
mcseraprize.visible = false;
btnendday.addEventListener(MouseEvent.CLICK, endday);
cekpatch();
if (so.data.lvl3bool[slotselected] == false){
if (so.data.raiderlevel[slotselected] < 3){
mcui2.mc1.btntournamentno.visible = true;
mcui2.mc1.btnriderno.visible = true;
} else {
so.data.lvl3bool[slotselected] = true;
so.data.marker[slotselected][1] = 1;
so.data.marker[slotselected][5] = 1;
j = 1;
while (j <= 6) {
obj = mcui2.mc1.getChildByName(("mcnew" + j));
if (so.data.marker[slotselected][j] == 1){
obj.visible = true;
} else {
obj.visible = false;
};
j++;
};
mcui2.mc1.btntournamentno.visible = false;
mcui2.mc1.btnriderno.visible = false;
};
} else {
mcui2.mc1.btntournamentno.visible = false;
mcui2.mc1.btnriderno.visible = false;
};
if (so.data.adareport[slotselected] == true){
mcreport.visible = true;
} else {
mcreport.visible = false;
};
mcreport.mouseChildren = false;
mcreport.mouseEnabled = false;
mcindicatorhealth.visible = false;
doneactivity = false;
txtdayrepair.visible = false;
if (so.data.grade[slotselected] == 6){
so.data.grade[slotselected] = 5;
};
mcui5.mc1.txt1.text = ("GRADE " + gradenumba[so.data.grade[slotselected]]);
txtrepairpercent.mouseEnabled = false;
cekgameover();
mcgameover.btnbackmainmenu.addEventListener(MouseEvent.CLICK, gameoverok);
mcnofire.btnok.addEventListener(MouseEvent.CLICK, mechanicnofireok);
mcfiremechanic.btnok.addEventListener(MouseEvent.CLICK, mechanicfireyes);
mcfiremechanic.btncancel.addEventListener(MouseEvent.CLICK, mechanicfirecancel);
mcchampionship.mctournamentsymbol.gotoAndStop(so.data.grade[slotselected]);
if (soundchannel1 == null){
soundchannel1 = soundgarage.play(0, 999, new SoundTransform(volumemainmusic));
};
mcneedchipsetgrade.visible = false;
trace(("SIZE : " + so.size));
trace(("NUM CHILDREN : " + numChildren));
j = 1;
while (j <= 6) {
obj = mcui2.mc1.getChildByName(("mcnew" + j));
obj.visible = false;
j++;
};
mcuimechastatus.mcblacker.visible = false;
mcnextmatch.mc1.btnenter.addEventListener(MouseEvent.CLICK, enterturnamenshortcut);
mcturnamenpopup.btnok.addEventListener(MouseEvent.CLICK, turnamenpopupclose);
mcchampionship.btnok.addEventListener(MouseEvent.CLICK, okchampionship);
mcdialogbox.btnskiptutorial.visible = false;
mcdialogbox.btnskiptutorial.addEventListener(MouseEvent.CLICK, skiptutorialbool);
mcdialogbox.btncancel.visible = false;
mcdialogbox.btncancel.addEventListener(MouseEvent.CLICK, trainingcancel);
mcui.mc1.btntrain1.removeEventListener(MouseEvent.CLICK, repairautoclick);
mcui.mc1.btntrain1.addEventListener(MouseEvent.CLICK, repairautoclick);
mcui.mc1.btntrain1.removeEventListener(MouseEvent.MOUSE_OVER, repairautoover);
mcui.mc1.btntrain1.addEventListener(MouseEvent.MOUSE_OVER, repairautoover);
mcui.mc1.btntrain1.removeEventListener(MouseEvent.MOUSE_OUT, repairautoout);
mcui.mc1.btntrain1.addEventListener(MouseEvent.MOUSE_OUT, repairautoout);
mcui.mc1.txttp.text = so.data.tp[slotselected];
blumscalespeed = false;
mcui.mc1.txtmoney.text = (so.data.money[slotselected] + "G");
if (so.data.money[slotselected] < 0){
mcui.mc1.txtmoney.textColor = 0xFF0000;
};
robotused = 1;
posisimarking = 1;
mcmap.x = -378.1;
mcmap.y = -96;
mcui4.mcyear.mc1.txt1.text = so.data.yeare[slotselected];
mcui4.mcmonth.mc1.txt1.text = so.data.monthe[slotselected];
mcteamlogochoose.visible = false;
trace(("step ku : " + so.data.tutorialstep[slotselected]));
if (so.data.teambool[slotselected] == false){
trace("CREATE GOURP NAME");
creategroupname();
so.data.tutorialstep[slotselected] = 1;
txtrepairpercent.text = "+0%";
so.data.teambool[slotselected] = true;
};
if (so.data.tutorialstep[slotselected] == 5){
so.data.charmechaleg1hp[slotselected][1] = 0.7;
createtutortext4();
};
if (so.data.tutorialstep[slotselected] == 10){
createtutortext9();
};
if ((((so.data.tutorialstep[slotselected] == 15)) || ((so.data.tutorialstep[slotselected] == 16)))){
so.data.tutorialstep[slotselected] = 16;
createtutortext15();
};
if (so.data.tutorialstep[slotselected] == 17){
so.data.tutorialcomplete[slotselected] = true;
so.data.tutorialstep[slotselected] = 18;
createtutortext16();
};
trace(("CEK CHAMPIONSHIPPHASE : " + so.data.championshipphase[slotselected]));
mcmap.mcbuild1.mc1.gotoAndStop(so.data.traingaragelevel[slotselected]);
mcmap.mcbuild2.mc1.gotoAndStop(so.data.trainattacklevel[slotselected]);
i = 1;
while (i <= 3) {
objtar = mcmap.mcbuild2.mc1.getChildByName(("mctarget" + i));
objtar.mcstand.gotoAndStop(so.data.trainattacklevel[slotselected]);
i = (i + 1);
};
mcmap.mcbuild3.mc1.gotoAndStop(so.data.traindefenselevel[slotselected]);
mcmap.mcbuild3.mc2.gotoAndStop(so.data.traindefenselevel[slotselected]);
mcmap.mcbuild4.mc1.gotoAndStop(so.data.trainspeedlevel[slotselected]);
debuggeroutput("Building check complete");
i = 1;
while (i <= 3) {
objtar = mcmap.mcbuild2.mc1.getChildByName(("mctarget" + i));
objtar.statx = objtar.x;
objtar.staty = objtar.y;
debuggeroutput((("targeting " + i) + " complete"));
objtar.mcmark.mcmarker.visible = false;
i = (i + 1);
};
debuggeroutput("Building attack target check complete");
if (so.data.tutorialcomplete[slotselected] == false){
mcdialogbox.btnclose.addEventListener(MouseEvent.CLICK, nextconv);
} else {
dialogboxclose = function (_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcdialogbox.gotoAndStop(1);
mcdialogbox.btnnext.removeEventListener(MouseEvent.CLICK, clicktoclose);
};
mcdialogbox.btnclose.addEventListener(MouseEvent.CLICK, dialogboxclose);
};
loadtraingarage();
debuggeroutput("Train garage check complete");
trace("c");
cost = [undefined, 2, 4, 5];
i = 2;
while (i <= 4) {
trainout = function (_arg1:MouseEvent):void{
mctrainover.visible = false;
};
trainover = function (_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
mctrainover.visible = true;
_local2 = _arg1.target.name;
_local2 = _local2.charAt((_local2.length - 1));
_local3 = [undefined, undefined, "Train Attack", "Train Defense", "Train Speed"];
_local4 = [undefined, undefined, so.data.trainattacklevel[slotselected], so.data.traindefenselevel[slotselected], so.data.trainspeedlevel[slotselected]];
mctrainover.txt1.text = ((_local3[_local2] + "\ncost TP : ") + cost[_local4[_local2]]);
mctrainover.x = mouseX;
mctrainover.y = mouseY;
costtp = cost[_local4[_local2]];
};
trainthings = function (_arg1:MouseEvent):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volumemusic));
_local2 = _arg1.target.name;
_local2 = _local2.charAt((_local2.length - 1));
trace(((("cek harga : " + costtp) + " punya : ") + so.data.tp[slotselected]));
if (((!((_local2 == posisimarking))) && ((costtp > so.data.tp[slotselected])))){
mcui.mc1.mctpannouncement.visible = true;
mcui.mc1.mctpannouncement.gotoAndPlay(1);
} else {
if (((((!((_local2 == posisimarking))) && ((costtp <= so.data.tp[slotselected])))) && ((timewarp <= 0)))){
if (so.data.charmecharepairbool[slotselected][robotused] == true){
resetrepairing();
trace("NDA BOLE LA");
};
trace(("NAMEE : " + _local2));
if (_local2 == 2){
if (so.data.tutorialcomplete[slotselected] == true){
if ((((so.data.charmechahand1[slotselected][robotused] == 0)) && ((so.data.charmechahand2[slotselected][robotused] == 0)))){
trace("masuk sini ta but");
mcdialogbox.txtjudul.text = "-TRAINING TUTORIAL-";
mcdialogbox.txt1.text = "you must equip the arm to training Attack";
trace(("isi textnya : " + mcdialogbox.txt1.text));
mcdialogbox.btnstart.visible = false;
mcdialogbox.btnskiptutorial.visible = false;
mcdialogbox.gotoAndPlay(2);
mcdialogbox.btnnext2.addEventListener(MouseEvent.CLICK, clicktoclose);
mcdialogbox.btnnext.addEventListener(MouseEvent.CLICK, clicktoclose);
} else {
targetmap(_local2);
};
};
} else {
if (_local2 == 4){
if ((((so.data.tutorialstep[slotselected] == 3)) || ((so.data.tutorialcomplete[slotselected] == true)))){
targetmap(_local2);
};
} else {
if (so.data.tutorialcomplete[slotselected] == true){
targetmap(_local2);
};
};
};
};
};
};
objbutt = mcui.mc1.getChildByName(("btntrain" + i));
objbutt.addEventListener(MouseEvent.MOUSE_OUT, trainout);
objbutt.addEventListener(MouseEvent.MOUSE_OVER, trainover);
objbutt.addEventListener(MouseEvent.CLICK, trainthings);
i = (i + 1);
};
trace("d");
btnsalary.addEventListener(MouseEvent.CLICK, salaryload);
trace("e");
mcsalarysummary.addEventListener(MouseEvent.CLICK, salaryclick);
trace("f");
mcui2.mc1.btnmecha1.addEventListener(MouseEvent.CLICK, mecha1status);
trace("g");
mcui2.mc1.btnmechanic.addEventListener(MouseEvent.CLICK, mechanicpanel);
mcmechanicpanel.mccloseclick.addEventListener(MouseEvent.CLICK, mechanicpanelclose);
mcmechanicpanel.btnclose.addEventListener(MouseEvent.CLICK, mechanicpanelclose);
mcui2.mc1.btnfreematch.addEventListener(MouseEvent.CLICK, freematchaccess);
mcui2.mc1.btnshop.addEventListener(MouseEvent.CLICK, shopstatus);
mcshop.btnsell.addEventListener(MouseEvent.CLICK, shopsellmode);
mcshop.btnbuy.addEventListener(MouseEvent.CLICK, shopbuymode);
mcshop.btnscroll.addEventListener(MouseEvent.MOUSE_DOWN, shopscrollitem);
mcshop.btnclose.addEventListener(MouseEvent.CLICK, shopclose);
mcui2.mc1.btnrider.addEventListener(MouseEvent.CLICK, loadrider);
trace("h");
i = 1;
while (i <= 4) {
shopindexitemchoose = function (_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (so.data.tutorialstep[slotselected] == 11){
if (_local3 == 3){
mcshop.mcbtn3.gotoAndStop(3);
indexitem = _local3;
loadshop();
};
} else {
soundclick.play(0, 1, new SoundTransform(volumemusic));
_local2 = 1;
while (_local2 <= 4) {
_local4 = mcshop.getChildByName(("mcbtn" + _local2));
_local4.gotoAndStop(1);
_local2++;
};
_arg1.currentTarget.parent.gotoAndStop(3);
_local3 = _arg1.currentTarget.parent.name;
_local3 = int(_local3.charAt((_local3.length - 1)));
trace(("OK DIPILIH INDEX : " + _local3));
indexitem = _local3;
loadshop();
};
};
shopindexitemover = function (_arg1:MouseEvent):void{
_arg1.currentTarget.parent.gotoAndStop(2);
};
shopindexitemout = function (_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget.parent.name;
_local2 = int(_local2.charAt((_local2.length - 1)));
if (indexitem != _local2){
_arg1.currentTarget.parent.gotoAndStop(1);
};
};
obj = mcshop.getChildByName(("mcbtn" + i));
obj = obj.mchitter;
obj.buttonMode = true;
obj.addEventListener(MouseEvent.CLICK, shopindexitemchoose);
obj.addEventListener(MouseEvent.MOUSE_OVER, shopindexitemover);
obj.addEventListener(MouseEvent.MOUSE_OUT, shopindexitemout);
i = (i + 1);
};
trace("i");
i = 1;
while (i <= 6) {
shoplistinventoryopen = function (_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
soundclick.play(0, 1, new SoundTransform(volumemusic));
_local2 = _arg1.currentTarget.name;
_local2 = int(_local2.charAt((_local2.length - 1)));
indexinventoryselect = _local2;
mcuimechastatus.mclistequipment.visible = true;
mcuimechastatus.mclistequipment.mc1.gotoAndStop(_local2);
_local3 = [undefined, 1, 2, 3, 3, 4, 4];
indexitem = _local3[_local2];
trace(("index item : " + indexitem));
mcshopexplanation.gotoAndStop(1);
if (indexitem >= 3){
mcshopexplanation.gotoAndStop(2);
};
loadinventory();
};
obj = mcuimechastatus.getChildByName(("btnopen" + i));
obj.removeEventListener(MouseEvent.CLICK, shoplistinventoryopen);
obj.addEventListener(MouseEvent.CLICK, shoplistinventoryopen);
i = (i + 1);
};
mcuimechastatus.mclistequipment.btnclose.addEventListener(MouseEvent.CLICK, listequipmentclose);
mcuimechastatus.mccloseclick.addEventListener(MouseEvent.CLICK, mechastatusclose);
mcuimechastatus.btnclose.addEventListener(MouseEvent.CLICK, mechastatusclose);
trace("j");
mcui2.mc1.btnsponsorndabole.visible = false;
mcui2.mc1.btnsponsor.addEventListener(MouseEvent.CLICK, sponsorload);
trace("j1");
mcsponsor.mccloseclick.addEventListener(MouseEvent.CLICK, sponsorclose);
mcsponsor.btnclose.addEventListener(MouseEvent.CLICK, sponsorclose);
trace(("j2" + mcshopexplanation));
trace(("j2" + mcshopexplanation.btnclose));
mcshopexplanation.btnclose.addEventListener(MouseEvent.CLICK, shopexpclose);
trace("k");
mcshop.mcshopexplanation.btnbuy.addEventListener(MouseEvent.CLICK, shopbuy);
mcshopexplanation.btnequip.addEventListener(MouseEvent.CLICK, inventoryequip);
mcshopexplanation.mcclose.addEventListener(MouseEvent.CLICK, shopclose2);
mcshop.mcclose.addEventListener(MouseEvent.CLICK, shopclose3);
trace("l");
mcsponsorsure.btnok.addEventListener(MouseEvent.CLICK, sponsorok);
mcsponsorsure.btncancel.addEventListener(MouseEvent.CLICK, sponsorsureclose);
mcridershop.mccloseclick.addEventListener(MouseEvent.CLICK, ridershopclose);
mcridershop.btnclose.addEventListener(MouseEvent.CLICK, ridershopclose);
mcui2.mc1.btnchampionship.addEventListener(MouseEvent.MOUSE_OUT, championshipcostout);
mctournamentfee.btnok.addEventListener(MouseEvent.CLICK, okfollowtournament);
mctournamentfee.btncancel.addEventListener(MouseEvent.CLICK, okcanceltournament);
mcui2.mc1.btnchampionship.addEventListener(MouseEvent.MOUSE_OVER, championshipcostover);
mcui2.mc1.btnchampionship.addEventListener(MouseEvent.CLICK, championshipload);
mcchampionship.mccloseclick.addEventListener(MouseEvent.CLICK, championshipclose);
mcchampionship.btnclose.addEventListener(MouseEvent.CLICK, championshipclose);
trace("m");
mcchampionship.btnenter.addEventListener(MouseEvent.CLICK, championshipenter);
mcdeficitwarning.btnok.addEventListener(MouseEvent.CLICK, deficitok);
mcui3.mc1.btnab.addEventListener(MouseEvent.CLICK, connectab2);
mcui3.mc1.btnpause.addEventListener(MouseEvent.CLICK, pausegameingame);
mcui3.mc1.btnmutemusic.addEventListener(MouseEvent.CLICK, mutemusicingame);
mcui3.mc1.btnsera.addEventListener(MouseEvent.CLICK, seraprize);
mcpause.btnbackmainmenu.removeEventListener(MouseEvent.CLICK, pausegamebacktomainmenu);
mcpause.btnbackmainmenu.addEventListener(MouseEvent.CLICK, pausegamebacktomainmenu);
mcpause.addEventListener(MouseEvent.CLICK, pausegameunpause);
mcturnamenlastchance.btnok.addEventListener(MouseEvent.CLICK, lastchanceok);
mcnomechanicwarning.btnok.addEventListener(MouseEvent.CLICK, nomechanicwarning);
mcskipday.btnok.addEventListener(MouseEvent.CLICK, skipdaywarning);
mcturnamenlastchance.btnno.addEventListener(MouseEvent.CLICK, lastchanceno);
upgradebuildingcost = 1000;
mcdialogbox.btnupgrade.addEventListener(MouseEvent.CLICK, upgradebuilding);
trace("o");
i = 1;
while (i <= 4) {
obj = mcdialogbox.getChildByName((("mc" + i) + "mark"));
if (obj != null){
obj.visible = false;
};
i = (i + 1);
};
loadday();
if (so.data.onautorepairbool[slotselected][robotused] == true){
loadautorepair();
};
loadmechastatus(1);
clearallwindow();
cekgametimesecond();
if (animasiwin == true){
cekprogresstournament();
};
bolerepair = false;
}
public function cekisienergybar(_arg1:int, _arg2:Object):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
_local3 = 4;
_local4 = 14;
_local5 = 1000;
_local6 = (_arg1 / _local5);
_local6 = (_local6 * _local4);
_local6 = (_local4 - _local6);
if (_local6 < _local3){
_local6 = _local3;
};
_local7 = 0;
_local7 = (makswidth / _local6);
_local7 = (_local7 / 25);
_local8 = _arg2.mcbarenergy;
_local9 = _arg2.mcenergynumba;
_local10 = 10;
while (_local10 >= 1) {
_local11 = ((makswidth / 10) * _local10);
if ((((_local8.width >= _local11)) && ((_arg2.statenergy < _local10)))){
_arg2.statenergy = _local10;
_local12 = _arg2.getChildByName(("mcblink" + _local10));
_local12.gotoAndPlay(2);
_local9.mc1.txt1.text = _local10;
if (_arg2.name == "mcplayerbar"){
playerenergy = _local10;
} else {
if (_arg2.name == "mcenemybar"){
enemyenergy = _local10;
};
};
break;
};
_local10--;
};
if (_arg2.name == "mcplayerbar"){
if (playerloseleg == true){
trace("ya player keilangan kaki");
_local7 = (_local7 / 2);
};
} else {
if ((((_arg2.name == "mcenemybar")) && ((mcblacker.visible == false)))){
if (enemyenergy >= enemyrandskillcost){
if (skillclickframe == false){
jedaermusu--;
if (jedaermusu < 0){
jedaermusu = jedaermusutemp;
jalaninskillmusu();
};
};
};
if (enemyloseleg == true){
trace("ya enemy keilangan kaki");
_local7 = (_local7 / 2);
};
};
};
_local8.width = (_local8.width + _local7);
if (_local8.width > makswidth){
_local8.width = makswidth;
};
}
public function battlemainframe(_arg1:Event):void{
cekachievement();
if (pausegame == false){
if (battlepreend == true){
mcskillsummary.visible = false;
if (battlekoobject == "enemy"){
if (enemymecha.currentLabel == "done"){
if (enemydownbool == true){
enemymecha.gotoAndPlay("frontnoexplode");
soundlaser2.play(0, 1, new SoundTransform(volumemusic));
enemydownbool = false;
} else {
battleend = true;
mccountdownresult.mc1.gotoAndStop(2);
mccountdownresult.gotoAndPlay(2);
createbattleend();
};
} else {
if (mechaused.currentLabel == "done2"){
mcskillsummary.visible = true;
musuhstatsummary[0] = enemydownrestored;
musuhstatsummary[1] = enemydownrestored;
musuhstatsummary[2] = enemydownrestored;
musuhstatsummary[3] = enemydownrestored;
musuhstatsummary[4] = enemydownrestored;
tetapkanso2();
cekstatsummarymusu();
loadcharstatistic(mcuibattle.mcenemyindicator);
cekperubahanbardarah(musuhhp, musuhhptemp, itungehpenemy, mcuibattle.mcenemybar, "enemy");
battlepreend = false;
battleanimationbool = false;
skillselecttarget = false;
battlepreend = false;
autoattacksetting = false;
};
};
} else {
if (battlekoobject == "player"){
if (mechaused.currentLabel == "done"){
if (playerdownbool == true){
mechaused.gotoAndPlay("backnoexplode");
soundlaser2.play(0, 1, new SoundTransform(volumemusic));
playerdownbool = false;
} else {
battleend = true;
mccountdownresult.mc1.gotoAndStop(1);
mccountdownresult.gotoAndPlay(2);
createbattleend();
};
} else {
if (mechaused.currentLabel == "done2"){
mcskillsummary.visible = true;
so.data.charmechaheadhp[slotselected][robotused] = playerdownrestored;
so.data.charmechahand1hp[slotselected][robotused] = playerdownrestored;
so.data.charmechahand2hp[slotselected][robotused] = playerdownrestored;
so.data.charmechaleg1hp[slotselected][robotused] = playerdownrestored;
so.data.charmechaleg2hp[slotselected][robotused] = playerdownrestored;
tetapkanso(robotused);
cekstatnow(robotused);
trace("BWAT RESTORED");
loadcharstatistic(mcuibattle.mcplayerindicator);
cekperubahanbardarah(so.data.mechahptemp[slotselected][robotused], so.data.mechahp[slotselected][robotused], itungehpplayer, mcuibattle.mcplayerbar, "player");
battlepreend = false;
battleanimationbool = false;
skillselecttarget = false;
battlepreend = false;
autoattacksetting = false;
};
};
};
};
} else {
if ((((battlepreend == false)) && ((autoattacksetting == false)))){
soundpenontontime--;
if (itungehpplayer < (so.data.mechahp[slotselected][robotused] / 3)){
if (mcuibattle.mcplayerbar.mcredalert.currentLabel != "blinking"){
mcuibattle.mcplayerbar.mcredalert.gotoAndPlay("blinking");
};
} else {
mcuibattle.mcplayerbar.mcredalert.gotoAndStop(1);
};
if (itungehpenemy < (musuhhptemp / 3)){
if (mcuibattle.mcenemybar.mcredalert.currentLabel != "blinking"){
mcuibattle.mcenemybar.mcredalert.gotoAndPlay("blinking");
};
} else {
mcuibattle.mcenemybar.mcredalert.gotoAndStop(1);
};
tetapkanlistarraydipakebuwatcek2hp();
cekdaraheffect(listarraydipakebuwatcek2hp, enemymecha, enemymechaeffectcooldown);
if ((((battleanimationbool == false)) && ((skillselecttarget == false)))){
kurangicountdown(mcuibattle.mcspeedtimelimits, -1);
tetapkanlistarraydipakebuwatcek();
tetapkanlistarraydipakebuwatcekhp();
cekavailableskill(listarraydipakebuwatcek, mechaskill, mechaskilltipeparts, true, listarraydipakebuwatcekhp);
tetapkanlistarraydipakebuwatcek2();
tetapkanlistarraydipakebuwatcek2hp();
cekavailableskill(listarraydipakebuwatcek2, enemyskill, enemyskilltipeparts, false, listarraydipakebuwatcek2hp);
if (itungehpenemy > 1){
cekisienergybar(musuhspd, mcuibattle.mcenemybar);
};
cekisienergybar(so.data.mechaspd[slotselected][robotused], mcuibattle.mcplayerbar);
mcskillsummary.visible = true;
cekbuffcountdown(playermechabuffnegativeparts, listarraydipakebuwatcekhp, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "poison", "player", -1);
cekbuffcountdown(enemymechabuffnegativeparts, listarraydipakebuwatcek2hp, enemymechabuffnegative, enemymechabuffnegativelevel, enemymechabuffnegativecountdown, enemymechabuffnegativetimes, "poison", "enemy", -1);
} else {
mcskillsummary.visible = false;
};
if (mcuibattle.mcplayerbar.darahganti == true){
trace("YAP DARAH PLAYER GANTIII");
mcuibattle.mcplayerbar.speedperubahanhptexttime--;
itungehpplayer = (itungehpplayer - mcuibattle.mcplayerbar.speedperubahanhptxt);
mcuibattle.mcplayerbar.mcbarhealth.width = (mcuibattle.mcplayerbar.mcbarhealth.width - mcuibattle.mcplayerbar.speedperubahanhpwidth);
mcuibattle.mcplayerbar.txthp.text = ((so.data.mechahp[slotselected][robotused] + "/") + int(itungehpplayer));
if (mcuibattle.mcplayerbar.speedperubahanhptexttime <= 0){
mcuibattle.mcplayerbar.darahganti = false;
if (itungehpplayer <= 1){
mcuibattle.mcplayerbar.txthp.text = (so.data.mechahp[slotselected][robotused] + "/0");
battlepreend = true;
createbattlepreend("player");
};
};
};
if (mcuibattle.mcenemybar.darahganti == true){
mcuibattle.mcenemybar.speedperubahanhptexttime--;
itungehpenemy = (itungehpenemy - mcuibattle.mcenemybar.speedperubahanhptxt);
mcuibattle.mcenemybar.mcbarhealth.width = (mcuibattle.mcenemybar.mcbarhealth.width - mcuibattle.mcenemybar.speedperubahanhpwidth);
mcuibattle.mcenemybar.txthp.text = ((int(itungehpenemy) + "/") + int(musuhhptemp));
if (mcuibattle.mcenemybar.speedperubahanhptexttime < 0){
mcuibattle.mcenemybar.darahganti = false;
trace(("darah musu : " + itungehpenemy));
if (itungehpenemy <= 1){
mcuibattle.mcenemybar.txthp.text = ("0/" + int(musuhhptemp));
battlepreend = true;
createbattlepreend("enemy");
};
};
};
};
};
};
}
public function cekpassiveeffect(_arg1:Array, _arg2:Array, _arg3:String, _arg4:int){
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
_local5 = new Array();
_local6 = new Array();
if (_arg3 == "player"){
if (chipsettipetext[so.data.charmechachip[slotselected][_arg4]] != "-NONE-"){
_local5[_local5.length] = chipseteffectprogram[so.data.charmechachip[slotselected][_arg4]];
_local6[_local6.length] = int(objarraylisteffect[so.data.charmechachip[slotselected][_arg4]][so.data.equipmentstatus[slotselected][1][so.data.chipequipindex[slotselected]]]);
};
};
if (((!((headtipetext[_arg1[0]] == "-NONE-"))) && ((_arg2[0] > 0)))){
trace(("ada kepaya " + _arg1[0]));
_local5[_local5.length] = headeffectprogram[_arg1[0]];
trace("Asd");
_local6[_local6.length] = headpart[_arg1[0]][1];
};
if (((((!((armtipetext[_arg1[1]] == "-NONE-"))) && (!((_arg1[1] == 0))))) && ((_arg2[1] > 0)))){
trace("ada tgn 1");
_local5[_local5.length] = armeffectprogram[_arg1[1]];
_local6[_local6.length] = armpart[_arg1[1]][1];
};
if (((((!((armtipetext[_arg1[2]] == "-NONE-"))) && (!((_arg1[2] == 0))))) && ((_arg2[2] > 0)))){
trace("ada tgn 2");
_local5[_local5.length] = armeffectprogram[_arg1[2]];
_local6[_local6.length] = armpart[_arg1[2]][1];
};
if (((((!((legtipetext[_arg1[3]] == "-NONE-"))) && (!((_arg1[3] == 0))))) && ((_arg2[3] > 0)))){
trace("ada kaki 1");
_local5[_local5.length] = legeffectprogram[_arg1[3]];
_local6[_local6.length] = legpart[_arg1[3]][1];
};
if (((((!((legtipetext[_arg1[4]] == "-NONE-"))) && (!((_arg1[4] == 0))))) && ((_arg2[4] > 0)))){
trace("ada kaki 2");
_local5[_local5.length] = legeffectprogram[_arg1[4]];
_local6[_local6.length] = legpart[_arg1[4]][1];
};
trace(("cek effect : " + _local5));
trace(("cek numba : " + _local6));
_local7 = new Array();
_local8 = new Array();
_local9 = "";
_local10 = 0;
_local11 = 0;
while (_local11 < _local5.length) {
_local9 = _local5[_local11];
_local12 = true;
_local13 = 0;
while (_local13 < _local7.length) {
if (_local7[_local13] == _local9){
_local12 = false;
break;
};
_local13++;
};
if (_local12 == true){
_local10 = 0;
_local7[_local7.length] = _local9;
_local10 = (_local10 + _local6[_local11]);
_local14 = 0;
while (_local14 < _local5.length) {
if (_local14 != _local11){
if (_local9 == _local5[_local14]){
_local10 = (_local10 + _local6[_local14]);
};
};
_local14++;
};
_local8[_local8.length] = _local10;
};
_local11++;
};
if (_arg3 == "player"){
so.data.charmechaeffect[slotselected][_arg4] = _local7;
so.data.charmechaeffectnumba[slotselected][_arg4] = _local8;
} else {
if (_arg3 == "enemy"){
enemymechapassive = _local7;
enemymechapassivenumba = _local8;
};
};
trace(("hasil effect : " + _local7));
trace(("hasil numba : " + _local8));
}
public function loadmechanicpanel(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (so.data.tutorialstep[slotselected] == 6){
createtutortext5();
};
if (volumemainmusic != 0){
volumemainmusic = 0.5;
soundchannel1.soundTransform = new SoundTransform(volumemainmusic);
};
if (soundchannelongarage == null){
soundchannelongarage = soundongarage.play(0, 999, new SoundTransform(volumemusic));
};
mcmechanicpanel.txtmoney.text = (so.data.money[slotselected] + "G");
mcui2.mc1.mcblink.gotoAndStop(1);
mcmechanicpanel.visible = true;
_local1 = 1;
while (_local1 <= 4) {
_local2 = mcmechanicpanel.getChildByName(("mcmechanic" + _local1));
_local2.txtno.text = ("mechanic " + _local1);
_local3 = 0;
j = 1;
while (j <= 8) {
if (so.data.mechanic[slotselected][j].putwhere == _local1){
_local3 = j;
break;
};
j++;
};
if (_local3 != 0){
_local2.mcstaff.visible = true;
_local2.btnfire.visible = true;
_local2.txtlevel.visible = true;
_local2.txtwages.visible = true;
_local2.txtskillpt.visible = true;
_local2.mcbarexp.visible = true;
_local2.txtname.visible = true;
_local2.txtno.visible = true;
_local2.txtdrophere.visible = false;
_local2.mcstaff.gotoAndStop(so.data.mechanic[slotselected][_local3].head);
_local2.mcstaff.mcclash.visible = false;
_local2.txtlevel.text = ("Lv." + so.data.mechanic[slotselected][_local3].levele);
_local2.txtname.text = so.data.mechanic[slotselected][_local3].namee;
_local2.txtwages.text = (so.data.mechanic[slotselected][_local3].wages + "G");
_local2.txtskillpt.text = (so.data.mechanic[slotselected][_local3].skillpt + "pt");
trace(("cek expnya : " + so.data.mechanic[slotselected][_local3].experience));
trace(("cek expmaxnya : " + so.data.mechanic[slotselected][_local3].experiencemax));
_local2.mcbarexp.width = ((so.data.mechanic[slotselected][_local3].experience / so.data.mechanic[slotselected][_local3].experiencemax) * 36);
_local2.btnfire.removeEventListener(MouseEvent.CLICK, mechanicfired);
_local2.nomechanic = _local3;
_local2.btnfire.addEventListener(MouseEvent.CLICK, mechanicfired);
if (so.data.mechanic[slotselected][_local3].firetime < 0){
_local2.btnfiredisabled.visible = false;
} else {
_local2.btnfiredisabled.visible = true;
};
if (so.data.mechanic[slotselected][_local3].experience >= so.data.mechanic[slotselected][_local3].experiencemax){
_local2.mcbarexp.width = 36;
_local2.nomechanic = _local3;
_local2.btnpromote.visible = true;
_local2.btnpromote.removeEventListener(MouseEvent.CLICK, mechaniclevelup);
_local2.btnpromote.addEventListener(MouseEvent.CLICK, mechaniclevelup);
} else {
_local2.mcbarexp.width = ((so.data.mechanic[slotselected][_local3].experience / so.data.mechanic[slotselected][_local3].experiencemax) * 36);
_local2.btnpromote.visible = false;
};
} else {
if (_local3 == 0){
_local2.mcstaff.visible = false;
_local2.btnpromote.visible = false;
_local2.btnfire.visible = false;
_local2.txtlevel.visible = false;
_local2.txtwages.visible = false;
_local2.txtskillpt.visible = false;
_local2.mcbarexp.visible = false;
_local2.txtname.visible = false;
_local2.txtno.visible = false;
_local2.btnfiredisabled.visible = false;
};
};
_local1++;
};
mcmechanicpanel.mcsortwages.buttonMode = true;
mcmechanicpanel.mcsortwages.removeEventListener(MouseEvent.CLICK, mechanicsortbywages);
mcmechanicpanel.mcsortwages.addEventListener(MouseEvent.CLICK, mechanicsortbywages);
mcmechanicpanel.mcsortskill.buttonMode = true;
mcmechanicpanel.mcsortskill.removeEventListener(MouseEvent.CLICK, mechanicsortbyskill);
mcmechanicpanel.mcsortskill.addEventListener(MouseEvent.CLICK, mechanicsortbyskill);
trace(("length : " + so.data.mechanicbuyarray[slotselected].length));
trace(("opo seh isi : " + so.data.mechanicbuyarray[slotselected]));
if (so.data.mechanicbuybool[slotselected] == false){
_local1 = 0;
while (_local1 < 7) {
_local4 = randRange(((so.data.grade[slotselected] - 1) * 5), (so.data.grade[slotselected] * 5));
if (_local4 == 0){
_local4 = 1;
};
if (_local4 > 25){
_local4 = 25;
};
_local5 = randRange(0, (namerand.length - 1));
_local6 = randRange(((_local4 - 1) * 25), (_local4 * 25));
if (_local6 == 0){
_local6 = 25;
};
_local7 = randRange(((_local4 - 1) * 10), (_local4 * 10));
if (_local7 == 0){
_local7 = 10;
};
so.data.mechanicbuyarray[slotselected][_local1] = {level:_local4, head:_local5, skill:_local6, wages:_local7};
_local1++;
};
so.data.mechanicbuybool[slotselected] = true;
};
if (mechanicbuysort == "wages"){
so.data.mechanicbuyarray[slotselected].sortOn("wages", Array.NUMERIC);
mcmechanicpanel.mcsortwages.gotoAndStop(1);
mcmechanicpanel.mcsortskill.gotoAndStop(2);
} else {
if (mechanicbuysort == "skill"){
so.data.mechanicbuyarray[slotselected].sortOn("skill", Array.NUMERIC);
mcmechanicpanel.mcsortwages.gotoAndStop(2);
mcmechanicpanel.mcsortskill.gotoAndStop(1);
};
};
trace("cing");
_local1 = 0;
while (_local1 < 7) {
_local2 = mcmechanicpanel.getChildByName(("mcbuy" + int((_local1 + 1))));
trace(("cek status mech: " + so.data.mechanicbuyarray[slotselected][_local1].head));
if (so.data.mechanicbuyarray[slotselected][_local1].head == -1){
_local2.mcblock.visible = true;
_local2.mcstaff.visible = false;
_local2.txtwages.visible = false;
_local2.txtskill.visible = false;
_local2.buttonMode = false;
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, mechanicbuydown);
_local2.removeEventListener(MouseEvent.MOUSE_UP, mechanicbuyup);
} else {
_local2.mcblock.visible = false;
_local2.mcstaff.visible = true;
_local2.txtwages.visible = true;
_local2.txtskill.visible = true;
trace(("ok : " + _local2));
trace(("ok 2 : " + so.data.mechanicbuyarray[slotselected][_local1].head));
_local2.mcstaff.gotoAndStop(so.data.mechanicbuyarray[slotselected][_local1].head);
_local2.mcstaff.mcclash.visible = false;
trace(("ok 3 : " + so.data.mechanicbuyarray[slotselected][_local1].wages));
_local2.txtwages.text = (so.data.mechanicbuyarray[slotselected][_local1].wages + "G");
trace(("ok 4 : " + so.data.mechanicbuyarray[slotselected][_local1].skill));
_local2.txtskill.text = (so.data.mechanicbuyarray[slotselected][_local1].skill + "pt");
_local2.nomechanicarray = _local1;
_local2.statx = _local2.x;
_local2.staty = _local2.y;
_local2.levele = so.data.mechanicbuyarray[slotselected][_local1].level;
_local2.wages = so.data.mechanicbuyarray[slotselected][_local1].wages;
_local2.skill = so.data.mechanicbuyarray[slotselected][_local1].skill;
_local2.head = so.data.mechanicbuyarray[slotselected][_local1].head;
_local2.buttonMode = true;
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, mechanicbuydown);
_local2.removeEventListener(MouseEvent.MOUSE_UP, mechanicbuyup);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, mechanicbuydown);
_local2.addEventListener(MouseEvent.MOUSE_UP, mechanicbuyup);
};
_local1++;
};
}
public function trainok(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
if (currentLabel != "battle"){
soundchannel1 = soundgarage.play(0, 999, new SoundTransform(volumemainmusic));
stage.removeEventListener(Event.ENTER_FRAME, barexpmovement);
targetmap(1);
mctrainresult.visible = false;
} else {
if (currentLabel == "battle"){
mctrainresult.visible = false;
mcbattleprize.visible = true;
};
};
}
public function deletegamescancel(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volumemusic));
mcdeletesavegame.visible = false;
}
public function jedaertime(_arg1:Event):void{
jedaer--;
if (jedaer < 0){
skillclickframe = false;
trace(("ok abis phase : " + jedaphase));
if (jedaphase == 1){
buwatseranganmanual2();
stage.removeEventListener(Event.ENTER_FRAME, jedaertime);
} else {
if (jedaphase == 2){
skillselecttarget = false;
battleanimationbool = false;
stage.removeEventListener(Event.ENTER_FRAME, battleanimation);
stage.removeEventListener(Event.ENTER_FRAME, jedaertime);
} else {
if (jedaphase == 3){
buwatseranganmusu2();
stage.removeEventListener(Event.ENTER_FRAME, jedaertime);
};
};
};
};
}
public function loadchampionship(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
trace(("cek posisi champion phase : " + so.data.championshipphase[slotselected]));
if (so.data.championshipcountdown[slotselected] < so.data.championshipcountdownmax[slotselected]){
mcchampionship.btnok.visible = true;
} else {
mcchampionship.btnok.visible = false;
};
if (so.data.grade[slotselected] != 5){
mcchampionship.mclogo9.gotoAndStop(((so.data.grade[slotselected] * 7) + so.data.championshipmaster[slotselected]));
} else {
if (so.data.grade[slotselected] == 5){
};
};
mcchampionship.visible = true;
mcchampionship.mclogo1.gotoAndStop(so.data.teamlogo[slotselected]);
_local1 = 2;
while (_local1 <= 8) {
_local2 = mcchampionship.getChildByName(("mclogo" + int(_local1)));
_local2.gotoAndStop((((so.data.grade[slotselected] - 1) * 7) + so.data.championshipfollower[slotselected][_local1]));
if (so.data.championshipfollower[slotselected][_local1] == so.data.teamlogo[slotselected]){
_local2.gotoAndStop(_local2.totalFrames);
};
_local1++;
};
if (so.data.championshipphase[slotselected] == 4){
mcchampionship.mclogo1.x = mcchampionship.mclocator7.x;
mcchampionship.mclogo1.y = mcchampionship.mclocator7.y;
} else {
if (so.data.championshipphase[slotselected] == 1){
randenemy = so.data.championshipfollower[slotselected][2];
} else {
if (so.data.championshipphase[slotselected] == 2){
arraylistpemenangdipake = so.data.championshipwinner[slotselected];
mcchampionship.mclogo1.arah = "naek";
stage.addEventListener(Event.ENTER_FRAME, naikpemenang);
_local1 = 2;
while (_local1 <= 8) {
_local2 = mcchampionship.getChildByName(("mclogo" + int(_local1)));
trace(("lawannya no : " + so.data.championshipfollower[slotselected][_local1]));
if (so.data.championshipwinner[slotselected][_local1] == 1){
_local2.arah = "naek";
};
_local1++;
};
_local1 = 2;
while (_local1 <= 8) {
if (so.data.championshipwinner[slotselected][_local1] == 1){
randenemy = so.data.championshipfollower[slotselected][_local1];
break;
};
_local1++;
};
} else {
if (so.data.championshipphase[slotselected] == 3){
arraylistpemenangdipake = so.data.championshipwinner2[slotselected];
mcchampionship.mclogo1.x = mcchampionship.mclocator1.x;
mcchampionship.mclogo1.y = mcchampionship.mclocator1.y;
mcchampionship.mclogo1.arah = "naek";
_local3 = 2;
_local1 = 2;
while (_local1 <= 8) {
_local2 = mcchampionship.getChildByName(("mclogo" + int(_local1)));
if (so.data.championshipwinner[slotselected][_local1] == 1){
_local4 = mcchampionship.getChildByName(("mclocator" + int(_local3)));
_local2.x = _local4.x;
_local2.y = _local4.y;
_local3++;
};
_local1++;
};
_local1 = 2;
while (_local1 <= 8) {
_local2 = mcchampionship.getChildByName(("mclogo" + int(_local1)));
if (so.data.championshipwinner2[slotselected][_local1] == 1){
_local2.arah = "naek";
randenemy = so.data.championshipfollower[slotselected][_local1];
};
_local1++;
};
stage.addEventListener(Event.ENTER_FRAME, naikpemenang);
};
};
};
};
}
public function jalaninskillmusu(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (enemyskilltipeparts[enemyrandskill] == undefined){
tentuinskillmusupakemana();
} else {
if (enemyskilltipeparts[enemyrandskill] != undefined){
skillmanual = true;
cekstatsummarymusu();
_local1 = [so.data.charmechahead[slotselected][robotused], so.data.charmechahand1[slotselected][robotused], so.data.charmechahand2[slotselected][robotused], so.data.charmechaleg1[slotselected][robotused], so.data.charmechaleg2[slotselected][robotused]];
_local2 = [so.data.charmechaheadhp[slotselected][robotused], so.data.charmechahand1hp[slotselected][robotused], so.data.charmechahand2hp[slotselected][robotused], so.data.charmechaleg1hp[slotselected][robotused], so.data.charmechaleg2hp[slotselected][robotused]];
cekpassiveeffect(listarraydipakebuwatcek2, listarraydipakebuwatcek2hp, "enemy", 0);
if (enemymechatargetingauto != -1){
_local3 = false;
_local4 = 0;
while (_local4 < _local2.length) {
if (((!((_local2[_local4] == 0))) && (!((_local1[_local4] == 0))))){
_local3 = true;
break;
};
_local4++;
};
if (_local3 == true){
trace(((("cek auto attack ini : " + _local1[(enemymechatargetingauto - 1)]) + " ") + _local2[(enemymechatargetingauto - 1)]));
if (((!((_local1[(enemymechatargetingauto - 1)] == 0))) && (!((_local2[(enemymechatargetingauto - 1)] == 0))))){
partsyangdiserang = enemymechatargetingauto;
buwatseranganmusu();
} else {
do {
_local5 = [1, 1, 2, 3, 4, 5];
_local6 = _local5[randRange(0, (_local5.length - 1))];
} while (enemymechatargetingauto == _local6);
enemymechatargetingauto = _local6;
partsyangdiserang = enemymechatargetingauto;
buwatseranganmusu();
};
};
} else {
if (enemymechatargetingauto == -1){
_local3 = false;
_local4 = 0;
while (_local4 < _local2.length) {
if (((!((_local2[_local4] == 0))) && (!((_local1[_local4] == 0))))){
_local3 = true;
break;
};
_local4++;
};
trace(("cek list array pake bwat cek : " + _local1));
trace(("cek list 2 array pake bwat cek : " + _local2));
if (_local3 == true){
do {
trace(("apa se isine : " + _local1));
trace(("apa se isine 2 : " + _local2));
_local6 = randRange(0, (_local1.length - 1));
trace(("a : " + _local1[_local6]));
trace(("b : " + _local2[_local6]));
partsyangdiserang = _local6;
} while ((((_local1[partsyangdiserang] == 0)) || ((_local2[partsyangdiserang] == 0))));
partsyangdiserang++;
trace(("cek isine mbot : " + enemyskilltipeparts));
trace(((("yang diserang part ke : " + partsyangdiserang) + " cek : ") + enemyskilltipeparts[enemyrandskill]));
buwatseranganmusu();
};
};
};
};
};
}
public function countdownbattleend(_arg1:Event):void{
if (mccountdownresult.currentFrame == mccountdownresult.totalFrames){
if (winbool == true){
mctpgained.txt1.text = ptgained[so.data.grade[slotselected]];
trace("Ya ini masuk satu");
if (mctrainresult.txthp != null){
so.data.tp[slotselected] = (so.data.tp[slotselected] + ptgained[so.data.grade[slotselected]]);
stage.removeEventListener(Event.ENTER_FRAME, countdownbattleend);
itungexperience();
itungitemgained();
itungmoneygained();
};
} else {
mctpgained.txt1.text = 1;
so.data.tp[slotselected] = (so.data.tp[slotselected] + 1);
mctpgained.visible = true;
stage.removeEventListener(Event.ENTER_FRAME, countdownbattleend);
};
};
}
public function defensestart(_arg1:MouseEvent):void{
doneactivity = true;
soundclick.play(0, 1, new SoundTransform(volumemusic));
so.data.tp[slotselected] = (so.data.tp[slotselected] - costtp);
mcdialogbox.btncancel.visible = false;
mcdialogbox.btnupgrade.visible = false;
mcdefensebar.visible = true;
mcdialogbox.btnstart.removeEventListener(MouseEvent.CLICK, defensestart);
mcdialogbox.gotoAndStop(1);
mcdialogbox.visible = false;
mccountdown.gotoAndPlay(2);
mccountdown.addEventListener(Event.ENTER_FRAME, countdownstartspeed);
}
public function loadchampionshipbar(){
if (so.data.championshipcountdown[slotselected] > 0){
if (so.data.firsttimetournament[slotselected] == false){
so.data.firsttimetournament[slotselected] = true;
createfirsttimetournamenttext();
};
if (mcnextmatch.currentFrame == 1){
mcnextmatch.gotoAndPlay(2);
};
mcnextmatch.mc1.btnenter.visible = false;
mcnextmatch.mc1.mcbartime.visible = true;
mcnextmatch.mc1.mctime.visible = true;
mcnextmatch.mc1.mctime2.visible = false;
mcnextmatch.mc1.mctime.width = ((so.data.championshipcountdown[slotselected] / so.data.championshipcountdownmax[slotselected]) * 68);
mcnextmatch.mc1.mctime2.width = mcnextmatch.mc1.mctime.width;
trace(((("a : " + so.data.championshipcountdown[slotselected]) + " ") + so.data.championshipcountdownmax[slotselected]));
if ((((so.data.championshipcountdown[slotselected] >= so.data.championshipcountdownmax[slotselected])) && (!((so.data.championshipphase[slotselected] == 5))))){
mcturnamenlastchance.visible = true;
mcnextmatch.gotoAndStop(1);
if (so.data.championshipphase[slotselected] == 1){
mcturnamenlastchance.txt2.text = "-FIRST ROUND-";
} else {
if (so.data.championshipphase[slotselected] == 2){
mcturnamenlastchance.txt2.text = "-QUARTERFINAL-";
} else {
if (so.data.championshipphase[slotselected] == 3){
mcturnamenlastchance.txt2.text = "-SEMIFINAL-";
} else {
if (so.data.championshipphase[slotselected] == 4){
mcturnamenlastchance.txt2.text = "-FINAL-";
};
};
};
};
};
};
}
public function targetmap(_arg1:int):void{
var _local2:*;
var _local3:Point;
var _local4:*;
var _local5:Point;
var _local6:*;
var _local7:*;
if (soundchannelrepair != null){
soundchannelrepair.stop();
soundchannelrepair = null;
};
clearallwindow();
mcdialogbox.gotoAndStop(1);
mcdialogbox.btnnext.removeEventListener(MouseEvent.CLICK, clicktoclose);
if (_arg1 != 1){
mcindicatorhealth.visible = false;
btnsalary.visible = false;
mcreport.visible = false;
mcui3.gotoAndPlay("down");
mcui2.gotoAndPlay("down");
mcui.gotoAndPlay("down");
mcui5.gotoAndPlay("down");
btnendday.visible = false;
txtrepairpercent.visible = false;
} else {
btnendday.visible = false;
txtrepairpercent.visible = false;
};
if (posisimarking == 1){
buildingused.mcraider1.visible = false;
};
mechaused.removeEventListener(Event.ENTER_FRAME, mechaloadstandart);
mechaused.visible = false;
targetmark = _arg1;
timewarp = 25;
timewarptemp = timewarp;
_local2 = mcmap.getChildByName(("mcmarking" + _arg1));
_local3 = new Point(_local2.x, _local2.y);
_local3 = mcmap.localToGlobal(_local3);
trace(("tujuan : " + _arg1));
_local4 = mcmap.getChildByName(("mcmarking" + posisimarking));
_local5 = new Point(_local4.x, _local4.y);
_local5 = mcmap.localToGlobal(_local5);
trace(("asal : " + posisimarking));
mcmap.selisihx = ((_local5.x - _local3.x) / timewarp);
mcmap.selisihy = ((_local5.y - _local3.y) / timewarp);
_local6 = 1;
while (_local6 <= 4) {
_local7 = mcdialogbox.getChildByName((("mc" + _local6) + "mark"));
if (_local7 != null){
_local7.visible = false;
};
_local6++;
};
stage.addEventListener(Event.ENTER_FRAME, mapswap);
}
public function cekautoattackefektiftoenemy(){
var _local1:*;
trace(("part serang : " + partsyangdiserang));
trace(("grade : " + so.data.grade[slotselected]));
trace(("rand enemy : " + randenemy));
_local1 = (partsyangdiserang - 1);
if (_local1 == 0){
trace(("kepala yg diserang : " + itemsummary[so.data.grade[slotselected]]));
trace(("kepala yg diserang : " + itemsummary[so.data.grade[slotselected]][randenemy]));
elemenygdiserang = headclass[itemsummary[so.data.grade[slotselected]][randenemy][_local1]];
} else {
if ((((_local1 == 1)) || ((_local1 == 2)))){
elemenygdiserang = armclass[itemsummary[so.data.grade[slotselected]][randenemy][_local1]];
} else {
if ((((_local1 == 3)) || ((_local1 == 4)))){
elemenygdiserang = legclass[itemsummary[so.data.grade[slotselected]][randenemy][_local1]];
};
};
};
}
public function sponsoronout(_arg1:MouseEvent):void{
mcsponsorexp.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, sponsorexpfollowmouse);
}
public function scrollitemshop(_arg1:Event):void{
var _local2:Point;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
stage.addEventListener(MouseEvent.MOUSE_UP, shopscrollupitem);
mcshop.btnscroll.x = 200;
_local2 = new Point(mouseX, mouseY);
_local2 = mcshop.globalToLocal(_local2);
mcshop.btnscroll.y = _local2.y;
if (mcshop.btnscroll.y < 77){
stage.removeEventListener(Event.ENTER_FRAME, scrollitemshop);
mcshop.btnscroll.y = 77;
_local7 = 0;
while (_local7 < shopitem.length) {
shopitem[_local7].x = shopitem[_local7].statx;
shopitem[_local7].y = shopitem[_local7].staty;
_local7++;
};
};
if (mcshop.btnscroll.y > 193){
stage.removeEventListener(Event.ENTER_FRAME, scrollitemshop);
mcshop.btnscroll.y = 190;
};
_local3 = (shopitem[(shopitem.length - 1)].y - shopitem[0].y);
_local4 = 119;
_local5 = (_local3 / _local4);
_local6 = (mcshop.btnscroll.y - 77);
_local6 = (_local6 * _local5);
_local7 = 0;
while (_local7 < shopitem.length) {
shopitem[_local7].y = (shopitem[_local7].staty - _local6);
_local2 = new Point(208.8, 163);
_local2 = shopitem[_local7].globalToLocal(_local2);
shopitem[_local7].mcmasker.x = _local2.x;
shopitem[_local7].mcmasker.y = _local2.y;
shopitem[_local7].mcmasker2.x = _local2.x;
shopitem[_local7].mcmasker2.y = _local2.y;
_local7++;
};
}
public function trainresultload(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
soundchannel1.stop();
soundwintraining.play(0, 1, new SoundTransform(volumemusic));
mcfinishtrain.gotoAndPlay(2);
trace("b");
mctrainresult.mcraider.gotoAndStop(so.data.raider[slotselected]);
trace("bh");
mctrainresult.txtlevel.text = ("Lv." + so.data.raiderlevel[slotselected]);
trace(("bf " + mctrainresult.txtlevel.text));
mctrainresult.txtexp.text = ((so.data.raiderexp[slotselected] + "/") + so.data.raiderexpmax[slotselected]);
trace("bd");
loadstandartmecha(mctrainresult.mcmecha);
trace("bs");
mctrainresult.mctrainingtipe.gotoAndStop(targetmark);
trace("ba");
mctrainresult.txtname.text = so.data.raidername[slotselected];
trace("a");
mctrainresult.btnok.addEventListener(MouseEvent.CLICK, trainok);
trace("c");
mctrainresult.btnundo.visible = false;
mctrainresult.btnundo.removeEventListener(MouseEvent.CLICK, undoskillpt);
mctrainresult.btnundo.addEventListener(MouseEvent.CLICK, undoskillpt);
mctrainresult.txthp.text = ("HP : " + so.data.raiderhp[slotselected]);
mctrainresult.txtatk.text = ("ATK : " + so.data.raideratk[slotselected]);
mctrainresult.txtdef.text = ("DEF : " + so.data.raiderdef[slotselected]);
mctrainresult.txtspd.text = ("SPD : " + so.data.raiderspd[slotselected]);
ridertemp = [so.data.raiderhp[slotselected], so.data.raideratk[slotselected], so.data.raiderdef[slotselected], so.data.raiderspd[slotselected]];
mctrainresult.txtavailable.text = "";
mctrainresult.btnundo.visible = false;
_local1 = 1;
while (_local1 <= 4) {
_local2 = mctrainresult.getChildByName(("btnplus" + _local1));
_local2.removeEventListener(MouseEvent.CLICK, clickpointdistribute);
_local2.addEventListener(MouseEvent.CLICK, clickpointdistribute);
_local2.visible = false;
_local1++;
};
if (posisimarking == 4){
_local3 = int(mcspeedtimelimits.txt1.text);
_local4 = 0;
if (_local3 < timelimitslevel[so.data.trainspeedlevel[slotselected]]){
_local3 = speedgain[so.data.trainspeedlevel[slotselected]];
_local4 = expgain[so.data.trainspeedlevel[slotselected]];
} else {
if (_local3 < timelimitslevel2[so.data.trainspeedlevel[slotselected]]){
_local3 = speedgain2[so.data.trainspeedlevel[slotselected]];
_local4 = expgain2[so.data.trainspeedlevel[slotselected]];
} else {
_local3 = 0;
_local4 = 0;
};
};
hasiltraining = _local3;
trace("d");
mctrainresult.txtstatgain.text = ("SPD +" + _local3);
if (so.data.charmechahead[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][4] = (so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][4] + (hasiltraining * 2));
};
if (so.data.charmechahand1[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][4] = (so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][4] + hasiltraining);
};
if (so.data.charmechahand2[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][4] = (so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][4] + hasiltraining);
};
if (so.data.charmechaleg1[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][4] = (so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][4] + hasiltraining);
};
if (so.data.charmechaleg2[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][4] = (so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][4] + hasiltraining);
};
so.data.charmechaheadspdreal[slotselected][robotused] = (so.data.charmechaheadspdreal[slotselected][robotused] + (hasiltraining * 2));
so.data.charmechahand1spdreal[slotselected][robotused] = (so.data.charmechahand1spdreal[slotselected][robotused] + hasiltraining);
so.data.charmechahand2spdreal[slotselected][robotused] = (so.data.charmechahand2spdreal[slotselected][robotused] + hasiltraining);
so.data.charmechaleg1spdreal[slotselected][robotused] = (so.data.charmechaleg1spdreal[slotselected][robotused] + hasiltraining);
so.data.charmechaleg2spdreal[slotselected][robotused] = (so.data.charmechaleg2spdreal[slotselected][robotused] + hasiltraining);
if (so.data.tutorialcomplete[slotselected] == true){
_local5 = randRange(0, 3);
_local5 = (_local5 / 10);
so.data.charmechaleg1hp[slotselected][robotused] = (so.data.charmechaleg1hp[slotselected][robotused] - _local5);
if (so.data.charmechaleg1hp[slotselected][robotused] < 0){
so.data.charmechaleg1hp[slotselected][robotused] = 0;
};
so.data.equipmenthp[slotselected][4][so.data.leg1equipindex[slotselected]] = so.data.charmechaleg1hp[slotselected][robotused];
_local5 = randRange(0, 3);
_local5 = (_local5 / 10);
so.data.charmechaleg2hp[slotselected][robotused] = (so.data.charmechaleg2hp[slotselected][robotused] - _local5);
if (so.data.charmechaleg2hp[slotselected][robotused] < 0){
so.data.charmechaleg2hp[slotselected][robotused] = 0;
};
so.data.equipmenthp[slotselected][4][so.data.leg2equipindex[slotselected]] = so.data.charmechaleg2hp[slotselected][robotused];
};
} else {
if (posisimarking == 3){
_local3 = defensesuccess;
_local4 = 0;
trace(((("bandingin 1 : " + _local3) + " ma : ") + defenselimit1[so.data.traindefenselevel[slotselected]]));
if (_local3 >= defenselimit1[so.data.traindefenselevel[slotselected]]){
_local3 = speedgain[so.data.traindefenselevel[slotselected]];
_local4 = expgain[so.data.traindefenselevel[slotselected]];
} else {
trace(((("bandingin 2 : " + _local3) + " ma : ") + defenselimit2[so.data.traindefenselevel[slotselected]]));
if (_local3 >= defenselimit2[so.data.traindefenselevel[slotselected]]){
_local3 = speedgain2[so.data.traindefenselevel[slotselected]];
_local4 = expgain2[so.data.traindefenselevel[slotselected]];
} else {
_local3 = 0;
_local4 = 0;
};
};
hasiltraining = _local3;
trace("d");
mctrainresult.txtstatgain.text = ("DEF +" + _local3);
if (so.data.charmechahead[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][3] = (so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][3] + (hasiltraining * 2));
};
if (so.data.charmechahand1[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][3] = (so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][3] + hasiltraining);
};
if (so.data.charmechahand2[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][3] = (so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][3] + hasiltraining);
};
if (so.data.charmechaleg1[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][3] = (so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][3] + hasiltraining);
};
if (so.data.charmechaleg2[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][3] = (so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][3] + hasiltraining);
};
so.data.charmechaheaddefreal[slotselected][robotused] = (so.data.charmechaheaddefreal[slotselected][robotused] + (hasiltraining * 2));
so.data.charmechahand1defreal[slotselected][robotused] = (so.data.charmechahand1defreal[slotselected][robotused] + hasiltraining);
so.data.charmechahand2defreal[slotselected][robotused] = (so.data.charmechahand2defreal[slotselected][robotused] + hasiltraining);
so.data.charmechaleg1defreal[slotselected][robotused] = (so.data.charmechaleg1defreal[slotselected][robotused] + hasiltraining);
so.data.charmechaleg2defreal[slotselected][robotused] = (so.data.charmechaleg2defreal[slotselected][robotused] + hasiltraining);
_local5 = randRange(0, 3);
_local5 = (_local5 / 10);
so.data.charmechaheadhp[slotselected][robotused] = (so.data.charmechaheadhp[slotselected][robotused] - _local5);
if (so.data.charmechaheadhp[slotselected][robotused] < 0){
so.data.charmechaheadhp[slotselected][robotused] = 0;
};
so.data.equipmenthp[slotselected][2][so.data.headequipindex[slotselected]] = so.data.charmechaheadhp[slotselected][robotused];
} else {
if (posisimarking == 2){
_local3 = cekdeadtarget;
_local4 = 0;
if (_local3 == trainattackresult1[so.data.trainattacklevel[slotselected]]){
_local3 = speedgain[so.data.trainattacklevel[slotselected]];
_local4 = expgain[so.data.trainattacklevel[slotselected]];
} else {
if ((((_local3 >= trainattackresult2[so.data.trainattacklevel[slotselected]])) && ((_local3 > 0)))){
_local3 = speedgain2[so.data.trainattacklevel[slotselected]];
_local4 = expgain2[so.data.trainattacklevel[slotselected]];
} else {
_local3 = 0;
_local4 = 0;
};
};
hasiltraining = _local3;
trace("d");
mctrainresult.txtstatgain.text = ("ATK +" + _local3);
if (so.data.charmechahead[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][2] = (so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]][2] + (hasiltraining * 2));
};
if (so.data.charmechahand1[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][2] = (so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]][2] + hasiltraining);
};
if (so.data.charmechahand2[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][2] = (so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]][2] + hasiltraining);
};
if (so.data.charmechaleg1[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][2] = (so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]][2] + hasiltraining);
};
if (so.data.charmechaleg2[slotselected][robotused] != 0){
so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][2] = (so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]][2] + hasiltraining);
};
so.data.charmechaheadatkreal[slotselected][robotused] = (so.data.charmechaheadatkreal[slotselected][robotused] + (hasiltraining * 2));
so.data.charmechahand1atkreal[slotselected][robotused] = (so.data.charmechahand1atkreal[slotselected][robotused] + hasiltraining);
so.data.charmechahand2atkreal[slotselected][robotused] = (so.data.charmechahand2atkreal[slotselected][robotused] + hasiltraining);
so.data.charmechaleg1atkreal[slotselected][robotused] = (so.data.charmechaleg1atkreal[slotselected][robotused] + hasiltraining);
so.data.charmechaleg2atkreal[slotselected][robotused] = (so.data.charmechaleg2atkreal[slotselected][robotused] + hasiltraining);
_local5 = randRange(0, 3);
_local5 = (_local5 / 10);
if (so.data.charmechahand1[slotselected][robotused] != 0){
so.data.charmechahand1hp[slotselected][robotused] = (so.data.charmechahand1hp[slotselected][robotused] - _local5);
if (so.data.charmechahand1hp[slotselected][robotused] < 0){
so.data.charmechahand1hp[slotselected][robotused] = 0;
};
so.data.equipmenthp[slotselected][3][so.data.hand1equipindex[slotselected]] = so.data.charmechahand1hp[slotselected][robotused];
};
_local5 = randRange(0, 3);
_local5 = (_local5 / 10);
if (so.data.charmechahand2[slotselected][robotused] != 0){
so.data.charmechahand2hp[slotselected][robotused] = (so.data.charmechahand2hp[slotselected][robotused] - _local5);
if (so.data.charmechahand2hp[slotselected][robotused] < 0){
so.data.charmechahand2hp[slotselected][robotused] = 0;
};
so.data.equipmenthp[slotselected][3][so.data.hand2equipindex[slotselected]] = so.data.charmechahand2hp[slotselected][robotused];
};
};
};
};
cekmaksimumpergrade();
mctrainresult.btnokfalse.visible = true;
if (_local4 > 0){
cekexptonaeklevel(_local4);
} else {
exptemp = 0;
expincreasetime = 0;
stage.addEventListener(Event.ENTER_FRAME, barexpmovement);
};
}
public function resetmechanicteam(_arg1:int):void{
var _local2:*;
var _local3:*;
_local2 = 1;
while (_local2 <= 8) {
_local3 = buildingused.getChildByName(("mcstaff" + _local2));
if (_local3 != null){
if (so.data.mechanic[slotselected][_local2].team == _arg1){
_local3.visible = false;
};
};
_local2++;
};
}
public function mendaltahap(_arg1:Event):void{
var _local2:*;
var _local3:*;
_local2 = 0;
_local3 = 0;
while (_local3 < crowdimage.length) {
crowdimage[_local3].countdown--;
if (crowdimage[_local3].mendalbool == true){
_local2++;
};
if ((((crowdimage[_local3].countdown < 0)) && ((crowdimage[_local3].mendalbool == false)))){
crowdimage[_local3].mendalbool = true;
crowdimage[_local3].gotoAndPlay(("hit" + crowdimage[_local3].facee));
};
_local3++;
};
trace(((("bandingin " + _local2) + " ") + int((crowdimage.length - 1))));
if (_local2 >= crowdimage.length){
_local3 = 0;
while (_local3 < crowdimage.length) {
crowdimage[_local3].mendalbool = false;
_local3++;
};
createpenontonriuh();
stage.removeEventListener(Event.ENTER_FRAME, mendaltahap);
trace("REMOVE BWAT LOMPAT");
};
}
public function buwattournamentlosesetting(){
if (so.data.championshipphase[slotselected] == 1){
tesbuwatmenangsatu();
tesbuwatmenangdua();
} else {
if (so.data.championshipphase[slotselected] == 2){
tesbuwatmenangdua();
};
};
so.data.championshipcountdownmax[slotselected] = 0;
so.data.championshipcountdown[slotselected] = 0;
so.data.championshipcountdownexpired[slotselected] = 0;
so.data.championshipphase[slotselected] = 5;
tournamentlose = true;
trace(("YA TURNAMEN LOSE " + tournamentlose));
}
public function createeffectpoison(_arg1:Object, _arg2:Point):void{
var _local3:*;
var _local4:*;
_local3 = [effectshock];
_local4 = randRange(0, (_local3.length - 1));
effectimage[effectimage.length] = new (_local3[0]);
addChild(effectimage[(effectimage.length - 1)]);
effectimage[(effectimage.length - 1)].x = (_arg2.x + randRange(-20, 10));
effectimage[(effectimage.length - 1)].y = (_arg2.y + randRange(-5, 5));
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].mouseChildren = false;
effectimage[(effectimage.length - 1)].mouseEnabled = false;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
}
public function mechanicsortbyskill(_arg1:MouseEvent):void{
mechanicbuysort = "skill";
loadmechanicpanel();
}
public function tambaiatkrealmecha(_arg1:int, _arg2:int){
so.data.charmechaheadatkreal[slotselected][_arg2] = (so.data.charmechaheadatkreal[slotselected][_arg2] + _arg1);
if (so.data.charmechahand1[slotselected][_arg2] != 0){
so.data.charmechahand1atkreal[slotselected][_arg2] = (so.data.charmechahand1atkreal[slotselected][_arg2] + _arg1);
};
if (so.data.charmechahand2[slotselected][_arg2] != 0){
so.data.charmechahand2atkreal[slotselected][_arg2] = (so.data.charmechahand2atkreal[slotselected][_arg2] + _arg1);
};
so.data.charmechaleg1atkreal[slotselected][_arg2] = (so.data.charmechaleg1atkreal[slotselected][_arg2] + _arg1);
trace(((("ditambai effect jadi : " + so.data.charmechaleg1atkreal[slotselected][_arg2]) + " yaitu : ") + _arg1));
so.data.charmechaleg2atkreal[slotselected][_arg2] = (so.data.charmechaleg2atkreal[slotselected][_arg2] + _arg1);
}
public function loadrepairing(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local1 = false;
_local2 = 1;
while (_local2 <= 2) {
_local3 = buildingused.getChildByName(("mcmecha" + _local2));
if (_local3 != null){
if (so.data.charmecharepairbool[slotselected][robotused] == true){
_local1 = true;
var _local12 = so.data.charmecharepairtime[slotselected];
var _local13 = _local2;
var _local14 = (_local12[_local13] + 1);
_local12[_local13] = _local14;
if (so.data.charmecharepairtime[slotselected][_local2] < so.data.charmecharepairtimetemp[slotselected][_local2]){
_local7 = 1;
while (_local7 <= 8) {
if (so.data.mechanic[slotselected][_local7].team == _local2){
so.data.mechanic[slotselected][_local7].experienceloading--;
if (so.data.mechanic[slotselected][_local7].experienceloading < 0){
so.data.mechanic[slotselected][_local7].experienceloading = so.data.mechanic[slotselected][_local7].experienceloadingtemp;
trace(((("bandingin : " + so.data.mechanic[slotselected][_local7].experience) + " ma : ") + so.data.mechanic[slotselected][_local7].experiencemax));
if (so.data.mechanic[slotselected][_local7].experience == so.data.mechanic[slotselected][_local7].experiencemax){
so.data.mechanic[slotselected][_local7].experience++;
_local8 = buildingused.getChildByName(("mclvlup" + _local7));
if (_local8 != null){
_local8.mcpoingained.mc1.gotoAndStop(1);
_local8.mcpoingained.mc1.txt1.text = "LEVEL UP";
_local8.gotoAndPlay(2);
};
} else {
if (so.data.mechanic[slotselected][_local7].experience < so.data.mechanic[slotselected][_local7].experiencemax){
so.data.mechanic[slotselected][_local7].experience++;
};
};
};
};
_local7++;
};
_local3.mcprogress.visible = true;
_local3.mcprogress.mcbar.width = ((so.data.charmecharepairtime[slotselected][_local2] / so.data.charmecharepairtimetemp[slotselected][_local2]) * 98);
so.data.charmechaheadhp[slotselected][_local2] = (so.data.charmechaheadhp[slotselected][_local2] + so.data.repairhead[slotselected][_local2]);
so.data.charmechahand1hp[slotselected][_local2] = (so.data.charmechahand1hp[slotselected][_local2] + so.data.repairhand1[slotselected][_local2]);
so.data.charmechahand2hp[slotselected][_local2] = (so.data.charmechahand2hp[slotselected][_local2] + so.data.repairhand2[slotselected][_local2]);
so.data.charmechaleg1hp[slotselected][_local2] = (so.data.charmechaleg1hp[slotselected][_local2] + so.data.repairleg1[slotselected][_local2]);
so.data.charmechaleg2hp[slotselected][_local2] = (so.data.charmechaleg2hp[slotselected][_local2] + so.data.repairleg2[slotselected][_local2]);
cekstattotal(_local2);
cekstatnow(_local2);
} else {
soundsuccess.play(0, 1, new SoundTransform(volumemusic));
buildingused.mcrepairdone.mcpoingained.gotoAndStop(1);
buildingused.mcrepairdone.mcpoingained.mc1.txt1.text = "REPAIR DONE";
buildingused.mcrepairdone.gotoAndPlay(2);
mechaused.mchead.gotoAndPlay(2);
mechaused.mchand1.gotoAndPlay(2);
mechaused.mchand2.gotoAndPlay(2);
mechaused.mcleg1.gotoAndPlay(2);
mechaused.mcleg2.gotoAndPlay(2);
mechaused.addEventListener(Event.ENTER_FRAME, mechaloadstandart);
_local3.mcprogress.visible = false;
so.data.charmecharepairbool[slotselected][robotused] = false;
so.data.charmechaheadhp[slotselected][_local2] = 1;
so.data.charmechahand1hp[slotselected][_local2] = 1;
so.data.charmechahand2hp[slotselected][_local2] = 1;
so.data.charmechaleg1hp[slotselected][_local2] = 1;
so.data.charmechaleg2hp[slotselected][_local2] = 1;
resetmechanicteam(_local2);
loadmechanicingarage(_local2);
};
_local4 = ["mchead", "mchand1", "mchand2", "mcleg1", "mcleg2"];
_local5 = [so.data.charmechaheadhp[slotselected][_local2], so.data.charmechahand1hp[slotselected][_local2], so.data.charmechahand2hp[slotselected][_local2], so.data.charmechaleg1hp[slotselected][_local2], so.data.charmechaleg2hp[slotselected][_local2]];
_local6 = ["mctxthead", "mctxthand1", "mctxthand2", "mctxtleg1", "mctxtleg2"];
_local2 = 0;
while (_local2 < _local4.length) {
_local9 = mcuimechastatus.getChildByName(_local4[_local2]);
_local10 = 0;
if (_local5[_local2] > 0.7){
_local10 = 1;
} else {
if (_local5[_local2] > 0.4){
_local10 = 2;
} else {
if (_local5[_local2] < 0.4){
_local10 = 3;
};
};
};
_local9.gotoAndStop(_local10);
_local11 = mcuimechastatus.getChildByName(_local6[_local2]);
_local11.gotoAndStop(_local10);
_local11.mc1.txt1.text = (int((_local5[_local2] * 100)) + "%");
if (((_local5[_local2] * 100) >= 100)){
_local11.mc1.txt1.text = "100%";
};
_local2++;
};
} else {
_local3.mcprogress.visible = false;
};
};
_local2++;
};
if (_local1 == true){
trace(("Ada repairing : " + soundchannelrepair));
if (soundchannelrepair == null){
soundchannelrepair = soundrepair.play(0, 999, new SoundTransform(volumemusic));
};
} else {
if (soundchannelrepair != null){
soundchannelrepair.stop();
soundchannelrepair = null;
};
};
}
public function loadtraindefense(){
var _local1:*;
var _local2:*;
buildingused = mcmap.mcbuild3;
mechaused = buildingused.mcmecha1;
buildingused.mc1.gotoAndStop(so.data.traindefenselevel[slotselected]);
mechaused.visible = true;
mechaused.addEventListener(Event.ENTER_FRAME, mechaloadstandart);
_local1 = 1;
while (_local1 <= 4) {
_local2 = mcdefensebar.getChildByName(("btn" + _local1));
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, defensebuttonclick);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, defensebuttonclick);
_local1++;
};
loadtutordefense();
}
public function overtarget(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
mcmousebattle.visible = true;
mcmousebattle.x = mouseX;
mcmousebattle.y = mouseY;
Mouse.hide();
_local2 = 0;
_local3 = 1;
while (_local3 <= 5) {
_local4 = [undefined, 0, 1, 2, 3, 4];
_local5 = [undefined];
_local6 = mcmechaenemy2.getChildByName(("btn" + _local3));
if ((((mcmousebattle.mchit.hitTestObject(_local6) == true)) && (!((itemsummary[so.data.grade[slotselected]][musuhtipe][_local4[_local3]] == 0))))){
if (musuhstatsummary[(_local3 - 1)] > 0){
_local2 = _local3;
_local7 = mcmechaenemy2.getChildByName(("mc" + _local3));
_local7.visible = true;
_local8 = [undefined, 2, 3, 3, 4, 4];
parentexplanationused = mcbattleexplanation;
indexitem = _local8[_local3];
loaditemshopclick(itemsummary[so.data.grade[slotselected]][musuhtipe][_local4[_local3]], 1, 0);
break;
};
};
_local3++;
};
if (_local2 != 0){
_local3 = 1;
while (_local3 <= 5) {
if (_local3 != _local2){
_local6 = mcmechaenemy2.getChildByName(("mc" + _local3));
_local6.visible = false;
};
_local3++;
};
} else {
trace("iya nda ada ygkena OVER");
txteffectivetext.visible = false;
_local3 = 1;
while (_local3 <= 5) {
_local6 = mcmechaenemy2.getChildByName(("mc" + _local3));
_local6.visible = false;
mcbattleexplanation.visible = false;
_local3++;
};
};
}
public function loaditemshopclick(_arg1:int, _arg2:int, _arg3:int):void{
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:*;
_local4 = [undefined, headclass, armclass, armclass, legclass, legclass];
_local5 = [undefined, undefined, headclass, armclass, legclass];
_local6 = [0, 0, 0];
_local7 = [0, 0, 0];
_local8 = [0, 0, 0];
_local9 = [0, 0, 0];
stage.removeEventListener(Event.ENTER_FRAME, shopextractor);
trace(((((("CEK STATUS ON CLICK : " + indexitem) + " ") + _arg1) + " ") + _arg2));
tipeitemshop = _arg1;
parentexplanationused.visible = true;
trace("1");
if (mcshop != null){
if (mcshop.visible == true){
if (parentexplanationused.currentFrame != 3){
trace("BUKAN FRAME 3");
parentexplanationused.btnbuy.visible = true;
parentexplanationused.btnequip.visible = false;
parentexplanationused.btnsell.visible = false;
} else {
if (parentexplanationused.currentFrame == 3){
trace("FRAME 3");
parentexplanationused.btnbuy.visible = false;
parentexplanationused.btnequip.visible = false;
if (shopinidiequip == true){
parentexplanationused.btnsell.visible = false;
} else {
if (shopinidiequip == false){
parentexplanationused.btnsell.visible = true;
};
};
};
};
} else {
if (mcshop.visible == false){
parentexplanationused.btnbuy.visible = false;
parentexplanationused.btnequip.visible = true;
};
};
};
trace(("2 " + parentexplanationused.mc1));
trace(("3 " + parentexplanationused.mc1.mc1));
parentexplanationused.mc1.mc1.mcnotavailable.visible = false;
parentexplanationused.mc1.mc1.txtname.text = ((objarraylistname[indexitem][_arg1] + " V") + _arg2);
trace(("namanya diisi : " + parentexplanationused.mc1.mc1.txtname.text));
parentexplanationused.mc1.mc1.mcgrade.gotoAndStop(objarraylistsummary[indexitem][_arg1][_arg2]);
parentexplanationused.mc1.mc1.mcsymbol.gotoAndStop(indexitem);
trace("3");
if (currentLabel != "battle"){
_local10 = 1;
while (_local10 <= 3) {
_local12 = parentexplanationused.mc1.getChildByName(("mcskill1" + int(_local10)));
trace("4");
_local12.visible = false;
_local10++;
};
if (indexitem == 2){
parentexplanationused.mc1.mcskill11.visible = true;
parentexplanationused.mc1.mcskill11.mcnotavailable.visible = false;
parentexplanationused.mc1.mcskill11.gotoAndStop(headskillframe[_arg1]);
parentexplanationused.mc1.mcskill11.frameparts = _arg1;
parentexplanationused.mc1.mcskill11.tipeparts = 1;
parentexplanationused.mc1.mcskill11.tipepartske = 1;
parentexplanationused.mc1.mcskill11.skillno = 1;
parentexplanationused.mc1.mcskill11.addEventListener(MouseEvent.MOUSE_OVER, skillonover);
parentexplanationused.mc1.mcskill12.visible = false;
parentexplanationused.mc1.mcskill13.visible = false;
} else {
if (indexitem == 3){
trace("5");
_local10 = 0;
while (_local10 < armskillframe[_arg1].length) {
_local12 = parentexplanationused.mc1.getChildByName(("mcskill1" + int((_local10 + 1))));
_local12.visible = true;
_local12.mcnotavailable.visible = false;
_local12.gotoAndStop(armskillframe[_arg1][_local10]);
_local12.frameparts = _arg1;
_local12.tipeparts = 2;
_local12.tipepartske = 0;
_local12.skillno = _local10;
_local12.addEventListener(MouseEvent.MOUSE_OVER, skillonover);
_local10++;
};
};
};
};
trace("1");
_local10 = 1;
while (_local10 <= 4) {
_local11 = parentexplanationused.mc1.mc1.mcpreview.getChildByName(("mc" + _local10));
_local11.visible = false;
_local10++;
};
trace(("vis false sudah, ambel " + _arg2));
_local11 = parentexplanationused.mc1.mc1.mcpreview.getChildByName(("mc" + indexitem));
_local11.visible = true;
if (indexitem != 1){
_local11.mc1.gotoAndStop(_arg1);
} else {
_local11.gotoAndStop(_arg2);
};
trace("done -1");
if (indexitem == 1){
if (currentLabel != "battle"){
if (mcshop.visible == true){
parentexplanationused.txtrequired.text = "SHOP";
};
};
parentexplanationused.mc1.mc1.mctipe2.visible = false;
itemkeshopbuy = _arg2;
trace("done 0");
parentexplanationused.mc1.mc1.txtstatus.text = "-N/A-\n-N/A-\n-N/A-\n-N/A-";
parentexplanationused.mc1.mc1.txtexp.text = (((objarraylisttext[indexitem][_arg1] + " ") + int(objarraylisteffect[_arg1][_arg2])) + "%");
parentexplanationused.mc1.mc1.txtprice.text = (listpricechip[indexitem][_arg2] + "G");
if (parentexplanationused.currentFrame == 3){
parentexplanationused.mc1.mc1.txtprice.text = (("Price : " + int((listpricechip[indexitem][_arg2] / 2))) + "G");
shoppricenow = int((listpricechip[indexitem][_arg2] / 2));
} else {
shoppricenow = int(listpricechip[indexitem][_arg2]);
};
} else {
parentexplanationused.mc1.mc1.mctipe2.visible = true;
trace(((("INDEX ITEM : " + indexitem) + " TIPENE : ") + _arg1));
_local13 = [undefined, "E", "D", "C", "B", "A"];
parentexplanationused.mc1.mc1.mctipe2.gotoAndStop(_local5[indexitem][_arg1]);
if (currentLabel != "battle"){
if (mcshop.visible == true){
parentexplanationused.txtrequired.text = ("REQ. CHIPSET GRADE " + _local13[objarraylistsummary[indexitem][_arg1][_arg2]]);
};
};
if ((((mcuimechastatus.visible == true)) || ((parentexplanationused.currentFrame == 3)))){
_local14 = [undefined, undefined, so.data.equipmentstatus[slotselected][2][_arg3], so.data.equipmentstatus[slotselected][3][_arg3], so.data.equipmentstatus[slotselected][4][_arg3]];
trace(("Cek isi save 1 : " + _local14[indexitem]));
parentexplanationused.mc1.mc1.txtstatus.text = (((((((((("HP : " + _local14[indexitem][1]) + "\n") + "ATK: ") + int(_local14[indexitem][2])) + "\n") + "DEF: ") + int(_local14[indexitem][3])) + "\n") + "SPD: ") + int(_local14[indexitem][4]));
parentexplanationused.mc1.mc1.txtexp.text = objarraylisttext[indexitem][_arg1];
if (parentexplanationused.currentFrame == 3){
parentexplanationused.mc1.mc1.txtprice.text = (("Price : " + int((objarraylistsummaryprice[indexitem][_arg1] / 2))) + "G");
shoppricenow = int((objarraylistsummaryprice[indexitem][_arg1] / 2));
};
_local6[0] = _local14[indexitem][1];
_local7[0] = _local14[indexitem][2];
_local8[0] = _local14[indexitem][3];
_local9[0] = _local14[indexitem][4];
} else {
trace(((("done 1" + _arg1) + " ") + _arg2));
trace(("isi status : " + objarraylistsummaryeffect[indexitem][_arg1][_arg2]));
_local15 = int(objarraylistsummaryeffect[indexitem][_arg1][_arg2][0]);
_local16 = int(objarraylistsummaryeffect[indexitem][_arg1][_arg2][1]);
_local17 = int(objarraylistsummaryeffect[indexitem][_arg1][_arg2][2]);
_local18 = int(objarraylistsummaryeffect[indexitem][_arg1][_arg2][3]);
if (currentLabel == "battle"){
_local15 = (_local15 + (_local15 * persentambahmusu[so.data.grade[slotselected]]));
_local16 = (_local16 + (_local16 * persentambahmusu[so.data.grade[slotselected]]));
_local17 = (_local17 + (_local17 * persentambahmusu[so.data.grade[slotselected]]));
_local18 = (_local18 + (_local18 * persentambahmusu[so.data.grade[slotselected]]));
};
parentexplanationused.mc1.mc1.txtstatus.text = (((((((((("HP : " + _local15) + "\n") + "ATK: ") + _local16) + "\n") + "DEF: ") + _local17) + "\n") + "SPD: ") + _local18);
parentexplanationused.mc1.mc1.txtexp.text = objarraylisttext[indexitem][_arg1];
parentexplanationused.mc1.mc1.txtprice.text = (objarraylistsummaryprice[indexitem][_arg1] + "G");
shoppricenow = objarraylistsummaryprice[indexitem][_arg1];
_local6[0] = objarraylistsummaryeffect[indexitem][_arg1][_arg2][0];
trace(("masukin hp list : " + _local6[0]));
_local7[0] = objarraylistsummaryeffect[indexitem][_arg1][_arg2][1];
_local8[0] = objarraylistsummaryeffect[indexitem][_arg1][_arg2][2];
_local9[0] = objarraylistsummaryeffect[indexitem][_arg1][_arg2][3];
};
};
if (currentLabel == "battle"){
elemenygdiserang = parentexplanationused.mc1.mc1.mctipe2.currentFrame;
txteffectivetext.visible = true;
if ((((((((tipekudiover == 1)) && ((elemenygdiserang == 2)))) || ((((tipekudiover == 2)) && ((elemenygdiserang == 3)))))) || ((((tipekudiover == 3)) && ((elemenygdiserang == 1)))))){
txteffectivetext.text = "EFFECTIVE";
txteffectivetext.textColor = 0xFF00;
} else {
if ((((((((tipekudiover == 2)) && ((elemenygdiserang == 1)))) || ((((tipekudiover == 3)) && ((elemenygdiserang == 2)))))) || ((((tipekudiover == 1)) && ((elemenygdiserang == 3)))))){
txteffectivetext.text = "INEFFECTIVE";
txteffectivetext.textColor = 0xFF0000;
} else {
txteffectivetext.text = "";
};
};
};
trace(("cek hp LIST SEK : " + _local6));
trace("done 2");
trace(("NAMANE : " + parentexplanationused.name));
if ((((parentexplanationused.name == "mcshopexplanation")) && (!((parentexplanationused.currentFrame == 3))))){
_local19 = false;
trace(("cek 1 :" + objarraylistso[indexitem][slotselected][robotused]));
if (indexitem == 1){
parentexplanationused.mc1.mc2.mctipe2.visible = false;
parentexplanationused.mc1.mc2.txtname.text = ((objarraylistname[indexitem][objarraylistso[indexitem][slotselected][robotused]] + " V") + so.data.charmechachiplevel[slotselected][robotused]);
} else {
if ((((((indexitem == 3)) && ((so.data.charmechahand1[slotselected][robotused] == 0)))) || ((((indexitem == 4)) && ((so.data.charmechaleg1[slotselected][robotused] == 0)))))){
parentexplanationused.mc1.mc2.mctipe2.visible = false;
_local19 = true;
parentexplanationused.mc1.mc2.mcnotavailable.visible = true;
parentexplanationused.mc1.mc2.txtname.text = "-None-";
} else {
parentexplanationused.mc1.mc2.txtname.text = objarraylistname[indexitem][objarraylistso[indexitem][slotselected][robotused]];
parentexplanationused.mc1.mc2.mcnotavailable.visible = false;
};
};
_local10 = 1;
while (_local10 <= 3) {
_local12 = parentexplanationused.mc1.getChildByName(("mcskill2" + int(_local10)));
_local12.visible = false;
_local10++;
};
if (_local19 == true){
trace("NA hand 1");
parentexplanationused.mc1.mc2.mcgrade.visible = false;
trace("1");
parentexplanationused.mc1.mc2.mcsymbol.gotoAndStop(1);
trace("2");
_local10 = 1;
while (_local10 <= 4) {
_local11 = parentexplanationused.mc1.mc2.mcpreview.getChildByName(("mc" + _local10));
_local11.visible = false;
_local10++;
};
trace("3");
parentexplanationused.mc1.mc2.txtexp.text = "-No Description-";
trace("4");
parentexplanationused.mc1.mc2.txtstatus.text = (((((("-None-" + "\n") + "-None-") + "\n") + "-None-") + "\n") + "-None-");
trace("5");
} else {
if (_local19 == false){
parentexplanationused.mc1.mc2.mcnotavailable.visible = false;
trace("b");
parentexplanationused.mc1.mc2.mcgrade.visible = true;
if (indexitem == 1){
trace(("yg diequip isinya grade cek : " + so.data.equipmentstatus[slotselected][1]));
trace(("yg diequip isinya grade : " + objarraylistsummary[1][so.data.charmechachip[slotselected][robotused]][so.data.equipmentstatus[slotselected][indexitem][so.data.chipequipindex[slotselected]]]));
parentexplanationused.mc1.mc2.mcgrade.gotoAndStop(objarraylistsummary[1][so.data.charmechachip[slotselected][robotused]][so.data.equipmentstatus[slotselected][indexitem][so.data.chipequipindex[slotselected]]]);
} else {
parentexplanationused.mc1.mc2.mcgrade.gotoAndStop(objarraylistsummary[indexitem][objarraylistso[indexitem][slotselected][robotused]][1]);
};
trace("c");
parentexplanationused.mc1.mc2.mcsymbol.gotoAndStop(indexitem);
trace("a");
_local10 = 1;
while (_local10 <= 4) {
_local11 = parentexplanationused.mc1.mc2.mcpreview.getChildByName(("mc" + _local10));
_local11.visible = false;
_local10++;
};
trace(("vis false 2 sudah, ambel " + _arg1));
_local11 = parentexplanationused.mc1.mc2.mcpreview.getChildByName(("mc" + indexitem));
_local11.visible = true;
if (indexitem != 1){
_local11.mc1.gotoAndStop(objarraylistso[indexitem][slotselected][robotused]);
} else {
_local11.gotoAndStop(indexitem);
};
if (indexitem == 1){
parentexplanationused.mc1.mc2.mctipe2.visible = false;
parentexplanationused.mc1.mc2.txtstatus.text = "-N/A-\n-N/A-\n-N/A-\n-N/A-";
parentexplanationused.mc1.mc2.txtexp.text = (((objarraylisttext[indexitem][objarraylistso[indexitem][slotselected][robotused]] + " ") + int(objarraylisteffect[so.data.charmechachip[slotselected][robotused]][so.data.charmechachiplevel[slotselected][robotused]])) + "%");
} else {
_local14 = [undefined, undefined, so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]], so.data.equipmentstatus[slotselected][3][so.data.hand1equipindex[slotselected]], so.data.equipmentstatus[slotselected][4][so.data.leg1equipindex[slotselected]]];
trace(("Cek isi save 2 : " + _local14[indexitem]));
parentexplanationused.mc1.mc2.txtstatus.text = (((((((((("HP : " + _local14[indexitem][1]) + "\n") + "ATK: ") + int(_local14[indexitem][2])) + "\n") + "DEF: ") + int(_local14[indexitem][3])) + "\n") + "SPD: ") + int(_local14[indexitem][4]));
_local21 = [undefined, undefined, so.data.charmechahead[slotselected][robotused], so.data.charmechahand1[slotselected][robotused], so.data.charmechaleg1[slotselected][robotused]];
parentexplanationused.mc1.mc2.txtexp.text = objarraylisttext[indexitem][_local21[indexitem]];
parentexplanationused.mc1.mc2.mctipe2.visible = true;
parentexplanationused.mc1.mc2.mctipe2.gotoAndStop(_local5[indexitem][_local21[indexitem]]);
_local6[1] = _local14[indexitem][1];
_local7[1] = _local14[indexitem][2];
_local8[1] = _local14[indexitem][3];
_local9[1] = _local14[indexitem][4];
};
if (indexitem == 2){
parentexplanationused.mc1.mcskill21.visible = true;
parentexplanationused.mc1.mcskill21.mcnotavailable.visible = false;
parentexplanationused.mc1.mcskill21.gotoAndStop(headskillframe[so.data.charmechahead[slotselected]]);
parentexplanationused.mc1.mcskill22.visible = false;
parentexplanationused.mc1.mcskill23.visible = false;
parentexplanationused.mc1.mcskill21.frameparts = so.data.charmechahead[slotselected][robotused];
parentexplanationused.mc1.mcskill21.tipeparts = 1;
parentexplanationused.mc1.mcskill21.tipepartske = 1;
parentexplanationused.mc1.mcskill21.skillno = 1;
parentexplanationused.mc1.mcskill21.addEventListener(MouseEvent.MOUSE_OVER, skillonover);
} else {
if (indexitem == 3){
trace(("apa ae framee : " + armskillframe[so.data.charmechahand1[slotselected][robotused]]));
_local10 = 0;
while (_local10 < armskillframe[so.data.charmechahand1[slotselected][robotused]].length) {
_local12 = parentexplanationused.mc1.getChildByName(("mcskill2" + int((_local10 + 1))));
_local12.visible = true;
_local12.mcnotavailable.visible = false;
_local12.gotoAndStop(armskillframe[so.data.charmechahand1[slotselected][robotused]][_local10]);
_local12.frameparts = so.data.charmechahand1[slotselected][robotused];
_local12.tipeparts = 2;
_local12.tipepartske = 1;
_local12.skillno = _local10;
_local12.addEventListener(MouseEvent.MOUSE_OVER, skillonover);
_local10++;
};
};
};
};
};
_local20 = false;
if (indexitem == 3){
_local10 = 1;
while (_local10 <= 3) {
_local12 = parentexplanationused.mc1.getChildByName(("mcskill3" + int(_local10)));
trace(((("ada nda tu : " + _local10) + " ") + _local12));
_local12.visible = false;
_local10++;
};
trace("a");
if (so.data.charmechahand2[slotselected][robotused] != 0){
_local10 = 0;
while (_local10 < armskillframe[so.data.charmechahand2[slotselected][robotused]].length) {
_local12 = parentexplanationused.mc1.getChildByName(("mcskill3" + int((_local10 + 1))));
_local12.visible = true;
_local12.mcnotavailable.visible = false;
_local12.gotoAndStop(armskillframe[so.data.charmechahand2[slotselected][robotused]][_local10]);
_local12.frameparts = so.data.charmechahand2[slotselected][robotused];
_local12.tipeparts = 2;
_local12.tipepartske = 2;
_local12.skillno = _local10;
_local12.addEventListener(MouseEvent.MOUSE_OVER, skillonover);
_local10++;
};
parentexplanationused.mc1.mc3.txtname.text = objarraylistname[indexitem][so.data.charmechahand2[slotselected][robotused]];
parentexplanationused.mc1.mc3.mcgrade.gotoAndStop(objarraylistsummary[indexitem][so.data.charmechahand2[slotselected][robotused]][1]);
parentexplanationused.mc1.mc3.mcsymbol.gotoAndStop(indexitem);
_local10 = 1;
while (_local10 <= 4) {
_local11 = parentexplanationused.mc1.mc3.mcpreview.getChildByName(("mc" + _local10));
_local11.visible = false;
_local10++;
};
_local11 = parentexplanationused.mc1.mc3.mcpreview.getChildByName(("mc" + indexitem));
_local11.visible = true;
if (indexitem != 1){
_local11.mc1.gotoAndStop(so.data.charmechahand2[slotselected][robotused]);
} else {
_local11.gotoAndStop(indexitem);
};
if (indexitem == 1){
parentexplanationused.mc1.mc3.mctipe2.visible = false;
parentexplanationused.mc1.mc3.txtstatus.text = "-N/A-\n-N/A-\n-N/A-\n-N/A-";
parentexplanationused.mc1.mc3.txtexp.text = (((objarraylisttext[indexitem][so.data.charmechahand2[slotselected][robotused]] + " ") + int(objarraylisteffect[indexitem][so.data.charmechahand2[slotselected][robotused]])) + "%");
} else {
trace("index item bukan 1");
_local14 = [undefined, undefined, so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]], so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]], so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]]];
trace(("Cek isi save 3 : " + _local14[indexitem]));
parentexplanationused.mc1.mc3.txtstatus.text = (((((((((("HP : " + _local14[indexitem][1]) + "\n") + "ATK: ") + int(_local14[indexitem][2])) + "\n") + "DEF: ") + int(_local14[indexitem][3])) + "\n") + "SPD: ") + int(_local14[indexitem][4]));
_local21 = [undefined, undefined, so.data.charmechahead[slotselected][robotused], so.data.charmechahand2[slotselected][robotused], so.data.charmechaleg2[slotselected][robotused]];
parentexplanationused.mc1.mc3.txtexp.text = objarraylisttext[indexitem][_local21[indexitem]];
parentexplanationused.mc1.mc3.mctipe2.visible = true;
parentexplanationused.mc1.mc3.mctipe2.gotoAndStop(_local4[indexitem][_local21[indexitem]]);
_local6[2] = _local14[indexitem][1];
_local7[2] = _local14[indexitem][2];
_local8[2] = _local14[indexitem][3];
_local9[2] = _local14[indexitem][4];
};
} else {
_local20 = true;
parentexplanationused.mc1.mc3.mctipe2.visible = false;
};
};
trace(("NO AVAILABEL 1 : " + _local20));
trace(("cek kaki ke duax : " + so.data.charmechaleg2[slotselected][robotused]));
if (indexitem == 4){
_local10 = 1;
while (_local10 <= 3) {
_local12 = parentexplanationused.mc1.getChildByName(("mcskill3" + int(_local10)));
_local12.visible = false;
_local10++;
};
trace("1");
if (so.data.charmechaleg2[slotselected][robotused] != 0){
parentexplanationused.mc1.mc3.txtname.text = objarraylistname[indexitem][so.data.charmechaleg2[slotselected][robotused]];
parentexplanationused.mc1.mc3.mcgrade.gotoAndStop(objarraylistsummary[indexitem][so.data.charmechaleg2[slotselected][robotused]][1]);
parentexplanationused.mc1.mc3.mcsymbol.gotoAndStop(indexitem);
trace("2");
_local10 = 1;
while (_local10 <= 4) {
_local11 = parentexplanationused.mc1.mc3.mcpreview.getChildByName(("mc" + _local10));
_local11.visible = false;
_local10++;
};
_local11 = parentexplanationused.mc1.mc3.mcpreview.getChildByName(("mc" + indexitem));
_local11.visible = true;
if (indexitem != 1){
_local11.mc1.gotoAndStop(so.data.charmechaleg2[slotselected][robotused]);
} else {
_local11.gotoAndStop(indexitem);
};
trace("3");
if (indexitem == 1){
parentexplanationused.mc1.mc3.txtstatus.text = "-N/A-\n-N/A-\n-N/A-\n-N/A-";
parentexplanationused.mc1.mc3.txtexp.text = (((objarraylisttext[indexitem][so.data.charmechaleg2[slotselected][robotused]] + " ") + int(objarraylisteffect[indexitem][so.data.charmechaleg2[slotselected][robotused]])) + "%");
} else {
trace("index item bukan 1");
_local14 = [undefined, undefined, so.data.equipmentstatus[slotselected][2][so.data.headequipindex[slotselected]], so.data.equipmentstatus[slotselected][3][so.data.hand2equipindex[slotselected]], so.data.equipmentstatus[slotselected][4][so.data.leg2equipindex[slotselected]]];
trace(("Cek isi save 3 : " + _local14[indexitem]));
parentexplanationused.mc1.mc3.txtstatus.text = (((((((((("HP : " + _local14[indexitem][1]) + "\n") + "ATK: ") + int(_local14[indexitem][2])) + "\n") + "DEF: ") + int(_local14[indexitem][3])) + "\n") + "SPD: ") + int(_local14[indexitem][4]));
parentexplanationused.mc1.mc3.txtexp.text = objarraylisttext[indexitem][_arg1];
_local21 = [undefined, undefined, so.data.charmechahead[slotselected][robotused], so.data.charmechahand2[slotselected][robotused], so.data.charmechaleg2[slotselected][robotused]];
parentexplanationused.mc1.mc3.mctipe2.visible = true;
parentexplanationused.mc1.mc3.mctipe2.gotoAndStop(_local4[indexitem][_local21[indexitem]]);
_local6[2] = _local14[indexitem][1];
_local7[2] = _local14[indexitem][2];
_local8[2] = _local14[indexitem][3];
_local9[2] = _local14[indexitem][4];
};
trace("4");
} else {
_local20 = true;
};
};
trace(("NO AVAILABEL : " + _local20));
if (_local20 == true){
parentexplanationused.mc1.mc3.mcnotavailable.visible = true;
parentexplanationused.mc1.mc3.txtname.text = "-None-";
parentexplanationused.mc1.mc3.mcgrade.visible = false;
parentexplanationused.mc1.mc3.mcsymbol.gotoAndStop(1);
_local10 = 1;
while (_local10 <= 4) {
_local11 = parentexplanationused.mc1.mc3.mcpreview.getChildByName(("mc" + _local10));
_local11.visible = false;
_local10++;
};
parentexplanationused.mc1.mc3.txtexp.text = "-No Description-";
parentexplanationused.mc1.mc3.txtstatus.text = (((((("-None-" + "\n") + "-None-") + "\n") + "-None-") + "\n") + "-None-");
} else {
parentexplanationused.mc1.mc3.mcnotavailable.visible = false;
};
};
if (parentexplanationused.currentFrame == 3){
parentexplanationused.mc1.mchparrow.visible = false;
parentexplanationused.mc1.mcatkarrow.visible = false;
parentexplanationused.mc1.mcdefarrow.visible = false;
parentexplanationused.mc1.mcspdarrow.visible = false;
} else {
if ((((parentexplanationused.name == "mcshopexplanation")) && (!((parentexplanationused.currentFrame == 3))))){
if (indexitem == 1){
parentexplanationused.mc1.mchparrow.visible = false;
parentexplanationused.mc1.mcatkarrow.visible = false;
parentexplanationused.mc1.mcdefarrow.visible = false;
parentexplanationused.mc1.mcspdarrow.visible = false;
} else {
if (indexitem == 2){
if (_local6[0] > _local6[1]){
parentexplanationused.mc1.mchparrow.visible = true;
parentexplanationused.mc1.mchparrow.gotoAndStop("up");
} else {
if (_local6[0] < _local6[1]){
parentexplanationused.mc1.mchparrow.visible = true;
parentexplanationused.mc1.mchparrow.gotoAndStop("down");
} else {
trace("ini laaa");
parentexplanationused.mc1.mchparrow.visible = false;
parentexplanationused.mc1.mchparrow.gotoAndStop("down");
};
};
if (_local7[0] > _local7[1]){
parentexplanationused.mc1.mcatkarrow.visible = true;
parentexplanationused.mc1.mcatkarrow.gotoAndStop("up");
} else {
if (_local7[0] < _local7[1]){
parentexplanationused.mc1.mcatkarrow.visible = true;
parentexplanationused.mc1.mcatkarrow.gotoAndStop("down");
} else {
trace("ini laaa");
parentexplanationused.mc1.mcatkarrow.visible = false;
parentexplanationused.mc1.mcatkarrow.gotoAndStop("down");
};
};
if (_local8[0] > _local8[1]){
parentexplanationused.mc1.mcdefarrow.visible = true;
parentexplanationused.mc1.mcdefarrow.gotoAndStop("up");
} else {
if (_local8[0] < _local8[1]){
parentexplanationused.mc1.mcdefarrow.visible = true;
parentexplanationused.mc1.mcdefarrow.gotoAndStop("down");
} else {
trace("ini laaa");
parentexplanationused.mc1.mcdefarrow.visible = false;
parentexplanationused.mc1.mcdefarrow.gotoAndStop("down");
};
};
if (_local9[0] > _local9[1]){
parentexplanationused.mc1.mcspdarrow.visible = true;
parentexplanationused.mc1.mcspdarrow.gotoAndStop("up");
} else {
if (_local9[0] < _local9[1]){
parentexplanationused.mc1.mcspdarrow.visible = true;
parentexplanationused.mc1.mcspdarrow.gotoAndStop("down");
} else {
trace("ini laaa");
parentexplanationused.mc1.mcspdarrow.visible = false;
parentexplanationused.mc1.mcspdarrow.gotoAndStop("down");
};
};
} else {
if (indexitem >= 3){
if (_local6[0] > _local6[1]){
parentexplanationused.mc1.mchparrow.visible = true;
parentexplanationused.mc1.mchparrow.gotoAndStop("up");
} else {
if (_local6[0] > _local6[2]){
parentexplanationused.mc1.mchparrow.visible = true;
parentexplanationused.mc1.mchparrow.gotoAndStop("down");
} else {
if (_local6[0] < _local6[1]){
parentexplanationused.mc1.mchparrow.visible = true;
parentexplanationused.mc1.mchparrow.gotoAndStop("up");
} else {
if (_local6[0] < _local6[2]){
parentexplanationused.mc1.mchparrow.visible = true;
parentexplanationused.mc1.mchparrow.gotoAndStop("down");
} else {
trace("ini laaa");
parentexplanationused.mc1.mchparrow.visible = false;
parentexplanationused.mc1.mchparrow.gotoAndStop("down");
};
};
};
};
if (_local7[0] > _local7[1]){
parentexplanationused.mc1.mcatkarrow.visible = true;
parentexplanationused.mc1.mcatkarrow.gotoAndStop("up");
} else {
if (_local7[0] > _local7[2]){
parentexplanationused.mc1.mcatkarrow.visible = true;
parentexplanationused.mc1.mcatkarrow.gotoAndStop("up");
} else {
if (_local7[0] < _local7[1]){
parentexplanationused.mc1.mcatkarrow.visible = true;
parentexplanationused.mc1.mcatkarrow.gotoAndStop("down");
} else {
if (_local7[0] < _local7[2]){
parentexplanationused.mc1.mcatkarrow.visible = true;
parentexplanationused.mc1.mcatkarrow.gotoAndStop("down");
} else {
trace("ini laaa");
parentexplanationused.mc1.mcatkarrow.visible = false;
parentexplanationused.mc1.mcatkarrow.gotoAndStop("down");
};
};
};
};
if (_local8[0] > _local8[1]){
parentexplanationused.mc1.mcdefarrow.visible = true;
parentexplanationused.mc1.mcdefarrow.gotoAndStop("up");
} else {
if (_local8[0] > _local8[2]){
parentexplanationused.mc1.mcdefarrow.visible = true;
parentexplanationused.mc1.mcdefarrow.gotoAndStop("down");
} else {
if (_local8[0] < _local8[1]){
parentexplanationused.mc1.mcdefarrow.visible = true;
parentexplanationused.mc1.mcdefarrow.gotoAndStop("up");
} else {
if (_local8[0] < _local8[2]){
parentexplanationused.mc1.mcdefarrow.visible = true;
parentexplanationused.mc1.mcdefarrow.gotoAndStop("down");
} else {
trace("ini laaa");
parentexplanationused.mc1.mcdefarrow.visible = false;
parentexplanationused.mc1.mcdefarrow.gotoAndStop("down");
};
};
};
};
if (_local9[0] > _local9[1]){
parentexplanationused.mc1.mcspdarrow.visible = true;
parentexplanationused.mc1.mcspdarrow.gotoAndStop("up");
} else {
if (_local9[0] > _local9[2]){
parentexplanationused.mc1.mcspdarrow.visible = true;
parentexplanationused.mc1.mcspdarrow.gotoAndStop("down");
} else {
if (_local9[0] < _local9[1]){
parentexplanationused.mc1.mcspdarrow.visible = true;
parentexplanationused.mc1.mcspdarrow.gotoAndStop("up");
} else {
if (_local9[0] < _local9[2]){
parentexplanationused.mc1.mcspdarrow.visible = true;
parentexplanationused.mc1.mcspdarrow.gotoAndStop("down");
} else {
trace("ini laaa");
parentexplanationused.mc1.mcspdarrow.visible = false;
parentexplanationused.mc1.mcspdarrow.gotoAndStop("down");
};
};
};
};
};
};
};
trace(("CEK HASIL HP :" + _local6));
};
};
}
public function loadsponsor(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
mcsponsor.visible = true;
_local1 = 1;
while (_local1 <= 4) {
_local2 = mcsponsor.getChildByName(("mc" + _local1));
_local2.gotoAndStop((((so.data.grade[slotselected] - 1) * 4) + _local1));
_local2.no = _local1;
_local2.buttonMode = true;
_local2.removeEventListener(MouseEvent.CLICK, sponsoronclick);
_local2.removeEventListener(MouseEvent.MOUSE_OVER, sponsoronover);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, sponsoronout);
_local2.addEventListener(MouseEvent.CLICK, sponsoronclick);
_local2.addEventListener(MouseEvent.MOUSE_OVER, sponsoronover);
_local2.addEventListener(MouseEvent.MOUSE_OUT, sponsoronout);
_local3 = mcsponsor.getChildByName(("txt" + _local1));
if ((((_local1 == 4)) && ((so.data.grade[slotselected] == 5)))){
_local3.text = (("Contract Duration : 2 month\nValue : " + sponsortextvalue[(((so.data.grade[slotselected] - 1) * 4) + _local1)]) + " G per contract");
} else {
_local3.text = (((("Contract Duration : " + _local1) + " month\nValue : ") + sponsortextvalue[(((so.data.grade[slotselected] - 1) * 4) + _local1)]) + " G per contract");
};
_local4 = mcsponsor.getChildByName(("mcok" + _local1));
if (_local1 == 1){
trace(((("bandingin raider level : " + so.data.raiderlevel[slotselected]) + " ma : ") + sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + _local1)]));
if (so.data.grade[slotselected] >= sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + _local1)]){
_local4.visible = true;
} else {
_local4.visible = false;
};
} else {
if (_local1 == 2){
_local5 = 0;
if (so.data.raiderlevel[slotselected] >= sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + _local1)]){
_local4.visible = true;
} else {
_local4.visible = false;
};
} else {
if (_local1 == 3){
if (so.data.win[slotselected] >= sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + _local1)]){
_local4.visible = true;
} else {
_local4.visible = false;
};
} else {
if (_local1 == 4){
if (so.data.money[slotselected] >= sponsorreq[(((so.data.grade[slotselected] - 1) * 4) + _local1)]){
_local4.visible = true;
} else {
_local4.visible = false;
};
};
};
};
};
_local1++;
};
}
public function tetapkanlistarraydipakebuwatcek2hp(){
listarraydipakebuwatcek2hp = [musuhstatsummary[0], musuhstatsummary[1], musuhstatsummary[2], musuhstatsummary[3], musuhstatsummary[4]];
}
public function cekhanddlldll(_arg1:int, _arg2:int, _arg3:int){
var _local4:*;
var _local5:*;
trace(("NO HAND : " + _arg1));
_local4 = 0;
while (_local4 < armskilleffect[_arg1].length) {
if (armskilleffect[_arg1][_local4] != undefined){
texttulis[texttulis.length] = armskilleffect[_arg1][_local4];
textdamagepercent[textdamagepercent.length] = armskilleffectpersen[_arg1][_local4];
};
_local4++;
};
trace(("total atk 1 : " + _arg3));
_local5 = ((_arg3 / 3) / 100);
trace(("total atk multiplier : " + _local5));
trace(((("cek itungan : " + _arg1) + " ") + _arg2));
_local5 = (armskilldamage[_arg1][_arg2] * _local5);
trace(("base damage: " + armskilldamage[_arg1][_arg2]));
trace(("jd bonus atk : " + _local5));
textdamage[0] = int((armskilldamage[_arg1][_arg2] + _local5));
trace(("jadi damage : " + (armskilldamage[_arg1][_arg2] + _local5)));
damagemasuk = (textdamage[0] * damagemultiplier);
}
public function cekstatnow(_arg1:int):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local2 = 0;
while (_local2 < so.data.charmechaeffect[slotselected][_arg1].length) {
trace((" ada apa ae : " + so.data.charmechaeffect[slotselected][_arg1][_local2]));
if ((((((so.data.charmechaeffect[slotselected][_arg1][_local2] == "heal1")) || ((so.data.charmechaeffect[slotselected][_arg1][_local2] == "heal2")))) || ((so.data.charmechaeffect[slotselected][_arg1][_local2] == "heal3")))){
partsyangdiserang = 1;
adanegativebuff = so.data.charmechaeffect[slotselected][_arg1][_local2];
isiinibuff(adanegativebuff, playermechabuffnegativeparts, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes);
adanegativebuff = "";
} else {
if (so.data.charmechaeffect[slotselected][_arg1][_local2] == "down"){
if (playerdahdown == false){
playerdahdown = true;
playerdownbool = true;
trace(("direstore sebanyak : " + so.data.charmechaeffectnumba[slotselected][_arg1][_local2]));
playerdownrestored = (so.data.charmechaeffectnumba[slotselected][_arg1][_local2] / 100);
};
};
};
_local2++;
};
_local3 = [so.data.charmechaheadhp[slotselected][robotused], so.data.charmechahand1hp[slotselected][robotused], so.data.charmechahand2hp[slotselected][robotused], so.data.charmechaleg1hp[slotselected][robotused], so.data.charmechaleg2hp[slotselected][robotused]];
trace(("cek darah leg 1 : " + so.data.charmechaleg1hp[slotselected][_arg1]));
_local4 = 0;
_local5 = 0;
_local6 = 0;
_local7 = 0;
so.data.charmechaheadhpreal2[slotselected][_arg1] = (so.data.charmechaheadhpreal[slotselected][_arg1] * so.data.charmechaheadhp[slotselected][_arg1]);
_local8 = so.data.charmechaheadatkreal[slotselected][_arg1];
_local9 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "atkdown", "player", 0);
_local9 = (_local8 * _local9);
so.data.charmechaheadatk[slotselected][_arg1] = ((_local8 * so.data.charmechaheadhp[slotselected][_arg1]) - _local9);
_local10 = so.data.charmechaheaddefreal[slotselected][_arg1];
_local11 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "defdown", "player", 0);
_local11 = (_local10 * _local11);
so.data.charmechaheaddef[slotselected][_arg1] = ((_local10 * so.data.charmechaheadhp[slotselected][_arg1]) - _local11);
_local12 = so.data.charmechaheadspdreal[slotselected][_arg1];
_local13 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "spddown", "player", 0);
_local13 = (_local12 * _local13);
so.data.charmechaheadspd[slotselected][_arg1] = ((_local12 * so.data.charmechaheadhp[slotselected][_arg1]) - _local13);
trace(("HP HEAD NOW : " + so.data.charmechaheadhpreal2[slotselected][_arg1]));
_local4 = (_local4 + (so.data.charmechaheadhpreal[slotselected][_arg1] * so.data.charmechaheadhp[slotselected][_arg1]));
_local5 = (_local5 + (so.data.charmechaheadatkreal[slotselected][_arg1] * so.data.charmechaheadhp[slotselected][_arg1]));
_local6 = (_local6 + (so.data.charmechaheaddefreal[slotselected][_arg1] * so.data.charmechaheadhp[slotselected][_arg1]));
_local7 = (_local7 + (so.data.charmechaheadspdreal[slotselected][_arg1] * so.data.charmechaheadhp[slotselected][_arg1]));
if (so.data.charmechahand1[slotselected][_arg1] != 0){
so.data.charmechahand1hpreal2[slotselected][_arg1] = (so.data.charmechahand1hpreal[slotselected][_arg1] * so.data.charmechahand1hp[slotselected][_arg1]);
_local8 = so.data.charmechahand1atkreal[slotselected][_arg1];
_local9 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "atkdown", "player", 1);
_local9 = (_local8 * _local9);
so.data.charmechahand1atk[slotselected][_arg1] = ((_local8 * so.data.charmechahand1hp[slotselected][_arg1]) - _local9);
_local10 = so.data.charmechahand1defreal[slotselected][_arg1];
_local11 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "defdown", "player", 1);
_local11 = (_local10 * _local11);
so.data.charmechahand1def[slotselected][_arg1] = ((_local10 * so.data.charmechahand1hp[slotselected][_arg1]) - _local11);
_local12 = so.data.charmechahand1spdreal[slotselected][_arg1];
_local13 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "spddown", "player", 1);
_local13 = (_local12 * _local13);
so.data.charmechahand1spd[slotselected][_arg1] = ((_local12 * so.data.charmechahand1hp[slotselected][_arg1]) - _local13);
trace(("ATK HAND1 : " + so.data.charmechahand1atk[slotselected][_arg1]));
_local4 = (_local4 + (so.data.charmechahand1hpreal[slotselected][_arg1] * so.data.charmechahand1hp[slotselected][_arg1]));
_local5 = (_local5 + (so.data.charmechahand1atkreal[slotselected][_arg1] * so.data.charmechahand1hp[slotselected][_arg1]));
_local6 = (_local6 + (so.data.charmechahand1defreal[slotselected][_arg1] * so.data.charmechahand1hp[slotselected][_arg1]));
_local7 = (_local7 + (so.data.charmechahand1spdreal[slotselected][_arg1] * so.data.charmechahand1hp[slotselected][_arg1]));
};
trace("0");
if (so.data.charmechahand2[slotselected][_arg1] != 0){
so.data.charmechahand2hpreal2[slotselected][_arg1] = (so.data.charmechahand2hpreal[slotselected][_arg1] * so.data.charmechahand2hp[slotselected][_arg1]);
_local8 = so.data.charmechahand2atkreal[slotselected][_arg1];
_local9 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "atkdown", "player", 2);
_local9 = (_local8 * _local9);
so.data.charmechahand2atk[slotselected][_arg1] = ((_local8 * so.data.charmechahand2hp[slotselected][_arg1]) - _local9);
_local10 = so.data.charmechahand2defreal[slotselected][_arg1];
_local11 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "defdown", "player", 2);
_local11 = (_local10 * _local11);
so.data.charmechahand2def[slotselected][_arg1] = ((_local10 * so.data.charmechahand2hp[slotselected][_arg1]) - _local11);
_local12 = so.data.charmechahand2spdreal[slotselected][_arg1];
_local13 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "spddown", "player", 2);
_local13 = (_local12 * _local13);
so.data.charmechahand2spd[slotselected][_arg1] = ((_local12 * so.data.charmechahand2hp[slotselected][_arg1]) - _local13);
trace(("ATK HAND2 : " + so.data.charmechahand2atk[slotselected][_arg1]));
_local4 = (_local4 + (so.data.charmechahand2hpreal[slotselected][_arg1] * so.data.charmechahand2hp[slotselected][_arg1]));
_local5 = (_local5 + (so.data.charmechahand2atk[slotselected][_arg1] * so.data.charmechahand2hp[slotselected][_arg1]));
_local6 = (_local6 + (so.data.charmechahand2def[slotselected][_arg1] * so.data.charmechahand2hp[slotselected][_arg1]));
_local7 = (_local7 + (so.data.charmechahand2spd[slotselected][_arg1] * so.data.charmechahand2hp[slotselected][_arg1]));
};
if (so.data.charmechaleg1[slotselected][_arg1] != 0){
so.data.charmechaleg1hpreal2[slotselected][_arg1] = (so.data.charmechaleg1hpreal[slotselected][_arg1] * so.data.charmechaleg1hp[slotselected][_arg1]);
_local8 = so.data.charmechaleg1atkreal[slotselected][_arg1];
_local9 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "atkdown", "player", 3);
_local9 = (_local8 * _local9);
so.data.charmechaleg1atk[slotselected][_arg1] = ((_local8 * so.data.charmechaleg1hp[slotselected][_arg1]) - _local9);
_local10 = so.data.charmechaleg1defreal[slotselected][_arg1];
_local11 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "defdown", "player", 3);
_local11 = (_local10 * _local11);
so.data.charmechaleg1def[slotselected][_arg1] = ((_local10 * so.data.charmechaleg1hp[slotselected][_arg1]) - _local11);
_local12 = so.data.charmechaleg1spdreal[slotselected][_arg1];
_local13 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "spddown", "player", 3);
_local13 = (_local12 * _local13);
so.data.charmechaleg1spd[slotselected][_arg1] = ((_local12 * so.data.charmechaleg1hp[slotselected][_arg1]) - _local13);
trace(("1 " + so.data.charmechaleg1hpreal2[slotselected][_arg1]));
trace(("ATK LEG1 : " + so.data.charmechaleg1atk[slotselected][_arg1]));
_local4 = (_local4 + (so.data.charmechaleg1hpreal[slotselected][_arg1] * so.data.charmechaleg1hp[slotselected][_arg1]));
_local5 = (_local5 + (so.data.charmechaleg1atk[slotselected][_arg1] * so.data.charmechaleg1hp[slotselected][_arg1]));
_local6 = (_local6 + (so.data.charmechaleg1def[slotselected][_arg1] * so.data.charmechaleg1hp[slotselected][_arg1]));
_local7 = (_local7 + (so.data.charmechaleg1spd[slotselected][_arg1] * so.data.charmechaleg1hp[slotselected][_arg1]));
};
if (so.data.charmechaleg2[slotselected][_arg1] != 0){
so.data.charmechaleg2hpreal2[slotselected][_arg1] = (so.data.charmechaleg2hpreal[slotselected][_arg1] * so.data.charmechaleg2hp[slotselected][_arg1]);
_local8 = so.data.charmechaleg2atkreal[slotselected][_arg1];
_local9 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "atkdown", "player", 4);
_local9 = (_local8 * _local9);
so.data.charmechaleg2atk[slotselected][_arg1] = ((_local8 * so.data.charmechaleg2hp[slotselected][_arg1]) - _local9);
_local10 = so.data.charmechaleg2defreal[slotselected][_arg1];
_local11 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "defdown", "player", 4);
_local11 = (_local10 * _local11);
so.data.charmechaleg2def[slotselected][_arg1] = ((_local10 * so.data.charmechaleg2hp[slotselected][_arg1]) - _local11);
_local12 = so.data.charmechaleg2spdreal[slotselected][_arg1];
_local13 = cekbufftarget(playermechabuffnegativeparts, _local3, playermechabuffnegative, playermechabuffnegativelevel, playermechabuffnegativecountdown, playermechabuffnegativetimes, "spddown", "player", 4);
_local13 = (_local12 * _local13);
so.data.charmechaleg2spd[slotselected][_arg1] = ((_local12 * so.data.charmechaleg2hp[slotselected][_arg1]) - _local13);
trace("2");
trace(("ATK LEG2 : " + so.data.charmechaleg2atk[slotselected][_arg1]));
_local4 = (_local4 + (so.data.charmechaleg2hpreal[slotselected][_arg1] * so.data.charmechaleg2hp[slotselected][_arg1]));
_local5 = (_local5 + (so.data.charmechaleg2atk[slotselected][_arg1] * so.data.charmechaleg2atkreal[slotselected][_arg1]));
_local6 = (_local6 + (so.data.charmechaleg2def[slotselected][_arg1] * so.data.charmechaleg2defreal[slotselected][_arg1]));
_local7 = (_local7 + (so.data.charmechaleg2spd[slotselected][_arg1] * so.data.charmechaleg2hp[slotselected][_arg1]));
};
trace("3");
so.data.mechahptemp[slotselected][_arg1] = 0;
so.data.mechaatktemp[slotselected][_arg1] = 0;
so.data.mechadeftemp[slotselected][_arg1] = 0;
so.data.mechaspdtemp[slotselected][_arg1] = 0;
so.data.mechahptemp[slotselected][_arg1] = (so.data.mechahptemp[slotselected][_arg1] + so.data.charmechaheadhpreal2[slotselected][_arg1]);
so.data.mechaatktemp[slotselected][_arg1] = (so.data.mechaatktemp[slotselected][_arg1] + so.data.charmechaheadatk[slotselected][_arg1]);
so.data.mechadeftemp[slotselected][_arg1] = (so.data.mechadeftemp[slotselected][_arg1] + so.data.charmechaheaddef[slotselected][_arg1]);
so.data.mechaspdtemp[slotselected][_arg1] = (so.data.mechaspdtemp[slotselected][_arg1] + so.data.charmechaheadspd[slotselected][_arg1]);
if (so.data.charmechahand1[slotselected][_arg1] != 0){
so.data.mechahptemp[slotselected][_arg1] = (so.data.mechahptemp[slotselected][_arg1] + so.data.charmechahand1hpreal2[slotselected][_arg1]);
so.data.mechaatktemp[slotselected][_arg1] = (so.data.mechaatktemp[slotselected][_arg1] + so.data.charmechahand1atk[slotselected][_arg1]);
so.data.mechadeftemp[slotselected][_arg1] = (so.data.mechadeftemp[slotselected][_arg1] + so.data.charmechahand1def[slotselected][_arg1]);
so.data.mechaspdtemp[slotselected][_arg1] = (so.data.mechaspdtemp[slotselected][_arg1] + so.data.charmechahand1spd[slotselected][_arg1]);
};
if (so.data.charmechahand2[slotselected][_arg1] != 0){
so.data.mechahptemp[slotselected][_arg1] = (so.data.mechahptemp[slotselected][_arg1] + so.data.charmechahand2hpreal2[slotselected][_arg1]);
so.data.mechaatktemp[slotselected][_arg1] = (so.data.mechaatktemp[slotselected][_arg1] + so.data.charmechahand2atk[slotselected][_arg1]);
so.data.mechadeftemp[slotselected][_arg1] = (so.data.mechadeftemp[slotselected][_arg1] + so.data.charmechahand2def[slotselected][_arg1]);
so.data.mechaspdtemp[slotselected][_arg1] = (so.data.mechaspdtemp[slotselected][_arg1] + so.data.charmechahand2spd[slotselected][_arg1]);
};
if (so.data.charmechaleg1[slotselected][_arg1] != 0){
so.data.mechahptemp[slotselected][_arg1] = (so.data.mechahptemp[slotselected][_arg1] + so.data.charmechaleg1hpreal2[slotselected][_arg1]);
so.data.mechaatktemp[slotselected][_arg1] = (so.data.mechaatktemp[slotselected][_arg1] + so.data.charmechaleg1atk[slotselected][_arg1]);
so.data.mechadeftemp[slotselected][_arg1] = (so.data.mechadeftemp[slotselected][_arg1] + so.data.charmechaleg1def[slotselected][_arg1]);
so.data.mechaspdtemp[slotselected][_arg1] = (so.data.mechaspdtemp[slotselected][_arg1] + so.data.charmechaleg1spd[slotselected][_arg1]);
};
if (so.data.charmechaleg2[slotselected][_arg1] != 0){
so.data.mechahptemp[slotselected][_arg1] = (so.data.mechahptemp[slotselected][_arg1] + so.data.charmechaleg2hpreal2[slotselected][_arg1]);
so.data.mechaatktemp[slotselected][_arg1] = (so.data.mechaatktemp[slotselected][_arg1] + so.data.charmechaleg2atk[slotselected][_arg1]);
so.data.mechadeftemp[slotselected][_arg1] = (so.data.mechadeftemp[slotselected][_arg1] + so.data.charmechaleg2def[slotselected][_arg1]);
so.data.mechaspdtemp[slotselected][_arg1] = (so.data.mechaspdtemp[slotselected][_arg1] + so.data.charmechaleg2spd[slotselected][_arg1]);
};
if (so.data.mechahptemp[slotselected][_arg1] > 10000){
so.data.mechahptemp[slotselected][_arg1] = 10000;
};
if (so.data.mechaatktemp[slotselected][_arg1] > 1000){
so.data.mechaatktemp[slotselected][_arg1] = 1000;
};
if (so.data.mechadeftemp[slotselected][_arg1] > 1000){
so.data.mechadeftemp[slotselected][_arg1] = 1000;
};
if (so.data.mechaspdtemp[slotselected][_arg1] > 1000){
so.data.mechaspdtemp[slotselected][_arg1] = 1000;
};
if (currentLabel != "battle"){
if (mcuimechastatus.visible == true){
mcuimechastatus.txthp.text = int(so.data.mechahptemp[slotselected][_arg1]);
mcuimechastatus.txtatk.text = int(so.data.mechaatktemp[slotselected][_arg1]);
mcuimechastatus.txtdef.text = int(so.data.mechadeftemp[slotselected][_arg1]);
mcuimechastatus.txtspd.text = int(so.data.mechaspdtemp[slotselected][_arg1]);
};
};
trace("3");
trace(("cek HP ASLI : " + so.data.mechahptemp[slotselected][_arg1]));
trace(("cek ATK ASLI : " + so.data.mechaatktemp[slotselected][_arg1]));
trace(("cek DEF ASLI : " + so.data.mechadeftemp[slotselected][_arg1]));
trace(("cek SPD ASLI : " + so.data.mechaspdtemp[slotselected][_arg1]));
}
public function createfirsttimelowhealth(){
firstimebool = true;
mcui.mc1.mcblink.gotoAndStop(5);
objtotext = firsttimelowhealth;
createtexting();
}
public function trainattacktarget(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (pausegame == false){
kurangicountdown(mcspeedtimelimits, 1);
cekdeadtarget = 0;
_local2 = 1;
while (_local2 <= 3) {
_local3 = buildingused.mc1.getChildByName(("mctarget" + _local2));
if (_local3.dead == true){
cekdeadtarget++;
} else {
if (_local3.dead == false){
if (_local3.arahjalan == "right"){
_local3.x = (_local3.x + _local3.speedx);
_local3.y = (_local3.y + _local3.speedy);
} else {
if (_local3.arahjalan == "left"){
_local3.x = (_local3.x - _local3.speedx);
_local3.y = (_local3.y - _local3.speedy);
};
};
_local4 = 1;
while (_local4 <= 3) {
_local5 = _local3.arahjalan;
_local6 = buildingused.mc1.getChildByName((("mcstop" + _local5) + _local4));
if (_local3.mcfoot.hitTestObject(_local6) == true){
if (_local5 == _local3.arahjalan){
if (_local5 == "right"){
_local3.arahjalan = "left";
} else {
if (_local5 == "left"){
_local3.arahjalan = "right";
};
};
};
};
_local4++;
};
_local3.cooldown--;
if (_local3.cooldown <= 0){
_local3.turunsebanyak--;
if (_local3.naek == false){
_local3.mcmark.y = (_local3.mcmark.y + _local3.speedtargety);
} else {
if (_local3.naek == true){
_local3.mcmark.y = (_local3.mcmark.y - _local3.speedtargety);
};
};
if (_local3.turunsebanyak <= 0){
_local3.turunsebanyak = _local3.turunsebanyaktemp;
if (_local3.naek == false){
_local3.naek = true;
} else {
if (_local3.naek == true){
_local3.naek = false;
};
};
};
};
};
};
_local2++;
};
if (cekdeadtarget >= 3){
trace("TRAIN ATTACK COMPLETED");
cleanuptrainall();
};
};
}
public function cektutupchampionship(){
if (so.data.championshipphase[slotselected] == 5){
donephase5();
} else {
if (so.data.championshipphase[slotselected] == 4){
donephase4();
} else {
if (so.data.championshipphase[slotselected] == 2){
donephase2();
} else {
if (so.data.championshipphase[slotselected] == 3){
donephase3();
};
};
};
};
}
public function obstaclespeedover(_arg1:MouseEvent):void{
var _local2:ColorTransform;
_local2 = new ColorTransform();
_local2.redOffset = 127;
_local2.greenOffset = 127;
_local2.blueOffset = 127;
_arg1.currentTarget.transform.colorTransform = _local2;
}
}
}//package MechaArenav_fla
Section 120
//MECHAHAND_254 (MechaArenav_fla.MECHAHAND_254)
package MechaArenav_fla {
import flash.display.*;
public dynamic class MECHAHAND_254 extends MovieClip {
public var mc1:MovieClip;
public function MECHAHAND_254(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 121
//MECHAHAND_267 (MechaArenav_fla.MECHAHAND_267)
package MechaArenav_fla {
import flash.display.*;
public dynamic class MECHAHAND_267 extends MovieClip {
public var mc1:MovieClip;
public function MECHAHAND_267(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 122
//MECHAHEAD_258 (MechaArenav_fla.MECHAHEAD_258)
package MechaArenav_fla {
import flash.display.*;
public dynamic class MECHAHEAD_258 extends MovieClip {
public var mc1:MovieClip;
public function MECHAHEAD_258(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 123
//MECHAHEAD_271 (MechaArenav_fla.MECHAHEAD_271)
package MechaArenav_fla {
import flash.display.*;
public dynamic class MECHAHEAD_271 extends MovieClip {
public var mc1:MovieClip;
public function MECHAHEAD_271(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 124
//MECHALEG_256 (MechaArenav_fla.MECHALEG_256)
package MechaArenav_fla {
import flash.display.*;
public dynamic class MECHALEG_256 extends MovieClip {
public var mc1:MovieClip;
public function MECHALEG_256(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 125
//MECHALEG_269 (MechaArenav_fla.MECHALEG_269)
package MechaArenav_fla {
import flash.display.*;
public dynamic class MECHALEG_269 extends MovieClip {
public var mc1:MovieClip;
public function MECHALEG_269(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 126
//MECHASUMMARY_253 (MechaArenav_fla.MECHASUMMARY_253)
package MechaArenav_fla {
import flash.display.*;
public dynamic class MECHASUMMARY_253 extends MovieClip {
public var mcfoot:MovieClip;
public var mchead:MovieClip;
public var mcleg1:MovieClip;
public var mcblink:MovieClip;
public var mcleg2:MovieClip;
public var mcprogress:MovieClip;
public var mchand1:MovieClip;
public var mchand2:MovieClip;
public function MECHASUMMARY_253(){
addFrameScript(48, frame49, 54, frame55, 59, frame60, 64, frame65, 69, frame70, 74, frame75, 109, frame110, 118, frame119, 163, frame164, 169, frame170, 174, frame175, 179, frame180, 184, frame185, 189, frame190, 229, frame230, 270, frame271);
}
function frame70(){
gotoAndPlay("frontidle");
}
function frame65(){
gotoAndPlay("frontidle");
}
function frame75(){
gotoAndPlay("frontidle");
}
function frame164(){
gotoAndPlay("backidle");
}
function frame170(){
gotoAndPlay("backwalk");
}
function frame180(){
gotoAndPlay("backidle");
}
function frame185(){
gotoAndPlay("backidle");
}
function frame175(){
gotoAndPlay("backidle");
}
function frame110(){
stop();
}
function frame190(){
gotoAndPlay("backidle");
}
function frame230(){
stop();
}
function frame49(){
gotoAndPlay("frontidle");
}
function frame119(){
gotoAndPlay("frontidle");
}
function frame55(){
gotoAndPlay("frontwalk");
}
function frame60(){
gotoAndPlay("frontidle");
}
function frame271(){
stop();
}
}
}//package MechaArenav_fla
Section 127
//MECHASUMMARYTARGETING_757 (MechaArenav_fla.MECHASUMMARYTARGETING_757)
package MechaArenav_fla {
import flash.display.*;
public dynamic class MECHASUMMARYTARGETING_757 extends MovieClip {
public var btn3:MovieClip;
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc5:MovieClip;
public var mc2:MovieClip;
public var btn1:MovieClip;
public var btn4:MovieClip;
public var btn5:MovieClip;
public var mc4:MovieClip;
public var btn2:MovieClip;
}
}//package MechaArenav_fla
Section 128
//PEOPLE_273 (MechaArenav_fla.PEOPLE_273)
package MechaArenav_fla {
import flash.display.*;
public dynamic class PEOPLE_273 extends MovieClip {
public var mcblink:MovieClip;
}
}//package MechaArenav_fla
Section 129
//PEOPLE_290 (MechaArenav_fla.PEOPLE_290)
package MechaArenav_fla {
import flash.display.*;
public dynamic class PEOPLE_290 extends MovieClip {
public var mcclash:MovieClip;
}
}//package MechaArenav_fla
Section 130
//PEOPLE_317 (MechaArenav_fla.PEOPLE_317)
package MechaArenav_fla {
import flash.display.*;
public dynamic class PEOPLE_317 extends MovieClip {
public var mcclash:effectclash;
}
}//package MechaArenav_fla
Section 131
//PEOPLE_733 (MechaArenav_fla.PEOPLE_733)
package MechaArenav_fla {
import flash.display.*;
public dynamic class PEOPLE_733 extends MovieClip {
public var mc1:MovieClip;
public function PEOPLE_733(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame20(){
gotoAndStop(1);
}
}
}//package MechaArenav_fla
Section 132
//PEOPLE_734 (MechaArenav_fla.PEOPLE_734)
package MechaArenav_fla {
import flash.display.*;
public dynamic class PEOPLE_734 extends MovieClip {
public var mcblink:MovieClip;
}
}//package MechaArenav_fla
Section 133
//skilldamage80putusan_62 (MechaArenav_fla.skilldamage80putusan_62)
package MechaArenav_fla {
import flash.display.*;
public dynamic class skilldamage80putusan_62 extends MovieClip {
public function skilldamage80putusan_62(){
addFrameScript(3, frame4, 8, frame9);
}
function frame4(){
gotoAndPlay(1);
}
function frame9(){
stop();
}
}
}//package MechaArenav_fla
Section 134
//Symbol114_723 (MechaArenav_fla.Symbol114_723)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol114_723 extends MovieClip {
public var mc1:MovieClip;
public function Symbol114_723(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 135
//Symbol117_789 (MechaArenav_fla.Symbol117_789)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol117_789 extends MovieClip {
public var mchit:MovieClip;
}
}//package MechaArenav_fla
Section 136
//Symbol122_473 (MechaArenav_fla.Symbol122_473)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol122_473 extends MovieClip {
public var btnpause:SimpleButton;
public var btnsera:SimpleButton;
public var btnab:SimpleButton;
public var btnmutemusic:SimpleButton;
}
}//package MechaArenav_fla
Section 137
//Symbol124_487 (MechaArenav_fla.Symbol124_487)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol124_487 extends MovieClip {
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 138
//Symbol125_470 (MechaArenav_fla.Symbol125_470)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol125_470 extends MovieClip {
public function Symbol125_470(){
addFrameScript(65, frame66);
}
function frame66(){
stop();
}
}
}//package MechaArenav_fla
Section 139
//Symbol142_494 (MechaArenav_fla.Symbol142_494)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol142_494 extends MovieClip {
public var btnenter:SimpleButton;
public var mcbartime:MovieClip;
public var mctime2:MovieClip;
public var mctime:MovieClip;
public var mcblink:MovieClip;
}
}//package MechaArenav_fla
Section 140
//Symbol147_48 (MechaArenav_fla.Symbol147_48)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol147_48 extends MovieClip {
public function Symbol147_48(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package MechaArenav_fla
Section 141
//Symbol154_30 (MechaArenav_fla.Symbol154_30)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol154_30 extends MovieClip {
public function Symbol154_30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 142
//Symbol156_693 (MechaArenav_fla.Symbol156_693)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol156_693 extends MovieClip {
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 143
//Symbol157_807 (MechaArenav_fla.Symbol157_807)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol157_807 extends MovieClip {
public var mctipe1:MovieClip;
public var mctipe2:MovieClip;
public var mcefektif1:MovieClip;
public var mcefektif2:MovieClip;
public function Symbol157_807(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 144
//Symbol161_752 (MechaArenav_fla.Symbol161_752)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol161_752 extends MovieClip {
public function Symbol161_752(){
addFrameScript(0, frame1, 1, frame2, 39, frame40);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame40(){
gotoAndPlay("blinking");
}
}
}//package MechaArenav_fla
Section 145
//Symbol166_374 (MechaArenav_fla.Symbol166_374)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol166_374 extends MovieClip {
public function Symbol166_374(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 146
//Symbol172_682 (MechaArenav_fla.Symbol172_682)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol172_682 extends MovieClip {
public var mcfireworks:MovieClip;
}
}//package MechaArenav_fla
Section 147
//Symbol175_690 (MechaArenav_fla.Symbol175_690)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol175_690 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 148
//Symbol177_421 (MechaArenav_fla.Symbol177_421)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol177_421 extends MovieClip {
public var mc1:MovieClip;
public var btnbackmainmenu:SimpleButton;
}
}//package MechaArenav_fla
Section 149
//Symbol179_510 (MechaArenav_fla.Symbol179_510)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol179_510 extends MovieClip {
public var mcfoot:MovieClip;
}
}//package MechaArenav_fla
Section 150
//Symbol18_402 (MechaArenav_fla.Symbol18_402)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol18_402 extends MovieClip {
public var btndelete2:SimpleButton;
public var btnslot1:SimpleButton;
public var btndelete3:SimpleButton;
public var btndelete1:SimpleButton;
public var btnslot3:SimpleButton;
public var btnslot2:SimpleButton;
public var btnachievements:SimpleButton;
public var btnplay:SimpleButton;
public var btnmoregames:SimpleButton;
public var btncredits:SimpleButton;
public var btnempty1:SimpleButton;
public var btnempty2:SimpleButton;
public var btnempty3:SimpleButton;
public function Symbol18_402(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 151
//Symbol181_482 (MechaArenav_fla.Symbol181_482)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol181_482 extends MovieClip {
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 152
//Symbol184_27 (MechaArenav_fla.Symbol184_27)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol184_27 extends MovieClip {
public function Symbol184_27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 153
//Symbol186_701 (MechaArenav_fla.Symbol186_701)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol186_701 extends MovieClip {
public function Symbol186_701(){
addFrameScript(0, frame1, 65, frame66);
}
function frame1(){
stop();
}
function frame66(){
gotoAndPlay("a");
}
}
}//package MechaArenav_fla
Section 154
//Symbol188_17 (MechaArenav_fla.Symbol188_17)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol188_17 extends MovieClip {
public function Symbol188_17(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 155
//Symbol19_260 (MechaArenav_fla.Symbol19_260)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol19_260 extends MovieClip {
public function Symbol19_260(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 156
//Symbol191_441 (MechaArenav_fla.Symbol191_441)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol191_441 extends MovieClip {
public function Symbol191_441(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package MechaArenav_fla
Section 157
//Symbol192_614 (MechaArenav_fla.Symbol192_614)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol192_614 extends MovieClip {
public function Symbol192_614(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 158
//Symbol193_433 (MechaArenav_fla.Symbol193_433)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol193_433 extends MovieClip {
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc5:MovieClip;
public var mc2:MovieClip;
public var mc4:MovieClip;
}
}//package MechaArenav_fla
Section 159
//Symbol194_434 (MechaArenav_fla.Symbol194_434)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol194_434 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 160
//Symbol195_437 (MechaArenav_fla.Symbol195_437)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol195_437 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 161
//Symbol196_438 (MechaArenav_fla.Symbol196_438)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol196_438 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 162
//Symbol197_439 (MechaArenav_fla.Symbol197_439)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol197_439 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 163
//Symbol198_440 (MechaArenav_fla.Symbol198_440)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol198_440 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 164
//Symbol20_275 (MechaArenav_fla.Symbol20_275)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol20_275 extends MovieClip {
public function Symbol20_275(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 165
//Symbol21_444 (MechaArenav_fla.Symbol21_444)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol21_444 extends MovieClip {
public function Symbol21_444(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
this.visible = true;
}
function frame6(){
this.visible = true;
}
function frame7(){
this.visible = true;
}
function frame1(){
stop();
this.visible = false;
}
function frame4(){
this.visible = true;
}
function frame5(){
this.visible = true;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 166
//Symbol211_380 (MechaArenav_fla.Symbol211_380)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol211_380 extends MovieClip {
public function Symbol211_380(){
addFrameScript(251, frame252);
}
function frame252(){
stop();
}
}
}//package MechaArenav_fla
Section 167
//Symbol21copy_464 (MechaArenav_fla.Symbol21copy_464)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol21copy_464 extends MovieClip {
public function Symbol21copy_464(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
this.visible = true;
}
function frame6(){
this.visible = true;
}
function frame1(){
stop();
this.visible = false;
}
function frame4(){
this.visible = true;
}
function frame5(){
this.visible = true;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 168
//Symbol229_490 (MechaArenav_fla.Symbol229_490)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol229_490 extends MovieClip {
public function Symbol229_490(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.visible = false;
}
}
}//package MechaArenav_fla
Section 169
//Symbol230_492 (MechaArenav_fla.Symbol230_492)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol230_492 extends MovieClip {
public function Symbol230_492(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
this.visible = true;
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 170
//Symbol231_539 (MechaArenav_fla.Symbol231_539)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol231_539 extends MovieClip {
public function Symbol231_539(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 171
//Symbol232_608 (MechaArenav_fla.Symbol232_608)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol232_608 extends MovieClip {
public function Symbol232_608(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 172
//Symbol233_522 (MechaArenav_fla.Symbol233_522)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol233_522 extends MovieClip {
public function Symbol233_522(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 173
//Symbol234_651 (MechaArenav_fla.Symbol234_651)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol234_651 extends MovieClip {
public var mcbarexp:MovieClip;
}
}//package MechaArenav_fla
Section 174
//Symbol236_497 (MechaArenav_fla.Symbol236_497)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol236_497 extends MovieClip {
public function Symbol236_497(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 175
//Symbol27_390 (MechaArenav_fla.Symbol27_390)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol27_390 extends MovieClip {
public function Symbol27_390(){
addFrameScript(166, frame167);
}
function frame167(){
stop();
}
}
}//package MechaArenav_fla
Section 176
//Symbol37_350 (MechaArenav_fla.Symbol37_350)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol37_350 extends MovieClip {
public var mcfoot:MovieClip;
public function Symbol37_350(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package MechaArenav_fla
Section 177
//Symbol37copy_354 (MechaArenav_fla.Symbol37copy_354)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol37copy_354 extends MovieClip {
public var mcfoot:MovieClip;
public function Symbol37copy_354(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package MechaArenav_fla
Section 178
//Symbol37copy2_357 (MechaArenav_fla.Symbol37copy2_357)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol37copy2_357 extends MovieClip {
public var mcfoot:MovieClip;
public function Symbol37copy2_357(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package MechaArenav_fla
Section 179
//Symbol38_622 (MechaArenav_fla.Symbol38_622)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol38_622 extends MovieClip {
public function Symbol38_622(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 180
//Symbol39_42 (MechaArenav_fla.Symbol39_42)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol39_42 extends MovieClip {
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 181
//Symbol39copy_35 (MechaArenav_fla.Symbol39copy_35)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol39copy_35 extends MovieClip {
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var txt4:TextField;
}
}//package MechaArenav_fla
Section 182
//Symbol4_387 (MechaArenav_fla.Symbol4_387)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol4_387 extends MovieClip {
public function Symbol4_387(){
addFrameScript(166, frame167);
}
function frame167(){
gotoAndPlay("loop");
}
}
}//package MechaArenav_fla
Section 183
//Symbol45_436 (MechaArenav_fla.Symbol45_436)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol45_436 extends MovieClip {
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 184
//Symbol46_435 (MechaArenav_fla.Symbol46_435)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol46_435 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 185
//Symbol47_509 (MechaArenav_fla.Symbol47_509)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol47_509 extends MovieClip {
public function Symbol47_509(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
stop();
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 186
//Symbol49_443 (MechaArenav_fla.Symbol49_443)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol49_443 extends MovieClip {
public var btnmecha1:SimpleButton;
public var btnmecha2:SimpleButton;
public var btnriderno:SimpleButton;
public var mcnew3:MovieClip;
public var mcnew5:MovieClip;
public var mcnew6:MovieClip;
public var mcnew1:MovieClip;
public var mcnew4:MovieClip;
public var mcndabole:MovieClip;
public var btnsponsor:SimpleButton;
public var btnshop:SimpleButton;
public var mcndabole2:SimpleButton;
public var mcnew2:MovieClip;
public var mcndabole3:SimpleButton;
public var btnchampionship:SimpleButton;
public var btnsponsorndabole:SimpleButton;
public var mcblink:MovieClip;
public var btntournamentno:SimpleButton;
public var mcexpired:MovieClip;
public var btnrider:SimpleButton;
public var btnmechanic:SimpleButton;
public var btnfreematch:SimpleButton;
}
}//package MechaArenav_fla
Section 187
//Symbol50_246 (MechaArenav_fla.Symbol50_246)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol50_246 extends MovieClip {
public function Symbol50_246(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
gotoAndPlay(2);
}
}
}//package MechaArenav_fla
Section 188
//Symbol54_359 (MechaArenav_fla.Symbol54_359)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol54_359 extends MovieClip {
public function Symbol54_359(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 189
//Symbol56_375 (MechaArenav_fla.Symbol56_375)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol56_375 extends MovieClip {
public var mcmarker:MovieClip;
public function Symbol56_375(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
stop();
}
}
}//package MechaArenav_fla
Section 190
//Symbol62_556 (MechaArenav_fla.Symbol62_556)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol62_556 extends MovieClip {
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc2:MovieClip;
public var mc4:MovieClip;
}
}//package MechaArenav_fla
Section 191
//Symbol63_610 (MechaArenav_fla.Symbol63_610)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol63_610 extends MovieClip {
public var mcskill21:MovieClip;
public var mcskill12:MovieClip;
public var mcskill23:MovieClip;
public var mcatkarrow:MovieClip;
public var mc1:MovieClip;
public var mcspdarrow:MovieClip;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mcskill22:MovieClip;
public var mchparrow:MovieClip;
public var mcdefarrow:MovieClip;
public var mcskill11:MovieClip;
public var mcskill13:MovieClip;
}
}//package MechaArenav_fla
Section 192
//Symbol63copy_612 (MechaArenav_fla.Symbol63copy_612)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol63copy_612 extends MovieClip {
public var mcskill21:MovieClip;
public var mcskill12:MovieClip;
public var mcskill23:MovieClip;
public var mcatkarrow:MovieClip;
public var mcskill32:MovieClip;
public var mcskill33:MovieClip;
public var mcskill31:MovieClip;
public var mc1:MovieClip;
public var mcspdarrow:MovieClip;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mcskill22:MovieClip;
public var mchparrow:MovieClip;
public var mcdefarrow:MovieClip;
public var mcskill11:MovieClip;
public var mcskill13:MovieClip;
}
}//package MechaArenav_fla
Section 193
//Symbol63REAL_554 (MechaArenav_fla.Symbol63REAL_554)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol63REAL_554 extends MovieClip {
public var mcskill21:MovieClip;
public var mcskill12:MovieClip;
public var mcskill23:MovieClip;
public var mcatkarrow:MovieClip;
public var mc1:MovieClip;
public var mcspdarrow:MovieClip;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mcskill22:MovieClip;
public var mchparrow:MovieClip;
public var mcdefarrow:MovieClip;
public var mcskill11:MovieClip;
public var mcskill13:MovieClip;
}
}//package MechaArenav_fla
Section 194
//Symbol63REALcopy_598 (MechaArenav_fla.Symbol63REALcopy_598)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol63REALcopy_598 extends MovieClip {
public var mcskill21:MovieClip;
public var mcskill12:MovieClip;
public var mcskill23:MovieClip;
public var mcatkarrow:MovieClip;
public var mcskill32:MovieClip;
public var mcskill33:MovieClip;
public var mcskill31:MovieClip;
public var mc1:MovieClip;
public var mcspdarrow:MovieClip;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mcskill22:MovieClip;
public var mchparrow:MovieClip;
public var mcdefarrow:MovieClip;
public var mcskill11:MovieClip;
public var mcskill13:MovieClip;
}
}//package MechaArenav_fla
Section 195
//Symbol63REALcopy2_599 (MechaArenav_fla.Symbol63REALcopy2_599)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol63REALcopy2_599 extends MovieClip {
public var mcskill12:MovieClip;
public var mcatkarrow:MovieClip;
public var mc1:MovieClip;
public var mcspdarrow:MovieClip;
public var mchparrow:MovieClip;
public var mcdefarrow:MovieClip;
public var mcskill11:MovieClip;
public var mcskill13:MovieClip;
}
}//package MechaArenav_fla
Section 196
//Symbol68_523 (MechaArenav_fla.Symbol68_523)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol68_523 extends MovieClip {
public var btnclose:SimpleButton;
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 197
//Symbol73copy_549 (MechaArenav_fla.Symbol73copy_549)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol73copy_549 extends MovieClip {
public function Symbol73copy_549(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 198
//Symbol76_780 (MechaArenav_fla.Symbol76_780)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol76_780 extends MovieClip {
public function Symbol76_780(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package MechaArenav_fla
Section 199
//Symbol77_751 (MechaArenav_fla.Symbol77_751)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol77_751 extends MovieClip {
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 200
//Symbol78_750 (MechaArenav_fla.Symbol78_750)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol78_750 extends MovieClip {
public var mc1:MovieClip;
public function Symbol78_750(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 201
//Symbol79_366 (MechaArenav_fla.Symbol79_366)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol79_366 extends MovieClip {
public function Symbol79_366(){
addFrameScript(26, frame27, 52, frame53, 78, frame79);
}
function frame79(){
gotoAndStop(1);
}
function frame27(){
gotoAndStop(1);
}
function frame53(){
gotoAndStop(1);
}
}
}//package MechaArenav_fla
Section 202
//Symbol80_537 (MechaArenav_fla.Symbol80_537)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol80_537 extends MovieClip {
public function Symbol80_537(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 203
//Symbol80copy_536 (MechaArenav_fla.Symbol80copy_536)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol80copy_536 extends MovieClip {
public function Symbol80copy_536(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 204
//Symbol82_762 (MechaArenav_fla.Symbol82_762)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol82_762 extends MovieClip {
public var mc1:MovieClip;
public function Symbol82_762(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 205
//Symbol83_758 (MechaArenav_fla.Symbol83_758)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol83_758 extends MovieClip {
public var mc1:MovieClip;
public function Symbol83_758(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 206
//Symbol84_760 (MechaArenav_fla.Symbol84_760)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol84_760 extends MovieClip {
public var mc1:MovieClip;
public function Symbol84_760(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 207
//Symbol85_777 (MechaArenav_fla.Symbol85_777)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol85_777 extends MovieClip {
public var mcgrade:MovieClip;
public var mcnotavailable:MovieClip;
public var txtstatus:TextField;
public var txtname:TextField;
public var mcpreview:MovieClip;
public var mctipe2:MovieClip;
public var txtexp:TextField;
public var mcsymbol:MovieClip;
public var txtprice:TextField;
}
}//package MechaArenav_fla
Section 208
//Symbol86_776 (MechaArenav_fla.Symbol86_776)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol86_776 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 209
//Symbol88_764 (MechaArenav_fla.Symbol88_764)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol88_764 extends MovieClip {
public var mcfoot:MovieClip;
public function Symbol88_764(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package MechaArenav_fla
Section 210
//Symbol88copy_766 (MechaArenav_fla.Symbol88copy_766)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol88copy_766 extends MovieClip {
public var mcfoot:MovieClip;
public function Symbol88copy_766(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package MechaArenav_fla
Section 211
//Symbol88copy2_772 (MechaArenav_fla.Symbol88copy2_772)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol88copy2_772 extends MovieClip {
public var mcfoot:MovieClip;
public function Symbol88copy2_772(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package MechaArenav_fla
Section 212
//Symbol88copy3_768 (MechaArenav_fla.Symbol88copy3_768)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol88copy3_768 extends MovieClip {
public var mcfoot:MovieClip;
public function Symbol88copy3_768(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package MechaArenav_fla
Section 213
//Symbol88copy4_770 (MechaArenav_fla.Symbol88copy4_770)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol88copy4_770 extends MovieClip {
public var mcfoot:MovieClip;
public function Symbol88copy4_770(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package MechaArenav_fla
Section 214
//Symbol90_732 (MechaArenav_fla.Symbol90_732)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol90_732 extends MovieClip {
public function Symbol90_732(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 215
//Symbol95_805 (MechaArenav_fla.Symbol95_805)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol95_805 extends MovieClip {
public var txt1:TextField;
}
}//package MechaArenav_fla
Section 216
//Symbol96_500 (MechaArenav_fla.Symbol96_500)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol96_500 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 217
//Symbol97_504 (MechaArenav_fla.Symbol97_504)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol97_504 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 218
//Symbol98_502 (MechaArenav_fla.Symbol98_502)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol98_502 extends MovieClip {
public var mc1:MovieClip;
}
}//package MechaArenav_fla
Section 219
//Symbol99_670 (MechaArenav_fla.Symbol99_670)
package MechaArenav_fla {
import flash.display.*;
public dynamic class Symbol99_670 extends MovieClip {
public function Symbol99_670(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package MechaArenav_fla
Section 220
//transisingetes_20 (MechaArenav_fla.transisingetes_20)
package MechaArenav_fla {
import flash.display.*;
public dynamic class transisingetes_20 extends MovieClip {
public var mchit:MovieClip;
public function transisingetes_20(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 221
//Tween48_699 (MechaArenav_fla.Tween48_699)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Tween48_699 extends MovieClip {
public var mcmecha:MovieClip;
public var txtspd:TextField;
public var mclogo:MovieClip;
public var txtatk:TextField;
public var txthp:TextField;
public var txtname:TextField;
public var txtdef:TextField;
}
}//package MechaArenav_fla
Section 222
//Tween48copy_700 (MechaArenav_fla.Tween48copy_700)
package MechaArenav_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Tween48copy_700 extends MovieClip {
public var mcmecha:MovieClip;
public var txtspd:TextField;
public var mclogo:MovieClip;
public var txtatk:TextField;
public var txthp:TextField;
public var txtname:TextField;
public var txtdef:TextField;
}
}//package MechaArenav_fla
Section 223
//uitutorialpicturefull_625 (MechaArenav_fla.uitutorialpicturefull_625)
package MechaArenav_fla {
import flash.display.*;
public dynamic class uitutorialpicturefull_625 extends MovieClip {
public function uitutorialpicturefull_625(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package MechaArenav_fla
Section 224
//UIversuspage_694 (MechaArenav_fla.UIversuspage_694)
package MechaArenav_fla {
import flash.display.*;
public dynamic class UIversuspage_694 extends MovieClip {
public var mcboss:MovieClip;
public var mcpanel:MovieClip;
public var btnback:SimpleButton;
public var btnstart:SimpleButton;
public var mcthumbenemy:MovieClip;
public var mcthumbplayer:MovieClip;
public function UIversuspage_694(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package MechaArenav_fla
Section 225
//VISIBLER_15 (MechaArenav_fla.VISIBLER_15)
package MechaArenav_fla {
import flash.display.*;
public dynamic class VISIBLER_15 extends MovieClip {
public function VISIBLER_15(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package MechaArenav_fla
Section 226
//VISIBLERWHITE_16 (MechaArenav_fla.VISIBLERWHITE_16)
package MechaArenav_fla {
import flash.display.*;
public dynamic class VISIBLERWHITE_16 extends MovieClip {
public function VISIBLERWHITE_16(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package MechaArenav_fla
Section 227
//aircannon (aircannon)
package {
import flash.display.*;
public dynamic class aircannon extends MovieClip {
public function aircannon(){
addFrameScript(19, frame20, 29, frame30);
}
function frame20(){
gotoAndPlay(1);
}
function frame30(){
stop();
}
}
}//package
Section 228
//autoattackbar (autoattackbar)
package {
import flash.display.*;
import flash.text.*;
public dynamic class autoattackbar extends MovieClip {
public var mchit:MovieClip;
public var txt1:TextField;
}
}//package
Section 229
//battledamagepoint (battledamagepoint)
package {
import flash.display.*;
public dynamic class battledamagepoint extends MovieClip {
public var mcpoingained:MovieClip;
public function battledamagepoint(){
addFrameScript(0, frame1, 1, frame2, 32, frame33);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame33(){
stop();
}
}
}//package
Section 230
//battledamagepoint2 (battledamagepoint2)
package {
import flash.display.*;
public dynamic class battledamagepoint2 extends MovieClip {
public var mcpoingained:MovieClip;
public function battledamagepoint2(){
addFrameScript(0, frame1, 1, frame2, 32, frame33);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame33(){
stop();
}
}
}//package
Section 231
//battledamagepoint3 (battledamagepoint3)
package {
import flash.display.*;
public dynamic class battledamagepoint3 extends MovieClip {
public var mcpoingained:MovieClip;
public function battledamagepoint3(){
addFrameScript(0, frame1, 1, frame2, 32, frame33);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame33(){
stop();
}
}
}//package
Section 232
//battledamagepoint4 (battledamagepoint4)
package {
import flash.display.*;
public dynamic class battledamagepoint4 extends MovieClip {
public var mcpoingained:MovieClip;
public function battledamagepoint4(){
addFrameScript(0, frame1, 1, frame2, 32, frame33);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame33(){
stop();
}
}
}//package
Section 233
//battledamagepoint5 (battledamagepoint5)
package {
import flash.display.*;
public dynamic class battledamagepoint5 extends MovieClip {
public var mcpoingained:MovieClip;
public function battledamagepoint5(){
addFrameScript(0, frame1, 1, frame2, 32, frame33);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame33(){
stop();
}
}
}//package
Section 234
//battledamagepointnew (battledamagepointnew)
package {
import flash.display.*;
public dynamic class battledamagepointnew extends MovieClip {
public var mcpoingained:MovieClip;
public function battledamagepointnew(){
addFrameScript(0, frame1, 1, frame2, 32, frame33);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame33(){
stop();
}
}
}//package
Section 235
//battlesound (battlesound)
package {
import flash.media.*;
public dynamic class battlesound extends Sound {
}
}//package
Section 236
//beamshock (beamshock)
package {
import flash.display.*;
public dynamic class beamshock extends MovieClip {
public function beamshock(){
addFrameScript(12, frame13, 19, frame20);
}
function frame20(){
stop();
}
function frame13(){
gotoAndPlay("go");
}
}
}//package
Section 237
//beamshot (beamshot)
package {
import flash.display.*;
public dynamic class beamshot extends MovieClip {
public function beamshot(){
addFrameScript(7, frame8, 14, frame15);
}
function frame15(){
stop();
}
function frame8(){
gotoAndPlay(1);
}
}
}//package
Section 238
//beepsound (beepsound)
package {
import flash.media.*;
public dynamic class beepsound extends Sound {
}
}//package
Section 239
//berhasilsound (berhasilsound)
package {
import flash.media.*;
public dynamic class berhasilsound extends Sound {
}
}//package
Section 240
//blastershot (blastershot)
package {
import flash.display.*;
public dynamic class blastershot extends MovieClip {
public var mcfoot:MovieClip;
public function blastershot(){
addFrameScript(58, frame59, 77, frame78);
}
function frame78(){
stop();
}
function frame59(){
gotoAndPlay("a");
}
}
}//package
Section 241
//bledarsound (bledarsound)
package {
import flash.media.*;
public dynamic class bledarsound extends Sound {
}
}//package
Section 242
//bluegrenade (bluegrenade)
package {
import flash.display.*;
public dynamic class bluegrenade extends MovieClip {
public function bluegrenade(){
addFrameScript(23, frame24, 27, frame28);
}
function frame24(){
stop();
}
function frame28(){
stop();
}
}
}//package
Section 243
//burningbeamshot (burningbeamshot)
package {
import flash.display.*;
public dynamic class burningbeamshot extends MovieClip {
public function burningbeamshot(){
addFrameScript(3, frame4, 8, frame9);
}
function frame4(){
gotoAndPlay(1);
}
function frame9(){
stop();
}
}
}//package
Section 244
//burningshot (burningshot)
package {
import flash.display.*;
public dynamic class burningshot extends MovieClip {
public function burningshot(){
addFrameScript(6, frame7, 10, frame11);
}
function frame7(){
stop();
}
function frame11(){
stop();
}
}
}//package
Section 245
//clickattacksound (clickattacksound)
package {
import flash.media.*;
public dynamic class clickattacksound extends Sound {
}
}//package
Section 246
//damagesound (damagesound)
package {
import flash.media.*;
public dynamic class damagesound extends Sound {
}
}//package
Section 247
//dataprocesssound (dataprocesssound)
package {
import flash.media.*;
public dynamic class dataprocesssound extends Sound {
}
}//package
Section 248
//debriseffect1 (debriseffect1)
package {
import flash.display.*;
public dynamic class debriseffect1 extends MovieClip {
public function debriseffect1(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 249
//debriseffect2 (debriseffect2)
package {
import flash.display.*;
public dynamic class debriseffect2 extends MovieClip {
public function debriseffect2(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package
Section 250
//debriseffect3 (debriseffect3)
package {
import flash.display.*;
public dynamic class debriseffect3 extends MovieClip {
public function debriseffect3(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package
Section 251
//debriseffect4 (debriseffect4)
package {
import flash.display.*;
public dynamic class debriseffect4 extends MovieClip {
public function debriseffect4(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 252
//debriseffect5 (debriseffect5)
package {
import flash.display.*;
public dynamic class debriseffect5 extends MovieClip {
public function debriseffect5(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package
Section 253
//defenseball (defenseball)
package {
import flash.display.*;
public dynamic class defenseball extends MovieClip {
public var mchit:MovieClip;
}
}//package
Section 254
//defenseeffect (defenseeffect)
package {
import flash.display.*;
public dynamic class defenseeffect extends MovieClip {
public function defenseeffect(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package
Section 255
//destroyedpartsound (destroyedpartsound)
package {
import flash.media.*;
public dynamic class destroyedpartsound extends Sound {
}
}//package
Section 256
//destroysound (destroysound)
package {
import flash.media.*;
public dynamic class destroysound extends Sound {
}
}//package
Section 257
//doombringerblast (doombringerblast)
package {
import flash.display.*;
public dynamic class doombringerblast extends MovieClip {
public var mcfoot:MovieClip;
public function doombringerblast(){
addFrameScript(58, frame59, 77, frame78);
}
function frame78(){
stop();
}
function frame59(){
gotoAndPlay("a");
}
}
}//package
Section 258
//doorclosesound (doorclosesound)
package {
import flash.media.*;
public dynamic class doorclosesound extends Sound {
}
}//package
Section 259
//effectclash (effectclash)
package {
import flash.display.*;
public dynamic class effectclash extends MovieClip {
public function effectclash(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package
Section 260
//effectshock (effectshock)
package {
import flash.display.*;
public dynamic class effectshock extends MovieClip {
public function effectshock(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 261
//effectsmoke (effectsmoke)
package {
import flash.display.*;
public dynamic class effectsmoke extends MovieClip {
public function effectsmoke(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 262
//electricalshot (electricalshot)
package {
import flash.display.*;
public dynamic class electricalshot extends MovieClip {
public var mcfoot:MovieClip;
public function electricalshot(){
addFrameScript(31, frame32, 48, frame49);
}
function frame32(){
gotoAndPlay(1);
}
function frame49(){
stop();
}
}
}//package
Section 263
//electriconsound (electriconsound)
package {
import flash.media.*;
public dynamic class electriconsound extends Sound {
}
}//package
Section 264
//fireshot (fireshot)
package {
import flash.display.*;
public dynamic class fireshot extends MovieClip {
public function fireshot(){
addFrameScript(7, frame8, 16, frame17);
}
function frame8(){
stop();
}
function frame17(){
stop();
}
}
}//package
Section 265
//flameshot (flameshot)
package {
import flash.display.*;
public dynamic class flameshot extends MovieClip {
public function flameshot(){
addFrameScript(3, frame4, 11, frame12);
}
function frame12(){
stop();
}
function frame4(){
gotoAndPlay(1);
}
}
}//package
Section 266
//forcefieldsound (forcefieldsound)
package {
import flash.media.*;
public dynamic class forcefieldsound extends Sound {
}
}//package
Section 267
//gabisaclicksound (gabisaclicksound)
package {
import flash.media.*;
public dynamic class gabisaclicksound extends Sound {
}
}//package
Section 268
//garagesound (garagesound)
package {
import flash.media.*;
public dynamic class garagesound extends Sound {
}
}//package
Section 269
//gerakan2sound (gerakan2sound)
package {
import flash.media.*;
public dynamic class gerakan2sound extends Sound {
}
}//package
Section 270
//hiteffect1 (hiteffect1)
package {
import flash.display.*;
public dynamic class hiteffect1 extends MovieClip {
public function hiteffect1(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package
Section 271
//hiteffect2 (hiteffect2)
package {
import flash.display.*;
public dynamic class hiteffect2 extends MovieClip {
public function hiteffect2(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package
Section 272
//hyperrapidfire (hyperrapidfire)
package {
import flash.display.*;
public dynamic class hyperrapidfire extends MovieClip {
public function hyperrapidfire(){
addFrameScript(5, frame6, 7, frame8);
}
function frame6(){
gotoAndPlay(1);
}
function frame8(){
stop();
}
}
}//package
Section 273
//introsound (introsound)
package {
import flash.media.*;
public dynamic class introsound extends Sound {
}
}//package
Section 274
//juruselectricsound (juruselectricsound)
package {
import flash.media.*;
public dynamic class juruselectricsound extends Sound {
}
}//package
Section 275
//laser1sound (laser1sound)
package {
import flash.media.*;
public dynamic class laser1sound extends Sound {
}
}//package
Section 276
//laser2sound (laser2sound)
package {
import flash.media.*;
public dynamic class laser2sound extends Sound {
}
}//package
Section 277
//laser3sound (laser3sound)
package {
import flash.media.*;
public dynamic class laser3sound extends Sound {
}
}//package
Section 278
//laser4sound (laser4sound)
package {
import flash.media.*;
public dynamic class laser4sound extends Sound {
}
}//package
Section 279
//laser5sound (laser5sound)
package {
import flash.media.*;
public dynamic class laser5sound extends Sound {
}
}//package
Section 280
//leechbot1 (leechbot1)
package {
import flash.display.*;
public dynamic class leechbot1 extends MovieClip {
public function leechbot1(){
addFrameScript(39, frame40, 52, frame53, 54, frame55);
}
function frame40(){
gotoAndPlay(1);
}
function frame55(){
stop();
}
function frame53(){
gotoAndPlay("go");
}
}
}//package
Section 281
//leechbot2 (leechbot2)
package {
import flash.display.*;
public dynamic class leechbot2 extends MovieClip {
public function leechbot2(){
addFrameScript(39, frame40, 52, frame53, 54, frame55);
}
function frame40(){
gotoAndPlay(1);
}
function frame55(){
stop();
}
function frame53(){
gotoAndPlay("go");
}
}
}//package
Section 282
//leechbot3 (leechbot3)
package {
import flash.display.*;
public dynamic class leechbot3 extends MovieClip {
public function leechbot3(){
addFrameScript(39, frame40, 52, frame53, 54, frame55);
}
function frame40(){
gotoAndPlay(1);
}
function frame55(){
stop();
}
function frame53(){
gotoAndPlay("go");
}
}
}//package
Section 283
//mapimage (mapimage)
package {
import flash.display.*;
public dynamic class mapimage extends MovieClip {
public var mcmarking4:MovieClip;
public var mcmarking3:MovieClip;
public var mcmarking1:MovieClip;
public var mcmarking2:MovieClip;
public var mcbuild1:MovieClip;
public var mcbuild2:MovieClip;
public var mcbuild3:MovieClip;
public var mcbuild4:MovieClip;
}
}//package
Section 284
//megaaircannon (megaaircannon)
package {
import flash.display.*;
public dynamic class megaaircannon extends MovieClip {
public function megaaircannon(){
addFrameScript(19, frame20, 29, frame30);
}
function frame20(){
gotoAndPlay(1);
}
function frame30(){
stop();
}
}
}//package
Section 285
//misssound (misssound)
package {
import flash.media.*;
public dynamic class misssound extends Sound {
}
}//package
Section 286
//ondoinggaragesound (ondoinggaragesound)
package {
import flash.media.*;
public dynamic class ondoinggaragesound extends Sound {
}
}//package
Section 287
//ondoinglabsound (ondoinglabsound)
package {
import flash.media.*;
public dynamic class ondoinglabsound extends Sound {
}
}//package
Section 288
//ondoingmarketsound (ondoingmarketsound)
package {
import flash.media.*;
public dynamic class ondoingmarketsound extends Sound {
}
}//package
Section 289
//people1 (people1)
package {
import flash.display.*;
public dynamic class people1 extends MovieClip {
public function people1(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 290
//people10 (people10)
package {
import flash.display.*;
public dynamic class people10 extends MovieClip {
public function people10(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 291
//people11 (people11)
package {
import flash.display.*;
public dynamic class people11 extends MovieClip {
public function people11(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 292
//people12 (people12)
package {
import flash.display.*;
public dynamic class people12 extends MovieClip {
public function people12(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 293
//people13 (people13)
package {
import flash.display.*;
public dynamic class people13 extends MovieClip {
public function people13(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 294
//people14 (people14)
package {
import flash.display.*;
public dynamic class people14 extends MovieClip {
public function people14(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 295
//people15 (people15)
package {
import flash.display.*;
public dynamic class people15 extends MovieClip {
public function people15(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 296
//people16 (people16)
package {
import flash.display.*;
public dynamic class people16 extends MovieClip {
public function people16(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 297
//people2 (people2)
package {
import flash.display.*;
public dynamic class people2 extends MovieClip {
public function people2(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 298
//people3 (people3)
package {
import flash.display.*;
public dynamic class people3 extends MovieClip {
public function people3(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 299
//people4 (people4)
package {
import flash.display.*;
public dynamic class people4 extends MovieClip {
public function people4(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 300
//people5 (people5)
package {
import flash.display.*;
public dynamic class people5 extends MovieClip {
public function people5(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 301
//people6 (people6)
package {
import flash.display.*;
public dynamic class people6 extends MovieClip {
public function people6(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 302
//people7 (people7)
package {
import flash.display.*;
public dynamic class people7 extends MovieClip {
public function people7(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 303
//people8 (people8)
package {
import flash.display.*;
public dynamic class people8 extends MovieClip {
public function people8(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 304
//people9 (people9)
package {
import flash.display.*;
public dynamic class people9 extends MovieClip {
public function people9(){
addFrameScript(20, frame21, 34, frame35);
}
function frame21(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 305
//peopleboo (peopleboo)
package {
import flash.media.*;
public dynamic class peopleboo extends Sound {
}
}//package
Section 306
//peoplehurray (peoplehurray)
package {
import flash.media.*;
public dynamic class peoplehurray extends Sound {
}
}//package
Section 307
//protonbeamshot (protonbeamshot)
package {
import flash.display.*;
public dynamic class protonbeamshot extends MovieClip {
public var mcfoot:MovieClip;
public function protonbeamshot(){
addFrameScript(58, frame59, 77, frame78);
}
function frame78(){
stop();
}
function frame59(){
gotoAndPlay("a");
}
}
}//package
Section 308
//protonshock (protonshock)
package {
import flash.display.*;
public dynamic class protonshock extends MovieClip {
public var mcfoot:MovieClip;
public function protonshock(){
addFrameScript(25, frame26, 37, frame38);
}
function frame26(){
gotoAndPlay("a");
}
function frame38(){
stop();
}
}
}//package
Section 309
//rapidfire (rapidfire)
package {
import flash.display.*;
public dynamic class rapidfire extends MovieClip {
public function rapidfire(){
addFrameScript(5, frame6, 6, frame7);
}
function frame6(){
gotoAndPlay(1);
}
function frame7(){
stop();
}
}
}//package
Section 310
//rapidshotsound (rapidshotsound)
package {
import flash.media.*;
public dynamic class rapidshotsound extends Sound {
}
}//package
Section 311
//redmine (redmine)
package {
import flash.display.*;
public dynamic class redmine extends MovieClip {
public function redmine(){
addFrameScript(23, frame24, 27, frame28);
}
function frame24(){
stop();
}
function frame28(){
stop();
}
}
}//package
Section 312
//repairsound (repairsound)
package {
import flash.media.*;
public dynamic class repairsound extends Sound {
}
}//package
Section 313
//rocketsmallsound (rocketsmallsound)
package {
import flash.media.*;
public dynamic class rocketsmallsound extends Sound {
}
}//package
Section 314
//shopitemimage (shopitemimage)
package {
import flash.display.*;
import flash.text.*;
public dynamic class shopitemimage extends MovieClip {
public var txt1:TextField;
public function shopitemimage(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 315
//shopitemimagereal (shopitemimagereal)
package {
import flash.display.*;
import flash.text.*;
public dynamic class shopitemimagereal extends MovieClip {
public var mcmasker2:MovieClip;
public var mcmasker:MovieClip;
public var txt1:TextField;
public function shopitemimagereal(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 316
//skillchargebiru (skillchargebiru)
package {
import flash.display.*;
public dynamic class skillchargebiru extends MovieClip {
public function skillchargebiru(){
addFrameScript(6, frame7, 7, frame8);
}
function frame7(){
gotoAndPlay(1);
}
function frame8(){
stop();
}
}
}//package
Section 317
//skillchargehijau (skillchargehijau)
package {
import flash.display.*;
public dynamic class skillchargehijau extends MovieClip {
public function skillchargehijau(){
addFrameScript(6, frame7, 7, frame8);
}
function frame7(){
gotoAndPlay(1);
}
function frame8(){
stop();
}
}
}//package
Section 318
//skillchargehijaukuning (skillchargehijaukuning)
package {
import flash.display.*;
public dynamic class skillchargehijaukuning extends MovieClip {
public function skillchargehijaukuning(){
addFrameScript(6, frame7, 7, frame8);
}
function frame7(){
gotoAndPlay(1);
}
function frame8(){
stop();
}
}
}//package
Section 319
//skillchargekuning (skillchargekuning)
package {
import flash.display.*;
public dynamic class skillchargekuning extends MovieClip {
public function skillchargekuning(){
addFrameScript(6, frame7, 7, frame8);
}
function frame7(){
gotoAndPlay(1);
}
function frame8(){
stop();
}
}
}//package
Section 320
//skillchargeungu (skillchargeungu)
package {
import flash.display.*;
public dynamic class skillchargeungu extends MovieClip {
public function skillchargeungu(){
addFrameScript(6, frame7, 7, frame8);
}
function frame7(){
gotoAndPlay(1);
}
function frame8(){
stop();
}
}
}//package
Section 321
//speedclick (speedclick)
package {
import flash.media.*;
public dynamic class speedclick extends Sound {
}
}//package
Section 322
//successound (successound)
package {
import flash.media.*;
public dynamic class successound extends Sound {
}
}//package
Section 323
//superaircannon (superaircannon)
package {
import flash.display.*;
public dynamic class superaircannon extends MovieClip {
public function superaircannon(){
addFrameScript(19, frame20, 29, frame30);
}
function frame20(){
gotoAndPlay(1);
}
function frame30(){
stop();
}
}
}//package
Section 324
//superflameshot (superflameshot)
package {
import flash.display.*;
public dynamic class superflameshot extends MovieClip {
public function superflameshot(){
addFrameScript(9, frame10, 18, frame19);
}
function frame10(){
gotoAndPlay(1);
}
function frame19(){
stop();
}
}
}//package
Section 325
//superrapidfire (superrapidfire)
package {
import flash.display.*;
public dynamic class superrapidfire extends MovieClip {
public function superrapidfire(){
addFrameScript(5, frame6, 7, frame8);
}
function frame6(){
gotoAndPlay(1);
}
function frame8(){
stop();
}
}
}//package
Section 326
//supershot (supershot)
package {
import flash.display.*;
public dynamic class supershot extends MovieClip {
public function supershot(){
addFrameScript(5, frame6, 11, frame12);
}
function frame12(){
stop();
}
function frame6(){
stop();
}
}
}//package
Section 327
//totaldestroyed (totaldestroyed)
package {
import flash.media.*;
public dynamic class totaldestroyed extends Sound {
}
}//package
Section 328
//wintrainingsound (wintrainingsound)
package {
import flash.media.*;
public dynamic class wintrainingsound extends Sound {
}
}//package
Section 329
//yellowshuriken (yellowshuriken)
package {
import flash.display.*;
public dynamic class yellowshuriken extends MovieClip {
public function yellowshuriken(){
addFrameScript(23, frame24, 27, frame28);
}
function frame24(){
stop();
}
function frame28(){
stop();
}
}
}//package