Section 1
//ag_intro_mc_406 (AoT_fla.ag_intro_mc_406)
package AoT_fla {
import flash.display.*;
public dynamic class ag_intro_mc_406 extends MovieClip {
public function ag_intro_mc_406(){
addFrameScript(246, frame247);
}
function frame247(){
stop();
}
}
}//package AoT_fla
Section 2
//CHARSELECT_509 (AoT_fla.CHARSELECT_509)
package AoT_fla {
import flash.display.*;
public dynamic class CHARSELECT_509 extends MovieClip {
public var mcchoose:MovieClip;
public var mcdesc:MovieClip;
public var mcdone:MovieClip;
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mcframe:MovieClip;
}
}//package AoT_fla
Section 3
//ENEMY_14 (AoT_fla.ENEMY_14)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_14 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_14(){
addFrameScript(12, frame13, 39, frame40, 73, frame74, 114, frame115);
}
function frame74(){
stop();
}
function frame13(){
gotoAndPlay("idle");
}
function frame115(){
stop();
}
function frame40(){
gotoAndPlay("walk");
}
}
}//package AoT_fla
Section 4
//ENEMY_239 (AoT_fla.ENEMY_239)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_239 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public var mceyes:fxeyes1;
public function ENEMY_239(){
addFrameScript(7, frame8, 8, frame9, 26, frame27, 63, frame64);
}
function frame64(){
stop();
}
function frame8(){
gotoAndPlay("walk");
}
function frame9(){
stop();
}
function frame27(){
stop();
}
}
}//package AoT_fla
Section 5
//ENEMY_253 (AoT_fla.ENEMY_253)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_253 extends MovieClip {
public var mcbody:MovieClip;
public var mceyes:fxeyes1;
public function ENEMY_253(){
addFrameScript(18, frame19, 28, frame29, 55, frame56, 92, frame93);
}
function frame93(){
stop();
}
function frame19(){
gotoAndPlay("walk");
}
function frame29(){
gotoAndPlay("idle");
}
function frame56(){
stop();
}
}
}//package AoT_fla
Section 6
//ENEMY_256 (AoT_fla.ENEMY_256)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_256 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public var mceyes:fxeyes1;
public function ENEMY_256(){
addFrameScript(7, frame8, 8, frame9, 39, frame40, 76, frame77);
}
function frame77(){
stop();
}
function frame8(){
gotoAndPlay("walk");
}
function frame9(){
stop();
}
function frame40(){
stop();
}
}
}//package AoT_fla
Section 7
//ENEMY_261 (AoT_fla.ENEMY_261)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_261 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_261(){
addFrameScript(50, frame51, 140, frame141, 169, frame170, 230, frame231, 337, frame338, 392, frame393);
}
function frame393(){
stop();
}
function frame170(){
stop();
}
function frame338(){
stop();
}
function frame231(){
stop();
}
function frame51(){
gotoAndPlay("idle");
}
function frame141(){
stop();
}
}
}//package AoT_fla
Section 8
//ENEMY_27 (AoT_fla.ENEMY_27)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_27 extends MovieClip {
public var mcbody:MovieClip;
public function ENEMY_27(){
addFrameScript(23, frame24, 32, frame33, 53, frame54, 94, frame95, 108, frame109, 113, frame114);
}
function frame95(){
stop();
}
function frame109(){
stop();
}
function frame24(){
gotoAndPlay("walk");
}
function frame114(){
stop();
}
function frame33(){
gotoAndPlay("idle");
}
function frame54(){
stop();
}
}
}//package AoT_fla
Section 9
//ENEMY_274 (AoT_fla.ENEMY_274)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_274 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_274(){
addFrameScript(23, frame24, 49, frame50, 96, frame97, 131, frame132, 172, frame173);
}
function frame97(){
stop();
}
function frame173(){
stop();
}
function frame24(){
gotoAndPlay("walk");
}
function frame132(){
stop();
}
function frame50(){
gotoAndPlay("idle");
}
}
}//package AoT_fla
Section 10
//ENEMY_277 (AoT_fla.ENEMY_277)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_277 extends MovieClip {
public var mcbody:MovieClip;
public function ENEMY_277(){
addFrameScript(10, frame11, 22, frame23, 49, frame50, 80, frame81);
}
function frame81(){
stop();
}
function frame23(){
gotoAndPlay("walk");
}
function frame11(){
gotoAndStop("idle");
}
function frame50(){
stop();
}
}
}//package AoT_fla
Section 11
//ENEMY_281 (AoT_fla.ENEMY_281)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_281 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_281(){
addFrameScript(18, frame19, 37, frame38, 84, frame85, 120, frame121);
}
function frame85(){
stop();
}
function frame19(){
gotoAndPlay("idle");
}
function frame38(){
gotoAndPlay("walk");
}
function frame121(){
stop();
}
}
}//package AoT_fla
Section 12
//ENEMY_287 (AoT_fla.ENEMY_287)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_287 extends MovieClip {
public var mcbody:MovieClip;
public var mc1:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_287(){
addFrameScript(2, frame3, 5, frame6, 88, frame89, 89, frame90, 147, frame148, 161, frame162);
}
function frame89(){
stop();
}
function frame90(){
mc1.visible = false;
}
function frame3(){
gotoAndStop("idle");
}
function frame6(){
gotoAndPlay("walk");
}
function frame162(){
stop();
}
function frame148(){
stop();
}
}
}//package AoT_fla
Section 13
//ENEMY_301 (AoT_fla.ENEMY_301)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_301 extends MovieClip {
public var mcbody:MovieClip;
public function ENEMY_301(){
addFrameScript(18, frame19, 27, frame28, 38, frame39, 49, frame50, 91, frame92);
}
function frame19(){
stop();
}
function frame92(){
stop();
}
function frame28(){
gotoAndPlay("idle");
}
function frame39(){
stop();
}
function frame50(){
stop();
}
}
}//package AoT_fla
Section 14
//ENEMY_304 (AoT_fla.ENEMY_304)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_304 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_304(){
addFrameScript(10, frame11, 53, frame54, 95, frame96, 117, frame118);
}
function frame96(){
stop();
}
function frame118(){
stop();
}
function frame11(){
gotoAndPlay("idle");
}
function frame54(){
stop();
}
}
}//package AoT_fla
Section 15
//ENEMY_311 (AoT_fla.ENEMY_311)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_311 extends MovieClip {
public var mcbody:MovieClip;
public function ENEMY_311(){
addFrameScript(28, frame29, 38, frame39, 51, frame52, 59, frame60, 96, frame97);
}
function frame97(){
stop();
}
function frame29(){
gotoAndPlay("idle");
}
function frame39(){
gotoAndPlay("walk");
}
function frame52(){
stop();
}
function frame60(){
gotoAndPlay("onchomp");
}
}
}//package AoT_fla
Section 16
//ENEMY_313 (AoT_fla.ENEMY_313)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_313 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_313(){
addFrameScript(24, frame25, 63, frame64, 145, frame146, 191, frame192);
}
function frame64(){
gotoAndPlay("idle");
}
function frame25(){
gotoAndPlay("walk");
}
function frame192(){
stop();
}
function frame146(){
stop();
}
}
}//package AoT_fla
Section 17
//ENEMY_317 (AoT_fla.ENEMY_317)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_317 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_317(){
addFrameScript(23, frame24, 33, frame34, 66, frame67, 104, frame105, 137, frame138);
}
function frame105(){
stop();
}
function frame24(){
gotoAndPlay("idle");
}
function frame34(){
gotoAndPlay("walk");
}
function frame138(){
stop();
}
function frame67(){
stop();
}
}
}//package AoT_fla
Section 18
//ENEMY_32 (AoT_fla.ENEMY_32)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_32 extends MovieClip {
public var mcbody:MovieClip;
public function ENEMY_32(){
addFrameScript(23, frame24, 32, frame33, 53, frame54, 94, frame95);
}
function frame95(){
stop();
}
function frame24(){
gotoAndPlay("walk");
}
function frame33(){
gotoAndPlay("idle");
}
function frame54(){
stop();
}
}
}//package AoT_fla
Section 19
//ENEMY_323 (AoT_fla.ENEMY_323)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_323 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_323(){
addFrameScript(22, frame23, 33, frame34, 51, frame52, 76, frame77, 177, frame178);
}
function frame77(){
stop();
}
function frame178(){
stop();
}
function frame23(){
gotoAndPlay("idle");
}
function frame34(){
gotoAndPlay("walk");
}
function frame52(){
stop();
}
}
}//package AoT_fla
Section 20
//ENEMY_331 (AoT_fla.ENEMY_331)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_331 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_331(){
addFrameScript(22, frame23, 33, frame34, 58, frame59, 82, frame83, 183, frame184);
}
function frame23(){
gotoAndPlay("idle");
}
function frame83(){
stop();
}
function frame34(){
gotoAndPlay("walk");
}
function frame184(){
stop();
}
function frame59(){
stop();
}
}
}//package AoT_fla
Section 21
//ENEMY_341 (AoT_fla.ENEMY_341)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_341 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function ENEMY_341(){
addFrameScript(2, frame3, 5, frame6, 25, frame26, 50, frame51, 118, frame119, 140, frame141);
}
function frame3(){
gotoAndPlay("walkfront");
}
function frame6(){
gotoAndPlay("walkback");
}
function frame26(){
gotoAndPlay("idle");
}
function frame119(){
stop();
}
function frame51(){
stop();
}
function frame141(){
stop();
}
}
}//package AoT_fla
Section 22
//ENEMY_88 (AoT_fla.ENEMY_88)
package AoT_fla {
import flash.display.*;
public dynamic class ENEMY_88 extends MovieClip {
public var mcbody:MovieClip;
public var mceyes:fxeyes1;
public function ENEMY_88(){
addFrameScript(7, frame8, 8, frame9, 26, frame27, 63, frame64, 75, frame76);
}
function frame64(){
stop();
}
function frame76(){
stop();
}
function frame8(){
gotoAndPlay("walk");
}
function frame9(){
stop();
}
function frame27(){
stop();
}
}
}//package AoT_fla
Section 23
//FX_144 (AoT_fla.FX_144)
package AoT_fla {
import flash.display.*;
public dynamic class FX_144 extends MovieClip {
public function FX_144(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package AoT_fla
Section 24
//FX_170 (AoT_fla.FX_170)
package AoT_fla {
import flash.display.*;
public dynamic class FX_170 extends MovieClip {
public function FX_170(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package AoT_fla
Section 25
//FX_205 (AoT_fla.FX_205)
package AoT_fla {
import flash.display.*;
public dynamic class FX_205 extends MovieClip {
public function FX_205(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package AoT_fla
Section 26
//FX_218 (AoT_fla.FX_218)
package AoT_fla {
import flash.display.*;
public dynamic class FX_218 extends MovieClip {
public function FX_218(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package AoT_fla
Section 27
//FX_349 (AoT_fla.FX_349)
package AoT_fla {
import flash.display.*;
public dynamic class FX_349 extends MovieClip {
public var mcbody:MovieClip;
public function FX_349(){
addFrameScript(2, frame3, 4, frame5);
}
function frame3(){
gotoAndPlay("idle");
}
function frame5(){
stop();
}
}
}//package AoT_fla
Section 28
//FX_365 (AoT_fla.FX_365)
package AoT_fla {
import flash.display.*;
public dynamic class FX_365 extends MovieClip {
public function FX_365(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 29
//FX_42 (AoT_fla.FX_42)
package AoT_fla {
import flash.display.*;
public dynamic class FX_42 extends MovieClip {
public function FX_42(){
addFrameScript(0, frame1, 1, frame2, 36, frame37);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame37(){
gotoAndPlay(2);
}
}
}//package AoT_fla
Section 30
//FX_436 (AoT_fla.FX_436)
package AoT_fla {
import flash.display.*;
public dynamic class FX_436 extends MovieClip {
public function FX_436(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package AoT_fla
Section 31
//FX_46 (AoT_fla.FX_46)
package AoT_fla {
import flash.display.*;
public dynamic class FX_46 extends MovieClip {
public function FX_46(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 32
//FX_63 (AoT_fla.FX_63)
package AoT_fla {
import flash.display.*;
public dynamic class FX_63 extends MovieClip {
public function FX_63(){
addFrameScript(0, frame1, 1, frame2, 32, frame33);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame33(){
gotoAndPlay(2);
}
}
}//package AoT_fla
Section 33
//FX_65 (AoT_fla.FX_65)
package AoT_fla {
import flash.display.*;
public dynamic class FX_65 extends MovieClip {
public function FX_65(){
addFrameScript(0, frame1, 1, frame2, 22, frame23);
}
function frame1(){
stop();
this.visible = false;
}
function frame23(){
gotoAndPlay(2);
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 34
//HERO_182 (AoT_fla.HERO_182)
package AoT_fla {
import flash.display.*;
public dynamic class HERO_182 extends MovieClip {
public var mcbody:MovieClip;
public var mcdeathstrike:MovieClip;
public function HERO_182(){
addFrameScript(46, frame47, 62, frame63, 78, frame79, 79, frame80, 104, frame105, 126, frame127, 137, frame138);
}
function frame79(){
stop();
}
function frame80(){
stop();
}
function frame105(){
gotoAndPlay("walk");
}
function frame127(){
stop();
}
function frame47(){
gotoAndPlay("idle");
}
function frame138(){
stop();
}
function frame63(){
stop();
}
}
}//package AoT_fla
Section 35
//HERO_37 (AoT_fla.HERO_37)
package AoT_fla {
import flash.display.*;
public dynamic class HERO_37 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function HERO_37(){
addFrameScript(41, frame42, 48, frame49, 65, frame66, 100, frame101, 117, frame118);
}
function frame101(){
stop();
}
function frame118(){
stop();
}
function frame49(){
gotoAndPlay("idle");
}
function frame42(){
gotoAndPlay("idle");
}
function frame66(){
gotoAndPlay("walk");
}
}
}//package AoT_fla
Section 36
//HERO_54 (AoT_fla.HERO_54)
package AoT_fla {
import flash.display.*;
public dynamic class HERO_54 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function HERO_54(){
addFrameScript(35, frame36, 43, frame44, 60, frame61, 95, frame96, 112, frame113);
}
function frame96(){
stop();
}
function frame36(){
gotoAndPlay("idle");
}
function frame113(){
stop();
}
function frame44(){
gotoAndPlay("idle");
}
function frame61(){
gotoAndPlay("walk");
}
}
}//package AoT_fla
Section 37
//HERO_58 (AoT_fla.HERO_58)
package AoT_fla {
import flash.display.*;
public dynamic class HERO_58 extends MovieClip {
public var mcbody:MovieClip;
public var mcshieldbash:MovieClip;
public function HERO_58(){
addFrameScript(23, frame24, 41, frame42, 42, frame43, 59, frame60, 68, frame69);
}
function frame24(){
gotoAndPlay("idle");
}
function frame43(){
stop();
}
function frame42(){
gotoAndPlay("idle");
}
function frame60(){
gotoAndPlay("walk");
}
function frame69(){
gotoAndPlay("skill");
}
}
}//package AoT_fla
Section 38
//HERO_68 (AoT_fla.HERO_68)
package AoT_fla {
import flash.display.*;
public dynamic class HERO_68 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function HERO_68(){
addFrameScript(40, frame41, 64, frame65, 65, frame66, 86, frame87, 101, frame102);
}
function frame65(){
stop();
}
function frame87(){
gotoAndPlay("walk");
}
function frame102(){
stop();
}
function frame41(){
gotoAndPlay("idle");
}
function frame66(){
stop();
}
}
}//package AoT_fla
Section 39
//HERO_70 (AoT_fla.HERO_70)
package AoT_fla {
import flash.display.*;
public dynamic class HERO_70 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function HERO_70(){
addFrameScript(35, frame36, 55, frame56, 84, frame85, 85, frame86, 102, frame103);
}
function frame86(){
stop();
}
function frame85(){
stop();
}
function frame103(){
gotoAndPlay("walk");
}
function frame36(){
gotoAndPlay("idle");
}
function frame56(){
stop();
}
}
}//package AoT_fla
Section 40
//HERO_73 (AoT_fla.HERO_73)
package AoT_fla {
import flash.display.*;
public dynamic class HERO_73 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function HERO_73(){
addFrameScript(32, frame33, 52, frame53, 81, frame82, 82, frame83, 99, frame100);
}
function frame82(){
stop();
}
function frame100(){
gotoAndPlay("walk");
}
function frame83(){
stop();
}
function frame33(){
gotoAndPlay("idle");
}
function frame53(){
stop();
}
}
}//package AoT_fla
Section 41
//HERO_75 (AoT_fla.HERO_75)
package AoT_fla {
import flash.display.*;
public dynamic class HERO_75 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function HERO_75(){
addFrameScript(18, frame19, 43, frame44, 44, frame45, 68, frame69, 81, frame82);
}
function frame82(){
gotoAndPlay("walk");
}
function frame19(){
gotoAndPlay("idle");
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame69(){
stop();
}
}
}//package AoT_fla
Section 42
//HEROSPECIAL_78 (AoT_fla.HEROSPECIAL_78)
package AoT_fla {
import flash.display.*;
public dynamic class HEROSPECIAL_78 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function HEROSPECIAL_78(){
addFrameScript(21, frame22, 52, frame53, 59, frame60, 94, frame95, 111, frame112);
}
function frame95(){
stop();
}
function frame22(){
gotoAndPlay("idle");
}
function frame112(){
stop();
}
function frame53(){
gotoAndPlay("walk");
}
function frame60(){
gotoAndPlay("idle");
}
}
}//package AoT_fla
Section 43
//HEROSPECIAL_82 (AoT_fla.HEROSPECIAL_82)
package AoT_fla {
import flash.display.*;
public dynamic class HEROSPECIAL_82 extends MovieClip {
public var mcbody:MovieClip;
public var mcmissile:MovieClip;
public function HEROSPECIAL_82(){
addFrameScript(10, frame11, 39, frame40, 47, frame48, 82, frame83, 99, frame100);
}
function frame100(){
stop();
}
function frame83(){
stop();
}
function frame11(){
gotoAndPlay("idle");
}
function frame40(){
gotoAndPlay("walk");
}
function frame48(){
gotoAndPlay("idle");
}
}
}//package AoT_fla
Section 44
//INGAME_24 (AoT_fla.INGAME_24)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_24 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_24(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package AoT_fla
Section 45
//INGAME_29 (AoT_fla.INGAME_29)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_29 extends MovieClip {
public var mc1:MovieClip;
}
}//package AoT_fla
Section 46
//INGAME_507 (AoT_fla.INGAME_507)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_507 extends MovieClip {
public function INGAME_507(){
addFrameScript(0, frame1, 1, frame2, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
this.visible = false;
stop();
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 47
//INGAME_532 (AoT_fla.INGAME_532)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_532 extends MovieClip {
public var txtdesc:TextField;
public var mccd:MovieClip;
public var mcskill:MovieClip;
public var txtpassive:TextField;
public var txtcd:TextField;
public var txttitle:TextField;
}
}//package AoT_fla
Section 48
//INGAME_536 (AoT_fla.INGAME_536)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_536 extends MovieClip {
public var txt1:TextField;
}
}//package AoT_fla
Section 49
//INGAME_61 (AoT_fla.INGAME_61)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_61 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_61(){
addFrameScript(0, frame1, 1, frame2, 39, frame40);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame40(){
gotoAndPlay(2);
}
}
}//package AoT_fla
Section 50
//INGAME_712 (AoT_fla.INGAME_712)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_712 extends MovieClip {
public var mcarea:MovieClip;
public var mcbody:MovieClip;
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc2:MovieClip;
public function INGAME_712(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
mc1.visible = false;
mc2.visible = false;
mc3.visible = true;
}
function frame2(){
mc3.visible = false;
}
}
}//package AoT_fla
Section 51
//INGAME_748 (AoT_fla.INGAME_748)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_748 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_748(){
addFrameScript(0, frame1, 1, frame2, 19, frame20);
}
function frame1(){
stop();
this.visible = false;
}
function frame20(){
stop();
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 52
//INGAME_773 (AoT_fla.INGAME_773)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_773 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_773(){
addFrameScript(0, frame1, 1, frame2, 31, frame32);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame32(){
stop();
}
}
}//package AoT_fla
Section 53
//INGAME_774 (AoT_fla.INGAME_774)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_774 extends MovieClip {
public function INGAME_774(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 54
//INGAME_775 (AoT_fla.INGAME_775)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_775 extends MovieClip {
public var btnback:SimpleButton;
public var mc1:MovieClip;
public var mcdarken:MovieClip;
public function INGAME_775(){
addFrameScript(0, frame1, 1, frame2, 20, frame21);
}
function frame1(){
stop();
this.visible = false;
}
function frame21(){
stop();
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 55
//INGAME_776 (AoT_fla.INGAME_776)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_776 extends MovieClip {
public var txtdesc:TextField;
public var txtnot:TextField;
public var btnhp:SimpleButton;
public var txthp:TextField;
public var txtname:TextField;
public var txtatk:TextField;
public var mcenemy:MovieClip;
public var btnatk:SimpleButton;
}
}//package AoT_fla
Section 56
//INGAME_777 (AoT_fla.INGAME_777)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_777 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_777(){
addFrameScript(0, frame1, 1, frame2, 13, frame14);
}
function frame14(){
stop();
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 57
//INGAME_787 (AoT_fla.INGAME_787)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_787 extends MovieClip {
public var btnrestart:SimpleButton;
public var mc1:MovieClip;
public var btnokay:SimpleButton;
public var mcspray1:MovieClip;
public var btnquit:SimpleButton;
public function INGAME_787(){
addFrameScript(0, frame1, 1, frame2, 79, frame80);
}
function frame80(){
stop();
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 58
//INGAME_798 (AoT_fla.INGAME_798)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_798 extends MovieClip {
public var btnrestart:SimpleButton;
public var btnback:SimpleButton;
public var btnarmor:MovieClip;
public var mcdarken:MovieClip;
public var btnquit:SimpleButton;
public function INGAME_798(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 59
//INGAME_804 (AoT_fla.INGAME_804)
package AoT_fla {
import flash.display.*;
public dynamic class INGAME_804 extends MovieClip {
public var mctxt:MovieClip;
public var mchero:MovieClip;
public var mcoldman:ingameoldman;
public function INGAME_804(){
addFrameScript(339, frame340);
}
function frame340(){
stop();
}
}
}//package AoT_fla
Section 60
//MAINMENU_430 (AoT_fla.MAINMENU_430)
package AoT_fla {
import flash.display.*;
public dynamic class MAINMENU_430 extends MovieClip {
public var btnfb:SimpleButton;
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc5:MovieClip;
public var mc2:MovieClip;
public var mc8:MovieClip;
public var btnarmor:MovieClip;
public var mc4:MovieClip;
public var mc7:MovieClip;
public var btngoody:SimpleButton;
public var btnplay:SimpleButton;
public var mcoption:MovieClip;
public var mc6:MovieClip;
public var btnmoregames:SimpleButton;
public var mcdelete:MovieClip;
public var btncredits:SimpleButton;
public function MAINMENU_430(){
addFrameScript(187, frame188);
}
function frame188(){
stop();
}
}
}//package AoT_fla
Section 61
//MAINMENU_445 (AoT_fla.MAINMENU_445)
package AoT_fla {
import flash.display.*;
public dynamic class MAINMENU_445 extends MovieClip {
public function MAINMENU_445(){
addFrameScript(0, frame1, 21, frame22, 57, frame58, 123, frame124, 258, frame259, 311, frame312, 384, frame385, 417, frame418, 484, frame485);
}
function frame385(){
gotoAndStop(1);
}
function frame312(){
gotoAndStop(1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndPlay(("idle" + randRange(1, 4)));
}
function frame22(){
gotoAndPlay(("go" + randRange(1, 4)));
}
function frame124(){
gotoAndPlay(("go" + randRange(1, 4)));
}
function frame485(){
gotoAndStop(1);
}
function frame259(){
gotoAndPlay(("go" + randRange(1, 4)));
}
function frame418(){
gotoAndStop(1);
}
function frame58(){
gotoAndPlay(("go" + randRange(1, 4)));
}
}
}//package AoT_fla
Section 62
//MAINMENU_488 (AoT_fla.MAINMENU_488)
package AoT_fla {
import flash.display.*;
public dynamic class MAINMENU_488 extends MovieClip {
public var btnback:SimpleButton;
public function MAINMENU_488(){
addFrameScript(0, frame1, 1, frame2, 1134, frame1135);
}
function frame1(){
stop();
this.visible = false;
}
function frame1135(){
gotoAndPlay("repeater");
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 63
//MainTimeline (AoT_fla.MainTimeline)
package AoT_fla {
import fl.motion.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
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 captainexpperlevel;
public var levelenemytimespread;
public var soundflopspit:Sound;
public var mcmap:MovieClip;
public var soundchannelfx1:SoundChannel;
public var soundchannelfx3:SoundChannel;
public var soundlevelcomplete:Sound;
public var soundchannelfx5:SoundChannel;
public var levelenemycave;
public var loader:Loader;
public var soundmeteor1:Sound;
public var soundmeteor2:Sound;
public var soundchannelfx2:SoundChannel;
public var soundchannelfx4:SoundChannel;
public var sounddrawbridge:Sound;
public var blobduration;
public var tinkturretrange;
public var templarskilldamage;
public var readyres;
public var leveltilespecial;
public var mcsplash2:MovieClip;
public var soundstep:Sound;
public var fximage;
public var burnduration;
public var templarmissilelinkage;
public var stunchance;
public var relicno;
public var templarskillelementtipe;
public var soundgun1:Sound;
public var soundgun2:Sound;
public var soundgun3:Sound;
public var soundgun4:Sound;
public var relicdesc;
public var textwait;
public var soundgulp:Sound;
public var chainbounce;
public var soundhit1:Sound;
public var soundhit2:Sound;
public var tink101time;
public var sharpneldamage;
public var soundicemine2:Sound;
public var soundicemine3:Sound;
public var soundchannelenemydie1:SoundChannel;
public var soundchannelenemydie2:SoundChannel;
public var soundmainmenu:Sound;
public var soundchannelenemydie4:SoundChannel;
public var soundchannelenemydie5:SoundChannel;
public var soundlose:Sound;
public var soundchannelenemydie3:SoundChannel;
public var soundenemyspit1:Sound;
public var waitnexttime;
public var soundillusion:Sound;
public var leveltilespecialpos;
public var soundenemyspit2:Sound;
public var weaponmastery;
public var btncleanup:SimpleButton;
public var enemymissile;
public var enemyautospawntimetemp;
public var soundheartbeat:Sound;
public var soundbossdead1:Sound;
public var soundbossdead2:Sound;
public var enemymissiletype;
public var soundcurse:Sound;
public var soundtemplardie:Sound;
public var texte;
public var reliccdtemp;
public var soundressurection:Sound;
public var turnheadtimemax;
public var textindex2;
public var agi;
public var captainline;
public var tink101damage;
public var soundlevelup:Sound;
public var templarskillname;
public var evocap;
public var soundshield:Sound;
public var soundnapalm:Sound;
public var armor;
public var rifleamount;
public var skillcdtemp;
public var arcturretduration;
public var mcshadowposition:MovieClip;
public var soundiceflake:Sound;
public var toxicdamage;
public var soundblizzard1:Sound;
public var soundblizzard2:Sound;
public var soundchannelenemyattack1:SoundChannel;
public var enemyaimtipe;
public var soundchannelenemyattack3:SoundChannel;
public var soundchannelenemyattack5:SoundChannel;
public var soundfireexplode:Sound;
public var templarnaturalregen;
public var mcnewenemy:MovieClip;
public var waveindex;
public var tundrabeasthp;
public var soundchannelenemyattack2:SoundChannel;
public var soundchannelenemyattack4:SoundChannel;
public var chainenemy;
public var runsoundtimetemp;
public var soundpop1:Sound;
public var soundpop3:Sound;
public var templarrange;
public var soundpop2:Sound;
public var soundriflehit2:Sound;
public var tundrabeastreload;
public var templararmor;
public var expperlevel;
public var soundwind:Sound;
public var firespirit;
public var soundriflehit1:Sound;
public var expimage;
public var captainatkmultiplier;
public var captainskillname;
public var critchance;
public var captainlist;
public var mcprogress:MovieClip;
public var toxicduration;
public var wingame;
public var chaindone;
public var soundthunder2:Sound;
public var enemystat;
public var mccharselect:MovieClip;
public var turnheadtimemin;
public var waitnexttimetemp;
public var dragonpushback;
public var enemydesc;
public var dieduration;
public var wavephase;
public var soundincoming:Sound;
public var mccredits:MovieClip;
public var mcrelictext:MovieClip;
public var unitimage;
public var magicalunicornspawned;
public var texte2;
public var temparea;
public var soundevo:Sound;
public var btngoody:SimpleButton;
public var soundbattle:Sound;
public var enchantingwindpushback;
public var riflemastery;
public var boss1x;
public var boss1y;
public var entombedtime;
public var blizzardduration;
public var enemyshadow;
public var soundspidercannon:Sound;
public var sounddeathstrike:Sound;
public var tink101x;
public var tink101y;
public var chainindex;
public var captainskillcd;
public var templarskillpassivebool;
public var sortwaiting;
public var mcstory1:MovieClip;
public var mcstory2:MovieClip;
public var mctutorial:MovieClip;
public var captainskillnumbaincrease;
public var templarlevelreq;
public var catapulttime;
public var mcsprayposition:MovieClip;
public var connected;
public var soundchandelier:Sound;
public var txtnum:TextField;
public var soundspark:Sound;
public var soundtundrabeast2:Sound;
public var batasatas;
public var soundstep2:Sound;
public var soundstep3:Sound;
public var soundtundrastomp:Sound;
public var sounddeathwave:Sound;
public var soundskeldie1:Sound;
public var soundstriker3:Sound;
public var mcunitposition:MovieClip;
public var soundfireball:Sound;
public var soundstriker1:Sound;
public var soundskeldie4:Sound;
public var templaras;
public var globalcd;
public var sprayamount;
public var tundrabeastduration;
public var soundskeldie2:Sound;
public var soundstriker2:Sound;
public var soundskeldie5:Sound;
public var templarname;
public var tilespecialname;
public var mcchoosecaptain:MovieClip;
public var mcforeground:MovieClip;
public var chainphase;
public var tink101duration;
public var charke;
public var levelmax;
public var illusionduration;
public var soundskeldie3:Sound;
public var frozetime;
public var enemyattacksound;
public var customContextMenu:ContextMenu;
public var soundflopboing:Sound;
public var templarskilltextaddon;
public var mcskilldesc:MovieClip;
public var contextmenu;
public var btnplay:SimpleButton;
public var shotgunmastery;
public var chaintarget;
public var soundsword1:Sound;
public var soundsword2:Sound;
public var dpstick;
public var templarshadow;
public var hittick;
public var movementcommand;
public var txt1:TextField;
public var smallexp;
public var catapultindex;
public var soundmeteorburn:Sound;
public var wanderingtimemax;
public var soundchainlighting1:Sound;
public var soundchainlighting2:Sound;
public var templarlinkagespecial;
public var soundshielddestroyed:Sound;
public var linkageattacksound;
public var soundflopjump:Sound;
public var tundrabeastvision;
public var burntick;
public var vision;
public var movementcommand2;
public var selectthiscap;
public var entombedtimetemp;
public var entombedindex;
public var tinkengineerduration;
public var shieldduration;
public var soundtowerdestroyed:Sound;
public var onskilldrag;
public var mcannounce:MovieClip;
public var templarhp;
public var soundshotgun:Sound;
public var tilespecialcd;
public var soundselecttemplar:Sound;
public var soundsplat2:Sound;
public var soundsplat3:Sound;
public var soundsplat4:Sound;
public var soundsplat6:Sound;
public var soundcane:Sound;
public var soundsplat1:Sound;
public var soundsplat5:Sound;
public var soundtemplarrange:Sound;
public var templevel;
public var enemydiesound;
public var shadowimage;
public var mcag:MovieClip;
public var soundtile:Sound;
public var meleerange;
public var stunduration;
public var textwait2;
public var wallhp;
public var loadphase;
public var batasfog;
public var mcbg:MovieClip;
public var btnmute1:MovieClip;
public var btnmute2:MovieClip;
public var btnarmor:SimpleButton;
public var mctransisi:MovieClip;
public var mcspecialposition:MovieClip;
public var templarmissilemovementtype;
public var soundunicorn:Sound;
public var templaratk;
public var towerskillno;
public var wanderingtimemin;
public var soundinvulnerable:Sound;
public var templarms;
public var captainskillnumba;
public var mcexp:MovieClip;
public var guestbool;
public var arcturretrange;
public var tinkdirection;
public var sprayimage;
public var mcmouse:MovieClip;
public var chompedtick;
public var soundentangle:Sound;
public var textesaidby;
public var wavewaittemp;
public var hptemp;
public var soundwyvernbullet:Sound;
public var webduration;
public var spellmultiplier;
public var sounddemondie1:Sound;
public var sounddemondie2:Sound;
public var sounddemondie3:Sound;
public var sounddemondie4:Sound;
public var soundthunder:Sound;
public var templarskillreq;
public var spraytime;
public var soundarcturret2:Sound;
public var templarskillcd;
public var hp;
public var lightingballrange;
public var heroindex;
public var id;
public var bigexp;
public var purplecolor:Color;
public var soundhellclaw:Sound;
public var ending;
public var tink101durationtemp;
public var mcscourgeinfo:MovieClip;
public var soundtele:Sound;
public var soundmaintemplarselect:Sound;
public var templarskilldesc;
public var btnback:SimpleButton;
public var tundrabeastatk;
public var entombeddamage;
public var bataswall;
public var mcskills:MovieClip;
public var templarlinkage;
public var agiURL:String;
public var soundtutorial:Sound;
public var soundfireball2:Sound;
public var soundicemine:Sound;
public var enemyautospawntime;
public var chaindamage;
public var templarposition;
public var levelwalladdonpos;
public var soundnapalm2:Sound;
public var newcaptain;
public var enemyautospawnbool;
public var soundarcturret:Sound;
public var AGIconnected;
public var soundlightingball:Sound;
public var enemyexp;
public var soundchannel1:SoundChannel;
public var soundreset:Sound;
public var lightingballduration;
public var soundghostdie:Sound;
public var tundrabeastjumptime;
public var captainskilldesc;
public var soundtink101:Sound;
public var soundclick:Sound;
public var btnskip:SimpleButton;
public var tink101timetemp;
public var arcturretreload;
public var toweravailable;
public var enemyskillcd;
public var templarnaturalregentime;
public var mcon:MovieClip;
public var levelenemywait;
public var burndamage;
public var mcguest:MovieClip;
public var waveenemyindex;
public var soundflopshake:Sound;
public var mcfxposition:MovieClip;
public var enemyname;
public var mcdone:MovieClip;
public var templarattacksfx;
public var mcpause:MovieClip;
public var soundscrolslot1:Sound;
public var soundscrolslot2:Sound;
public var tundrabeastarmor;
public var mcmainmenu:MovieClip;
public var runsoundtime;
public var enemylinkage;
public var so:SharedObject;
public var slowrate;
public var templarvision;
public var skillcd;
public var tinkturretreload;
public var AGIcontinue;
public var soundbanemissile1:Sound;
public var slowduration;
public var soundbanemissile2:Sound;
public var templarskillline;
public var textesaidby2;
public var levelenemy;
public var mcui:MovieClip;
public var slotused;
public var blindchance;
public var sprayatk;
public var volsfx;
public var captainnaturalregen;
public var captainlevel;
public var waittutor;
public var pausegame;
public var mcexpposition:MovieClip;
public var enemytranslateno;
public var rifleindex;
public var textgold;
public var reliccd;
public var volbgm;
public var critmultiplier;
public var soundcollectrelic:Sound;
public var gooduration;
public var lightingballtick;
public var illusionpowa;
public var sortwaitingtemp;
public var templarskillmaxlevel;
public var txtload:TextField;
public var templardesc;
public var mctower1:MovieClip;
public var mctower2:MovieClip;
public var mctower3:MovieClip;
public var sounddragoncannon:Sound;
public var mctower4:MovieClip;
public var mcfog:MovieClip;
public var soundtemplarappear:Sound;
public var soundheal:Sound;
public var sounddelete:Sound;
public var blobreload;
public var soundcreatetink2:Sound;
public var soundhelldemonblast1:Sound;
public var soundhelldemonblast2:Sound;
public var soundcreatetink1:Sound;
public var batasbawah;
public var chainposisi;
public var arcturretdamage;
public var levelwalladdon;
public var soundblind:Sound;
public var textindex;
public var soundfirecamp:Sound;
public var mcsky:MovieClip;
public var captainskillreq;
public var soundicecrack1:Sound;
public var soundicecrack2:Sound;
public var towerskillbool;
public var soundholywave:Sound;
public var txtlog2:TextField;
public var skillno;
public var blindduration;
public var enemyfly;
public var wavewait;
public var enemyeyes;
public var missileimage;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 12, frame13, 13, frame14);
}
public function mapscourge(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mcmap.mclevel.visible = false;
mcmap.mcskills.visible = false;
mcmap.mcscourge.indexke = 1;
mcmap.mcscourge.page = 1;
loadscourge();
}
public function hpkurangi(_arg1:int, _arg2:Object){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
unitimage[_arg1].gotoAndPlay("hit");
_local3 = _arg2.atk;
_local4 = ((unitimage[_arg1].armor - unitimage[_arg1].armormin) / 100);
_local3 = (_local3 - (_local3 * _local4));
if (unitimage[_arg1].darkarmorduration > 0){
_local3 = (_local3 - (_local3 * (unitimage[_arg1].darkarmorreduction / 100)));
};
if (_local3 < 1){
_local3 = 1;
};
unitimage[_arg1].hp = (unitimage[_arg1].hp - _local3);
unitimage[_arg1].mchpbar.visible = true;
unitimage[_arg1].mchpbar.mc1.width = ((unitimage[_arg1].hp / unitimage[_arg1].hptemp) * 22);
if (unitimage[_arg1].wall == true){
_local5 = randRange(0, 10);
if (_local5 < 4){
_arg2 = {x:unitimage[_arg1].x, y:unitimage[_arg1].y, breathtipe:28};
createadditionalfx(_arg2);
_arg2 = null;
};
};
if (unitimage[_arg1].hp <= 0){
unitimage[_arg1].hp = 0;
if (unitimage[_arg1].wall == true){
if ((unitimage[_arg1] is wall1)){
addChildAt(unitimage[_arg1], (getChildIndex(mcshadowposition) - 1));
};
_local6 = 0;
while (_local6 < 6) {
_arg2 = {x:unitimage[_arg1].x, y:unitimage[_arg1].y, breathtipe:28};
createadditionalfx(_arg2);
_arg2 = null;
_local6++;
};
};
unitimage[_arg1].mchpbar.visible = false;
if (unitimage[_arg1].main == true){
soundicemine2.play(0, 1, new SoundTransform(volsfx));
soundtemplardie.play(0, 1, new SoundTransform(volsfx));
_arg2 = {x:unitimage[_arg1].x, y:unitimage[_arg1].y, breathtipe:26};
_local6 = 0;
while (_local6 < 3) {
createadditionalfx(_arg2);
_local6++;
};
_arg2 = null;
};
if ((unitimage[_arg1] is enemy14)){
_local7 = unitimage[_arg1].skillno[0];
_local6 = 0;
while (_local6 < toweravailable.length) {
if (toweravailable[_local6] == _local7){
toweravailable.splice(_local6, 1);
break;
};
_local6++;
};
carinexttower();
};
if ((unitimage[_arg1] is enemy17)){
cekchew(_arg1);
};
if ((unitimage[_arg1] is fxvoidstone)){
creatediesound(unitimage[_arg1].nomor);
balikinboss();
_local8 = {x:unitimage[_arg1].x, y:unitimage[_arg1].y, breathtipe:25};
_local6 = 0;
while (_local6 < 20) {
createadditionalfx(_local8);
_local6++;
};
_local8 = null;
};
if ((unitimage[_arg1] is enemy22)){
soundbossdead2.play(0, 1, new SoundTransform(volsfx));
};
if ((((unitimage[_arg1] is enemy20)) || ((unitimage[_arg1] is enemy21)))){
unitimage[_arg1].bossevo = true;
unitimage[_arg1].notallowed = true;
unitimage[_arg1].stat = "bosstp";
unitimage[_arg1].mc1.gotoAndPlay("telein");
} else {
if ((unitimage[_arg1] is enemy4)){
creatediesound(unitimage[_arg1].nomor);
createenemy(4, unitimage[_arg1], 0);
fximage[fximage.length] = new (fxshielddestroyed);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].x = unitimage[_arg1].x;
fximage[(fximage.length - 1)].y = unitimage[_arg1].y;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].jeda = 0;
fximage[(fximage.length - 1)].phase = 1;
if (unitimage[_arg1].directione == "right"){
fximage[(fximage.length - 1)].scaleX = (fximage[(fximage.length - 1)].scaleX * -1);
};
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, fxwaiting);
removethisunit(unitimage[_arg1]);
} else {
if ((unitimage[_arg1] is enemy8)){
creatediesound(unitimage[_arg1].nomor);
createenemy(9, unitimage[_arg1], 0);
fximage[fximage.length] = new (fxshielddrop);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].x = unitimage[_arg1].x;
fximage[(fximage.length - 1)].y = unitimage[_arg1].y;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].jeda = 0;
fximage[(fximage.length - 1)].phase = 1;
if (unitimage[_arg1].directione == "right"){
fximage[(fximage.length - 1)].scaleX = (fximage[(fximage.length - 1)].scaleX * -1);
};
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, fxwaiting);
removethisunit(unitimage[_arg1]);
} else {
if ((unitimage[_arg1] is enemy7)){
soundbossdead2.play(0, 1, new SoundTransform(volsfx));
_local9 = [1, 2, 5, 6, 3];
_local10 = [70, 70, 70, 70, 40];
_local6 = 0;
while (_local6 <= 10) {
_local11 = -1;
do {
_local12 = randRange(0, (_local9.length - 1));
_local5 = randRange(0, 100);
if (_local5 < _local10[_local12]){
_local11 = _local9[_local12];
};
} while (_local11 == -1);
_arg2 = {x:(unitimage[_arg1].x + randRange(-50, 50)), y:(unitimage[_arg1].y + randRange(-50, 50))};
createenemy(_local11, _arg2, 0);
_local6++;
};
};
unitimage[_arg1].hp = 0;
if (unitimage[_arg1].illusionduration != -1){
removethisunit(unitimage[_arg1]);
} else {
if (unitimage[_arg1].lastbreathbool == true){
soundinvulnerable.play(0, 1, new SoundTransform(volsfx));
trace("he 1");
_local6 = 0;
while (_local6 < unitimage[_arg1].skillno.length) {
if (unitimage[_arg1].skillno[_local6] == 3){
unitimage[_arg1].skillcd[_local6] = unitimage[_arg1].skillcdtemp[_local6];
break;
};
_local6++;
};
unitimage[_arg1].invulnerable = true;
_local13 = (so.data.templarlevel[slotused][3] - captainskillreq[3]);
unitimage[_arg1].lastbreathduration = ((captainskillnumba[3][3][1][1] + (captainskillnumbaincrease[3][3][1] * _local13)) * 25);
unitimage[_arg1].lastbreathbool = false;
} else {
if (unitimage[_arg1].mcdarkarmor != null){
unitimage[_arg1].mcdarkarmor.gotoAndStop(1);
};
resetthisstat(_arg1);
unitimage[_arg1].die = true;
if ((((unitimage[_arg1].side == 0)) || ((((unitimage[_arg1].side == 1)) && ((unitimage[_arg1].main == true)))))){
if (unitimage[_arg1].side == 0){
createexpimage(unitimage[_arg1]);
};
unitimage[_arg1].mc1.gotoAndPlay("die");
unitimage[_arg1].stat = "die";
} else {
if (unitimage[_arg1].captain == true){
unitimage[_arg1].mc1.gotoAndStop("die");
unitimage[_arg1].stat = "diecd";
unitimage[_arg1].mcdeath.gotoAndPlay(2);
unitimage[_arg1].dieduration = (dieduration * 25);
} else {
unitimage[_arg1].mc1.gotoAndPlay("die");
unitimage[_arg1].stat = "die";
};
};
};
};
};
};
};
if ((unitimage[_arg1] is summon1)){
removethisunit(unitimage[_arg1]);
};
cekallenemydie();
};
if (unitimage[_arg1].main == true){
hp = unitimage[_arg1].hp;
updatehpglobe();
if (hp < (hptemp * 0.4)){
createsfx(9);
};
};
}
public function createunicorn(){
magicalunicornspawned++;
if (magicalunicornspawned >= 2){
agi.quests.submit({key:"unicorn", progress:1});
};
soundunicorn.play(0, 1, new SoundTransform(volsfx));
fximage[fximage.length] = new (summon2);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].x = -33;
fximage[(fximage.length - 1)].y = 113;
fximage[(fximage.length - 1)].phase = 1;
fximage[(fximage.length - 1)].atk = 35;
fximage[(fximage.length - 1)].ms = 7;
fximage[(fximage.length - 1)].wait = 20;
fximage[(fximage.length - 1)].waittemp = fximage[(fximage.length - 1)].wait;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, unicornwaiting);
}
public function cekthundara(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local1 = false;
_local2 = [];
_local3 = 0;
while (_local3 < unitimage.length) {
if ((((((((unitimage[_local3].die == false)) && ((unitimage[_local3].notallowed == false)))) && ((unitimage[_local3].side == 0)))) && ((unitimage[_local3].x < batasfog)))){
_local2[_local2.length] = _local3;
};
_local3++;
};
if (_local2.length > 0){
_local1 = true;
soundthunder.play(0, 1, new SoundTransform(volsfx));
_local4 = randRange(0, (_local2.length - 1));
_local5 = carimain();
_local6 = templarskilldamage[so.data.maintemplar[slotused]][9][1][so.data.skilllevel[slotused][9]];
createmissile(fxthundara, 6, _local6, 1, _local5, _local2[_local4], null);
};
return (_local1);
}
public function createtundrabeast(){
unitimage[unitimage.length] = new (summon1);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = 360;
unitimage[(unitimage.length - 1)].y = 225;
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].captain = false;
unitimage[(unitimage.length - 1)].nomor = 666;
unitimage[(unitimage.length - 1)].hp = tundrabeasthp;
unitimage[(unitimage.length - 1)].hptemp = unitimage[(unitimage.length - 1)].hp;
unitimage[(unitimage.length - 1)].atk = tundrabeastatk;
unitimage[(unitimage.length - 1)].atktemp = unitimage[(unitimage.length - 1)].atk;
unitimage[(unitimage.length - 1)].ms = 2;
unitimage[(unitimage.length - 1)].mstemp = unitimage[(unitimage.length - 1)].ms;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].main = false;
unitimage[(unitimage.length - 1)].armor = tundrabeastarmor;
unitimage[(unitimage.length - 1)].directione = "right";
unitimage[(unitimage.length - 1)].range = meleerange;
unitimage[(unitimage.length - 1)].vision = tundrabeastvision;
unitimage[(unitimage.length - 1)].visiontemp = unitimage[(unitimage.length - 1)].vision;
unitimage[(unitimage.length - 1)].reload = 0;
unitimage[(unitimage.length - 1)].reloadtemp = tundrabeastreload;
unitimage[(unitimage.length - 1)].illusionduration = (tundrabeastduration * 25);
unitimage[(unitimage.length - 1)].stat = "incoming";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("incoming");
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, unitwaiting);
unitimage[(unitimage.length - 1)].addEventListener(MouseEvent.CLICK, clikGF);
}
public function plusclick(_arg1:MouseEvent):void{
setthisskills(1, _arg1.currentTarget);
loadskillslot();
}
public function outhero(_arg1:MouseEvent):void{
if (_arg1.currentTarget.currentLabel == "over"){
_arg1.currentTarget.gotoAndStop(1);
};
}
public function unitwaiting(_arg1:Event):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:*;
var _local21:*;
var _local22:*;
var _local23:*;
var _local24:*;
var _local25:*;
var _local26:*;
var _local27:*;
var _local28:*;
var _local29:Point;
var _local30:*;
var _local31:*;
var _local32:*;
var _local33:*;
var _local34:*;
var _local35:*;
var _local36:*;
var _local37:*;
var _local38:*;
var _local39:*;
var _local40:*;
var _local41:*;
var _local42:*;
var _local43:*;
var _local44:*;
var _local45:*;
var _local46:*;
var _local47:*;
var _local48:*;
var _local49:*;
var _local50:*;
var _local51:*;
var _local52:*;
var _local53:*;
if (pausegame == true){
_arg1.currentTarget.mc1.stop();
} else {
if (pausegame == false){
_local2 = false;
if ((((_arg1.currentTarget.side == 0)) && ((_arg1.currentTarget.x < bataswall)))){
_arg1.currentTarget.vision = 300;
} else {
if ((((_arg1.currentTarget.side == 0)) && ((_arg1.currentTarget.x > bataswall)))){
_arg1.currentTarget.vision = _arg1.currentTarget.visiontemp;
};
};
if (_arg1.currentTarget.side == 0){
if (_arg1.currentTarget.x < batasfog){
_arg1.currentTarget.allowtoattack = true;
} else {
if ((((_arg1.currentTarget.x >= batasfog)) && (!((_arg1.currentTarget.nomor == 16))))){
_arg1.currentTarget.allowtoattack = false;
};
};
};
_local3 = 0;
if (_arg1.currentTarget.slowms != -1){
if (_arg1.currentTarget.currentLabel != "froze"){
_arg1.currentTarget.gotoAndStop("froze");
};
_local3 = (_arg1.currentTarget.mstemp * (_arg1.currentTarget.slowms / 100));
_arg1.currentTarget.slowtime--;
if (_arg1.currentTarget.slowtime <= 0){
_arg1.currentTarget.gotoAndStop(1);
_arg1.currentTarget.slowtime = -1;
_arg1.currentTarget.slowms = -1;
};
};
if (_arg1.currentTarget.armormin != 0){
_arg1.currentTarget.mcarmor.gotoAndPlay(2);
};
if (_arg1.currentTarget.darkarmorduration != -1){
if (_arg1.currentTarget.mcdarkarmor.currentFrame == 1){
_arg1.currentTarget.mcdarkarmor.gotoAndPlay(2);
};
_arg1.currentTarget.darkarmorduration--;
if (_arg1.currentTarget.darkarmorduration <= 0){
_arg1.currentTarget.darkarmorduration = -1;
_arg1.currentTarget.mcdarkarmor.gotoAndStop(1);
};
};
if (_arg1.currentTarget.blindduration != -1){
_arg1.currentTarget.blindduration--;
if (_arg1.currentTarget.blindduration <= 0){
_arg1.currentTarget.blindduration = -1;
};
};
if (_arg1.currentTarget.tangledduration != -1){
if (_arg1.currentTarget.mctangled.currentFrame == 1){
_arg1.currentTarget.mctangled.gotoAndPlay(2);
};
_arg1.currentTarget.tangledduration--;
if (_arg1.currentTarget.tangledduration <= 0){
_arg1.currentTarget.tangledduration = -1;
_arg1.currentTarget.mctangled.gotoAndStop(1);
};
};
if (_arg1.currentTarget.blurduration != -1){
_arg1.currentTarget.blurduration--;
if (_arg1.currentTarget.blurduration <= 0){
_arg1.currentTarget.blurduration = -1;
_arg1.currentTarget.dodgechance = 0;
_arg1.currentTarget.alpha = 1;
};
};
if (_arg1.currentTarget.lastbreathduration != -1){
if (_arg1.currentTarget.mclastbreath.currentFrame == 1){
_arg1.currentTarget.mclastbreath.gotoAndPlay(2);
};
if (_arg1.currentTarget.currentFrame == 1){
_arg1.currentTarget.gotoAndStop("invulnerable");
};
_arg1.currentTarget.lastbreathduration--;
if (_arg1.currentTarget.lastbreathduration <= 0){
_arg1.currentTarget.invulnerable = false;
_arg1.currentTarget.lastbreathduration = -1;
_arg1.currentTarget.mclastbreath.gotoAndStop(1);
_arg1.currentTarget.gotoAndStop(1);
_local5 = {atk:999};
hpkurangi(_arg1.currentTarget.indexke, _local5);
_local5 = null;
};
};
if (_arg1.currentTarget.webduration != -1){
_local3 = _arg1.currentTarget.mstemp;
_arg1.currentTarget.webduration--;
if (_arg1.currentTarget.webduration <= 0){
_arg1.currentTarget.webduration = -1;
_local3 = 0;
};
};
if (_arg1.currentTarget.burndamage != -1){
_arg1.currentTarget.burntick--;
if (_arg1.currentTarget.burntick <= 0){
_local5 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:4};
createadditionalfx(_local5);
_arg1.currentTarget.burntick = burntick;
_local5 = {healbool:false, atk:_arg1.currentTarget.burndamage, targete:_arg1.currentTarget.indexke, targetid:_arg1.currentTarget.id, side:2};
cekhitenemy(_local5);
_local5 = null;
};
_arg1.currentTarget.burntime--;
if (_arg1.currentTarget.burntime <= 0){
_arg1.currentTarget.burndamage = -1;
};
};
if (_arg1.currentTarget.toxicdamage != -1){
_arg1.currentTarget.toxictick--;
if (_arg1.currentTarget.toxictick <= 0){
_local5 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:14};
createadditionalfx(_local5);
_arg1.currentTarget.toxictick = burntick;
_local5 = {atk:_arg1.currentTarget.toxicdamage};
hpkurangi(_arg1.currentTarget.indexke, _local5);
_local5 = null;
};
_arg1.currentTarget.toxictime--;
if (_arg1.currentTarget.toxictime <= 0){
_arg1.currentTarget.toxicdamage = -1;
};
};
_local4 = ((_arg1.currentTarget.mstemp - _local3) + _arg1.currentTarget.msbonus);
if ((((_arg1.currentTarget.entangle == true)) || ((_arg1.currentTarget.tangledduration > 0)))){
_local4 = 0;
};
if (_arg1.currentTarget.shieldduration > 0){
_arg1.currentTarget.shieldduration--;
if (_arg1.currentTarget.currentLabel != "shield"){
_arg1.currentTarget.gotoAndStop("shield");
};
if (_arg1.currentTarget.shieldduration <= 0){
_arg1.currentTarget.stat = "idle";
_arg1.currentTarget.shieldduration = -1;
_arg1.currentTarget.gotoAndStop(1);
};
} else {
if (_arg1.currentTarget.gooduration > 0){
_arg1.currentTarget.gooduration--;
if (_arg1.currentTarget.mc1.currentLabel != "idle"){
_arg1.currentTarget.mc1.gotoAndStop("idle");
};
if (_arg1.currentTarget.mcgoo.currentFrame == 1){
_arg1.currentTarget.mcgoo.gotoAndPlay(2);
};
if (_arg1.currentTarget.gooduration <= 0){
if (_arg1.currentTarget.captain == true){
_arg1.currentTarget.stat = "idle";
};
_arg1.currentTarget.gooduration = -1;
_arg1.currentTarget.mcgoo.gotoAndStop(1);
};
} else {
if (_arg1.currentTarget.frozetime > 0){
_arg1.currentTarget.frozetime--;
if (_arg1.currentTarget.mc1.currentLabel != "idle"){
_arg1.currentTarget.mc1.gotoAndStop("idle");
};
if (_arg1.currentTarget.mcfroze.currentFrame == 1){
_arg1.currentTarget.mcfroze.gotoAndStop(2);
};
if (_arg1.currentTarget.frozetime <= 0){
_arg1.currentTarget.mcfroze.gotoAndStop(1);
};
} else {
if (_arg1.currentTarget.stunduration > 0){
_arg1.currentTarget.stunduration--;
if (_arg1.currentTarget.mc1.currentLabel != "idle"){
_arg1.currentTarget.mc1.gotoAndStop("idle");
};
if (_arg1.currentTarget.mcstun.currentFrame == 1){
_arg1.currentTarget.mcstun.gotoAndPlay(2);
};
if (_arg1.currentTarget.stunduration <= 0){
_arg1.currentTarget.stat = "idle";
_arg1.currentTarget.mcstun.gotoAndStop(1);
};
} else {
if (_arg1.currentTarget.jeda > 0){
_arg1.currentTarget.visible = false;
_arg1.currentTarget.jeda--;
if (_arg1.currentTarget.jeda <= 0){
_arg1.currentTarget.visible = true;
};
} else {
if (_arg1.currentTarget.die == false){
if ((((((((_arg1.currentTarget.captain == true)) && (!((_arg1.currentTarget.stat == "chomped"))))) && (!((_arg1.currentTarget.stat == "falling"))))) && (!((_arg1.currentTarget.stat == "captainfalling"))))){
_local6 = 0;
while (_local6 < _arg1.currentTarget.skillno.length) {
if (_arg1.currentTarget.skillcd[_local6] > 0){
var _local54 = _arg1.currentTarget.skillcd;
var _local55 = _local6;
var _local56 = (_local54[_local55] - 1);
_local54[_local55] = _local56;
} else {
if (_arg1.currentTarget.skillcd[_local6] <= 0){
_local7 = (so.data.templarlevel[slotused][_arg1.currentTarget.nomor] - captainskillreq[_arg1.currentTarget.skillno[_local6]]);
if (_arg1.currentTarget.nomor == 3){
if (_arg1.currentTarget.skillno[_local6] == 1){
if (_arg1.currentTarget.stat == "attack"){
_arg1.currentTarget.darkarmorreduction = (captainskillnumba[3][1][1][1] + (captainskillnumbaincrease[3][1][1] * _local7));
_arg1.currentTarget.darkarmorduration = ((captainskillnumba[3][1][2][1] + (captainskillnumbaincrease[3][1][2] * _local7)) * 25);
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
};
} else {
if (_arg1.currentTarget.skillno[_local6] == 2){
_local8 = caritarget(_arg1.currentTarget, false, false);
if (_local8 == true){
_arg1.currentTarget.shieldbashstunduration = ((captainskillnumba[3][2][1][1] + (captainskillnumbaincrease[3][2][1] * _local7)) * 25);
_arg1.currentTarget.targetpoint = [unitimage[_arg1.currentTarget.targete].x, unitimage[_arg1.currentTarget.targete].y];
_arg1.currentTarget.stat = "chase";
_arg1.currentTarget.targetenemy = false;
_arg1.currentTarget.donemovex = false;
_arg1.currentTarget.donemovey = false;
_arg1.currentTarget.onshieldbash = true;
_arg1.currentTarget.shieldbashhitlist = [];
_arg1.currentTarget.msbonus = _arg1.currentTarget.mstemp;
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
};
} else {
if (_arg1.currentTarget.skillno[_local6] == 3){
_arg1.currentTarget.lastbreathbool = true;
};
};
};
} else {
if (_arg1.currentTarget.nomor == 4){
if (_arg1.currentTarget.skillno[_local6] == 1){
if (_arg1.currentTarget.stat == "attack"){
_arg1.currentTarget.blurduration = ((captainskillnumba[4][1][1][1] + (captainskillnumbaincrease[4][1][1] * _local7)) * 25);
_arg1.currentTarget.dodgechance = 100;
_arg1.currentTarget.alpha = 0.5;
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
};
} else {
if (_arg1.currentTarget.skillno[_local6] == 2){
soundillusion.play(0, 1, new SoundTransform(volsfx));
_local9 = int((captainskillnumba[4][2][1][1] + (captainskillnumbaincrease[4][2][1] * _local7)));
_local10 = 0;
while (_local10 < _local9) {
createillusion(_arg1.currentTarget);
_local10++;
};
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
} else {
if (_arg1.currentTarget.skillno[_local6] == 3){
if (_arg1.currentTarget.blurduration == -1){
_local8 = caritarget(_arg1.currentTarget, false, false);
if (_local8 == true){
_arg1.currentTarget.shieldbashhitlist = [];
_arg1.currentTarget.shieldbashstunduration = ((captainskillnumba[3][2][1][1] + (captainskillnumbaincrease[3][2][1] * _local7)) * 25);
_arg1.currentTarget.mc1.gotoAndPlay("skill");
_arg1.currentTarget.targetpoint = [unitimage[_arg1.currentTarget.targete].x, unitimage[_arg1.currentTarget.targete].y];
_arg1.currentTarget.stat = "deathstrike";
_arg1.currentTarget.targetenemy = false;
_arg1.currentTarget.donemovex = false;
_arg1.currentTarget.donemovey = false;
_arg1.currentTarget.notallowed = true;
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
if ((((_arg1.currentTarget.targetpoint[0] > _arg1.currentTarget.x)) && ((_arg1.currentTarget.directione == "left")))){
_arg1.currentTarget.directione = "right";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
_arg1.currentTarget.mchpbar.scaleX = (_arg1.currentTarget.mchpbar.scaleX * -1);
scalethiscaptain(_arg1.currentTarget);
} else {
if ((((_arg1.currentTarget.targetpoint[0] < _arg1.currentTarget.x)) && ((_arg1.currentTarget.directione == "right")))){
_arg1.currentTarget.directione = "left";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
_arg1.currentTarget.mchpbar.scaleX = (_arg1.currentTarget.mchpbar.scaleX * -1);
scalethiscaptain(_arg1.currentTarget);
};
};
};
};
};
};
};
} else {
if (_arg1.currentTarget.nomor == 5){
if (_arg1.currentTarget.skillno[_local6] == 1){
_arg1.currentTarget.mc1.gotoAndPlay("skill");
_arg1.currentTarget.stat = "plantskill";
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
} else {
if (_arg1.currentTarget.skillno[_local6] == 2){
_local10 = 0;
while (_local10 < unitimage.length) {
if ((((unitimage[_local10] is wall1)) && ((unitimage[_local10].hp < unitimage[_local10].hptemp)))){
_arg1.currentTarget.mc1.gotoAndPlay("skill");
_arg1.currentTarget.stat = "plantskill2";
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
break;
};
_local10++;
};
} else {
if (_arg1.currentTarget.skillno[_local6] == 3){
if (_arg1.currentTarget.stat == "attack"){
createtink101(_arg1.currentTarget);
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
};
};
};
};
} else {
if (_arg1.currentTarget.nomor == 6){
if (_arg1.currentTarget.skillno[_local6] == 1){
_local11 = [];
_local10 = 0;
while (_local10 < unitimage.length) {
if ((((((((unitimage[_local10].main == true)) || ((unitimage[_local10].captain == true)))) && ((unitimage[_local10].hp < unitimage[_local10].hptemp)))) && ((unitimage[_local10].die == false)))){
_local11[_local11.length] = _local10;
if (unitimage[_local10].captain == true){
break;
};
};
_local10++;
};
if (_local11.length > 0){
_arg1.currentTarget.mc1.gotoAndPlay("skill");
_arg1.currentTarget.stat = "heal";
_local12 = randRange(0, (_local11.length - 1));
_local13 = (captainskillnumba[6][1][1][1] + (captainskillnumbaincrease[6][1][1] * _local7));
createmissile(fxlightheal, 6, _local13, 1, _arg1.currentTarget, _local11[_local12], null);
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
};
} else {
if (_arg1.currentTarget.skillno[_local6] == 2){
_local14 = false;
_local10 = 0;
while (_local10 < unitimage.length) {
if ((((((((((unitimage[_local10].notallowed == false)) && (!((unitimage[_local10].side == _arg1.currentTarget.side))))) && ((unitimage[_local10].die == false)))) && ((unitimage[_local10].y > (_arg1.currentTarget.y - 30))))) && ((unitimage[_local10].y <= _arg1.currentTarget.y)))){
_local14 = true;
break;
};
_local10++;
};
if (_local14 == true){
_arg1.currentTarget.mc1.gotoAndPlay("skill");
_arg1.currentTarget.stat = "heal";
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
_local13 = (captainskillnumba[6][2][1][1] + (captainskillnumbaincrease[6][2][1] * _local7));
_local5 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y};
createmissile(fxholywave, 5, _local13, 1, _local5, -1, null);
createholywaveline(_arg1.currentTarget, 1);
_local5 = null;
};
} else {
if (_arg1.currentTarget.skillno[_local6] == 3){
_local11 = [];
_local10 = 0;
while (_local10 < unitimage.length) {
if ((((((unitimage[_local10].captain == true)) && ((unitimage[_local10].die == true)))) && ((unitimage[_local10].dieduration > 50)))){
_local11[_local11.length] = _local10;
};
_local10++;
};
if (_local11.length > 0){
_local12 = randRange(0, (_local11.length - 1));
createonesoul(_local11[_local12]);
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
};
};
};
};
} else {
if (_arg1.currentTarget.nomor == 7){
if (_arg1.currentTarget.skillno[_local6] == 1){
_arg1.currentTarget.mc1.gotoAndPlay("skill");
_arg1.currentTarget.stat = "heal";
_local15 = 0;
while (_local15 < 3) {
_local16 = randRange((bataswall + 50), 600);
_local17 = randRange(batasatas, batasbawah);
_local5 = {x:_local16, y:_local17};
createblobhere(_local5);
_local5 = null;
_local15++;
};
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
} else {
if (_arg1.currentTarget.skillno[_local6] == 2){
_local14 = false;
_local10 = 0;
while (_local10 < unitimage.length) {
if ((((((((((unitimage[_local10].notallowed == false)) && (!((unitimage[_local10].side == _arg1.currentTarget.side))))) && ((unitimage[_local10].die == false)))) && ((unitimage[_local10].y > (_arg1.currentTarget.y - 30))))) && ((unitimage[_local10].y <= _arg1.currentTarget.y)))){
_local14 = true;
break;
};
_local10++;
};
if (_local14 == true){
_arg1.currentTarget.mc1.gotoAndPlay("skill");
_arg1.currentTarget.stat = "heal";
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
_local13 = (captainskillnumba[7][2][1][1] + (captainskillnumbaincrease[7][2][1] * _local7));
_local5 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y};
createmissile(fxdeathwave, 5, _local13, 1, _local5, -1, null);
createholywaveline(_arg1.currentTarget, 2);
_local5 = null;
};
} else {
if (_arg1.currentTarget.skillno[_local6] == 3){
_local11 = [];
_local10 = 0;
while (_local10 < unitimage.length) {
if (((((!((unitimage[_local10].side == _arg1.currentTarget.side))) && ((unitimage[_local10].die == false)))) && ((unitimage[_local10].armormin == 0)))){
_local11[_local11.length] = _local10;
};
_local10++;
};
if (_local11.length > 0){
soundcurse.play(0, 1, new SoundTransform(volsfx));
_local12 = randRange(0, (_local11.length - 1));
_local18 = {x:unitimage[_local11[_local12]].x, y:unitimage[_local11[_local12]].y, breathtipe:19};
createadditionalfx(_local18);
_local18 = null;
unitimage[_local11[_local12]].armormin = (captainskillnumba[7][3][1][1] + (captainskillnumbaincrease[7][3][1] * _local7));
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
};
};
};
};
} else {
if (_arg1.currentTarget.nomor == 8){
if (_arg1.currentTarget.skillno[_local6] == 1){
_local11 = [];
_local10 = 0;
while (_local10 < unitimage.length) {
if ((((((((((((unitimage[_local10].boss == false)) && ((unitimage[_local10].debris == false)))) && (!((unitimage[_local10].side == _arg1.currentTarget.side))))) && ((unitimage[_local10].die == false)))) && ((unitimage[_local10].tangledduration == -1)))) && ((unitimage[_local10].flymode == 0)))){
_local11[_local11.length] = _local10;
};
_local10++;
};
if (_local11.length > 0){
soundentangle.play(0, 1, new SoundTransform(volsfx));
_arg1.currentTarget.mc1.gotoAndPlay("skill");
_arg1.currentTarget.stat = "heal";
_local12 = randRange(0, (_local11.length - 1));
unitimage[_local11[_local12]].tangledduration = ((captainskillnumba[8][1][1][1] + (captainskillnumbaincrease[8][1][1] * _local7)) * 25);
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
};
} else {
if (_arg1.currentTarget.skillno[_local6] == 2){
_local11 = [];
_local10 = 0;
while (_local10 < unitimage.length) {
if ((((((((((unitimage[_local10].boss == false)) && ((unitimage[_local10].debris == false)))) && (!((unitimage[_local10].side == _arg1.currentTarget.side))))) && ((unitimage[_local10].die == false)))) && ((unitimage[_local10].blindduration == -1)))){
_local11[_local11.length] = _local10;
};
_local10++;
};
if (_local11.length > 0){
soundblind.play(0, 1, new SoundTransform(volsfx));
_arg1.currentTarget.mc1.gotoAndPlay("skill");
_arg1.currentTarget.stat = "heal";
_local12 = randRange(0, (_local11.length - 1));
unitimage[_local11[_local12]].blindduration = blindduration;
unitimage[_local11[_local12]].blindchance = blindchance;
_local18 = {x:unitimage[_local11[_local12]].x, y:unitimage[_local11[_local12]].y, breathtipe:20};
createadditionalfx(_local18);
_local18 = null;
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
};
} else {
if (_arg1.currentTarget.skillno[_local6] == 3){
_local11 = [];
_local10 = 0;
while (_local10 < unitimage.length) {
if (((((!((unitimage[_local10].side == _arg1.currentTarget.side))) && ((unitimage[_local10].die == false)))) && ((unitimage[_local10].blindduration == -1)))){
_local11[_local11.length] = _local10;
};
_local10++;
};
if (_local11.length > 5){
soundwind.play(0, 1, new SoundTransform(volsfx));
_arg1.currentTarget.mc1.gotoAndPlay("skill");
_arg1.currentTarget.stat = "heal";
_local13 = (captainskillnumba[8][3][1][1] + (captainskillnumbaincrease[8][3][1] * _local7));
createmissile(fxenchantingwind, 5, _local13, 1, _arg1.currentTarget.mc1.mcmissile, -1, null);
_arg1.currentTarget.skillcd[_local6] = _arg1.currentTarget.skillcdtemp[_local6];
};
};
};
};
};
};
};
};
};
};
};
};
_local6++;
};
};
};
if (_arg1.currentTarget.stat == "falling"){
_arg1.currentTarget.notallowed = true;
_arg1.currentTarget.y = (_arg1.currentTarget.y + 5);
_arg1.currentTarget.alpha = (_arg1.currentTarget.alpha - 0.08);
if (_arg1.currentTarget.alpha <= 0){
if (_arg1.currentTarget.side == 0){
_arg1.currentTarget.die = true;
createexpimage(_arg1.currentTarget);
removethisunit(_arg1.currentTarget);
_local2 = true;
cekallenemydie();
} else {
_arg1.currentTarget.alpha = 1;
_arg1.currentTarget.x = randRange((bataswall + 50), 308);
_arg1.currentTarget.y = -22.8;
_arg1.currentTarget.sampey = randRange(batasatas, batasbawah);
_arg1.currentTarget.stat = "captainfalling";
};
};
} else {
if (_arg1.currentTarget.stat == "captainfalling"){
_arg1.currentTarget.y = (_arg1.currentTarget.y + 20);
if (_arg1.currentTarget.y > _arg1.currentTarget.sampey){
_arg1.currentTarget.notallowed = false;
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "climb1"){
_arg1.currentTarget.y = (_arg1.currentTarget.y - 3);
if (_arg1.currentTarget.y < _arg1.currentTarget.sampey){
_arg1.currentTarget.mc1.gotoAndPlay("jump");
_arg1.currentTarget.stat = "climb2";
};
} else {
if (_arg1.currentTarget.stat == "climb2"){
_arg1.currentTarget.y = (_arg1.currentTarget.y - 10);
if (_arg1.currentTarget.y < -20){
_local19 = _arg1.currentTarget.indexke;
addChildAt(unitimage[_local19], (getChildIndex(mcunitposition) - 1));
_arg1.currentTarget.x = (_arg1.currentTarget.x + randRange(-50, 50));
_arg1.currentTarget.sampey = randRange(batasatas, (batasatas + 30));
_arg1.currentTarget.stat = "climb3";
};
} else {
if (_arg1.currentTarget.stat == "climb3"){
_arg1.currentTarget.y = (_arg1.currentTarget.y + 10);
if (_arg1.currentTarget.y > _arg1.currentTarget.sampey){
_arg1.currentTarget.notallowed = false;
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "ascend"){
if (_arg1.currentTarget.mc1.currentLabel == "doneascend"){
_arg1.currentTarget.notallowed = false;
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "voidstone"){
if (_arg1.currentTarget.phase == 1){
_arg1.currentTarget.x = (_arg1.currentTarget.x + 10);
_arg1.currentTarget.slidetick--;
if (_arg1.currentTarget.slidetick <= 0){
_local5 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:24};
createadditionalfx(_local5);
_local5 = null;
_arg1.currentTarget.slidetick = _arg1.currentTarget.slideticktemp;
};
if (_arg1.currentTarget.x > 800){
_arg1.currentTarget.notallowed = true;
_arg1.currentTarget.phase = 2;
createenemy(23, null, 0);
};
};
} else {
if (_arg1.currentTarget.stat == "march"){
_arg1.currentTarget.x = (_arg1.currentTarget.x - _arg1.currentTarget.ms);
_arg1.currentTarget.reload--;
if (_arg1.currentTarget.reload <= 0){
_arg1.currentTarget.reload = _arg1.currentTarget.reloadtemp;
_local10 = 0;
while (_local10 < unitimage.length) {
if (((((!((unitimage[_local10].side == _arg1.currentTarget.side))) && ((unitimage[_local10].die == false)))) && ((unitimage[_local10].notallowed == false)))){
if (unitimage[_local10].mc1.mcbody.hitTestObject(_arg1.currentTarget.mc1.mcbody) == true){
_arg1.currentTarget.targete = _local10;
_arg1.currentTarget.targetid = unitimage[_local10].id;
cekhitenemy(_arg1.currentTarget);
};
};
_local10++;
};
};
if (_arg1.currentTarget.x < 20){
balikinboss();
creatediesound(_arg1.currentTarget.nomor);
_local20 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:25};
_local6 = 0;
while (_local6 < 20) {
createadditionalfx(_local20);
_local6++;
};
_local20 = null;
removethisunit(_arg1.currentTarget);
};
} else {
if (_arg1.currentTarget.stat == "hellclaw"){
if (_arg1.currentTarget.phase == 1){
_arg1.currentTarget.y = (_arg1.currentTarget.y - 10);
_arg1.currentTarget.slidetick--;
if (_arg1.currentTarget.slidetick <= 0){
_local5 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:24};
createadditionalfx(_local5);
_local5 = null;
_arg1.currentTarget.slidetick = _arg1.currentTarget.slideticktemp;
};
soundhellclaw.play(0, 1, new SoundTransform(volsfx));
if (_arg1.currentTarget.y < -50){
_arg1.currentTarget.phase = 2;
_local5 = {x:665, y:318};
createmissile(fxhellclaw, 5, 250, _arg1.currentTarget.side, _local5, -1, null);
_local5 = null;
_arg1.currentTarget.notallowed = true;
};
} else {
_arg1.currentTarget.hellclawtime--;
if (_arg1.currentTarget.hellclawtime <= 0){
_arg1.currentTarget.notallowed = false;
_arg1.currentTarget.stat = "summoned";
_arg1.currentTarget.mc1.gotoAndPlay("incoming");
_arg1.currentTarget.x = 457;
_arg1.currentTarget.y = 241;
};
};
} else {
if (_arg1.currentTarget.stat == "slide"){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speedx);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speedy);
_arg1.currentTarget.timemove--;
_arg1.currentTarget.slidetick--;
if (_arg1.currentTarget.slidetick <= 0){
_local5 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:24};
createadditionalfx(_local5);
_local5 = null;
_arg1.currentTarget.slidetick = _arg1.currentTarget.slideticktemp;
};
if (_arg1.currentTarget.timemove <= 0){
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "bossskill"){
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.notallowed = false;
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "evo"){
if (_arg1.currentTarget.mc1.currentLabel == "doneevo"){
removethisunit(_arg1.currentTarget);
if ((_arg1.currentTarget is enemy20)){
createenemy(21, _arg1.currentTarget, 0);
} else {
createenemy(22, _arg1.currentTarget, 0);
};
_local2 = true;
};
} else {
if (_arg1.currentTarget.stat == "bosstp"){
if (_arg1.currentTarget.mc1.currentLabel == "donetelein"){
if (_arg1.currentTarget.bossevo == true){
_arg1.currentTarget.x = 457;
_arg1.currentTarget.y = 241;
} else {
_arg1.currentTarget.x = randRange((bataswall + 100), 650);
_arg1.currentTarget.y = randRange(batasatas, batasbawah);
};
} else {
if (_arg1.currentTarget.mc1.currentLabel == "doneteleout"){
if (_arg1.currentTarget.bossevo == true){
soundevo.play(0, 4, new SoundTransform(volsfx));
_arg1.currentTarget.stat = "evo";
_arg1.currentTarget.mc1.gotoAndPlay("evo");
} else {
_arg1.currentTarget.notallowed = false;
trace(("DONE TP : " + _arg1.currentTarget.notallowed));
_arg1.currentTarget.stat = "idle";
};
};
};
} else {
if (_arg1.currentTarget.stat == "spreadshot"){
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
createsfx(3);
_local21 = carimain();
_local22 = [-40, 0, 40];
_local6 = 0;
while (_local6 < 3) {
_local5 = {x:_local21.x, y:(_local21.y + _local22[_local6])};
createmissile(fxbossbullet, 7, _arg1.currentTarget.atk, _arg1.currentTarget.side, _arg1.currentTarget.mc1.mcmissile, -1, _local5);
_local5 = null;
_local6++;
};
};
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.stat = "idle";
_arg1.currentTarget.notallowed = false;
};
} else {
if (_arg1.currentTarget.stat == "heal"){
if (_arg1.currentTarget.mc1.currentLabel == "missile"){
_local10 = 0;
while (_local10 < unitimage.length) {
if ((((((((unitimage[_local10].side == _arg1.currentTarget.side)) && ((unitimage[_local10].die == false)))) && ((unitimage[_local10].hp < unitimage[_local10].hptemp)))) && (!((_arg1.currentTarget == unitimage[_local10]))))){
if ((((((((unitimage[_local10].x > (_arg1.currentTarget.x - 150))) && ((unitimage[_local10].x < (_arg1.currentTarget.x + 150))))) && ((unitimage[_local10].y > (_arg1.currentTarget.y - 150))))) && ((unitimage[_local10].y < (_arg1.currentTarget.y + 150))))){
createmissile(fxhealglobe, 6, _arg1.currentTarget.atk, _arg1.currentTarget.side, _arg1.currentTarget, _local10, null);
};
};
_local10++;
};
};
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.stat = "idle";
_arg1.currentTarget.notallowed = false;
};
} else {
if (_arg1.currentTarget.stat == "chew"){
_local6 = 0;
while (_local6 < unitimage.length) {
if (unitimage[_local6].id == _arg1.currentTarget.chompedtargetid){
_arg1.currentTarget.targete = _local6;
_arg1.currentTarget.targetid = unitimage[_local6].id;
break;
};
_local6++;
};
if (_arg1.currentTarget.mc1.currentLabel != "onchomp"){
_arg1.currentTarget.mc1.gotoAndPlay("onchomp");
};
if (unitimage[_arg1.currentTarget.targete].die == false){
_arg1.currentTarget.chompedtick--;
if (_arg1.currentTarget.chompedtick <= 0){
_arg1.currentTarget.chompedtick = chompedtick;
hpkurangi(_arg1.currentTarget.targete, _arg1.currentTarget);
};
};
if (unitimage[_arg1.currentTarget.targete].hp <= 0){
_arg1.currentTarget.stat = "idle";
unitimage[_arg1.currentTarget.targete].visible = true;
};
} else {
if (_arg1.currentTarget.stat == "chomped"){
_arg1.currentTarget.notallowed = true;
_arg1.currentTarget.alpha = 0.1;
} else {
if (_arg1.currentTarget.stat == "flydown"){
if (_arg1.currentTarget.mc1.currentLabel == "doneincoming"){
_arg1.currentTarget.stat = "idle";
_arg1.currentTarget.notallowed = false;
};
} else {
if (_arg1.currentTarget.stat == "teleout"){
if (_arg1.currentTarget.mc1.currentLabel == "doneteleout"){
_local23 = caritargetrandom(_arg1.currentTarget);
if (_local23 != -1){
_arg1.currentTarget.x = (unitimage[_local23].x + randRange(-10, 10));
_arg1.currentTarget.y = (unitimage[_local23].y + randRange(-10, 10));
} else {
_arg1.currentTarget.x = randRange(bataswall, batasfog);
_arg1.currentTarget.y = randRange(batasatas, batasbawah);
};
_arg1.currentTarget.mc1.gotoAndPlay("telein");
} else {
if (_arg1.currentTarget.mc1.currentLabel == "donetelein"){
_arg1.currentTarget.stat = "idle";
_arg1.currentTarget.notallowed = false;
};
};
} else {
if (_arg1.currentTarget.stat == "summonskel2"){
towerskillbool = true;
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
_local24 = (1 - (_arg1.currentTarget.hp / _arg1.currentTarget.hptemp));
_local25 = 3;
_local26 = 6;
_local9 = (_local26 * _local24);
if (_local9 < _local25){
_local9 = _local25;
};
_local6 = 0;
while (_local6 < _local9) {
_local27 = randRange((bataswall + 75), 600);
_local28 = randRange(batasatas, batasbawah);
_local5 = {x:_local27, y:_local28};
createmissile(fxsoul, 2, _arg1.currentTarget.atk, 1, _arg1.currentTarget.mc1.mcmissile, -1, _local5);
_local5 = null;
_local6++;
};
} else {
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
towerskillbool = false;
carinexttower();
_arg1.currentTarget.stat = "idle";
};
};
} else {
if (_arg1.currentTarget.stat == "spray"){
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
fximage[fximage.length] = new (fxspraycore);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
_local29 = _arg1.currentTarget.mc1.mcmissile.localToGlobal(new Point(0, 0));
fximage[(fximage.length - 1)].x = _local29.x;
fximage[(fximage.length - 1)].y = _local29.y;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].spraycd = 0;
fximage[(fximage.length - 1)].spraycdtemp = 6;
fximage[(fximage.length - 1)].atk = sprayatk;
fximage[(fximage.length - 1)].sprayindex = 0;
fximage[(fximage.length - 1)].spraytimes = 20;
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, spraywaiting);
};
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "entombed"){
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
entombedtime = 0;
entombedindex = 0;
stage.addEventListener(Event.ENTER_FRAME, entombedwaiting);
};
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "towersummon"){
if (_arg1.currentTarget.mc1.currentLabel == "doneincoming"){
_arg1.currentTarget.stat = "idle";
_arg1.currentTarget.notallowed = false;
};
} else {
if (_arg1.currentTarget.stat == "summoned"){
if (_arg1.currentTarget.mc1.currentLabel == "doneincoming"){
_arg1.currentTarget.stat = "idle";
_arg1.currentTarget.notallowed = false;
};
} else {
if (_arg1.currentTarget.stat == "summonskeleton"){
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
_local27 = randRange((bataswall + 75), 600);
_local28 = randRange(batasatas, batasbawah);
_local5 = {x:_local27, y:_local28};
createmissile(fxsoul, 2, _arg1.currentTarget.atk, 1, _arg1.currentTarget.mc1.mcmissile, -1, _local5);
_local5 = null;
} else {
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.stat = "idle";
};
};
} else {
if (_arg1.currentTarget.stat == "flopjump"){
if (_arg1.currentTarget.mc1.currentLabel == "boing"){
soundflopboing.play(0, 1, new SoundTransform(volsfx));
};
if (_arg1.currentTarget.mc1.currentLabel == "blast"){
soundflopjump.play(0, 1, new SoundTransform(volsfx));
};
if (_arg1.currentTarget.mc1.currentLabel == "clap"){
soundtundrastomp.play(0, 1, new SoundTransform(volsfx));
};
if ((((_arg1.currentTarget.mc1.currentLabel == "jump")) || ((_arg1.currentTarget.mc1.currentLabel == "yes")))){
_arg1.currentTarget.notallowed = false;
} else {
_arg1.currentTarget.notallowed = true;
};
if (_arg1.currentTarget.mc1.currentLabel == "change"){
_local11 = [];
_local6 = 0;
while (_local6 < unitimage.length) {
if ((((((((((unitimage[_local6].captain == true)) || ((unitimage[_local6].main == true)))) && ((unitimage[_local6].die == false)))) && ((unitimage[_local6].notallowed == false)))) && (!((unitimage[_local6].side == _arg1.currentTarget.side))))){
_local11[_local11.length] = _local6;
};
_local6++;
};
if (_local11.length > 0){
_local12 = randRange(0, (_local11.length - 1));
_arg1.currentTarget.x = unitimage[_local11[_local12]].x;
_arg1.currentTarget.y = unitimage[_local11[_local12]].y;
};
} else {
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
_local6 = 0;
while (_local6 < unitimage.length) {
if ((((((unitimage[_local6].die == false)) && ((unitimage[_local6].notallowed == false)))) && (!((unitimage[_local6].side == _arg1.currentTarget.side))))){
if (unitimage[_local6].mc1.mcbody.hitTestObject(_arg1.currentTarget.mc1.mcbody) == true){
_arg1.currentTarget.targete = _local6;
_arg1.currentTarget.targetid = unitimage[_local6].id;
_local30 = _arg1.currentTarget.atk;
if (unitimage[_local6].captain == true){
_arg1.currentTarget.atk = 999;
};
cekhitenemy(_arg1.currentTarget);
_arg1.currentTarget.atk = _local30;
};
};
_local6++;
};
} else {
if (_arg1.currentTarget.mc1.currentLabel == "back"){
_arg1.currentTarget.x = boss1x;
_arg1.currentTarget.y = boss1y;
} else {
if (_arg1.currentTarget.mc1.currentLabel == "donejump"){
_arg1.currentTarget.notallowed = false;
_arg1.currentTarget.stat = "idle";
};
};
};
};
} else {
if (_arg1.currentTarget.stat == "spit"){
if (_arg1.currentTarget.mc1.currentLabel == "missile"){
soundflopspit.play(0, 1, new SoundTransform(volsfx));
_local31 = 1;
_local32 = (_arg1.currentTarget.hp / _arg1.currentTarget.hptemp);
if (_local32 < 0.6){
_local31 = 2;
} else {
if (_local32 < 0.4){
_local31 = 3;
};
};
_local31 = 2;
_local11 = [];
_local6 = 0;
while (_local6 < unitimage.length) {
if ((((((((((unitimage[_local6].captain == true)) || ((unitimage[_local6].main == true)))) && ((unitimage[_local6].die == false)))) && ((unitimage[_local6].notallowed == false)))) && (!((unitimage[_local6].side == _arg1.currentTarget.side))))){
_local11[_local11.length] = _local6;
};
_local6++;
};
if (_local11.length > 0){
do {
_local12 = randRange(0, (_local11.length - 1));
_local5 = {x:unitimage[_local11[_local12]].x, y:unitimage[_local11[_local12]].y};
createmissile(fxgoospit, 2, 0, _arg1.currentTarget.side, _arg1.currentTarget.mc1.mcmissile, -1, _local5);
_local5 = null;
_local11.splice(_local12, 1);
--_local31;
} while ((((_local31 > 0)) && ((_local11.length > 0))));
};
} else {
if (_arg1.currentTarget.mc1.currentLabel == "donespit"){
_arg1.currentTarget.stat = "idle";
};
};
} else {
if (_arg1.currentTarget.stat == "summon"){
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
soundincoming.play(0, 1, new SoundTransform(volsfx));
_local33 = [1, 2, 3, 5, 6];
_local32 = (_arg1.currentTarget.hp / _arg1.currentTarget.hptemp);
if (_local32 < 0.2){
_local33 = [3, 5, 6];
} else {
if (_local32 < 0.4){
_local33 = [2, 3, 5];
} else {
if (_local32 < 0.6){
_local33 = [1, 2, 3];
} else {
_local33 = [1, 2];
};
};
};
_local6 = 0;
while (_local6 < 10) {
_local34 = _local33[randRange(0, (_local33.length - 1))];
createenemy(_local34, null, (_local6 * 10));
_local6++;
};
};
if (_arg1.currentTarget.mc1.currentLabel == "donesummon"){
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "flopincoming"){
if (_arg1.currentTarget.mc1.currentLabel == "clap"){
soundtundrastomp.play(0, 1, new SoundTransform(volsfx));
};
_arg1.currentTarget.notallowed = true;
if (_arg1.currentTarget.mc1.currentLabel == "doneincoming"){
_arg1.currentTarget.notallowed = false;
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "jump"){
if (_arg1.currentTarget.mc1.currentLabel == "skill"){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speedx);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speedy);
} else {
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
soundtundrastomp.play(0, 1, new SoundTransform(volsfx));
createmissile(fxcrumble, 3, _arg1.currentTarget.atk, 1, _arg1.currentTarget, -1, null);
} else {
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.notallowed = false;
_arg1.currentTarget.stat = "idle";
};
};
};
} else {
if (_arg1.currentTarget.stat == "outcoming"){
if (_arg1.currentTarget.mc1.currentLabel == "doneoutcoming"){
_local2 = true;
removethisunit(_arg1.currentTarget);
};
} else {
if (_arg1.currentTarget.stat == "incoming"){
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
soundtundrastomp.play(0, 1, new SoundTransform(volsfx));
createmissile(fxcrumble, 3, _arg1.currentTarget.atk, 1, _arg1.currentTarget, -1, null);
};
if (_arg1.currentTarget.mc1.currentLabel == "doneincoming"){
_arg1.currentTarget.notallowed = false;
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "heal"){
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "plantskill2"){
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
createtinkengineer(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.stat = "idle";
};
};
} else {
if (_arg1.currentTarget.stat == "plantskill"){
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
createsfx(6);
createtinkturret(_arg1.currentTarget);
createtinkturret(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.mc1.currentLabel == "doneskill"){
_arg1.currentTarget.stat = "idle";
};
};
} else {
if (_arg1.currentTarget.stat == "deathstrike"){
if (_arg1.currentTarget.mc1.currentLabel == "wait"){
_arg1.currentTarget.mc1.gotoAndPlay("go");
_arg1.currentTarget.x = _arg1.currentTarget.targetpoint[0];
_arg1.currentTarget.y = _arg1.currentTarget.targetpoint[1];
if (_arg1.currentTarget.x > captainline){
_arg1.currentTarget.x = (captainline - 50);
_arg1.currentTarget.donemovex = false;
_arg1.currentTarget.donemovey = false;
_arg1.currentTarget.stat = "chase";
_arg1.currentTarget.targetenemy = false;
_arg1.currentTarget.fallback = true;
};
} else {
if (_arg1.currentTarget.mc1.currentLabel == "go"){
sounddeathstrike.play(0, 1, new SoundTransform(volsfx));
} else {
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
_local10 = 0;
while (_local10 < unitimage.length) {
if ((((((unitimage[_local10].die == false)) && ((unitimage[_local10].notallowed == false)))) && (!((unitimage[_local10].side == _arg1.currentTarget.side))))){
if (unitimage[_local10].mc1.mcbody.hitTestObject(_arg1.currentTarget.mc1.mcdeathstrike) == true){
_local7 = (so.data.templarlevel[slotused][_arg1.currentTarget.nomor] - captainskillreq[3]);
_local13 = (captainskillnumba[4][3][1][1] + (captainskillnumbaincrease[4][3][1] * _local7));
_arg1.currentTarget.atk = _local13;
_arg1.currentTarget.targetid = unitimage[_local10].id;
_arg1.currentTarget.targete = _local10;
cekhitenemy(_arg1.currentTarget);
_arg1.currentTarget.atk = _arg1.currentTarget.atktemp;
};
};
_local10++;
};
_arg1.currentTarget.notallowed = false;
_arg1.currentTarget.stat = "idle";
};
};
};
} else {
if (_arg1.currentTarget.stat == "summon"){
if (_arg1.currentTarget.mc1.currentLabel == "donesummon"){
_arg1.currentTarget.stat = "idle";
_arg1.currentTarget.notallowed = false;
};
} else {
if (_arg1.currentTarget.stat == "idle"){
if (_arg1.currentTarget.mc1.currentLabel != "idle"){
_arg1.currentTarget.mc1.gotoAndPlay("idle");
};
if (_arg1.currentTarget.boss == false){
if (_arg1.currentTarget.captain == true){
ceknaturalregen(_arg1.currentTarget);
_arg1.currentTarget.turnheadtime--;
if (_arg1.currentTarget.turnheadtime <= 0){
_arg1.currentTarget.turnheadtime = randRange(turnheadtimemin, turnheadtimemax);
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
_arg1.currentTarget.mchpbar.scaleX = (_arg1.currentTarget.mchpbar.scaleX * -1);
scalethiscaptain(_arg1.currentTarget);
if (_arg1.currentTarget.directione == "right"){
_arg1.currentTarget.directione = "left";
} else {
_arg1.currentTarget.directione = "right";
};
};
};
_local35 = false;
_local8 = false;
_arg1.currentTarget.tundrabeastjumptime--;
if ((_arg1.currentTarget is summon1)){
if (_arg1.currentTarget.tundrabeastjumptime <= 0){
_local8 = caritarget(_arg1.currentTarget, false, false);
};
if (_local8 == false){
_local8 = caritarget(_arg1.currentTarget, false, true);
};
} else {
if (((!((_arg1.currentTarget is enemy15))) && ((_arg1.currentTarget.fallback == false)))){
_local8 = caritarget(_arg1.currentTarget, false, true);
};
};
if (_local8 == false){
if ((((((_arg1.currentTarget.side == 0)) && (!((_arg1.currentTarget is enemy15))))) && ((_arg1.currentTarget.x > 50)))){
_arg1.currentTarget.stat = "walkenemy";
} else {
if ((((_arg1.currentTarget.side == 0)) && ((_arg1.currentTarget is enemy15)))){
_local8 = caritarget(_arg1.currentTarget, true, true);
} else {
if (_arg1.currentTarget.captain == true){
_arg1.currentTarget.wanderingtime--;
if (_arg1.currentTarget.wanderingtime <= 0){
trace("BACK TO LINE");
_local36 = (_arg1.currentTarget.y - 100);
if (_local36 < batasatas){
_local36 = batasatas;
};
_local37 = (_arg1.currentTarget.y + 100);
if (_local37 > batasbawah){
_local37 = batasbawah;
};
_local38 = (_arg1.currentTarget.x - 100);
_local39 = (_arg1.currentTarget.x + 100);
if (templarposition[_arg1.currentTarget.nomor] == 1){
if ((((_arg1.currentTarget is hero3)) || ((_arg1.currentTarget is hero4)))){
_local40 = (captainline - 5);
if (_local40 < bataswall){
_local40 = bataswall;
};
} else {
_local40 = (captainline - 100);
if (_local40 < bataswall){
_local40 = bataswall;
};
};
_local41 = randRange(_local36, _local37);
} else {
if (_local39 > bataswall){
_local39 = bataswall;
};
if (_local38 < 20){
_local38 = 20;
};
_local40 = randRange(_local38, _local39);
_local41 = randRange(_local36, _local37);
};
_arg1.currentTarget.targetpoint = [_local40, _local41];
_arg1.currentTarget.stat = "chase";
_arg1.currentTarget.targetenemy = false;
_arg1.currentTarget.donemovex = false;
_arg1.currentTarget.donemovey = false;
_arg1.currentTarget.wanderingtime = randRange(wanderingtimemin, wanderingtimemax);
};
};
};
};
};
};
cekenemyskill(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.stat == "walkenemy"){
_arg1.currentTarget.moveto = -1;
if (_arg1.currentTarget.directione == "right"){
_arg1.currentTarget.directione = "left";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
_arg1.currentTarget.mchpbar.scaleX = (_arg1.currentTarget.mchpbar.scaleX * -1);
if (_arg1.currentTarget.side == 0){
scalethisenemy(_arg1.currentTarget);
};
if (_arg1.currentTarget.captain == true){
scalethiscaptain(_arg1.currentTarget);
};
};
if (_arg1.currentTarget.mc1.currentLabel != "walk"){
_arg1.currentTarget.mc1.gotoAndPlay("walk");
};
_arg1.currentTarget.x = (_arg1.currentTarget.x - _local4);
if (_arg1.currentTarget.zigzag == true){
if (_arg1.currentTarget.zigzagphase == 0){
_arg1.currentTarget.y = (_arg1.currentTarget.y - (_local4 * 2));
if (_arg1.currentTarget.y < (batasatas + 20)){
_arg1.currentTarget.zigzagphase = 1;
};
} else {
if (_arg1.currentTarget.zigzagphase == 1){
_arg1.currentTarget.y = (_arg1.currentTarget.y + (_local4 * 2));
if (_arg1.currentTarget.y > (batasbawah - 20)){
_arg1.currentTarget.zigzagphase = 0;
};
};
};
};
_local8 = caritarget(_arg1.currentTarget, false, true);
if (_local8 == false){
if (_arg1.currentTarget.x < 50){
_arg1.currentTarget.stat = "idle";
};
};
} else {
if (_arg1.currentTarget.stat == "chase"){
_local42 = false;
if (_arg1.currentTarget.targetenemy == true){
_local42 = cekvalidunittarget(_arg1.currentTarget);
} else {
_local42 = true;
};
if (_local42 == true){
_local43 = false;
if (_arg1.currentTarget.targetenemy == true){
_local44 = _arg1.currentTarget.targete;
if ((((((((unitimage[_local44].x >= (_arg1.currentTarget.x - _arg1.currentTarget.vision))) && ((unitimage[_local44].x <= (_arg1.currentTarget.x + _arg1.currentTarget.vision))))) && ((unitimage[_local44].y >= (_arg1.currentTarget.y - _arg1.currentTarget.vision))))) && ((unitimage[_local44].y <= (_arg1.currentTarget.y + _arg1.currentTarget.vision))))){
if ((((_arg1.currentTarget.side == 0)) && ((((unitimage[_local44].captain == true)) || ((unitimage[_local44].wall == true)))))){
if (unitimage[_local44].captain == true){
_local45 = [-30, -30, 0, 30, 30, 30, 0, -30, -30];
_local46 = [0, -30, -30, -30, 0, 30, 30, 30, 0];
} else {
if (unitimage[_local44].wall == true){
_local45 = [30, 30, 30];
_local46 = [-30, 0, 30];
};
};
if (_arg1.currentTarget.moveto == -1){
_local47 = randRange(0, (_local45.length - 1));
_arg1.currentTarget.moveto = _local47;
};
_local40 = (unitimage[_local44].x + _local45[_arg1.currentTarget.moveto]);
_local41 = (unitimage[_local44].y + _local46[_arg1.currentTarget.moveto]);
if (_local41 < batasatas){
_local41 = batasatas;
} else {
if (_local41 > batasbawah){
_local41 = batasbawah;
};
};
_local43 = true;
} else {
_local40 = unitimage[_local44].x;
_local41 = unitimage[_local44].y;
_local43 = true;
};
};
} else {
_local40 = _arg1.currentTarget.targetpoint[0];
_local41 = _arg1.currentTarget.targetpoint[1];
_local43 = true;
};
if (_local43 == true){
_local48 = false;
if ((((_arg1.currentTarget.range > meleerange)) && ((_arg1.currentTarget.fallback == false)))){
_local8 = caritarget(_arg1.currentTarget, true, true);
if (_local8 == false){
_local48 = true;
};
} else {
_local48 = true;
};
if (_local48 == true){
if (_arg1.currentTarget.donemovex == false){
if (_local40 > _arg1.currentTarget.x){
if (_arg1.currentTarget.directione == "left"){
_arg1.currentTarget.directione = "right";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
_arg1.currentTarget.mchpbar.scaleX = (_arg1.currentTarget.mchpbar.scaleX * -1);
if (_arg1.currentTarget.side == 0){
scalethisenemy(_arg1.currentTarget);
};
if (_arg1.currentTarget.captain == true){
scalethiscaptain(_arg1.currentTarget);
};
};
_arg1.currentTarget.x = (_arg1.currentTarget.x + _local4);
if (_local40 <= _arg1.currentTarget.x){
_arg1.currentTarget.donemovex = true;
};
} else {
if (_local40 < _arg1.currentTarget.x){
if (_arg1.currentTarget.directione == "right"){
_arg1.currentTarget.directione = "left";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
_arg1.currentTarget.mchpbar.scaleX = (_arg1.currentTarget.mchpbar.scaleX * -1);
if (_arg1.currentTarget.side == 0){
scalethisenemy(_arg1.currentTarget);
};
if (_arg1.currentTarget.captain == true){
scalethiscaptain(_arg1.currentTarget);
};
};
_arg1.currentTarget.x = (_arg1.currentTarget.x - _local4);
if (_local40 >= _arg1.currentTarget.x){
_arg1.currentTarget.donemovex = true;
};
} else {
if (_local40 == _arg1.currentTarget.x){
_arg1.currentTarget.donemovex = true;
};
};
};
};
if (_arg1.currentTarget.donemovey == false){
if (_local41 > _arg1.currentTarget.y){
_arg1.currentTarget.y = (_arg1.currentTarget.y + _local4);
if (_local41 <= _arg1.currentTarget.y){
_arg1.currentTarget.donemovey = true;
};
} else {
if (_local41 < _arg1.currentTarget.y){
_arg1.currentTarget.y = (_arg1.currentTarget.y - _local4);
if (_local41 >= _arg1.currentTarget.y){
_arg1.currentTarget.donemovey = true;
};
} else {
if (_local41 == _arg1.currentTarget.y){
_arg1.currentTarget.donemovey = true;
};
};
};
};
if (_arg1.currentTarget.onshieldbash == true){
_local10 = 0;
while (_local10 < unitimage.length) {
if ((((((unitimage[_local10].die == false)) && ((unitimage[_local10].notallowed == false)))) && (!((unitimage[_local10].side == _arg1.currentTarget.side))))){
if (unitimage[_local10].mc1.mcbody.hitTestObject(_arg1.currentTarget.mc1.mcshieldbash) == true){
_local14 = false;
_local49 = 0;
while (_local49 < _arg1.currentTarget.shieldbashhitlist.length) {
if (_arg1.currentTarget.shieldbashhitlist[_local49] == _local10){
_local14 = true;
break;
};
_local49++;
};
if (_local14 == false){
_arg1.currentTarget.shieldbashhitlist[_arg1.currentTarget.shieldbashhitlist.length] = _local10;
if ((((unitimage[_local10].boss == false)) && ((unitimage[_local10].debris == false)))){
unitimage[_local10].stunduration = _arg1.currentTarget.shieldbashstunduration;
};
_local50 = _arg1.currentTarget.targete;
_arg1.currentTarget.targete = _local10;
cekhitenemy(_arg1.currentTarget);
_arg1.currentTarget.targete = _local50;
};
};
};
_local10++;
};
if (_arg1.currentTarget.mc1.currentLabel != "skill"){
_arg1.currentTarget.mc1.gotoAndPlay("skill");
};
_arg1.currentTarget.breathcd--;
if (_arg1.currentTarget.breathcd <= 0){
_local51 = [soundstep, soundstep2, soundstep3];
_local12 = randRange(0, (_local51.length - 1));
_local51[_local12].play(0, 1, new SoundTransform(volsfx));
_arg1.currentTarget.breathcd = _arg1.currentTarget.breathcdtemp;
_local18 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:16};
createadditionalfx(_local18);
_local18 = null;
};
} else {
if (_arg1.currentTarget.mc1.currentLabel != "walk"){
_arg1.currentTarget.mc1.gotoAndPlay("walk");
};
};
if (_arg1.currentTarget.onshieldbash == false){
if ((((_arg1.currentTarget.side == 1)) && ((_arg1.currentTarget.fallback == false)))){
_local8 = caritarget(_arg1.currentTarget, true, true);
if (_local8 == false){
if ((((((_arg1.currentTarget.targetenemy == false)) && ((_arg1.currentTarget.donemovex == true)))) && ((_arg1.currentTarget.donemovey == true)))){
_arg1.currentTarget.fallback = false;
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.pembedax);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.pembeday);
_arg1.currentTarget.stat = "idle";
} else {
if ((((templarposition[_arg1.currentTarget.nomor] == 0)) && ((_arg1.currentTarget.x > bataswall)))){
_arg1.currentTarget.x = bataswall;
_arg1.currentTarget.stat = "idle";
};
};
};
} else {
if ((((_arg1.currentTarget.donemovex == true)) && ((_arg1.currentTarget.donemovey == true)))){
_arg1.currentTarget.fallback = false;
_local8 = caritarget(_arg1.currentTarget, true, true);
if (_local8 == false){
_arg1.currentTarget.stat = "idle";
};
};
};
} else {
if ((((_arg1.currentTarget.donemovex == true)) && ((_arg1.currentTarget.donemovey == true)))){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.pembedax);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.pembeday);
_arg1.currentTarget.onshieldbash = false;
_arg1.currentTarget.msbonus = 0;
_arg1.currentTarget.stat = "idle";
};
};
if ((((_arg1.currentTarget.captain == true)) && ((_arg1.currentTarget.x > captainline)))){
_arg1.currentTarget.targetpoint = [(_arg1.currentTarget.x - 75), _arg1.currentTarget.y];
_arg1.currentTarget.donemovex = false;
_arg1.currentTarget.donemovey = false;
_arg1.currentTarget.stat = "chase";
_arg1.currentTarget.targetenemy = false;
_arg1.currentTarget.fallback = true;
};
};
} else {
_arg1.currentTarget.stat = "idle";
};
} else {
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "attack"){
_local42 = cekvalidunittarget(_arg1.currentTarget);
if (_local42 == true){
_local52 = unitimage[_arg1.currentTarget.targete];
if ((((_local52.x > _arg1.currentTarget.x)) && ((_arg1.currentTarget.directione == "left")))){
_arg1.currentTarget.directione = "right";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
_arg1.currentTarget.mchpbar.scaleX = (_arg1.currentTarget.mchpbar.scaleX * -1);
if (_arg1.currentTarget.side == 0){
scalethisenemy(_arg1.currentTarget);
};
if (_arg1.currentTarget.captain == true){
scalethiscaptain(_arg1.currentTarget);
};
} else {
if ((((_local52.x < _arg1.currentTarget.x)) && ((_arg1.currentTarget.directione == "right")))){
_arg1.currentTarget.directione = "left";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
_arg1.currentTarget.mchpbar.scaleX = (_arg1.currentTarget.mchpbar.scaleX * -1);
if (_arg1.currentTarget.side == 0){
scalethisenemy(_arg1.currentTarget);
};
if (_arg1.currentTarget.captain == true){
scalethiscaptain(_arg1.currentTarget);
};
};
};
if (_arg1.currentTarget.mc1.currentLabel == "hit"){
_local53 = randRange(0, 100);
if (_local53 > _arg1.currentTarget.blindchance){
if (_arg1.currentTarget.side == 0){
if (enemyattacksound[_arg1.currentTarget.nomor] != -1){
createattacksound(enemyattacksound[_arg1.currentTarget.nomor]);
};
} else {
createattacksound(templarattacksfx[_arg1.currentTarget.nomor]);
};
if ((((((((_arg1.currentTarget is enemy17)) && ((unitimage[_arg1.currentTarget.targete].captain == true)))) && ((unitimage[_arg1.currentTarget.targete].invulnerable == false)))) && (!((unitimage[_arg1.currentTarget.targete].stat == "chomped"))))){
createsfx(1);
unitimage[_arg1.currentTarget.targete].stat = "chomped";
_arg1.currentTarget.chompedtargetid = unitimage[_arg1.currentTarget.targete].id;
resetthisstat(_arg1.currentTarget.targete);
_arg1.currentTarget.stat = "chew";
} else {
cekhitenemy(_arg1.currentTarget);
};
} else {
_arg1.currentTarget.mcblind.gotoAndPlay(2);
};
} else {
if (_arg1.currentTarget.mc1.currentLabel == "missile"){
_local53 = randRange(0, 100);
if (_local53 > _arg1.currentTarget.blindchance){
if (_arg1.currentTarget.side == 0){
if (enemyattacksound[_arg1.currentTarget.nomor] != -1){
createattacksound(enemyattacksound[_arg1.currentTarget.nomor]);
};
} else {
createattacksound(templarattacksfx[_arg1.currentTarget.nomor]);
};
if (_arg1.currentTarget.missilemovementtype != 4){
createmissile(_arg1.currentTarget.missilelinkage, _arg1.currentTarget.missilemovementtype, _arg1.currentTarget.atk, _arg1.currentTarget.side, _arg1.currentTarget.mc1.mcmissile, _arg1.currentTarget.targete, null);
} else {
createmissile(_arg1.currentTarget.missilelinkage, _arg1.currentTarget.missilemovementtype, _arg1.currentTarget.atk, _arg1.currentTarget.side, _arg1.currentTarget.mc1.mcmissile, _arg1.currentTarget.targete, unitimage[_arg1.currentTarget.targete]);
};
} else {
_arg1.currentTarget.mcblind.gotoAndPlay(2);
};
} else {
if (_arg1.currentTarget.mc1.currentLabel == "doneattack"){
_arg1.currentTarget.reload = _arg1.currentTarget.reloadtemp;
_arg1.currentTarget.stat = "reload";
_arg1.currentTarget.mc1.gotoAndPlay("idle");
};
};
};
} else {
_arg1.currentTarget.reload = _arg1.currentTarget.reloadtemp;
_arg1.currentTarget.stat = "reload";
_arg1.currentTarget.mc1.gotoAndPlay("idle");
};
} else {
if (_arg1.currentTarget.stat == "waitreload"){
if (_arg1.currentTarget.mc1.currentLabel == "doneattack"){
_arg1.currentTarget.reload = _arg1.currentTarget.reloadtemp;
_arg1.currentTarget.stat = "reload";
_arg1.currentTarget.mc1.gotoAndPlay("idle");
};
} else {
if (_arg1.currentTarget.stat == "reload"){
cekenemyskill(_arg1.currentTarget);
if ((_arg1.currentTarget is summon1)){
_arg1.currentTarget.tundrabeastjumptime--;
};
_arg1.currentTarget.reload--;
if (_arg1.currentTarget.reload <= 0){
if (_arg1.currentTarget.captain == true){
trace("NOL IN");
_arg1.currentTarget.wanderingtime = 0;
};
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.stat == "die"){
if (_arg1.currentTarget.mc1.currentLabel == "donedie"){
_local2 = true;
removethisunit(_arg1.currentTarget);
};
} else {
if (_arg1.currentTarget.stat == "diecd"){
_arg1.currentTarget.dieduration--;
_arg1.currentTarget.mcdeath.mc1.txt1.text = (int((_arg1.currentTarget.dieduration / 25)) + 1);
if (_arg1.currentTarget.dieduration <= 0){
_arg1.currentTarget.wanderingtime = 0;
_arg1.currentTarget.stat = "idle";
_arg1.currentTarget.die = false;
_arg1.currentTarget.hp = _arg1.currentTarget.hptemp;
_arg1.currentTarget.mcdeath.gotoAndStop(1);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (_local2 == false){
if (_arg1.currentTarget.illusionduration != -1){
_arg1.currentTarget.illusionduration--;
if (_arg1.currentTarget.illusionduration <= 0){
if ((_arg1.currentTarget is summon1)){
_arg1.currentTarget.mc1.gotoAndPlay("outcoming");
_arg1.currentTarget.stat = "outcoming";
} else {
removethisunit(_arg1.currentTarget);
};
};
};
};
};
};
}
function frame11(){
stop();
runsoundtime = 4;
runsoundtimetemp = runsoundtime;
btnskip.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
btnskip.removeEventListener(MouseEvent.CLICK, story2skip);
btnskip.addEventListener(MouseEvent.MOUSE_OVER, oversound);
btnskip.addEventListener(MouseEvent.CLICK, story2skip);
texte2 = [[undefined, "", "", "There are no further traces of the demons.", "I do not detect any further demons."], [undefined, "We've purified this castle.", "Haha! They run in fear!"], [undefined, "Salute yourself, Templars!", "Let's have a party tonight!"], [undefined, "", "", "", "", "Let's pack up and leave, I need to restock some parts!", "The Light has guided us well this time."], [undefined, "", "", "", "", "", "", "Dark news ahead.", "Our scout has just arrived!"], [undefined, "Another job for us?", "What now? We've only just begun to celebrate our victory!"], [undefined, "", "", "", "", "", "", "Darkness erupts from a source to the east.", "Demons have been sighted to the east!"], [undefined, "Then we must continue the demon purge!", "I guess there's no getting drunk tonight."], [undefined, "", "", "Can we arrive there in time?", "I suspect that we'll be late."], [undefined, "", "", "", "", "", "", "Another team is already en route.", "Lucky for us that there's another team."], [undefined, "Which team?", "Led by who?"], [undefined, "", "", "", "", "", "", "The Dark One. The Necromancer Templar.", "It's the Necromancer team."], [undefined, "Well, I believe his team will cleanse it easily.", "Fighting demons with dark magic? Sounds good."], [undefined, "Let's spread the good news to the villagers.", "That means we can get this party started!"]];
textesaidby2 = [2, 1, 1, 3, 4, 1, 4, 1, 2, 4, 1, 4, 1, 1];
textindex2 = 0;
textwait2 = 75;
loadstory2();
}
function frame10(){
stop();
runsoundtime = 4;
runsoundtimetemp = runsoundtime;
btnskip.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
btnskip.removeEventListener(MouseEvent.CLICK, story1skip);
btnskip.addEventListener(MouseEvent.MOUSE_OVER, oversound);
btnskip.addEventListener(MouseEvent.CLICK, story1skip);
texte = ["You have answered our call, Templars!", [undefined, "Worry not, as this is our duty.", "The castle seems eerily quiet."], [undefined, "What happened here?", "Tell me everything!"], "One night, all of the guards ran away.", "They said the castle was under siege.", "The next morning, the castle was abandoned.", "We believe demons have taken the castle!", "The Arc of the Templars is our only option.", "Please purge the evil, Templars!", [undefined, "We will purify anything that corrupts this castle.", "Time to go in with guns blazing!"], "It's the demons! I'm outta here!", [undefined, "Begone, demons!", "Eat lead, demon scum!"]];
textesaidby = [0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1];
textindex = 0;
textwait = 75;
loadstory();
}
public function skilldragup(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (currentLabel != "ingame"){
mcmouse.visible = false;
mcui.mcarrow.gotoAndStop(1);
stage.removeEventListener(Event.ENTER_FRAME, skilldragwaiting);
};
stage.removeEventListener(MouseEvent.MOUSE_UP, skilldragup);
_local2 = 1;
while (_local2 <= 5) {
_local3 = mcui.getChildByName(("mcskill" + _local2));
if (mcmouse.mcbody.hitTestObject(_local3.mcbody) == true){
_local4 = false;
if (currentLabel == "ingame"){
if (globalcd[so.data.skillregister[slotused][_local2]] == undefined){
_local4 = true;
} else {
if (globalcd[so.data.skillregister[slotused][_local2]] <= (skillcdtemp[_local2] * 0.3)){
_local4 = true;
};
};
} else {
_local4 = true;
};
if (_local4 == true){
soundscrolslot2.play(0, 1, new SoundTransform(volsfx));
_local5 = 1;
while (_local5 <= 5) {
if (so.data.skillregister[slotused][_local5] == mcmouse.skillke){
trace(("ini sama : " + _local5));
so.data.skillregister[slotused][_local5] = -1;
break;
};
_local5++;
};
if (so.data.skillregister[slotused][_local2] == -1){
so.data.skillregister[slotused][_local2] = mcmouse.skillke;
} else {
if (so.data.skillregister[slotused][_local2] != -1){
if (mcmouse.slot != -1){
so.data.skillregister[slotused][mcmouse.slot] = so.data.skillregister[slotused][_local2];
};
so.data.skillregister[slotused][_local2] = mcmouse.skillke;
};
};
if (currentLabel == "ingame"){
loadautoskillregister();
} else {
loadskillslot();
};
break;
} else {
if (currentLabel == "ingame"){
mcui.mcskilloncd.gotoAndPlay(2);
mcui.mcskilloncd.x = _local3.x;
};
break;
};
};
_local2++;
};
mcmouse.gotoAndStop(1);
if (currentLabel == "ingame"){
mcui.mcarrow.gotoAndStop(1);
};
onskilldrag = false;
}
function frame13(){
gotoAndStop("ingame");
}
public function createarcturret(){
unitimage[unitimage.length] = new (summon4);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = mouseX;
unitimage[(unitimage.length - 1)].y = mouseY;
if (unitimage[(unitimage.length - 1)].y > batasbawah){
unitimage[(unitimage.length - 1)].y = batasbawah;
} else {
if (unitimage[(unitimage.length - 1)].y < batasatas){
unitimage[(unitimage.length - 1)].y = batasatas;
};
};
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].reload = arcturretreload;
unitimage[(unitimage.length - 1)].range = arcturretrange;
unitimage[(unitimage.length - 1)].atk = arcturretdamage;
unitimage[(unitimage.length - 1)].duratione = (arcturretduration * 25);
unitimage[(unitimage.length - 1)].durationetemp = unitimage[(unitimage.length - 1)].duratione;
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, arcturretwaiting);
}
public function createnomnom(){
var _local1:*;
_local1 = carimain();
unitimage[unitimage.length] = new (summon7);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = (_local1.x + randRange(-40, 40));
unitimage[(unitimage.length - 1)].y = (_local1.y + randRange(-40, 40));
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].reload = 50;
unitimage[(unitimage.length - 1)].reloadtemp = unitimage[(unitimage.length - 1)].reload;
unitimage[(unitimage.length - 1)].directione = "left";
unitimage[(unitimage.length - 1)].ms = 4;
unitimage[(unitimage.length - 1)].phase = 1;
unitimage[(unitimage.length - 1)].heale = 10;
unitimage[(unitimage.length - 1)].wanderingwait = 35;
unitimage[(unitimage.length - 1)].wanderingwaittemp = unitimage[(unitimage.length - 1)].wanderingwait;
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, nomnomwaiting);
}
function frame14(){
}
public function loadrelicstatus(){
var _local1:*;
var _local2:*;
_local1 = 1;
while (_local1 <= 3) {
_local2 = mcmap.mcskills.getChildByName(("mcrelic" + _local1));
_local2.gotoAndStop(1);
_local2.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local2.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local2.removeEventListener(MouseEvent.MOUSE_OVER, relictextover);
_local2.addEventListener(MouseEvent.MOUSE_OVER, relictextover);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, relictextout);
_local2.addEventListener(MouseEvent.MOUSE_OUT, relictextout);
if (so.data.relic[slotused][_local1] == 1){
_local2.gotoAndStop(2);
};
if ((((so.data.relic[slotused][_local1] == 0)) && ((_local1 == 1)))){
if ((((so.data.relicclicked[slotused][1] == 1)) || ((so.data.relicclicked[slotused][4] == 1)))){
_local2.gotoAndStop(3);
};
};
_local1++;
};
}
public function summontowerenemyaddon(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = (4 - toweravailable.length);
_local2 = 0;
while (_local2 < _local1) {
_local3 = [10, 11, 12, 13];
createenemy(_local3[randRange(0, (_local3.length - 1))], null, 0);
_local2++;
};
}
public function soundchannelenemydiewaiting1(_arg1:Event){
soundchannelenemydie1.stop();
soundchannelenemydie1 = null;
}
public function soundchannelenemydiewaiting2(_arg1:Event){
soundchannelenemydie2.stop();
soundchannelenemydie2 = null;
}
public function callenemy(_arg1:int, _arg2:Object, _arg3:int, _arg4:int){
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
unitimage[unitimage.length] = new (enemylinkage[_arg1]);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
if (_arg2 == null){
unitimage[(unitimage.length - 1)].x = 724;
unitimage[(unitimage.length - 1)].y = randRange(batasatas, batasbawah);
} else {
unitimage[(unitimage.length - 1)].x = _arg2.x;
unitimage[(unitimage.length - 1)].y = _arg2.y;
};
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].nomor = _arg1;
unitimage[(unitimage.length - 1)].missilelinkage = enemymissile[_arg1];
unitimage[(unitimage.length - 1)].missilemovementtype = enemymissiletype[_arg1];
unitimage[(unitimage.length - 1)].atk = enemystat[_arg1][1];
unitimage[(unitimage.length - 1)].atktemp = unitimage[(unitimage.length - 1)].atk;
unitimage[(unitimage.length - 1)].hp = enemystat[_arg1][0];
unitimage[(unitimage.length - 1)].hptemp = enemystat[_arg1][0];
unitimage[(unitimage.length - 1)].ms = enemystat[_arg1][2];
unitimage[(unitimage.length - 1)].mstemp = unitimage[(unitimage.length - 1)].ms;
unitimage[(unitimage.length - 1)].side = 0;
unitimage[(unitimage.length - 1)].main = false;
unitimage[(unitimage.length - 1)].armor = enemystat[_arg1][3];
unitimage[(unitimage.length - 1)].directione = "left";
unitimage[(unitimage.length - 1)].range = enemystat[_arg1][5];
unitimage[(unitimage.length - 1)].vision = enemystat[_arg1][7];
unitimage[(unitimage.length - 1)].jeda = _arg3;
unitimage[(unitimage.length - 1)].flymode = enemyfly[_arg1];
unitimage[(unitimage.length - 1)].aimtipe = enemyaimtipe[_arg1];
if ((((unitimage[(unitimage.length - 1)].range > meleerange)) && (!((unitimage[(unitimage.length - 1)] is enemy16))))){
unitimage[(unitimage.length - 1)].range = (unitimage[(unitimage.length - 1)].range + randRange(((unitimage[(unitimage.length - 1)].range / 3) * -1), 0));
};
if (unitimage[(unitimage.length - 1)].mc1.mceyes != null){
unitimage[(unitimage.length - 1)].mc1.mceyes.visible = false;
};
unitimage[(unitimage.length - 1)].skillno = [];
unitimage[(unitimage.length - 1)].skillcd = [];
unitimage[(unitimage.length - 1)].skillcdtemp = [];
if (!(unitimage[(unitimage.length - 1)] is enemy16)){
unitimage[(unitimage.length - 1)].vision = (unitimage[(unitimage.length - 1)].vision + randRange(((unitimage[(unitimage.length - 1)].vision / 3) * -1), 0));
};
unitimage[(unitimage.length - 1)].visiontemp = unitimage[(unitimage.length - 1)].vision;
unitimage[(unitimage.length - 1)].reload = 0;
unitimage[(unitimage.length - 1)].reloadtemp = (enemystat[_arg1][6] * 25);
unitimage[(unitimage.length - 1)].onfog = true;
if (_arg1 == 7){
unitimage[(unitimage.length - 1)].onfog = false;
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].stat = "flopincoming";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("incoming");
unitimage[(unitimage.length - 1)].boss = true;
unitimage[(unitimage.length - 1)].x = boss1x;
unitimage[(unitimage.length - 1)].y = boss1y;
} else {
if ((((_arg1 == 8)) && (!((_arg2 == null))))){
unitimage[(unitimage.length - 1)].onfog = false;
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].stat = "summoned";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("incoming");
} else {
if (_arg1 == 22){
unitimage[(unitimage.length - 1)].onfog = false;
unitimage[(unitimage.length - 1)].boss = true;
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].stat = "summoned";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("incoming");
unitimage[(unitimage.length - 1)].x = 457;
unitimage[(unitimage.length - 1)].y = 241;
} else {
if (_arg1 == 23){
unitimage[(unitimage.length - 1)].onfog = false;
unitimage[(unitimage.length - 1)].notallowed = false;
unitimage[(unitimage.length - 1)].debris = true;
unitimage[(unitimage.length - 1)].stat = "march";
unitimage[(unitimage.length - 1)].x = 909;
unitimage[(unitimage.length - 1)].y = 355;
} else {
if (_arg1 == 12){
unitimage[(unitimage.length - 1)].zigzag = true;
unitimage[(unitimage.length - 1)].zigzagphase = randRange(0, 1);
} else {
if (_arg1 == 16){
unitimage[(unitimage.length - 1)].onfog = false;
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].stat = "flydown";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("incoming");
unitimage[(unitimage.length - 1)].x = randRange(466, 578);
unitimage[(unitimage.length - 1)].y = randRange(batasatas, batasbawah);
} else {
if ((((_arg1 == 20)) || ((_arg1 == 21)))){
unitimage[(unitimage.length - 1)].onfog = false;
unitimage[(unitimage.length - 1)].boss = true;
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].stat = "bosstp";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("teleout");
unitimage[(unitimage.length - 1)].x = 457;
unitimage[(unitimage.length - 1)].y = 241;
};
};
};
};
};
};
};
_local5 = 0;
while (_local5 < enemystat[_arg1][4].length) {
unitimage[(unitimage.length - 1)].skillno[_local5] = enemystat[_arg1][4][_local5];
unitimage[(unitimage.length - 1)].skillcd[_local5] = (enemyskillcd[enemystat[_arg1][4][_local5]] * 25);
unitimage[(unitimage.length - 1)].skillcdtemp[_local5] = (enemyskillcd[enemystat[_arg1][4][_local5]] * 25);
_local5++;
};
if (_arg1 == 14){
unitimage[(unitimage.length - 1)].skillno = [];
unitimage[(unitimage.length - 1)].skillcd = [];
unitimage[(unitimage.length - 1)].skillcdtemp = [];
unitimage[(unitimage.length - 1)].onfog = false;
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].stat = "towersummon";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("incoming");
unitimage[(unitimage.length - 1)].boss = true;
_local6 = [566, 497, 366];
_local7 = [160, 339, 237];
unitimage[(unitimage.length - 1)].x = _local6[_arg4];
unitimage[(unitimage.length - 1)].y = _local7[_arg4];
unitimage[(unitimage.length - 1)].mc1.mc1.gotoAndStop(int((int(_arg4) + int(1))));
unitimage[(unitimage.length - 1)].skillno[0] = enemystat[_arg1][4][_arg4];
unitimage[(unitimage.length - 1)].skillcd[0] = (enemyskillcd[enemystat[_arg1][4][_arg4]] * 25);
unitimage[(unitimage.length - 1)].skillcdtemp[0] = (enemyskillcd[enemystat[_arg1][4][_arg4]] * 25);
};
if (_arg1 == 7){
unitimage[(unitimage.length - 1)].skillcd[1] = (3 * 25);
} else {
if (_arg1 == 11){
_local8 = unitimage[(unitimage.length - 1)].skillcdtemp[0];
unitimage[(unitimage.length - 1)].skillcd[0] = (unitimage[(unitimage.length - 1)].skillcd[0] - randRange((_local8 / 4), (_local8 / 2)));
};
};
if (_arg1 == 15){
unitimage[(unitimage.length - 1)].onfog = false;
unitimage[(unitimage.length - 1)].stat = "teleout";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("teleout");
unitimage[(unitimage.length - 1)].notallowed = true;
};
if (unitimage[(unitimage.length - 1)].x > 700){
};
if (levelenemycave[templevel][waveindex] == 1){
if (temparea == 1){
unitimage[(unitimage.length - 1)].x = 311;
unitimage[(unitimage.length - 1)].y = 103;
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].stat = "ascend";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("ascend");
} else {
if ((((temparea == 2)) && ((_arg2 == null)))){
_local9 = [284, 387];
_local10 = [132, 170];
_local11 = [60, 75];
_arg1 = randRange(0, 1);
unitimage[(unitimage.length - 1)].x = _local9[_arg1];
unitimage[(unitimage.length - 1)].y = _local10[_arg1];
unitimage[(unitimage.length - 1)].sampey = _local11[_arg1];
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].stat = "climb1";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("walk");
addChildAt(unitimage[(unitimage.length - 1)], getChildIndex(mcspecialposition));
} else {
if (temparea == 3){
unitimage[(unitimage.length - 1)].x = randRange(321, 521);
unitimage[(unitimage.length - 1)].y = 107;
_local12 = 0;
while (_local12 < 4) {
_local13 = {x:unitimage[(unitimage.length - 1)].x, y:unitimage[(unitimage.length - 1)].y, breathtipe:29};
createadditionalfx(_local13);
_local13 = null;
_local12++;
};
};
};
};
};
if ((((((templevel == 1)) && ((so.data.tutorialtile1[slotused] == false)))) && ((waveindex == (levelenemy[1].length - 1))))){
unitimage[(unitimage.length - 1)].stat = "sacrifice";
};
unitimage[(unitimage.length - 1)].mcstun.gotoAndStop(1);
unitimage[(unitimage.length - 1)].mcarmor.gotoAndStop(1);
unitimage[(unitimage.length - 1)].mcblind.gotoAndStop(1);
unitimage[(unitimage.length - 1)].mctangled.gotoAndStop(1);
createshadow(unitimage[(unitimage.length - 1)]);
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, unitwaiting);
unitimage[(unitimage.length - 1)].addEventListener(MouseEvent.CLICK, clikGF);
}
public function cleanupspray(){
var _local1:*;
stage.removeEventListener(Event.ENTER_FRAME, gamewaiting);
stage.removeEventListener(Event.ENTER_FRAME, announcewait);
_local1 = 0;
while (_local1 < sprayimage.length) {
sprayimage[_local1].removeEventListener(Event.ENTER_FRAME, sprayendingwaiting);
removeChild(sprayimage[_local1]);
sprayimage[_local1] = null;
_local1++;
};
}
public function soundchannelenemydiewaiting3(_arg1:Event){
soundchannelenemydie3.stop();
soundchannelenemydie3 = null;
}
public function soundchannelenemydiewaiting5(_arg1:Event){
soundchannelenemydie5.stop();
soundchannelenemydie5 = null;
}
public function ingamepausequit(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
cleanupingame();
cleanupspray();
transisi("map");
}
public function changeskillicon(_arg1:Object, _arg2:int){
_arg1.mcskill.gotoAndStop(1);
_arg1.mcskill.visible = true;
_arg1.mcskill.mc1.gotoAndStop((("skill" + so.data.maintemplar[slotused]) + _arg2));
_arg1.mcskill.mc2.gotoAndStop((("skill" + so.data.maintemplar[slotused]) + _arg2));
_arg1.mcmask2.height = 1;
}
public function soundchannelenemydiewaiting4(_arg1:Event){
soundchannelenemydie4.stop();
soundchannelenemydie4 = null;
}
public function captainflywaiting(_arg1:Event):void{
if (_arg1.currentTarget.mc1.mc1.currentFrame == _arg1.currentTarget.mc1.mc1.totalFrames){
newcaptain = true;
cleanupcc();
transisi("map");
};
}
public function tink101waiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pausegame == false){
tink101time--;
if (tink101time <= 0){
tink101time = tink101timetemp;
_local2 = randRange(tink101y[0], tink101y[1]);
_local3 = {x:tink101x, y:_local2};
createmissile(fxtink101, 5, tink101damage, 1, _local3, -1, null);
_local3 = null;
};
tink101duration--;
if (tink101duration <= 0){
stage.removeEventListener(Event.ENTER_FRAME, tink101waiting);
};
};
}
public function oversound(_arg1:MouseEvent):void{
}
public function cekallenemydie(){
var _local1:*;
var _local2:*;
_local1 = false;
_local2 = 0;
while (_local2 < unitimage.length) {
if ((((unitimage[_local2].side == 0)) && ((unitimage[_local2].die == false)))){
_local1 = true;
};
_local2++;
};
if (_local1 == false){
trace(((waveindex + " ") + int((levelenemy[templevel].length - 1))));
if (waveindex >= (levelenemy[templevel].length - 1)){
wavewait = (4 * 25);
wavephase = 5;
} else {
if (wavephase == 3){
balikincaptainkeposisi();
wavewait = (2 * 25);
};
};
};
}
public function balikinboss(){
var _local1:*;
_local1 = 0;
while (_local1 < unitimage.length) {
if (unitimage[_local1].boss == true){
unitimage[_local1].notallowed = false;
unitimage[_local1].stat = "summoned";
unitimage[_local1].mc1.gotoAndPlay("incoming");
unitimage[_local1].x = 457;
unitimage[_local1].y = 241;
break;
};
_local1++;
};
}
public function generaterawdata(_arg1:int){
unitimage[_arg1].nomor = 0;
unitimage[_arg1].reload = 0;
unitimage[_arg1].reloadtemp = 0;
unitimage[_arg1].targete = -1;
unitimage[_arg1].range = 0;
unitimage[_arg1].vision = 0;
unitimage[_arg1].die = false;
unitimage[_arg1].stat = "idle";
unitimage[_arg1].atk = 0;
unitimage[_arg1].atktemp = 0;
unitimage[_arg1].hp = 0;
unitimage[_arg1].hptemp = 0;
unitimage[_arg1].directione = "right";
unitimage[_arg1].ms = 0;
unitimage[_arg1].mstemp = 0;
unitimage[_arg1].side = 0;
unitimage[_arg1].main = false;
unitimage[_arg1].captain = false;
unitimage[_arg1].armor = 0;
unitimage[_arg1].id = id;
unitimage[_arg1].targetid = -1;
unitimage[_arg1].vision = 0;
unitimage[_arg1].visiontemp = 0;
unitimage[_arg1].indexke = _arg1;
unitimage[_arg1].frozetime = -1;
unitimage[_arg1].slowtime = -1;
unitimage[_arg1].slowms = -1;
unitimage[_arg1].burntime = -1;
unitimage[_arg1].burndamage = -1;
unitimage[_arg1].burntick = -1;
unitimage[_arg1].webduration = -1;
unitimage[_arg1].toxictime = -1;
unitimage[_arg1].toxicdamage = -1;
unitimage[_arg1].toxictick = -1;
unitimage[_arg1].notallowed = false;
unitimage[_arg1].stunduration = -1;
unitimage[_arg1].donemovex = false;
unitimage[_arg1].donemovey = false;
unitimage[_arg1].wanderingtime = randRange(wanderingtimemin, wanderingtimemax);
unitimage[_arg1].turnheadtime = randRange(turnheadtimemin, turnheadtimemax);
unitimage[_arg1].targetenemy = false;
unitimage[_arg1].targetpoint = [];
unitimage[_arg1].skillno = [];
unitimage[_arg1].skillcd = [];
unitimage[_arg1].skillcdtemp = [];
unitimage[_arg1].darkarmorreduction = -1;
unitimage[_arg1].darkarmorduration = -1;
unitimage[_arg1].onshieldbash = false;
unitimage[_arg1].breathcd = 0;
unitimage[_arg1].breathcdtemp = 4;
unitimage[_arg1].lastbreathbool = false;
unitimage[_arg1].lastbreathduration = -1;
unitimage[_arg1].invulnerable = false;
unitimage[_arg1].shieldbashstunduration = -1;
unitimage[_arg1].dodgechance = -1;
unitimage[_arg1].blurduration = -1;
unitimage[_arg1].illusionduration = -1;
unitimage[_arg1].pembedax = randRange(-5, 5);
unitimage[_arg1].pembeday = randRange(-5, 5);
unitimage[_arg1].shieldbashhitlist = [];
unitimage[_arg1].moveto = -1;
unitimage[_arg1].msbonus = 0;
unitimage[_arg1].missilelinkage = "";
unitimage[_arg1].missilemovementtype = 0;
unitimage[_arg1].healbool = false;
unitimage[_arg1].entangle = false;
unitimage[_arg1].armormin = 0;
unitimage[_arg1].tangledduration = -1;
unitimage[_arg1].blindchance = -1;
unitimage[_arg1].blindduration = -1;
unitimage[_arg1].fallback = false;
unitimage[_arg1].tundrabeastjumptime = 0;
unitimage[_arg1].flymode = 0;
unitimage[_arg1].aimtipe = 0;
unitimage[_arg1].jeda = -1;
unitimage[_arg1].boss = false;
unitimage[_arg1].gooduration = -1;
unitimage[_arg1].zigzag = false;
unitimage[_arg1].zigzagphase = 0;
unitimage[_arg1].chompedtargetid = -1;
unitimage[_arg1].chompedtick = -1;
unitimage[_arg1].bossevo = false;
unitimage[_arg1].shieldduration = -1;
unitimage[_arg1].debris = false;
unitimage[_arg1].wall = false;
unitimage[_arg1].naturalregen = -1;
unitimage[_arg1].naturalregentime = -1;
unitimage[_arg1].onfog = false;
unitimage[_arg1].allowtoattack = true;
unitimage[_arg1].tile = false;
unitimage[_arg1].oninvulnerable = false;
id++;
}
public function mapprevact(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
if (_arg1.currentTarget.currentFrame == 2){
temparea--;
loadlevel();
};
}
public function carinexttower(){
var _local1:*;
summontowerenemyaddon();
_local1 = randRange(0, (toweravailable.length - 1));
towerskillno = toweravailable[_local1];
}
public function createpoienemy(_arg1:int){
mcnewenemy.mc1.mcpoi.mouseChildren = false;
mcnewenemy.mc1.mcpoi.mouseEnabled = false;
mcnewenemy.ke = _arg1;
mcnewenemy.mc1.mc1.gotoAndStop(_arg1);
mcnewenemy.gotoAndPlay(2);
mcnewenemy.buttonMode = true;
mcnewenemy.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcnewenemy.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcnewenemy.removeEventListener(MouseEvent.MOUSE_OVER, newenemyover);
mcnewenemy.addEventListener(MouseEvent.MOUSE_OVER, newenemyover);
mcnewenemy.removeEventListener(MouseEvent.MOUSE_OUT, newenemyout);
mcnewenemy.addEventListener(MouseEvent.MOUSE_OUT, newenemyout);
mcnewenemy.removeEventListener(MouseEvent.CLICK, newenemyclick);
mcnewenemy.addEventListener(MouseEvent.CLICK, newenemyclick);
}
public function exptextover(_arg1:MouseEvent):void{
if (_arg1.currentTarget.templare < 3){
mcexp.txt1.text = ((so.data.expe[slotused][_arg1.currentTarget.templare] + "/") + (so.data.templarlevel[slotused][_arg1.currentTarget.templare] * expperlevel));
} else {
mcexp.txt1.text = ((so.data.expe[slotused][_arg1.currentTarget.templare] + "/") + (so.data.templarlevel[slotused][_arg1.currentTarget.templare] * captainexpperlevel));
};
stage.addEventListener(Event.ENTER_FRAME, expoverwaiting);
}
public function cekenemyskill(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (_arg1.side == 0){
_local2 = 0;
while (_local2 < _arg1.skillno.length) {
var _local7 = _arg1.skillcd;
var _local8 = _local2;
var _local9 = (_local7[_local8] - 1);
_local7[_local8] = _local9;
if (_arg1.skillcd[_local2] <= 0){
if (_arg1.skillno[_local2] == 1){
_arg1.stat = "summon";
_arg1.mc1.gotoAndPlay("summon");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
break;
} else {
if (_arg1.skillno[_local2] == 2){
soundflopshake.play(0, 4, new SoundTransform(volsfx));
_arg1.stat = "spit";
_arg1.mc1.gotoAndPlay("spit");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
break;
} else {
if (_arg1.skillno[_local2] == 3){
_arg1.stat = "flopjump";
_arg1.mc1.gotoAndPlay("jump");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
break;
} else {
if (_arg1.skillno[_local2] == 4){
_arg1.stat = "summonskeleton";
_arg1.mc1.gotoAndPlay("skill");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
break;
} else {
if ((((((_arg1.skillno[_local2] == 5)) || ((_arg1.skillno[_local2] == 6)))) || ((_arg1.skillno[_local2] == 7)))){
if ((((((_arg1.skillno[_local2] == 5)) && ((towerskillbool == false)))) && ((towerskillno == 5)))){
_arg1.stat = "entombed";
_arg1.mc1.gotoAndPlay("skill");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
break;
} else {
if ((((((_arg1.skillno[_local2] == 6)) && ((towerskillbool == false)))) && ((towerskillno == 6)))){
_arg1.stat = "spray";
_arg1.mc1.gotoAndPlay("skill");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
break;
} else {
if ((((((_arg1.skillno[_local2] == 7)) && ((towerskillbool == false)))) && ((towerskillno == 7)))){
_arg1.stat = "summonskel2";
_arg1.mc1.gotoAndPlay("skill");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
break;
};
};
};
} else {
if (_arg1.skillno[_local2] == 8){
createsfx(2);
_arg1.stat = "teleout";
_arg1.mc1.gotoAndPlay("teleout");
_arg1.notallowed = true;
_arg1.tangledduration = -1;
_arg1.mctangled.gotoAndStop(1);
_arg1.frozetime = -1;
_arg1.mcfroze.gotoAndStop(1);
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
break;
} else {
if (_arg1.skillno[_local2] == 9){
_local3 = 0;
while (_local3 < unitimage.length) {
if ((((((((unitimage[_local3].side == _arg1.side)) && ((unitimage[_local3].die == false)))) && ((unitimage[_local3].hp < unitimage[_local3].hptemp)))) && (!((unitimage[_local3] == _arg1))))){
if ((((((((unitimage[_local3].x > (_arg1.x - 150))) && ((unitimage[_local3].x < (_arg1.x + 150))))) && ((unitimage[_local3].y > (_arg1.y - 150))))) && ((unitimage[_local3].y < (_arg1.y + 150))))){
_arg1.stat = "heal";
_arg1.mc1.gotoAndPlay("skill");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
break;
};
};
_local3++;
};
} else {
if (_arg1.skillno[_local2] == 10){
_arg1.stat = "spreadshot";
_arg1.mc1.gotoAndPlay("skill");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
} else {
if (_arg1.skillno[_local2] == 11){
createsfx(2);
_arg1.notallowed = true;
_arg1.stat = "bosstp";
_arg1.mc1.gotoAndPlay("telein");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
} else {
if (_arg1.skillno[_local2] == 12){
trace("12");
_arg1.stat = "bossskill";
_arg1.mc1.gotoAndPlay("skill");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
entombedtime = 0;
entombedindex = 0;
stage.addEventListener(Event.ENTER_FRAME, entombedwaiting);
} else {
if (_arg1.skillno[_local2] == 13){
createsfx(5);
_arg1.notallowed = false;
_arg1.shieldduration = shieldduration;
_arg1.mc1.gotoAndPlay("skill");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
} else {
if (_arg1.skillno[_local2] == 14){
_arg1.shieldduration = shieldduration;
_arg1.mc1.gotoAndPlay("skill");
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
_local4 = 0;
while (_local4 < 5) {
callenemy(randRange(15, 19), null, 0, 0);
_local4++;
};
} else {
if (_arg1.skillno[_local2] == 15){
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
_local5 = randRange((bataswall + 50), (batasfog - 50));
_local6 = randRange(batasatas, batasbawah);
if (_arg1.x < _local5){
_arg1.mc1.gotoAndPlay("walkback");
} else {
_arg1.mc1.gotoAndPlay("walkfront");
};
_arg1.timemove = 20;
_arg1.slidetick = 0;
_arg1.slideticktemp = 2;
_arg1.speedx = ((_local5 - _arg1.x) / _arg1.timemove);
_arg1.speedy = ((_local6 - _arg1.y) / _arg1.timemove);
_arg1.stat = "slide";
} else {
if (_arg1.skillno[_local2] == 16){
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
_arg1.mc1.gotoAndPlay("walkback");
_arg1.slidetick = 0;
_arg1.slideticktemp = 2;
_arg1.phase = 1;
_arg1.hellclawtime = 75;
_arg1.stat = "hellclaw";
} else {
if (_arg1.skillno[_local2] == 17){
_arg1.skillcd[_local2] = _arg1.skillcdtemp[_local2];
_arg1.mc1.gotoAndPlay("walkback");
_arg1.slidetick = 0;
_arg1.slideticktemp = 2;
_arg1.phase = 1;
_arg1.stat = "voidstone";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
_local2++;
};
};
}
public function mapskillback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mcmap.mclevel.visible = true;
mcmap.mcskills.visible = false;
mcmap.mccaptain.visible = false;
mcmap.mcscourge.visible = false;
loadlevel();
}
public function lightingballwaiting(_arg1:Event):void{
var _local2:*;
if (pausegame == false){
_arg1.currentTarget.tick--;
if (_arg1.currentTarget.tick <= 0){
_local2 = 0;
while (_local2 < unitimage.length) {
if ((((((unitimage[_local2].die == false)) && ((unitimage[_local2].notallowed == false)))) && (!((unitimage[_local2].side == _arg1.currentTarget.side))))){
if (unitimage[_local2].mc1.mcbody.hitTestObject(_arg1.currentTarget.mcbody) == true){
_arg1.currentTarget.targetid = unitimage[_local2].id;
_arg1.currentTarget.targete = _local2;
cekhitenemy(_arg1.currentTarget);
};
};
_local2++;
};
soundlightingball.play(0, 1, new SoundTransform(volsfx));
_arg1.currentTarget.tick = _arg1.currentTarget.ticktemp;
};
_arg1.currentTarget.duratione--;
if (_arg1.currentTarget.duratione <= 0){
removethisfx(_arg1.currentTarget);
};
};
}
public function clickAGFB(_arg1:MouseEvent):void{
var _local2:URLRequest;
soundclick.play(0, 1, new SoundTransform(volsfx));
_local2 = new URLRequest("http://www.facebook.com/ArmorGames");
navigateToURL(_local2);
}
public function cekskilldrag(){
var _local1:*;
var _local2:*;
var _local3:*;
mcmouse.x = mouseX;
mcmouse.y = mouseY;
if (onskilldrag == true){
_local1 = false;
_local2 = 1;
while (_local2 <= 5) {
_local3 = mcui.getChildByName(("mcskill" + _local2));
if (mcmouse.mcbody.hitTestObject(_local3.mcbody) == true){
_local1 = true;
if (mcui.mcarrow.currentFrame == 1){
mcui.mcarrow.gotoAndStop(2);
};
mcui.mcarrow.x = _local3.x;
mcui.mcarrow.y = _local3.y;
};
_local2++;
};
if (_local1 == false){
mcui.mcarrow.gotoAndStop(1);
};
};
}
public function clicktutorial(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mctutorial.nextFrame();
if (mctutorial.currentLabel == "done"){
mctutorial.removeEventListener(MouseEvent.CLICK, clicktutorial);
pausegame = false;
mctutorial.gotoAndStop(1);
if (mcskills.currentFrame != 1){
pausegame = true;
};
};
}
public function caritarget(_arg1:Object, _arg2:Boolean, _arg3:Boolean){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
_local4 = false;
if (_arg1.allowtoattack == true){
_local5 = [];
_local6 = _arg1.vision;
if (_arg2 == true){
_local6 = _arg1.range;
};
_local7 = 0;
while (_local7 < unitimage.length) {
if ((((((((((unitimage[_local7].die == false)) && ((unitimage[_local7].notallowed == false)))) && (!((unitimage[_local7].side == _arg1.side))))) && ((_arg1.aimtipe == 0)))) || ((((unitimage[_local7].main == true)) && ((_arg1.aimtipe == 1)))))){
if ((((unitimage[_local7].x >= (_arg1.x - _local6))) && ((unitimage[_local7].x <= (_arg1.x + _local6))))){
if ((((unitimage[_local7].y <= (_arg1.y + _local6))) && ((unitimage[_local7].y >= (_arg1.y - _local6))))){
_local8 = true;
if ((((_arg1.captain == true)) && (((unitimage[_local7].x - _arg1.range) > captainline)))){
_local8 = false;
};
if ((((_arg1 is summon1)) && ((unitimage[_local7].x > batasfog)))){
_local8 = false;
};
if (_local8 == true){
if ((((_arg1.missilemovementtype == 8)) && ((_arg2 == true)))){
if ((((unitimage[_local7].y > (_arg1.y - 50))) && ((unitimage[_local7].y <= (_arg1.y + 5))))){
_local5[_local5.length] = {ke:_local7, distance:Math.abs((((_arg1.x - unitimage[_local7].x) + _arg1.y) - unitimage[_local7].y))};
};
} else {
_local5[_local5.length] = {ke:_local7, distance:Math.abs((((_arg1.x - unitimage[_local7].x) + _arg1.y) - unitimage[_local7].y))};
};
};
};
};
};
_local7++;
};
if (_local5.length > 0){
_local4 = true;
if (_arg3 == true){
_local5.sortOn("distance");
_arg1.targete = _local5[0].ke;
_arg1.targetid = unitimage[_local5[0].ke].id;
} else {
_local9 = randRange(0, (_local5.length - 1));
_arg1.targete = _local5[_local9].ke;
_arg1.targetid = unitimage[_local5[_local9].ke].id;
};
if (_arg2 == true){
_arg1.stat = "attack";
_arg1.mc1.gotoAndPlay("attack");
} else {
_arg1.targetenemy = true;
if (_arg1.missilemovementtype == 8){
_arg1.donemovex = true;
} else {
_arg1.donemovex = false;
};
_arg1.donemovey = false;
if ((((_arg1 is summon1)) && ((_arg1.tundrabeastjumptime <= 0)))){
soundtundrabeast2.play(0, 1, new SoundTransform(volsfx));
_arg1.targetpoint = [unitimage[_local5[_local9].ke].x, unitimage[_local5[_local9].ke].y];
_arg1.targetenemy = false;
_arg1.donemovex = false;
_arg1.donemovey = false;
_arg1.speedx = ((_arg1.targetpoint[0] - _arg1.x) / 11);
_arg1.speedy = ((_arg1.targetpoint[1] - _arg1.y) / 11);
_arg1.notallowed = true;
_arg1.tundrabeastjumptime = tundrabeastjumptime;
if ((((_arg1.targetpoint[0] > _arg1.x)) && ((_arg1.directione == "left")))){
_arg1.directione = "right";
_arg1.scaleX = (_arg1.scaleX * -1);
} else {
if ((((_arg1.targetpoint[0] < _arg1.x)) && ((_arg1.directione == "right")))){
_arg1.directione = "left";
_arg1.scaleX = (_arg1.scaleX * -1);
};
};
_arg1.mc1.gotoAndPlay("skill");
_arg1.stat = "jump";
} else {
_arg1.stat = "chase";
};
};
};
_local5 = null;
};
return (_local4);
}
public function removethisspray(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = _arg1.indexke;
sprayimage[_local2].removeEventListener(Event.ENTER_FRAME, sprayendingwaiting);
removeChild(sprayimage[_local2]);
sprayimage[_local2] = null;
sprayimage.splice(_local2, 1);
_local3 = _local2;
while (_local3 < sprayimage.length) {
sprayimage[_local3].indexke--;
_local3++;
};
}
public function tambahiexp(_arg1:int){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = carimain();
if (_local2.die == false){
if (so.data.templarlevel[slotused][so.data.maintemplar[slotused]] < 40){
so.data.expe[slotused][so.data.maintemplar[slotused]] = (so.data.expe[slotused][so.data.maintemplar[slotused]] + _arg1);
if (so.data.expe[slotused][so.data.maintemplar[slotused]] >= (so.data.templarlevel[slotused][so.data.maintemplar[slotused]] * expperlevel)){
soundlevelup.play(0, 1, new SoundTransform(volsfx));
mcui.btnlevelup.gotoAndPlay(2);
mcui.mcexp.width = 1;
var _local6 = so.data.pts;
var _local7 = slotused;
var _local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
_local6 = so.data.templarlevel[slotused];
_local7 = so.data.maintemplar[slotused];
_local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
so.data.expe[slotused][so.data.maintemplar[slotused]] = 0;
hptemp = (templarhp[so.data.maintemplar[slotused]] * so.data.templarlevel[slotused][so.data.maintemplar[slotused]]);
hp = hptemp;
_local2.hp = hp;
_local2.hptemp = hp;
_local2.mclevelup.gotoAndPlay(2);
ceknaeklevelagi();
_local2.mchpbar.visible = true;
_local2.mchpbar.mc1.width = ((_local2.hp / _local2.hptemp) * 22);
updatehpglobe();
};
} else {
so.data.expe[slotused][so.data.maintemplar[slotused]] = (so.data.templarlevel[slotused][so.data.maintemplar[slotused]] * expperlevel);
};
};
_local3 = 0;
while (_local3 < unitimage.length) {
if ((((unitimage[_local3].captain == true)) && ((unitimage[_local3].die == false)))){
_local4 = unitimage[_local3].nomor;
if (so.data.templarlevel[slotused][_local4] < 10){
so.data.expe[slotused][_local4] = (so.data.expe[slotused][_local4] + _arg1);
if (so.data.expe[slotused][_local4] >= (so.data.templarlevel[slotused][_local4] * captainexpperlevel)){
soundlevelup.play(0, 1, new SoundTransform(volsfx));
_local6 = so.data.templarlevel[slotused];
_local7 = _local4;
_local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
so.data.expe[slotused][_local4] = 0;
unitimage[_local3].mclevelup.gotoAndPlay(2);
_local5 = 1;
while (_local5 <= 3) {
if (so.data.templarlevel[slotused][_local4] >= captainskillreq[_local5]){
unitimage[_local3].skillno[unitimage[_local3].skillno.length] = _local5;
unitimage[_local3].skillcd[unitimage[_local3].skillcd.length] = 0;
unitimage[_local3].skillcdtemp[unitimage[_local3].skillcdtemp.length] = (captainskillcd[_local4][_local5] * 25);
};
_local5++;
};
};
};
};
_local3++;
};
}
public function ingamemute1(_arg1:MouseEvent):void{
txtlog2.text = so.data.audiosetting;
soundclick.play(0, 1, new SoundTransform(volsfx));
if (volbgm == 0){
volbgm = 1;
} else {
volbgm = 0;
};
if (soundchannel1 != null){
soundchannel1.soundTransform = new SoundTransform(volbgm);
};
so.data.audiosetting[0] = volbgm;
loadaudiobuttonsetting();
}
public function spraywaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:Point;
if (pausegame == false){
towerskillbool = true;
_arg1.currentTarget.spraycd--;
if (_arg1.currentTarget.spraycd <= 0){
_arg1.currentTarget.spraycd = _arg1.currentTarget.spraycdtemp;
if (_arg1.currentTarget.sprayindex == 0){
createattacksound(1);
_local2 = {x:mctower1.x, y:mctower1.y};
createmissile(fxspraybullet, 7, _arg1.currentTarget.atk, 0, _arg1.currentTarget, -1, _local2);
_local2 = {x:mctower2.x, y:mctower2.y};
createmissile(fxspraybullet, 7, _arg1.currentTarget.atk, 0, _arg1.currentTarget, -1, _local2);
_local2 = {x:mctower3.x, y:mctower3.y};
createmissile(fxspraybullet, 7, _arg1.currentTarget.atk, 0, _arg1.currentTarget, -1, _local2);
_arg1.currentTarget.spraytimes--;
if (_arg1.currentTarget.spraytimes <= 0){
_local3 = randRange(1, 2);
_arg1.currentTarget.sprayindex = 1;
mctower4.gotoAndPlay(("go" + _local3));
};
_local2 = null;
} else {
if (_arg1.currentTarget.sprayindex == 1){
createattacksound(1);
_local4 = mctower4.mc1.localToGlobal(new Point(0, 0));
_local2 = {x:_local4.x, y:_local4.y};
createmissile(fxspraybullet, 7, _arg1.currentTarget.atk, 0, _arg1.currentTarget, -1, _local2);
if (mctower4.currentLabel == "done"){
towerskillbool = false;
carinexttower();
removethisfx(_arg1.currentTarget);
};
};
};
};
};
}
public function ingamemute2(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
if (volsfx == 0){
volsfx = 1;
} else {
volsfx = 0;
};
so.data.audiosetting[1] = volsfx;
if (soundchannelenemydie1 != null){
soundchannelenemydie1.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelenemydie2 != null){
soundchannelenemydie2.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelenemydie3 != null){
soundchannelenemydie3.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelenemydie4 != null){
soundchannelenemydie4.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelenemydie5 != null){
soundchannelenemydie5.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelenemyattack1 != null){
soundchannelenemyattack1.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelenemyattack2 != null){
soundchannelenemyattack2.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelenemyattack3 != null){
soundchannelenemyattack3.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelenemyattack4 != null){
soundchannelenemyattack4.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelenemyattack5 != null){
soundchannelenemyattack5.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelfx1 != null){
soundchannelfx1.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelfx2 != null){
soundchannelfx2.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelfx3 != null){
soundchannelfx3.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelfx4 != null){
soundchannelfx4.soundTransform = new SoundTransform(volsfx);
};
if (soundchannelfx5 != null){
soundchannelfx5.soundTransform = new SoundTransform(volsfx);
};
loadaudiobuttonsetting();
}
public function herowaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pausegame == false){
_local2 = carimain();
if (_local2.die == true){
if (_local2.stat == "res"){
if (_local2.mc1.currentLabel == "doneres"){
_local2.die = false;
_local2.mc1.gotoAndPlay("idle");
_local2.notallowed = false;
};
} else {
if ((((_local2.mc1.currentLabel == "donedie")) && (!((wavephase == 5))))){
if (readyres == true){
createghost();
} else {
wingame = false;
wavewait = (3 * 25);
wavephase = 5;
};
};
};
} else {
if (_local2.gooduration > 0){
if (_local2.mcgoo.currentFrame == 1){
_local2.mcgoo.gotoAndPlay(2);
};
_local2.gooduration--;
if (_local2.gooduration <= 0){
_local2.mcgoo.gotoAndStop(1);
_local2.gooduration = -1;
};
} else {
if (_local2.gooduration == -1){
if (_local2.oninvulnerable == true){
if (_local2.currentLabel != "invulnerable"){
_local2.gotoAndStop("invulnerable");
};
};
ceknaturalregen(_local2);
updatehpglobe();
if (((!((movementcommand == ""))) && (!((movementcommand2 == ""))))){
_local2.ms = (templarms[so.data.maintemplar[slotused]] / 1.5);
} else {
_local2.ms = templarms[so.data.maintemplar[slotused]];
};
_local3 = false;
if (movementcommand == "left"){
if (_local2.directione == "right"){
_local2.directione = "left";
_local2.scaleX = (_local2.scaleX * -1);
_local2.mchpbar.scaleX = (_local2.mchpbar.scaleX * -1);
_local2.mclevelup.scaleX = (_local2.mclevelup.scaleX * -1);
};
_local2.x = (_local2.x - _local2.ms);
_local3 = true;
} else {
if (movementcommand == "right"){
if (_local2.directione == "left"){
_local2.directione = "right";
_local2.scaleX = (_local2.scaleX * -1);
_local2.mchpbar.scaleX = (_local2.mchpbar.scaleX * -1);
_local2.mclevelup.scaleX = (_local2.mclevelup.scaleX * -1);
};
_local2.x = (_local2.x + _local2.ms);
_local3 = true;
};
};
if (movementcommand2 == "top"){
_local2.y = (_local2.y - _local2.ms);
_local3 = true;
} else {
if (movementcommand2 == "bottom"){
_local2.y = (_local2.y + _local2.ms);
_local3 = true;
};
};
if (_local3 == true){
if (_local2.mc1.currentLabel != "walk"){
_local2.mc1.gotoAndPlay("walk");
};
};
if (_local2.x > bataswall){
_local2.x = bataswall;
} else {
if (_local2.x < 17){
_local2.x = 17;
};
};
if (_local2.y < batasatas){
_local2.y = batasatas;
} else {
if (_local2.y > batasbawah){
_local2.y = batasbawah;
};
};
};
};
};
};
}
public function story1waiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
if (mcstory1.currentLabel == "stop"){
mcstory1.mchero.mc1.gotoAndPlay("idle");
};
if (mcstory1.currentLabel == "walk"){
mcstory1.mchero.mc1.gotoAndPlay("walk");
};
if (mcstory1.currentLabel == "oldstop"){
mcstory1.mcoldman.mc1.gotoAndPlay("idle");
};
if (mcstory1.currentLabel == "oldwalk"){
mcstory1.mcoldman.mc1.gotoAndPlay("walk");
};
if (mcstory1.currentLabel == "oldjump"){
mcstory1.mcoldman.mc1.gotoAndPlay("jump");
soundcane.play(0, 1, new SoundTransform(volsfx));
};
if (mcstory1.currentLabel == "oldrun"){
mcstory1.mcoldman.mc1.gotoAndPlay("run");
};
if (mcstory1.currentLabel == "soundrun"){
runsoundtime--;
if (runsoundtime <= 0){
_local2 = [soundstep, soundstep2, soundstep3];
_local3 = randRange(0, (_local2.length - 1));
_local2[_local3].play(0, 1, new SoundTransform(volsfx));
runsoundtime = runsoundtimetemp;
};
};
if (mcstory1.phase == 1){
if (mcstory1.currentLabel == "text"){
_local2 = [soundpop1, soundpop2, soundpop3];
_local3 = randRange(0, (_local2.length - 1));
_local2[_local3].play(0, 1, new SoundTransform(volsfx));
mcstory1.stop();
mcstory1.mctxt.gotoAndPlay(1);
mcstory1.phase = 2;
mcstory1.textwait = textwait;
_local4 = "";
if (textesaidby[textindex] == 0){
_local4 = texte[textindex];
} else {
_local4 = texte[textindex][so.data.maintemplar[slotused]];
};
_local5 = mcstory1.mctxt.txt1;
_local5.text = "asd";
_local6 = _local5.textHeight;
_local7 = -21.8;
_local5.text = _local4;
if (_local5.textHeight <= _local6){
_local5.y = _local7;
} else {
_local8 = 1;
while (_local8 <= 5) {
if (_local5.textHeight <= int(((21 + (_local8 * _local6)) + 2))){
_local5.y = (_local7 - (_local8 * 5));
break;
};
_local8++;
};
};
textindex++;
};
} else {
if (mcstory1.phase == 2){
mcstory1.textwait--;
if (mcstory1.textwait <= 0){
mcstory1.phase = 1;
_local9 = int((int(mcstory1.currentFrame) + int(1)));
mcstory1.gotoAndPlay(_local9);
};
};
};
if (mcstory1.currentFrame == mcstory1.totalFrames){
so.data.firstanimation[slotused] = true;
transisi("ingame");
stage.removeEventListener(Event.ENTER_FRAME, story1waiting);
};
}
public function skillovertext2(_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:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:*;
stage.addEventListener(Event.ENTER_FRAME, skillinfowaiting);
_local2 = _arg1.currentTarget.name;
_local3 = _local2.charAt((_local2.length - 1));
if (currentLabel == "map"){
_local14 = _arg1.currentTarget.parent.name;
_local14 = _arg1.currentTarget.parent.name.charAt((_local14.length - 1));
_local15 = 1;
_local9 = 3;
while (_local9 <= 8) {
if (so.data.templar[slotused][_local9] == 1){
if (_local14 == _local15){
_local14 = _local9;
break;
} else {
_local15++;
};
};
_local9++;
};
} else {
_local14 = _arg1.currentTarget.parent.templarke;
};
mcskilldesc.mcskill.txt1.text = "";
mcskilldesc.mcskill.txtnext.text = "";
mcskilldesc.txtpassive.visible = false;
mcskilldesc.txttitle.text = captainskillname[_local14][_local3].toUpperCase();
mcskilldesc.txtcd.text = (captainskillcd[_local14][_local3] + "sec.");
mcskilldesc.txtdesc.text = "";
_local4 = [];
_local5 = [];
_local6 = captainskilldesc[_local14][_local3];
trace(((("templar ke : " + _local14) + " ") + _local3));
_local7 = 1;
_local8 = 0;
_local9 = 0;
while (_local9 < _local6.length) {
if (_local6.charAt(_local9) == "^"){
trace(("INI ^ CEK : " + _local8));
if (_local8 == 1){
} else {
if (_local8 > 1){
mcskilldesc.txtdesc.text = (mcskilldesc.txtdesc.text + "s");
};
};
} else {
if (_local6.charAt(_local9) == "@"){
_local16 = mcskilldesc.txtdesc.text;
_local4[_local4.length] = _local16.length;
_local17 = 0;
if (so.data.skilllevel[slotused][_local3] == 0){
_local17 = 1;
} else {
_local17 = so.data.skilllevel[slotused][_local3];
};
trace(((("cek : " + _local7) + " ") + _local17));
_local18 = captainskillnumba[_local14][_local3][_local7][1];
trace(("dam : " + _local18));
if (so.data.templarlevel[slotused][_local14] < captainskillreq[_local3]){
_local19 = 0;
} else {
_local19 = (so.data.templarlevel[slotused][_local14] - captainskillreq[_local3]);
};
trace(("tam : " + _local19));
_local20 = (_local19 * captainskillnumbaincrease[_local14][_local3][_local7]);
trace(("has : " + _local20));
mcskilldesc.txtdesc.text = (mcskilldesc.txtdesc.text + (Number(_local18) + Number(_local20)));
_local8 = (Number(_local18) + Number(_local20));
_local7++;
_local16 = mcskilldesc.txtdesc.text;
_local5[_local5.length] = _local16.length;
} else {
mcskilldesc.txtdesc.text = (mcskilldesc.txtdesc.text + _local6.charAt(_local9));
};
};
_local9++;
};
_local10 = mcskilldesc.txtdesc.text;
_local11 = mcskilldesc.txtdesc;
_local11.text = "asd";
_local12 = _local11.textHeight;
_local13 = 44.9;
_local11.text = _local10;
if (_local11.textHeight <= _local12){
_local11.y = _local13;
} else {
_local21 = 1;
while (_local21 <= 5) {
if (_local11.textHeight <= int(((21 + (_local21 * _local12)) + 2))){
_local11.y = (_local13 - (_local21 * 5));
break;
};
_local21++;
};
};
_local9 = 0;
while (_local9 < _local5.length) {
mcskilldesc.txtdesc.setTextFormat(textgold, _local4[_local9], _local5[_local9]);
_local9++;
};
}
public function jalaninskill(_arg1:int){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:Point;
var _local9:*;
var _local10:*;
if (pausegame == false){
if (globalcd[skillno[_arg1]] <= 0){
_local2 = carimain();
if ((((((so.data.maintemplar[slotused] == 1)) && ((_local2.die == false)))) && ((_local2.oninvulnerable == false)))){
globalcd[skillno[_arg1]] = skillcdtemp[_arg1];
mainattack();
_local3 = skillno[_arg1];
if (templarskillelementtipe[so.data.maintemplar[slotused]][_local3] != 0){
_local2.mcaura1.mc1.gotoAndStop(templarskillelementtipe[so.data.maintemplar[slotused]][_local3]);
_local2.mcaura2.mc1.gotoAndStop(templarskillelementtipe[so.data.maintemplar[slotused]][_local3]);
_local2.mcaura1.gotoAndPlay(2);
_local2.mcaura2.gotoAndPlay(2);
_local2.mc1.gotoAndPlay("skill");
};
_local4 = templarskilldamage[so.data.maintemplar[slotused]][_local3][1][so.data.skilllevel[slotused][_local3]];
_local4 = (templarskilldamage[so.data.maintemplar[slotused]][_local3][1][so.data.skilllevel[slotused][_local3]] + (_local4 * (spellmultiplier / 100)));
if (skillno[_arg1] == 1){
soundfireball.play(0, 1, new SoundTransform(volsfx));
createmissile(fxfirespit, 1, _local4, 1, _local2.mc1.mcmissile, -1, null);
} else {
if (skillno[_arg1] == 2){
soundblizzard1.play(0, 1, new SoundTransform(volsfx));
createmissile(fxiceflake, 1, _local4, 1, _local2.mc1.mcmissile, -1, null);
} else {
if (skillno[_arg1] == 3){
soundspark.play(0, 1, new SoundTransform(volsfx));
createmissile(fxelectriczap, 1, _local4, 1, _local2.mc1.mcmissile, -1, null);
} else {
if (skillno[_arg1] == 4){
soundfireball2.play(0, 1, new SoundTransform(volsfx));
createmissile(fxfireball, 2, _local4, 1, _local2.mc1.mcmissile, -1, null);
} else {
if (skillno[_arg1] == 5){
soundicemine.play(0, 1, new SoundTransform(volsfx));
createmissile(fxicemine, 2, _local4, 1, _local2.mc1.mcmissile, -1, null);
} else {
if (skillno[_arg1] == 6){
createlightingball(_local4);
} else {
if (skillno[_arg1] == 7){
soundmeteor1.play(0, 1, new SoundTransform(volsfx));
createmissile(fxmeteor, 4, _local4, 1, _local2.mc1.mcmissile, -1, null);
} else {
if (skillno[_arg1] == 8){
soundwind.play(0, 1, new SoundTransform(volsfx));
createmissile(fxblizzard, 5, _local4, 1, _local2.mc1.mcmissile, -1, null);
} else {
if (skillno[_arg1] == 11){
soundtundrabeast2.play(0, 1, new SoundTransform(volsfx));
createtundrabeast();
} else {
if (skillno[_arg1] == 12){
_local5 = [soundchainlighting1, soundchainlighting2];
_local6 = randRange(0, (_local5.length - 1));
_local5[_local6].play(0, 1, new SoundTransform(volsfx));
_local7 = templarskilldamage[so.data.maintemplar[slotused]][_local3][2][so.data.skilllevel[slotused][_local3]];
_local8 = _local2.mc1.mcmissile.localToGlobal(new Point(0, 0));
_local9 = {x:_local8.x, y:_local8.y};
chaindone = [];
createchainlighting(_local4, _local7, _local9);
_local9 = null;
};
};
};
};
};
};
};
};
};
};
} else {
if ((((((so.data.maintemplar[slotused] == 2)) && ((_local2.die == false)))) && ((_local2.oninvulnerable == false)))){
globalcd[skillno[_arg1]] = skillcdtemp[_arg1];
_local2.mc1.gotoAndPlay("skill");
_local3 = skillno[_arg1];
_local4 = templarskilldamage[so.data.maintemplar[slotused]][_local3][1][so.data.skilllevel[slotused][_local3]];
if (skillno[_arg1] == 2){
soundnapalm.play(0, 1, new SoundTransform(volsfx));
_local8 = _local2.mc1.mcmissile.localToGlobal(new Point(0, 0));
_local10 = {x:_local8.x, y:_local8.y, breathtipe:6};
createadditionalfx(_local10);
createmissile(fxnapalm, 2, _local4, 1, _local2.mc1.mcmissile, -1, null);
_local10 = null;
} else {
if (skillno[_arg1] == 3){
sounddragoncannon.play(0, 1, new SoundTransform(volsfx));
createmissile(fxdragoncannon, 7, _local4, 1, _local2.mc1.mcmissile, -1, null);
} else {
if (skillno[_arg1] == 4){
soundspidercannon.play(0, 1, new SoundTransform(volsfx));
createmissile(fxspiderbullet, 7, _local4, 1, _local2.mc1.mcmissile, -1, null);
} else {
if (skillno[_arg1] == 6){
soundwyvernbullet.play(0, 1, new SoundTransform(volsfx));
createmissile(fxwyvernbullet, 7, _local4, 1, _local2.mc1.mcmissile, -1, null);
} else {
if (skillno[_arg1] == 8){
soundarcturret.play(0, 1, new SoundTransform(volsfx));
createarcturret();
} else {
if (skillno[_arg1] == 15){
soundstriker1.play(0, 1, new SoundTransform(volsfx));
createmissile(fxstriker, 3, _local4, 1, _local2.mc1.mcmissile, -1, null);
};
};
};
};
};
};
};
};
};
};
}
public function cektamat(){
var _local1:*;
var _local2:*;
var _local3:*;
if ((((armor == true)) && ((AGIconnected == true)))){
_local1 = false;
_local2 = false;
_local3 = 1;
while (_local3 <= 2) {
if (so.data.templar[_local3][1] == 1){
if (so.data.gameover[_local3] == true){
_local1 = true;
};
};
if (so.data.templar[_local3][2] == 1){
if (so.data.gameover[_local3] == true){
_local2 = true;
};
};
_local3++;
};
if ((((_local1 == true)) && ((_local2 == true)))){
agi.quests.submit({key:"finish", progress:1});
} else {
agi.quests.reset({key:"finish"});
if (_local1 == true){
agi.quests.submit({key:"finish", progress:0.5});
};
if (_local2 == true){
agi.quests.submit({key:"finish", progress:0.5});
};
};
};
}
public function shadowwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (pausegame == false){
_local2 = true;
_local3 = false;
if (unitimage[_arg1.currentTarget.followindex] == undefined){
_local2 = false;
_local3 = true;
} else {
if (unitimage[_arg1.currentTarget.followindex].id != _arg1.currentTarget.followid){
_local2 = false;
_local3 = true;
};
};
if (_local3 == true){
_local4 = 0;
while (_local4 < unitimage.length) {
if (unitimage[_local4].id == _arg1.currentTarget.followid){
_local2 = true;
_arg1.currentTarget.followindex = _local4;
break;
};
_local4++;
};
};
if (_local2 == false){
removethisshadow(_arg1.currentTarget);
} else {
if ((((((unitimage[_arg1.currentTarget.followindex].die == true)) && ((unitimage[_arg1.currentTarget.followindex].captain == false)))) && ((unitimage[_arg1.currentTarget.followindex].main == false)))){
removethisshadow(_arg1.currentTarget);
} else {
if ((((((unitimage[_arg1.currentTarget.followindex].stat == "falling")) && ((unitimage[_arg1.currentTarget.followindex].side == 0)))) || ((unitimage[_arg1.currentTarget.followindex].stat == "evo")))){
removethisshadow(_arg1.currentTarget);
} else {
if ((((((((((((((((((((((((((((unitimage[_arg1.currentTarget.followindex].stat == "climb1")) || ((unitimage[_arg1.currentTarget.followindex].stat == "climb2")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "ascend")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "voidstone")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "hellclaw")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "bosstp")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "chomped")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "teleout")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "flopjump")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "flopincoming")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "jump")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "outcoming")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "incoming")))) || ((unitimage[_arg1.currentTarget.followindex].stat == "deathstrike")))){
_arg1.currentTarget.visible = false;
} else {
_arg1.currentTarget.visible = true;
};
_arg1.currentTarget.x = unitimage[_arg1.currentTarget.followindex].x;
_arg1.currentTarget.y = unitimage[_arg1.currentTarget.followindex].y;
};
};
};
};
}
public function skilldragdown(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
soundscrolslot1.play(0, 1, new SoundTransform(volsfx));
_local2 = _arg1.currentTarget.name;
_local3 = "";
_local4 = 2;
while (_local4 < _local2.length) {
_local3 = (_local3 + _local2.charAt(_local4));
_local4++;
};
trace(("pake : " + _local3));
if (templarskillpassivebool[so.data.maintemplar[slotused]][_local3] == 0){
onskilldrag = true;
stage.addEventListener(MouseEvent.MOUSE_UP, skilldragup);
if (currentLabel == "map"){
stage.addEventListener(Event.ENTER_FRAME, skilldragwaiting);
};
mcmouse.visible = true;
mcmouse.gotoAndStop(2);
mcmouse.mc1.visible = false;
mcmouse.mc2.visible = false;
mcmouse.skillke = _local3;
mcmouse.slot = -1;
_local5 = mcmouse.getChildByName(("mc" + so.data.maintemplar[slotused]));
trace(("ambel untuk : " + _local5.name));
_local5.visible = true;
trace(mcmouse.mc1.visible);
trace(mcmouse.mc2.visible);
_local5.gotoAndStop(_local3);
};
}
public function createwalladdon(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
_local1 = [undefined, wall2, wall3, wall4];
_local2 = [undefined, 80, 165, 250];
_local3 = 0;
while (_local3 < levelwalladdon[templevel].length) {
unitimage[unitimage.length] = new (_local1[levelwalladdon[templevel][_local3]]);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = levelwalladdonpos[templevel][_local3][0];
unitimage[(unitimage.length - 1)].y = levelwalladdonpos[templevel][_local3][1];
if ((unitimage[(unitimage.length - 1)] is wall4)){
_local4 = randRange(0, 1);
if (_local4 == 1){
unitimage[(unitimage.length - 1)].scaleX = (unitimage[(unitimage.length - 1)].scaleX * -1);
};
};
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].hp = _local2[levelwalladdon[templevel][_local3]];
unitimage[(unitimage.length - 1)].hptemp = unitimage[(unitimage.length - 1)].hp;
unitimage[(unitimage.length - 1)].ms = 0;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].wall = true;
unitimage[(unitimage.length - 1)].main = false;
unitimage[(unitimage.length - 1)].armor = 15;
createshadow(unitimage[(unitimage.length - 1)]);
_local3++;
};
}
public function loading(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
btnplay.visible = false;
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
txtlog2.text = "7";
_local4 = ((_local3 / _local2) * 100);
txtlog2.text = "8";
txtload.text = (int(_local4) + "%");
txtlog2.text = ((("8 " + _local2) + " ") + _local3);
if ((((_local3 == _local2)) || ((_local2 == 0)))){
txtload.visible = false;
txt1.visible = false;
btnplay.visible = true;
this.removeEventListener(Event.ENTER_FRAME, loading);
};
}
public function caritargetrandom(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = [];
_local3 = -1;
_local4 = 0;
while (_local4 < unitimage.length) {
if ((((((((unitimage[_local4].die == false)) && ((unitimage[_local4].notallowed == false)))) && (!((unitimage[_local4].side == _arg1.side))))) && (!((_local4 == _arg1.targete))))){
_local2[_local2.length] = _local4;
};
_local4++;
};
if (_local2.length > 0){
_local5 = randRange(0, (_local2.length - 1));
_local3 = _local2[_local5];
};
return (_local3);
}
public function loadscourge(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
mcmap.mcscourge.visible = true;
mcmap.mcscourge.btnback.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mcscourge.btnback.removeEventListener(MouseEvent.CLICK, mapskillback);
mcmap.mcscourge.btnback.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mcscourge.btnback.addEventListener(MouseEvent.CLICK, mapskillback);
_local1 = 1;
while (_local1 < enemyname.length) {
_local3 = mcmap.mcscourge.getChildByName(("mc" + _local1));
if (_local3 != null){
_local3.visible = false;
_local3.buttonMode = true;
_local3.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local3.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local3.removeEventListener(MouseEvent.CLICK, openenemyinfo);
_local3.addEventListener(MouseEvent.CLICK, openenemyinfo);
};
_local1++;
};
if (so.data.enemies[slotused][mcmap.mcscourge.indexke] == 1){
_local4 = translateenemynomor(mcmap.mcscourge.indexke);
mcmap.mcscourge.txtnot.visible = false;
loadenemyinfo(mcmap.mcscourge, _local4);
} else {
mcmap.mcscourge.mcenemy.gotoAndStop(1);
mcmap.mcscourge.mcenemy.mc1.gotoAndStop(mcmap.mcscourge.indexke);
mcmap.mcscourge.txtname.text = "Unknown";
mcmap.mcscourge.txthp.text = "?";
mcmap.mcscourge.txtatk.text = "?";
mcmap.mcscourge.txtdesc.text = "";
mcmap.mcscourge.txtnot.visible = true;
};
_local2 = [undefined, [1, 2, 4, 5], [6, 7, 9, 10], [11, 12, 13, 14], [15, 16, 17, 18], [19, 20, 21, 22]];
_local1 = 0;
while (_local1 < _local2[mcmap.mcscourge.page].length) {
_local3 = mcmap.mcscourge.getChildByName(("mc" + _local2[mcmap.mcscourge.page][_local1]));
trace(((("ke : " + _local2[mcmap.mcscourge.page][_local1]) + " ") + so.data.enemies[slotused][_local2[mcmap.mcscourge.page][_local1]]));
if (so.data.enemies[slotused][_local2[mcmap.mcscourge.page][_local1]] == 1){
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
};
_local3.visible = true;
_local1++;
};
mcmap.mcscourge.btnnext.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mcscourge.btnnext.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mcscourge.btnnext.removeEventListener(MouseEvent.CLICK, scourgenext);
mcmap.mcscourge.btnnext.addEventListener(MouseEvent.CLICK, scourgenext);
mcmap.mcscourge.btnprev.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mcscourge.btnprev.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mcscourge.btnprev.removeEventListener(MouseEvent.CLICK, scourgeprev);
mcmap.mcscourge.btnprev.addEventListener(MouseEvent.CLICK, scourgeprev);
if (mcmap.mcscourge.page == 1){
mcmap.mcscourge.btnprev.gotoAndStop(1);
mcmap.mcscourge.btnnext.gotoAndStop(2);
} else {
if (mcmap.mcscourge.page == 5){
mcmap.mcscourge.btnprev.gotoAndStop(2);
mcmap.mcscourge.btnnext.gotoAndStop(1);
} else {
mcmap.mcscourge.btnprev.gotoAndStop(2);
mcmap.mcscourge.btnnext.gotoAndStop(2);
};
};
}
public function createtink101(_arg1:Object){
createsfx(8);
tink101time = 0;
tink101x = (_arg1.x - 25);
tink101y = [(_arg1.y - 40), (_arg1.y + 40)];
tink101duration = tink101durationtemp;
tinkdirection = _arg1.directione;
stage.addEventListener(Event.ENTER_FRAME, tink101waiting);
}
public function createchainlighting(_arg1:int, _arg2:int, _arg3:Object){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:Point;
chainphase = 1;
chainbounce = _arg2;
chaindamage = _arg1;
chainposisi = [];
chaintarget = [];
chainindex = 0;
chainenemy = [];
chainposisi[0] = _arg3.x;
chainposisi[1] = _arg3.y;
_local4 = {side:1, targete:-1};
_local5 = -1;
_local6 = 10;
do {
_local5 = caritargetrandom(_local4);
_local7 = false;
_local6--;
_local8 = 0;
while (_local8 < chaindone.length) {
if (_local5 == chaindone[_local8]){
_local5 = -1;
_local7 = true;
break;
};
_local8++;
};
} while ((((_local7 == true)) && ((_local6 > 0))));
if (_local5 != -1){
chaindone[chaindone.length] = _local5;
chainenemy = [_local5, unitimage[_local5].id];
_local9 = unitimage[_local5].mc1.mcbody.localToGlobal(new Point(0, 0));
chaintarget = [_local9.x, _local9.y];
stage.addEventListener(Event.ENTER_FRAME, chainlightingwaiting);
};
_local4 = null;
}
public function cleanupmainmenu(){
soundchannel1.stop();
soundchannel1 = null;
stage.removeEventListener(Event.ENTER_FRAME, mainmenuwaiting);
}
public function ingameareaup(_arg1:MouseEvent):void{
mcui.btnarea.addEventListener(MouseEvent.MOUSE_DOWN, ingameareadown);
mcui.btnarea.removeEventListener(MouseEvent.MOUSE_UP, ingameareaup);
resetarea();
}
public function deleteyes(_arg1:Event):void{
sounddelete.play(0, 1, new SoundTransform(volsfx));
emptyso(mcmainmenu.mcdelete.ke);
mcmainmenu.mcdelete.visible = false;
mcmainmenu.mcoption.visible = true;
loadslot();
saveAGI();
}
public function fxwaiting(_arg1:Event):void{
if (_arg1.currentTarget.phase == 1){
_arg1.currentTarget.jeda--;
if (_arg1.currentTarget.jeda > 0){
_arg1.currentTarget.visible = false;
_arg1.currentTarget.gotoAndStop(1);
} else {
_arg1.currentTarget.visible = true;
_arg1.currentTarget.phase = 2;
_arg1.currentTarget.gotoAndPlay(2);
};
} else {
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
removethisfx(_arg1.currentTarget);
};
};
}
public function skillovertext(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.currentTarget.name;
_local3 = -1;
if (_arg1.currentTarget.parent.name == "mcui"){
_local3 = _local2.charAt((_local2.length - 1));
trace(("apa isie : " + so.data.skillregister[slotused][_local3]));
if (so.data.skillregister[slotused][_local3] != -1){
_local3 = so.data.skillregister[slotused][_local3];
} else {
_local3 = -1;
};
} else {
_local3 = "";
_local4 = 2;
while (_local4 < _local2.length) {
_local3 = (_local3 + _local2.charAt(_local4));
_local4++;
};
};
trace(("PAKE : " + _local3));
if (_local3 != -1){
loadskillovertext(_local3);
stage.addEventListener(Event.ENTER_FRAME, skillinfowaiting);
};
}
public function createattacksound(_arg1:int){
var _local2:*;
if ((((((((((soundchannelenemyattack1 == null)) || ((soundchannelenemyattack2 == null)))) || ((soundchannelenemyattack3 == null)))) || ((soundchannelenemyattack4 == null)))) || ((soundchannelenemyattack5 == null)))){
_local2 = linkageattacksound[_arg1][randRange(0, (linkageattacksound[_arg1].length - 1))];
if (soundchannelenemyattack1 == null){
soundchannelenemyattack1 = _local2.play(0, 1, new SoundTransform(volsfx));
soundchannelenemyattack1.addEventListener(Event.SOUND_COMPLETE, soundchannelenemyattackwaiting1);
} else {
if (soundchannelenemyattack2 == null){
soundchannelenemyattack2 = _local2.play(0, 1, new SoundTransform(volsfx));
soundchannelenemyattack2.addEventListener(Event.SOUND_COMPLETE, soundchannelenemyattackwaiting2);
} else {
if (soundchannelenemyattack3 == null){
soundchannelenemyattack3 = _local2.play(0, 1, new SoundTransform(volsfx));
soundchannelenemyattack3.addEventListener(Event.SOUND_COMPLETE, soundchannelenemyattackwaiting3);
} else {
if (soundchannelenemyattack4 == null){
soundchannelenemyattack4 = _local2.play(0, 1, new SoundTransform(volsfx));
soundchannelenemyattack4.addEventListener(Event.SOUND_COMPLETE, soundchannelenemyattackwaiting4);
} else {
if (soundchannelenemyattack5 == null){
soundchannelenemyattack5 = _local2.play(0, 1, new SoundTransform(volsfx));
soundchannelenemyattack5.addEventListener(Event.SOUND_COMPLETE, soundchannelenemyattackwaiting5);
};
};
};
};
};
};
}
public function createannounce(){
pausegame = true;
cleanupingame();
if (wingame == true){
if (templevel == levelmax){
ending = true;
};
if (templevel == so.data.levelreach[slotused]){
if ((((templevel == 7)) && ((so.data.areareach[slotused] == 1)))){
var _local1 = so.data.areareach;
var _local2 = slotused;
var _local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
temparea = so.data.areareach[slotused];
} else {
if ((((templevel == 14)) && ((so.data.areareach[slotused] == 2)))){
_local1 = so.data.areareach;
_local2 = slotused;
_local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
temparea = so.data.areareach[slotused];
};
};
if (so.data.levelreach[slotused] < levelmax){
_local1 = so.data.levelreach;
_local2 = slotused;
_local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
if ((((templevel == 1)) && ((so.data.choosecaptainke[slotused] == 0)))){
so.data.choosecaptainbool[slotused] = true;
so.data.choosecaptainke[slotused] = 1;
} else {
if ((((templevel == 11)) && ((so.data.choosecaptainke[slotused] == 1)))){
so.data.choosecaptainbool[slotused] = true;
so.data.choosecaptainke[slotused] = 2;
} else {
if ((((templevel == 17)) && ((so.data.choosecaptainke[slotused] == 2)))){
so.data.choosecaptainbool[slotused] = true;
so.data.choosecaptainke[slotused] = 3;
};
};
};
templevel = so.data.levelreach[slotused];
};
};
mcannounce.mc1.gotoAndStop(2);
mcannounce.mcspray1.visible = true;
mcannounce.btnokay.visible = true;
mcannounce.btnrestart.visible = false;
mcannounce.btnquit.visible = false;
soundlevelcomplete.play(0, 1, new SoundTransform(volsfx));
} else {
mcannounce.mc1.gotoAndStop(1);
mcannounce.mcspray1.visible = false;
mcannounce.btnokay.visible = false;
mcannounce.btnrestart.visible = true;
mcannounce.btnquit.visible = true;
soundlose.play(0, 1, new SoundTransform(volsfx));
};
mcannounce.gotoAndPlay(2);
mcannounce.mcspray1.gotoAndPlay(1);
mcannounce.btnokay.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcannounce.btnokay.removeEventListener(MouseEvent.CLICK, ingameokay);
mcannounce.btnokay.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcannounce.btnokay.addEventListener(MouseEvent.CLICK, ingameokay);
mcannounce.btnrestart.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcannounce.btnrestart.removeEventListener(MouseEvent.CLICK, ingamerestart);
mcannounce.btnrestart.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcannounce.btnrestart.addEventListener(MouseEvent.CLICK, ingamerestart);
mcannounce.btnquit.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcannounce.btnquit.removeEventListener(MouseEvent.CLICK, ingamequit);
mcannounce.btnquit.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcannounce.btnquit.addEventListener(MouseEvent.CLICK, ingamequit);
stage.addEventListener(Event.ENTER_FRAME, announcewait);
}
public function removethisfx(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = _arg1.indexke;
fximage[_local2].removeEventListener(Event.ENTER_FRAME, firespiritwaiting);
fximage[_local2].removeEventListener(Event.ENTER_FRAME, lightingballwaiting);
fximage[_local2].removeEventListener(Event.ENTER_FRAME, fxwaiting);
fximage[_local2].removeEventListener(Event.ENTER_FRAME, webwaiting);
fximage[_local2].removeEventListener(Event.ENTER_FRAME, spraywaiting);
fximage[_local2].removeEventListener(Event.ENTER_FRAME, onesoulwaiting);
fximage[_local2].removeEventListener(Event.ENTER_FRAME, eyeswaiting);
fximage[_local2].removeEventListener(Event.ENTER_FRAME, unicornwaiting);
fximage[_local2].removeEventListener(Event.ENTER_FRAME, ghostwaiting);
removeChild(fximage[_local2]);
fximage[_local2] = null;
fximage.splice(_local2, 1);
_local3 = _local2;
while (_local3 < fximage.length) {
fximage[_local3].indexke--;
_local3++;
};
}
public function loadAGI2(){
var _local1:String;
trace("LOAD AGIII");
if (AGIconnected == true){
if (agi.user.isGuest()){
mcguest.mc1.txt1.text = "Guest connected.";
} else {
guestbool = false;
_local1 = agi.user.getUsername();
mcguest.mc1.txt1.text = (("Templar " + _local1) + " connected.");
};
} else {
mcguest.mc1.txt1.text = "Offline save.";
};
mcguest.gotoAndPlay(2);
}
public function transisiwaiting(_arg1:Event):void{
if (mctransisi.currentLabel == "go"){
if (so.data.choosecaptainbool[slotused] == true){
gotoAndStop("captainselect");
} else {
if (mctransisi.ke == "ingame"){
if ((((so.data.firstanimation[slotused] == false)) && ((templevel == 1)))){
gotoAndStop("story1");
} else {
gotoAndStop(mctransisi.ke);
};
} else {
gotoAndStop(mctransisi.ke);
};
};
stage.removeEventListener(Event.ENTER_FRAME, transisiwaiting);
mctransisi.gotoAndPlay("done");
};
}
public function expwaiting(_arg1:Event):void{
if (pausegame == false){
if (_arg1.currentTarget.currentLabel == "done"){
_arg1.currentTarget.wait--;
if (_arg1.currentTarget.wait <= 0){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speedx);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speedy);
if (_arg1.currentTarget.hitTestObject(mcexpposition) == true){
_arg1.currentTarget.gotoAndPlay("pop");
tambahiexp(_arg1.currentTarget.amount);
_arg1.currentTarget.x = (_arg1.currentTarget.x + randRange(-30, 30));
_arg1.currentTarget.y = (_arg1.currentTarget.y + randRange(-30, 30));
if (mcui.mcexp2.currentFrame == 1){
mcui.mcexp2.gotoAndPlay(2);
};
updateexpbar();
};
};
} else {
if (_arg1.currentTarget.currentLabel == "bust"){
removethisexp(_arg1.currentTarget);
};
};
};
}
public function cleanupcharselect(){
stage.removeEventListener(Event.ENTER_FRAME, charselectwaiting);
}
public function cekvalidunittarget(_arg1:Object){
var _local2:*;
_local2 = false;
if (_arg1.targete != -1){
if (_arg1.targete <= (unitimage.length - 1)){
if ((((unitimage[_arg1.targete].die == false)) && ((unitimage[_arg1.targete].notallowed == false)))){
if (((((((!((unitimage[_arg1.targete].side == _arg1.side))) && ((_arg1.healbool == false)))) || ((((unitimage[_arg1.targete].side == _arg1.side)) && ((_arg1.healbool == true)))))) && ((unitimage[_arg1.targete].id == _arg1.targetid)))){
_local2 = true;
};
};
};
};
return (_local2);
}
public function loadskillslot(){
var _local1:*;
var _local2:*;
_local1 = 1;
while (_local1 <= 5) {
_local2 = mcui.getChildByName(("mcskill" + _local1));
_local2.mccd.txt1.text = "";
_local2.txt1.text = "";
_local2.mcskill.visible = false;
_local2.mcmask2.height = 1;
_local2.gotoAndStop(2);
_local1++;
};
trace(("ISI SLOT : " + so.data.skillregister[slotused]));
_local1 = 1;
while (_local1 <= 5) {
_local2 = mcui.getChildByName(("mcskill" + _local1));
_local2.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local2.removeEventListener(MouseEvent.MOUSE_OVER, skillovertext2);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, skilloutbutton);
if (so.data.skillregister[slotused][_local1] != -1){
_local2 = mcui.getChildByName(("mcskill" + _local1));
_local2.mccd.txt1.text = "";
_local2.txt1.text = _local1;
changeskillicon(_local2, so.data.skillregister[slotused][_local1]);
_local2.gotoAndStop(1);
_local2.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local2.addEventListener(MouseEvent.MOUSE_OVER, skillovertext);
_local2.addEventListener(MouseEvent.MOUSE_OUT, skilloutbutton);
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, skilldragdown2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, skilldragdown2);
};
_local1++;
};
}
public function creatediesound(_arg1:int){
var _local2:*;
var _local3:*;
_local2 = [undefined, [soundsplat1, soundsplat2, soundsplat3, soundsplat4, soundsplat5, soundsplat6], [soundshielddestroyed], [], [soundskeldie1, soundskeldie2, soundskeldie3, soundskeldie4, soundskeldie5], [soundghostdie], [soundtowerdestroyed], [sounddemondie1, sounddemondie2, sounddemondie3, sounddemondie4], [soundbossdead1], [soundtowerdestroyed]];
if ((((((((((soundchannelenemydie1 == null)) || ((soundchannelenemydie2 == null)))) || ((soundchannelenemydie3 == null)))) || ((soundchannelenemydie4 == null)))) || ((soundchannelenemydie5 == null)))){
_local3 = _local2[enemydiesound[_arg1]][randRange(0, (_local2[enemydiesound[_arg1]].length - 1))];
if (soundchannelenemydie1 == null){
soundchannelenemydie1 = _local3.play(0, 1, new SoundTransform(volsfx));
soundchannelenemydie1.addEventListener(Event.SOUND_COMPLETE, soundchannelenemydiewaiting1);
} else {
if (soundchannelenemydie2 == null){
soundchannelenemydie2 = _local3.play(0, 1, new SoundTransform(volsfx));
soundchannelenemydie2.addEventListener(Event.SOUND_COMPLETE, soundchannelenemydiewaiting2);
} else {
if (soundchannelenemydie3 == null){
soundchannelenemydie3 = _local3.play(0, 1, new SoundTransform(volsfx));
soundchannelenemydie3.addEventListener(Event.SOUND_COMPLETE, soundchannelenemydiewaiting3);
} else {
if (soundchannelenemydie4 == null){
soundchannelenemydie4 = _local3.play(0, 1, new SoundTransform(volsfx));
soundchannelenemydie4.addEventListener(Event.SOUND_COMPLETE, soundchannelenemydiewaiting4);
} else {
if (soundchannelenemydie5 == null){
soundchannelenemydie5 = _local3.play(0, 1, new SoundTransform(volsfx));
soundchannelenemydie5.addEventListener(Event.SOUND_COMPLETE, soundchannelenemydiewaiting5);
};
};
};
};
};
};
}
public function createcaptaintemplar(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = 0;
_local2 = [372, 279, 279];
_local3 = [237, 173, 317];
_local4 = 3;
while (_local4 < templarname.length) {
if (so.data.templar[slotused][_local4] == 1){
unitimage[unitimage.length] = new (templarlinkage[_local4]);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
if (templarposition[_local4] == 1){
if ((unitimage[(unitimage.length - 1)] is hero5)){
unitimage[(unitimage.length - 1)].x = 228;
unitimage[(unitimage.length - 1)].y = 242;
} else {
unitimage[(unitimage.length - 1)].x = 372;
unitimage[(unitimage.length - 1)].y = 237;
};
} else {
unitimage[(unitimage.length - 1)].x = 114;
unitimage[(unitimage.length - 1)].y = randRange(batasatas, batasbawah);
};
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].captain = true;
unitimage[(unitimage.length - 1)].nomor = _local4;
unitimage[(unitimage.length - 1)].hp = (templarhp[_local4] * so.data.templarlevel[slotused][_local4]);
unitimage[(unitimage.length - 1)].hptemp = unitimage[(unitimage.length - 1)].hp;
unitimage[(unitimage.length - 1)].atk = int(((templaratk[_local4] * so.data.templarlevel[slotused][_local4]) * captainatkmultiplier));
unitimage[(unitimage.length - 1)].atktemp = unitimage[(unitimage.length - 1)].atk;
unitimage[(unitimage.length - 1)].ms = templarms[_local4];
unitimage[(unitimage.length - 1)].mstemp = unitimage[(unitimage.length - 1)].ms;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].main = false;
unitimage[(unitimage.length - 1)].armor = (templararmor[_local4] * so.data.templarlevel[slotused][_local4]);
unitimage[(unitimage.length - 1)].directione = "right";
unitimage[(unitimage.length - 1)].range = templarrange[_local4];
unitimage[(unitimage.length - 1)].vision = templarvision[_local4];
unitimage[(unitimage.length - 1)].visiontemp = unitimage[(unitimage.length - 1)].vision;
unitimage[(unitimage.length - 1)].reload = 0;
unitimage[(unitimage.length - 1)].reloadtemp = templaras[_local4];
unitimage[(unitimage.length - 1)].naturalregen = captainnaturalregen;
unitimage[(unitimage.length - 1)].naturalregentime = templarnaturalregentime;
unitimage[(unitimage.length - 1)].missilelinkage = templarmissilelinkage[_local4];
unitimage[(unitimage.length - 1)].missilemovementtype = templarmissilemovementtype[_local4];
_local5 = 1;
while (_local5 <= 3) {
if (so.data.templarlevel[slotused][_local4] >= captainskillreq[_local5]){
unitimage[(unitimage.length - 1)].skillno[unitimage[(unitimage.length - 1)].skillno.length] = _local5;
unitimage[(unitimage.length - 1)].skillcd[unitimage[(unitimage.length - 1)].skillcd.length] = 0;
unitimage[(unitimage.length - 1)].skillcdtemp[unitimage[(unitimage.length - 1)].skillcdtemp.length] = (captainskillcd[_local4][_local5] * 25);
};
_local5++;
};
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, unitwaiting);
unitimage[(unitimage.length - 1)].addEventListener(MouseEvent.CLICK, clikGF);
createshadow(unitimage[(unitimage.length - 1)]);
_local1++;
};
_local4++;
};
}
public function announcewait(_arg1:Event):void{
var _local2:*;
if ((((mcannounce.currentLabel == "spray")) && ((wingame == true)))){
spraytime--;
if (spraytime <= 0){
spraytime = randRange(10, 25);
sprayamount = randRange(3, 6);
_local2 = 0;
while (_local2 < sprayamount) {
createspray();
_local2++;
};
};
};
}
public function createeyesforthis(_arg1:Object){
fximage[fximage.length] = new (fxeyes1);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].followid = _arg1.id;
fximage[(fximage.length - 1)].phase = 1;
fximage[(fximage.length - 1)].followtarget = _arg1.indexke;
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, eyeswaiting);
}
public function nomnomwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (pausegame == false){
_arg1.currentTarget.reload--;
if (_arg1.currentTarget.reload <= 0){
_local2 = carimain();
if ((((hp < hptemp)) && ((_local2.oninvulnerable == false)))){
healunitini(_local2.indexke, _arg1.currentTarget.heale);
_arg1.currentTarget.reload = _arg1.currentTarget.reloadtemp;
};
};
if (_arg1.currentTarget.phase == 1){
if (_arg1.currentTarget.mc1.currentLabel != "idle"){
_arg1.currentTarget.mc1.gotoAndPlay("idle");
};
_arg1.currentTarget.wanderingwait--;
if (_arg1.currentTarget.wanderingwait <= 0){
_local2 = carimain();
_arg1.currentTarget.phase = 2;
_arg1.currentTarget.targetx = (_local2.x + randRange(-40, 40));
_arg1.currentTarget.targety = (_local2.y + randRange(-40, 40));
if (_arg1.currentTarget.targety < batasatas){
_arg1.currentTarget.targety = batasatas;
} else {
if (_arg1.currentTarget.targety > batasbawah){
_arg1.currentTarget.targety = batasbawah;
};
};
if (_arg1.currentTarget.x < 30){
_arg1.currentTarget.x = 30;
};
_arg1.currentTarget.wanderingwait = _arg1.currentTarget.wanderingwaittemp;
_arg1.currentTarget.donemovex = false;
_arg1.currentTarget.donemovey = false;
};
} else {
if (_arg1.currentTarget.mc1.currentLabel != "walk"){
_arg1.currentTarget.mc1.gotoAndPlay("walk");
};
_local3 = _arg1.currentTarget.targetx;
_local4 = _arg1.currentTarget.targety;
if (_arg1.currentTarget.donemovex == false){
if (_local3 > _arg1.currentTarget.x){
if (_arg1.currentTarget.directione == "left"){
_arg1.currentTarget.directione = "right";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
};
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.ms);
if (_local3 <= _arg1.currentTarget.x){
_arg1.currentTarget.donemovex = true;
};
} else {
if (_local3 < _arg1.currentTarget.x){
if (_arg1.currentTarget.directione == "right"){
_arg1.currentTarget.directione = "left";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
};
_arg1.currentTarget.x = (_arg1.currentTarget.x - _arg1.currentTarget.ms);
if (_local3 >= _arg1.currentTarget.x){
_arg1.currentTarget.donemovex = true;
};
} else {
if (_local3 == _arg1.currentTarget.x){
_arg1.currentTarget.donemovex = true;
};
};
};
};
if (_arg1.currentTarget.donemovey == false){
if (_local4 > _arg1.currentTarget.y){
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.ms);
if (_local4 <= _arg1.currentTarget.y){
_arg1.currentTarget.donemovey = true;
};
} else {
if (_local4 < _arg1.currentTarget.y){
_arg1.currentTarget.y = (_arg1.currentTarget.y - _arg1.currentTarget.ms);
if (_local4 >= _arg1.currentTarget.y){
_arg1.currentTarget.donemovey = true;
};
} else {
if (_local4 == _arg1.currentTarget.y){
_arg1.currentTarget.donemovey = true;
};
};
};
};
if ((((_arg1.currentTarget.donemovex == true)) && ((_arg1.currentTarget.donemovey == true)))){
_arg1.currentTarget.phase = 1;
};
};
};
}
public function removethisexp(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = _arg1.indexke;
expimage[_local2].removeEventListener(Event.ENTER_FRAME, expwaiting);
removeChild(expimage[_local2]);
expimage[_local2] = null;
expimage.splice(_local2, 1);
_local3 = _local2;
while (_local3 < expimage.length) {
expimage[_local3].indexke--;
_local3++;
};
}
public function removethismissile(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = _arg1.indexke;
missileimage[_local2].removeEventListener(Event.ENTER_FRAME, missilewaiting);
removeChild(missileimage[_local2]);
missileimage[_local2] = null;
missileimage.splice(_local2, 1);
_local3 = _local2;
while (_local3 < missileimage.length) {
missileimage[_local3].indexke--;
_local3++;
};
}
public function cleanupcc(){
mcchoosecaptain.mc1.removeEventListener(Event.ENTER_FRAME, captainflywaiting);
mcchoosecaptain.mc2.removeEventListener(Event.ENTER_FRAME, captainflywaiting);
}
public function createlightingball(_arg1:int){
fximage[fximage.length] = new (fxlightingball);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].x = mouseX;
fximage[(fximage.length - 1)].y = mouseY;
fximage[(fximage.length - 1)].atk = _arg1;
fximage[(fximage.length - 1)].duratione = (lightingballduration * 25);
fximage[(fximage.length - 1)].tick = 0;
fximage[(fximage.length - 1)].ticktemp = (lightingballtick * 25);
fximage[(fximage.length - 1)].mcbody.width = lightingballrange;
fximage[(fximage.length - 1)].mcbody.height = lightingballrange;
fximage[(fximage.length - 1)].side = 1;
fximage[(fximage.length - 1)].healbool = false;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, lightingballwaiting);
}
public function scourgeprev(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
if (_arg1.currentTarget.currentFrame == 2){
mcmap.mcscourge.page--;
loadscourge();
};
}
public function createsfx(_arg1:int){
var _local2:*;
var _local3:*;
_local2 = [undefined, [soundgulp], [soundtele], [soundenemyspit2], [soundbanemissile1, soundbanemissile2], [soundshield], [soundcreatetink1, soundcreatetink2], [soundheal], [soundtink101], [soundheartbeat], [soundtundrastomp]];
if ((((((((((soundchannelfx1 == null)) || ((soundchannelfx2 == null)))) || ((soundchannelfx3 == null)))) || ((soundchannelfx4 == null)))) || ((soundchannelfx5 == null)))){
_local3 = _local2[_arg1][randRange(0, (_local2[_arg1].length - 1))];
if (soundchannelfx1 == null){
soundchannelfx1 = _local3.play(0, 1, new SoundTransform(volsfx));
soundchannelfx1.addEventListener(Event.SOUND_COMPLETE, soundchannelfxwaiting1);
} else {
if (soundchannelfx2 == null){
soundchannelfx2 = _local3.play(0, 1, new SoundTransform(volsfx));
soundchannelfx2.addEventListener(Event.SOUND_COMPLETE, soundchannelfxwaiting2);
} else {
if (soundchannelfx3 == null){
soundchannelfx3 = _local3.play(0, 1, new SoundTransform(volsfx));
soundchannelfx3.addEventListener(Event.SOUND_COMPLETE, soundchannelfxwaiting3);
} else {
if (soundchannelfx4 == null){
soundchannelfx4 = _local3.play(0, 1, new SoundTransform(volsfx));
soundchannelfx4.addEventListener(Event.SOUND_COMPLETE, soundchannelfxwaiting4);
} else {
if (soundchannelfx5 == null){
soundchannelfx5 = _local3.play(0, 1, new SoundTransform(volsfx));
soundchannelfx5.addEventListener(Event.SOUND_COMPLETE, soundchannelfxwaiting5);
};
};
};
};
};
};
}
public function keyboardwaitingdown(_arg1:KeyboardEvent):void{
var _local2:*;
if ((((_arg1.keyCode == 65)) || ((_arg1.keyCode == 37)))){
movementcommand = "left";
} else {
if ((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 39)))){
movementcommand = "right";
};
};
if ((((_arg1.keyCode == 87)) || ((_arg1.keyCode == 38)))){
movementcommand2 = "top";
} else {
if ((((_arg1.keyCode == 83)) || ((_arg1.keyCode == 40)))){
movementcommand2 = "bottom";
};
};
if (_arg1.keyCode == 107){
createenemy(20, null, 0);
};
if (_arg1.keyCode == 80){
if ((((mcscourgeinfo.currentFrame == 1)) && ((mcskills.currentFrame == 1)))){
cekpause();
};
};
if (_arg1.keyCode == 32){
mcscourgeinfo.gotoAndStop(1);
openskills();
};
if ((((_arg1.keyCode >= 49)) && ((_arg1.keyCode <= 53)))){
_local2 = (_arg1.keyCode - 48);
jalaninskill(_local2);
};
}
public function deleteslot(_arg1:Event):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volsfx));
trace("DELETE");
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
mcmainmenu.mcdelete.ke = _local2;
if (_arg1.currentTarget.currentFrame == 1){
loaddelete();
};
}
public function loadskillovertext(_arg1:int){
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:*;
mcskilldesc.mcskill.txt1.text = "";
mcskilldesc.txttitle.text = templarskillname[so.data.maintemplar[slotused]][_arg1].toUpperCase();
if (templarskillpassivebool[so.data.maintemplar[slotused]][_arg1] == 1){
mcskilldesc.txtcd.text = "";
mcskilldesc.txtpassive.visible = true;
mcskilldesc.mccd.visible = false;
} else {
mcskilldesc.mccd.visible = true;
mcskilldesc.txtpassive.visible = false;
_local12 = 0;
if (so.data.maintemplar[slotused] == 2){
if (so.data.skilllevel[slotused][13] > 0){
_local12 = (templarskillcd[so.data.maintemplar[slotused]][_arg1] * (templarskilldamage[so.data.maintemplar[slotused]][13][1][so.data.skilllevel[slotused][13]] / 100));
};
};
mcskilldesc.txtcd.text = ((templarskillcd[so.data.maintemplar[slotused]][_arg1] - _local12).toFixed(1) + "sec.");
};
mcskilldesc.txtdesc.text = "";
_local2 = [];
_local3 = [];
_local4 = templarskilldesc[so.data.maintemplar[slotused]][_arg1];
_local5 = 1;
mcskilldesc.mcskill.txtnext.visible = false;
_local6 = 0;
_local7 = 0;
while (_local7 < _local4.length) {
if (_local4.charAt(_local7) == "@"){
_local13 = mcskilldesc.txtdesc.text;
_local2[_local2.length] = _local13.length;
_local14 = 0;
if (so.data.skilllevel[slotused][_arg1] == 0){
_local14 = 1;
} else {
_local14 = so.data.skilllevel[slotused][_arg1];
};
_local12 = 0;
if ((((so.data.maintemplar[slotused] == 2)) && ((_arg1 == 1)))){
if (so.data.skilllevel[slotused][9] > 0){
_local12 = (templarskilldamage[so.data.maintemplar[slotused]][_arg1][_local5][_local14] * (templarskilldamage[so.data.maintemplar[slotused]][9][1][so.data.skilllevel[slotused][9]] / 100));
trace(_local12);
};
} else {
if ((((so.data.maintemplar[slotused] == 2)) && ((_arg1 == 5)))){
if (so.data.skilllevel[slotused][10] > 0){
_local12 = (templarskilldamage[so.data.maintemplar[slotused]][_arg1][_local5][_local14] * (templarskilldamage[so.data.maintemplar[slotused]][10][1][so.data.skilllevel[slotused][10]] / 100));
};
};
};
if ((((((so.data.maintemplar[slotused] == 1)) && (((((((!((_arg1 == 11))) && (!((_arg1 == 13))))) && (!((_arg1 == 14))))) && (!((_arg1 == 15))))))) && ((_local5 == 1)))){
if (so.data.skilllevel[slotused][13] > 0){
_local12 = (templarskilldamage[so.data.maintemplar[slotused]][_arg1][_local5][_local14] * (templarskilldamage[so.data.maintemplar[slotused]][13][1][so.data.skilllevel[slotused][13]] / 100));
};
};
_local15 = (Number(templarskilldamage[so.data.maintemplar[slotused]][_arg1][_local5][_local14]) + Number(_local12)).toFixed(1);
if (_local14 < (templarskilldamage[so.data.maintemplar[slotused]][_arg1][_local5].length - 1)){
_local16 = _local15;
_local17 = int((int(_local14) + int(1)));
if (so.data.skilllevel[slotused][_arg1] == 0){
_local16 = 0;
_local17 = 1;
};
_local18 = templarskilltextaddon[so.data.maintemplar[slotused]][_arg1][(_local5 - 1)];
_local19 = (Number(templarskilldamage[so.data.maintemplar[slotused]][_arg1][_local5][_local17]) + Number(_local12)).toFixed(1);
mcskilldesc.mcskill.txtnext.visible = true;
mcskilldesc.mcskill.txt1.text = (mcskilldesc.mcskill.txt1.text + (((((((_local16 + "") + _local18) + "->") + _local19) + "") + _local18) + "\n"));
_local6 = _local15;
} else {
trace("MAX");
mcskilldesc.mcskill.txtnext.visible = false;
mcskilldesc.mcskill.txt1.text = "MAX LEVEL";
};
if (templarskilltextaddon[so.data.maintemplar[slotused]][_arg1][0] == "-1"){
mcskilldesc.mcskill.txtnext.visible = false;
};
mcskilldesc.txtdesc.text = (mcskilldesc.txtdesc.text + _local15);
_local5++;
_local13 = mcskilldesc.txtdesc.text;
_local3[_local3.length] = _local13.length;
} else {
mcskilldesc.txtdesc.text = (mcskilldesc.txtdesc.text + _local4.charAt(_local7));
};
_local7++;
};
_local8 = mcskilldesc.txtdesc.text;
_local9 = mcskilldesc.txtdesc;
_local9.text = "asd";
_local10 = _local9.textHeight;
_local11 = 44.9;
_local9.text = _local8;
if (_local9.textHeight <= _local10){
_local9.y = _local11;
} else {
_local20 = 1;
while (_local20 <= 5) {
if (_local9.textHeight <= int(((21 + (_local20 * _local10)) + 2))){
_local9.y = (_local11 - (_local20 * 5));
break;
};
_local20++;
};
};
_local7 = 0;
while (_local7 < _local3.length) {
mcskilldesc.txtdesc.setTextFormat(textgold, _local2[_local7], _local3[_local7]);
_local7++;
};
}
public function loadaudiobuttonsetting(){
trace(((("CEK VOL : " + volbgm) + " ") + volsfx));
if (volbgm == 0){
if (currentLabel == "ingame"){
mcui.btnmute1.gotoAndStop(2);
mcui.btnmute1.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnmute1.removeEventListener(MouseEvent.CLICK, ingamemute1);
mcui.btnmute1.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnmute1.addEventListener(MouseEvent.CLICK, ingamemute1);
mcui.btnmute2.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnmute2.removeEventListener(MouseEvent.CLICK, ingamemute2);
mcui.btnmute2.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnmute2.addEventListener(MouseEvent.CLICK, ingamemute2);
} else {
btnmute1.gotoAndStop(2);
btnmute1.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
btnmute1.removeEventListener(MouseEvent.CLICK, ingamemute1);
btnmute1.addEventListener(MouseEvent.MOUSE_OVER, oversound);
btnmute1.addEventListener(MouseEvent.CLICK, ingamemute1);
btnmute2.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
btnmute2.removeEventListener(MouseEvent.CLICK, ingamemute2);
btnmute2.addEventListener(MouseEvent.MOUSE_OVER, oversound);
btnmute2.addEventListener(MouseEvent.CLICK, ingamemute2);
};
} else {
if (currentLabel == "ingame"){
mcui.btnmute1.gotoAndStop(1);
mcui.btnmute1.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnmute1.removeEventListener(MouseEvent.CLICK, ingamemute1);
mcui.btnmute1.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnmute1.addEventListener(MouseEvent.CLICK, ingamemute1);
mcui.btnmute2.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnmute2.removeEventListener(MouseEvent.CLICK, ingamemute2);
mcui.btnmute2.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnmute2.addEventListener(MouseEvent.CLICK, ingamemute2);
} else {
btnmute1.gotoAndStop(1);
btnmute1.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
btnmute1.removeEventListener(MouseEvent.CLICK, ingamemute1);
btnmute1.addEventListener(MouseEvent.MOUSE_OVER, oversound);
btnmute1.addEventListener(MouseEvent.CLICK, ingamemute1);
btnmute2.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
btnmute2.removeEventListener(MouseEvent.CLICK, ingamemute2);
btnmute2.addEventListener(MouseEvent.MOUSE_OVER, oversound);
btnmute2.addEventListener(MouseEvent.CLICK, ingamemute2);
};
};
if (volsfx == 0){
if (currentLabel == "ingame"){
mcui.btnmute2.gotoAndStop(2);
} else {
btnmute2.gotoAndStop(2);
};
} else {
if (currentLabel == "ingame"){
mcui.btnmute2.gotoAndStop(1);
} else {
btnmute2.gotoAndStop(1);
};
};
}
public function ingamepausegame(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
cekpause();
}
public function cleanupingame(){
var _local1:*;
soundchannel1.stop();
soundchannel1 = null;
stage.removeEventListener(Event.ENTER_FRAME, skillinfowaiting);
stage.removeEventListener(Event.ENTER_FRAME, expoverwaiting);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyboardwaitingdown);
stage.removeEventListener(Event.ENTER_FRAME, herowaiting);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyboardwaitingup);
stage.removeEventListener(Event.ENTER_FRAME, chainlightingwaiting);
stage.removeEventListener(Event.ENTER_FRAME, tink101waiting);
stage.removeEventListener(Event.ENTER_FRAME, entombedwaiting);
stage.removeEventListener(Event.ENTER_FRAME, captainareadragwaiting);
stage.removeEventListener(Event.ENTER_FRAME, catapultwaiting);
trace("1");
_local1 = 0;
while (_local1 < missileimage.length) {
missileimage[_local1].removeEventListener(Event.ENTER_FRAME, missilewaiting);
removeChild(missileimage[_local1]);
missileimage[_local1] = null;
_local1++;
};
trace("2");
_local1 = 0;
while (_local1 < fximage.length) {
fximage[_local1].removeEventListener(Event.ENTER_FRAME, fxwaiting);
fximage[_local1].removeEventListener(Event.ENTER_FRAME, lightingballwaiting);
fximage[_local1].removeEventListener(Event.ENTER_FRAME, firespiritwaiting);
fximage[_local1].removeEventListener(Event.ENTER_FRAME, webwaiting);
fximage[_local1].removeEventListener(Event.ENTER_FRAME, onesoulwaiting);
fximage[_local1].removeEventListener(Event.ENTER_FRAME, spraywaiting);
fximage[_local1].removeEventListener(Event.ENTER_FRAME, eyeswaiting);
removeChild(fximage[_local1]);
fximage[_local1] = null;
_local1++;
};
trace("3");
_local1 = 0;
while (_local1 < expimage.length) {
expimage[_local1].removeEventListener(Event.ENTER_FRAME, expwaiting);
tambahiexp(expimage[_local1].amount);
removeChild(expimage[_local1]);
expimage[_local1] = null;
_local1++;
};
trace("4");
_local1 = 0;
while (_local1 < unitimage.length) {
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, nomnomwaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, unitwaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, arcturretwaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, tinkturretwaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, tinkengineerwaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, blobwaiting);
unitimage[_local1].removeEventListener(Event.ENTER_FRAME, tilewaiting);
removeChild(unitimage[_local1]);
unitimage[_local1] = null;
_local1++;
};
trace("5");
_local1 = 0;
while (_local1 < shadowimage.length) {
shadowimage[_local1].removeEventListener(Event.ENTER_FRAME, shadowwaiting);
removeChild(shadowimage[_local1]);
shadowimage[_local1] = null;
_local1++;
};
trace("6");
}
public function ccselectcaptain(_arg1:MouseEvent):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volsfx));
mcchoosecaptain.mc1.gotoAndStop(1);
mcchoosecaptain.mc2.gotoAndStop(1);
mcchoosecaptain.mcframe.visible = true;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
mcchoosecaptain.mcframe.gotoAndStop(_local2);
_arg1.currentTarget.gotoAndStop(2);
selectthiscap = _local2;
mcdone.gotoAndStop(2);
mcdone.addEventListener(MouseEvent.CLICK, ccdone);
}
public function setthisskills(_arg1:int, _arg2:Object){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
soundclick.play(0, 1, new SoundTransform(volsfx));
_local3 = _arg2.parent.name;
_local4 = "";
_local5 = 2;
while (_local5 < _local3.length) {
_local4 = (_local4 + _local3.charAt(_local5));
_local5++;
};
if (_arg1 == 1){
var _local8 = so.data.pts;
var _local9 = slotused;
var _local10 = (_local8[_local9] - 1);
_local8[_local9] = _local10;
_local8 = so.data.skilllevel[slotused];
_local9 = _local4;
_local10 = (_local8[_local9] + 1);
_local8[_local9] = _local10;
} else {
_local6 = true;
trace(((_local4 + " ") + so.data.skilllevel[slotused][_local4]));
if ((((_local4 == 1)) && ((so.data.skilllevel[slotused][_local4] == 1)))){
_local6 = false;
} else {
_local5 = 1;
while (_local5 < templarskillreq[so.data.maintemplar[slotused]].length) {
if (templarskillreq[so.data.maintemplar[slotused]][_local5] == _local4){
trace(((("skill ini : " + _local5) + " butuhe : ") + _local4));
trace(("levele : " + so.data.skilllevel[slotused][_local5]));
if (so.data.skilllevel[slotused][_local5] > 0){
_local6 = false;
break;
};
};
_local5++;
};
};
if (_local6 == true){
_local8 = so.data.pts;
_local9 = slotused;
_local10 = (_local8[_local9] + 1);
_local8[_local9] = _local10;
_local8 = so.data.skilllevel[slotused];
_local9 = _local4;
_local10 = (_local8[_local9] - 1);
_local8[_local9] = _local10;
if (so.data.skilllevel[slotused][_local4] == 0){
_local5 = 0;
while (_local5 < so.data.skillregister[slotused].length) {
trace(((("hm : " + so.data.skillregister[slotused][_local5]) + " ") + _local4));
if (so.data.skillregister[slotused][_local5] == _local4){
so.data.skillregister[slotused][_local5] = -1;
break;
};
_local5++;
};
trace(("jd : " + so.data.skillregister[slotused]));
};
};
};
loadskillovertext(_local4);
if (currentLabel == "ingame"){
loadskilltree(mcskills.mc1);
} else {
if (_arg1 == 1){
if (templarskillpassivebool[so.data.maintemplar[slotused]][_local4] == 0){
_local7 = false;
_local5 = 1;
while (_local5 < so.data.skillregister[slotused].length) {
if (so.data.skillregister[slotused][_local5] == _local4){
_local7 = true;
break;
};
_local5++;
};
if (_local7 == false){
_local5 = 1;
while (_local5 < so.data.skillregister[slotused].length) {
if (so.data.skillregister[slotused][_local5] == -1){
so.data.skillregister[slotused][_local5] = _local4;
break;
};
_local5++;
};
};
};
};
loadmaintemplar(mcmap.mcskills);
};
}
public function exptextout(_arg1:MouseEvent):void{
stage.removeEventListener(Event.ENTER_FRAME, expoverwaiting);
mcexp.x = -500;
mcexp.y = -500;
}
public function arcturretwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:Point;
var _local6:*;
var _local7:*;
if (pausegame == false){
if (_arg1.currentTarget.currentLabel == "done"){
_arg1.currentTarget.reload--;
if (_arg1.currentTarget.reload <= 0){
_arg1.currentTarget.reload = arcturretreload;
_local2 = [];
_local3 = _arg1.currentTarget.range;
_local4 = 0;
while (_local4 < unitimage.length) {
if ((((((unitimage[_local4].die == false)) && ((unitimage[_local4].notallowed == false)))) && (!((unitimage[_local4].side == _arg1.currentTarget.side))))){
if ((((unitimage[_local4].x > (_arg1.currentTarget.x - _local3))) && ((unitimage[_local4].x < (_arg1.currentTarget.x + _local3))))){
if ((((unitimage[_local4].y < (_arg1.currentTarget.y + _local3))) && ((unitimage[_local4].y > (_arg1.currentTarget.y - _local3))))){
_local2[_local2.length] = _local4;
};
};
};
_local4++;
};
if (_local2.length > 0){
soundarcturret2.play(0, 1, new SoundTransform(volsfx));
_local5 = _arg1.currentTarget.mcmissile.localToGlobal(new Point(0, 0));
_local6 = {x:_local5.x, y:_local5.y, breathtipe:15};
createadditionalfx(_local6);
_local7 = randRange(0, (_local2.length - 1));
_local7 = _local2[_local7];
createmissile(fxarcturretgun, 1, _arg1.currentTarget.atk, 1, _arg1.currentTarget.mcmissile, _local7, null);
_local6 = null;
};
};
_arg1.currentTarget.duratione--;
_arg1.currentTarget.mchpbar.mc1.width = ((_arg1.currentTarget.duratione / _arg1.currentTarget.durationetemp) * 22);
if (_arg1.currentTarget.duratione <= 0){
removethisunit(_arg1.currentTarget);
};
};
};
}
public function clickAG2(_arg1:MouseEvent):void{
var _local2:URLRequest;
cekpause();
soundclick.play(0, 1, new SoundTransform(volsfx));
_local2 = new URLRequest("http://armor.ag/MoreGames");
navigateToURL(_local2);
}
public function charselectdone(_arg1:MouseEvent):void{
var _local2:*;
soundselecttemplar.play(0, 1, new SoundTransform(volsfx));
mccharselect.mcdone.visible = false;
mccharselect.mcdesc.visible = false;
so.data.maintemplar[slotused] = charke;
so.data.templar[slotused][charke] = 1;
so.data.skilllevel[slotused][1] = 1;
so.data.skillregister[slotused][1] = 1;
_local2 = mccharselect.getChildByName(("mc" + charke));
_local2.gotoAndPlay("go");
mccharselect.mcframe.visible = false;
btnback.removeEventListener(MouseEvent.CLICK, charselectback);
mccharselect.mc1.removeEventListener(MouseEvent.CLICK, charclick);
mccharselect.mc1.removeEventListener(MouseEvent.MOUSE_OVER, overhero);
mccharselect.mc1.removeEventListener(MouseEvent.MOUSE_OUT, outhero);
mccharselect.mc2.removeEventListener(MouseEvent.CLICK, charclick);
mccharselect.mc2.removeEventListener(MouseEvent.MOUSE_OVER, overhero);
mccharselect.mc2.removeEventListener(MouseEvent.MOUSE_OUT, outhero);
mccharselect.mcdone.removeEventListener(MouseEvent.CLICK, charselectdone);
stage.addEventListener(Event.ENTER_FRAME, charselectwaiting);
}
public function loadtutorial(_arg1:String){
soundtutorial.play(0, 1, new SoundTransform(volsfx));
pausegame = true;
mctutorial.gotoAndStop(_arg1);
mctutorial.visible = true;
mctutorial.buttonMode = true;
mctutorial.removeEventListener(MouseEvent.CLICK, clicktutorial);
mctutorial.addEventListener(MouseEvent.CLICK, clicktutorial);
}
public function soundchannelfxwaiting1(_arg1:Event){
soundchannelfx1.stop();
soundchannelfx1 = null;
}
public function soundchannelfxwaiting4(_arg1:Event){
soundchannelfx4.stop();
soundchannelfx4 = null;
}
public function soundchannelfxwaiting5(_arg1:Event){
soundchannelfx5.stop();
soundchannelfx5 = null;
}
public function soundchannelfxwaiting3(_arg1:Event){
soundchannelfx3.stop();
soundchannelfx3 = null;
}
public function clickGoodyFB(_arg1:MouseEvent):void{
var _local2:URLRequest;
soundclick.play(0, 1, new SoundTransform(volsfx));
_local2 = new URLRequest("https://www.facebook.com/goodygameworks");
navigateToURL(_local2);
}
public function ceknaeklevelagi(){
var _local1:*;
var _local2:*;
var _local3:*;
if ((((armor == true)) && ((AGIconnected == true)))){
_local1 = 0;
_local2 = 1;
while (_local2 <= 2) {
_local3 = 1;
while (_local3 <= 2) {
if (so.data.templarlevel[_local2][_local3] > _local1){
_local1 = so.data.templarlevel[_local2][_local3];
};
_local3++;
};
_local2++;
};
if (_local1 >= 3){
agi.quests.submit({key:"level", progress:1});
} else {
if (_local1 == 2){
agi.quests.submit({key:"level", progress:0.5});
};
};
};
}
public function soundchannelfxwaiting2(_arg1:Event){
soundchannelfx2.stop();
soundchannelfx2 = null;
}
public function loadautoskillregister(){
var _local1:*;
var _local2:*;
var _local3:*;
skillno = [];
skillcd = [];
skillcdtemp = [];
_local1 = 1;
_local2 = 1;
while (_local2 <= 5) {
_local3 = mcui.getChildByName(("mcskill" + _local2));
_local3.mccd.txt1.text = "";
_local3.txt1.text = "";
_local3.mcskill.visible = false;
_local3.mcmask2.height = 1;
_local3.gotoAndStop(2);
_local2++;
};
trace(("he : " + so.data.skillregister[slotused]));
_local2 = 1;
while (_local2 <= 5) {
_local3 = mcui.getChildByName(("mcskill" + _local2));
_local3.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local3.removeEventListener(MouseEvent.MOUSE_OVER, skillovertext2);
_local3.removeEventListener(MouseEvent.MOUSE_OUT, skilloutbutton);
if (so.data.skillregister[slotused][_local2] != -1){
_local3 = mcui.getChildByName(("mcskill" + _local2));
_local3.mccd.txt1.text = "";
_local3.txt1.text = _local2;
changeskillicon(_local3, so.data.skillregister[slotused][_local2]);
skillno[_local2] = so.data.skillregister[slotused][_local2];
skillcd[_local2] = globalcd[skillno[_local1]];
skillcdtemp[_local2] = (templarskillcd[so.data.maintemplar[slotused]][so.data.skillregister[slotused][_local2]] * 25);
if (weaponmastery > 0){
skillcdtemp[_local2] = (skillcdtemp[_local2] - int((skillcdtemp[_local2] * (weaponmastery / 100))));
};
_local3.gotoAndStop(1);
_local3.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local3.addEventListener(MouseEvent.MOUSE_OVER, skillovertext);
_local3.addEventListener(MouseEvent.MOUSE_OUT, skilloutbutton);
};
_local2++;
};
}
public function splash1(_arg1:Event):void{
if (mcag.currentFrame == mcag.totalFrames){
stage.frameRate = 25;
stage.removeEventListener(Event.ENTER_FRAME, splash1);
gotoAndStop("splash2");
};
}
public function mapgolevel(_arg1:MouseEvent):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volsfx));
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
templevel = int((int(((temparea - 1) * (levelmax / 3))) + int(_local2)));
cleanupmap();
saveAGI();
transisi("ingame");
}
public function firespiritwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (pausegame == false){
_local2 = false;
if (_arg1.currentTarget.phase == 1){
_local3 = carimain();
_arg1.currentTarget.x = (_local3.x + _arg1.currentTarget.positione);
_arg1.currentTarget.y = (_local3.y - 50);
_local4 = [];
_local5 = 400;
_local6 = 0;
while (_local6 < unitimage.length) {
if ((((((unitimage[_local6].die == false)) && ((unitimage[_local6].notallowed == false)))) && (!((unitimage[_local6].side == _arg1.currentTarget.side))))){
if ((((unitimage[_local6].x > (_arg1.currentTarget.x - _local5))) && ((unitimage[_local6].x < (_arg1.currentTarget.x + _local5))))){
if ((((unitimage[_local6].y < (_arg1.currentTarget.y + _local5))) && ((unitimage[_local6].y > (_arg1.currentTarget.y - _local5))))){
_local4[_local4.length] = {ke:_local6, distance:Math.abs((((_arg1.currentTarget.x - unitimage[_local6].x) + _arg1.currentTarget.y) - unitimage[_local6].y))};
};
};
};
_local6++;
};
if (_local4.length > 0){
_arg1.currentTarget.phase = 2;
_local4.sortOn("distance");
_arg1.currentTarget.targetx = unitimage[_local4[0].ke].x;
_arg1.currentTarget.targety = (unitimage[_local4[0].ke].y - 10);
_local7 = implementmissilemovement1(_arg1.currentTarget);
_arg1.currentTarget.speedx = _local7[0];
_arg1.currentTarget.speedy = _local7[1];
_arg1.currentTarget.healbool = false;
_arg1.currentTarget.side = 1;
_arg1.currentTarget.targete = _local4[0].ke;
_arg1.currentTarget.targetid = unitimage[_local4[0].ke].id;
_arg1.currentTarget.gotoAndStop("attack");
};
_local4 = null;
} else {
if ((((_arg1.currentTarget.phase == 2)) || ((_arg1.currentTarget.phase == 3)))){
_local8 = false;
if (_arg1.currentTarget.phase == 2){
_local8 = cekvalidunittarget(_arg1.currentTarget);
} else {
_local8 = true;
};
if (_local8 == true){
if ((((((unitimage[_arg1.currentTarget.targete].die == false)) && ((unitimage[_arg1.currentTarget.targete].notallowed == false)))) && ((unitimage[_arg1.currentTarget.targete].id == _arg1.currentTarget.targetid)))){
if ((((_arg1.currentTarget.speedx < 0)) && ((_arg1.currentTarget.directione == "right")))){
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
_arg1.currentTarget.directione = "left";
} else {
if ((((_arg1.currentTarget.speedx > 0)) && ((_arg1.currentTarget.directione == "left")))){
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
_arg1.currentTarget.directione = "right";
};
};
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speedx);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speedy);
if (_arg1.currentTarget.mcbody.hitTestObject(unitimage[_arg1.currentTarget.targete]) == true){
if (_arg1.currentTarget.phase == 3){
_arg1.currentTarget.gotoAndStop(1);
_arg1.currentTarget.phase = 1;
} else {
soundfireexplode.play(0, 1, new SoundTransform(volsfx));
createmissile(fxfireballexplosion, 3, _arg1.currentTarget.atk, 1, unitimage[_arg1.currentTarget.targete], -1, null);
_local2 = true;
};
};
if ((((((((((_local2 == false)) && ((_arg1.currentTarget.x > 750)))) || ((_arg1.currentTarget.x < -50)))) || ((_arg1.currentTarget.y < -50)))) || ((_arg1.currentTarget.y > (batasbawah + 50))))){
_local2 = true;
};
} else {
if (_arg1.currentTarget.phase == 3){
_local2 = true;
} else {
if (_arg1.currentTarget.phase == 2){
_local3 = carimain();
_arg1.currentTarget.targetx = _local3.x;
_arg1.currentTarget.targety = (_local3.y - 10);
_local7 = implementmissilemovement1(_arg1.currentTarget);
_arg1.currentTarget.speedx = _local7[0];
_arg1.currentTarget.speedy = _local7[1];
_arg1.currentTarget.targete = _local3.indexke;
_arg1.currentTarget.targetid = _local3.id;
_arg1.currentTarget.phase = 3;
};
};
};
} else {
_local3 = carimain();
_arg1.currentTarget.targetx = _local3.x;
_arg1.currentTarget.targety = (_local3.y - 10);
_local7 = implementmissilemovement1(_arg1.currentTarget);
_arg1.currentTarget.speedx = _local7[0];
_arg1.currentTarget.speedy = _local7[1];
_arg1.currentTarget.targete = _local3.indexke;
_arg1.currentTarget.targetid = _local3.id;
_arg1.currentTarget.phase = 3;
};
};
};
if (_local2 == true){
removethisfx(_arg1.currentTarget);
firespirit--;
};
};
}
public function newenemyover(_arg1:MouseEvent):void{
mcnewenemy.mc1.gotoAndStop(2);
}
public function scourgenext(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
if (_arg1.currentTarget.currentFrame == 2){
mcmap.mcscourge.page++;
loadscourge();
};
}
public function overhero(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
if (charke != _local2){
_arg1.currentTarget.gotoAndStop("over");
};
}
public function goslot(_arg1:Event):void{
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volsfx));
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
slotused = _local2;
temparea = so.data.areareach[slotused];
cleanupmainmenu();
if (so.data.maintemplar[slotused] == 0){
transisi("charselect");
} else {
transisi("map");
};
}
public function skillinfowaiting(_arg1:Event):void{
mcskilldesc.x = mouseX;
mcskilldesc.y = mouseY;
if (mcskilldesc.y > 292){
mcskilldesc.y = 292;
};
}
public function mainmenucredits(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mccredits.gotoAndPlay(2);
mccredits.btnback.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mccredits.btnback.removeEventListener(MouseEvent.CLICK, creditsback);
mccredits.btnback.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mccredits.btnback.addEventListener(MouseEvent.CLICK, creditsback);
mcmainmenu.btnplay.visible = false;
mcmainmenu.btncredits.visible = false;
mcmainmenu.btnmoregames.visible = false;
}
public function translateenemynomor(_arg1:int){
var _local2:*;
_local2 = 0;
_local2 = enemytranslateno[_arg1];
return (_local2);
}
public function retrieveAGI(){
if (guestbool == false){
agi.storage.user.retrieve({key:"savee", callback:function (_arg1:Object):void{
if (((_arg1.success) && (!((_arg1 == null))))){
trace(("cek AUD SETT : " + _arg1.keys.savee.audiosetting));
so.data.tutorialskill = _arg1.keys.savee.tutorialskill;
so.data.tutorialtile2 = _arg1.keys.savee.tutorialtile2;
so.data.tutorialcaptain = _arg1.keys.savee.tutorialcaptain;
so.data.tutorialmovement = _arg1.keys.savee.tutorialmovement;
so.data.tutorialtile1 = _arg1.keys.savee.tutorialtile1;
so.data.firstanimation = _arg1.keys.savee.firstanimation;
so.data.templar = _arg1.keys.savee.templar;
so.data.templarlevel = _arg1.keys.savee.templarlevel;
so.data.maintemplar = _arg1.keys.savee.maintemplar;
so.data.areareach = _arg1.keys.savee.areareach;
so.data.levelreach = _arg1.keys.savee.levelreach;
so.data.relic = _arg1.keys.savee.relic;
so.data.relicclicked = _arg1.keys.savee.relicclicked;
so.data.pts = _arg1.keys.savee.pts;
so.data.skilllevel = _arg1.keys.savee.skilllevel;
so.data.expe = _arg1.keys.savee.expe;
so.data.skillregister = _arg1.keys.savee.skillregister;
so.data.choosecaptainbool = _arg1.keys.savee.choosecaptainbool;
so.data.choosecaptainke = _arg1.keys.savee.choosecaptainke;
so.data.enemies = _arg1.keys.savee.enemies;
so.data.audiosetting = _arg1.keys.savee.audiosetting;
so.data.gameover = _arg1.keys.savee.gameover;
so.data.chandeliervictim = _arg1.keys.savee.chandeliervictim;
AGIcontinue = true;
};
}});
};
}
public function relictextwaiting(_arg1:Event):void{
mcrelictext.x = mouseX;
mcrelictext.y = mouseY;
}
public function minusclick(_arg1:MouseEvent):void{
setthisskills(2, _arg1.currentTarget);
loadskillslot();
}
public function ingamepauseback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
cekpause();
}
public function cekpause(){
var _local1:*;
mcui.btnarea.visible = true;
if (pausegame == false){
mcpause.btnarmor.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcpause.btnarmor.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcpause.btnarmor.removeEventListener(MouseEvent.CLICK, clickAG);
mcpause.btnarmor.addEventListener(MouseEvent.CLICK, clickAG);
mcpause.btnrestart.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcpause.btnrestart.removeEventListener(MouseEvent.CLICK, ingamepauserestart);
mcpause.btnrestart.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcpause.btnrestart.addEventListener(MouseEvent.CLICK, ingamepauserestart);
mcpause.btnquit.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcpause.btnquit.removeEventListener(MouseEvent.CLICK, ingamepausequit);
mcpause.btnquit.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcpause.btnquit.addEventListener(MouseEvent.CLICK, ingamepausequit);
mcpause.btnback.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcpause.btnback.removeEventListener(MouseEvent.CLICK, ingamepauseback);
mcpause.btnback.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcpause.btnback.addEventListener(MouseEvent.CLICK, ingamepauseback);
pausegame = true;
mcpause.gotoAndStop(2);
} else {
cleanupskills();
pausegame = false;
mcpause.gotoAndStop(1);
_local1 = 0;
while (_local1 < missileimage.length) {
if ((missileimage[_local1] is fxchandelier)){
if (missileimage[_local1].currentLabel != "wait"){
missileimage[_local1].gotoAndPlay(missileimage[_local1].currentFrame);
};
} else {
missileimage[_local1].gotoAndPlay(missileimage[_local1].currentFrame);
};
_local1++;
};
_local1 = 0;
while (_local1 < unitimage.length) {
if (unitimage[_local1].wall == false){
if (unitimage[_local1].mc1 != null){
if ((((((((unitimage[_local1].die == false)) && ((unitimage[_local1].side == 1)))) || ((((((unitimage[_local1].die == true)) && (!((unitimage[_local1].mc1.currentLabel == "donedie"))))) && ((unitimage[_local1].side == 0)))))) || ((((((unitimage[_local1].die == false)) && (!((unitimage[_local1].mc1.currentLabel == "doneattack"))))) && ((unitimage[_local1].side == 0)))))){
unitimage[_local1].mc1.gotoAndPlay(unitimage[_local1].mc1.currentFrame);
};
};
};
_local1++;
};
};
}
public function scalethiscaptain(_arg1:Object){
_arg1.mcdeath.scaleX = (_arg1.mcdeath.scaleX * -1);
_arg1.mclevelup.scaleX = (_arg1.mclevelup.scaleX * -1);
}
public function summonenemy(_arg1:int, _arg2:Object, _arg3:int){
var _local4:*;
var _local5:*;
var _local6:*;
if (_arg1 == 14){
_local4 = 0;
while (_local4 < 3) {
callenemy(_arg1, _arg2, 0, _local4);
_local4++;
};
} else {
if ((((((templevel == 1)) && ((so.data.tutorialtile1[slotused] == false)))) && ((waveindex == (levelenemy[1].length - 1))))){
_local5 = [[507, 203], [560, 236], [460, 236], [507, 261]];
_local4 = 0;
while (_local4 < 4) {
_local6 = {x:_local5[_local4][0], y:_local5[_local4][1]};
callenemy(_arg1, _local6, 0, _local4);
_local6 = null;
_local4++;
};
_local4 = 0;
while (_local4 < unitimage.length) {
if (unitimage[_local4].tile == true){
unitimage[_local4].visible = true;
break;
};
_local4++;
};
so.data.tutorialtile1[slotused] = true;
loadtutorial("tile1");
} else {
callenemy(_arg1, _arg2, _arg3, 0);
};
};
}
public function loadskilltree(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local2 = so.data.maintemplar[slotused];
if (currentLabel == "ingame"){
_arg1.btnreset.visible = false;
} else {
_arg1.btnreset.visible = true;
};
_arg1.btnreset.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_arg1.btnreset.removeEventListener(MouseEvent.CLICK, mapskillreset);
_arg1.btnreset.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_arg1.btnreset.addEventListener(MouseEvent.CLICK, mapskillreset);
_arg1.mctree1.visible = false;
_arg1.mctree2.visible = false;
_arg1.txtpts.text = so.data.pts[slotused];
_local3 = _arg1.getChildByName(("mctree" + _local2));
_local3.visible = true;
_local4 = 1;
while (_local4 < templarskillname[_local2].length) {
_local6 = _local3.getChildByName(("mc" + _local4));
_local6.mc1.mc1.gotoAndStop(_local4);
_local6.mc1.mc2.gotoAndStop(_local4);
_local6.mc1.gotoAndStop(1);
_local6.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local6.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local6.removeEventListener(MouseEvent.MOUSE_OVER, skilloverbutton);
_local6.addEventListener(MouseEvent.MOUSE_OVER, skilloverbutton);
_local6.removeEventListener(MouseEvent.MOUSE_OVER, skillovertext);
_local6.addEventListener(MouseEvent.MOUSE_OVER, skillovertext);
_local6.removeEventListener(MouseEvent.MOUSE_OUT, skilloutbutton);
_local6.addEventListener(MouseEvent.MOUSE_OUT, skilloutbutton);
_local6.removeEventListener(MouseEvent.MOUSE_DOWN, skilldragdown);
if (so.data.skilllevel[slotused][_local4] > 0){
if (currentLabel == "map"){
if (mcui.visible == true){
_local6.addEventListener(MouseEvent.MOUSE_DOWN, skilldragdown);
};
} else {
_local6.addEventListener(MouseEvent.MOUSE_DOWN, skilldragdown);
};
};
_local6.buttonMode = true;
if (so.data.templarlevel[slotused][_local2] >= templarlevelreq[_local2][_local4]){
_local6.gotoAndStop(2);
} else {
_local6.gotoAndStop(1);
};
if (templarskillreq[_local2][_local4] != 0){
_local7 = _local3.getChildByName(("mcskillline" + _local4));
if (so.data.skilllevel[slotused][templarskillreq[_local2][_local4]] > 0){
_local7.gotoAndStop(2);
} else {
_local7.gotoAndStop(1);
};
};
_local6.txt1.text = ((so.data.skilllevel[slotused][_local4] + "/") + templarskillmaxlevel[_local2][_local4]);
_local6.btnminus.visible = false;
_local6.btnplus.visible = false;
_local6.btnminus.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local6.btnminus.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local6.btnminus.removeEventListener(MouseEvent.CLICK, minusclick);
_local6.btnplus.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local6.btnplus.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local6.btnplus.removeEventListener(MouseEvent.CLICK, plusclick);
if (so.data.templarlevel[slotused][_local2] >= templarlevelreq[_local2][_local4]){
if ((((so.data.skilllevel[slotused][_local4] > 0)) && (!((currentLabel == "ingame"))))){
_local6.btnminus.visible = true;
_local6.btnminus.addEventListener(MouseEvent.CLICK, minusclick);
};
if (so.data.skilllevel[slotused][_local4] < templarskillmaxlevel[_local2][_local4]){
if (so.data.pts[slotused] > 0){
if (templarskillreq[_local2][_local4] == 0){
_local6.btnplus.visible = true;
_local6.btnplus.addEventListener(MouseEvent.CLICK, plusclick);
} else {
if (so.data.skilllevel[slotused][templarskillreq[_local2][_local4]] > 0){
_local6.btnplus.visible = true;
_local6.btnplus.addEventListener(MouseEvent.CLICK, plusclick);
};
};
};
};
};
_local4++;
};
_local5 = 0;
_local4 = 1;
while (_local4 < templarskillline[_local2].length) {
_local8 = _local3.getChildByName(("mcnumba" + _local4));
_local8.mc1.txt1.text = templarskillline[_local2][_local4];
if (templarskillline[_local2][_local4] > so.data.templarlevel[slotused][_local2]){
_local8.gotoAndStop(1);
} else {
if (so.data.templarlevel[slotused][_local2] >= templarskillline[_local2][_local4]){
_local8.gotoAndStop(2);
_local5 = _local4;
};
};
_local4++;
};
_local3.mcline.gotoAndStop(_local5);
}
public function createchain(){
var _local1:*;
var _local2:*;
_local1 = [161, 318];
_local2 = 0;
while (_local2 < 2) {
unitimage[unitimage.length] = new (fxchain);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = 41;
unitimage[(unitimage.length - 1)].y = _local1[_local2];
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].side = 1;
_local2++;
};
}
public function ingamepauserestart(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
cleanupingame();
cleanupspray();
transisi("reloader");
}
public function waitsplash2(_arg1:Event):void{
if (mcsplash2.currentFrame == mcsplash2.totalFrames){
stage.removeEventListener(Event.ENTER_FRAME, waitsplash2);
gotoAndStop("main menu");
};
}
public function createillusion(_arg1:Object){
unitimage[unitimage.length] = new (hero4);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = (_arg1.x + randRange(50, 100));
unitimage[(unitimage.length - 1)].y = (_arg1.y + randRange(-100, 100));
if (unitimage[(unitimage.length - 1)].x > 700){
unitimage[(unitimage.length - 1)].x = 650;
} else {
if (unitimage[(unitimage.length - 1)].x < 0){
unitimage[(unitimage.length - 1)].x = 50;
};
};
if (unitimage[(unitimage.length - 1)].y > batasbawah){
unitimage[(unitimage.length - 1)].y = batasbawah;
} else {
if (unitimage[(unitimage.length - 1)].y < batasatas){
unitimage[(unitimage.length - 1)].y = batasatas;
};
};
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].captain = false;
unitimage[(unitimage.length - 1)].nomor = _arg1.nomor;
unitimage[(unitimage.length - 1)].hp = (_arg1.hptemp / illusionpowa);
unitimage[(unitimage.length - 1)].hptemp = unitimage[(unitimage.length - 1)].hp;
unitimage[(unitimage.length - 1)].atk = (_arg1.atktemp / illusionpowa);
unitimage[(unitimage.length - 1)].atktemp = unitimage[(unitimage.length - 1)].atk;
unitimage[(unitimage.length - 1)].ms = _arg1.mstemp;
unitimage[(unitimage.length - 1)].mstemp = unitimage[(unitimage.length - 1)].ms;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].main = false;
unitimage[(unitimage.length - 1)].armor = (_arg1.armor / illusionpowa);
unitimage[(unitimage.length - 1)].directione = "right";
unitimage[(unitimage.length - 1)].range = _arg1.range;
unitimage[(unitimage.length - 1)].vision = _arg1.vision;
unitimage[(unitimage.length - 1)].visiontemp = unitimage[(unitimage.length - 1)].vision;
unitimage[(unitimage.length - 1)].reload = 0;
unitimage[(unitimage.length - 1)].reloadtemp = _arg1.reloadtemp;
unitimage[(unitimage.length - 1)].transform.colorTransform = purplecolor;
unitimage[(unitimage.length - 1)].blendMode = "hardlight";
unitimage[(unitimage.length - 1)].illusionduration = (illusionduration * 25);
unitimage[(unitimage.length - 1)].stat = "summon";
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("summon");
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, unitwaiting);
unitimage[(unitimage.length - 1)].addEventListener(MouseEvent.CLICK, clikGF);
}
public function clickAG(_arg1:MouseEvent):void{
var _local2:URLRequest;
soundclick.play(0, 1, new SoundTransform(volsfx));
_local2 = new URLRequest("http://armor.ag/MoreGames");
navigateToURL(_local2);
}
public function charselectback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
transisi("main menu");
}
public function cleanupAGI(){
agi.storage.user.erase({key:"savee", callback:function (_arg1:Object):void{
if (_arg1.success){
} else {
trace(_arg1.error);
};
}});
}
public function loadstory(){
mcstory1.mchero.gotoAndStop(so.data.maintemplar[slotused]);
mcstory1.phase = 1;
stage.addEventListener(Event.ENTER_FRAME, story1waiting);
}
public function tilewaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (pausegame == false){
_local2 = false;
_local3 = carimain();
if ((((_local3.mcfoot.hitTestObject(_arg1.currentTarget.mcbody) == true)) && ((_arg1.currentTarget.visible == true)))){
if (_arg1.currentTarget.mcsign.currentFrame == 1){
soundtile.play(0, 1, new SoundTransform(volsfx));
};
_arg1.currentTarget.mcsign.gotoAndStop(2);
if (_arg1.currentTarget.mc1 != null){
_local2 = true;
_arg1.currentTarget.mc1.gotoAndStop(2);
};
} else {
_arg1.currentTarget.mcsign.gotoAndStop(1);
if (_arg1.currentTarget.mc1 != null){
_arg1.currentTarget.mc1.gotoAndStop(1);
};
if ((((_local3.oninvulnerable == true)) && ((_arg1.currentTarget.tipe == 2)))){
trace("RELEASE");
_local3.oninvulnerable = false;
_local3.invulnerable = false;
_local3.notallowed = false;
_local3.gotoAndStop(1);
_local4 = 0;
while (_local4 < fximage.length) {
if ((fximage[_local4] is fxpanellight)){
removethisfx(fximage[_local4]);
break;
};
_local4++;
};
};
};
if (_arg1.currentTarget.tipe == 1){
if ((((temparea == 2)) && (!((mcbg.mcdrawbridge.currentFrame == 1))))){
_local4 = 0;
while (_local4 < unitimage.length) {
if ((((((((((((unitimage[_local4].die == false)) && ((unitimage[_local4].tile == false)))) && ((unitimage[_local4].boss == false)))) && (!((unitimage[_local4].stat == "falling"))))) && ((unitimage[_local4].flymode == false)))) && ((unitimage[_local4].notallowed == false)))){
if (unitimage[_local4].mc1.mcbody.hitTestObject(mcbg.mcdrawbridge.mcbody) == true){
so.data.chandeliervictim++;
agi.quests.submit({key:"trap", progress:(so.data.chandeliervictim / 20)});
unitimage[_local4].notallowed = true;
unitimage[_local4].frozetime = -1;
unitimage[_local4].stunduration = -1;
unitimage[_local4].mc1.gotoAndPlay("idle");
unitimage[_local4].stat = "falling";
};
};
_local4++;
};
};
};
if (_arg1.currentTarget.cd >= -1){
_arg1.currentTarget.mcsign.mc1.gotoAndStop((tilespecialname[_arg1.currentTarget.tipe] + "2"));
if ((((((((((temparea == 3)) && ((_arg1.currentTarget.tipe == 1)))) && ((_local3.oninvulnerable == false)))) || (!((temparea == 3))))) || ((((temparea == 3)) && ((_arg1.currentTarget.tipe == 2)))))){
_arg1.currentTarget.cd--;
};
_arg1.currentTarget.gotoAndStop(2);
if ((((((_arg1.currentTarget.cd == -1)) && ((temparea == 1)))) && ((_arg1.currentTarget.tipe == 1)))){
_local5 = {x:507, y:196};
createmissile(fxchandelier, 3, 75, 1, _local5, -1, null);
_local5 = null;
};
} else {
_arg1.currentTarget.mcsign.mc1.gotoAndStop((tilespecialname[_arg1.currentTarget.tipe] + "1"));
_arg1.currentTarget.gotoAndStop(1);
if (_local2 == true){
if (_arg1.currentTarget.tipe == 1){
if (temparea == 1){
_local4 = 0;
while (_local4 < missileimage.length) {
if ((missileimage[_local4] is fxchandelier)){
soundchandelier.play(0, 1, new SoundTransform(volsfx));
missileimage[_local4].gotoAndPlay("drop");
break;
};
_local4++;
};
} else {
if (temparea == 2){
sounddrawbridge.play(0, 1, new SoundTransform(volsfx));
mcbg.mcdrawbridge.gotoAndPlay(2);
} else {
if (temparea == 3){
soundchandelier.play(0, 1, new SoundTransform(volsfx));
activatecatapult();
};
};
};
_arg1.currentTarget.cd = _arg1.currentTarget.cdtemp;
} else {
if (_arg1.currentTarget.tipe == 2){
if (_local3.oninvulnerable == false){
trace("PRESSED");
fximage[fximage.length] = new (fxpanellight);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].x = _arg1.currentTarget.x;
fximage[(fximage.length - 1)].y = _arg1.currentTarget.y;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
_local3.oninvulnerable = true;
_local3.invulnerable = true;
_local3.notallowed = true;
};
};
};
};
};
};
}
public function cleanupskills(){
var _local1:*;
var _local2:*;
stage.removeEventListener(Event.ENTER_FRAME, skillinfowaiting);
mcskilldesc.x = -200;
mcskilldesc.y = -200;
_local1 = 1;
while (_local1 <= 5) {
_local2 = mcui.getChildByName(("mcskill" + _local1));
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, skilldragdown2);
_local1++;
};
mcui.mcdarken.visible = false;
pausegame = false;
mcskills.gotoAndStop(1);
if (so.data.pts[slotused] <= 0){
mcui.btnlevelup.gotoAndStop(1);
};
cekmainpassive();
}
public function skilldragdown2(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
trace("ya");
_local2 = _arg1.currentTarget.name;
_local3 = "";
_local4 = 7;
while (_local4 < _local2.length) {
_local3 = (_local3 + _local2.charAt(_local4));
_local4++;
};
onskilldrag = true;
stage.addEventListener(MouseEvent.MOUSE_UP, skilldragup);
if (currentLabel == "map"){
stage.addEventListener(Event.ENTER_FRAME, skilldragwaiting);
};
mcmouse.visible = true;
mcmouse.gotoAndStop(2);
mcmouse.mc1.visible = false;
mcmouse.mc2.visible = false;
mcmouse.skillke = so.data.skillregister[slotused][_local3];
mcmouse.slot = _local3;
_local5 = mcmouse.getChildByName(("mc" + so.data.maintemplar[slotused]));
_local5.visible = true;
_local5.gotoAndStop(mcmouse.skillke);
}
public function loadslot(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 1;
while (_local1 <= 2) {
_local2 = mcmainmenu.mcoption.getChildByName(("mcslot" + _local1));
_local3 = mcmainmenu.mcoption.getChildByName(("btndelete" + _local1));
_local2.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local2.removeEventListener(MouseEvent.CLICK, goslot);
_local2.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local2.addEventListener(MouseEvent.CLICK, goslot);
_local2.mc1.mouseChildren = false;
_local2.txt1.mouseEnabled = false;
_local2.mcempty.mouseChildren = false;
_local2.mc1.mouseEnabled = false;
_local2.mcempty.mouseEnabled = false;
trace(("HM : " + so.data.maintemplar[_local1]));
if (so.data.maintemplar[_local1] == 0){
_local2.mc1.visible = false;
_local2.txt1.text = "";
_local2.mcempty.visible = true;
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
_local2.mc1.gotoAndStop(so.data.maintemplar[_local1]);
if (so.data.templarlevel[_local1][so.data.maintemplar[_local1]] > evocap){
_local2.mc1.gotoAndStop(int((int(_local2.mc1.currentFrame) + int(2))));
};
_local2.txt1.text = (int(((so.data.levelreach[_local1] / levelmax) * 100)) + "%");
_local2.mc1.visible = true;
_local2.txt1.text = "";
_local2.mcempty.visible = false;
};
_local2 = mcmainmenu.mcoption.getChildByName(("btndelete" + _local1));
_local2.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local2.removeEventListener(MouseEvent.CLICK, deleteslot);
_local2.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local2.addEventListener(MouseEvent.CLICK, deleteslot);
_local1++;
};
}
public function relictextover(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
if (so.data.relic[slotused][_local2] == 0){
mcrelictext.gotoAndStop(1);
mcrelictext.txt1.text = "LOCKED";
mcrelictext.txt1.y = 7;
} else {
mcrelictext.gotoAndStop(2);
mcrelictext.txt1.text = relicdesc[_local2];
_local3 = relicdesc[_local2];
_local4 = mcrelictext.txt1;
_local4.text = "asd";
_local5 = _local4.textHeight;
_local6 = 35;
_local4.text = _local3;
if (_local4.textHeight <= _local5){
_local4.y = _local6;
} else {
_local7 = 1;
while (_local7 <= 5) {
if (_local4.textHeight <= int(((21 + (_local7 * _local5)) + 2))){
_local4.y = (_local6 - (_local7 * 5));
break;
};
_local7++;
};
};
};
mcrelictext.visible = true;
stage.addEventListener(Event.ENTER_FRAME, relictextwaiting);
}
public function createenemy(_arg1:int, _arg2:Object, _arg3:int){
var _local4:*;
_local4 = translateenemynomor(_arg1);
if (so.data.enemies[slotused][_local4] == 0){
soundtutorial.play(0, 1, new SoundTransform(volsfx));
so.data.enemies[slotused][_local4] = 1;
createpoienemy(_local4);
};
summonenemy(_arg1, _arg2, _arg3);
}
public function blobwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (pausegame == false){
_local2 = false;
_local3 = false;
_arg1.currentTarget.duratione--;
if (_arg1.currentTarget.duratione <= 0){
_local3 = true;
};
_local4 = 0;
while (_local4 < unitimage.length) {
if (((((!((unitimage[_local4].side == _arg1.currentTarget.side))) && ((unitimage[_local4].die == false)))) && ((unitimage[_local4].notallowed == false)))){
if (unitimage[_local4].mc1.mcbody.hitTestObject(_arg1.currentTarget.mcbody) == true){
_local3 = true;
};
};
_local4++;
};
if (_local3 == true){
_local4 = 0;
while (_local4 < unitimage.length) {
if (((((!((unitimage[_local4].side == _arg1.currentTarget.side))) && ((unitimage[_local4].die == false)))) && ((unitimage[_local4].notallowed == false)))){
if (unitimage[_local4].mc1.mcbody.hitTestObject(_arg1.currentTarget.mcbody) == true){
_arg1.currentTarget.targete = _local4;
_arg1.currentTarget.targetid = unitimage[_local4].id;
cekhitenemy(_arg1.currentTarget);
};
};
_local4++;
};
_local5 = [soundsplat1, soundsplat2, soundsplat3, soundsplat4, soundsplat5, soundsplat6];
_local6 = randRange(0, (_local5.length - 1));
_local5[_local6].play(0, 1, new SoundTransform(volsfx));
_local7 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:18};
createadditionalfx(_local7);
_local7 = null;
removethisunit(_arg1.currentTarget);
};
};
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
public function relictextout(_arg1:MouseEvent):void{
mcrelictext.visible = false;
stage.removeEventListener(Event.ENTER_FRAME, relictextwaiting);
}
public function cleanupmap(){
soundchannel1.stop();
soundchannel1 = null;
stage.removeEventListener(Event.ENTER_FRAME, skillinfowaiting);
stage.removeEventListener(Event.ENTER_FRAME, expoverwaiting);
stage.removeEventListener(Event.ENTER_FRAME, relictextwaiting);
stage.removeEventListener(Event.ENTER_FRAME, skilldragwaiting);
}
public function resetthisstat(_arg1:int){
if (unitimage[_arg1].mcgoo != null){
unitimage[_arg1].mcgoo.gotoAndStop(1);
};
unitimage[_arg1].entangle = false;
unitimage[_arg1].armormin = 0;
unitimage[_arg1].tangledduration = -1;
unitimage[_arg1].blindchance = -1;
unitimage[_arg1].blindduration = -1;
unitimage[_arg1].alpha = 1;
unitimage[_arg1].dodgechance = 0;
unitimage[_arg1].blurduration = -1;
unitimage[_arg1].onshieldbash = false;
unitimage[_arg1].darkarmorduration = -1;
unitimage[_arg1].stunduration = -1;
unitimage[_arg1].toxicdamage = -1;
unitimage[_arg1].webduration = -1;
unitimage[_arg1].slowtime = -1;
unitimage[_arg1].slowms = -1;
unitimage[_arg1].burntime = -1;
unitimage[_arg1].burndamage = -1;
unitimage[_arg1].burntick = -1;
unitimage[_arg1].frozetime = 0;
unitimage[_arg1].slowtime = -1;
unitimage[_arg1].slowms = -1;
unitimage[_arg1].burntime = -1;
unitimage[_arg1].burndamage = -1;
unitimage[_arg1].burntick = -1;
unitimage[_arg1].webduration = -1;
unitimage[_arg1].toxictime = -1;
unitimage[_arg1].toxicdamage = -1;
unitimage[_arg1].toxictick = -1;
unitimage[_arg1].stunduration = -1;
unitimage[_arg1].dodgechance = -1;
unitimage[_arg1].blurduration = -1;
unitimage[_arg1].gooduration = -1;
}
public function mapback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
cleanupmap();
transisi("main menu");
}
public function captainareadragwaiting(_arg1:Event):void{
var _local2:Point;
var _local3:*;
_local2 = new Point(mouseX, mouseY);
_local2 = mcui.globalToLocal(_local2);
mcui.btnarea.x = _local2.x;
_local3 = false;
if (mouseY > 388){
_local3 = true;
};
if (mouseY < 343){
_local3 = true;
};
if (mcui.btnarea.x > 242){
_local3 = true;
mcui.btnarea.x = 242;
} else {
if (mcui.btnarea.x < -153){
_local3 = true;
mcui.btnarea.x = -152;
};
};
mcui.mcline.visible = true;
mcui.mcline.x = mcui.btnarea.x;
if (_local3 == true){
resetarea();
};
}
public function maprelicclick(_arg1:MouseEvent):void{
var _local2:*;
soundcollectrelic.play(0, 1, new SoundTransform(volsfx));
_arg1.currentTarget.gotoAndPlay(2);
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
so.data.relicclicked[slotused][_local2] = 1;
trace(("KLIK KE : " + _local2));
if ((((so.data.relicclicked[slotused][1] == 1)) && ((so.data.relicclicked[slotused][4] == 1)))){
so.data.relic[slotused][1] = 1;
};
if (so.data.relicclicked[slotused][2] == 1){
so.data.relic[slotused][2] = 1;
agi.quests.submit({key:"king", progress:1});
};
if (so.data.relicclicked[slotused][3] == 1){
so.data.relic[slotused][3] = 1;
};
if (currentLabel == "map"){
loadrelicstatus();
};
}
public function createtinkturret(_arg1:Object){
var _local2:*;
var _local3:*;
unitimage[unitimage.length] = new (summon5);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = randRange((bataswall + 50), 600);
unitimage[(unitimage.length - 1)].y = randRange((batasatas + 50), (batasbawah - 50));
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].reload = tinkturretreload;
unitimage[(unitimage.length - 1)].range = tinkturretrange;
_local2 = (so.data.templarlevel[slotused][5] - captainskillreq[1]);
_local3 = (captainskillnumba[5][1][1][1] + (captainskillnumbaincrease[5][1][1] * _local2));
unitimage[(unitimage.length - 1)].atk = _local3;
unitimage[(unitimage.length - 1)].duratione = (arcturretduration * 25);
unitimage[(unitimage.length - 1)].durationetemp = unitimage[(unitimage.length - 1)].duratione;
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, tinkturretwaiting);
}
function frame1(){
magicalunicornspawned = 0;
stop();
txtlog2.text = "1";
evocap = 30;
purplecolor = new Color();
purplecolor.setTint(0x990099, 0.5);
so = SharedObject.getLocal("aot");
so.flush(100000);
trace(("HM : " + so.data.audiosetting));
textgold = new TextFormat();
textgold.color = 0xFFFF00;
slotused = 0;
levelmax = 21;
temparea = 0;
templevel = 0;
volbgm = 1;
volsfx = 1;
newcaptain = false;
expperlevel = 35;
captainexpperlevel = 250;
armor = false;
AGIconnected = false;
AGIcontinue = false;
guestbool = true;
connected = false;
agiURL = "http://agi.armorgames.com/assets/agi/AGI2.swf";
Security.allowDomain("agi.armorgames.com");
mcon.gotoAndStop(2);
cekarmorornot();
txtlog2.text = "2";
if (armor == true){
loader = new Loader();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{
});
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function (_arg1:Event):void{
var e = _arg1;
agi = e.currentTarget.content;
agi.connect({stage:stage, apiKey:"34A76B90-831E-451E-8BEB-B814F2B5FCDF", callback:function (_arg1:Object):void{
if (_arg1.success){
AGIconnected = true;
loadAGI();
} else {
trace(_arg1.error);
};
}});
});
loader.load(new URLRequest(agiURL));
} else {
if (so.size == 0){
createnewso();
};
cekpatch();
volbgm = so.data.audiosetting[0];
volsfx = so.data.audiosetting[1];
};
txtlog2.text = "3";
if (so.size == 0){
createnewso();
};
btncleanup.addEventListener(MouseEvent.CLICK, cleanup);
txtlog2.text = "4";
cekpatch();
txtlog2.text = "5";
customContextMenu = new ContextMenu();
customContextMenu.hideBuiltInItems();
contextmenu = new ContextMenuItem("Goody Gameworks");
contextmenu.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, clickGoody);
customContextMenu.customItems.push(contextmenu);
contextMenu = customContextMenu;
btnplay.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
btnplay.addEventListener(MouseEvent.MOUSE_OVER, oversound);
soundclick = new clicksound();
btnplay.addEventListener(MouseEvent.CLICK, playgame);
txtlog2.text = "6";
this.addEventListener(Event.ENTER_FRAME, loading);
btnarmor.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
btnarmor.addEventListener(MouseEvent.MOUSE_OVER, oversound);
btnarmor.removeEventListener(MouseEvent.CLICK, clickAG);
btnarmor.addEventListener(MouseEvent.CLICK, clickAG);
btngoody.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
btngoody.addEventListener(MouseEvent.MOUSE_OVER, oversound);
btngoody.removeEventListener(MouseEvent.CLICK, clickGoodyFB);
btngoody.addEventListener(MouseEvent.CLICK, clickGoodyFB);
}
function frame2(){
soundcollectrelic = new collectrelicsound();
sounddelete = new deletesound();
soundfirecamp = new firecampsound();
soundselecttemplar = new selecttemplarsound();
soundtemplarappear = new templarappearsound();
soundreset = new resetsound();
soundstep = new stepsound();
soundpop1 = new popsound1();
soundpop2 = new popsound2();
soundpop3 = new popsound3();
soundstep2 = new stepsound2();
soundstep3 = new stepsound3();
soundtutorial = new tutorialsound();
soundfireexplode = new fireexplodesound();
soundfireball = new fireballsound();
soundspark = new sparksound();
soundiceflake = new iceflakesound();
soundfireball2 = new fireballsound2();
soundtundrastomp = new tundrastompsound();
soundchainlighting1 = new chainlightingsound1();
soundchainlighting2 = new chainlightingsound2();
soundthunder2 = new thundersound2();
soundlightingball = new lightingballsound();
soundblizzard1 = new blizzardsound1();
soundblizzard2 = new blizzardsound2();
soundmeteor2 = new meteorsound2();
soundmeteor1 = new meteorsound1();
soundthunder = new thundersound();
soundicemine3 = new iceminesound3();
soundicemine2 = new iceminesound2();
soundicemine = new iceminesound();
soundicecrack1 = new icecracksound1();
soundicecrack2 = new icecracksound2();
soundwind = new windsound();
soundmeteorburn = new meteorburnsound();
soundtundrabeast2 = new tundrabeastsound2();
soundlevelup = new levelupsound();
soundarcturret2 = new arcturretsound2();
soundarcturret = new arcturretsound();
sounddragoncannon = new dragoncannonsound();
soundnapalm2 = new napalmsound2();
soundnapalm = new napalmsound1();
soundriflehit1 = new riflehitsound1();
soundriflehit2 = new riflehitsound2();
soundgun1 = new gunsound();
soundgun2 = new gunsound2();
soundgun3 = new gunsound3();
soundgun4 = new gunsound4();
soundshotgun = new shotgunsound();
soundspidercannon = new spidercannonsound();
soundstriker1 = new strikersound1();
soundstriker2 = new strikersound2();
soundstriker3 = new strikersound3();
soundwyvernbullet = new wyvernbulletsound();
soundsplat1 = new splatsound1();
soundsplat2 = new splatsound2();
soundsplat3 = new splatsound3();
soundsplat4 = new splatsound4();
soundsplat5 = new splatsound5();
soundsplat6 = new splatsound6();
soundshielddestroyed = new shielddestroyedsound();
soundskeldie1 = new skeldiesound1();
soundskeldie2 = new skeldiesound2();
soundskeldie3 = new skeldiesound3();
soundskeldie4 = new skeldiesound4();
soundskeldie5 = new skeldiesound5();
soundghostdie = new ghostdiesound();
soundtowerdestroyed = new towerdestroyedsound();
sounddemondie1 = new demondiesound1();
sounddemondie2 = new demondiesound2();
sounddemondie3 = new demondiesound3();
sounddemondie4 = new demondiesound4();
soundbossdead1 = new bossdeadsound1();
soundbossdead2 = new bossdeadsound2();
soundflopshake = new flopshakesound();
soundflopjump = new flopjumpsound();
soundenemyspit1 = new enemyspitsound();
soundenemyspit2 = new enemyspitsound2();
soundflopspit = new flopspitsound();
soundflopboing = new flopboingsound();
soundincoming = new incomingsound();
soundbanemissile1 = new banemissilesound1();
soundbanemissile2 = new banemissilesound2();
soundhelldemonblast1 = new helldemonblastsound1();
soundhelldemonblast2 = new helldemonblastsound2();
soundtele = new telesound();
soundgulp = new gulpsound();
soundshield = new shieldsound();
soundhellclaw = new hellclawsound();
soundsword1 = new swordsound1();
soundsword2 = new swordsound2();
soundhit1 = new hitsound1();
soundhit2 = new hitsound2();
soundtemplarrange = new templarrangesound();
sounddeathstrike = new deathstrikesound();
soundillusion = new illusionsound();
soundinvulnerable = new invulnerablesound();
soundcreatetink1 = new createtinksound1();
soundcreatetink2 = new createtinksound2();
soundheal = new healsound();
soundtink101 = new tink101sound();
soundholywave = new holywavesound();
soundressurection = new ressurectionsound();
soundcurse = new cursesound();
sounddeathwave = new deathwavesound();
soundblind = new blindsound();
soundentangle = new entanglesound();
soundlevelcomplete = new levelcompletesound();
soundlose = new losesound();
soundscrolslot1 = new scrollslotsound1();
soundscrolslot2 = new scrollslotsound2();
soundmaintemplarselect = new maintemplarselectsound();
soundcane = new canesound();
soundtile = new tilesound();
sounddrawbridge = new drawbridgesound();
soundchandelier = new chandeliersound();
soundtemplardie = new templardiesound();
soundheartbeat = new heartbeatsound();
soundunicorn = new unicornsound();
soundevo = new evosound();
soundmainmenu = new mainmenusound();
soundbattle = new battlesound();
}
public function newenemyout(_arg1:MouseEvent):void{
mcnewenemy.mc1.gotoAndStop(1);
}
function frame4(){
stop();
mcsplash2.gotoAndStop(1);
mcsplash2.gotoAndPlay(2);
mcsplash2.buttonMode = true;
mcsplash2.addEventListener(MouseEvent.CLICK, clickGoody);
stage.addEventListener(Event.ENTER_FRAME, waitsplash2);
}
function frame5(){
stop();
loadAGI2();
soundchannel1 = soundmainmenu.play(0, 999, new SoundTransform(volbgm));
loadaudiobuttonsetting();
captainskillcd = [undefined, [], [], [undefined, 10, 15, 30], [undefined, 6, 25, 8], [undefined, 8, 30, 40], [undefined, 5, 20, 30], [undefined, 8, 20, 5], [undefined, 7, 10, 30]];
captainskillname = [undefined, [], [], [undefined, "Dark Armor", "Shield Bash", "Dark Breath"], [undefined, "Blur", "Shadow Image", "Death Strike"], [undefined, "Tink Turret", "Tink Engineer", "Tink Wave 101"], [undefined, "Recover", "Holy Wave", "One Soul"], [undefined, "Summon Blob", "Death Wave", "Curse"], [undefined, "Entangle", "Sparkling Dust", "Enchanting Wind"]];
captainskillnumba = [undefined, [], [], [undefined, [undefined, [undefined, 50], [undefined, 5]], [undefined, [undefined, 2]], [undefined, [undefined, 5]]], [undefined, [undefined, [undefined, 4]], [undefined, [undefined, 1]], [undefined, [undefined, 80]]], [undefined, [undefined, [undefined, 3]], [undefined, []], [undefined, []]], [undefined, [undefined, [undefined, 40]], [undefined, [undefined, 25]], [undefined, []]], [undefined, [undefined, [undefined, 10]], [undefined, [undefined, 25]], [undefined, [undefined, 50]]], [undefined, [undefined, [undefined, 5]], [undefined, []], [undefined, [undefined, 150]]]];
captainskillnumbaincrease = [undefined, [], [], [undefined, [undefined, 2, 0], [undefined, 0.5], [undefined, 0]], [undefined, [undefined, 0.1], [undefined, 0.25], [undefined, 0]], [undefined, [undefined, 0.3], [undefined, 0.5], []], [undefined, [undefined, 3], [undefined, 6], [0]], [undefined, [undefined, 5.8], [undefined, 6], [undefined, 0]], [undefined, [undefined, 0.4], [undefined], [undefined, 0]]];
captainskilldesc = [undefined, [], [], [undefined, "Reduce incoming damage by @% for @ seconds.", "Sprint and bash enemy with shield, stunning it for @ seconds.", "Became invulnerable for @ seconds when health is depleted."], [undefined, "Dodge all attack for @ seconds.", "Create @ shadow image^ to fight enemies.", "Strike enemy from on high for @ damage."], [undefined, "Builds an automated turret to attack enemies for @ damage.", "Builds an robot that repairs defense barriers.", "Deploys a massive wave of destructive robots."], [undefined, "Heals templars for @ health points.", "Blasts a holy ray, damaging enemies in a line for @ damage.", "Resurrects a fallen templar."], [undefined, "Summons a blob that explodes on enemies for @ damage.", "Blasts a death ray, damaging enemies in a line for @ damage.", "Cause targets to take @% extra damage."], [undefined, "Entangle enemies for @ seconds.", "Blind target enemies, causing their attacks to miss.", "Conjures wind to knock enemies back and heals templars for @ health."]];
captainskillreq = [undefined, 3, 6, 10];
templarname = [undefined, "Color Mage", "Striker", "Dark Knight", "Bladeling", "Tinkerer", "Light", "Dark", "Elven Spirit"];
templarattacksfx = [undefined, undefined, undefined, 5, 5, 6, 7, 7, 7];
templardesc = [undefined, "", "", "This melee templar is a tank and can withstand massive amounts of damage.", "This templar can quickly slay enemies with both speed and strength.", "This special templar is able to build both wall-repairing and assault robots.", "The templar of light supports the group with healing and resurrection.", "This templar destroys enemies with destructive dark magic.", "This templar uses the power of nature to disrupt enemy abilities."];
loadphase = 0;
waitnexttime = 0;
waitnexttimetemp = 5;
heroindex = 1;
loadmainmenu();
}
public function emptyso(_arg1:int){
var _local2:*;
so.data.tutorialskill[_arg1] = false;
so.data.tutorialtile2[_arg1] = false;
so.data.tutorialcaptain[_arg1] = false;
so.data.tutorialmovement[_arg1] = false;
so.data.tutorialtile1[_arg1] = false;
so.data.firstanimation[_arg1] = false;
so.data.relicclicked[_arg1] = [undefined, 0, 0, 0, 0];
so.data.templar[_arg1] = [undefined, 0, 0, 0, 0, 0, 0, 0, 0];
so.data.templarlevel[_arg1] = [undefined, 1, 1, 1, 1, 1, 1, 1, 1];
so.data.maintemplar[_arg1] = 0;
so.data.areareach[_arg1] = 1;
so.data.levelreach[_arg1] = 1;
so.data.relic[_arg1] = [undefined, 0, 0, 0];
_local2 = 1;
while (_local2 < 30) {
so.data.skilllevel[_arg1][_local2] = 0;
_local2++;
};
so.data.pts[_arg1] = 0;
so.data.expe[_arg1] = [undefined, 0, 0, 0, 0, 0, 0, 0, 0];
so.data.skillregister[_arg1] = [undefined, -1, -1, -1, -1, -1];
so.data.choosecaptainbool[_arg1] = false;
so.data.choosecaptainke[_arg1] = 0;
so.data.gameover[_arg1] = false;
_local2 = 1;
while (_local2 < 30) {
so.data.enemies[_arg1][_local2] = 0;
_local2++;
};
}
function frame8(){
stop();
cekquest();
loadaudiobuttonsetting();
soundchannel1 = soundfirecamp.play(0, 999, new SoundTransform(volbgm));
relicdesc = [undefined, "The castle's magical unicorn will occasionally bombard the battlefield.", "The castle's fallen king will resurrect your main templar once.", "The castle's bunny, Nomnom will heal your main templar's health over time."];
captainatkmultiplier = 1;
blindduration = (5 * 25);
blindchance = 75;
tink101damage = 5;
meleerange = 40;
stunduration = 3;
critmultiplier = 4;
arcturretrange = 150;
arcturretduration = 5;
arcturretreload = (0.2 * 25);
arcturretdamage = 3;
toxicduration = 3;
webduration = 4;
dragonpushback = 2;
slowduration = 3;
burnduration = 4;
lightingballduration = 6;
lightingballtick = 0.7;
lightingballrange = 80;
blizzardduration = 5;
enemyeyes = [undefined, fxeyes1, fxeyes1, fxeyes2, "", fxeyes1, fxeyes1, "", "Skeleton Shielder", "", "Skeleton Burner", "Skeleton Mage", "Wraith", "Bane", "Tomber", "Portal demon", "Hell launcher", "Feast demon", "Black mage", "Witch demon", "Hellion Soul", "Hellion Knight", "Arch Hellion", ""];
enemyname = [undefined, "Fall", "Fello", "", "Fnight", "Fird", "Fannon", "Flob King", "", "Skeleton Shielder", "Skeleton Burner", "Skeleton Mage", "Wraith", "Bane", "Tomber", "Blink Demon", "Fire Demon", "Feast Demon", "Black Mage", "Witch Demon", "Hellion Soul", "Hellion Knight", "Arch Hellion", ""];
enemytranslateno = [undefined, 1, 2, 4, 4, 5, 6, 7, 9, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 1];
enemydesc = [undefined, "Except for the horn, the blob is made out of jelly.", "This blob can spit acid at its enemies.", "", "These fat blobs wear protective armor.", "These mutated blobs have wings and can fly fast.", "These volatile blobs are able to spit fire.", "The greed of the blob king has caused him to grow to an immense size.", "", "Even the dead protect themselves with shields.", "Some undead can attack by hurling dark magic fire.", "Undead necromancers are able to summon more lost souls to the fight.", "Wraiths search for more souls to join them.", "Banes are pure evil and seek to spread corruption.", "Pillars of death rise in corrupted areas.", "These demons can teleport and strike anywhere.", "These demons bombard their enemies with pure hellfire.", "This monstrosity can swallow a templar whole.", "Corrupted mortals that are controlled by the demons.", "Witches are able to heal the wounds of their evil allies.", "The first form of destruction itself.", "Hellion's second form is even more destructive.", "No living soul has ever seen and survived Hellion's third form.", ""];
enemyexp = [undefined, 5, 5, 0, 6, 5, 6, 10, 0, 6, 6, 7, 6, 7, 15, 7, 7, 8, 7, 7, 0, 0, 30, 0];
enemystat = [undefined, [5, 4, 1, 0, [], meleerange, 2, 100], [5, 6, 1, 0, [], 300, 3, 500], [5, 10, 1, 99.99, [], meleerange, 3, 100], [50, 10, 1, 0, [], meleerange, 3, 100], [10, 15, 5, 0, [], meleerange, 2, 100], [15, 15, 1, 0, [], 600, 3, 700], [800, 50, 1, 20, [1, 2, 3], 0, 200, 0], [3, 10, 1, 99.99, [], meleerange, 3, 100], [20, 10, 2, 15, [], meleerange, 1.5, 100], [30, 10, 1, 20, [], 500, 2, 600], [50, 10, 1.5, 20, [4], 500, 3, 600], [40, 20, 3, 20, [], meleerange, 0.5, 100], [100, 40, 1, 30, [], 700, 4, 700], [1000, 0, 0, 50, [5, 7, 6], 500, 5, 500], [100, 30, 0, 30, [8], meleerange, 0.6, 0], [120, 30, 0, 30, [], 1000, 3, 700], [150, 50, 1, 50, [], meleerange, 5, 100], [100, 20, 1, 20, [], 400, 5, 600], [80, 10, 3, 10, [9], 100, 3, 400], [700, 20, 0, 20, [10, 11], 700, 0, 700], [1200, 30, 0, 30, [10, 11, 12, 13, 14], 700, 0, 700], [1600, 40, 6, 40, [10, 12, 13, 14, 15, 16, 17], 700, 0, 700], [400, 100, 2, 50, [], 0, 0.5, 0]];
enemyskillcd = [undefined, 20, 10, 15, 10, 5, 9, 13, 5, 10, 5, 2, 12, 7, 10, 4, 14, 19];
enemymissile = [undefined, "", fxenemymissile1, "", "", "", fxenemymissile2, "", "", "", fxgreenfire, fxnecrobullet, "", fxbanebullet, "", "", fxmagmabullet, "", fxsmallmeteor, fxenemymissile2, "", "", "", ""];
enemymissiletype = [undefined, 0, 1, 0, 0, 0, 2, 2, 0, 0, 2, 1, 0, 8, 0, 0, 2, 0, 4, 2, 0, 0, 0, 0];
enemyaimtipe = [undefined, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0];
enemyfly = [undefined, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1];
templarhp = [undefined, 10, 10, 60, 30, 20, 20, 20, 20];
templaratk = [undefined, 0, 0, 1, 1.5, 1, 1, 1, 1];
templarms = [undefined, 3, 3, 2, 3, 3, 2, 2, 3];
templararmor = [undefined, 0.5, 0.5, 2, 0.5, 0.5, 0.5, 0.5, 0.5];
templarrange = [undefined, 0, 0, meleerange, meleerange, 600, 600, 600, 600];
templarvision = [undefined, 0, 0, (200 * 2), (200 * 2), (300 * 2), 700, 700, 700];
templaras = [undefined, 0, 0, 35, 25, 35, 35, 35, 35];
templarlevelreq = [undefined, [undefined, 1, 1, 1, 10, 10, 10, 20, 20, 20, 28, 28, 28, 35, 5, 5], [undefined, 1, 5, 8, 8, 14, 14, 19, 19, 23, 23, 29, 29, 32, 32, 35]];
templarskillreq = [undefined, [undefined, 0, 0, 0, 1, 2, 3, 4, 5, 6, 0, 0, 9, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
templarskillmaxlevel = [undefined, [undefined, 3, 3, 3, 3, 3, 3, 7, 7, 6, 3, 1, 5, 3, 5, 5], [undefined, 8, 5, 6, 6, 6, 5, 2, 1, 3, 3, 4, 1, 2, 5, 4]];
templarskilldamage = [undefined, [undefined, [undefined, [undefined, 5, 8, 10]], [undefined, [undefined, 2, 4, 6]], [undefined, [undefined, 2, 4, 6]], [undefined, [undefined, 6, 9, 14]], [undefined, [undefined, 4, 6, 9]], [undefined, [undefined, 2, 3, 4], [undefined, lightingballduration, lightingballduration, lightingballduration]], [undefined, [undefined, 22, 27, 36, 40, 45, 49, 54]], [undefined, [undefined, 2, 3, 4, 6, 8, 9, 11], [undefined, blizzardduration, blizzardduration, blizzardduration, blizzardduration, blizzardduration, blizzardduration, blizzardduration]], [undefined, [undefined, 15, 30, 45, 60, 75, 90]], [undefined, [undefined, 37, 45, 53], [undefined, 1, 2, 3]], [undefined, [undefined, 0, 0]], [undefined, [undefined, 30, 37, 45, 52, 60], [undefined, 3, 4, 5, 6, 7]], [undefined, [undefined, 10, 20, 30]], [undefined, [undefined, 25, 30, 35, 40, 45], [undefined, slowduration, slowduration, slowduration, slowduration, slowduration]], [undefined, [undefined, 4, 6, 8, 10, 12], [undefined, burnduration, burnduration, burnduration, burnduration, burnduration]]], [undefined, [undefined, [undefined, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7]], [undefined, [undefined, 4, 6, 7, 9, 11]], [undefined, [undefined, 3, 5, 7, 10, 13, 15]], [undefined, [undefined, 3, 5, 7, 10, 13, 15]], [undefined, [undefined, 3, 3.3, 3.6, 4, 4.3, 4.6]], [undefined, [undefined, 10, 15, 18, 20, 22], [undefined, 25, 35, 55, 65, 70]], [undefined, [undefined, 5, 9], [undefined, toxicduration, toxicduration]], [undefined, [undefined, 0, 0]], [undefined, [undefined, 15, 30, 55]], [undefined, [undefined, 15, 30, 55]], [undefined, [undefined, 10, 17, 19, 22], [undefined, critmultiplier, critmultiplier, critmultiplier, critmultiplier]], [undefined, [undefined, 0, 0]], [undefined, [undefined, 15, 30]], [undefined, [undefined, 5, 8, 12, 14, 18], [undefined, stunduration, stunduration, stunduration, stunduration, stunduration]], [undefined, [undefined, 100, 115, 130, 150]]]];
templarskillcd = [undefined, [undefined, 5, 2, 2, 12, 10, 10, 20, 20, 6, 4, 30, 9, 0, 0, 0], [undefined, 0.5, 17, 10, 10, 3, 15, 0, 15, 0, 0, 0, 0, 0, 0, 30]];
templarskilltextaddon = [undefined, [undefined, [""], [""], [""], [""], [""], ["", "s"], [""], ["", "s"], [""], ["", ""], ["-1"], ["", " times"], ["%"], ["%", "s"], ["", "s"]], [undefined, [""], [""], [""], [""], [""], ["", "%"], ["", "s"], ["-1"], ["%"], ["%"], ["%", "x"], ["-1"], ["%"], ["%", "s"], [""]]];
templarskilldesc = [undefined, [undefined, "Hurl fire at enemy, dealing @ damage.", "Launch flake of ice, dealing @ damage.", "Zap an enemy, dealing @ damage.", "Throw fireball dealing @ area damage.", "Plant mine that will charge and explode, freezing and dealing @ damage.", "Conjure lighting ball, zapping nearby enemies for @ damage over @ seconds.", "Call a meteor on the target area for @ damage.", "Rain ice flakes that deal @ damage over @ seconds.", "Summon a lightning strike upon a foe for @ damage.", "Summon a fire spirit to strike an enemy for @ damage; max @ active spirits.", "Summon a vicious Tundra Beast to attack enemies.", "Blast enemies with chain lighting, dealing @ damage and jumping @ times.", "Increase all spell damage by @%.", "Ice magic that slows targets by @% over @ seconds.", "Fire magic that burns targets for @ damage over @ seconds."], [undefined, "Rifle shot that deals @ damage.", "Launch napalm at target area, dealing @ area damage.", "Fire a Dragon Bullet that deals @ damage and knocks back enemies.", "Fire a Spider Bullet that deals @ damage and traps enemies in place.", "Shoot with shotgun, dealing @ damage.", "Fire a Wyvern Bullet that deals @ damage and slows enemies by @%.", "Rifle and shotgun attacks poison enemies for @ damage over @ seconds.", "Place a turret that automatically attacks enemies.", "Increase rifle attack damage by @%.", "Increase shotgun attack damage by @%.", " @% chance for rifle and shotgun attacks to do @x damage.", "Rifle shoots double bullets.", "Reduce all skill cooldowns by @%.", "Rifle and shotgun attacks have @% chance to stun enemies for @ seconds.", "Launch deadly striker cannon to wipe the battlefield, dealing @ damage."]];
templarskillpassivebool = [undefined, [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [undefined, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0]];
templarskillelementtipe = [undefined, [undefined, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 0, 0, 0], [undefined, "Rifle attack", "Napalm shot", "Dragon bullet", "Spider bullet", "Shotgun attack", "Wyvern bullet", "Toxic powder", "Arc turret", "Rifle mastery", "Shotgun mastery", "Keen eye", "Dual barrel", "Weapon mastery", "Headshot", "Striker cannon"]];
templarskillname = [undefined, [undefined, "Fire Spit", "Ice Flake", "Electric Zap", "Fireball", "Ice Mine", "Lightning Ball", "Meteor", "Blizzard", "Thundara", "Fire Spirit", "Tundra Beast", "Chain Lightning", "Arcane Mastery", "Cold Feet", "Combustion"], [undefined, "Rifle Attack", "Napalm Shot", "Dragon Bullet", "Spider Bullet", "Shotgun Attack", "Wyvern Bullet", "Toxic Powder", "Arc Turret", "Rifle Mastery", "Shotgun Mastery", "Keen Eye", "Dual Barrel", "Weapon Mastery", "Headshot", "Striker Cannon"]];
templarskillline = [undefined, [undefined, 1, 5, 10, 20, 28, 35], [undefined, 1, 5, 8, 14, 19, 23, 29, 32, 35]];
loadmap();
}
function frame9(){
stop();
magicalunicornspawned = 0;
stage.focus = stage;
mcmouse.gotoAndStop(1);
ending = false;
waittutor = -1;
readyres = false;
batasfog = 613;
templarnaturalregen = 0.03;
templarnaturalregentime = 50;
captainnaturalregen = 0.1;
globalcd = [];
onskilldrag = false;
wingame = true;
wavewaittemp = 0;
waveenemyindex = 0;
wavewait = (3 * 25);
waveindex = 0;
wavephase = 1;
shieldduration = (5 * 25);
chompedtick = 25;
toweravailable = [5, 7, 6];
towerskillbool = false;
towerskillno = 5;
entombedtime = 0;
entombedtimetemp = 18;
entombedindex = 0;
entombeddamage = 80;
boss1x = 475;
boss1y = 0x0101;
gooduration = (5 * 25);
tundrabeastjumptime = (3 * 25);
tundrabeasthp = 500;
tundrabeastatk = 30;
tundrabeastarmor = 40;
tundrabeastvision = 500;
tundrabeastreload = 20;
tundrabeastduration = 25;
enemyautospawnbool = false;
enemyautospawntime = 0;
enemyautospawntimetemp = 75;
enchantingwindpushback = 5;
blobreload = 26;
blobduration = 12;
tink101timetemp = 5;
tink101durationtemp = (10 * 25);
tinkdirection = "right";
tinkengineerduration = 20;
tinkturretreload = (0.5 * 25);
tinkturretrange = 200;
illusionpowa = 2;
illusionduration = 10;
captainline = 372;
wanderingtimemin = (3 * 25);
wanderingtimemax = (6 * 25);
turnheadtimemin = (4 * 25);
turnheadtimemax = (7 * 25);
dieduration = 10;
sharpneldamage = 30;
stunchance = 0;
weaponmastery = 0;
rifleindex = 0;
rifleamount = 1;
critchance = -1;
shotgunmastery = 0;
riflemastery = 0;
toxicdamage = -1;
hittick = 3;
spellmultiplier = 0;
burntick = 25;
burndamage = -1;
slowrate = 0;
firespirit = 0;
chainphase = 1;
chainbounce = 1;
chaindamage = 1;
chainposisi = [];
chaintarget = [];
chainindex = 0;
chainenemy = [];
chaindone = [];
dpstick = 10;
frozetime = 50;
skillno = [];
skillcd = [];
skillcdtemp = [];
id = 0;
pausegame = false;
enemylinkage = [undefined, enemy1, enemy2, enemy4, enemy3, enemy5, enemy6, enemy7, enemy8, enemy9, enemy10, enemy11, enemy12, enemy13, enemy14, enemy15, enemy16, enemy17, enemy18, enemy19, enemy20, enemy21, enemy22, fxvoidstone];
enemydiesound = [undefined, 1, 1, 2, 1, 1, 1, 1, 2, 4, 4, 4, 5, 4, 6, 7, 7, 7, 7, 7, -1, -1, 8, 9];
enemyattacksound = [undefined, 0, 1, 0, 0, 0, 2, -1, 5, 5, 2, 2, 0, 3, -1, 5, 4, 0, 2, 1, -1, -1, -1, -1];
templarshadow = [undefined, [undefined, 2, 2, 2, 2, 2, 2, 2, 2], [undefined, 7, 7, 7, 7, 7, 9, 9, 7], [undefined, 7, 7, 7, 7, 7, 9, 9, 7]];
enemyshadow = [undefined, 4, 4, 5, 5, -1, 4, 6, 9, 9, 9, 9, 7, 9, 9, 9, 9, 9, 9, 7, 7, 9, 9, -1];
vision = 300;
wallhp = 75;
bataswall = 125;
batasatas = 112;
batasbawah = 341;
movementcommand = "";
movementcommand2 = "";
templarlinkage = [undefined, hero1, hero2, hero3, hero4, hero5, hero6, hero7, hero8];
templarlinkagespecial = [undefined, herospecial1, herospecial2];
templarposition = [undefined, 0, 0, 1, 1, 1, 0, 0, 0];
templarmissilelinkage = [undefined, "", "", "", "", fxhero5bullet, fxlightattack, fxdarkattack, fxelvanmissile];
templarmissilemovementtype = [undefined, 0, 0, 0, 0, 1, 1, 1, 1];
shadowimage = [];
fximage = [];
unitimage = [];
missileimage = [];
expimage = [];
sprayimage = [];
spraytime = 0;
sprayamount = 8;
sprayatk = 30;
sortwaiting = 3;
sortwaitingtemp = sortwaiting;
hp = (so.data.templarlevel[slotused][so.data.maintemplar[slotused]] * templarhp[so.data.maintemplar[slotused]]);
hptemp = hp;
tilespecialcd = [undefined, 30, -1];
tilespecialname = [undefined, "drop", "shield"];
levelwalladdon = [undefined, [], [], [], [1, 1], [1], [1, 1], [], [], [], [2, 2], [2, 2], [2, 2], [], [], [], [], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3, 3]];
levelwalladdonpos = [undefined, [], [], [], [[451, 158], [320, 324]], [[474, 247]], [[451, 158], [320, 324]], [], [], [], [[350, 147], [281, 329]], [[350, 147], [281, 329]], [[350, 147], [281, 329]], [], [], [], [], [[547, 136], [407, 335]], [[547, 136], [407, 335]], [[547, 136], [407, 335]], [[547, 136], [407, 335]], [[547, 136], [407, 335], [443, 248]]];
leveltilespecial = [undefined, [1], [1], [1], [1], [1], [1], [1], [1], [1], [1], [1], [1], [1], [], [], [], [], [1], [1], [1, 2], [1, 2]];
leveltilespecialpos = [undefined, [[23, 281]], [[23, 281]], [[23, 281]], [[23, 281]], [[23, 281]], [[23, 281]], [[23, 281]], [[22, 232]], [[22, 232]], [[22, 232]], [[22, 232]], [[22, 232]], [[22, 232]], [], [], [], [], [[119, 100]], [[119, 100]], [[119, 100], [23, 232]], [[119, 100], [23, 232]]];
levelenemy = [undefined, [undefined, [1], [1, 1], [1, 1], [1]], [undefined, [1, 1], [1, 1, 1], [1, 1, 1, 1], [2, 2, 2], [2, 2, 1, 1], [2, 2, 2, 1, 1, 1, 1]], [undefined, [1, 1, 1, 1], [2, 2, 1, 1, 1], [2, 2, 2, 1, 1, 1, 1], [1, 1], [2, 2, 2, 2], [2, 2, 2, 2, 2, 1, 1, 1, 1], [1, 1, 1], [2, 2, 2, 2, 1, 1, 1, 1, 1], [3]], [undefined, [1, 1, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1], [1, 1], [2, 2, 2, 2], [3, 1, 1, 1, 1, 1], [1, 1, 1], [2, 2, 2, 2, 2, 2], [3, 3, 1, 1, 1, 1], [2, 2, 2], [2, 2, 2], [3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1]], [undefined, [3, 1, 1, 1, 1, 1], [3, 3, 1, 1, 1, 1, 1, 1, 3], [1, 1, 1, 1, 1, 1, 1], [2, 2, 2, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [5, 5, 5, 5], [1, 1, 1, 1, 1, 1, 1], [5, 5, 5, 5, 5], [1, 1, 1, 1, 1, 1, 1], [3, 3, 2, 2, 2, 2], [1, 1, 1, 1, 1, 1, 1], [5, 5, 5, 5, 5, 3, 3, 1, 1, 1, 1]], [undefined, [5, 5, 5, 5, 5, 1, 1, 1, 1, 1], [3, 3, 3, 3], [2, 2, 2, 2, 2], [5, 5, 5, 5, 5, 1, 1, 1, 1, 2, 2], [1, 1, 1, 1, 2, 2, 2], [3, 3, 3, 3], [3, 3, 6, 6, 6, 6], [2, 2, 2, 2, 2, 2, 2], [5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6], [2, 2, 2, 2, 2, 2, 2], [1, 5, 1, 5, 1, 5, 1, 5, 1, 5], [3, 3, 3, 6, 6, 6, 6, 6, 6], [5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 2, 2, 2, 2, 2, 1, 6, 6, 6]], [undefined, [3, 3, 3, 1, 1, 1, 1, 1, 2, 2, 2, 2], [3, 3, 3, 6, 6, 6, 6, 6], [1, 1, 1, 1, 1, 1, 1], [5, 5, 5, 5, 5, 5, 6, 6, 6, 6], [3, 3, 3, 3, 3, 6, 6, 6, 6, 6], [5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6], [1, 2, 1, 2, 1, 2, 1, 2, 1, 2], [2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2], [3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 6, 6], [7]], [undefined, [8, 8, 8], [8, 8, 8, 8, 8, 8], [8, 8, 8, 8, 8, 10, 10], [8, 8, 8, 8, 8, 10, 10, 10], [8, 8, 8, 8], [8, 8, 8, 8, 8, 10, 10, 10], [8, 8, 8, 8], [8, 8, 8, 8, 8, 10, 10, 10]], [undefined, [8, 8, 8, 8, 10, 10], [8, 8, 8, 8, 10, 10], [8, 8, 8, 8, 8, 10, 10, 10], [8, 8, 8, 8, 8, 8, 10, 10, 10], [8, 8, 8, 8], [8, 8, 8, 8, 8, 8, 8, 8], [10, 10, 10, 10, 10, 10], [12, 12, 12], [8, 8, 8, 8], [10, 10, 10, 10, 10, 10, 10], [12, 12, 12]], [undefined, [11, 11, 12, 12, 12, 12], [8, 8, 8, 8, 8], [10, 10, 10, 10, 10], [12, 12, 12, 12, 12], [8, 8, 8, 8, 8], [10, 10, 10, 10, 10], [10, 10, 10, 10, 10, 12, 12, 12, 12, 12], [8, 8, 8, 8, 8], [8, 8, 8, 8, 8, 8], [12, 12, 12, 12, 12], [8, 8, 8, 8, 8], [10, 10, 10, 10, 12, 12, 12, 12], [11, 11, 11, 12, 12, 12, 12, 12, 12], [8, 8, 8, 8, 8, 8], [11, 11, 11, 11, 10, 10, 10, 12, 12, 12]], [undefined, [8, 8, 8, 8, 8, 8, 11, 10, 11, 10, 11, 10], [10, 12, 12, 12, 12, 10, 10, 10, 10], [8, 8, 8, 8, 8, 8, 8, 8], [10, 10, 10, 10, 10, 10, 10], [12, 12, 12, 12, 12, 12, 10, 11, 10, 11, 10, 11, 10, 11], [8, 8, 8, 8, 8, 8, 8], [12, 12, 12, 12, 12, 12], [8, 8, 8, 8, 8, 8], [10, 10, 10, 10, 10, 12, 12, 12, 12, 12], [12, 12, 12, 12, 12, 12, 12, 11, 11, 11, 11, 11, 11], [8, 8, 8, 8, 8, 8, 8, 8], [10, 11, 10, 11, 10, 11, 10, 11, 10, 11], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [10, 11, 12, 10, 11, 12, 10, 11, 12, 10, 11, 12]], [undefined, [8, 8, 8, 8, 8, 8], [12, 12, 10, 10, 12, 10, 10, 12, 12, 12], [8, 8, 8, 8, 8, 8, 8, 8, 8], [12, 12, 11, 11, 12, 12, 11, 11, 12, 12, 11], [12, 12, 12, 12, 12, 12, 10, 10], [12, 12, 12, 11, 11, 11, 12, 12, 11], [8, 8, 8, 8, 8, 8], [12, 10, 12, 11, 12, 10, 12, 11, 12, 10, 12, 11, 12, 10], [12, 12, 13, 12, 12, 13, 12, 12, 12, 12, 12], [8, 8, 8, 8, 8, 8, 8, 8], [12, 12, 12, 13, 12, 12, 13, 12, 12], [12, 12, 12, 10, 10, 12, 12, 12, 10, 10, 12, 12, 12, 10], [12, 12, 12, 13, 12, 12, 13, 12, 12, 12, 12, 12], [8, 8, 8, 8, 8, 8, 8, 8], [8, 8, 8, 8, 8, 11, 11, 8, 8, 8, 8, 11, 11, 12, 13, 13, 10, 12, 12, 12, 10, 10, 12, 13, 12, 10]], [undefined, [8, 8, 8, 8, 10, 10, 10, 8, 8, 8, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 12, 12, 12, 11, 11, 11, 11, 8, 8, 8, 13, 13, 13, 13], [12, 12, 12, 12, 12, 13, 13, 13, 13, 12, 12, 12, 12, 12, 13, 13, 13, 13, 12, 12, 12, 12, 12, 10, 10, 10, 10, 10, 12, 12, 12, 12, 10, 10, 10], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 12, 12, 12, 10, 10, 12, 12, 12, 12, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 12, 12, 13, 13, 13, 13], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [12, 13, 12, 11, 12, 10, 12, 13, 12, 11, 12, 10, 13, 13, 13, 12, 12, 12, 8, 8, 8, 8, 8, 8, 8, 13, 12, 11, 11, 11, 11, 12, 12, 10, 10, 10, 10, 11, 12, 12]], [undefined, [8, 8, 8, 8, 8, 11, 10, 11, 10, 11, 10, 12, 12, 12, 12, 13, 13, 12, 12, 12, 12, 11, 10, 11, 10, 11, 10, 8, 8, 8, 8, 8, 8, 8, 13, 13, 13, 13], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [12, 12, 12, 12, 12, 13, 13, 13, 12, 12, 12, 10, 11, 11, 12, 12, 12, 12, 10, 10, 10, 10, 12, 12, 12, 13, 13, 13, 13, 12, 12, 11, 11], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [12, 12, 12, 12, 11, 11, 11, 11, 12, 12, 12, 12, 12, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 12, 12, 13, 13, 13, 12, 12, 13, 13], [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8], [12, 12, 13, 13, 12, 11, 12, 11, 12, 12, 12, 13, 13, 12, 12, 8, 8, 8, 8, 8, 10, 12, 12, 12, 10, 10, 10, 10, 13, 12, 12, 12, 8, 8, 11, 11], [14]], [undefined, [15], [15, 15], [15, 15, 15, 15]], [undefined, [15, 15, 15, 15], [15, 15, 15, 15, 15, 15], [16, 16, 16], [15, 15, 16, 15, 15, 16, 16], [16, 16, 16], [15, 15, 15, 15, 15, 15]], [undefined, [15, 15, 16, 15, 15, 16], [16, 16, 16, 16], [15, 15, 15, 16, 16, 15, 15, 15, 16, 16], [18, 18, 15, 15, 15], [18, 18, 15, 15, 18, 15, 15], [16, 16, 16, 16], [18, 18, 18, 18, 15, 15, 15, 15, 15]], [undefined, [16, 16, 16, 16], [15, 15, 15, 15, 15, 15, 15], [18, 18, 18, 18, 15, 15, 15, 15, 15], [16, 16, 16, 16], [15, 15, 15, 15, 15, 15, 15, 15, 15], [18, 18, 18, 18, 16, 16, 15, 15, 15, 15, 15], [17], [16, 16, 16, 16], [18, 18, 18, 18], [17, 17], [16, 16, 16, 16, 16], [18, 18, 18, 18, 16, 16, 16, 15, 15, 15, 15, 15], [17, 17], [18, 18, 18, 18, 16, 16, 16, 16]], [undefined, [15, 15, 15, 15, 15, 15, 15], [15, 15, 15, 15, 15, 15, 15], [16, 16, 16, 16, 16], [15, 15, 15, 15, 15, 15, 15], [16, 16, 16, 16, 16], [18, 18, 18, 18, 15, 15, 15, 15, 15], [16, 16, 16, 16, 16], [17, 17, 17, 17], [18, 18, 18, 18, 18, 18, 18], [15, 15, 15, 15, 15, 15, 15, 15, 15], [17, 17, 17, 17], [18, 18, 18, 18, 18, 16, 16, 16, 16, 16], [17, 17, 17, 17, 17], [16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16]], [undefined, [18, 18, 18, 18, 18, 18, 16, 16, 16, 16, 16], [18, 18, 18, 18, 18, 18], [15, 15, 15, 15, 15, 15, 15], [16, 16, 16, 16, 16, 16, 16], [17, 17, 17, 17, 17], [19, 19, 19, 19], [16, 16, 16, 16, 16, 16], [19, 19, 19, 19, 19], [18, 18, 18, 18, 18, 15, 15, 15, 15, 15, 15], [17, 17, 17, 17, 17, 17], [19, 19, 19, 19, 19], [15, 15, 15, 15, 15, 15, 15], [16, 16, 16, 16, 16], [15, 16, 15, 16, 16, 15, 16, 15, 18, 19, 19, 19, 18, 18, 18, 19], [17, 17, 17, 17], [19, 19, 19, 19, 19, 16, 16, 16, 16, 16, 16, 16, 15, 15, 15, 19, 19, 15, 15, 15]], [undefined, [15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15], [16, 16, 16, 16, 16], [17, 17, 17, 17, 17], [19, 19, 19, 19, 18, 18, 18, 18], [15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15], [17, 17, 17, 17, 17, 17], [16, 16, 18, 16, 16, 18, 18, 16, 16, 18, 18, 18, 16, 16, 18], [15, 15, 15, 19, 18, 16, 16, 16, 15, 15, 15, 16, 16, 19, 15, 15, 19, 19, 16, 16, 16, 18, 16, 16, 19, 19, 19, 18, 18], [17, 17, 17, 17, 17, 17, 17, 17, 17], [18, 18, 18, 18, 15, 15, 15, 19, 16, 16, 16, 15, 15, 15, 18, 15, 19, 19, 19, 16, 16, 16, 15, 18, 18, 18, 18, 18, 16, 19, 19, 15, 15], [16, 16, 16, 16, 16, 16, 16, 16, 16, 16], [18, 19, 19, 19, 18, 18, 18, 19, 19, 19, 18, 18, 18, 18, 18, 19], [20]]];
levelenemytimespread = [undefined, [undefined, 1, 2, 2, 0], [undefined, 1, 2, 2, 1, 2, 3], [undefined, 1, 2, 3, 3, 1, 3, 3, 2, 1], [undefined, 2, 2, 3, 1, 2, 3, 2, 3, 3, 1, 4], [undefined, 2, 4, 2, 3, 2, 3, 2, 4, 2, 5, 2, 6], [undefined, 4, 2, 2, 5, 2, 4, 5, 2, 5, 2, 5, 7, 9], [undefined, 5, 5, 5, 4, 5, 7, 4, 6, 7, 9, 1], [undefined, 5, 5, 14, 15, 2, 14, 2, 16], [undefined, 7, 7, 12, 12, 2, 8, 6, 3, 2, 8, 3], [undefined, 4, 2, 5, 5, 2, 5, 9, 2, 15, 5, 2, 18, 14, 2, 18], [undefined, 15, 10, 2, 9, 17, 2, 14, 2, 12, 15, 3, 12, 3, 15], [undefined, 2, 10, 2, 15, 15, 20, 2, 16, 17, 2, 12, 16, 17, 2, 25], [undefined, 20, 25, 2, 25, 2, 25], [undefined, 25, 3, 50, 3, 30, 3, 45, 1], [undefined, 1, 3, 4], [undefined, 3, 5, 2, 6, 2, 4], [undefined, 6, 2, 8, 3, 5, 2, 7], [undefined, 2, 5, 7, 2, 8, 10, 1, 2, 2, 2, 2, 11, 2, 8], [undefined, 5, 5, 2, 6, 2, 9, 2, 5, 4, 9, 6, 11, 9, 14], [undefined, 10, 5, 8, 2, 5, 2, 3, 2, 11, 5, 2, 7, 2, 25, 2, 25], [undefined, 20, 2, 2, 6, 30, 3, 20, 30, 8, 35, 1, 15, 1]];
levelenemywait = [undefined, [undefined, 8, 12, 30], [undefined, 8, 18, 28, 25, 30], [undefined, 10, 18, 25, 1, 15, 25, 1, 30, 10], [undefined, 15, 25, 1, 10, 30, 1, 25, 30, 1, 1], [undefined, 25, 35, 1, 30, 1, 25, 1, 25, 1, 30, 1], [undefined, 30, 35, 2, 30, 2, 30, 35, 2, 40, 2, 30, 35], [undefined, 35, 35, 2, 30, 40, 40, 2, 5, 40, 60], [undefined, 25, 35, 40, 40, 2, 40, 2, 45], [undefined, 30, 35, 45, 50, 2, 40, 45, 40, 2, 35], [undefined, 20, 2, 25, 30, 2, 20, 30, 2, 35, 20, 2, 40, 45, 2], [undefined, 40, 40, 2, 35, 40, 2, 35, 2, 40, 45, 2, 45, 2], [undefined, 2, 30, 2, 35, 45, 50, 2, 50, 50, 2, 35, 50, 50, 2], [undefined, 55, 60, 2, 50, 2], [undefined, 40, 3, 55, 3, 60, 3, 120], [undefined, 15, 25], [undefined, 25, 35, 25, 35, 2], [undefined, 30, 25, 35, 30, 35, 2], [undefined, 2, 30, 40, 2, 45, 55, 1, 25, 2, 25, 2, 35, 2], [undefined, 30, 30, 30, 35, 30, 45, 35, 2, 30, 45, 2, 55, 2], [undefined, 30, 10, 35, 2, 2, 35, 2, 2, 40, 2, 2, 40, 2, 50, 2], [undefined, 45, 2, 2, 35, 15, 2, 55, 65, 3, 65, 2, 50]];
levelenemycave = [undefined, [undefined, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 1, 0, 0, 1, 0, 0], [undefined, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0], [undefined, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0], [undefined, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0], [undefined, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 1, 0, 1, 0], [undefined, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0], [undefined, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0], [undefined, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0], [undefined, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0], [undefined, 0, 0, 1, 0, 1, 0], [undefined, 0, 1, 0, 1, 0, 1, 0, 0], [undefined, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 0], [undefined, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0], [undefined, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0], [undefined, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0], [undefined, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0]];
relicno = [];
reliccd = [];
reliccdtemp = [undefined, (30 * 25), (35 * 25)];
loadingame();
linkageattacksound = [[soundhit1, soundhit2], [soundenemyspit2], [soundenemyspit1], [soundbanemissile1, soundbanemissile2], [soundhelldemonblast1, soundhelldemonblast2], [soundsword1, soundsword2], [soundspark], [soundtemplarrange]];
smallexp = 1;
bigexp = 10;
}
function frame6(){
stop();
loadaudiobuttonsetting();
charke = 0;
loadcharselect();
}
function frame3(){
stop();
mcag.gotoAndStop(1);
stage.quality = "HIGH";
stage.frameRate = 45;
mcag.gotoAndPlay(2);
mcag.buttonMode = true;
mcag.addEventListener(MouseEvent.CLICK, clickAG);
stage.addEventListener(Event.ENTER_FRAME, splash1);
}
public function webwaiting(_arg1:Event):void{
if (pausegame == false){
_arg1.currentTarget.duratione--;
if (_arg1.currentTarget.duratione <= 0){
removethisfx(_arg1.currentTarget);
};
};
}
public function ceknaturalregen(_arg1:Object){
var _local2:*;
if (_arg1.hp < _arg1.hptemp){
_arg1.naturalregentime--;
if (_arg1.naturalregentime <= 0){
_arg1.naturalregentime = templarnaturalregentime;
_local2 = (_arg1.hptemp * _arg1.naturalregen);
_arg1.hp = (_arg1.hp + _local2);
if (_arg1.hp > _arg1.hptemp){
_arg1.hp = _arg1.hptemp;
};
_arg1.mchpbar.visible = true;
_arg1.mchpbar.mc1.width = ((_arg1.hp / _arg1.hptemp) * 22);
if (_arg1.main == true){
hp = _arg1.hp;
};
_arg1.mchpbar.visible = true;
};
};
}
public function createnewso(){
var _local1:*;
so.data.tutorialskill = [];
so.data.tutorialtile2 = [];
so.data.tutorialcaptain = [];
so.data.tutorialmovement = [];
so.data.tutorialtile1 = [];
so.data.firstanimation = [];
so.data.templar = [];
so.data.templarlevel = [];
so.data.maintemplar = [];
so.data.areareach = [];
so.data.levelreach = [];
so.data.relic = [];
so.data.relicclicked = [];
so.data.pts = [];
so.data.skilllevel = [];
so.data.expe = [];
so.data.skillregister = [];
so.data.choosecaptainbool = [];
so.data.choosecaptainke = [];
so.data.enemies = [];
so.data.audiosetting = [1, 1];
so.data.gameover = [];
so.data.chandeliervictim = 0;
_local1 = 1;
while (_local1 <= 2) {
so.data.tutorialskill[_local1] = [];
so.data.tutorialtile2[_local1] = [];
so.data.tutorialcaptain[_local1] = [];
so.data.tutorialmovement[_local1] = [];
so.data.tutorialtile1[_local1] = [];
so.data.firstanimation[_local1] = [];
so.data.templar[_local1] = [];
so.data.templarlevel[_local1] = [];
so.data.relicclicked[_local1] = [];
so.data.relic[_local1] = [];
so.data.pts[_local1] = [];
so.data.skilllevel[_local1] = [];
so.data.expe[_local1] = [];
so.data.skillregister[_local1] = [];
so.data.choosecaptainbool[_local1] = [];
so.data.choosecaptainke[_local1] = [];
so.data.enemies[_local1] = [];
so.data.gameover[_local1] = false;
emptyso(_local1);
_local1++;
};
}
function frame7(){
stop();
loadaudiobuttonsetting();
selectthiscap = -1;
captainlist = [undefined, [undefined, 3, 4], [undefined, 5, 6], [undefined, 7, 8]];
captainlevel = [undefined, 1, 3, 6];
loadchoosecaptain();
}
public function creditsback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mccredits.gotoAndStop(1);
mcmainmenu.btnplay.visible = true;
mcmainmenu.btncredits.visible = true;
mcmainmenu.btnmoregames.visible = true;
}
public function newenemyclick(_arg1:MouseEvent):void{
mcui.btnarea.visible = true;
sounddelete.play(0, 1, new SoundTransform(volsfx));
pausegame = true;
mcnewenemy.gotoAndStop(1);
trace("a");
loadenemyinfo(mcscourgeinfo.mc1, mcnewenemy.ke);
mcscourgeinfo.gotoAndPlay(2);
trace("b");
mcscourgeinfo.btnback.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcscourgeinfo.btnback.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcscourgeinfo.btnback.removeEventListener(MouseEvent.CLICK, scourgeinfoback);
mcscourgeinfo.btnback.addEventListener(MouseEvent.CLICK, scourgeinfoback);
}
public function createmissile(_arg1:Object, _arg2:int, _arg3:Number, _arg4:int, _arg5:Object, _arg6:int, _arg7:Object){
var _local8:Point;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
missileimage[missileimage.length] = new (_arg1);
if ((missileimage[(missileimage.length - 1)] is fxcrumble)){
trace("ya");
addChildAt(missileimage[(missileimage.length - 1)], (getChildIndex(mcshadowposition) - 1));
} else {
addChildAt(missileimage[(missileimage.length - 1)], getChildIndex(mcfxposition));
};
if (_arg5.parent == undefined){
_local8 = new Point(_arg5.x, _arg5.y);
} else {
_local8 = _arg5.localToGlobal(new Point(0, 0));
};
missileimage[(missileimage.length - 1)].x = _local8.x;
missileimage[(missileimage.length - 1)].y = _local8.y;
if (_arg6 != -1){
_local8 = unitimage[_arg6].mc1.mcbody.localToGlobal(new Point(0, 0));
missileimage[(missileimage.length - 1)].targetx = _local8.x;
missileimage[(missileimage.length - 1)].targety = _local8.y;
} else {
if (_arg7 != null){
missileimage[(missileimage.length - 1)].targetx = _arg7.x;
missileimage[(missileimage.length - 1)].targety = _arg7.y;
} else {
if ((missileimage[(missileimage.length - 1)] is fxrifleattack)){
if (rifleamount == 2){
if (rifleindex == 0){
missileimage[(missileimage.length - 1)].targetx = mouseX;
missileimage[(missileimage.length - 1)].targety = (mouseY - 15);
} else {
missileimage[(missileimage.length - 1)].targetx = mouseX;
missileimage[(missileimage.length - 1)].targety = (mouseY + 15);
};
} else {
missileimage[(missileimage.length - 1)].targetx = mouseX;
missileimage[(missileimage.length - 1)].targety = mouseY;
};
} else {
missileimage[(missileimage.length - 1)].targetx = mouseX;
missileimage[(missileimage.length - 1)].targety = mouseY;
};
};
};
missileimage[(missileimage.length - 1)].indexke = (missileimage.length - 1);
if ((((((_arg2 == 5)) && ((missileimage[(missileimage.length - 1)] is fxblizzard)))) || ((((_arg2 == 4)) && ((missileimage[(missileimage.length - 1)] is fxmeteor)))))){
missileimage[(missileimage.length - 1)].x = mouseX;
missileimage[(missileimage.length - 1)].y = mouseY;
};
if ((((_arg2 == 4)) && ((missileimage[(missileimage.length - 1)] is fxsmallmeteor)))){
missileimage[(missileimage.length - 1)].x = (_arg7.x + randRange(-40, 40));
missileimage[(missileimage.length - 1)].y = (_arg7.y + randRange(-40, 40));
};
if ((((((((((_arg2 == 2)) || ((_arg2 == 3)))) || ((_arg2 == 4)))) || ((_arg2 == 5)))) && ((((((((missileimage[(missileimage.length - 1)].y < batasatas)) || ((missileimage[(missileimage.length - 1)].targety < batasatas)))) || ((missileimage[(missileimage.length - 1)].y > batasbawah)))) || ((missileimage[(missileimage.length - 1)].targety > batasbawah)))))){
if (missileimage[(missileimage.length - 1)].y < batasatas){
missileimage[(missileimage.length - 1)].y = batasatas;
};
if (missileimage[(missileimage.length - 1)].targety < batasatas){
missileimage[(missileimage.length - 1)].targety = batasatas;
};
if (missileimage[(missileimage.length - 1)].y > batasbawah){
missileimage[(missileimage.length - 1)].y = batasbawah;
};
if (missileimage[(missileimage.length - 1)].targety > batasbawah){
missileimage[(missileimage.length - 1)].targety = batasbawah;
};
};
missileimage[(missileimage.length - 1)].slow = false;
missileimage[(missileimage.length - 1)].burn = false;
missileimage[(missileimage.length - 1)].toxic = false;
missileimage[(missileimage.length - 1)].healbool = false;
if ((((((((missileimage[(missileimage.length - 1)] is fxiceflake)) || ((missileimage[(missileimage.length - 1)] is fxicemine2)))) || ((missileimage[(missileimage.length - 1)] is fxblizzard)))) || ((missileimage[(missileimage.length - 1)] is fxwyvernbullet)))){
missileimage[(missileimage.length - 1)].slow = true;
};
if ((((missileimage[(missileimage.length - 1)] is fxlightheal)) || ((missileimage[(missileimage.length - 1)] is fxhealglobe)))){
missileimage[(missileimage.length - 1)].healbool = true;
};
if ((((((missileimage[(missileimage.length - 1)] is fxfirespit)) || ((missileimage[(missileimage.length - 1)] is fxfireballexplosion)))) || ((missileimage[(missileimage.length - 1)] is fxmeteorbomb)))){
if (burndamage != -1){
missileimage[(missileimage.length - 1)].burn = true;
missileimage[(missileimage.length - 1)].burndamage = burndamage;
};
} else {
if ((((missileimage[(missileimage.length - 1)] is fxrifleattack)) || ((missileimage[(missileimage.length - 1)] is fxshotgunattack)))){
if (toxicdamage != -1){
missileimage[(missileimage.length - 1)].toxic = true;
missileimage[(missileimage.length - 1)].toxicdamage = toxicdamage;
};
};
};
if ((missileimage[(missileimage.length - 1)] is fxstriker)){
missileimage[(missileimage.length - 1)].x = 368;
missileimage[(missileimage.length - 1)].y = 234;
} else {
if ((missileimage[(missileimage.length - 1)] is fxenchantingwind)){
missileimage[(missileimage.length - 1)].x = 25;
missileimage[(missileimage.length - 1)].y = 343;
missileimage[(missileimage.length - 1)].healbool = true;
};
};
missileimage[(missileimage.length - 1)].atk = _arg3;
missileimage[(missileimage.length - 1)].side = _arg4;
missileimage[(missileimage.length - 1)].movement = _arg2;
missileimage[(missileimage.length - 1)].breathtipe = -1;
missileimage[(missileimage.length - 1)].breathcd = 0;
missileimage[(missileimage.length - 1)].breathcdtemp = 0;
missileimage[(missileimage.length - 1)].stunchance = 0;
if ((((missileimage[(missileimage.length - 1)] is fxrifleattack)) || ((missileimage[(missileimage.length - 1)] is fxshotgunattack)))){
missileimage[(missileimage.length - 1)].stunchance = stunchance;
_local9 = randRange(0, 100);
if (_local9 <= critchance){
missileimage[(missileimage.length - 1)].atk = (missileimage[(missileimage.length - 1)].atk * critmultiplier);
if ((missileimage[(missileimage.length - 1)] is fxrifleattack)){
missileimage[(missileimage.length - 1)].breathtipe = 11;
} else {
missileimage[(missileimage.length - 1)].breathtipe = 12;
};
};
};
missileimage[(missileimage.length - 1)].hitlist = [];
missileimage[(missileimage.length - 1)].hittick = 0;
missileimage[(missileimage.length - 1)].frozebool = false;
if ((missileimage[(missileimage.length - 1)] is fxicemine2)){
missileimage[(missileimage.length - 1)].frozebool = true;
};
if ((((missileimage[(missileimage.length - 1)] is fxicemine)) || ((missileimage[(missileimage.length - 1)] is fxiceflake)))){
missileimage[(missileimage.length - 1)].breathtipe = 0;
} else {
if ((missileimage[(missileimage.length - 1)] is fxnapalm)){
missileimage[(missileimage.length - 1)].breathtipe = 7;
} else {
if ((missileimage[(missileimage.length - 1)] is fxuniblast)){
missileimage[(missileimage.length - 1)].breathtipe = 30;
} else {
if ((missileimage[(missileimage.length - 1)] is fxdragoncannon)){
missileimage[(missileimage.length - 1)].breathtipe = 8;
} else {
if ((missileimage[(missileimage.length - 1)] is fxspiderbullet)){
missileimage[(missileimage.length - 1)].breathtipe = 9;
} else {
if ((missileimage[(missileimage.length - 1)] is fxwyvernbullet)){
missileimage[(missileimage.length - 1)].breathtipe = 13;
} else {
if ((missileimage[(missileimage.length - 1)] is fxmagmabullet)){
missileimage[(missileimage.length - 1)].breathtipe = 23;
};
};
};
};
};
};
};
if ((((((_arg2 == 1)) || ((_arg2 == 7)))) || ((_arg2 == 8)))){
_local10 = implementmissilemovement1(missileimage[(missileimage.length - 1)]);
missileimage[(missileimage.length - 1)].speedx = _local10[0];
missileimage[(missileimage.length - 1)].speedy = _local10[1];
} else {
if (_arg2 == 2){
if ((((missileimage[(missileimage.length - 1)].side == 0)) && (!((missileimage[(missileimage.length - 1)] is fxgoospit))))){
missileimage[(missileimage.length - 1)].targetx = (missileimage[(missileimage.length - 1)].targetx + randRange(0, 40));
missileimage[(missileimage.length - 1)].targety = (missileimage[(missileimage.length - 1)].targety + randRange(-40, 40));
};
if (missileimage[(missileimage.length - 1)].targety < 128){
missileimage[(missileimage.length - 1)].targety = 128;
};
missileimage[(missileimage.length - 1)].timee = 25;
missileimage[(missileimage.length - 1)].speedx = ((missileimage[(missileimage.length - 1)].targetx - missileimage[(missileimage.length - 1)].x) / missileimage[(missileimage.length - 1)].timee);
_local11 = 24;
_local12 = ((missileimage[(missileimage.length - 1)].timee - ((missileimage[(missileimage.length - 1)].targety - missileimage[(missileimage.length - 1)].y) / _local11)) * -1);
missileimage[(missileimage.length - 1)].speedy = _local12;
missileimage[(missileimage.length - 1)].gravitasi = 2;
} else {
if ((((_arg2 == 4)) || ((_arg2 == 5)))){
if (_arg2 == 5){
missileimage[(missileimage.length - 1)].tick = 0;
missileimage[(missileimage.length - 1)].ticktemp = 0;
if (((((!((missileimage[(missileimage.length - 1)] is fxholywave))) && (!((missileimage[(missileimage.length - 1)] is fxdeathwave))))) && (!((missileimage[(missileimage.length - 1)] is fxenchantingwind))))){
missileimage[(missileimage.length - 1)].ticktemp = dpstick;
};
if ((missileimage[(missileimage.length - 1)] is fxblizzard)){
};
};
} else {
if (_arg2 == 6){
_local8 = unitimage[_arg6].mc1.mcbody.localToGlobal(new Point(0, 0));
missileimage[(missileimage.length - 1)].x = _local8.x;
missileimage[(missileimage.length - 1)].y = _local8.y;
missileimage[(missileimage.length - 1)].targete = _arg6;
missileimage[(missileimage.length - 1)].targetid = unitimage[_arg6].id;
};
};
};
};
missileimage[(missileimage.length - 1)].addEventListener(Event.ENTER_FRAME, missilewaiting);
}
public function mainmenuwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (mcmainmenu.currentLabel == "load"){
loadphase = 1;
};
if (loadphase == 1){
waitnexttime--;
if (waitnexttime <= 0){
_local2 = 1;
while (_local2 <= 2) {
_local3 = 1;
while (_local3 <= 2) {
_local4 = mcmainmenu.getChildByName(("mc" + heroindex));
trace(((("he : " + so.data.templar[_local3][heroindex]) + " ") + heroindex));
if (so.data.templar[_local3][heroindex] == 1){
if ((((heroindex == so.data.maintemplar[slotused])) && ((so.data.templarlevel[slotused][so.data.maintemplar[slotused]] > evocap)))){
trace("yA");
_local4.mc1.gotoAndStop(2);
};
_local4.gotoAndPlay(2);
soundtemplarappear.play(0, 1, new SoundTransform(volsfx));
break;
};
_local3++;
};
heroindex++;
_local2++;
};
waitnexttime = waitnexttimetemp;
if (heroindex > 8){
stage.removeEventListener(Event.ENTER_FRAME, mainmenuwaiting);
};
};
};
}
public function expoverwaiting(_arg1:Event):void{
mcexp.x = mouseX;
mcexp.y = mouseY;
}
public function createwall(){
var _local1:*;
var _local2:*;
_local1 = [118, 190, 264, 341];
_local2 = 0;
while (_local2 < 4) {
unitimage[unitimage.length] = new (wall1);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = (156 + randRange(0, 20));
unitimage[(unitimage.length - 1)].y = _local1[_local2];
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].hp = (wallhp * temparea);
unitimage[(unitimage.length - 1)].hptemp = (wallhp * temparea);
unitimage[(unitimage.length - 1)].ms = 0;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].wall = true;
unitimage[(unitimage.length - 1)].main = false;
unitimage[(unitimage.length - 1)].armor = 25;
createshadow(unitimage[(unitimage.length - 1)]);
_local2++;
};
}
public function loadmaintemplar(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_arg1.visible = true;
_arg1.btnslot.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_arg1.btnslot.removeEventListener(MouseEvent.CLICK, mapskillslot);
_arg1.btnslot.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_arg1.btnslot.addEventListener(MouseEvent.CLICK, mapskillslot);
_arg1.btnback.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_arg1.btnback.removeEventListener(MouseEvent.CLICK, mapskillback);
_arg1.btnback.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_arg1.btnback.addEventListener(MouseEvent.CLICK, mapskillback);
_local2 = so.data.maintemplar[slotused];
trace("a");
_arg1.mc1.gotoAndStop(_local2);
if (so.data.templarlevel[slotused][so.data.maintemplar[slotused]] > evocap){
_arg1.mc1.gotoAndStop(int((int(_arg1.mc1.currentFrame) + int(2))));
};
_arg1.txtlvl.text = so.data.templarlevel[slotused][_local2];
_arg1.btnexp.templare = so.data.maintemplar[slotused];
_arg1.btnexp.removeEventListener(MouseEvent.MOUSE_OVER, exptextover);
_arg1.btnexp.addEventListener(MouseEvent.MOUSE_OVER, exptextover);
_arg1.btnexp.removeEventListener(MouseEvent.MOUSE_OUT, exptextout);
_arg1.btnexp.addEventListener(MouseEvent.MOUSE_OUT, exptextout);
_local3 = _arg1.txtname;
_local3.text = "asd";
trace("a");
_local4 = _local3.textHeight;
_local5 = -56;
_local3.text = templarname[_local2];
if (_local3.textHeight <= _local4){
_local3.y = _local5;
} else {
_local6 = 1;
while (_local6 <= 5) {
if (_local3.textHeight <= int(((21 + (_local6 * _local4)) + 2))){
_local3.y = (_local5 - (_local6 * 5));
break;
};
_local6++;
};
};
_arg1.txthp.text = (so.data.templarlevel[slotused][_local2] * templarhp[so.data.maintemplar[slotused]]);
_arg1.mcexp.mc1.width = ((so.data.expe[slotused][so.data.maintemplar[slotused]] / (so.data.templarlevel[slotused][_local2] * expperlevel)) * 52);
trace(("HM ; " + so.data.relic[slotused]));
loadrelicstatus();
loadskilltree(_arg1);
}
public function balikincaptainkeposisi(){
var _local1:*;
var _local2:*;
trace("BALIKIN CAP KE POSISI");
_local1 = 0;
while (_local1 < unitimage.length) {
if ((((((unitimage[_local1].captain == true)) && ((unitimage[_local1].die == false)))) && ((unitimage[_local1].notallowed == false)))){
_local2 = false;
if ((unitimage[_local1] is hero5)){
unitimage[_local1].targetpoint = [228, 242];
_local2 = true;
} else {
if ((((unitimage[_local1] is hero3)) || ((unitimage[_local1] is hero4)))){
unitimage[_local1].targetpoint = [372, 237];
_local2 = true;
};
};
if (_local2 == true){
unitimage[_local1].stat = "chase";
unitimage[_local1].targetenemy = false;
unitimage[_local1].donemovex = false;
unitimage[_local1].donemovey = false;
};
};
_local1++;
};
}
public function skilloutbutton(_arg1:MouseEvent):void{
if (_arg1.currentTarget.parent.name != "mcui"){
_arg1.currentTarget.mc1.gotoAndStop(1);
};
stage.removeEventListener(Event.ENTER_FRAME, skillinfowaiting);
mcskilldesc.x = -200;
mcskilldesc.y = -200;
}
public function createonesoul(_arg1:int){
soundressurection.play(0, 1, new SoundTransform(volsfx));
fximage[fximage.length] = new (fxonesoul);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].x = unitimage[_arg1].x;
fximage[(fximage.length - 1)].y = unitimage[_arg1].y;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].resindex = _arg1;
fximage[(fximage.length - 1)].blendMode = "add";
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, onesoulwaiting);
}
public function chainlightingwaiting(_arg1:Event):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:*;
if (pausegame == false){
_local2 = 0;
while (_local2 < 5) {
_local3 = (chaintarget[0] - chainposisi[0]);
_local4 = (chaintarget[1] - chainposisi[1]);
_local5 = 0;
if (Math.abs(_local3) > Math.abs(_local4)){
_local5 = (_local3 / 10);
} else {
_local5 = (_local4 / 10);
};
_local7 = (chainposisi[0] + ((_local3 / Math.abs(_local5)) * chainindex));
_local8 = (chainposisi[1] + ((_local4 / Math.abs(_local5)) * chainindex));
if (Math.abs(_local3) > Math.abs(_local4)){
_local6 = {breathtipe:2, x:_local7, y:_local8};
} else {
_local6 = {breathtipe:3, x:_local7, y:_local8};
};
createadditionalfx(_local6);
chainindex++;
if (chainindex > Math.abs(_local5)){
_local9 = [soundchainlighting1, soundchainlighting2];
_local10 = randRange(0, (_local9.length - 1));
_local9[_local10].play(0, 1, new SoundTransform(volsfx));
stage.removeEventListener(Event.ENTER_FRAME, chainlightingwaiting);
_local11 = carimain();
_local6 = {targete:chainenemy[0], targetid:chainenemy[1], side:1, healbool:false};
_local12 = cekvalidunittarget(_local6);
if (_local12 == true){
createmissile(fxchainlightingzap, 6, chaindamage, 1, _local11, chainenemy[0], null);
};
chainbounce--;
if (chainbounce > 0){
_local13 = {x:_local7, y:_local8};
createchainlighting(chaindamage, chainbounce, _local13);
_local13 = null;
};
break;
};
_local6 = null;
_local2++;
};
};
}
public function story2skip(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
transisi("main menu");
stage.removeEventListener(Event.ENTER_FRAME, story2waiting);
}
public function transisi(_arg1:String){
mctransisi.ke = _arg1;
mctransisi.gotoAndPlay(2);
stage.addEventListener(Event.ENTER_FRAME, transisiwaiting);
}
public function healunitini(_arg1:int, _arg2:int){
var _local3:Point;
var _local4:*;
createsfx(7);
if (_arg2 <= 0){
_arg2 = 1;
};
unitimage[_arg1].hp = (unitimage[_arg1].hp + _arg2);
if (unitimage[_arg1].hp >= unitimage[_arg1].hptemp){
unitimage[_arg1].hp = unitimage[_arg1].hptemp;
if (unitimage[_arg1].main == true){
hp = unitimage[_arg1].hp;
updatehpglobe();
};
};
unitimage[_arg1].mchpbar.visible = true;
unitimage[_arg1].mchpbar.mc1.width = ((unitimage[_arg1].hp / unitimage[_arg1].hptemp) * 22);
if ((unitimage[_arg1] is wall1)){
if (unitimage[_arg1].die == true){
unitimage[_arg1].die = false;
unitimage[_arg1].mc1.gotoAndStop(1);
};
};
_local3 = unitimage[_arg1].mc1.mcbody.localToGlobal(new Point(0, 0));
_local4 = {x:_local3.x, y:_local3.y, breathtipe:17};
createadditionalfx(_local4);
_local4 = null;
}
public function updatehpglobe(){
var _local1:*;
var _local2:*;
_local1 = mcui.mchptop.currentFrame;
_local2 = int(((1 - (hp / hptemp)) * 140));
mcui.timee = 10;
mcui.minuser = ((_local2 - _local1) / mcui.timee);
mcui.txthp.text = ((int(hp) + "/") + hptemp);
mcui.mcexp.width = int(((so.data.expe[slotused][so.data.maintemplar[slotused]] / (so.data.templarlevel[slotused][so.data.maintemplar[slotused]] * expperlevel)) * 234));
}
public function ghostwaiting(_arg1:Event):void{
var _local2:*;
if (pausegame == false){
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
soundressurection.play(0, 1, new SoundTransform(volsfx));
removethisfx(_arg1.currentTarget);
_local2 = carimain();
fximage[fximage.length] = new (fxressurected);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].x = _local2.x;
fximage[(fximage.length - 1)].y = _local2.y;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].jeda = 0;
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, fxwaiting);
hp = hptemp;
_local2.notallowed = true;
_local2.mc1.gotoAndPlay("res");
_local2.stat = "res";
_local2.hp = hptemp;
_local2.mchpbar.mc1.width = ((_local2.hp / _local2.hptemp) * 22);
updatehpglobe();
stage.addEventListener(Event.ENTER_FRAME, herowaiting);
};
};
}
public function createshadow(_arg1:Object){
if (((!((_arg1 is enemy5))) && (!((_arg1 is fxvoidstone))))){
shadowimage[shadowimage.length] = new (ingameshadow);
if ((((_arg1.main == true)) || ((_arg1.captain == true)))){
shadowimage[(shadowimage.length - 1)].gotoAndStop(templarshadow[temparea][_arg1.nomor]);
} else {
if (_arg1.wall == true){
if ((_arg1 is wall1)){
if (temparea == 1){
shadowimage[(shadowimage.length - 1)].gotoAndStop(1);
} else {
shadowimage[(shadowimage.length - 1)].gotoAndStop(10);
};
} else {
if ((_arg1 is wall2)){
shadowimage[(shadowimage.length - 1)].gotoAndStop(3);
} else {
if ((_arg1 is wall3)){
shadowimage[(shadowimage.length - 1)].gotoAndStop(8);
} else {
if ((_arg1 is wall4)){
shadowimage[(shadowimage.length - 1)].gotoAndStop(9);
};
};
};
};
} else {
if (_arg1.side == 0){
shadowimage[(shadowimage.length - 1)].gotoAndStop(enemyshadow[_arg1.nomor]);
};
};
};
addChildAt(shadowimage[(shadowimage.length - 1)], (getChildIndex(mcshadowposition) - 1));
shadowimage[(shadowimage.length - 1)].x = _arg1.x;
shadowimage[(shadowimage.length - 1)].y = _arg1.y;
shadowimage[(shadowimage.length - 1)].indexke = (shadowimage.length - 1);
shadowimage[(shadowimage.length - 1)].followid = _arg1.id;
shadowimage[(shadowimage.length - 1)].followindex = _arg1.indexke;
shadowimage[(shadowimage.length - 1)].addEventListener(Event.ENTER_FRAME, shadowwaiting);
};
}
public function removethisshadow(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = _arg1.indexke;
shadowimage[_local2].removeEventListener(Event.ENTER_FRAME, shadowwaiting);
removeChild(shadowimage[_local2]);
shadowimage[_local2] = null;
shadowimage.splice(_local2, 1);
_local3 = _local2;
while (_local3 < shadowimage.length) {
shadowimage[_local3].indexke--;
_local3++;
};
}
public function playgame(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
gotoAndPlay("preloader2");
}
public function openenemyinfo(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
soundclick.play(0, 1, new SoundTransform(volsfx));
_local2 = _arg1.currentTarget.name;
_local3 = "";
_local4 = 2;
while (_local4 < _local2.length) {
_local3 = (_local3 + _local2.charAt(_local4));
_local4++;
};
mcmap.mcscourge.indexke = _local3;
loadscourge();
}
public function loadcharselect(){
mccharselect.mcdesc.visible = false;
mccharselect.mcframe.visible = false;
mccharselect.mcframe.mouseChildren = false;
mccharselect.mcframe.mouseEnabled = false;
mccharselect.mcdone.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mccharselect.mcdone.removeEventListener(MouseEvent.CLICK, charselectdone);
mccharselect.mcdone.addEventListener(MouseEvent.MOUSE_OVER, oversound);
btnback.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
btnback.removeEventListener(MouseEvent.CLICK, charselectback);
btnback.addEventListener(MouseEvent.MOUSE_OVER, oversound);
btnback.addEventListener(MouseEvent.CLICK, charselectback);
mccharselect.mc1.buttonMode = true;
mccharselect.mc1.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mccharselect.mc1.removeEventListener(MouseEvent.CLICK, charclick);
mccharselect.mc1.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mccharselect.mc1.addEventListener(MouseEvent.CLICK, charclick);
mccharselect.mc1.removeEventListener(MouseEvent.MOUSE_OVER, overhero);
mccharselect.mc1.addEventListener(MouseEvent.MOUSE_OVER, overhero);
mccharselect.mc1.removeEventListener(MouseEvent.MOUSE_OUT, outhero);
mccharselect.mc1.addEventListener(MouseEvent.MOUSE_OUT, outhero);
mccharselect.mc2.buttonMode = true;
mccharselect.mc2.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mccharselect.mc2.removeEventListener(MouseEvent.CLICK, charclick);
mccharselect.mc2.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mccharselect.mc2.addEventListener(MouseEvent.CLICK, charclick);
mccharselect.mc2.removeEventListener(MouseEvent.MOUSE_OVER, overhero);
mccharselect.mc2.addEventListener(MouseEvent.MOUSE_OVER, overhero);
mccharselect.mc2.removeEventListener(MouseEvent.MOUSE_OUT, outhero);
mccharselect.mc2.addEventListener(MouseEvent.MOUSE_OUT, outhero);
}
public function cekarmorornot(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local1 = loaderInfo.url;
armor = false;
_local2 = "armorgames";
_local3 = 0;
_local4 = false;
_local5 = 0;
while (_local5 < _local1.length) {
trace(((_local1.charAt(_local5) + " bandingin ") + _local2.charAt(_local3)));
if (_local1.charAt(_local5) == _local2.charAt(_local3)){
trace("INI SAMA");
_local3++;
++_local5;
_local6 = _local5;
while (_local6 < _local1.length) {
trace(((_local1.charAt(_local6) + " bandingin ") + _local2.charAt(_local3)));
if (_local1.charAt(_local6) == _local2.charAt(_local3)){
if (_local3 == (_local2.length - 1)){
mcon.gotoAndStop(1);
armor = true;
//unresolved jump
};
_local3++;
} else {
_local3 = 0;
break;
};
_local6++;
};
};
_local5++;
};
}
public function mainattack(){
var _local1:*;
_local1 = carimain();
mcmouse.mc3.mc1.gotoAndPlay(2);
if (mouseX < _local1.x){
if (_local1.directione == "right"){
_local1.directione = "left";
_local1.scaleX = (_local1.scaleX * -1);
_local1.mchpbar.scaleX = (_local1.mchpbar.scaleX * -1);
_local1.mclevelup.scaleX = (_local1.mclevelup.scaleX * -1);
};
} else {
if (_local1.directione == "left"){
_local1.directione = "right";
_local1.scaleX = (_local1.scaleX * -1);
_local1.mchpbar.scaleX = (_local1.mchpbar.scaleX * -1);
_local1.mclevelup.scaleX = (_local1.mclevelup.scaleX * -1);
};
};
}
public function createspray(){
sprayimage[sprayimage.length] = new (fxspray);
addChildAt(sprayimage[(sprayimage.length - 1)], getChildIndex(mcsprayposition));
sprayimage[(sprayimage.length - 1)].x = randRange(11, 686);
sprayimage[(sprayimage.length - 1)].y = randRange(-12, -51);
sprayimage[(sprayimage.length - 1)].speedy = randRange(2, 6);
sprayimage[(sprayimage.length - 1)].indexke = (sprayimage.length - 1);
sprayimage[(sprayimage.length - 1)].addEventListener(Event.ENTER_FRAME, sprayendingwaiting);
}
public function story1skip(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
so.data.firstanimation[slotused] = true;
transisi("ingame");
stage.removeEventListener(Event.ENTER_FRAME, story1waiting);
}
public function ingamequit(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
saveAGI();
cleanupspray();
transisi("map");
}
public function clikGF(_arg1:MouseEvent):void{
trace(_arg1.currentTarget.stat);
trace(((_arg1.currentTarget.x + " ") + _arg1.currentTarget.y));
trace(_arg1.currentTarget.targetpoint);
trace(((_arg1.currentTarget.donemovex + " ") + _arg1.currentTarget.donemovey));
trace(_arg1.currentTarget.targetenemy);
trace(_arg1.currentTarget.targete);
trace(_arg1.currentTarget.fallback);
}
public function loadmainmenu(){
mcmainmenu.mcdelete.visible = false;
mcmainmenu.mcdelete.btnyes.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.mcdelete.btnyes.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.mcdelete.btnyes.removeEventListener(MouseEvent.CLICK, deleteyes);
mcmainmenu.mcdelete.btnyes.addEventListener(MouseEvent.CLICK, deleteyes);
mcmainmenu.mcdelete.btncancel.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.mcdelete.btncancel.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.mcdelete.btncancel.removeEventListener(MouseEvent.CLICK, deletecancel);
mcmainmenu.mcdelete.btncancel.addEventListener(MouseEvent.CLICK, deletecancel);
mcmainmenu.btnarmor.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btnarmor.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btnarmor.removeEventListener(MouseEvent.CLICK, clickAG);
mcmainmenu.btnarmor.addEventListener(MouseEvent.CLICK, clickAG);
mcmainmenu.btngoody.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btngoody.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btngoody.removeEventListener(MouseEvent.CLICK, clickGoodyFB);
mcmainmenu.btngoody.addEventListener(MouseEvent.CLICK, clickGoodyFB);
mcmainmenu.btnfb.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btnfb.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btnfb.removeEventListener(MouseEvent.CLICK, clickAGFB);
mcmainmenu.btnfb.addEventListener(MouseEvent.CLICK, clickAGFB);
mcmainmenu.mcoption.visible = false;
stage.addEventListener(Event.ENTER_FRAME, mainmenuwaiting);
mcmainmenu.btnmoregames.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btnmoregames.removeEventListener(MouseEvent.CLICK, clickAG);
mcmainmenu.btnmoregames.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btnmoregames.addEventListener(MouseEvent.CLICK, clickAG);
mcmainmenu.btnplay.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btnplay.removeEventListener(MouseEvent.CLICK, mainmenuplay);
mcmainmenu.btnplay.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btnplay.addEventListener(MouseEvent.CLICK, mainmenuplay);
mcmainmenu.btncredits.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btncredits.removeEventListener(MouseEvent.CLICK, mainmenucredits);
mcmainmenu.btncredits.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.btncredits.addEventListener(MouseEvent.CLICK, mainmenucredits);
mcmainmenu.mcoption.btnback.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.mcoption.btnback.removeEventListener(MouseEvent.CLICK, mainmenuback);
mcmainmenu.mcoption.btnback.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmainmenu.mcoption.btnback.addEventListener(MouseEvent.CLICK, mainmenuback);
loadslot();
}
public function scourgeinfoback(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
cekpause();
mcscourgeinfo.gotoAndStop(1);
}
public function ingameopenskill(_arg1:MouseEvent):void{
openskills();
}
public function cccaptainover(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(2);
}
public function cekpatch(){
var _local1:*;
if (so.data.chandeliervictim == undefined){
so.data.chandeliervictim = 0;
};
if (so.data.gameover == undefined){
so.data.gameover = [];
_local1 = 1;
while (_local1 <= 2) {
so.data.gameover[_local1] = false;
_local1++;
};
};
if (so.data.audiosetting == undefined){
so.data.audiosetting = [1, 1];
};
if (so.data.tutorialskill == undefined){
so.data.tutorialskill = [];
_local1 = 1;
while (_local1 <= 2) {
so.data.tutorialskill[_local1] = false;
_local1++;
};
};
if (so.data.firstanimation == undefined){
so.data.firstanimation = [];
_local1 = 1;
while (_local1 <= 2) {
so.data.firstanimation[_local1] = false;
_local1++;
};
};
if (so.data.tutorialtile1 == undefined){
so.data.tutorialtile1 = [];
_local1 = 1;
while (_local1 <= 2) {
so.data.tutorialtile1[_local1] = false;
_local1++;
};
};
if (so.data.relicclicked == undefined){
so.data.relicclicked = [];
_local1 = 1;
while (_local1 <= 2) {
so.data.relicclicked[_local1] = [undefined, 0, 0, 0, 0];
_local1++;
};
};
}
public function keyboardwaitingup(_arg1:KeyboardEvent):void{
var _local2:*;
if ((((_arg1.keyCode == 65)) || ((_arg1.keyCode == 37)))){
if (movementcommand == "left"){
movementcommand = "";
};
} else {
if ((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 39)))){
if (movementcommand == "right"){
movementcommand = "";
};
};
};
if ((((_arg1.keyCode == 87)) || ((_arg1.keyCode == 38)))){
if (movementcommand2 == "top"){
movementcommand2 = "";
};
} else {
if ((((_arg1.keyCode == 83)) || ((_arg1.keyCode == 40)))){
if (movementcommand2 == "bottom"){
movementcommand2 = "";
};
};
};
if ((((movementcommand2 == "")) && ((movementcommand == "")))){
_local2 = carimain();
if (_local2.die == false){
if (_local2.mc1.currentLabel != "idle"){
_local2.mc1.gotoAndPlay("idle");
};
};
};
}
public function removethisunit(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = _arg1.indexke;
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, unitwaiting);
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, arcturretwaiting);
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, tinkturretwaiting);
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, tinkengineerwaiting);
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, blobwaiting);
unitimage[_local2].removeEventListener(Event.ENTER_FRAME, tilewaiting);
removeChild(unitimage[_local2]);
unitimage[_local2] = null;
unitimage.splice(_local2, 1);
_local3 = _local2;
while (_local3 < unitimage.length) {
unitimage[_local3].indexke--;
_local3++;
};
}
public function scalethisenemy(_arg1:Object){
_arg1.mcstun.scaleX = (_arg1.mcstun.scaleX * -1);
_arg1.mcfroze.scaleX = (_arg1.mcfroze.scaleX * -1);
_arg1.mcarmor.scaleX = (_arg1.mcarmor.scaleX * -1);
_arg1.mctangled.scaleX = (_arg1.mctangled.scaleX * -1);
_arg1.mcblind.scaleX = (_arg1.mcblind.scaleX * -1);
}
public function tinkturretwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:Point;
var _local6:*;
var _local7:*;
if (pausegame == false){
if (_arg1.currentTarget.currentLabel != "summon"){
if (_arg1.currentTarget.stat != "die"){
_arg1.currentTarget.reload--;
if (_arg1.currentTarget.reload <= 0){
_arg1.currentTarget.reload = tinkturretreload;
_local2 = [];
_local3 = _arg1.currentTarget.range;
_local4 = 0;
while (_local4 < unitimage.length) {
if ((((((unitimage[_local4].die == false)) && ((unitimage[_local4].notallowed == false)))) && (!((unitimage[_local4].side == _arg1.currentTarget.side))))){
if ((((unitimage[_local4].x > (_arg1.currentTarget.x - _local3))) && ((unitimage[_local4].x < (_arg1.currentTarget.x + _local3))))){
if ((((unitimage[_local4].y < (_arg1.currentTarget.y + _local3))) && ((unitimage[_local4].y > (_arg1.currentTarget.y - _local3))))){
_local2[_local2.length] = _local4;
};
};
};
_local4++;
};
if (_local2.length > 0){
if (_arg1.currentTarget.currentLabel != "attack"){
_arg1.currentTarget.gotoAndPlay("attack");
};
_local5 = _arg1.currentTarget.mcmissile.localToGlobal(new Point(0, 0));
_local6 = {x:_local5.x, y:_local5.y, breathtipe:15};
createadditionalfx(_local6);
_local7 = randRange(0, (_local2.length - 1));
_local7 = _local2[_local7];
createmissile(fxhero5bullet, 1, _arg1.currentTarget.atk, 1, _arg1.currentTarget.mcmissile, _local7, null);
_local6 = null;
};
};
_arg1.currentTarget.duratione--;
_arg1.currentTarget.mchpbar.mc1.width = ((_arg1.currentTarget.duratione / _arg1.currentTarget.durationetemp) * 22);
if (_arg1.currentTarget.duratione <= 0){
_arg1.currentTarget.gotoAndPlay("die");
_arg1.currentTarget.stat = "die";
};
} else {
if (_arg1.currentTarget.currentLabel == "donedie"){
removethisunit(_arg1.currentTarget);
};
};
};
};
}
public function soundchannelenemyattackwaiting2(_arg1:Event){
soundchannelenemyattack2.stop();
soundchannelenemyattack2 = null;
}
public function soundchannelenemyattackwaiting4(_arg1:Event){
soundchannelenemyattack4.stop();
soundchannelenemyattack4 = null;
}
public function soundchannelenemyattackwaiting5(_arg1:Event){
soundchannelenemyattack5.stop();
soundchannelenemyattack5 = null;
}
public function soundchannelenemyattackwaiting1(_arg1:Event){
soundchannelenemyattack1.stop();
soundchannelenemyattack1 = null;
}
public function soundchannelenemyattackwaiting3(_arg1:Event){
soundchannelenemyattack3.stop();
soundchannelenemyattack3 = null;
}
public function mainmenuplay(_arg1:Event):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mcmainmenu.btnplay.visible = false;
mcmainmenu.btncredits.visible = false;
mcmainmenu.btnmoregames.visible = false;
mcmainmenu.mcoption.visible = true;
}
public function story2waiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
if (mcstory2.currentLabel == "hero2walk"){
mcstory2.mchero2.mc1.gotoAndPlay("walk");
} else {
if (mcstory2.currentLabel == "hero2stop"){
mcstory2.mchero2.mc1.gotoAndPlay("idle");
};
};
if (mcstory2.currentLabel == "hero4walk"){
mcstory2.mchero4.mc1.gotoAndPlay("walk");
} else {
if (mcstory2.currentLabel == "hero4stop"){
mcstory2.mchero4.mc1.gotoAndPlay("idle");
};
};
if (mcstory2.currentLabel == "hero3walk"){
mcstory2.mchero3.mc1.gotoAndPlay("walk");
};
if (mcstory2.currentLabel == "herowalk"){
mcstory2.mchero.mc1.gotoAndPlay("walk");
};
if (mcstory2.currentLabel == "soundrun"){
runsoundtime--;
if (runsoundtime <= 0){
_local2 = [soundstep, soundstep2, soundstep3];
_local3 = randRange(0, (_local2.length - 1));
_local2[_local3].play(0, 1, new SoundTransform(volsfx));
runsoundtime = runsoundtimetemp;
};
};
if (mcstory2.phase == 1){
if (mcstory2.currentLabel == "text"){
_local2 = [soundpop1, soundpop2, soundpop3];
_local3 = randRange(0, (_local2.length - 1));
_local2[_local3].play(0, 1, new SoundTransform(volsfx));
mcstory2.stop();
mcstory2.mctxt.gotoAndPlay(1);
mcstory2.phase = 2;
mcstory2.textwait2 = textwait2;
if (textesaidby2[textindex2] == 1){
_local4 = texte2[textindex2][so.data.maintemplar[slotused]];
} else {
_local8 = textesaidby2[textindex2];
_local9 = [undefined, undefined, [3, 4], [5, 6], [7, 8]];
_local10 = _local9[_local8][0];
while (_local10 <= _local9[_local8][1]) {
trace(((("ya ke : " + _local10) + " ") + so.data.templar[slotused][_local10]));
if (so.data.templar[slotused][_local10] == 1){
trace("ini aja ");
_local4 = texte2[textindex2][_local10];
break;
};
_local10++;
};
};
_local5 = mcstory2.mctxt.txt1;
_local5.text = "asd";
_local6 = _local5.textHeight;
_local7 = -21.8;
_local5.text = _local4;
if (_local5.textHeight <= _local6){
_local5.y = _local7;
} else {
_local11 = 1;
while (_local11 <= 5) {
if (_local5.textHeight <= int(((21 + (_local11 * _local6)) + 2))){
_local5.y = (_local7 - (_local11 * 5));
break;
};
_local11++;
};
};
textindex2++;
};
} else {
if (mcstory2.phase == 2){
mcstory2.textwait2--;
if (mcstory2.textwait2 <= 0){
mcstory2.phase = 1;
_local12 = int((int(mcstory2.currentFrame) + int(1)));
mcstory2.gotoAndPlay(_local12);
};
};
};
if (mcstory2.currentFrame == mcstory2.totalFrames){
transisi("main menu");
stage.removeEventListener(Event.ENTER_FRAME, story2waiting);
};
}
public function mapskillslot(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mcui.visible = true;
loadskilltree(mcmap.mcskills);
}
public function loadchoosecaptain(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
mcchoosecaptain.mcframe.visible = false;
mcchoosecaptain.mcframe.mouseChildren = false;
mcchoosecaptain.mcframe.mouseEnabled = false;
mcdone.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcdone.removeEventListener(MouseEvent.CLICK, ccdone);
mcdone.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local1 = 1;
while (_local1 <= 2) {
_local2 = mcchoosecaptain.getChildByName(("mc" + _local1));
_local3 = captainlist[so.data.choosecaptainke[slotused]][_local1];
_local2.mc1.mc1.mc1.gotoAndStop(_local3);
_local2.buttonMode = true;
_local2.mc1.txttitle.text = templarname[_local3].toUpperCase();
_local2.mc1.txtdesc.text = templardesc[_local3];
_local2.mc1.templarke = _local3;
_local4 = 1;
while (_local4 <= 3) {
_local5 = _local2.mc1.getChildByName(("mcskill" + _local4));
_local5.mc1.mc1.gotoAndStop((("skill" + _local3) + _local4));
_local5.mc1.mc2.gotoAndStop((("skill" + _local3) + _local4));
_local5.gotoAndStop(2);
_local5.mc1.gotoAndStop(1);
_local5.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local5.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local5.removeEventListener(MouseEvent.MOUSE_OVER, skilloverbutton);
_local5.addEventListener(MouseEvent.MOUSE_OVER, skilloverbutton);
_local5.removeEventListener(MouseEvent.MOUSE_OVER, skillovertext2);
_local5.addEventListener(MouseEvent.MOUSE_OVER, skillovertext2);
_local5.removeEventListener(MouseEvent.MOUSE_OUT, skilloutbutton);
_local5.addEventListener(MouseEvent.MOUSE_OUT, skilloutbutton);
_local4++;
};
_local2.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local2.removeEventListener(MouseEvent.CLICK, ccselectcaptain);
_local2.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local2.addEventListener(MouseEvent.CLICK, ccselectcaptain);
_local2.addEventListener(MouseEvent.MOUSE_OVER, cccaptainover);
_local2.addEventListener(MouseEvent.MOUSE_OVER, cccaptainover);
_local2.addEventListener(MouseEvent.MOUSE_OUT, cccaptainout);
_local2.addEventListener(MouseEvent.MOUSE_OUT, cccaptainout);
_local1++;
};
}
public function createblobhere(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
soundsplat1.play(0, 1, new SoundTransform(volsfx));
unitimage[unitimage.length] = new (fxblob);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = _arg1.x;
unitimage[(unitimage.length - 1)].y = _arg1.y;
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].reload = blobreload;
_local2 = (so.data.templarlevel[slotused][7] - captainskillreq[3]);
_local3 = (captainskillnumba[7][1][1][1] + (captainskillnumbaincrease[7][1][1] * _local2));
unitimage[(unitimage.length - 1)].atk = _local3;
unitimage[(unitimage.length - 1)].duratione = (blobduration * 25);
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, blobwaiting);
_local4 = {x:_arg1.x, y:_arg1.y, breathtipe:18};
createadditionalfx(_local4);
_local4 = null;
fximage[fximage.length] = new (fxblobshadow);
addChildAt(fximage[(fximage.length - 1)], (getChildIndex(mcshadowposition) - 1));
fximage[(fximage.length - 1)].x = _arg1.x;
fximage[(fximage.length - 1)].y = _arg1.y;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].jeda = 0;
fximage[(fximage.length - 1)].phase = 1;
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, fxwaiting);
}
public function cccaptainout(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
if (_local2 != selectthiscap){
_arg1.currentTarget.gotoAndStop(1);
};
}
public function activatecatapult(){
trace("CATAPULT");
catapulttime = 0;
catapultindex = 0;
stage.addEventListener(Event.ENTER_FRAME, catapultwaiting);
}
public function loadenemyinfo(_arg1:Object, _arg2:int){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
trace(("load enemy : " + _arg2));
_arg1.txtnot.visible = false;
_arg1.mcenemy.gotoAndStop(2);
_arg1.mcenemy.mc1.gotoAndStop(_arg2);
_local3 = enemyname[_arg2];
_arg1.txtname.text = _local3;
_local4 = _arg1.txtname;
_local4.text = "asd";
_local5 = _local4.textHeight;
_local6 = 0;
if (currentLabel == "map"){
_local6 = -36;
} else {
_local6 = -87;
};
_local4.text = _local3;
if (_local4.textHeight <= _local5){
_local4.y = _local6;
} else {
_local7 = 1;
while (_local7 <= 5) {
if (_local4.textHeight <= int(((21 + (_local7 * _local5)) + 2))){
_local4.y = (_local6 - (_local7 * 5));
break;
};
_local7++;
};
};
_arg1.txthp.text = enemystat[_arg2][0];
_arg1.txtatk.text = enemystat[_arg2][1];
_arg1.txtdesc.text = enemydesc[_arg2];
}
public function skilloverbutton(_arg1:MouseEvent):void{
_arg1.currentTarget.mc1.gotoAndStop(2);
}
public function gamewaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:Point;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
cekskilldrag();
txtnum.text = String(numChildren);
if (mcskills.currentFrame != 1){
mcmouse.mc3.visible = false;
mcmouse.visible = true;
Mouse.show();
} else {
if ((((((((((mcmouse.mcbody.hitTestObject(mcnewenemy) == true)) && (!((mcnewenemy.currentFrame == 1))))) || ((((mcmouse.mcbody.hitTestObject(mcui.mcbody) == true)) && ((mcskills.currentFrame == 1)))))) || ((pausegame == true)))) || ((((mcmouse.mcbody.hitTestObject(mcbg.btnrelic4) == true)) && ((mcbg.btnrelic4.visible == true)))))){
mcmouse.visible = false;
Mouse.show();
} else {
mcmouse.mc3.visible = true;
mcmouse.visible = true;
Mouse.hide();
};
};
_local2 = 1;
while (_local2 < skillno.length) {
_local3 = mcui.getChildByName(("mcskill" + _local2));
if (globalcd[skillno[_local2]] > 0){
_local4 = (globalcd[skillno[_local2]] / skillcdtemp[_local2]);
_local3.mccd.txt1.text = (int((globalcd[skillno[_local2]] / 25)) + 1);
_local3.mcmask1.gotoAndStop(int(((1 - _local4) * 100)));
_local3.mcmask2.height = int((_local4 * 48));
} else {
if (pausegame == false){
_local5 = carimain();
if (_local5.die == false){
if ((((skillno[_local2] == 9)) && ((so.data.maintemplar[slotused] == 1)))){
_local6 = cekthundara();
if (_local6 == true){
globalcd[skillno[_local2]] = skillcdtemp[_local2];
};
};
if ((((skillno[_local2] == 10)) && ((so.data.maintemplar[slotused] == 1)))){
_local7 = templarskilldamage[so.data.maintemplar[slotused]][10][2][so.data.skilllevel[slotused][10]];
if (firespirit < _local7){
createfirespirit();
globalcd[skillno[_local2]] = skillcdtemp[_local2];
};
};
if ((((skillno[_local2] == 1)) && ((so.data.maintemplar[slotused] == 2)))){
rifleindex = 0;
_local8 = [soundgun1, soundgun2, soundgun3, soundgun4];
_local9 = randRange(0, (_local8.length - 1));
_local8[_local9].play(0, 1, new SoundTransform(volsfx));
_local10 = 0;
while (_local10 < rifleamount) {
_local11 = templarskilldamage[so.data.maintemplar[slotused]][1][1][so.data.skilllevel[slotused][1]];
_local11 = (templarskilldamage[so.data.maintemplar[slotused]][1][1][so.data.skilllevel[slotused][1]] + (_local11 * (riflemastery / 100)));
_local5 = carimain();
if (_local5.mc1.currentLabel != "skill"){
_local5.mc1.gotoAndPlay("skill");
};
_local12 = _local5.mc1.mcmissile.localToGlobal(new Point(0, 0));
_local13 = {x:_local12.x, y:_local12.y, breathtipe:5};
createadditionalfx(_local13);
createmissile(fxrifleattack, 1, _local11, 1, _local5.mc1.mcmissile, -1, null);
mainattack();
globalcd[skillno[_local2]] = skillcdtemp[_local2];
_local13 = {x:_local12.x, y:_local12.y, breathtipe:11};
_local14 = 0;
while (_local14 < 6) {
createadditionalfx(_local13);
_local14++;
};
_local13 = null;
rifleindex++;
_local10++;
};
} else {
if ((((skillno[_local2] == 5)) && ((so.data.maintemplar[slotused] == 2)))){
soundshotgun.play(0, 1, new SoundTransform(volsfx));
_local11 = templarskilldamage[so.data.maintemplar[slotused]][5][1][so.data.skilllevel[slotused][5]];
_local11 = (templarskilldamage[so.data.maintemplar[slotused]][5][1][so.data.skilllevel[slotused][5]] + (_local11 * (shotgunmastery / 100)));
_local5 = carimain();
if (_local5.mc1.currentLabel != "skill"){
_local5.mc1.gotoAndPlay("skill");
};
_local12 = _local5.mc1.mcmissile.localToGlobal(new Point(0, 0));
_local13 = {x:_local12.x, y:_local12.y, breathtipe:10};
createadditionalfx(_local13);
createmissile(fxshotgunattack, 1, _local11, 1, _local5.mc1.mcmissile, -1, null);
mainattack();
globalcd[skillno[_local2]] = skillcdtemp[_local2];
_local13 = {x:_local12.x, y:_local12.y, breathtipe:12};
_local14 = 0;
while (_local14 < 6) {
createadditionalfx(_local13);
_local14++;
};
_local13 = null;
};
};
};
_local3.mccd.txt1.text = "";
_local3.mcmask2.height = 1;
};
};
_local2++;
};
if (pausegame == false){
sortwaiting--;
if (sortwaiting <= 0){
sortwaiting = sortwaitingtemp;
_local15 = [];
_local2 = 0;
while (_local2 < unitimage.length) {
if (((!((unitimage[_local2].stat == "climb1"))) && (!((((unitimage[_local2] is wall1)) && ((unitimage[_local2].die == true))))))){
_local15[_local15.length] = {ke:_local2, ye:unitimage[_local2].y};
};
_local2++;
};
_local15.sortOn("ye", Array.NUMERIC);
_local2 = 0;
while (_local2 < _local15.length) {
addChildAt(unitimage[_local15[_local2].ke], (getChildIndex(mcunitposition) - 1));
_local2++;
};
};
if (waittutor != -1){
waittutor--;
if (waittutor <= 0){
if ((((templevel == 1)) && ((so.data.tutorialmovement[slotused] == false)))){
so.data.tutorialmovement[slotused] = true;
waittutor = -1;
loadtutorial("movement");
} else {
if ((((templevel == 2)) && ((so.data.tutorialcaptain[slotused] == false)))){
so.data.tutorialcaptain[slotused] = true;
waittutor = -1;
loadtutorial("captain");
} else {
if ((((templevel == 20)) && ((so.data.tutorialtile2[slotused] == false)))){
so.data.tutorialtile2[slotused] = true;
waittutor = -1;
loadtutorial("tile2");
};
};
};
};
};
_local2 = 0;
while (_local2 < reliccd.length) {
var _local20 = reliccd;
var _local21 = _local2;
var _local22 = (_local20[_local21] - 1);
_local20[_local21] = _local22;
if (reliccd[_local2] <= 0){
if (relicno[_local2] == 1){
_local16 = 0;
_local17 = 8;
_local14 = 0;
while (_local14 < unitimage.length) {
if ((((unitimage[_local14].side == 0)) && ((unitimage[_local14].die == false)))){
++_local16;
if (_local16 > _local17){
break;
};
};
_local14++;
};
if (_local16 > _local17){
reliccd[_local2] = reliccdtemp[1];
createunicorn();
};
} else {
if (relicno[_local2] == 2){
readyres = true;
};
};
};
_local2++;
};
if (mcui.timee > 0){
mcui.timee--;
_local18 = int((mcui.mchptop.currentFrame + mcui.minuser));
mcui.mchptop.gotoAndStop(_local18);
if (mcui.timee <= 0){
mcui.timee = -1;
};
};
if (mcui.mcexp.timee > 0){
mcui.mcexp.timee--;
_local18 = int((mcui.mcexp.width + mcui.mcexp.speede));
mcui.mcexp.width = _local18;
if (mcui.mcexp.timee <= 0){
mcui.mcexp.timee = -1;
};
};
if (wavephase == 1){
wavewait--;
if (wavewait <= 0){
waveindex++;
wavephase = 2;
mcprogress.sampe = ((100 / (levelenemy[templevel].length - 1)) * waveindex);
mcprogress.speed = ((mcprogress.sampe - mcprogress.mc1.currentFrame) / (levelenemytimespread[templevel][waveindex] * 25));
mcprogress.mulai = mcprogress.mc1.currentFrame;
_local19 = ((levelenemytimespread[templevel][waveindex] * 25) / levelenemy[templevel][waveindex].length);
wavewait = _local19;
wavewaittemp = _local19;
waveenemyindex = 0;
};
} else {
if (wavephase == 2){
mcprogress.mulai = (mcprogress.mulai + mcprogress.speed);
mcprogress.mc1.gotoAndStop(int(mcprogress.mulai));
wavewait--;
if (wavewait <= 0){
wavewait = wavewaittemp;
createenemy(levelenemy[templevel][waveindex][waveenemyindex], null, 0);
waveenemyindex++;
if (waveenemyindex > (levelenemy[templevel][waveindex].length - 1)){
if (waveindex >= (levelenemy[templevel].length - 1)){
trace("DONE ENEMY");
wavephase = 4;
} else {
wavewait = (levelenemywait[templevel][waveindex] * 25);
trace(("WAIT : " + levelenemywait[templevel][waveindex]));
wavephase = 3;
};
};
};
} else {
if (wavephase == 3){
wavewait--;
if (wavewait <= 0){
wavephase = 1;
wavewait = 0;
};
} else {
if (wavephase == 5){
wavewait--;
if (wavewait <= 0){
createannounce();
};
};
};
};
};
if (enemyautospawnbool == true){
enemyautospawntime--;
if (enemyautospawntime <= 0){
enemyautospawntime = enemyautospawntimetemp;
createenemy(1, null, 0);
};
};
if (pausegame == false){
_local5 = carimain();
if (_local5.oninvulnerable == false){
_local2 = 1;
while (_local2 < globalcd.length) {
if (globalcd[_local2] > 0){
_local20 = globalcd;
_local21 = _local2;
_local22 = (_local20[_local21] - 1);
_local20[_local21] = _local22;
};
_local2++;
};
};
_local5 = null;
};
};
}
public function loaddelete(){
mcmainmenu.mcoption.visible = false;
mcmainmenu.mcdelete.visible = true;
mcmainmenu.mcdelete.txt1.text = (("Delete slot " + mcmainmenu.mcdelete.ke) + " savegame?");
}
public function ingameokay(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
cleanupspray();
if (ending == true){
so.data.gameover[slotused] = true;
cektamat();
transisi("story2");
} else {
transisi("map");
};
saveAGI();
}
public function createadditionalfx(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = [fxicebreath, fxiceshatter, fxchainlighting, fxchainlighting2, fxburned, fxriflesparkle, fxpop, fxsmoke, fxdragoncannonsparkle, fxspiderbulletsparkle, fxshotgunsparkle, fxriflepop, fxshotgunpop, fxwyvernbulletsparkle, fxtoxic, fxgun, fxdust, fxheal, fxblobsplash, fxcurse, fxsparklingdust, fxcrumblerock, fxgoosplash, fxmagmasmoke, fxbossshadow, fxvoidstonecrumble, fxtemplardie, fxchandelierbreak, fxwalldebris, fxleaves, fxunisparkle, fxvoidstonecrumble];
_local3 = [[0, 0], [0, 15], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 10], [0, 0], [0, 0], [0, 0], [0, 5], [0, 0], [0, 5], [0, 5], [0, 10], [0, 5]];
_local4 = [[0, 0], [-70, 70], [0, 0], [0, 0], [-10, 10], [-10, 10], [-10, 10], [0, 0], [-10, 10], [-10, 10], [-10, 10], [-10, 10], [-10, 10], [-10, 10], [-10, 10], [-20, 20], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-50, 50], [-30, 30], [0, 0], [0, 0], [-205, 205], [0, 0], [-60, 60], [-20, 20], [-20, 20], [-10, 10], [0, 0]];
_local5 = [[0, 0], [0, 0], [0, 0], [0, 0], [0, -20], [-10, 10], [-10, 10], [0, 0], [-20, 20], [-20, 20], [-10, 10], [-10, 10], [-10, 10], [-20, 20], [-20, -35], [-10, 10], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [-30, 30], [-30, 30], [0, 0], [0, 0], [0, -150], [0, 0], [-40, 40], [0, -20], [-20, 20], [-10, 10], [-340, 0]];
fximage[fximage.length] = new (_local2[_arg1.breathtipe]);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].x = (_arg1.x + randRange(_local4[_arg1.breathtipe][0], _local4[_arg1.breathtipe][1]));
fximage[(fximage.length - 1)].y = (_arg1.y + randRange(_local5[_arg1.breathtipe][0], _local5[_arg1.breathtipe][1]));
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].jeda = randRange(_local3[_arg1.breathtipe][0], _local3[_arg1.breathtipe][1]);
if ((((fximage[(fximage.length - 1)] is fxwalldebris)) || ((fximage[(fximage.length - 1)] is fxleaves)))){
_local6 = randRange(0, 1);
if (_local6 == 1){
fximage[(fximage.length - 1)].scaleX = (fximage[(fximage.length - 1)].scaleX * -1);
};
};
fximage[(fximage.length - 1)].phase = 1;
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, fxwaiting);
}
public function implementmissilemovement1(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local2 = [];
_local3 = 20;
if (Math.abs((_arg1.targetx - _arg1.x)) > Math.abs((_arg1.targety - _arg1.y))){
if (Math.abs((_arg1.targetx - _arg1.x)) < _local3){
_arg1.speedx = 15;
} else {
_arg1.speedx = _local3;
};
_local4 = ((_arg1.targetx - _arg1.x) / _arg1.speedx);
_local5 = ((_arg1.targety - _arg1.y) / _local4);
_arg1.speedy = Math.abs(_local5);
} else {
if (Math.abs((_arg1.targety - _arg1.y)) < _local3){
_arg1.speedy = 15;
} else {
_arg1.speedy = _local3;
};
_local6 = ((_arg1.targety - _arg1.y) / _arg1.speedy);
_local7 = ((_arg1.targetx - _arg1.x) / _local6);
_arg1.speedx = Math.abs(_local7);
};
if (_arg1.targetx < _arg1.x){
_arg1.speedx = (_arg1.speedx * -1);
};
if (_arg1.targety < _arg1.y){
_arg1.speedy = (_arg1.speedy * -1);
};
_local2 = [_arg1.speedx, _arg1.speedy];
return (_local2);
}
public function cekquest(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
if ((((armor == true)) && ((AGIconnected == true)))){
ceknaeklevelagi();
_local1 = 1;
while (_local1 <= 2) {
if (so.data.areareach[_local1] > 1){
agi.quests.submit({key:"hall", progress:1});
};
_local1++;
};
_local1 = 1;
while (_local1 <= 2) {
if (so.data.relic[_local1][2] == 1){
agi.quests.submit({key:"king", progress:1});
};
_local1++;
};
_local2 = [0, 0, 0];
_local1 = 1;
while (_local1 <= 2) {
_local4 = 3;
while (_local4 <= 8) {
if (so.data.templar[_local1][_local4] == 1){
var _local5 = _local2;
var _local6 = _local1;
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
};
_local4++;
};
_local1++;
};
_local2.sort(Array.DESCENDING);
if (_local2[0] >= 3){
txtlog2.text = "DONE";
agi.quests.submit({key:"templar", progress:1});
} else {
txtlog2.text = ("NAH " + _local2[0]);
agi.quests.reset({key:"templar"});
agi.quests.submit({key:"templar", progress:(_local2[0] / 3)});
};
cektamat();
_local3 = false;
_local1 = 1;
while (_local1 <= 2) {
_local4 = 3;
while (_local4 <= 8) {
if (so.data.templarlevel[_local1][_local4] == 10){
_local3 = true;
break;
};
_local4++;
};
_local1++;
};
if (_local3 == true){
agi.quests.submit({key:"max", progress:1});
};
};
}
public function charselectwaiting(_arg1:Event):void{
var _local2:*;
_local2 = mccharselect.getChildByName(("mc" + charke));
if (_local2.currentLabel == "donego"){
cleanupcharselect();
transisi("map");
};
}
public function loadstory2(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 2;
_local2 = 3;
while (_local2 < so.data.templar[slotused].length) {
if (so.data.templar[slotused][_local2] == 1){
trace(_local1);
_local3 = mcstory2.getChildByName(("mchero" + _local1));
_local3.gotoAndStop(_local2);
_local1++;
};
_local2++;
};
mcstory2.mchero.gotoAndStop(so.data.maintemplar[slotused]);
mcstory2.phase = 1;
stage.addEventListener(Event.ENTER_FRAME, story2waiting);
}
public function loadAGI(){
trace("LOAD AGIII");
if (AGIconnected == true){
if (agi.user.isGuest()){
} else {
guestbool = false;
retrieveAGI();
};
};
volbgm = so.data.audiosetting[0];
volsfx = so.data.audiosetting[1];
}
public function saveAGI(){
if (guestbool == false){
trace(("AUD SETT : " + so.data.audiosetting));
agi.storage.user.submit({key:"savee", value:{tutorialskill:so.data.tutorialskill, tutorialtile2:so.data.tutorialtile2, tutorialcaptain:so.data.tutorialcaptain, tutorialmovement:so.data.tutorialmovement, tutorialtile1:so.data.tutorialtile1, firstanimation:so.data.firstanimation, templar:so.data.templar, templarlevel:so.data.templarlevel, maintemplar:so.data.maintemplar, areareach:so.data.areareach, levelreach:so.data.levelreach, relic:so.data.relic, relicclicked:so.data.relicclicked, pts:so.data.pts, skilllevel:so.data.skilllevel, expe:so.data.expe, skillregister:so.data.skillregister, choosecaptainbool:so.data.choosecaptainbool, choosecaptainke:so.data.choosecaptainke, enemies:so.data.enemies, audiosetting:so.data.audiosetting, gameover:so.data.gameover, chandeliervictim:so.data.chandeliervictim}, callback:function (_arg1:Object):void{
}});
};
}
public function mapcaptain(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mcmap.mclevel.visible = false;
mcmap.mcskills.visible = false;
mcmap.mcscourge.visible = false;
loadcaptain();
}
public function carimain(){
var _local1:*;
var _local2:*;
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2].side == 1){
if (unitimage[_local2].main == true){
_local1 = unitimage[_local2];
break;
};
};
_local2++;
};
return (_local1);
}
public function ingameareadown(_arg1:MouseEvent):void{
trace("DOWN");
soundclick.play(0, 1, new SoundTransform(volsfx));
pausegame = true;
stage.addEventListener(Event.ENTER_FRAME, captainareadragwaiting);
mcui.btnarea.removeEventListener(MouseEvent.MOUSE_DOWN, ingameareadown);
mcui.btnarea.addEventListener(MouseEvent.MOUSE_UP, ingameareaup);
}
public function createtinkengineer(_arg1:Object){
createsfx(6);
unitimage[unitimage.length] = new (summon6);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
if (_arg1.directione == "right"){
unitimage[(unitimage.length - 1)].x = (_arg1.x + 30);
} else {
unitimage[(unitimage.length - 1)].x = (_arg1.x - 30);
};
unitimage[(unitimage.length - 1)].y = (_arg1.y + randRange(-10, 10));
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].healtime = 0;
unitimage[(unitimage.length - 1)].healtimetemp = 50;
unitimage[(unitimage.length - 1)].directione = "right";
unitimage[(unitimage.length - 1)].ms = 2;
unitimage[(unitimage.length - 1)].stat = "idle";
unitimage[(unitimage.length - 1)].healamount = 10;
unitimage[(unitimage.length - 1)].duratione = (tinkengineerduration * 25);
unitimage[(unitimage.length - 1)].durationetemp = unitimage[(unitimage.length - 1)].duratione;
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, tinkengineerwaiting);
}
public function loadlevel(){
var _local1:*;
var _local2:*;
var _local3:*;
mcmap.mcrelic1.buttonMode = true;
mcmap.mcrelic2.buttonMode = true;
mcmap.mclevel.mctitle.mcrelic3.buttonMode = true;
mcmap.mcrelic1.visible = false;
mcmap.mcrelic2.visible = false;
mcmap.mclevel.mctitle.mcrelic3.visible = false;
mcmap.mcrelic1.removeEventListener(MouseEvent.CLICK, maprelicclick);
mcmap.mcrelic2.removeEventListener(MouseEvent.CLICK, maprelicclick);
if (so.data.areareach[slotused] > 1){
if (so.data.relicclicked[slotused][1] == 0){
mcmap.mcrelic1.visible = true;
mcmap.mcrelic1.addEventListener(MouseEvent.CLICK, maprelicclick);
};
};
if (so.data.levelreach[slotused] > 11){
if (so.data.relicclicked[slotused][2] == 0){
mcmap.mcrelic2.visible = true;
mcmap.mcrelic2.addEventListener(MouseEvent.CLICK, maprelicclick);
};
};
if (temparea == 3){
if (so.data.relicclicked[slotused][3] == 0){
mcmap.mclevel.mctitle.mcrelic3.visible = true;
mcmap.mclevel.mctitle.mcrelic3.addEventListener(MouseEvent.CLICK, maprelicclick);
};
};
mcmap.mclevel.mcpoi1.mouseChildren = false;
mcmap.mclevel.mcpoi1.mouseEnabled = false;
mcmap.mclevel.mcpoi2.mouseChildren = false;
mcmap.mclevel.mcpoi2.mouseEnabled = false;
mcmap.mclevel.mcpoi1.visible = false;
mcmap.mclevel.mcpoi2.visible = false;
mcmap.mclevel.mctitle.btnnext.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.mctitle.btnnext.removeEventListener(MouseEvent.CLICK, mapnextact);
mcmap.mclevel.mctitle.btnnext.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.mctitle.btnnext.addEventListener(MouseEvent.CLICK, mapnextact);
mcmap.mclevel.mctitle.btnprev.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.mctitle.btnprev.removeEventListener(MouseEvent.CLICK, mapprevact);
mcmap.mclevel.mctitle.btnprev.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.mctitle.btnprev.addEventListener(MouseEvent.CLICK, mapprevact);
if ((((temparea == 1)) || ((temparea == 2)))){
if (temparea == 1){
mcmap.mclevel.mctitle.btnprev.gotoAndStop(1);
} else {
mcmap.mclevel.mctitle.btnprev.gotoAndStop(2);
};
if (so.data.areareach[slotused] > temparea){
mcmap.mclevel.mctitle.btnnext.gotoAndStop(2);
} else {
mcmap.mclevel.mctitle.btnnext.gotoAndStop(1);
};
} else {
if (temparea == 3){
mcmap.mclevel.mctitle.btnprev.gotoAndStop(2);
mcmap.mclevel.mctitle.btnnext.gotoAndStop(1);
} else {
mcmap.mclevel.mctitle.btnprev.gotoAndStop(2);
mcmap.mclevel.mctitle.btnnext.gotoAndStop(2);
};
};
if (so.data.pts[slotused] > 0){
mcmap.mclevel.mcpoi2.visible = true;
};
if (newcaptain == true){
mcmap.mclevel.mcpoi1.visible = true;
};
trace(("reach : " + so.data.levelreach[slotused]));
mcmap.mcscourge.visible = false;
mcmap.mccaptain.visible = false;
mcmap.mcskills.visible = false;
mcmap.mclevel.mctitle.gotoAndStop(temparea);
mcmap.mclevel.mctitle.mcpin.gotoAndStop((so.data.levelreach[slotused] - ((temparea - 1) * (levelmax / 3))));
trace(("level reach : " + so.data.levelreach[slotused]));
_local1 = 1;
while (_local1 <= (levelmax / 3)) {
_local3 = mcmap.mclevel.mctitle.getChildByName(("mcarea" + _local1));
if (so.data.levelreach[slotused] >= (((temparea - 1) * (levelmax / 3)) + _local1)){
_local3.visible = true;
_local3.gotoAndStop(1);
if (so.data.levelreach[slotused] == (((temparea - 1) * (levelmax / 3)) + _local1)){
_local3.gotoAndStop(2);
};
if (((((((temparea - 1) * (levelmax / 3)) + _local1) == 21)) && ((so.data.gameover[slotused] == true)))){
_local3.gotoAndStop(1);
};
} else {
_local3.visible = false;
};
_local3.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local3.removeEventListener(MouseEvent.CLICK, mapgolevel);
_local3.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local3.addEventListener(MouseEvent.CLICK, mapgolevel);
_local1++;
};
mcmap.mclevel.mccaptain.mc1.stop();
mcmap.mclevel.mccaptain.mc2.stop();
mcmap.mclevel.mccaptain.mc3.stop();
mcmap.mclevel.mccaptain.mc1.mouseChildren = false;
mcmap.mclevel.mccaptain.mc1.mouseEnabled = false;
mcmap.mclevel.mccaptain.mc2.mouseChildren = false;
mcmap.mclevel.mccaptain.mc2.mouseEnabled = false;
mcmap.mclevel.mccaptain.mc3.mouseChildren = false;
mcmap.mclevel.mccaptain.mc3.mouseEnabled = false;
_local2 = 1;
_local1 = 3;
while (_local1 <= 8) {
if (so.data.templar[slotused][_local1] == 1){
_local3 = mcmap.mclevel.mccaptain.getChildByName(("mc" + _local2));
_local3.gotoAndStop(_local1);
_local2++;
};
_local1++;
};
mcmap.mclevel.mcmain.mc1.mouseChildren = false;
mcmap.mclevel.mcmain.mc1.mouseEnabled = false;
mcmap.mclevel.mcmain.mc1.gotoAndStop(so.data.maintemplar[slotused]);
if (so.data.templarlevel[slotused][so.data.maintemplar[slotused]] > evocap){
mcmap.mclevel.mcmain.mc1.gotoAndStop(int((int(mcmap.mclevel.mcmain.mc1.currentFrame) + int(2))));
};
mcmap.mclevel.mcmain.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.mcmain.removeEventListener(MouseEvent.CLICK, mapmaintemplar);
mcmap.mclevel.mcmain.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.mcmain.addEventListener(MouseEvent.CLICK, mapmaintemplar);
mcmap.mclevel.mccaptain.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.mccaptain.removeEventListener(MouseEvent.CLICK, mapcaptain);
mcmap.mclevel.mccaptain.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.mccaptain.addEventListener(MouseEvent.CLICK, mapcaptain);
mcmap.mclevel.mcscourge.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.mcscourge.removeEventListener(MouseEvent.CLICK, mapscourge);
mcmap.mclevel.mcscourge.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.mcscourge.addEventListener(MouseEvent.CLICK, mapscourge);
mcmap.mclevel.btnback.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.btnback.removeEventListener(MouseEvent.CLICK, mapback);
mcmap.mclevel.btnback.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mclevel.btnback.addEventListener(MouseEvent.CLICK, mapback);
}
public function createholywaveline(_arg1:Object, _arg2:int){
if (_arg2 == 1){
soundholywave.play(0, 1, new SoundTransform(volsfx));
fximage[fximage.length] = new (fxholywaveline);
fximage[(fximage.length - 1)].blendMode = "add";
} else {
sounddeathwave.play(0, 1, new SoundTransform(volsfx));
fximage[fximage.length] = new (fxdeathwaveline);
};
addChildAt(fximage[(fximage.length - 1)], (getChildIndex(mcshadowposition) - 1));
fximage[(fximage.length - 1)].x = 209;
fximage[(fximage.length - 1)].y = _arg1.y;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].jeda = 0;
fximage[(fximage.length - 1)].phase = 1;
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, fxwaiting);
}
public function missilewaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:Point;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
if (pausegame == true){
_arg1.currentTarget.stop();
} else {
if (pausegame == false){
_local2 = false;
_local3 = false;
if (_arg1.currentTarget.breathtipe != -1){
_arg1.currentTarget.breathcd--;
if (_arg1.currentTarget.breathcd <= 0){
createadditionalfx(_arg1.currentTarget);
_arg1.currentTarget.breathcd = _arg1.currentTarget.breathcdtemp;
};
};
if ((((((_arg1.currentTarget.movement == 1)) || ((_arg1.currentTarget.movement == 7)))) || ((_arg1.currentTarget.movement == 8)))){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speedx);
if (_arg1.currentTarget.movement != 8){
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speedy);
};
if (_arg1.currentTarget.movement == 1){
_local3 = true;
} else {
if ((((_arg1.currentTarget.movement == 7)) || ((_arg1.currentTarget.movement == 8)))){
_arg1.currentTarget.hittick--;
if (_arg1.currentTarget.hittick <= 0){
_local3 = true;
_arg1.currentTarget.hittick = hittick;
};
};
};
} else {
if (_arg1.currentTarget.movement == 2){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speedx);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speedy);
_arg1.currentTarget.speedy = (_arg1.currentTarget.speedy + _arg1.currentTarget.gravitasi);
_arg1.currentTarget.timee--;
if (_arg1.currentTarget.timee < 0){
if ((_arg1.currentTarget is fxfireball)){
soundfireexplode.play(0, 1, new SoundTransform(volsfx));
createmissile(fxfireballexplosion, 3, _arg1.currentTarget.atk, 1, _arg1.currentTarget, -1, null);
_local2 = true;
} else {
if ((_arg1.currentTarget is fxenemymissile2)){
createmissile(fxminibomb, 3, _arg1.currentTarget.atk, _arg1.currentTarget.side, _arg1.currentTarget, -1, null);
_local2 = true;
} else {
if ((_arg1.currentTarget is fxicemine)){
soundicemine3.play(0, 1, new SoundTransform(volsfx));
createmissile(fxicemine2, 3, _arg1.currentTarget.atk, 1, _arg1.currentTarget, -1, null);
_local2 = true;
} else {
if ((_arg1.currentTarget is fxgreenfire)){
createmissile(fxgreenfireburning, 5, _arg1.currentTarget.atk, _arg1.currentTarget.side, _arg1.currentTarget, -1, null);
_local2 = true;
} else {
if ((_arg1.currentTarget is fxnapalm)){
soundnapalm2.play(0, 1, new SoundTransform(volsfx));
createmissile(fxbomb, 3, _arg1.currentTarget.atk, 1, _arg1.currentTarget, -1, null);
_local2 = true;
} else {
if ((_arg1.currentTarget is fxstrikersharpnel)){
soundnapalm2.play(0, 1, new SoundTransform(volsfx));
createmissile(fxstrikerbomb, 3, _arg1.currentTarget.atk, 1, _arg1.currentTarget, -1, null);
_local2 = true;
} else {
if ((_arg1.currentTarget is fxuniblast)){
createmissile(fxunibomb, 3, _arg1.currentTarget.atk, 1, _arg1.currentTarget, -1, null);
_local2 = true;
} else {
if ((_arg1.currentTarget is fxmagmabullet)){
createmissile(fxmagmabomb, 3, _arg1.currentTarget.atk, _arg1.currentTarget.side, _arg1.currentTarget, -1, null);
_local2 = true;
} else {
_local3 = true;
_local2 = true;
};
};
};
};
};
};
};
};
};
} else {
if ((((((_arg1.currentTarget.movement == 3)) || ((_arg1.currentTarget.movement == 4)))) || ((_arg1.currentTarget.movement == 6)))){
if ((((((_arg1.currentTarget.movement == 3)) || ((_arg1.currentTarget.movement == 6)))) && ((_arg1.currentTarget.currentLabel == "hit")))){
_local3 = true;
};
if (_arg1.currentTarget.movement == 6){
_local4 = cekvalidunittarget(_arg1.currentTarget);
if (_local4 == true){
_arg1.currentTarget.x = unitimage[_arg1.currentTarget.targete].x;
_arg1.currentTarget.y = unitimage[_arg1.currentTarget.targete].y;
};
};
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
if (_arg1.currentTarget.movement == 4){
if ((_arg1.currentTarget is fxmeteor)){
soundmeteorburn.play(0, 1, new SoundTransform(volsfx));
soundmeteor2.play(0, 1, new SoundTransform(volsfx));
createmissile(fxmeteorbomb, 3, _arg1.currentTarget.atk, 1, _arg1.currentTarget, -1, null);
} else {
if ((_arg1.currentTarget is fxcatapult)){
createsfx(10);
createmissile(fxcatapultrock, 3, _arg1.currentTarget.atk, 1, _arg1.currentTarget, -1, null);
} else {
if ((_arg1.currentTarget is fxsmallmeteor)){
createmissile(fxminibomb, 3, _arg1.currentTarget.atk, _arg1.currentTarget.side, _arg1.currentTarget, -1, null);
};
};
};
};
_local2 = true;
};
} else {
if (_arg1.currentTarget.movement == 5){
_arg1.currentTarget.tick--;
if (_arg1.currentTarget.tick <= 0){
if ((_arg1.currentTarget is fxblizzard)){
_local5 = [soundblizzard1, soundblizzard2, soundicecrack1, soundicecrack2];
_local6 = randRange(0, (_local5.length - 1));
_local5[_local6].play(0, 1, new SoundTransform(volsfx));
_local7 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:1};
_local8 = 0;
while (_local8 < 3) {
createadditionalfx(_local7);
_local8++;
};
_local7 = null;
} else {
if ((_arg1.currentTarget is fxhellclaw)){
if (_arg1.currentTarget.currentLabel == "crush"){
soundtowerdestroyed.play(0, 1, new SoundTransform(volsfx));
_local9 = _arg1.currentTarget.mcbody.localToGlobal(new Point(0, 0));
_local7 = {x:_local9.x, y:_local9.y, breathtipe:31};
_local8 = 0;
while (_local8 < 3) {
createadditionalfx(_local7);
_local8++;
};
_local7 = null;
};
} else {
if ((_arg1.currentTarget is fxenchantingwind)){
_local8 = 0;
while (_local8 < unitimage.length) {
if ((((unitimage[_local8].die == false)) && ((unitimage[_local8].captain == true)))){
if (unitimage[_local8].hp < unitimage[_local8].hptemp){
_arg1.currentTarget.targete = _local8;
_arg1.currentTarget.targetid = unitimage[_local8].id;
cekhitenemy(_arg1.currentTarget);
};
};
_local8++;
};
};
};
};
_local3 = true;
_arg1.currentTarget.tick = _arg1.currentTarget.ticktemp;
};
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local2 = true;
};
};
};
};
};
if (_local3 == true){
if ((_arg1.currentTarget is fxgoospit)){
_arg1.currentTarget.breathtipe = 22;
_local8 = 0;
while (_local8 < 8) {
createadditionalfx(_arg1.currentTarget);
_local8++;
};
} else {
if ((_arg1.currentTarget is fxsoul)){
createenemy(8, _arg1.currentTarget, 0);
} else {
if ((_arg1.currentTarget is fxstriker)){
soundstriker2.play(0, 1, new SoundTransform(volsfx));
soundstriker3.play(0, 1, new SoundTransform(volsfx));
_local10 = [-100, 0, 100, 100, 0, -100];
_local11 = [-50, -100, -50, 50, 100, 50];
_local8 = 0;
while (_local8 < 6) {
_arg1.currentTarget.breathtipe = 11;
_local12 = {x:(_arg1.currentTarget.x + _local10[_local8]), y:(_arg1.currentTarget.y + _local11[_local8])};
createmissile(fxstrikersharpnel, 2, sharpneldamage, 1, _arg1.currentTarget, -1, _local12);
_local7 = null;
_local8++;
};
} else {
if ((_arg1.currentTarget is fxicemine2)){
soundicemine3.play(0, 1, new SoundTransform(volsfx));
soundicemine2.play(0, 1, new SoundTransform(volsfx));
_local7 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:1};
_local8 = 0;
while (_local8 < 8) {
createadditionalfx(_local7);
_local8++;
};
_local7 = null;
} else {
if ((_arg1.currentTarget is fxchandelier)){
soundtowerdestroyed.play(0, 1, new SoundTransform(volsfx));
_local7 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:27};
_local8 = 0;
while (_local8 < 8) {
createadditionalfx(_local7);
_local8++;
};
_local7 = null;
} else {
if ((_arg1.currentTarget is fxcrumble)){
_local7 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:21};
_local8 = 0;
while (_local8 < 5) {
createadditionalfx(_local7);
_local8++;
};
_local7 = null;
};
};
};
};
};
};
if (_arg1.currentTarget.movement == 6){
_local4 = cekvalidunittarget(_arg1.currentTarget);
if (_local4 == true){
cekhitenemy(_arg1.currentTarget);
};
} else {
_local8 = 0;
while (_local8 < unitimage.length) {
if ((((((unitimage[_local8].die == false)) && ((unitimage[_local8].notallowed == false)))) && (!((unitimage[_local8].side == _arg1.currentTarget.side))))){
if (unitimage[_local8].mc1.mcbody.hitTestObject(_arg1.currentTarget.mcbody) == true){
if ((_arg1.currentTarget is fxgoospit)){
unitimage[_local8].gooduration = gooduration;
} else {
if ((_arg1.currentTarget is fxrifleattack)){
_local5 = [soundriflehit1, soundriflehit2];
_local13 = randRange(0, (_local5.length - 1));
_local5[_local13].play(0, 1, new SoundTransform(volsfx));
_local7 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:11};
_local14 = 0;
while (_local14 < 4) {
createadditionalfx(_local7);
_local14++;
};
_local7 = null;
} else {
if ((_arg1.currentTarget is fxshotgunattack)){
_local7 = {x:_arg1.currentTarget.x, y:_arg1.currentTarget.y, breathtipe:12};
_local14 = 0;
while (_local14 < 6) {
createadditionalfx(_local7);
_local14++;
};
_local7 = null;
} else {
if ((((_arg1.currentTarget is fxspiderbullet)) && ((unitimage[_local8].flymode == 0)))){
_local15 = false;
_local14 = 0;
while (_local14 < _arg1.currentTarget.hitlist.length) {
if (_local8 == _arg1.currentTarget.hitlist[_local14]){
_local15 = true;
break;
};
_local14++;
};
if ((((((_local15 == false)) && ((unitimage[_local8].boss == false)))) && ((unitimage[_local8].debris == false)))){
_arg1.currentTarget.hitlist[_arg1.currentTarget.hitlist.length] = _local8;
unitimage[_local8].webduration = (webduration * 25);
createwebfx(_local8);
};
} else {
if ((((((((_arg1.currentTarget is fxenchantingwind)) || ((_arg1.currentTarget is fxdragoncannon)))) && ((unitimage[_local8].boss == false)))) && ((unitimage[_local8].debris == false)))){
if ((_arg1.currentTarget is fxdragoncannon)){
unitimage[_local8].x = (unitimage[_local8].x + (_arg1.currentTarget.speedx * dragonpushback));
unitimage[_local8].y = (unitimage[_local8].y + (_arg1.currentTarget.speedy * dragonpushback));
} else {
if ((_arg1.currentTarget is fxenchantingwind)){
unitimage[_local8].x = (unitimage[_local8].x + enchantingwindpushback);
};
};
if (unitimage[_local8].boss == false){
if (unitimage[_local8].x < 10){
unitimage[_local8].x = 10;
} else {
if (unitimage[_local8].x > 700){
unitimage[_local8].x = (700 - 5);
};
};
if ((((unitimage[_local8].x > batasfog)) && ((unitimage[_local8].nomor == 16)))){
unitimage[_local8].x = (batasfog - 5);
};
};
if (unitimage[_local8].y < batasatas){
unitimage[_local8].y = batasatas;
} else {
if (unitimage[_local8].y > batasbawah){
unitimage[_local8].y = batasbawah;
};
};
};
};
};
};
};
if ((((((((_arg1.currentTarget.frozebool == true)) && ((unitimage[_local8].flymode == 0)))) && ((unitimage[_local8].boss == false)))) && ((unitimage[_local8].debris == false)))){
unitimage[_local8].frozetime = frozetime;
};
if (_arg1.currentTarget.slow == true){
if (((((((((!((unitimage[_local8] is enemy7))) && (!((unitimage[_local8] is enemy14))))) && (!((unitimage[_local8] is enemy20))))) && (!((unitimage[_local8] is enemy21))))) && (!((unitimage[_local8] is enemy22))))){
unitimage[_local8].slowtime = (slowduration * 25);
unitimage[_local8].slowms = slowrate;
};
};
if (_arg1.currentTarget.burn == true){
if (unitimage[_local8].burndamage == -1){
unitimage[_local8].burntick = burntick;
};
unitimage[_local8].burntime = (burnduration * 25);
unitimage[_local8].burndamage = (_arg1.currentTarget.burndamage / burnduration);
};
if (_arg1.currentTarget.stunchance > 0){
_local16 = randRange(0, 100);
if (_local16 <= _arg1.currentTarget.stunchance){
if ((((unitimage[_local8].boss == false)) && ((unitimage[_local8].debris == false)))){
unitimage[_local8].stunduration = (stunduration * 25);
if ((unitimage[_local8] is enemy17)){
cekchew(_local8);
};
};
};
};
if (_arg1.currentTarget.toxic == true){
unitimage[_local8].toxictime = (burnduration * 25);
unitimage[_local8].toxicdamage = _arg1.currentTarget.toxicdamage;
if (unitimage[_local8].toxicdamage == -1){
unitimage[_local8].toxictick = burntick;
};
};
_arg1.currentTarget.targetid = unitimage[_local8].id;
_arg1.currentTarget.targete = _local8;
if ((((((((_arg1.currentTarget is fxdeathwave)) || ((_arg1.currentTarget is fxholywave)))) || ((_arg1.currentTarget is fxdragoncannon)))) || ((_arg1.currentTarget is fxwyvernbullet)))){
_local15 = false;
_local14 = 0;
while (_local14 < _arg1.currentTarget.hitlist.length) {
if (_local8 == _arg1.currentTarget.hitlist[_local14]){
_local15 = true;
break;
};
_local14++;
};
if (_local15 == false){
_arg1.currentTarget.hitlist[_arg1.currentTarget.hitlist.length] = _local8;
cekhitenemy(_arg1.currentTarget);
};
} else {
cekhitenemy(_arg1.currentTarget);
};
if (_arg1.currentTarget.movement == 1){
_local2 = true;
break;
};
};
};
_local8++;
};
};
if (_arg1.currentTarget.movement == 1){
if ((((((((_arg1.currentTarget.x > 800)) || ((_arg1.currentTarget.x < -100)))) || ((_arg1.currentTarget.y > 600)))) || ((_arg1.currentTarget.y < -100)))){
_local2 = true;
};
};
if ((((((((_arg1.currentTarget.x > 1300)) || ((_arg1.currentTarget.x < -500)))) || ((_arg1.currentTarget.y > 1000)))) || ((_arg1.currentTarget.y < -400)))){
_local2 = true;
};
};
if (_local2 == true){
removethismissile(_arg1.currentTarget);
};
};
};
}
public function createexpimage(_arg1:Object){
var _local2:*;
var _local3:*;
_local2 = enemyexp[_arg1.nomor];
creatediesound(_arg1.nomor);
if (_local2 > 0){
if (_local2 < bigexp){
_local3 = 1;
while (_local3 <= _local2) {
createexp(_arg1, 1);
_local3++;
};
} else {
_local3 = 1;
while (_local3 <= int((_local2 / bigexp))) {
createexp(_arg1, 2);
_local3++;
};
if ((_local2 % bigexp) > 0){
_local3 = 1;
while (_local3 <= (_local2 % bigexp)) {
createexp(_arg1, 1);
_local3++;
};
};
};
};
}
public function resetarea(){
var _local1:Point;
var _local2:*;
_local1 = mcui.btnarea.localToGlobal(new Point(0, 0));
captainline = _local1.x;
_local2 = 0;
while (_local2 < unitimage.length) {
if ((((((((unitimage[_local2].stat == "idle")) && ((unitimage[_local2].captain == true)))) && ((unitimage[_local2].die == false)))) && ((((((unitimage[_local2] is hero3)) || ((unitimage[_local2] is hero4)))) || ((unitimage[_local2] is hero5)))))){
unitimage[_local2].fallback = true;
unitimage[_local2].wanderingtime = 0;
};
_local2++;
};
mcui.mcline.visible = false;
trace("UP");
cekpause();
stage.removeEventListener(Event.ENTER_FRAME, captainareadragwaiting);
}
public function closeui(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mcui.visible = false;
mcmouse.visible = false;
mcui.mcarrow.gotoAndStop(1);
stage.removeEventListener(Event.ENTER_FRAME, skilldragwaiting);
}
public function mapmaintemplar(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mcmap.mclevel.visible = false;
mcmap.mcskills.visible = false;
mcmap.mcscourge.visible = false;
loadskillslot();
loadmaintemplar(mcmap.mcskills);
}
public function cleanup(_arg1:MouseEvent):void{
cleanupAGI();
}
public function clickGoody(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.goodygameworks.com");
navigateToURL(_local2);
}
public function unicornwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (pausegame == false){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.ms);
_arg1.currentTarget.wait--;
if (_arg1.currentTarget.wait <= 0){
soundillusion.play(0, 1, new SoundTransform(volsfx));
_arg1.currentTarget.wait = 20;
_arg1.currentTarget.hittimes--;
_local2 = [-100, -50, 0, 50, 100, 50, 0, -50];
_local3 = [0, -50, -100, -50, 0, 50, 100, 50];
_local4 = 0;
while (_local4 < _local2.length) {
_local5 = {x:(_arg1.currentTarget.x + _local2[_local4]), y:(240 + _local3[_local4])};
createmissile(fxuniblast, 2, _arg1.currentTarget.atk, 1, _arg1.currentTarget, -1, _local5);
_local5 = null;
_local4++;
};
};
if (_arg1.currentTarget.x > 800){
removethisfx(_arg1.currentTarget);
};
};
}
public function loadmap(){
mcui.visible = false;
mcui.btnclose.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnclose.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnclose.removeEventListener(MouseEvent.CLICK, closeui);
mcui.btnclose.addEventListener(MouseEvent.CLICK, closeui);
mcmap.btnag.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.btnag.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.btnag.removeEventListener(MouseEvent.CLICK, clickAG);
mcmap.btnag.addEventListener(MouseEvent.CLICK, clickAG);
loadlevel();
}
public function onesoulwaiting(_arg1:Event):void{
if (pausegame == false){
_arg1.currentTarget.play();
if (_arg1.currentTarget.currentLabel == "hit"){
unitimage[_arg1.currentTarget.resindex].dieduration = 0;
};
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
removethisfx(_arg1.currentTarget);
};
} else {
_arg1.currentTarget.stop();
};
}
public function updateexpbar(){
var _local1:*;
var _local2:*;
_local1 = mcui.mcexp.width;
_local2 = ((so.data.expe[slotused][so.data.maintemplar[slotused]] / (so.data.templarlevel[slotused][so.data.maintemplar[slotused]] * expperlevel)) * 234);
mcui.mcexp.timee = 15;
mcui.mcexp.speede = ((_local2 - _local1) / mcui.mcexp.timee);
}
public function createmaintemplar(){
if (so.data.templarlevel[slotused][so.data.maintemplar[slotused]] > evocap){
unitimage[unitimage.length] = new (templarlinkagespecial[so.data.maintemplar[slotused]]);
} else {
unitimage[unitimage.length] = new (templarlinkage[so.data.maintemplar[slotused]]);
};
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = 114;
unitimage[(unitimage.length - 1)].y = 223;
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].nomor = so.data.maintemplar[slotused];
unitimage[(unitimage.length - 1)].hp = hp;
unitimage[(unitimage.length - 1)].hptemp = hptemp;
unitimage[(unitimage.length - 1)].ms = templarms[so.data.maintemplar[slotused]];
unitimage[(unitimage.length - 1)].mstemp = unitimage[(unitimage.length - 1)].ms;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].main = true;
unitimage[(unitimage.length - 1)].armor = (templararmor[so.data.maintemplar[slotused]] * so.data.templarlevel[slotused][so.data.maintemplar[slotused]]);
unitimage[(unitimage.length - 1)].naturalregen = templarnaturalregen;
unitimage[(unitimage.length - 1)].naturalregentime = templarnaturalregentime;
unitimage[(unitimage.length - 1)].mc1.gotoAndPlay("idle");
createshadow(unitimage[(unitimage.length - 1)]);
cekmainpassive();
}
public function loadingame(){
var _local1:Point;
var _local2:*;
var _local3:*;
soundchannel1 = soundbattle.play(0, 999, new SoundTransform(volbgm));
loadaudiobuttonsetting();
_local1 = new Point(captainline, mouseY);
_local1 = mcui.globalToLocal(_local1);
mcui.btnarea.x = _local1.x;
mcui.mcline.visible = false;
if (so.data.relic[slotused][1] == 1){
relicno[relicno.length] = 1;
reliccd[reliccd.length] = 0;
};
if (so.data.relic[slotused][2] == 1){
relicno[relicno.length] = 2;
reliccd[reliccd.length] = 0;
};
mcui.btnag.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnag.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnag.removeEventListener(MouseEvent.CLICK, clickAG2);
mcui.btnag.addEventListener(MouseEvent.CLICK, clickAG2);
mcui.btnarea.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnarea.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnarea.removeEventListener(MouseEvent.MOUSE_DOWN, ingameareadown);
mcui.btnarea.addEventListener(MouseEvent.MOUSE_DOWN, ingameareadown);
mcui.btnarea.removeEventListener(MouseEvent.MOUSE_UP, ingameareaup);
mcbg.btnrelic4.visible = false;
mcbg.btnrelic4.removeEventListener(MouseEvent.CLICK, maprelicclick);
if ((((((so.data.areareach[slotused] > 2)) && ((temparea == 2)))) && ((so.data.relicclicked[slotused][4] == 0)))){
mcbg.btnrelic4.addEventListener(MouseEvent.CLICK, maprelicclick);
mcbg.btnrelic4.visible = true;
};
mcpause.gotoAndStop(1);
mcmouse.mouseChildren = false;
mcmouse.mouseEnabled = false;
mcmouse.mc3.gotoAndStop(so.data.maintemplar[slotused]);
mcui.btnexp.templare = so.data.maintemplar[slotused];
mcui.btnexp.removeEventListener(MouseEvent.MOUSE_OVER, exptextover);
mcui.btnexp.addEventListener(MouseEvent.MOUSE_OVER, exptextover);
mcui.btnexp.removeEventListener(MouseEvent.MOUSE_OUT, exptextout);
mcui.btnexp.addEventListener(MouseEvent.MOUSE_OUT, exptextout);
mcprogress.gotoAndPlay(2);
mcbg.gotoAndStop(templevel);
mcfog.gotoAndStop(templevel);
mcsky.gotoAndStop(templevel);
mcforeground.gotoAndStop(templevel);
mcui.txthp.text = ((hp + "/") + hptemp);
updatehpglobe();
if (temparea == 3){
createchain();
};
createmaintemplar();
createcaptaintemplar();
createwall();
createwalladdon();
createtilespecial();
if (so.data.relic[slotused][3] == 1){
createnomnom();
};
_local2 = 0;
_local3 = 1;
while (_local3 < so.data.skilllevel[slotused]) {
if ((((so.data.skilllevel[slotused][_local3] > 0)) && ((templarskillpassivebool[so.data.maintemplar[slotused]] == 0)))){
_local2++;
};
_local3++;
};
trace(("skill : " + so.data.skillregister[slotused]));
globalcd = [];
_local3 = 1;
while (_local3 < templarskillcd[so.data.maintemplar[slotused]].length) {
globalcd[_local3] = 0;
_local3++;
};
if (_local2 > 6){
} else {
loadautoskillregister();
};
mcui.mcdarken.visible = false;
mcui.mcarrow.mouseChildren = false;
mcui.mcarrow.mouseEnabled = false;
if (so.data.pts[slotused] > 0){
mcui.btnlevelup.gotoAndPlay(2);
};
mcui.btnpause.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnpause.removeEventListener(MouseEvent.CLICK, ingamepausegame);
mcui.btnpause.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnpause.addEventListener(MouseEvent.CLICK, ingamepausegame);
mcui.btnlevelup.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnlevelup.removeEventListener(MouseEvent.CLICK, ingameopenskill);
mcui.btnlevelup.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcui.btnlevelup.addEventListener(MouseEvent.CLICK, ingameopenskill);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyboardwaitingdown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyboardwaitingup);
stage.addEventListener(Event.ENTER_FRAME, herowaiting);
stage.addEventListener(Event.ENTER_FRAME, gamewaiting);
trace(((templevel + " ") + so.data.tutorialtile2[slotused]));
if ((((((((templevel == 1)) && ((so.data.tutorialmovement[slotused] == false)))) || ((((templevel == 2)) && ((so.data.tutorialcaptain[slotused] == false)))))) || ((((templevel == 20)) && ((so.data.tutorialtile2[slotused] == false)))))){
waittutor = 75;
};
}
public function openskills(){
var _local1:*;
var _local2:*;
soundclick.play(0, 1, new SoundTransform(volsfx));
if (mctutorial.visible == false){
if (mcskills.currentFrame == 1){
mcui.btnarea.visible = false;
mcpause.gotoAndStop(1);
if ((((so.data.tutorialskill[slotused] == false)) && ((so.data.pts[slotused] > 0)))){
so.data.tutorialskill[slotused] = true;
loadtutorial("skill");
};
_local1 = 1;
while (_local1 <= 5) {
_local2 = mcui.getChildByName(("mcskill" + _local1));
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, skilldragdown2);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, skilldragdown2);
_local1++;
};
mcskills.mc1.txtlvl.text = so.data.templarlevel[slotused][so.data.maintemplar[slotused]];
pausegame = true;
loadskilltree(mcskills.mc1);
mcskills.gotoAndPlay(2);
mcui.mcdarken.visible = true;
} else {
mcui.btnarea.visible = true;
cekpause();
};
};
stage.focus = stage;
}
public function createghost(){
var _local1:*;
var _local2:*;
stage.removeEventListener(Event.ENTER_FRAME, herowaiting);
_local1 = 0;
while (_local1 < reliccd.length) {
if (relicno[_local1] == 2){
reliccd[_local1] = reliccdtemp[2];
break;
};
_local1++;
};
readyres = false;
_local2 = carimain();
fximage[fximage.length] = new (summon3);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].x = _local2.x;
fximage[(fximage.length - 1)].y = _local2.y;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, ghostwaiting);
}
public function cekhitenemy(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = cekvalidunittarget(_arg1);
if (_local2 == true){
_local3 = _arg1.targete;
if ((((((((unitimage[_local3] is hero5)) || ((unitimage[_local3] is hero6)))) || ((unitimage[_local3] is hero7)))) || ((unitimage[_local3] is hero8)))){
unitimage[_local3].fallback = true;
unitimage[_local3].wanderingtime = 0;
};
if (_arg1.healbool == false){
if (unitimage[_local3].invulnerable == false){
if (unitimage[_local3].shieldduration > 0){
trace("HEAL");
healunitini(_local3, 3);
} else {
_local4 = randRange(0, 100);
if (_local4 > unitimage[_local3].dodgechance){
hpkurangi(_local3, _arg1);
};
};
};
} else {
healunitini(_local3, _arg1.atk);
};
};
}
public function catapultwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (pausegame == false){
catapulttime--;
if (catapulttime <= 0){
catapulttime = 4;
_local2 = 0;
while (_local2 <= 4) {
_local3 = {x:(55 + (catapultindex * 100)), y:(112 + (60 * _local2))};
createmissile(fxcatapult, 4, 100, 1, _local3, -1, null);
_local3 = null;
_local2++;
};
catapultindex++;
if (catapultindex > 6){
stage.removeEventListener(Event.ENTER_FRAME, catapultwaiting);
};
};
};
}
public function cekmainpassive(){
if (so.data.maintemplar[slotused] == 1){
slowrate = 10;
burndamage = -1;
spellmultiplier = 0;
if (so.data.skilllevel[slotused][14] > 0){
slowrate = templarskilldamage[so.data.maintemplar[slotused]][14][1][so.data.skilllevel[slotused][14]];
};
if (so.data.skilllevel[slotused][15] > 0){
burndamage = templarskilldamage[so.data.maintemplar[slotused]][15][1][so.data.skilllevel[slotused][15]];
};
if (so.data.skilllevel[slotused][13] > 0){
spellmultiplier = templarskilldamage[so.data.maintemplar[slotused]][13][1][so.data.skilllevel[slotused][13]];
};
} else {
slowrate = 0;
stunchance = 0;
weaponmastery = 0;
rifleindex = 0;
rifleamount = 1;
critchance = -1;
shotgunmastery = 0;
riflemastery = 0;
toxicdamage = -1;
if (so.data.skilllevel[slotused][6] > 0){
slowrate = templarskilldamage[so.data.maintemplar[slotused]][6][2][so.data.skilllevel[slotused][6]];
};
if (so.data.skilllevel[slotused][7] > 0){
toxicdamage = (templarskilldamage[so.data.maintemplar[slotused]][7][1][so.data.skilllevel[slotused][7]] / toxicduration);
};
if (so.data.skilllevel[slotused][9] > 0){
riflemastery = templarskilldamage[so.data.maintemplar[slotused]][9][1][so.data.skilllevel[slotused][9]];
};
if (so.data.skilllevel[slotused][10] > 0){
shotgunmastery = templarskilldamage[so.data.maintemplar[slotused]][10][1][so.data.skilllevel[slotused][10]];
};
if (so.data.skilllevel[slotused][11] > 0){
critchance = templarskilldamage[so.data.maintemplar[slotused]][11][1][so.data.skilllevel[slotused][11]];
};
if (so.data.skilllevel[slotused][12] > 0){
rifleamount = 2;
};
if (so.data.skilllevel[slotused][13] > 0){
weaponmastery = templarskilldamage[so.data.maintemplar[slotused]][13][1][so.data.skilllevel[slotused][13]];
};
if (so.data.skilllevel[slotused][14] > 0){
stunchance = templarskilldamage[so.data.maintemplar[slotused]][14][1][so.data.skilllevel[slotused][14]];
};
};
}
public function entombedwaiting(_arg1:Event):void{
var _local2:*;
if (pausegame == false){
towerskillbool = true;
entombedtime--;
if (entombedtime <= 0){
createattacksound(3);
entombedtime = entombedtimetemp;
_local2 = {x:750, y:(115 + (74 * entombedindex))};
if (temparea == 2){
createmissile(fxentombed, 8, entombeddamage, 0, _local2, -1, null);
} else {
createmissile(fxbosswave, 8, entombeddamage, 0, _local2, -1, null);
};
_local2 = null;
entombedindex++;
if (entombedindex > 3){
if (temparea == 2){
carinexttower();
towerskillbool = false;
};
stage.removeEventListener(Event.ENTER_FRAME, entombedwaiting);
};
};
};
}
public function mainmenuback(_arg1:Event):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mcmainmenu.btnplay.visible = true;
mcmainmenu.btncredits.visible = true;
mcmainmenu.btnmoregames.visible = true;
mcmainmenu.mcoption.visible = false;
}
public function loadcaptain(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
newcaptain = false;
mcmap.mccaptain.visible = true;
mcmap.mccaptain.btnback.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mccaptain.btnback.removeEventListener(MouseEvent.CLICK, mapskillback);
mcmap.mccaptain.btnback.addEventListener(MouseEvent.MOUSE_OVER, oversound);
mcmap.mccaptain.btnback.addEventListener(MouseEvent.CLICK, mapskillback);
_local1 = 1;
while (_local1 <= 3) {
_local3 = mcmap.mccaptain.getChildByName(("mc" + _local1));
_local3.mc1.gotoAndStop("locked");
_local3.txtlvl.text = "";
_local3.txtname.text = "";
_local3.mcexp.visible = false;
_local3.txthp.text = "";
_local3.txtatk.text = "";
_local3.mclevel.visible = false;
_local3.mcskill1.visible = false;
_local3.mcskill2.visible = false;
_local3.mcskill3.visible = false;
_local3.txtnot.visible = true;
_local1++;
};
_local2 = 1;
_local1 = 3;
while (_local1 < so.data.templar[slotused].length) {
if (so.data.templar[slotused][_local1] == 1){
_local3 = mcmap.mccaptain.getChildByName(("mc" + _local2));
_local3.mc1.gotoAndStop(_local1);
_local3.txtlvl.text = so.data.templarlevel[slotused][_local1];
_local3.btnexp.templare = _local1;
_local3.btnexp.removeEventListener(MouseEvent.MOUSE_OVER, exptextover);
_local3.btnexp.addEventListener(MouseEvent.MOUSE_OVER, exptextover);
_local3.btnexp.removeEventListener(MouseEvent.MOUSE_OUT, exptextout);
_local3.btnexp.addEventListener(MouseEvent.MOUSE_OUT, exptextout);
_local3.txtnot.visible = false;
_local4 = _local3.txtname;
_local4.text = "asd";
_local5 = _local4.textHeight;
_local6 = -69.4;
_local4.text = templarname[_local1];
if (_local4.textHeight <= _local5){
_local4.y = _local6;
} else {
_local8 = 1;
while (_local8 <= 5) {
if (_local4.textHeight <= int(((21 + (_local8 * _local5)) + 2))){
_local4.y = (_local6 - (_local8 * 5));
break;
};
_local8++;
};
};
_local3.mcexp.visible = true;
_local3.mcexp.mc1.width = ((so.data.expe[slotused][_local1] / (so.data.templarlevel[slotused][_local1] * captainexpperlevel)) * 52);
_local3.txthp.text = (templarhp[_local1] * so.data.templarlevel[slotused][_local1]);
_local3.txtatk.text = int(((templaratk[_local1] * so.data.templarlevel[slotused][_local1]) * captainatkmultiplier));
_local3.mclevel.visible = true;
_local3.mcskill1.visible = true;
_local3.mcskill2.visible = true;
_local3.mcskill3.visible = true;
_local7 = 1;
while (_local7 <= 3) {
_local9 = _local3.getChildByName(("mcskill" + _local7));
_local9.mc1.mc1.gotoAndStop((("skill" + _local1) + _local7));
_local9.mc1.mc2.gotoAndStop((("skill" + _local1) + _local7));
_local9.gotoAndStop(1);
if (so.data.templarlevel[slotused][_local1] >= captainskillreq[_local7]){
_local9.gotoAndStop(2);
};
_local9.mc1.gotoAndStop(1);
_local9.removeEventListener(MouseEvent.MOUSE_OVER, oversound);
_local9.addEventListener(MouseEvent.MOUSE_OVER, oversound);
_local9.removeEventListener(MouseEvent.MOUSE_OVER, skilloverbutton);
_local9.addEventListener(MouseEvent.MOUSE_OVER, skilloverbutton);
_local9.removeEventListener(MouseEvent.MOUSE_OVER, skillovertext2);
_local9.addEventListener(MouseEvent.MOUSE_OVER, skillovertext2);
_local9.removeEventListener(MouseEvent.MOUSE_OUT, skilloutbutton);
_local9.addEventListener(MouseEvent.MOUSE_OUT, skilloutbutton);
_local7++;
};
_local2++;
};
_local1++;
};
}
public function cekchew(_arg1:int){
var _local2:*;
if (unitimage[_arg1].stat == "chew"){
_local2 = 0;
while (_local2 < unitimage.length) {
if (unitimage[_local2].id == unitimage[_arg1].chompedtargetid){
unitimage[_local2].alpha = 1;
unitimage[_local2].visible = true;
unitimage[_local2].notallowed = false;
unitimage[_local2].stat = "idle";
break;
};
_local2++;
};
};
}
public function createexp(_arg1:Object, _arg2:int){
var _local3:*;
_local3 = [undefined, smallexp, bigexp];
expimage[expimage.length] = new (fxexp);
addChildAt(expimage[(expimage.length - 1)], getChildIndex(mcexpposition));
expimage[(expimage.length - 1)].x = (_arg1.x + randRange(-30, 30));
expimage[(expimage.length - 1)].y = (_arg1.y + randRange(-30, 30));
expimage[(expimage.length - 1)].mc1.gotoAndStop(_arg2);
expimage[(expimage.length - 1)].amount = _local3[_arg2];
expimage[(expimage.length - 1)].indexke = (expimage.length - 1);
expimage[(expimage.length - 1)].wait = randRange(5, 15);
expimage[(expimage.length - 1)].targetx = mcexpposition.x;
expimage[(expimage.length - 1)].targety = mcexpposition.y;
implementmissilemovement1(expimage[(expimage.length - 1)]);
expimage[(expimage.length - 1)].addEventListener(Event.ENTER_FRAME, expwaiting);
}
public function createfirespirit(){
var _local1:*;
var _local2:*;
_local1 = carimain();
fximage[fximage.length] = new (fxfirespirit);
addChildAt(fximage[(fximage.length - 1)], getChildIndex(mcfxposition));
fximage[(fximage.length - 1)].positione = randRange(-20, 20);
fximage[(fximage.length - 1)].x = (_local1.x + fximage[(fximage.length - 1)].positione);
fximage[(fximage.length - 1)].y = (_local1.y - 50);
fximage[(fximage.length - 1)].phase = 1;
fximage[(fximage.length - 1)].directione = "right";
_local2 = templarskilldamage[so.data.maintemplar[slotused]][10][1][so.data.skilllevel[slotused][10]];
fximage[(fximage.length - 1)].side = 1;
fximage[(fximage.length - 1)].atk = _local2;
fximage[(fximage.length - 1)].ms = 5;
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, firespiritwaiting);
firespirit++;
}
public function ingamerestart(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
saveAGI();
cleanupspray();
transisi("reloader");
}
public function createwebfx(_arg1:int){
fximage[fximage.length] = new (fxweb);
addChildAt(fximage[(fximage.length - 1)], (getChildIndex(mcshadowposition) - 1));
fximage[(fximage.length - 1)].x = unitimage[_arg1].x;
fximage[(fximage.length - 1)].y = unitimage[_arg1].y;
fximage[(fximage.length - 1)].duratione = (webduration * 25);
fximage[(fximage.length - 1)].indexke = (fximage.length - 1);
fximage[(fximage.length - 1)].addEventListener(Event.ENTER_FRAME, webwaiting);
}
public function skilldragwaiting(_arg1:Event):void{
cekskilldrag();
}
public function sprayendingwaiting(_arg1:Event):void{
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speedy);
if (_arg1.currentTarget.y > 700){
removethisspray(_arg1.currentTarget);
};
}
public function eyeswaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:Point;
if (pausegame == false){
if (_arg1.currentTarget.phase == 1){
_local2 = false;
_local3 = 0;
while (_local3 < unitimage.length) {
if ((((unitimage[_local3].id == _arg1.currentTarget.followid)) && ((unitimage[_local3].onfog == true)))){
_local2 = true;
_arg1.currentTarget.followtarget = _local3;
break;
};
_local3++;
};
if (_local2 == true){
_local4 = unitimage[_arg1.currentTarget.followtarget].mc1.mceyes.localToGlobal(new Point(0, 0));
_arg1.currentTarget.x = _local4.x;
_arg1.currentTarget.y = _local4.y;
if (_arg1.currentTarget.x < 662){
_arg1.currentTarget.gotoAndPlay(2);
_arg1.currentTarget.phase = 2;
};
} else {
_arg1.currentTarget.gotoAndPlay(2);
_arg1.currentTarget.phase = 2;
};
} else {
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
removethisfx(_arg1.currentTarget);
};
};
};
}
public function tinkengineerwaiting(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (pausegame == false){
if (_arg1.currentTarget.currentLabel != "summon"){
_arg1.currentTarget.duratione--;
if ((((_arg1.currentTarget.duratione <= 0)) && (!((_arg1.currentTarget.stat == "die"))))){
_arg1.currentTarget.gotoAndPlay("die");
_arg1.currentTarget.stat = "die";
};
if (_arg1.currentTarget.stat == "idle"){
_arg1.currentTarget.mchpbar.mc1.width = ((_arg1.currentTarget.duratione / _arg1.currentTarget.durationetemp) * 22);
if (_arg1.currentTarget.currentLabel != "idle"){
_arg1.currentTarget.gotoAndPlay("idle");
};
_local2 = [];
_local3 = 0;
while (_local3 < unitimage.length) {
if ((((unitimage[_local3] is wall1)) && ((unitimage[_local3].hp < unitimage[_local3].hptemp)))){
_local2[_local2.length] = _local3;
};
_local3++;
};
if (_local2.length > 0){
_local4 = randRange(0, (_local2.length - 1));
_arg1.currentTarget.donex = false;
_arg1.currentTarget.doney = false;
_arg1.currentTarget.goto = _local2[_local4];
_arg1.currentTarget.stat = "go";
};
} else {
if (_arg1.currentTarget.stat == "go"){
if (_arg1.currentTarget.currentLabel != "walk"){
_arg1.currentTarget.gotoAndPlay("walk");
};
_local5 = _arg1.currentTarget.goto;
if (_arg1.currentTarget.donex == false){
if (unitimage[_local5].x > _arg1.currentTarget.x){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.ms);
if (_arg1.currentTarget.directione == "left"){
_arg1.currentTarget.directione = "right";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
};
if (unitimage[_local5].x <= _arg1.currentTarget.x){
_arg1.currentTarget.donex = true;
};
} else {
if (unitimage[_local5].x < _arg1.currentTarget.x){
_arg1.currentTarget.x = (_arg1.currentTarget.x - _arg1.currentTarget.ms);
if (_arg1.currentTarget.directione == "right"){
_arg1.currentTarget.directione = "left";
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
};
if (unitimage[_local5].x >= _arg1.currentTarget.x){
_arg1.currentTarget.donex = true;
};
} else {
if (unitimage[_local5].x == _arg1.currentTarget.x){
_arg1.currentTarget.donex = true;
};
};
};
};
if (_arg1.currentTarget.doney == false){
if (unitimage[_local5].y > _arg1.currentTarget.y){
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.ms);
if (unitimage[_local5].y <= _arg1.currentTarget.y){
_arg1.currentTarget.doney = true;
};
} else {
if (unitimage[_local5].y < _arg1.currentTarget.y){
_arg1.currentTarget.y = (_arg1.currentTarget.y - _arg1.currentTarget.ms);
if (unitimage[_local5].y >= _arg1.currentTarget.y){
_arg1.currentTarget.doney = true;
};
} else {
if (unitimage[_local5].y == _arg1.currentTarget.y){
_arg1.currentTarget.doney = true;
};
};
};
};
if ((((_arg1.currentTarget.donex == true)) && ((_arg1.currentTarget.doney == true)))){
_arg1.currentTarget.stat = "repair";
};
} else {
if (_arg1.currentTarget.stat == "repair"){
_local5 = _arg1.currentTarget.goto;
if (unitimage[_local5].hp < unitimage[_local5].hptemp){
_arg1.currentTarget.healtime--;
if (_arg1.currentTarget.healtime <= 0){
_arg1.currentTarget.healtime = _arg1.currentTarget.healtimetemp;
_local6 = (unitimage[_local5].hptemp * (_arg1.currentTarget.healamount / 100));
healunitini(_local5, _local6);
_arg1.currentTarget.stat = "idle";
};
} else {
_arg1.currentTarget.stat = "idle";
};
} else {
if (_arg1.currentTarget.currentLabel == "donedie"){
removethisunit(_arg1.currentTarget);
};
};
};
};
};
};
}
public function createtilespecial(){
var _local1:*;
_local1 = 0;
while (_local1 < leveltilespecial[templevel].length) {
unitimage[unitimage.length] = new (ingamepanel);
addChildAt(unitimage[(unitimage.length - 1)], (getChildIndex(mcunitposition) - 1));
unitimage[(unitimage.length - 1)].x = leveltilespecialpos[templevel][_local1][0];
unitimage[(unitimage.length - 1)].y = leveltilespecialpos[templevel][_local1][1];
generaterawdata((unitimage.length - 1));
unitimage[(unitimage.length - 1)].tile = true;
unitimage[(unitimage.length - 1)].notallowed = true;
unitimage[(unitimage.length - 1)].side = 1;
unitimage[(unitimage.length - 1)].tipe = leveltilespecial[templevel][_local1];
unitimage[(unitimage.length - 1)].cd = 0;
unitimage[(unitimage.length - 1)].cdtemp = (tilespecialcd[leveltilespecial[templevel][_local1]] * 25);
unitimage[(unitimage.length - 1)].addEventListener(Event.ENTER_FRAME, tilewaiting);
if ((((so.data.tutorialtile1[slotused] == false)) && ((templevel == 1)))){
unitimage[(unitimage.length - 1)].visible = false;
};
_local1++;
};
}
public function ccdone(_arg1:MouseEvent):void{
var _local2:*;
if (selectthiscap != -1){
soundselecttemplar.play(0, 1, new SoundTransform(volsfx));
mcchoosecaptain.mcor.gotoAndPlay(2);
mcchoosecaptain.mcframe.visible = false;
so.data.templar[slotused][captainlist[so.data.choosecaptainke[slotused]][selectthiscap]] = 1;
so.data.templarlevel[slotused][captainlist[so.data.choosecaptainke[slotused]][selectthiscap]] = captainlevel[so.data.choosecaptainke[slotused]];
so.data.choosecaptainbool[slotused] = false;
_local2 = mcchoosecaptain.getChildByName(("mc" + selectthiscap));
_local2.mc1.mc1.gotoAndPlay(2);
_local2.addEventListener(Event.ENTER_FRAME, captainflywaiting);
mcdone.visible = false;
if (selectthiscap == 1){
mcchoosecaptain.mc2.gotoAndPlay("done");
} else {
mcchoosecaptain.mc1.gotoAndPlay("done");
};
mcchoosecaptain.mc2.removeEventListener(MouseEvent.CLICK, ccselectcaptain);
mcchoosecaptain.mc2.removeEventListener(MouseEvent.MOUSE_OVER, cccaptainover);
mcchoosecaptain.mc2.removeEventListener(MouseEvent.MOUSE_OUT, cccaptainout);
mcchoosecaptain.mc1.removeEventListener(MouseEvent.CLICK, ccselectcaptain);
mcchoosecaptain.mc1.removeEventListener(MouseEvent.MOUSE_OVER, cccaptainover);
mcchoosecaptain.mc1.removeEventListener(MouseEvent.MOUSE_OUT, cccaptainout);
};
}
public function mapnextact(_arg1:MouseEvent):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
if (_arg1.currentTarget.currentFrame == 2){
temparea++;
loadlevel();
};
}
public function deletecancel(_arg1:Event):void{
soundclick.play(0, 1, new SoundTransform(volsfx));
mcmainmenu.mcdelete.visible = false;
mcmainmenu.mcoption.visible = true;
loadslot();
}
public function charclick(_arg1:MouseEvent):void{
var _local2:*;
soundmaintemplarselect.play(0, 1, new SoundTransform(volsfx));
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
if (charke != _local2){
charke = _local2;
mccharselect.mc1.gotoAndStop(1);
mccharselect.mc2.gotoAndStop(1);
mccharselect.mcchoose.visible = false;
mccharselect.mcframe.visible = true;
mccharselect.mcframe.gotoAndStop(charke);
_arg1.currentTarget.gotoAndPlay(2);
mccharselect.mcdesc.visible = true;
mccharselect.mcdesc.mc1.gotoAndStop(charke);
mccharselect.mcdone.gotoAndStop(2);
mccharselect.mcdone.addEventListener(MouseEvent.CLICK, charselectdone);
};
}
public function mapskillreset(_arg1:MouseEvent):void{
var _local2:*;
soundreset.play(0, 1, new SoundTransform(volsfx));
_local2 = 1;
while (_local2 < 30) {
so.data.skilllevel[slotused][_local2] = 0;
_local2++;
};
so.data.skilllevel[slotused][1] = 1;
so.data.pts[slotused] = (so.data.templarlevel[slotused][so.data.maintemplar[slotused]] - 1);
if (currentLabel == "ingame"){
_local2 = 1;
while (_local2 <= 5) {
trace(("cek 1 : " + so.data.skillregister[slotused][_local2]));
trace(("cek 2 : " + so.data.skilllevel[slotused][so.data.skillregister[slotused][_local2]]));
if (so.data.skilllevel[slotused][so.data.skillregister[slotused][_local2]] == 0){
so.data.skillregister[slotused][_local2] = -1;
};
_local2++;
};
loadskilltree(mcskills.mc1);
loadautoskillregister();
} else {
so.data.skillregister[slotused] = [undefined, 1, -1, -1, -1, -1];
loadmaintemplar(mcmap.mcskills);
loadskillslot();
};
}
}
}//package AoT_fla
Section 64
//MAP_537 (AoT_fla.MAP_537)
package AoT_fla {
import flash.display.*;
public dynamic class MAP_537 extends MovieClip {
public var mcrelic2:MovieClip;
public var mcrelic1:MovieClip;
public var mcskills:MovieClip;
public var mcscourge:MovieClip;
public var btnag:SimpleButton;
public var mclevel:MovieClip;
public var mccaptain:MovieClip;
}
}//package AoT_fla
Section 65
//MUSC_405 (AoT_fla.MUSC_405)
package AoT_fla {
import flash.display.*;
public dynamic class MUSC_405 extends MovieClip {
public function MUSC_405(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 66
//PRELOADER_10 (AoT_fla.PRELOADER_10)
package AoT_fla {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
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 PRELOADER_10 extends MovieClip {
public var loader:Loader;
public var abs_url:String;
public var urlRequest:URLRequest;
public var abs;
public var enviroposition:MovieClip;
public function PRELOADER_10(){
addFrameScript(0, frame1);
}
public function loadComplete(_arg1:Event):void{
abs = _arg1.currentTarget.content;
addChild(abs);
abs.show({x:100, y:100, backgroundColor:4861953});
}
function frame1(){
abs_url = "http://agi.armorgames.com/assets/agi/ABS.swf";
Security.allowDomain(abs_url);
urlRequest = new URLRequest(abs_url);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.load(urlRequest);
}
}
}//package AoT_fla
Section 67
//SKILL_665 (AoT_fla.SKILL_665)
package AoT_fla {
import flash.display.*;
public dynamic class SKILL_665 extends MovieClip {
public var mcskillline4:MovieClip;
public var mcskillline8:MovieClip;
public var mcskillline5:MovieClip;
public var mcskillline6:MovieClip;
public var mcskillline9:MovieClip;
public var mc10:MovieClip;
public var mc11:MovieClip;
public var mc13:MovieClip;
public var mc12:MovieClip;
public var mcskillline12:MovieClip;
public var mc3:MovieClip;
public var mc5:MovieClip;
public var mc2:MovieClip;
public var mc8:MovieClip;
public var mc4:MovieClip;
public var mc7:MovieClip;
public var mcskillline7:MovieClip;
public var mcline:MovieClip;
public var mc9:MovieClip;
public var mc6:MovieClip;
public var mc1:MovieClip;
public var mcnumba5:MovieClip;
public var mcnumba1:MovieClip;
public var mc14:MovieClip;
public var mc15:MovieClip;
public var mcnumba3:MovieClip;
public var mcnumba2:MovieClip;
public var mcnumba6:MovieClip;
public var mcnumba4:MovieClip;
}
}//package AoT_fla
Section 68
//SKILL_669 (AoT_fla.SKILL_669)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class SKILL_669 extends MovieClip {
public var mc1:MovieClip;
public var btnminus:SimpleButton;
public var txt1:TextField;
public var btnplus:SimpleButton;
public function SKILL_669(){
addFrameScript(0, frame1);
}
function frame1(){
txt1.mouseEnabled = false;
}
}
}//package AoT_fla
Section 69
//SKILL_670 (AoT_fla.SKILL_670)
package AoT_fla {
import flash.display.*;
public dynamic class SKILL_670 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package AoT_fla
Section 70
//SKILL_678 (AoT_fla.SKILL_678)
package AoT_fla {
import flash.display.*;
public dynamic class SKILL_678 extends MovieClip {
public var mc10:MovieClip;
public var mc11:MovieClip;
public var mc13:MovieClip;
public var mc12:MovieClip;
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc5:MovieClip;
public var mc2:MovieClip;
public var mc8:MovieClip;
public var mc4:MovieClip;
public var mc7:MovieClip;
public var mcline:MovieClip;
public var mc9:MovieClip;
public var mc6:MovieClip;
public var mc15:MovieClip;
public var mcnumba5:MovieClip;
public var mcnumba6:MovieClip;
public var mcnumba7:MovieClip;
public var mcnumba1:MovieClip;
public var mc14:MovieClip;
public var mcnumba8:MovieClip;
public var mcnumba9:MovieClip;
public var mcnumba3:MovieClip;
public var mcnumba2:MovieClip;
public var mcnumba4:MovieClip;
}
}//package AoT_fla
Section 71
//SKILL_680 (AoT_fla.SKILL_680)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class SKILL_680 extends MovieClip {
public var mc1:MovieClip;
public var btnminus:SimpleButton;
public var txt1:TextField;
public var btnplus:SimpleButton;
public function SKILL_680(){
addFrameScript(0, frame1);
}
function frame1(){
txt1.mouseEnabled = false;
}
}
}//package AoT_fla
Section 72
//SKILL_681 (AoT_fla.SKILL_681)
package AoT_fla {
import flash.display.*;
public dynamic class SKILL_681 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package AoT_fla
Section 73
//Splash_409 (AoT_fla.Splash_409)
package AoT_fla {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
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 Splash_409 extends MovieClip {
public var size;
public var minusery;
public var linkee;
public var total;
public var image;
public var i;
public var j;
public var minuserx;
public var mchere:MovieClip;
public var startey;
public var startex;
public var waittime;
public var xe;
public function Splash_409(){
addFrameScript(35, frame36, 137, frame138, 172, frame173);
}
function frame173(){
stop();
}
public function preloader(_arg1:Event):void{
_arg1.currentTarget.delaye--;
if (_arg1.currentTarget.delaye > 0){
_arg1.currentTarget.visible = false;
} else {
_arg1.currentTarget.visible = true;
_arg1.currentTarget.mc2.gotoAndPlay(1);
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, preloader);
};
}
function frame36(){
waittime = 2;
size = 20;
total = Math.ceil((85 / size));
image = [];
xe = 0;
while (xe < 4) {
minuserx = [-1, 1, 1, -1];
minusery = [-1, -1, 1, 1];
linkee = [asd, asd2, asd3, asd4];
startex = [0, 20, 20, 0];
startey = [0, 0, 20, 20];
i = 0;
while (i < total) {
j = 0;
while (j < total) {
image[image.length] = new (linkee[xe]);
addChildAt(image[(image.length - 1)], getChildIndex(mchere));
image[(image.length - 1)].x = 0;
image[(image.length - 1)].y = 1;
image[(image.length - 1)].mc1.x = startex[xe];
image[(image.length - 1)].mc1.y = startey[xe];
image[(image.length - 1)].mc1.x = (image[(image.length - 1)].mc1.x + ((i * size) * minuserx[xe]));
image[(image.length - 1)].mc1.y = (image[(image.length - 1)].mc1.y + ((j * size) * minusery[xe]));
image[(image.length - 1)].delaye = ((i * waittime) + (j * waittime));
image[(image.length - 1)].visible = false;
image[(image.length - 1)].addEventListener(Event.ENTER_FRAME, preloader);
trace(((("di : " + image[(image.length - 1)].mc1.x) + " ") + image[(image.length - 1)].mc1.y));
j++;
};
i++;
};
xe++;
};
trace(("tot : " + int((image.length - 1))));
}
function frame138(){
trace(("JUM IMAGE : " + image.length));
i = 0;
while (i < image.length) {
trace("REMOVE");
removeChild(image[i]);
image[i] = null;
i++;
};
trace(("JUM IMAGE NOW : " + image.length));
}
}
}//package AoT_fla
Section 74
//Splash_412 (AoT_fla.Splash_412)
package AoT_fla {
import flash.display.*;
public dynamic class Splash_412 extends MovieClip {
public function Splash_412(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package AoT_fla
Section 75
//STAGE_725 (AoT_fla.STAGE_725)
package AoT_fla {
import flash.display.*;
public dynamic class STAGE_725 extends MovieClip {
public var mcdrawbridge:MovieClip;
public var btnrelic4:MovieClip;
}
}//package AoT_fla
Section 76
//Symbol1_62 (AoT_fla.Symbol1_62)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol1_62 extends MovieClip {
public var txt1:TextField;
public function Symbol1_62(){
addFrameScript(0, frame1);
}
function frame1(){
txt1.mouseEnabled = false;
}
}
}//package AoT_fla
Section 77
//Symbol101_676 (AoT_fla.Symbol101_676)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol101_676 extends MovieClip {
public var mc1:MovieClip;
public function Symbol101_676(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 78
//Symbol127_579 (AoT_fla.Symbol127_579)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol127_579 extends MovieClip {
public var mcskill2:MovieClip;
public var mcskill1:MovieClip;
public var mcskill3:MovieClip;
public var btnexp:MovieClip;
public var mc1:MovieClip;
public var txtnot:TextField;
public var btnhp:SimpleButton;
public var txthp:TextField;
public var txtname:TextField;
public var txtatk:TextField;
public var mclevel:MovieClip;
public var txtlvl:TextField;
public var btnatk:SimpleButton;
public var mcexp:MovieClip;
}
}//package AoT_fla
Section 79
//Symbol128_578 (AoT_fla.Symbol128_578)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol128_578 extends MovieClip {
public var btnback:SimpleButton;
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc2:MovieClip;
}
}//package AoT_fla
Section 80
//Symbol131_523 (AoT_fla.Symbol131_523)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol131_523 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package AoT_fla
Section 81
//Symbol132_522 (AoT_fla.Symbol132_522)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol132_522 extends MovieClip {
public var mc1:MovieClip;
}
}//package AoT_fla
Section 82
//Symbol133_580 (AoT_fla.Symbol133_580)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol133_580 extends MovieClip {
public function Symbol133_580(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package AoT_fla
Section 83
//Symbol134_589 (AoT_fla.Symbol134_589)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol134_589 extends MovieClip {
public var txtdesc:TextField;
public var mc15:MovieClip;
public var mc10:MovieClip;
public var mc11:MovieClip;
public var mc13:MovieClip;
public var mc16:MovieClip;
public var mc17:MovieClip;
public var mc19:MovieClip;
public var btnback:SimpleButton;
public var mc18:MovieClip;
public var mc14:MovieClip;
public var mc1:MovieClip;
public var mc22:MovieClip;
public var mc5:MovieClip;
public var txtnot:TextField;
public var btnhp:SimpleButton;
public var mc4:MovieClip;
public var mc12:MovieClip;
public var btnnext:MovieClip;
public var mc20:MovieClip;
public var mc21:MovieClip;
public var mc7:MovieClip;
public var txthp:TextField;
public var txtname:TextField;
public var mc2:MovieClip;
public var mc6:MovieClip;
public var mc9:MovieClip;
public var btnprev:MovieClip;
public var mcenemy:MovieClip;
public var txtatk:TextField;
public var btnatk:SimpleButton;
}
}//package AoT_fla
Section 84
//Symbol146_752 (AoT_fla.Symbol146_752)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol146_752 extends MovieClip {
public var mcskill2:MovieClip;
public var mcskill5:MovieClip;
public var mcskill1:MovieClip;
public var btnpause:SimpleButton;
public var mcskill3:MovieClip;
public var mcskill4:MovieClip;
public var mcarrow:MovieClip;
public var mcbody:MovieClip;
public var btnlevelup:MovieClip;
public var btnexp:MovieClip;
public var btnmute2:MovieClip;
public var btnmute1:MovieClip;
public var mcexp2:MovieClip;
public var mchptop:MovieClip;
public var mcskilloncd:MovieClip;
public var txthp:TextField;
public var mcline:MovieClip;
public var btnag:SimpleButton;
public var mcdarken:MovieClip;
public var mcexp:MovieClip;
public var btnarea:SimpleButton;
}
}//package AoT_fla
Section 85
//Symbol146copy_695 (AoT_fla.Symbol146copy_695)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol146copy_695 extends MovieClip {
public var mcskill2:MovieClip;
public var mcskill5:MovieClip;
public var btnclose:SimpleButton;
public var mcskill1:MovieClip;
public var mcskill3:MovieClip;
public var mcskill4:MovieClip;
public var mcarrow:MovieClip;
}
}//package AoT_fla
Section 86
//Symbol149_696 (AoT_fla.Symbol149_696)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol149_696 extends MovieClip {
public var mcbg1:SimpleButton;
public var mcbody:MovieClip;
public var mcbg2:SimpleButton;
public var mccd:MovieClip;
public var mcskill:MovieClip;
public var txt1:TextField;
public var mcmask1:MovieClip;
public var mcmask2:MovieClip;
public function Symbol149_696(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
txt1.mouseEnabled = false;
mccd.mouseEnabled = false;
mccd.mouseChildren = false;
mcmask2.mouseEnabled = false;
mcmask2.mouseChildren = false;
mcmask1.mouseEnabled = false;
mcmask1.mouseChildren = false;
mcskill.mouseEnabled = false;
mcskill.mouseChildren = false;
mcbg1.visible = true;
}
function frame2(){
txt1.mouseEnabled = false;
mccd.mouseEnabled = false;
mccd.mouseChildren = false;
mcmask2.mouseEnabled = false;
mcmask2.mouseChildren = false;
mcmask1.mouseEnabled = false;
mcmask1.mouseChildren = false;
mcskill.mouseEnabled = false;
mcskill.mouseChildren = false;
mcbg1.visible = false;
}
}
}//package AoT_fla
Section 87
//Symbol154_706 (AoT_fla.Symbol154_706)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol154_706 extends MovieClip {
public var txt1:TextField;
}
}//package AoT_fla
Section 88
//Symbol16_434 (AoT_fla.Symbol16_434)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol16_434 extends MovieClip {
public function Symbol16_434(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 89
//Symbol162_761 (AoT_fla.Symbol162_761)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol162_761 extends MovieClip {
public function Symbol162_761(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package AoT_fla
Section 90
//Symbol166_701 (AoT_fla.Symbol166_701)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol166_701 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package AoT_fla
Section 91
//Symbol167asdasd_263 (AoT_fla.Symbol167asdasd_263)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol167asdasd_263 extends MovieClip {
public function Symbol167asdasd_263(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 92
//Symbol169_34 (AoT_fla.Symbol169_34)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol169_34 extends MovieClip {
public var mc1:MovieClip;
public function Symbol169_34(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 93
//Symbol169copy_43 (AoT_fla.Symbol169copy_43)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol169copy_43 extends MovieClip {
public var mc1:MovieClip;
public function Symbol169copy_43(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 94
//Symbol17_438 (AoT_fla.Symbol17_438)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol17_438 extends MovieClip {
public function Symbol17_438(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 95
//Symbol177_106 (AoT_fla.Symbol177_106)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol177_106 extends MovieClip {
public function Symbol177_106(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 96
//Symbol18_433 (AoT_fla.Symbol18_433)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol18_433 extends MovieClip {
public var mc1:MovieClip;
public function Symbol18_433(){
addFrameScript(0, frame1, 7, frame8, 48, frame49);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
function frame49(){
stop();
}
}
}//package AoT_fla
Section 97
//Symbol186_51 (AoT_fla.Symbol186_51)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol186_51 extends MovieClip {
public function Symbol186_51(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package AoT_fla
Section 98
//Symbol188_17 (AoT_fla.Symbol188_17)
package AoT_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 AoT_fla
Section 99
//Symbol189_123 (AoT_fla.Symbol189_123)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol189_123 extends MovieClip {
public function Symbol189_123(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 100
//Symbol193_128 (AoT_fla.Symbol193_128)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol193_128 extends MovieClip {
public function Symbol193_128(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package AoT_fla
Section 101
//Symbol194_126 (AoT_fla.Symbol194_126)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol194_126 extends MovieClip {
public function Symbol194_126(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 102
//Symbol199_145 (AoT_fla.Symbol199_145)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol199_145 extends MovieClip {
public function Symbol199_145(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package AoT_fla
Section 103
//Symbol20_437 (AoT_fla.Symbol20_437)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol20_437 extends MovieClip {
public var mc1:MovieClip;
public function Symbol20_437(){
addFrameScript(0, frame1, 7, frame8, 48, frame49);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
function frame49(){
stop();
}
}
}//package AoT_fla
Section 104
//Symbol200_149 (AoT_fla.Symbol200_149)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol200_149 extends MovieClip {
public function Symbol200_149(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package AoT_fla
Section 105
//Symbol200ASD_161 (AoT_fla.Symbol200ASD_161)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol200ASD_161 extends MovieClip {
public function Symbol200ASD_161(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package AoT_fla
Section 106
//Symbol201_150 (AoT_fla.Symbol201_150)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol201_150 extends MovieClip {
public function Symbol201_150(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package AoT_fla
Section 107
//Symbol201asdasd_162 (AoT_fla.Symbol201asdasd_162)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol201asdasd_162 extends MovieClip {
public function Symbol201asdasd_162(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package AoT_fla
Section 108
//Symbol203_155 (AoT_fla.Symbol203_155)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol203_155 extends MovieClip {
public function Symbol203_155(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 109
//Symbol2033214_157 (AoT_fla.Symbol2033214_157)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol2033214_157 extends MovieClip {
public function Symbol2033214_157(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 110
//Symbol204_164 (AoT_fla.Symbol204_164)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol204_164 extends MovieClip {
public function Symbol204_164(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 111
//Symbol205_168 (AoT_fla.Symbol205_168)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol205_168 extends MovieClip {
public function Symbol205_168(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 112
//Symbol208_18 (AoT_fla.Symbol208_18)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol208_18 extends MovieClip {
public function Symbol208_18(){
addFrameScript(0, frame1, 1, frame2, 36, frame37);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame37(){
gotoAndPlay(2);
}
}
}//package AoT_fla
Section 113
//Symbol21_439 (AoT_fla.Symbol21_439)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol21_439 extends MovieClip {
public function Symbol21_439(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package AoT_fla
Section 114
//Symbol219_66 (AoT_fla.Symbol219_66)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol219_66 extends MovieClip {
public function Symbol219_66(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 115
//Symbol22_440 (AoT_fla.Symbol22_440)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol22_440 extends MovieClip {
public function Symbol22_440(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package AoT_fla
Section 116
//Symbol225_193 (AoT_fla.Symbol225_193)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol225_193 extends MovieClip {
public function Symbol225_193(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 117
//Symbol23_441 (AoT_fla.Symbol23_441)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol23_441 extends MovieClip {
public function Symbol23_441(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package AoT_fla
Section 118
//Symbol230_201 (AoT_fla.Symbol230_201)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol230_201 extends MovieClip {
public function Symbol230_201(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 119
//Symbol231_203 (AoT_fla.Symbol231_203)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol231_203 extends MovieClip {
public function Symbol231_203(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 120
//Symbol233_206 (AoT_fla.Symbol233_206)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol233_206 extends MovieClip {
public function Symbol233_206(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 121
//Symbol233ASDASD_219 (AoT_fla.Symbol233ASDASD_219)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol233ASDASD_219 extends MovieClip {
public function Symbol233ASDASD_219(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 122
//Symbol236_216 (AoT_fla.Symbol236_216)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol236_216 extends MovieClip {
public function Symbol236_216(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 123
//Symbol237_223 (AoT_fla.Symbol237_223)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol237_223 extends MovieClip {
public function Symbol237_223(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 124
//Symbol237asdasd_227 (AoT_fla.Symbol237asdasd_227)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol237asdasd_227 extends MovieClip {
public function Symbol237asdasd_227(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package AoT_fla
Section 125
//Symbol238_222 (AoT_fla.Symbol238_222)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol238_222 extends MovieClip {
public function Symbol238_222(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package AoT_fla
Section 126
//Symbol238adasd_226 (AoT_fla.Symbol238adasd_226)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol238adasd_226 extends MovieClip {
public function Symbol238adasd_226(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package AoT_fla
Section 127
//Symbol239_20 (AoT_fla.Symbol239_20)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol239_20 extends MovieClip {
public function Symbol239_20(){
addFrameScript(0, frame1, 1, frame2, 62, frame63);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame63(){
gotoAndPlay(2);
}
}
}//package AoT_fla
Section 128
//Symbol24_442 (AoT_fla.Symbol24_442)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol24_442 extends MovieClip {
public function Symbol24_442(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package AoT_fla
Section 129
//Symbol240_21 (AoT_fla.Symbol240_21)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol240_21 extends MovieClip {
public function Symbol240_21(){
addFrameScript(0, frame1, 1, frame2, 11, frame12);
}
function frame12(){
gotoAndPlay(2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 130
//Symbol241_22 (AoT_fla.Symbol241_22)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol241_22 extends MovieClip {
public function Symbol241_22(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 131
//Symbol244_229 (AoT_fla.Symbol244_229)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol244_229 extends MovieClip {
public function Symbol244_229(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 132
//Symbol245_228 (AoT_fla.Symbol245_228)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol245_228 extends MovieClip {
public function Symbol245_228(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package AoT_fla
Section 133
//Symbol246_233 (AoT_fla.Symbol246_233)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol246_233 extends MovieClip {
public var mcbody:MovieClip;
public function Symbol246_233(){
addFrameScript(24, frame25, 41, frame42, 57, frame58, 83, frame84, 110, frame111, 127, frame128);
}
function frame84(){
stop();
}
function frame25(){
gotoAndPlay("idle");
}
function frame111(){
stop();
}
function frame128(){
gotoAndPlay("walk");
}
function frame42(){
stop();
}
function frame58(){
stop();
}
}
}//package AoT_fla
Section 134
//Symbol247_237 (AoT_fla.Symbol247_237)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol247_237 extends MovieClip {
public function Symbol247_237(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 135
//Symbol249_244 (AoT_fla.Symbol249_244)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol249_244 extends MovieClip {
public var mcbody:MovieClip;
public var mceyes:fxeyes2;
public function Symbol249_244(){
addFrameScript(7, frame8, 8, frame9, 26, frame27, 67, frame68);
}
function frame8(){
gotoAndPlay("walk");
}
function frame9(){
stop();
}
function frame27(){
stop();
}
function frame68(){
stop();
}
}
}//package AoT_fla
Section 136
//Symbol249adasdasds_249 (AoT_fla.Symbol249adasdasds_249)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol249adasdasds_249 extends MovieClip {
public var mcbody:MovieClip;
public var mceyes:fxeyes2;
public function Symbol249adasdasds_249(){
addFrameScript(7, frame8, 8, frame9, 26, frame27, 67, frame68);
}
function frame8(){
gotoAndPlay("walk");
}
function frame9(){
stop();
}
function frame27(){
stop();
}
function frame68(){
stop();
}
}
}//package AoT_fla
Section 137
//Symbol25_443 (AoT_fla.Symbol25_443)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol25_443 extends MovieClip {
public function Symbol25_443(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package AoT_fla
Section 138
//Symbol252_266 (AoT_fla.Symbol252_266)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol252_266 extends MovieClip {
public function Symbol252_266(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 139
//Symbol259_284 (AoT_fla.Symbol259_284)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol259_284 extends MovieClip {
public function Symbol259_284(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 140
//Symbol26_444 (AoT_fla.Symbol26_444)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol26_444 extends MovieClip {
public function Symbol26_444(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package AoT_fla
Section 141
//Symbol260_283 (AoT_fla.Symbol260_283)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol260_283 extends MovieClip {
public function Symbol260_283(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 142
//Symbol268_295 (AoT_fla.Symbol268_295)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol268_295 extends MovieClip {
public function Symbol268_295(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 143
//Symbol269_747 (AoT_fla.Symbol269_747)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol269_747 extends MovieClip {
public var mc1:MovieClip;
public function Symbol269_747(){
addFrameScript(99, frame100, 199, frame200);
}
function frame200(){
stop();
}
function frame100(){
stop();
}
}
}//package AoT_fla
Section 144
//Symbol270_302 (AoT_fla.Symbol270_302)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol270_302 extends MovieClip {
public function Symbol270_302(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 145
//Symbol272_307 (AoT_fla.Symbol272_307)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol272_307 extends MovieClip {
public function Symbol272_307(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 146
//Symbol28_447 (AoT_fla.Symbol28_447)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol28_447 extends MovieClip {
public function Symbol28_447(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 147
//Symbol280_328 (AoT_fla.Symbol280_328)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol280_328 extends MovieClip {
public function Symbol280_328(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 148
//Symbol288_351 (AoT_fla.Symbol288_351)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol288_351 extends MovieClip {
public function Symbol288_351(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 4));
}
}
}//package AoT_fla
Section 149
//Symbol29_448 (AoT_fla.Symbol29_448)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol29_448 extends MovieClip {
public function Symbol29_448(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 150
//Symbol30_446 (AoT_fla.Symbol30_446)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol30_446 extends MovieClip {
public function Symbol30_446(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 151
//Symbol300_788 (AoT_fla.Symbol300_788)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol300_788 extends MovieClip {
public function Symbol300_788(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package AoT_fla
Section 152
//Symbol309_41 (AoT_fla.Symbol309_41)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol309_41 extends MovieClip {
public function Symbol309_41(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 153
//Symbol31_487 (AoT_fla.Symbol31_487)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol31_487 extends MovieClip {
public function Symbol31_487(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 154
//Symbol310_40 (AoT_fla.Symbol310_40)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol310_40 extends MovieClip {
public var rand;
public var mc1:MovieClip;
public function Symbol310_40(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
rand = randRange(1, 2);
if (rand == 1){
mc1.scaleX = (mc1.scaleX * -1);
};
}
}
}//package AoT_fla
Section 155
//Symbol312_757 (AoT_fla.Symbol312_757)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol312_757 extends MovieClip {
public function Symbol312_757(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 156
//Symbol314_355 (AoT_fla.Symbol314_355)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol314_355 extends MovieClip {
public function Symbol314_355(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 157
//Symbol32_486 (AoT_fla.Symbol32_486)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol32_486 extends MovieClip {
public function Symbol32_486(){
addFrameScript(0, frame1, 30, frame31, 77, frame78, 157, frame158, 292, frame293, 340, frame341, 398, frame399);
}
function frame399(){
gotoAndStop(1);
}
function frame78(){
gotoAndPlay(("go" + randRange(1, 2)));
}
function frame158(){
gotoAndPlay(("go" + randRange(1, 2)));
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame293(){
gotoAndPlay(("go" + randRange(1, 2)));
}
function frame341(){
gotoAndStop(1);
}
function frame1(){
gotoAndPlay(("idle" + randRange(1, 4)));
}
function frame31(){
gotoAndPlay(("go" + randRange(1, 2)));
}
}
}//package AoT_fla
Section 158
//Symbol325_707 (AoT_fla.Symbol325_707)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol325_707 extends MovieClip {
public function Symbol325_707(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 159
//Symbol326name_496 (AoT_fla.Symbol326name_496)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol326name_496 extends MovieClip {
public var txt1:TextField;
}
}//package AoT_fla
Section 160
//Symbol327_765 (AoT_fla.Symbol327_765)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol327_765 extends MovieClip {
public function Symbol327_765(){
addFrameScript(0, frame1, 1, frame2, 24, frame25);
}
function frame1(){
stop();
}
function frame25(){
gotoAndPlay(2);
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 161
//Symbol327name_495 (AoT_fla.Symbol327name_495)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol327name_495 extends MovieClip {
public var mc1:MovieClip;
public function Symbol327name_495(){
addFrameScript(0, frame1, 1, frame2, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 162
//Symbol328_519 (AoT_fla.Symbol328_519)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol328_519 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mcframe:MovieClip;
public var mcor:MovieClip;
}
}//package AoT_fla
Section 163
//Symbol329_521 (AoT_fla.Symbol329_521)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol329_521 extends MovieClip {
public var txtdesc:TextField;
public var mcskill2:MovieClip;
public var mcskill1:MovieClip;
public var mcskill3:MovieClip;
public var mc1:MovieClip;
public var txttitle:TextField;
public function Symbol329_521(){
addFrameScript(0, frame1);
}
function frame1(){
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
txttitle.mouseEnabled = false;
txtdesc.mouseEnabled = false;
}
}
}//package AoT_fla
Section 164
//Symbol330_520 (AoT_fla.Symbol330_520)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol330_520 extends MovieClip {
public var mc1:MovieClip;
public function Symbol330_520(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 165
//Symbol331_528 (AoT_fla.Symbol331_528)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol331_528 extends MovieClip {
public var txtdesc:TextField;
public var mcskill2:MovieClip;
public var mcskill1:MovieClip;
public var mcskill3:MovieClip;
public var mc1:MovieClip;
public var txttitle:TextField;
public function Symbol331_528(){
addFrameScript(0, frame1);
}
function frame1(){
mc1.mouseChildren = false;
mc1.mouseEnabled = false;
txttitle.mouseEnabled = false;
txtdesc.mouseEnabled = false;
}
}
}//package AoT_fla
Section 166
//Symbol332_527 (AoT_fla.Symbol332_527)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol332_527 extends MovieClip {
public var mc1:MovieClip;
public function Symbol332_527(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 167
//Symbol333_529 (AoT_fla.Symbol333_529)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol333_529 extends MovieClip {
public function Symbol333_529(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 168
//Symbol334_516 (AoT_fla.Symbol334_516)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol334_516 extends MovieClip {
public var btndone:SimpleButton;
public function Symbol334_516(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 169
//Symbol335_531 (AoT_fla.Symbol335_531)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol335_531 extends MovieClip {
public var mcframe:MovieClip;
public function Symbol335_531(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 170
//Symbol336_525 (AoT_fla.Symbol336_525)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol336_525 extends MovieClip {
public var mc1:MovieClip;
public function Symbol336_525(){
addFrameScript(0, frame1, 52, frame53);
}
function frame1(){
stop();
}
function frame53(){
stop();
}
}
}//package AoT_fla
Section 171
//Symbol341_591 (AoT_fla.Symbol341_591)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol341_591 extends MovieClip {
public var mc1:MovieClip;
}
}//package AoT_fla
Section 172
//Symbol383_640 (AoT_fla.Symbol383_640)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol383_640 extends MovieClip {
public var mc20:SimpleButton;
}
}//package AoT_fla
Section 173
//Symbol384_646 (AoT_fla.Symbol384_646)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol384_646 extends MovieClip {
public var mc17:SimpleButton;
}
}//package AoT_fla
Section 174
//Symbol385_649 (AoT_fla.Symbol385_649)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol385_649 extends MovieClip {
public var mc18:SimpleButton;
}
}//package AoT_fla
Section 175
//Symbol386_643 (AoT_fla.Symbol386_643)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol386_643 extends MovieClip {
public var mc19:SimpleButton;
}
}//package AoT_fla
Section 176
//Symbol387_631 (AoT_fla.Symbol387_631)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol387_631 extends MovieClip {
public var mc13:SimpleButton;
}
}//package AoT_fla
Section 177
//Symbol388_634 (AoT_fla.Symbol388_634)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol388_634 extends MovieClip {
public var mc14:SimpleButton;
}
}//package AoT_fla
Section 178
//Symbol389_628 (AoT_fla.Symbol389_628)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol389_628 extends MovieClip {
public var mc15:SimpleButton;
}
}//package AoT_fla
Section 179
//Symbol390_637 (AoT_fla.Symbol390_637)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol390_637 extends MovieClip {
public var mc16:SimpleButton;
}
}//package AoT_fla
Section 180
//Symbol391_622 (AoT_fla.Symbol391_622)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol391_622 extends MovieClip {
public var mc10:SimpleButton;
}
}//package AoT_fla
Section 181
//Symbol392_616 (AoT_fla.Symbol392_616)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol392_616 extends MovieClip {
public var mc12:SimpleButton;
}
}//package AoT_fla
Section 182
//Symbol393_625 (AoT_fla.Symbol393_625)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol393_625 extends MovieClip {
public var mc11:SimpleButton;
}
}//package AoT_fla
Section 183
//Symbol394_619 (AoT_fla.Symbol394_619)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol394_619 extends MovieClip {
public var mc9:SimpleButton;
}
}//package AoT_fla
Section 184
//Symbol395_607 (AoT_fla.Symbol395_607)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol395_607 extends MovieClip {
public var mc5:SimpleButton;
}
}//package AoT_fla
Section 185
//Symbol396_604 (AoT_fla.Symbol396_604)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol396_604 extends MovieClip {
public var mc6:SimpleButton;
}
}//package AoT_fla
Section 186
//Symbol397_610 (AoT_fla.Symbol397_610)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol397_610 extends MovieClip {
public var mc8:SimpleButton;
}
}//package AoT_fla
Section 187
//Symbol398_613 (AoT_fla.Symbol398_613)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol398_613 extends MovieClip {
public var mc7:SimpleButton;
}
}//package AoT_fla
Section 188
//Symbol399_592 (AoT_fla.Symbol399_592)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol399_592 extends MovieClip {
public var mc4:SimpleButton;
}
}//package AoT_fla
Section 189
//Symbol400_595 (AoT_fla.Symbol400_595)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol400_595 extends MovieClip {
public var mc3:SimpleButton;
}
}//package AoT_fla
Section 190
//Symbol401_598 (AoT_fla.Symbol401_598)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol401_598 extends MovieClip {
public var mc2:SimpleButton;
}
}//package AoT_fla
Section 191
//Symbol402_601 (AoT_fla.Symbol402_601)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol402_601 extends MovieClip {
public var mc1:SimpleButton;
}
}//package AoT_fla
Section 192
//Symbol405_590 (AoT_fla.Symbol405_590)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol405_590 extends MovieClip {
public var mc1:MovieClip;
}
}//package AoT_fla
Section 193
//Symbol406_559 (AoT_fla.Symbol406_559)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol406_559 extends MovieClip {
public var btnnext:SimpleButton;
}
}//package AoT_fla
Section 194
//Symbol407_749 (AoT_fla.Symbol407_749)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol407_749 extends MovieClip {
public var mcpoi:MovieClip;
public var mc1:MovieClip;
public function Symbol407_749(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 195
//Symbol413_535 (AoT_fla.Symbol413_535)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol413_535 extends MovieClip {
public var txt1:TextField;
}
}//package AoT_fla
Section 196
//Symbol419_360 (AoT_fla.Symbol419_360)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol419_360 extends MovieClip {
public function Symbol419_360(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 197
//Symbol420_363 (AoT_fla.Symbol420_363)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol420_363 extends MovieClip {
public function Symbol420_363(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 198
//Symbol424_361 (AoT_fla.Symbol424_361)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol424_361 extends MovieClip {
public var mc1:MovieClip;
public function Symbol424_361(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 199
//Symbol426_677 (AoT_fla.Symbol426_677)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol426_677 extends MovieClip {
public var txt1:TextField;
}
}//package AoT_fla
Section 200
//Symbol427_371 (AoT_fla.Symbol427_371)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol427_371 extends MovieClip {
public var mcbody:MovieClip;
public function Symbol427_371(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package AoT_fla
Section 201
//Symbol428_373 (AoT_fla.Symbol428_373)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol428_373 extends MovieClip {
public function Symbol428_373(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 202
//Symbol429_372 (AoT_fla.Symbol429_372)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol429_372 extends MovieClip {
public function Symbol429_372(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 203
//Symbol43_453 (AoT_fla.Symbol43_453)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol43_453 extends MovieClip {
public var mc1:MovieClip;
public var mcempty:MovieClip;
public var txt1:TextField;
}
}//package AoT_fla
Section 204
//Symbol430_375 (AoT_fla.Symbol430_375)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol430_375 extends MovieClip {
public function Symbol430_375(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 205
//Symbol432_713 (AoT_fla.Symbol432_713)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol432_713 extends MovieClip {
public var mc1:MovieClip;
public function Symbol432_713(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 206
//Symbol433_714 (AoT_fla.Symbol433_714)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol433_714 extends MovieClip {
public function Symbol433_714(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 207
//Symbol434_715 (AoT_fla.Symbol434_715)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol434_715 extends MovieClip {
public function Symbol434_715(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 208
//Symbol44_458 (AoT_fla.Symbol44_458)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol44_458 extends MovieClip {
public var mc1:MovieClip;
public var mcempty:MovieClip;
public var txt1:TextField;
}
}//package AoT_fla
Section 209
//Symbol445_732 (AoT_fla.Symbol445_732)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol445_732 extends MovieClip {
public var mcbody:MovieClip;
public function Symbol445_732(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 210
//Symbol451_381 (AoT_fla.Symbol451_381)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol451_381 extends MovieClip {
public function Symbol451_381(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 211
//Symbol452_385 (AoT_fla.Symbol452_385)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol452_385 extends MovieClip {
public function Symbol452_385(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 212
//Symbol453_387 (AoT_fla.Symbol453_387)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol453_387 extends MovieClip {
public function Symbol453_387(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 213
//Symbol457_687 (AoT_fla.Symbol457_687)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol457_687 extends MovieClip {
public function Symbol457_687(){
addFrameScript(0, frame1, 26, frame27);
}
function frame1(){
stop();
}
function frame27(){
stop();
}
}
}//package AoT_fla
Section 214
//Symbol458_551 (AoT_fla.Symbol458_551)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol458_551 extends MovieClip {
public function Symbol458_551(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 215
//Symbol459_690 (AoT_fla.Symbol459_690)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol459_690 extends MovieClip {
public function Symbol459_690(){
addFrameScript(0, frame1, 26, frame27);
}
function frame1(){
stop();
}
function frame27(){
stop();
}
}
}//package AoT_fla
Section 216
//Symbol462_550 (AoT_fla.Symbol462_550)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol462_550 extends MovieClip {
public function Symbol462_550(){
addFrameScript(0, frame1, 56, frame57, 166, frame167, 330, frame331, 434, frame435);
}
function frame435(){
gotoAndStop(1);
}
function frame167(){
gotoAndPlay("pop1");
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame331(){
gotoAndPlay("pop1");
}
function frame1(){
gotoAndPlay(("wait" + randRange(1, 3)));
}
function frame57(){
gotoAndPlay("pop1");
}
}
}//package AoT_fla
Section 217
//Symbol464_549 (AoT_fla.Symbol464_549)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol464_549 extends MovieClip {
public var mcrelic3:MovieClip;
public function Symbol464_549(){
addFrameScript(0, frame1, 26, frame27);
}
function frame1(){
stop();
}
function frame27(){
stop();
}
}
}//package AoT_fla
Section 218
//Symbol467_733 (AoT_fla.Symbol467_733)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol467_733 extends MovieClip {
public var btnrelic4:SimpleButton;
public function Symbol467_733(){
addFrameScript(0, frame1, 26, frame27);
}
function frame1(){
stop();
}
function frame27(){
stop();
}
}
}//package AoT_fla
Section 219
//Symbol469_395 (AoT_fla.Symbol469_395)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol469_395 extends MovieClip {
public function Symbol469_395(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 220
//Symbol470_397 (AoT_fla.Symbol470_397)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol470_397 extends MovieClip {
public function Symbol470_397(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package AoT_fla
Section 221
//Symbol472_402 (AoT_fla.Symbol472_402)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol472_402 extends MovieClip {
public var mcbody:MovieClip;
public function Symbol472_402(){
addFrameScript(1, frame2, 14, frame15);
}
function frame15(){
gotoAndPlay("walk");
}
function frame2(){
gotoAndPlay("idle");
}
}
}//package AoT_fla
Section 222
//Symbol473_404 (AoT_fla.Symbol473_404)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol473_404 extends MovieClip {
public function Symbol473_404(){
addFrameScript(1, frame2, 26, frame27, 37, frame38, 50, frame51);
}
function frame2(){
gotoAndPlay("idle");
}
function frame27(){
gotoAndPlay("walk");
}
function frame38(){
stop();
}
function frame51(){
gotoAndPlay("run");
}
}
}//package AoT_fla
Section 223
//Symbol474_805 (AoT_fla.Symbol474_805)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol474_805 extends MovieClip {
public var mc1:MovieClip;
}
}//package AoT_fla
Section 224
//Symbol475_806 (AoT_fla.Symbol475_806)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol475_806 extends MovieClip {
public var txt1:TextField;
public function Symbol475_806(){
addFrameScript(0, frame1, 5, frame6, 11, frame12);
}
function frame12(){
stop();
}
function frame6(){
txt1.visible = true;
}
function frame1(){
txt1.visible = false;
}
}
}//package AoT_fla
Section 225
//Symbol476_807 (AoT_fla.Symbol476_807)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol476_807 extends MovieClip {
public function Symbol476_807(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package AoT_fla
Section 226
//Symbol480_779 (AoT_fla.Symbol480_779)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol480_779 extends MovieClip {
public var txt1:TextField;
public function Symbol480_779(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 227
//Symbol488_810 (AoT_fla.Symbol488_810)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol488_810 extends MovieClip {
public var mctxt:MovieClip;
public var mchero:MovieClip;
public var mchero2:MovieClip;
public var mchero4:MovieClip;
public var mchero3:MovieClip;
public function Symbol488_810(){
addFrameScript(1074, frame1075);
}
function frame1075(){
stop();
}
}
}//package AoT_fla
Section 228
//Symbol489_813 (AoT_fla.Symbol489_813)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol489_813 extends MovieClip {
public var mc1:MovieClip;
}
}//package AoT_fla
Section 229
//Symbol49_450 (AoT_fla.Symbol49_450)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol49_450 extends MovieClip {
public var btndelete2:MovieClip;
public var mcslot2:MovieClip;
public var btndelete1:MovieClip;
public var mcslot1:MovieClip;
public var btnback:SimpleButton;
}
}//package AoT_fla
Section 230
//Symbol490_812 (AoT_fla.Symbol490_812)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol490_812 extends MovieClip {
public var mc1:MovieClip;
}
}//package AoT_fla
Section 231
//Symbol491_811 (AoT_fla.Symbol491_811)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol491_811 extends MovieClip {
public function Symbol491_811(){
addFrameScript(0, frame1, 11, frame12, 31, frame32, 69, frame70, 121, frame122, 209, frame210);
}
function frame70(){
gotoAndPlay(("pop" + randRange(1, 2)));
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame210(){
gotoAndStop(1);
}
function frame12(){
gotoAndPlay(("pop" + randRange(1, 2)));
}
function frame1(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame122(){
gotoAndStop(1);
}
function frame32(){
gotoAndPlay(("pop" + randRange(1, 2)));
}
}
}//package AoT_fla
Section 232
//Symbol4copy2gdychild_826 (AoT_fla.Symbol4copy2gdychild_826)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol4copy2gdychild_826 extends MovieClip {
public function Symbol4copy2gdychild_826(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package AoT_fla
Section 233
//Symbol4copy3gdychild_829 (AoT_fla.Symbol4copy3gdychild_829)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol4copy3gdychild_829 extends MovieClip {
public function Symbol4copy3gdychild_829(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package AoT_fla
Section 234
//Symbol4copygdychild_823 (AoT_fla.Symbol4copygdychild_823)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol4copygdychild_823 extends MovieClip {
public function Symbol4copygdychild_823(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package AoT_fla
Section 235
//Symbol4gdychild_820 (AoT_fla.Symbol4gdychild_820)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol4gdychild_820 extends MovieClip {
public function Symbol4gdychild_820(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package AoT_fla
Section 236
//Symbol504_771 (AoT_fla.Symbol504_771)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol504_771 extends MovieClip {
public function Symbol504_771(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package AoT_fla
Section 237
//Symbol505_772 (AoT_fla.Symbol505_772)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol505_772 extends MovieClip {
public var txt1:TextField;
}
}//package AoT_fla
Section 238
//Symbol507_497 (AoT_fla.Symbol507_497)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol507_497 extends MovieClip {
public var btnmute1:SimpleButton;
}
}//package AoT_fla
Section 239
//Symbol510_502 (AoT_fla.Symbol510_502)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol510_502 extends MovieClip {
public var btnmute2:SimpleButton;
}
}//package AoT_fla
Section 240
//Symbol524_472 (AoT_fla.Symbol524_472)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol524_472 extends MovieClip {
public var btnyes:SimpleButton;
public var txt1:TextField;
public var btncancel:SimpleButton;
}
}//package AoT_fla
Section 241
//Symbol529_461 (AoT_fla.Symbol529_461)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol529_461 extends MovieClip {
public var btndelete2:SimpleButton;
}
}//package AoT_fla
Section 242
//Symbol530_534 (AoT_fla.Symbol530_534)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol530_534 extends MovieClip {
public var txtnext:TextField;
public var txt1:TextField;
}
}//package AoT_fla
Section 243
//Symbol60_548 (AoT_fla.Symbol60_548)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol60_548 extends MovieClip {
public var mcrelic3:MovieClip;
public var mcpin:MovieClip;
public var mcarea3:MovieClip;
public var btnnext:MovieClip;
public var mcarea1:MovieClip;
public var mcarea2:MovieClip;
public var mcarea7:MovieClip;
public var mcarea5:MovieClip;
public var mcarea6:MovieClip;
public var btnprev:MovieClip;
public var mcarea4:MovieClip;
}
}//package AoT_fla
Section 244
//Symbol67_564 (AoT_fla.Symbol67_564)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol67_564 extends MovieClip {
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc2:MovieClip;
}
}//package AoT_fla
Section 245
//Symbol69_569 (AoT_fla.Symbol69_569)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol69_569 extends MovieClip {
public var mc1:MovieClip;
}
}//package AoT_fla
Section 246
//Symbol70_547 (AoT_fla.Symbol70_547)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol70_547 extends MovieClip {
public var btnback:SimpleButton;
public var mcmain:MovieClip;
public var mcscourge:SimpleButton;
public var mctitle:MovieClip;
public var mcpoi1:MovieClip;
public var mcpoi2:MovieClip;
public var mccaptain:MovieClip;
}
}//package AoT_fla
Section 247
//Symbol71_574 (AoT_fla.Symbol71_574)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol71_574 extends MovieClip {
public function Symbol71_574(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package AoT_fla
Section 248
//Symbol76_511 (AoT_fla.Symbol76_511)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol76_511 extends MovieClip {
public function Symbol76_511(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package AoT_fla
Section 249
//Symbol78_510 (AoT_fla.Symbol78_510)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol78_510 extends MovieClip {
public var mcframe:MovieClip;
public function Symbol78_510(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 250
//Symbol80_514 (AoT_fla.Symbol80_514)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol80_514 extends MovieClip {
public var mc1:MovieClip;
}
}//package AoT_fla
Section 251
//Symbol83_47 (AoT_fla.Symbol83_47)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol83_47 extends MovieClip {
public function Symbol83_47(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 2));
}
}
}//package AoT_fla
Section 252
//Symbol84_652 (AoT_fla.Symbol84_652)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol84_652 extends MovieClip {
public var mcrelic2:MovieClip;
public var mcrelic3:MovieClip;
public var mcrelic1:MovieClip;
public var btnback:SimpleButton;
public var btnexp:MovieClip;
public var mc1:MovieClip;
public var btnslot:SimpleButton;
public var txthp:TextField;
public var mctree1:MovieClip;
public var txtname:TextField;
public var txtpts:TextField;
public var btnreset:SimpleButton;
public var mctree2:MovieClip;
public var txtlvl:TextField;
public var mcexp:MovieClip;
}
}//package AoT_fla
Section 253
//Symbol84copy_778 (AoT_fla.Symbol84copy_778)
package AoT_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol84copy_778 extends MovieClip {
public var txtpts:TextField;
public var mctree1:MovieClip;
public var btnreset:SimpleButton;
public var mctree2:MovieClip;
public var txtlvl:TextField;
}
}//package AoT_fla
Section 254
//Symbol86_581 (AoT_fla.Symbol86_581)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol86_581 extends MovieClip {
public var mc1:MovieClip;
}
}//package AoT_fla
Section 255
//Symbol98_653 (AoT_fla.Symbol98_653)
package AoT_fla {
import flash.display.*;
public dynamic class Symbol98_653 extends MovieClip {
public function Symbol98_653(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AoT_fla
Section 256
//WALL_377 (AoT_fla.WALL_377)
package AoT_fla {
import flash.display.*;
public dynamic class WALL_377 extends MovieClip {
public var mcbody:MovieClip;
public function WALL_377(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package AoT_fla
Section 257
//WALL_380 (AoT_fla.WALL_380)
package AoT_fla {
import flash.display.*;
public dynamic class WALL_380 extends MovieClip {
public var mcbody:MovieClip;
public function WALL_380(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package AoT_fla
Section 258
//WALL_86 (AoT_fla.WALL_86)
package AoT_fla {
import flash.display.*;
public dynamic class WALL_86 extends MovieClip {
public var mcbody:MovieClip;
public function WALL_86(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package AoT_fla
Section 259
//VISIBLER_15 (AoT_fla.VISIBLER_15)
package AoT_fla {
import flash.display.*;
public dynamic class VISIBLER_15 extends MovieClip {
public function VISIBLER_15(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package AoT_fla
Section 260
//VISIBLERyoyo_11 (AoT_fla.VISIBLERyoyo_11)
package AoT_fla {
import flash.display.*;
public dynamic class VISIBLERyoyo_11 extends MovieClip {
public function VISIBLERyoyo_11(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package AoT_fla
Section 261
//Color (fl.motion.Color)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 262
//arcturretsound (arcturretsound)
package {
import flash.media.*;
public dynamic class arcturretsound extends Sound {
}
}//package
Section 263
//arcturretsound2 (arcturretsound2)
package {
import flash.media.*;
public dynamic class arcturretsound2 extends Sound {
}
}//package
Section 264
//asd (asd)
package {
import flash.display.*;
public dynamic class asd extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package
Section 265
//asd2 (asd2)
package {
import flash.display.*;
public dynamic class asd2 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package
Section 266
//asd3 (asd3)
package {
import flash.display.*;
public dynamic class asd3 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package
Section 267
//asd4 (asd4)
package {
import flash.display.*;
public dynamic class asd4 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package
Section 268
//banemissilesound1 (banemissilesound1)
package {
import flash.media.*;
public dynamic class banemissilesound1 extends Sound {
}
}//package
Section 269
//banemissilesound2 (banemissilesound2)
package {
import flash.media.*;
public dynamic class banemissilesound2 extends Sound {
}
}//package
Section 270
//battlesound (battlesound)
package {
import flash.media.*;
public dynamic class battlesound extends Sound {
}
}//package
Section 271
//blindsound (blindsound)
package {
import flash.media.*;
public dynamic class blindsound extends Sound {
}
}//package
Section 272
//blizzardsound1 (blizzardsound1)
package {
import flash.media.*;
public dynamic class blizzardsound1 extends Sound {
}
}//package
Section 273
//blizzardsound2 (blizzardsound2)
package {
import flash.media.*;
public dynamic class blizzardsound2 extends Sound {
}
}//package
Section 274
//bossdeadsound1 (bossdeadsound1)
package {
import flash.media.*;
public dynamic class bossdeadsound1 extends Sound {
}
}//package
Section 275
//bossdeadsound2 (bossdeadsound2)
package {
import flash.media.*;
public dynamic class bossdeadsound2 extends Sound {
}
}//package
Section 276
//canesound (canesound)
package {
import flash.media.*;
public dynamic class canesound extends Sound {
}
}//package
Section 277
//chainlightingsound1 (chainlightingsound1)
package {
import flash.media.*;
public dynamic class chainlightingsound1 extends Sound {
}
}//package
Section 278
//chainlightingsound2 (chainlightingsound2)
package {
import flash.media.*;
public dynamic class chainlightingsound2 extends Sound {
}
}//package
Section 279
//chandeliersound (chandeliersound)
package {
import flash.media.*;
public dynamic class chandeliersound extends Sound {
}
}//package
Section 280
//clicksound (clicksound)
package {
import flash.media.*;
public dynamic class clicksound extends Sound {
}
}//package
Section 281
//collectrelicsound (collectrelicsound)
package {
import flash.media.*;
public dynamic class collectrelicsound extends Sound {
}
}//package
Section 282
//createtinksound1 (createtinksound1)
package {
import flash.media.*;
public dynamic class createtinksound1 extends Sound {
}
}//package
Section 283
//createtinksound2 (createtinksound2)
package {
import flash.media.*;
public dynamic class createtinksound2 extends Sound {
}
}//package
Section 284
//cursesound (cursesound)
package {
import flash.media.*;
public dynamic class cursesound extends Sound {
}
}//package
Section 285
//deathstrikesound (deathstrikesound)
package {
import flash.media.*;
public dynamic class deathstrikesound extends Sound {
}
}//package
Section 286
//deathwavesound (deathwavesound)
package {
import flash.media.*;
public dynamic class deathwavesound extends Sound {
}
}//package
Section 287
//deletesound (deletesound)
package {
import flash.media.*;
public dynamic class deletesound extends Sound {
}
}//package
Section 288
//demondiesound1 (demondiesound1)
package {
import flash.media.*;
public dynamic class demondiesound1 extends Sound {
}
}//package
Section 289
//demondiesound2 (demondiesound2)
package {
import flash.media.*;
public dynamic class demondiesound2 extends Sound {
}
}//package
Section 290
//demondiesound3 (demondiesound3)
package {
import flash.media.*;
public dynamic class demondiesound3 extends Sound {
}
}//package
Section 291
//demondiesound4 (demondiesound4)
package {
import flash.media.*;
public dynamic class demondiesound4 extends Sound {
}
}//package
Section 292
//dragoncannonsound (dragoncannonsound)
package {
import flash.media.*;
public dynamic class dragoncannonsound extends Sound {
}
}//package
Section 293
//drawbridgesound (drawbridgesound)
package {
import flash.media.*;
public dynamic class drawbridgesound extends Sound {
}
}//package
Section 294
//enemy1 (enemy1)
package {
import flash.display.*;
public dynamic class enemy1 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy1(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 295
//enemy10 (enemy10)
package {
import flash.display.*;
public dynamic class enemy10 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy10(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 296
//enemy11 (enemy11)
package {
import flash.display.*;
public dynamic class enemy11 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy11(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 297
//enemy12 (enemy12)
package {
import flash.display.*;
public dynamic class enemy12 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy12(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 298
//enemy13 (enemy13)
package {
import flash.display.*;
public dynamic class enemy13 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy13(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 299
//enemy14 (enemy14)
package {
import flash.display.*;
public dynamic class enemy14 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy14(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 300
//enemy15 (enemy15)
package {
import flash.display.*;
public dynamic class enemy15 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy15(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 301
//enemy16 (enemy16)
package {
import flash.display.*;
public dynamic class enemy16 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy16(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 302
//enemy17 (enemy17)
package {
import flash.display.*;
public dynamic class enemy17 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy17(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 303
//enemy18 (enemy18)
package {
import flash.display.*;
public dynamic class enemy18 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy18(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 304
//enemy19 (enemy19)
package {
import flash.display.*;
public dynamic class enemy19 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy19(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 305
//enemy2 (enemy2)
package {
import flash.display.*;
public dynamic class enemy2 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy2(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 306
//enemy20 (enemy20)
package {
import flash.display.*;
public dynamic class enemy20 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy20(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 307
//enemy21 (enemy21)
package {
import flash.display.*;
public dynamic class enemy21 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy21(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 308
//enemy22 (enemy22)
package {
import flash.display.*;
public dynamic class enemy22 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy22(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 309
//enemy3 (enemy3)
package {
import flash.display.*;
public dynamic class enemy3 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy3(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 310
//enemy4 (enemy4)
package {
import flash.display.*;
public dynamic class enemy4 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy4(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 311
//enemy5 (enemy5)
package {
import flash.display.*;
public dynamic class enemy5 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy5(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 312
//enemy6 (enemy6)
package {
import flash.display.*;
public dynamic class enemy6 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy6(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 313
//enemy7 (enemy7)
package {
import flash.display.*;
public dynamic class enemy7 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy7(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 314
//enemy8 (enemy8)
package {
import flash.display.*;
public dynamic class enemy8 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy8(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 315
//enemy9 (enemy9)
package {
import flash.display.*;
public dynamic class enemy9 extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function enemy9(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 316
//enemyspitsound (enemyspitsound)
package {
import flash.media.*;
public dynamic class enemyspitsound extends Sound {
}
}//package
Section 317
//enemyspitsound2 (enemyspitsound2)
package {
import flash.media.*;
public dynamic class enemyspitsound2 extends Sound {
}
}//package
Section 318
//entanglesound (entanglesound)
package {
import flash.media.*;
public dynamic class entanglesound extends Sound {
}
}//package
Section 319
//evosound (evosound)
package {
import flash.media.*;
public dynamic class evosound extends Sound {
}
}//package
Section 320
//fireballsound (fireballsound)
package {
import flash.media.*;
public dynamic class fireballsound extends Sound {
}
}//package
Section 321
//fireballsound2 (fireballsound2)
package {
import flash.media.*;
public dynamic class fireballsound2 extends Sound {
}
}//package
Section 322
//firecampsound (firecampsound)
package {
import flash.media.*;
public dynamic class firecampsound extends Sound {
}
}//package
Section 323
//fireexplodesound (fireexplodesound)
package {
import flash.media.*;
public dynamic class fireexplodesound extends Sound {
}
}//package
Section 324
//flopboingsound (flopboingsound)
package {
import flash.media.*;
public dynamic class flopboingsound extends Sound {
}
}//package
Section 325
//flopjumpsound (flopjumpsound)
package {
import flash.media.*;
public dynamic class flopjumpsound extends Sound {
}
}//package
Section 326
//flopshakesound (flopshakesound)
package {
import flash.media.*;
public dynamic class flopshakesound extends Sound {
}
}//package
Section 327
//flopspitsound (flopspitsound)
package {
import flash.media.*;
public dynamic class flopspitsound extends Sound {
}
}//package
Section 328
//fxarcturretgun (fxarcturretgun)
package {
import flash.display.*;
public dynamic class fxarcturretgun extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 329
//fxbanebullet (fxbanebullet)
package {
import flash.display.*;
public dynamic class fxbanebullet extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 330
//fxblizzard (fxblizzard)
package {
import flash.display.*;
public dynamic class fxblizzard extends MovieClip {
public var mcbody:MovieClip;
public function fxblizzard(){
addFrameScript(125, frame126);
}
function frame126(){
stop();
}
}
}//package
Section 331
//fxblob (fxblob)
package {
import flash.display.*;
public dynamic class fxblob extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 332
//fxblobshadow (fxblobshadow)
package {
import flash.display.*;
public dynamic class fxblobshadow extends MovieClip {
public function fxblobshadow(){
addFrameScript(299, frame300);
}
function frame300(){
stop();
}
}
}//package
Section 333
//fxblobsplash (fxblobsplash)
package {
import flash.display.*;
public dynamic class fxblobsplash extends MovieClip {
public function fxblobsplash(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package
Section 334
//fxbomb (fxbomb)
package {
import flash.display.*;
public dynamic class fxbomb extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 335
//fxbossbullet (fxbossbullet)
package {
import flash.display.*;
public dynamic class fxbossbullet extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 336
//fxbossshadow (fxbossshadow)
package {
import flash.display.*;
public dynamic class fxbossshadow extends MovieClip {
public function fxbossshadow(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package
Section 337
//fxbosswave (fxbosswave)
package {
import flash.display.*;
public dynamic class fxbosswave extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 338
//fxburned (fxburned)
package {
import flash.display.*;
public dynamic class fxburned extends MovieClip {
public function fxburned(){
addFrameScript(1, frame2, 20, frame21, 44, frame45, 65, frame66, 66, frame67);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame21(){
gotoAndStop("done");
}
function frame2(){
stop();
gotoAndPlay(("go" + randRange(1, 3)));
}
function frame45(){
gotoAndStop("done");
}
function frame66(){
gotoAndStop("done");
}
function frame67(){
stop();
}
}
}//package
Section 339
//fxcatapult (fxcatapult)
package {
import flash.display.*;
public dynamic class fxcatapult extends MovieClip {
public function fxcatapult(){
addFrameScript(0, frame1, 4, frame5, 9, frame10, 18, frame19, 35, frame36);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame10(){
gotoAndPlay("go");
}
function frame1(){
gotoAndPlay(("idle" + 1));
}
function frame19(){
gotoAndPlay("go");
}
function frame5(){
gotoAndPlay("go");
}
function frame36(){
stop();
}
}
}//package
Section 340
//fxcatapultrock (fxcatapultrock)
package {
import flash.display.*;
public dynamic class fxcatapultrock extends MovieClip {
public var mcbody:MovieClip;
public function fxcatapultrock(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package
Section 341
//fxchain (fxchain)
package {
import flash.display.*;
public dynamic class fxchain extends MovieClip {
}
}//package
Section 342
//fxchainlighting (fxchainlighting)
package {
import flash.display.*;
public dynamic class fxchainlighting extends MovieClip {
public function fxchainlighting(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 343
//fxchainlighting2 (fxchainlighting2)
package {
import flash.display.*;
public dynamic class fxchainlighting2 extends MovieClip {
public function fxchainlighting2(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 344
//fxchainlightingzap (fxchainlightingzap)
package {
import flash.display.*;
public dynamic class fxchainlightingzap extends MovieClip {
public function fxchainlightingzap(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 345
//fxchandelier (fxchandelier)
package {
import flash.display.*;
public dynamic class fxchandelier extends MovieClip {
public var mcbody:MovieClip;
public function fxchandelier(){
addFrameScript(10, frame11, 84, frame85);
}
function frame85(){
stop();
}
function frame11(){
stop();
}
}
}//package
Section 346
//fxchandelierbreak (fxchandelierbreak)
package {
import flash.display.*;
public dynamic class fxchandelierbreak extends MovieClip {
public function fxchandelierbreak(){
addFrameScript(1, frame2, 13, frame14, 27, frame28, 49, frame50, 50, frame51);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame14(){
gotoAndStop("done");
}
function frame2(){
gotoAndPlay(("go" + randRange(1, 3)));
}
function frame28(){
gotoAndStop("done");
}
function frame51(){
stop();
}
function frame50(){
gotoAndStop("done");
}
}
}//package
Section 347
//fxcrumble (fxcrumble)
package {
import flash.display.*;
public dynamic class fxcrumble extends MovieClip {
public var mcbody:MovieClip;
public function fxcrumble(){
addFrameScript(38, frame39);
}
function frame39(){
stop();
}
}
}//package
Section 348
//fxcrumblerock (fxcrumblerock)
package {
import flash.display.*;
public dynamic class fxcrumblerock extends MovieClip {
public function fxcrumblerock(){
addFrameScript(1, frame2, 19, frame20, 46, frame47);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame20(){
gotoAndStop("done");
}
function frame2(){
gotoAndPlay(("pop" + randRange(1, 2)));
}
function frame47(){
gotoAndStop("done");
}
}
}//package
Section 349
//fxcurse (fxcurse)
package {
import flash.display.*;
public dynamic class fxcurse extends MovieClip {
public function fxcurse(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 350
//fxdarkattack (fxdarkattack)
package {
import flash.display.*;
public dynamic class fxdarkattack extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 351
//fxdeathwave (fxdeathwave)
package {
import flash.display.*;
public dynamic class fxdeathwave extends MovieClip {
public var mcbody:MovieClip;
public function fxdeathwave(){
addFrameScript(58, frame59);
}
function frame59(){
stop();
}
}
}//package
Section 352
//fxdeathwaveline (fxdeathwaveline)
package {
import flash.display.*;
public dynamic class fxdeathwaveline extends MovieClip {
public function fxdeathwaveline(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package
Section 353
//fxdragoncannon (fxdragoncannon)
package {
import flash.display.*;
public dynamic class fxdragoncannon extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 354
//fxdragoncannonsparkle (fxdragoncannonsparkle)
package {
import flash.display.*;
public dynamic class fxdragoncannonsparkle extends MovieClip {
public function fxdragoncannonsparkle(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package
Section 355
//fxdust (fxdust)
package {
import flash.display.*;
public dynamic class fxdust extends MovieClip {
public function fxdust(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 356
//fxelectriczap (fxelectriczap)
package {
import flash.display.*;
public dynamic class fxelectriczap extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 357
//fxelvanmissile (fxelvanmissile)
package {
import flash.display.*;
public dynamic class fxelvanmissile extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 358
//fxenchantingwind (fxenchantingwind)
package {
import flash.display.*;
public dynamic class fxenchantingwind extends MovieClip {
public var mcbody:MovieClip;
public function fxenchantingwind(){
addFrameScript(100, frame101);
}
function frame101(){
stop();
}
}
}//package
Section 359
//fxenemymissile1 (fxenemymissile1)
package {
import flash.display.*;
public dynamic class fxenemymissile1 extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 360
//fxenemymissile2 (fxenemymissile2)
package {
import flash.display.*;
public dynamic class fxenemymissile2 extends MovieClip {
}
}//package
Section 361
//fxentombed (fxentombed)
package {
import flash.display.*;
public dynamic class fxentombed extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 362
//fxexp (fxexp)
package {
import flash.display.*;
public dynamic class fxexp extends MovieClip {
public var mc1:MovieClip;
public function fxexp(){
addFrameScript(0, frame1, 7, frame8, 18, frame19, 27, frame28);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndPlay(("go" + randRange(1, 2)));
}
function frame19(){
stop();
}
function frame8(){
stop();
}
function frame28(){
stop();
}
}
}//package
Section 363
//fxeyes1 (fxeyes1)
package {
import flash.display.*;
public dynamic class fxeyes1 extends MovieClip {
public function fxeyes1(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
this.visible = false;
}
function frame8(){
stop();
}
}
}//package
Section 364
//fxeyes2 (fxeyes2)
package {
import flash.display.*;
public dynamic class fxeyes2 extends MovieClip {
public function fxeyes2(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package
Section 365
//fxfakebullet (fxfakebullet)
package {
import flash.display.*;
public dynamic class fxfakebullet extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 366
//fxfireball (fxfireball)
package {
import flash.display.*;
public dynamic class fxfireball extends MovieClip {
}
}//package
Section 367
//fxfireballexplosion (fxfireballexplosion)
package {
import flash.display.*;
public dynamic class fxfireballexplosion extends MovieClip {
public var mcbody:MovieClip;
public function fxfireballexplosion(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package
Section 368
//fxfirespirit (fxfirespirit)
package {
import flash.display.*;
public dynamic class fxfirespirit extends MovieClip {
public var mcbody:MovieClip;
public function fxfirespirit(){
addFrameScript(0, frame1, 15, frame16, 44, frame45, 98, frame99);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame16(){
gotoAndPlay("go");
}
function frame1(){
gotoAndPlay(("idle" + randRange(1, 3)));
}
function frame99(){
gotoAndPlay("go");
}
function frame45(){
gotoAndPlay("go");
}
}
}//package
Section 369
//fxfirespit (fxfirespit)
package {
import flash.display.*;
public dynamic class fxfirespit extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 370
//fxgoospit (fxgoospit)
package {
import flash.display.*;
public dynamic class fxgoospit extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 371
//fxgoosplash (fxgoosplash)
package {
import flash.display.*;
public dynamic class fxgoosplash extends MovieClip {
public function fxgoosplash(){
addFrameScript(1, frame2, 15, frame16, 36, frame37, 46, frame47, 47, frame48);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame16(){
gotoAndStop("done");
}
function frame2(){
gotoAndPlay(("rand" + randRange(1, 3)));
}
function frame37(){
gotoAndStop("done");
}
function frame47(){
gotoAndStop("done");
}
function frame48(){
stop();
}
}
}//package
Section 372
//fxgreenfire (fxgreenfire)
package {
import flash.display.*;
public dynamic class fxgreenfire extends MovieClip {
}
}//package
Section 373
//fxgreenfireburning (fxgreenfireburning)
package {
import flash.display.*;
public dynamic class fxgreenfireburning extends MovieClip {
public var mcbody:MovieClip;
public function fxgreenfireburning(){
addFrameScript(100, frame101);
}
function frame101(){
stop();
}
}
}//package
Section 374
//fxgun (fxgun)
package {
import flash.display.*;
public dynamic class fxgun extends MovieClip {
public function fxgun(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package
Section 375
//fxheal (fxheal)
package {
import flash.display.*;
public dynamic class fxheal extends MovieClip {
public function fxheal(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package
Section 376
//fxhealglobe (fxhealglobe)
package {
import flash.display.*;
public dynamic class fxhealglobe extends MovieClip {
public function fxhealglobe(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package
Section 377
//fxhellclaw (fxhellclaw)
package {
import flash.display.*;
public dynamic class fxhellclaw extends MovieClip {
public var mcbody:MovieClip;
public function fxhellclaw(){
addFrameScript(68, frame69);
}
function frame69(){
stop();
}
}
}//package
Section 378
//fxhero5bullet (fxhero5bullet)
package {
import flash.display.*;
public dynamic class fxhero5bullet extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 379
//fxholywave (fxholywave)
package {
import flash.display.*;
public dynamic class fxholywave extends MovieClip {
public var mcbody:MovieClip;
public function fxholywave(){
addFrameScript(58, frame59);
}
function frame59(){
stop();
}
}
}//package
Section 380
//fxholywaveline (fxholywaveline)
package {
import flash.display.*;
public dynamic class fxholywaveline extends MovieClip {
public function fxholywaveline(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package
Section 381
//fxicebreath (fxicebreath)
package {
import flash.display.*;
public dynamic class fxicebreath extends MovieClip {
public function fxicebreath(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package
Section 382
//fxiceflake (fxiceflake)
package {
import flash.display.*;
public dynamic class fxiceflake extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 383
//fxicemine (fxicemine)
package {
import flash.display.*;
public dynamic class fxicemine extends MovieClip {
}
}//package
Section 384
//fxicemine2 (fxicemine2)
package {
import flash.display.*;
public dynamic class fxicemine2 extends MovieClip {
public var mcbody:MovieClip;
public function fxicemine2(){
addFrameScript(68, frame69);
}
function frame69(){
stop();
}
}
}//package
Section 385
//fxiceshatter (fxiceshatter)
package {
import flash.display.*;
public dynamic class fxiceshatter extends MovieClip {
public function fxiceshatter(){
addFrameScript(1, frame2, 19, frame20, 45, frame46, 46, frame47);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame20(){
gotoAndStop("done");
}
function frame2(){
gotoAndPlay(("go" + randRange(1, 2)));
}
function frame46(){
gotoAndStop("done");
}
function frame47(){
stop();
}
}
}//package
Section 386
//fxleaves (fxleaves)
package {
import flash.display.*;
public dynamic class fxleaves extends MovieClip {
public function fxleaves(){
addFrameScript(1, frame2, 34, frame35, 93, frame94, 137, frame138);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame94(){
gotoAndStop("done");
}
function frame2(){
gotoAndPlay(("pop" + randRange(1, 3)));
}
function frame35(){
gotoAndStop("done");
}
function frame138(){
gotoAndStop("done");
}
}
}//package
Section 387
//fxlightattack (fxlightattack)
package {
import flash.display.*;
public dynamic class fxlightattack extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 388
//fxlightheal (fxlightheal)
package {
import flash.display.*;
public dynamic class fxlightheal extends MovieClip {
public function fxlightheal(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package
Section 389
//fxlightingball (fxlightingball)
package {
import flash.display.*;
public dynamic class fxlightingball extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 390
//fxlightingballzap (fxlightingballzap)
package {
import flash.display.*;
public dynamic class fxlightingballzap extends MovieClip {
public var mcbody:MovieClip;
public function fxlightingballzap(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 3));
}
}
}//package
Section 391
//fxmagmabomb (fxmagmabomb)
package {
import flash.display.*;
public dynamic class fxmagmabomb extends MovieClip {
public var mcbody:MovieClip;
public function fxmagmabomb(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 392
//fxmagmabullet (fxmagmabullet)
package {
import flash.display.*;
public dynamic class fxmagmabullet extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 393
//fxmagmasmoke (fxmagmasmoke)
package {
import flash.display.*;
public dynamic class fxmagmasmoke extends MovieClip {
public function fxmagmasmoke(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package
Section 394
//fxmeteor (fxmeteor)
package {
import flash.display.*;
public dynamic class fxmeteor extends MovieClip {
public function fxmeteor(){
addFrameScript(42, frame43);
}
function frame43(){
stop();
}
}
}//package
Section 395
//fxmeteorbomb (fxmeteorbomb)
package {
import flash.display.*;
public dynamic class fxmeteorbomb extends MovieClip {
public var mcbody:MovieClip;
public function fxmeteorbomb(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package
Section 396
//fxminibomb (fxminibomb)
package {
import flash.display.*;
public dynamic class fxminibomb extends MovieClip {
public var mcbody:MovieClip;
public function fxminibomb(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 397
//fxnapalm (fxnapalm)
package {
import flash.display.*;
public dynamic class fxnapalm extends MovieClip {
}
}//package
Section 398
//fxnecrobullet (fxnecrobullet)
package {
import flash.display.*;
public dynamic class fxnecrobullet extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 399
//fxonesoul (fxonesoul)
package {
import flash.display.*;
public dynamic class fxonesoul extends MovieClip {
public function fxonesoul(){
addFrameScript(60, frame61);
}
function frame61(){
stop();
}
}
}//package
Section 400
//fxpanellight (fxpanellight)
package {
import flash.display.*;
public dynamic class fxpanellight extends MovieClip {
}
}//package
Section 401
//fxpop (fxpop)
package {
import flash.display.*;
public dynamic class fxpop extends MovieClip {
public function fxpop(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 402
//fxressurected (fxressurected)
package {
import flash.display.*;
public dynamic class fxressurected extends MovieClip {
public function fxressurected(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package
Section 403
//fxrifleattack (fxrifleattack)
package {
import flash.display.*;
public dynamic class fxrifleattack extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 404
//fxriflepop (fxriflepop)
package {
import flash.display.*;
public dynamic class fxriflepop extends MovieClip {
public function fxriflepop(){
addFrameScript(1, frame2, 8, frame9, 15, frame16, 22, frame23, 29, frame30, 30, frame31);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame16(){
gotoAndStop("done");
}
function frame23(){
gotoAndStop("done");
}
function frame9(){
gotoAndStop("done");
}
function frame2(){
gotoAndPlay(("pop" + randRange(1, 4)));
}
function frame30(){
gotoAndStop("done");
}
function frame31(){
stop();
}
}
}//package
Section 405
//fxriflesparkle (fxriflesparkle)
package {
import flash.display.*;
public dynamic class fxriflesparkle extends MovieClip {
public function fxriflesparkle(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package
Section 406
//fxshielddestroyed (fxshielddestroyed)
package {
import flash.display.*;
public dynamic class fxshielddestroyed extends MovieClip {
public function fxshielddestroyed(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
}
}
}//package
Section 407
//fxshielddrop (fxshielddrop)
package {
import flash.display.*;
public dynamic class fxshielddrop extends MovieClip {
}
}//package
Section 408
//fxshotgunattack (fxshotgunattack)
package {
import flash.display.*;
public dynamic class fxshotgunattack extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 409
//fxshotgunpop (fxshotgunpop)
package {
import flash.display.*;
public dynamic class fxshotgunpop extends MovieClip {
public function fxshotgunpop(){
addFrameScript(1, frame2, 8, frame9, 15, frame16, 22, frame23, 29, frame30, 30, frame31);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame16(){
gotoAndStop("done");
}
function frame23(){
gotoAndStop("done");
}
function frame9(){
gotoAndStop("done");
}
function frame2(){
gotoAndPlay(("pop" + randRange(1, 4)));
}
function frame30(){
gotoAndStop("done");
}
function frame31(){
stop();
}
}
}//package
Section 410
//fxshotgunsparkle (fxshotgunsparkle)
package {
import flash.display.*;
public dynamic class fxshotgunsparkle extends MovieClip {
public function fxshotgunsparkle(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package
Section 411
//fxsmallmeteor (fxsmallmeteor)
package {
import flash.display.*;
public dynamic class fxsmallmeteor extends MovieClip {
public function fxsmallmeteor(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
}
}
}//package
Section 412
//fxsmoke (fxsmoke)
package {
import flash.display.*;
public dynamic class fxsmoke extends MovieClip {
public function fxsmoke(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package
Section 413
//fxsoul (fxsoul)
package {
import flash.display.*;
public dynamic class fxsoul extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 414
//fxsparklingdust (fxsparklingdust)
package {
import flash.display.*;
public dynamic class fxsparklingdust extends MovieClip {
public function fxsparklingdust(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 415
//fxspiderbullet (fxspiderbullet)
package {
import flash.display.*;
public dynamic class fxspiderbullet extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 416
//fxspiderbulletsparkle (fxspiderbulletsparkle)
package {
import flash.display.*;
public dynamic class fxspiderbulletsparkle extends MovieClip {
public function fxspiderbulletsparkle(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
}
}
}//package
Section 417
//fxspray (fxspray)
package {
import flash.display.*;
public dynamic class fxspray extends MovieClip {
public function fxspray(){
addFrameScript(0, frame1);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame1(){
gotoAndStop(randRange(1, 6));
}
}
}//package
Section 418
//fxspraybullet (fxspraybullet)
package {
import flash.display.*;
public dynamic class fxspraybullet extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 419
//fxspraycore (fxspraycore)
package {
import flash.display.*;
public dynamic class fxspraycore extends MovieClip {
}
}//package
Section 420
//fxstriker (fxstriker)
package {
import flash.display.*;
public dynamic class fxstriker extends MovieClip {
public var mcbody:MovieClip;
public function fxstriker(){
addFrameScript(115, frame116);
}
function frame116(){
stop();
}
}
}//package
Section 421
//fxstrikerbomb (fxstrikerbomb)
package {
import flash.display.*;
public dynamic class fxstrikerbomb extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 422
//fxstrikersharpnel (fxstrikersharpnel)
package {
import flash.display.*;
public dynamic class fxstrikersharpnel extends MovieClip {
}
}//package
Section 423
//fxtemplardie (fxtemplardie)
package {
import flash.display.*;
public dynamic class fxtemplardie extends MovieClip {
}
}//package
Section 424
//fxthundara (fxthundara)
package {
import flash.display.*;
public dynamic class fxthundara extends MovieClip {
public function fxthundara(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package
Section 425
//fxtink101 (fxtink101)
package {
import flash.display.*;
public dynamic class fxtink101 extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 426
//fxtoxic (fxtoxic)
package {
import flash.display.*;
public dynamic class fxtoxic extends MovieClip {
public function fxtoxic(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package
Section 427
//fxuniblast (fxuniblast)
package {
import flash.display.*;
public dynamic class fxuniblast extends MovieClip {
}
}//package
Section 428
//fxunibomb (fxunibomb)
package {
import flash.display.*;
public dynamic class fxunibomb extends MovieClip {
public var mcbody:MovieClip;
public function fxunibomb(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package
Section 429
//fxunisparkle (fxunisparkle)
package {
import flash.display.*;
public dynamic class fxunisparkle extends MovieClip {
public function fxunisparkle(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package
Section 430
//fxwalldebris (fxwalldebris)
package {
import flash.display.*;
public dynamic class fxwalldebris extends MovieClip {
public function fxwalldebris(){
addFrameScript(1, frame2, 22, frame23, 37, frame38, 55, frame56, 56, frame57);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame23(){
gotoAndStop("done");
}
function frame2(){
gotoAndPlay(("pop" + randRange(1, 3)));
}
function frame38(){
gotoAndStop("done");
}
function frame56(){
gotoAndStop("done");
}
function frame57(){
stop();
}
}
}//package
Section 431
//fxweb (fxweb)
package {
import flash.display.*;
public dynamic class fxweb extends MovieClip {
}
}//package
Section 432
//fxvoidstone (fxvoidstone)
package {
import flash.display.*;
public dynamic class fxvoidstone extends MovieClip {
public var mctangled:MovieClip;
public var mchpbar:MovieClip;
public var mcstun:MovieClip;
public var mc1:MovieClip;
public var mcarmor:MovieClip;
public var mcblind:MovieClip;
public var mcfroze:MovieClip;
public function fxvoidstone(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 433
//fxvoidstonecrumble (fxvoidstonecrumble)
package {
import flash.display.*;
public dynamic class fxvoidstonecrumble extends MovieClip {
public function fxvoidstonecrumble(){
addFrameScript(1, frame2, 31, frame32, 56, frame57, 57, frame58);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame2(){
gotoAndPlay(("go" + randRange(1, 2)));
}
function frame32(){
gotoAndStop("done");
}
function frame57(){
gotoAndStop("done");
}
function frame58(){
stop();
}
}
}//package
Section 434
//fxwyvernbullet (fxwyvernbullet)
package {
import flash.display.*;
public dynamic class fxwyvernbullet extends MovieClip {
public var mcbody:MovieClip;
}
}//package
Section 435
//fxwyvernbulletsparkle (fxwyvernbulletsparkle)
package {
import flash.display.*;
public dynamic class fxwyvernbulletsparkle extends MovieClip {
public function fxwyvernbulletsparkle(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
}
}
}//package
Section 436
//ghostdiesound (ghostdiesound)
package {
import flash.media.*;
public dynamic class ghostdiesound extends Sound {
}
}//package
Section 437
//gulpsound (gulpsound)
package {
import flash.media.*;
public dynamic class gulpsound extends Sound {
}
}//package
Section 438
//gunsound (gunsound)
package {
import flash.media.*;
public dynamic class gunsound extends Sound {
}
}//package
Section 439
//gunsound2 (gunsound2)
package {
import flash.media.*;
public dynamic class gunsound2 extends Sound {
}
}//package
Section 440
//gunsound3 (gunsound3)
package {
import flash.media.*;
public dynamic class gunsound3 extends Sound {
}
}//package
Section 441
//gunsound4 (gunsound4)
package {
import flash.media.*;
public dynamic class gunsound4 extends Sound {
}
}//package
Section 442
//healsound (healsound)
package {
import flash.media.*;
public dynamic class healsound extends Sound {
}
}//package
Section 443
//heartbeatsound (heartbeatsound)
package {
import flash.media.*;
public dynamic class heartbeatsound extends Sound {
}
}//package
Section 444
//hellclawsound (hellclawsound)
package {
import flash.media.*;
public dynamic class hellclawsound extends Sound {
}
}//package
Section 445
//helldemonblastsound1 (helldemonblastsound1)
package {
import flash.media.*;
public dynamic class helldemonblastsound1 extends Sound {
}
}//package
Section 446
//helldemonblastsound2 (helldemonblastsound2)
package {
import flash.media.*;
public dynamic class helldemonblastsound2 extends Sound {
}
}//package
Section 447
//hero1 (hero1)
package {
import flash.display.*;
public dynamic class hero1 extends MovieClip {
public var mcfoot:MovieClip;
public var mcgoo:MovieClip;
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public var mcaura1:MovieClip;
public var mcaura2:MovieClip;
public var mclevelup:MovieClip;
public function hero1(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 448
//hero2 (hero2)
package {
import flash.display.*;
public dynamic class hero2 extends MovieClip {
public var mcfoot:MovieClip;
public var mcgoo:MovieClip;
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public var mclevelup:MovieClip;
public function hero2(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 449
//hero3 (hero3)
package {
import flash.display.*;
public dynamic class hero3 extends MovieClip {
public var mcgoo:MovieClip;
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public var mcdeath:MovieClip;
public var mcdarkarmor:MovieClip;
public var mclastbreath:MovieClip;
public var mclevelup:MovieClip;
public function hero3(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 450
//hero4 (hero4)
package {
import flash.display.*;
public dynamic class hero4 extends MovieClip {
public var mcgoo:MovieClip;
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public var mcdeath:MovieClip;
public var mclevelup:MovieClip;
public function hero4(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 451
//hero5 (hero5)
package {
import flash.display.*;
public dynamic class hero5 extends MovieClip {
public var mcgoo:MovieClip;
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public var mcdeath:MovieClip;
public var mclevelup:MovieClip;
public function hero5(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 452
//hero6 (hero6)
package {
import flash.display.*;
public dynamic class hero6 extends MovieClip {
public var mcgoo:MovieClip;
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public var mcdeath:MovieClip;
public var mclevelup:MovieClip;
public function hero6(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 453
//hero7 (hero7)
package {
import flash.display.*;
public dynamic class hero7 extends MovieClip {
public var mcgoo:MovieClip;
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public var mcdeath:MovieClip;
public var mclevelup:MovieClip;
public function hero7(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 454
//hero8 (hero8)
package {
import flash.display.*;
public dynamic class hero8 extends MovieClip {
public var mcgoo:MovieClip;
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public var mcdeath:MovieClip;
public var mclevelup:MovieClip;
public function hero8(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 455
//herospecial1 (herospecial1)
package {
import flash.display.*;
public dynamic class herospecial1 extends MovieClip {
public var mcfoot:MovieClip;
public var mcgoo:MovieClip;
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public var mcaura1:MovieClip;
public var mcaura2:MovieClip;
public var mclevelup:MovieClip;
public function herospecial1(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 456
//herospecial2 (herospecial2)
package {
import flash.display.*;
public dynamic class herospecial2 extends MovieClip {
public var mcfoot:MovieClip;
public var mcgoo:MovieClip;
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public var mclevelup:MovieClip;
public function herospecial2(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 457
//hitsound1 (hitsound1)
package {
import flash.media.*;
public dynamic class hitsound1 extends Sound {
}
}//package
Section 458
//hitsound2 (hitsound2)
package {
import flash.media.*;
public dynamic class hitsound2 extends Sound {
}
}//package
Section 459
//holywavesound (holywavesound)
package {
import flash.media.*;
public dynamic class holywavesound extends Sound {
}
}//package
Section 460
//icecracksound1 (icecracksound1)
package {
import flash.media.*;
public dynamic class icecracksound1 extends Sound {
}
}//package
Section 461
//icecracksound2 (icecracksound2)
package {
import flash.media.*;
public dynamic class icecracksound2 extends Sound {
}
}//package
Section 462
//iceflakesound (iceflakesound)
package {
import flash.media.*;
public dynamic class iceflakesound extends Sound {
}
}//package
Section 463
//iceminesound (iceminesound)
package {
import flash.media.*;
public dynamic class iceminesound extends Sound {
}
}//package
Section 464
//iceminesound2 (iceminesound2)
package {
import flash.media.*;
public dynamic class iceminesound2 extends Sound {
}
}//package
Section 465
//iceminesound3 (iceminesound3)
package {
import flash.media.*;
public dynamic class iceminesound3 extends Sound {
}
}//package
Section 466
//illusionsound (illusionsound)
package {
import flash.media.*;
public dynamic class illusionsound extends Sound {
}
}//package
Section 467
//incomingsound (incomingsound)
package {
import flash.media.*;
public dynamic class incomingsound extends Sound {
}
}//package
Section 468
//ingameoldman (ingameoldman)
package {
import flash.display.*;
public dynamic class ingameoldman extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 469
//ingamepanel (ingamepanel)
package {
import flash.display.*;
public dynamic class ingamepanel extends MovieClip {
public var mcbody:MovieClip;
public var mc1:MovieClip;
public var mcsign:MovieClip;
}
}//package
Section 470
//ingameshadow (ingameshadow)
package {
import flash.display.*;
public dynamic class ingameshadow extends MovieClip {
}
}//package
Section 471
//invulnerablesound (invulnerablesound)
package {
import flash.media.*;
public dynamic class invulnerablesound extends Sound {
}
}//package
Section 472
//levelcompletesound (levelcompletesound)
package {
import flash.media.*;
public dynamic class levelcompletesound extends Sound {
}
}//package
Section 473
//levelupsound (levelupsound)
package {
import flash.media.*;
public dynamic class levelupsound extends Sound {
}
}//package
Section 474
//lightingballsound (lightingballsound)
package {
import flash.media.*;
public dynamic class lightingballsound extends Sound {
}
}//package
Section 475
//lordcoinsound (lordcoinsound)
package {
import flash.media.*;
public dynamic class lordcoinsound extends Sound {
}
}//package
Section 476
//losesound (losesound)
package {
import flash.media.*;
public dynamic class losesound extends Sound {
}
}//package
Section 477
//mainmenusound (mainmenusound)
package {
import flash.media.*;
public dynamic class mainmenusound extends Sound {
}
}//package
Section 478
//maintemplarselectsound (maintemplarselectsound)
package {
import flash.media.*;
public dynamic class maintemplarselectsound extends Sound {
}
}//package
Section 479
//meteorburnsound (meteorburnsound)
package {
import flash.media.*;
public dynamic class meteorburnsound extends Sound {
}
}//package
Section 480
//meteorsound1 (meteorsound1)
package {
import flash.media.*;
public dynamic class meteorsound1 extends Sound {
}
}//package
Section 481
//meteorsound2 (meteorsound2)
package {
import flash.media.*;
public dynamic class meteorsound2 extends Sound {
}
}//package
Section 482
//napalmsound1 (napalmsound1)
package {
import flash.media.*;
public dynamic class napalmsound1 extends Sound {
}
}//package
Section 483
//napalmsound2 (napalmsound2)
package {
import flash.media.*;
public dynamic class napalmsound2 extends Sound {
}
}//package
Section 484
//popsound1 (popsound1)
package {
import flash.media.*;
public dynamic class popsound1 extends Sound {
}
}//package
Section 485
//popsound2 (popsound2)
package {
import flash.media.*;
public dynamic class popsound2 extends Sound {
}
}//package
Section 486
//popsound3 (popsound3)
package {
import flash.media.*;
public dynamic class popsound3 extends Sound {
}
}//package
Section 487
//resetsound (resetsound)
package {
import flash.media.*;
public dynamic class resetsound extends Sound {
}
}//package
Section 488
//ressurectionsound (ressurectionsound)
package {
import flash.media.*;
public dynamic class ressurectionsound extends Sound {
}
}//package
Section 489
//riflehitsound1 (riflehitsound1)
package {
import flash.media.*;
public dynamic class riflehitsound1 extends Sound {
}
}//package
Section 490
//riflehitsound2 (riflehitsound2)
package {
import flash.media.*;
public dynamic class riflehitsound2 extends Sound {
}
}//package
Section 491
//scrollslotsound1 (scrollslotsound1)
package {
import flash.media.*;
public dynamic class scrollslotsound1 extends Sound {
}
}//package
Section 492
//scrollslotsound2 (scrollslotsound2)
package {
import flash.media.*;
public dynamic class scrollslotsound2 extends Sound {
}
}//package
Section 493
//selecttemplarsound (selecttemplarsound)
package {
import flash.media.*;
public dynamic class selecttemplarsound extends Sound {
}
}//package
Section 494
//shielddestroyedsound (shielddestroyedsound)
package {
import flash.media.*;
public dynamic class shielddestroyedsound extends Sound {
}
}//package
Section 495
//shieldsound (shieldsound)
package {
import flash.media.*;
public dynamic class shieldsound extends Sound {
}
}//package
Section 496
//shotgunsound (shotgunsound)
package {
import flash.media.*;
public dynamic class shotgunsound extends Sound {
}
}//package
Section 497
//skeldiesound1 (skeldiesound1)
package {
import flash.media.*;
public dynamic class skeldiesound1 extends Sound {
}
}//package
Section 498
//skeldiesound2 (skeldiesound2)
package {
import flash.media.*;
public dynamic class skeldiesound2 extends Sound {
}
}//package
Section 499
//skeldiesound3 (skeldiesound3)
package {
import flash.media.*;
public dynamic class skeldiesound3 extends Sound {
}
}//package
Section 500
//skeldiesound4 (skeldiesound4)
package {
import flash.media.*;
public dynamic class skeldiesound4 extends Sound {
}
}//package
Section 501
//skeldiesound5 (skeldiesound5)
package {
import flash.media.*;
public dynamic class skeldiesound5 extends Sound {
}
}//package
Section 502
//sparksound (sparksound)
package {
import flash.media.*;
public dynamic class sparksound extends Sound {
}
}//package
Section 503
//spidercannonsound (spidercannonsound)
package {
import flash.media.*;
public dynamic class spidercannonsound extends Sound {
}
}//package
Section 504
//splatsound1 (splatsound1)
package {
import flash.media.*;
public dynamic class splatsound1 extends Sound {
}
}//package
Section 505
//splatsound2 (splatsound2)
package {
import flash.media.*;
public dynamic class splatsound2 extends Sound {
}
}//package
Section 506
//splatsound3 (splatsound3)
package {
import flash.media.*;
public dynamic class splatsound3 extends Sound {
}
}//package
Section 507
//splatsound4 (splatsound4)
package {
import flash.media.*;
public dynamic class splatsound4 extends Sound {
}
}//package
Section 508
//splatsound5 (splatsound5)
package {
import flash.media.*;
public dynamic class splatsound5 extends Sound {
}
}//package
Section 509
//splatsound6 (splatsound6)
package {
import flash.media.*;
public dynamic class splatsound6 extends Sound {
}
}//package
Section 510
//stepsound (stepsound)
package {
import flash.media.*;
public dynamic class stepsound extends Sound {
}
}//package
Section 511
//stepsound2 (stepsound2)
package {
import flash.media.*;
public dynamic class stepsound2 extends Sound {
}
}//package
Section 512
//stepsound3 (stepsound3)
package {
import flash.media.*;
public dynamic class stepsound3 extends Sound {
}
}//package
Section 513
//strikersound1 (strikersound1)
package {
import flash.media.*;
public dynamic class strikersound1 extends Sound {
}
}//package
Section 514
//strikersound2 (strikersound2)
package {
import flash.media.*;
public dynamic class strikersound2 extends Sound {
}
}//package
Section 515
//strikersound3 (strikersound3)
package {
import flash.media.*;
public dynamic class strikersound3 extends Sound {
}
}//package
Section 516
//summon1 (summon1)
package {
import flash.display.*;
public dynamic class summon1 extends MovieClip {
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public function summon1(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 517
//summon2 (summon2)
package {
import flash.display.*;
public dynamic class summon2 extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 518
//summon3 (summon3)
package {
import flash.display.*;
public dynamic class summon3 extends MovieClip {
public function summon3(){
addFrameScript(62, frame63);
}
function frame63(){
stop();
}
}
}//package
Section 519
//summon4 (summon4)
package {
import flash.display.*;
public dynamic class summon4 extends MovieClip {
public var mchpbar:MovieClip;
public var mcmissile:MovieClip;
public function summon4(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package
Section 520
//summon5 (summon5)
package {
import flash.display.*;
public dynamic class summon5 extends MovieClip {
public var mchpbar:MovieClip;
public var mcmissile:MovieClip;
public function summon5(){
addFrameScript(16, frame17, 29, frame30, 63, frame64);
}
function frame64(){
stop();
}
function frame17(){
stop();
}
function frame30(){
gotoAndStop("idle");
}
}
}//package
Section 521
//summon6 (summon6)
package {
import flash.display.*;
public dynamic class summon6 extends MovieClip {
public var mchpbar:MovieClip;
public function summon6(){
addFrameScript(16, frame17, 22, frame23, 31, frame32, 55, frame56);
}
function frame17(){
gotoAndPlay("idle");
}
function frame23(){
gotoAndPlay("idle");
}
function frame32(){
gotoAndPlay("walk");
}
function frame56(){
stop();
}
}
}//package
Section 522
//summon7 (summon7)
package {
import flash.display.*;
public dynamic class summon7 extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 523
//swordsound1 (swordsound1)
package {
import flash.media.*;
public dynamic class swordsound1 extends Sound {
}
}//package
Section 524
//swordsound2 (swordsound2)
package {
import flash.media.*;
public dynamic class swordsound2 extends Sound {
}
}//package
Section 525
//telesound (telesound)
package {
import flash.media.*;
public dynamic class telesound extends Sound {
}
}//package
Section 526
//templarappearsound (templarappearsound)
package {
import flash.media.*;
public dynamic class templarappearsound extends Sound {
}
}//package
Section 527
//templardiesound (templardiesound)
package {
import flash.media.*;
public dynamic class templardiesound extends Sound {
}
}//package
Section 528
//templarrangesound (templarrangesound)
package {
import flash.media.*;
public dynamic class templarrangesound extends Sound {
}
}//package
Section 529
//thundersound (thundersound)
package {
import flash.media.*;
public dynamic class thundersound extends Sound {
}
}//package
Section 530
//thundersound2 (thundersound2)
package {
import flash.media.*;
public dynamic class thundersound2 extends Sound {
}
}//package
Section 531
//tilesound (tilesound)
package {
import flash.media.*;
public dynamic class tilesound extends Sound {
}
}//package
Section 532
//tink101sound (tink101sound)
package {
import flash.media.*;
public dynamic class tink101sound extends Sound {
}
}//package
Section 533
//towerdestroyedsound (towerdestroyedsound)
package {
import flash.media.*;
public dynamic class towerdestroyedsound extends Sound {
}
}//package
Section 534
//tundrabeastsound2 (tundrabeastsound2)
package {
import flash.media.*;
public dynamic class tundrabeastsound2 extends Sound {
}
}//package
Section 535
//tundrastompsound (tundrastompsound)
package {
import flash.media.*;
public dynamic class tundrastompsound extends Sound {
}
}//package
Section 536
//tutorialsound (tutorialsound)
package {
import flash.media.*;
public dynamic class tutorialsound extends Sound {
}
}//package
Section 537
//unicornsound (unicornsound)
package {
import flash.media.*;
public dynamic class unicornsound extends Sound {
}
}//package
Section 538
//wall1 (wall1)
package {
import flash.display.*;
public dynamic class wall1 extends MovieClip {
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public function wall1(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 539
//wall2 (wall2)
package {
import flash.display.*;
public dynamic class wall2 extends MovieClip {
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public function wall2(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 540
//wall3 (wall3)
package {
import flash.display.*;
public dynamic class wall3 extends MovieClip {
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public function wall3(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 541
//wall4 (wall4)
package {
import flash.display.*;
public dynamic class wall4 extends MovieClip {
public var mchpbar:MovieClip;
public var mc1:MovieClip;
public function wall4(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 542
//windsound (windsound)
package {
import flash.media.*;
public dynamic class windsound extends Sound {
}
}//package
Section 543
//wyvernbulletsound (wyvernbulletsound)
package {
import flash.media.*;
public dynamic class wyvernbulletsound extends Sound {
}
}//package