Section 1
//Color (fl.motion.Color)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Color extends ColorTransform {
private var _tintColor:Number;// = 0
private var _tintMultiplier: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){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
public function set brightness(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
var _local2:Number = (1 - Math.abs(_arg1));
var _local3:Number = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function setTint(_arg1:uint, _arg2:Number):void{
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
var _local3:uint = ((_arg1 >> 16) & 0xFF);
var _local4:uint = ((_arg1 >> 8) & 0xFF);
var _local5:uint = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
private function deriveTintColor():uint{
var _local1:Number = (1 / this.tintMultiplier);
var _local2:uint = Math.round((this.redOffset * _local1));
var _local3:uint = Math.round((this.greenOffset * _local1));
var _local4:uint = Math.round((this.blueOffset * _local1));
var _local5:uint = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
var _local2:XML = _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 fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number = (1 - _arg3);
var _local5:ColorTransform = 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 interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number = (1 - _arg3);
var _local5:uint = ((_arg1 >> 24) & 0xFF);
var _local6:uint = ((_arg1 >> 16) & 0xFF);
var _local7:uint = ((_arg1 >> 8) & 0xFF);
var _local8:uint = (_arg1 & 0xFF);
var _local9:uint = ((_arg2 >> 24) & 0xFF);
var _local10:uint = ((_arg2 >> 16) & 0xFF);
var _local11:uint = ((_arg2 >> 8) & 0xFF);
var _local12:uint = (_arg2 & 0xFF);
var _local13:uint = ((_local5 * _local4) + (_local9 * _arg3));
var _local14:uint = ((_local6 * _local4) + (_local10 * _arg3));
var _local15:uint = ((_local7 * _local4) + (_local11 * _arg3));
var _local16:uint = ((_local8 * _local4) + (_local12 * _arg3));
var _local17:uint = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
}
}//package fl.motion
Section 2
//gamesfre_pre_b_sprite43_224 (puffballPuzzles_fla.gamesfre_pre_b_sprite43_224)
package puffballPuzzles_fla {
import flash.display.*;
public dynamic class gamesfre_pre_b_sprite43_224 extends MovieClip {
}
}//package puffballPuzzles_fla
Section 3
//botak_44 (tinyapo_fla.botak_44)
package tinyapo_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class botak_44 extends MovieClip {
public var par;
public function botak_44(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package tinyapo_fla
Section 4
//gamesfre_pre_dragon_animation_57 (tinyapo_fla.gamesfre_pre_dragon_animation_57)
package tinyapo_fla {
import flash.display.*;
public dynamic class gamesfre_pre_dragon_animation_57 extends MovieClip {
public function gamesfre_pre_dragon_animation_57(){
addFrameScript(86, frame87);
}
function frame87(){
stop();
}
}
}//package tinyapo_fla
Section 5
//gamesfre_pre_mendengus_65 (tinyapo_fla.gamesfre_pre_mendengus_65)
package tinyapo_fla {
import flash.display.*;
public dynamic class gamesfre_pre_mendengus_65 extends MovieClip {
public function gamesfre_pre_mendengus_65(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package tinyapo_fla
Section 6
//gamesfre_pre_preloader_gamesfree_56 (tinyapo_fla.gamesfre_pre_preloader_gamesfree_56)
package tinyapo_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class gamesfre_pre_preloader_gamesfree_56 extends MovieClip {
public var dragonIcon:MovieClip;
public var par;
public function gamesfre_pre_preloader_gamesfree_56(){
addFrameScript(0, frame1, 86, frame87);
}
public function clickMore(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.gamesfree.com/");
navigateToURL(_local2, "_blank");
}
function frame1(){
addEventListener(MouseEvent.CLICK, clickMore);
}
function frame87(){
stop();
par = this.parent;
par.gotoAndStop(5);
}
}
}//package tinyapo_fla
Section 7
//HEROBIGTHUMB_116 (tinyapo_fla.HEROBIGTHUMB_116)
package tinyapo_fla {
import flash.display.*;
public dynamic class HEROBIGTHUMB_116 extends MovieClip {
public function HEROBIGTHUMB_116(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tinyapo_fla
Section 8
//kumpulanbg_46 (tinyapo_fla.kumpulanbg_46)
package tinyapo_fla {
import flash.display.*;
public dynamic class kumpulanbg_46 extends MovieClip {
public function kumpulanbg_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tinyapo_fla
Section 9
//MAINMENU_14 (tinyapo_fla.MAINMENU_14)
package tinyapo_fla {
import flash.display.*;
public dynamic class MAINMENU_14 extends MovieClip {
public var mg:SimpleButton;
public var clearsave:SimpleButton;
public var a1:MovieClip;
public var lgbuttonhit:SimpleButton;
public var loadbutton:MovieClip;
public var gsbuttonhit:SimpleButton;
public function MAINMENU_14(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package tinyapo_fla
Section 10
//MainTimeline (tinyapo_fla.MainTimeline)
package tinyapo_fla {
import fl.motion.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var backgrounds:MovieClip;
public var pres:prese;
public var maware:MovieClip;
public var grandfinale:MovieClip;
public var preloaderss:MovieClip;
public var maskingon:MovieClip;
public var menumap:MovieClip;
public var nanana:MovieClip;
public var ou1:MovieClip;
public var sbutton:SimpleButton;
public var kakaka:MovieClip;
public var temboks:MovieClip;
public var customContextMenu:ContextMenu;
public var temp;
public var variables:URLVariables;
public var request:URLRequest;
public var loader:URLLoader;
public var inisialisasi;
public var serverwavelevels:Array;
public var urlvars:URLVariables;
public var url:String;
public var urlreq:URLRequest;
public var loaderx:URLLoader;
public var coba23:String;
public var flag1;
public var flag2;
public var flag3;
public var coba33:String;
public var coba34:String;
public var so:SharedObject;
public var menuutama;
public var tokens;
public var menumap2;
public var lp;
public var uh;
public var upgradebutton;
public var sapiduwek;
public var nagaduwek;
public var tscreen;
public var showsomething;
public var unlockhero;
public var playherounlocked;
public var wesjalan;
public var burninggrounds;
public var pesawat;
public var countdownapo;
public var resultscreen;
public var userinterface;
public var pausegame;
public var bulletnew;
public var peluru1;
public var peluru2;
public var peluru3;
public var peluru4;
public var peluru5;
public var movearrowgerak;
public var colorwall:Color;
public var colorcharabar:Color;
public var colorwallbar:Color;
public var steinsgate;
public var steinsgatestate;
public var steinsgatetimer;
public var modehards;
public var reloadpesawattemp;
public var loadstate;
public var brokenwill;
public var monster1:Array;
public var monster2:Array;
public var monster3:Array;
public var monster4:Array;
public var monster5:Array;
public var monster6:Array;
public var monster7:Array;
public var monster8:Array;
public var monster9:Array;
public var monster10:Array;
public var monster11:Array;
public var monster12:Array;
public var monster13:Array;
public var monster14:Array;
public var monster15:Array;
public var monster16:Array;
public var monster17:Array;
public var monster18:Array;
public var monster19:Array;
public var monster20:Array;
public var listmonster:Array;
public var damagebulletmonster:Array;
public var encountermusuh:Array;
public var cu;
public var awaveofcivil;
public var civposx;
public var civposy;
public var regenhpchara;
public var regenhpwall;
public var wakturegenhpchara;
public var wakturegenhpwall;
public var somethingsup;
public var waktuworldmap;
public var pesawat1:Array;
public var pesawat2:Array;
public var pesawat3:Array;
public var pesawat4:Array;
public var listpesawat:Array;
public var damagebullet:Array;
public var levelheros:Array;
public var expheros:Array;
public var maxexpheros:Array;
public var skillpointheros:Array;
public var completeheros:Array;
public var levelabilityhero1:Array;
public var levelabilityhero2:Array;
public var levelabilityhero3:Array;
public var levelabilityhero4:Array;
public var lah:Array;
public var itemhold:Array;
public var jmlitemhold:Array;
public var jmlitem:Array;
public var cvlvl1:Array;
public var cvlvl2:Array;
public var cvlvl3:Array;
public var cvlvl4:Array;
public var cvlvl5:Array;
public var cvlvl6:Array;
public var cvlvl7:Array;
public var cvlvl8:Array;
public var cvlvl9:Array;
public var cvlvl10:Array;
public var cvlvl11:Array;
public var cvlvl12:Array;
public var civilianlevel:Array;
public var bulletfall1:Sound;
public var bulletfall2:Sound;
public var tembak1:Sound;
public var tembak2:Sound;
public var tembak3:Sound;
public var bullet1hit:Sound;
public var bullet2hit:Sound;
public var bullet3hit:Sound;
public var items1:Sound;
public var items2:Sound;
public var items3:Sound;
public var items4:Sound;
public var items6:Sound;
public var smelee1:Sound;
public var smelee2:Sound;
public var senemymati1:Sound;
public var senemymati2:Sound;
public var senemymati3:Sound;
public var senemymati4:Sound;
public var kenatembak1:Sound;
public var tembakmeletus:Sound;
public var iceberg:Sound;
public var electrical:Sound;
public var quakes:Sound;
public var jedor:Sound;
public var camels:Sound;
public var jegrek:Sound;
public var botaktolol:Sound;
public var iyas:Sound;
public var ngeklik:Sound;
public var soundexp:Sound;
public var cekring:Sound;
public var countd:Sound;
public var gantis:Sound;
public var perbaiki:Sound;
public var wasp:Sound;
public var bom1:Sound;
public var bom2:Sound;
public var bom3:Sound;
public var sword1:Sound;
public var sword2:Sound;
public var sword3:Sound;
public var sword4:Sound;
public var fireabs:Sound;
public var voidabs:Sound;
public var zomdogbite:Sound;
public var zomdogjumps:Sound;
public var trexbite:Sound;
public var lasertink:Sound;
public var droneshot:Sound;
public var jalan1:Sound;
public var jalan2:Sound;
public var jalan3:Sound;
public var jalan7:Sound;
public var soundmeter;
public var bossbattletheme:Sound;
public var battletheme:Sound;
public var bgmmap1:Sound;
public var endingbgm1:Sound;
public var fanfare:Sound;
public var fanfare1:Sound;
public var decesivebattle:Sound;
public var soundvolume;
public var mychannel1:SoundChannel;
public var mychannel2:SoundChannel;
public var mychannel3:SoundChannel;
public var mychannel4:SoundChannel;
public var mychannel5:SoundChannel;
public var sechannel:SoundChannel;
public var mytransform1;
public var mytransform2;
public var mytransform3;
public var mytransform4;
public var mytransform5;
public var setransform;
public var volumes;
public var mlvl1:Array;
public var mlvl2:Array;
public var mlvl3:Array;
public var mlvl4:Array;
public var mlvl5:Array;
public var mlvl6:Array;
public var mlvl7:Array;
public var mlvl8:Array;
public var mlvl9:Array;
public var mlvl10:Array;
public var mlvl11:Array;
public var mlvl12:Array;
public var maxmonsterlevel:Array;
public var monsterlevel1:Array;
public var monsterlevel2:Array;
public var monsterlevel3:Array;
public var monsterlevel4:Array;
public var monsterlevel5:Array;
public var monsterlevel6:Array;
public var monsterlevel7:Array;
public var monsterlevel8:Array;
public var monsterlevel9:Array;
public var monsterlevel10:Array;
public var monsterlevel11:Array;
public var monsterlevel12:Array;
public var tipemonsterlevel:Array;
public var bmlvl11:Array;
public var bmlvl12:Array;
public var bmlvl13:Array;
public var bmlvl21:Array;
public var bmlvl22:Array;
public var bmlvl23:Array;
public var bmlvl31:Array;
public var bmlvl32:Array;
public var bmlvl33:Array;
public var drsvbmlvl11:Array;
public var drsvbmlvl12:Array;
public var drsvbmlvl13:Array;
public var drsvbmlvl21:Array;
public var drsvbmlvl22:Array;
public var drsvbmlvl23:Array;
public var drsvbmlvl31:Array;
public var drsvbmlvl32:Array;
public var drsvbmlvl33:Array;
public var bmlvl41:Array;
public var bmlvl42:Array;
public var bmlvl43:Array;
public var bmlvl51:Array;
public var bmlvl52:Array;
public var bmlvl53:Array;
public var bmlvl61:Array;
public var bmlvl62:Array;
public var bmlvl63:Array;
public var bmlvl71:Array;
public var bmlvl72:Array;
public var bmlvl73:Array;
public var bmlvl81:Array;
public var bmlvl82:Array;
public var bmlvl83:Array;
public var bmlvl91:Array;
public var bmlvl92:Array;
public var bmlvl93:Array;
public var drsvbmlvl81:Array;
public var drsvbmlvl82:Array;
public var drsvbmlvl83:Array;
public var bmlvl101:Array;
public var bmlvl102:Array;
public var bmlvl103:Array;
public var bmlvl111:Array;
public var bmlvl112:Array;
public var bmlvl113:Array;
public var bmlvl121:Array;
public var bmlvl122:Array;
public var bmlvl123:Array;
public var banyakmonsterlevel1:Array;
public var banyakmonsterlevel2:Array;
public var banyakmonsterlevel3:Array;
public var banyakmonsterlevel4:Array;
public var banyakmonsterlevel5:Array;
public var banyakmonsterlevel6:Array;
public var banyakmonsterlevel7:Array;
public var banyakmonsterlevel8:Array;
public var banyakmonsterlevel9:Array;
public var banyakmonsterlevel10:Array;
public var banyakmonsterlevel11:Array;
public var banyakmonsterlevel12:Array;
public var banyaktipemonsterlevel:Array;
public var wavelevels:Array;
public var maxleveltime:Array;
public var sudahspawnmonster:Array;
public var pbm1:Array;
public var pbm2:Array;
public var pbm3:Array;
public var pbm4:Array;
public var pbm5:Array;
public var pbm6:Array;
public var pbm7:Array;
public var pbm8:Array;
public var pbm9:Array;
public var pbm10:Array;
public var pbm11:Array;
public var pbm12:Array;
public var progressbarmeter:Array;
public var achievementmeter:Array;
public var tutu;
public var lvlc1:Array;
public var lvlc2:Array;
public var lvlc3:Array;
public var lvlc4:Array;
public var lvlc5:Array;
public var lvlc6:Array;
public var lvlc7:Array;
public var lvlc8:Array;
public var lvlc9:Array;
public var lvlc10:Array;
public var lvlc11:Array;
public var lvlc12:Array;
public var levelcomplete:Array;
public var money1:Array;
public var money2:Array;
public var money3:Array;
public var money4:Array;
public var money5:Array;
public var money6:Array;
public var money7:Array;
public var money8:Array;
public var money9:Array;
public var money10:Array;
public var money11:Array;
public var money12:Array;
public var moneyreward:Array;
public var yaya;
public var jaja;
public var sudahdapatgold;
public var killmission:Array;
public var focusm:MovieClip;
public var wallsudahjebol;
public var gold;
public var levelhpwall;
public var leveldefwall;
public var upgradewall;
public var defwall;
public var executionmarks;
public var showuhtrans;
public var lagitutorial;
public var playopenstage;
public var tempmaxexphero;
public var lagigerak;
public var ggmove;
public var ggstate;
public var introgg;
public var restartornot;
public var auracrit;
public var auramiss;
public var playending;
public var countergold;
public var auragold;
public var berapaes;
public var bolhp:Array;
public var civillayar;
public var previousmap;
public var xmap;
public var ymap;
public var bounce;
public var percepatan;
public var maxbounce;
public var map;
public var xs;
public var ys;
public var jumlahstrikedrone;
public var jumlahrepairdrone;
public var indextarget;
public var penambahan;
public var pembuat;
public var exey;
public var penambahans;
public var sebelums;
public var cooldownitem;
public var o1;
public var o2;
public var o3;
public var o4;
public var taken1;
public var taken2;
public var whatitem;
public var modulustembak;
public var gege;
public var targetlaser;
public var targety;
public var ytankpertama;
public var tipetank;
public var kaliini;
public var tambahtambahan;
public var ontasudahspawn;
public var stopresultscreen;
public var onworldmap;
public var itemover;
public var buybuttonon;
public var levelpartremove;
public var curentselection;
public var pauseornot;
public var switchmap;
public var deletemenu;
public var initfirsttime;
public var levelfailed;
public var gameinit;
public var maxpelurushot;
public var validuse;
public var kuotatank;
public var currentbulletused;
public var currentmodepeluru;
public var rechargebullet;
public var cobacounter;
public var cooldown;
public var cooldownchange;
public var warningpot2;
public var mute;
public var completes;
public var levelgame;
public var wavelevel;
public var lengthspawn;
public var stancechara;
public var jmlmonsternow;
public var menumode;
public var menuheroselect;
public var skillselect;
public var canclickmenu;
public var level;
public var maxtimespawn;
public var tambah;
public var chara;
public var firsttimepressed;
public var previouskey;
public var mcmaxhealth;
public var mchealth;
public var mcexp;
public var speedjalan;
public var crit;
public var hacked;
public var evade;
public var up;
public var mouseclicked;
public var arah;
public var warningpot;
public var useitem1;
public var useitem2;
public var recharge;
public var enemykill;
public var adaboss;
public var callboss;
public var badcondition;
public var timebadcondition;
public var timedamage;
public var timedamage2;
public var barricademaxhp;
public var jumlahcivilthislevel;
public var idletime;
public var latestmonsteralive;
public var sublevels;
public var menufocus;
public var restarts;
public var walltakedamages;
public var charatakedamages;
public var globalPoint10:Point;
public var barricadehp;
public var prevrotation;
public var keypressed;
public var bounceSpeed:Number;
public var upArrow:Boolean;
public var downArrow:Boolean;
public var encounter;
public var loopings;
public var previousy;
public var penguranganhpchara;
public var penguranganhwall;
public var decrement1;
public var decrement2;
public var maxmonsterlayar;
public var monsterlayar;
public var jumlahspawn;
public var reloadpesawat;
public var modulus;
public var apocount;
public var jumlahcivilians;
public var mcgoodstatus:Array;
public var mcgoodstatustime:Array;
public var wallgoodstatus:Array;
public var wallgoodstatustime:Array;
public var isreloading;
public var stopspawn;
public var playresultscreen;
public var waktuexperience;
public var waktuciviliansaved;
public var jumlahciviliansaved;
public var countcivilian;
public var civx;
public var civy;
public var civiliansaved:Array;
public var timercivilian;
public var maxtimespawncivil;
public var increments;
public var expshowed;
public var waktuhijau;
public var timers;
public var autosorttime;
public var gobacktoworldmap;
public var randomdirectionboss;
public var aboss;
public var kebelakang;
public var laserreduction;
public var simpanhijau;
public var spawntut;
public var linktembak;
public var randomyglobal:Array;
public var linkglobal;
public var nananakelihatan;
public var adayangditembak;
public var harmo;
public var tembakrandomboss2;
public var scattershot;
public var modepeluru;
public var damagepeluru;
public var inc;
public var xtarget:int;
public var ytarget:int;
public var t;
public var velo;
public var mbledos;
public var sedangmenembak;
public var delaytime;
public var explosion;
public var firstscene;
public var reduction;
public var canFire:Boolean;
public var pressing:Boolean;
public var reloadanimation;
public var clickstart;
public var jumlahcivilian:int;
public var civilians:Array;
public var jumlahmonster:int;
public var dummy:Array;
public var xv:Number;
public var health:int;
public var maxHealth:int;
public var walkspeed:int;
public var waktubom;
public var selesai;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
public function gotoweb(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.smallfarmstudio.com/");
navigateToURL(_local2, "_blank");
}
public function gotoweb3(_arg1):void{
var _local2:URLRequest = new URLRequest("http://www.smallfarmstudio.com/");
navigateToURL(_local2, "_blank");
}
public function gotoweb2(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://gamesfree.com/");
navigateToURL(_local2, "_blank");
}
public function loadingdocking(_arg1:Event):void{
var _local2:Number = this.stage.loaderInfo.bytesTotal;
var _local3:Number = this.stage.loaderInfo.bytesLoaded;
pres.prebar.width = ((300 * _local3) / _local2);
pres.loader_txt.text = (Math.floor(((_local3 / _local2) * 100)) + "%");
pres.loader_txt.mouseEnabled = false;
if (Math.floor(((_local3 / _local2) * 100)) == 33){
pres.prehorde.text = "LOADING SOUNDS";
};
if (Math.floor(((_local3 / _local2) * 100)) == 50){
pres.prehorde.text = "ACTUALLY, I DON'T KNOW WHICH DATA IS BEING LOAD NOW";
};
if (Math.floor(((_local3 / _local2) * 100)) == 55){
pres.prehorde.text = "LOADING MAPS";
};
if (Math.floor(((_local3 / _local2) * 100)) == 80){
pres.prehorde.text = "LOADING SCRIPT";
};
if (_local2 == _local3){
gotoAndStop(6);
this.removeEventListener(Event.ENTER_FRAME, loadingdocking);
};
}
public function completed(_arg1:Event):void{
var _local3:*;
coba34 = "finishing";
var _local2:String = String(_arg1.target.data);
var _local4:* = 0;
var _local5:* = 0;
var _local6:* = 2;
while (((!((_local3 == ">"))) || ((_local4 > 9999)))) {
_local3 = _local2.charAt(_local4);
_local4 = (_local4 + 1);
};
var _local7:String = _local2.substring(0, (_local4 - 4));
var _local8:String = _local2.substring(_local4, _local2.length);
coba23 = ((_local7 + " ") + _local8);
var _local9:* = MD5.encrypt(_local7);
if (_local9 == _local8){
while (_local5 < 12) {
if (_local5 == 0){
serverwavelevels[_local5] = int(_local2.charAt(0));
};
if (((!((serverwavelevels[0] == 0))) && ((_local5 >= 1)))){
serverwavelevels[_local5] = int(_local2.substring(_local6, (_local6 + 2)));
_local6 = (_local6 + 3);
} else {
if (_local5 >= 1){
serverwavelevels[_local5] = 0;
warningpot = 1;
flag2 = 1;
};
};
_local5 = (_local5 + 1);
};
if ((((_local7.length >= 70)) && ((warningpot == 0)))){
warningpot = 1;
flag3 = 1;
hacked = 1;
};
} else {
hacked = 1;
while (_local5 < 12) {
if (_local5 == 0){
serverwavelevels[_local5] = int(_local2.charAt(0));
};
if (_local5 >= 1){
serverwavelevels[_local5] = int(_local2.substring(_local6, (_local6 + 2)));
_local6 = (_local6 + 3);
};
_local5 = (_local5 + 1);
};
warningpot = 1;
flag1 = 1;
};
warningpot2 = warningpot;
coba33 = ((((((_local9 + " ") + flag1) + " ") + flag2) + " ") + flag3);
}
public function newload(_arg1){
var _local2:*;
if (menuutama == 0){
if (grandfinale.currentFrame == 35){
grandfinale.a1.visible = true;
grandfinale.clearsave.visible = true;
grandfinale.loadbutton.visible = true;
grandfinale.mg.visible = true;
};
};
if ((((selesai == 1)) && ((steinsgatetimer == 14)))){
gotoAndStop(3);
selesai = -1;
menuutama = 1;
};
if ((((selesai == 2)) && ((steinsgatetimer == 2)))){
map = 0;
};
if ((((selesai == 2)) && ((steinsgatetimer == 14)))){
selesai = -1;
menuutama = 1;
panggil();
if (so.size > 0){
levelheros = new Array(so.data.levelheros[0], so.data.levelheros[1], so.data.levelheros[2], so.data.levelheros[3]);
expheros = new Array(so.data.expheros[0], so.data.expheros[1], so.data.expheros[2], so.data.expheros[3]);
maxexpheros = new Array(so.data.maxexpheros[0], so.data.maxexpheros[1], so.data.maxexpheros[2], so.data.maxexpheros[3]);
completeheros = new Array(so.data.completeheros[0], so.data.completeheros[1], so.data.completeheros[2], so.data.completeheros[3]);
levelabilityhero1 = new Array(so.data.levelabilityhero1[0], so.data.levelabilityhero1[1], so.data.levelabilityhero1[2], so.data.levelabilityhero1[3]);
levelabilityhero2 = new Array(so.data.levelabilityhero2[0], so.data.levelabilityhero2[1], so.data.levelabilityhero2[2], so.data.levelabilityhero2[3]);
levelabilityhero3 = new Array(so.data.levelabilityhero3[0], so.data.levelabilityhero3[1], so.data.levelabilityhero3[2], so.data.levelabilityhero3[3]);
levelabilityhero4 = new Array(so.data.levelabilityhero4[0], so.data.levelabilityhero4[1], so.data.levelabilityhero4[2], so.data.levelabilityhero4[3]);
lah = new Array(levelabilityhero1, levelabilityhero2, levelabilityhero3, levelabilityhero4);
skillpointheros = new Array(so.data.skillpointheros[0], so.data.skillpointheros[1], so.data.skillpointheros[2], so.data.skillpointheros[3]);
itemhold = new Array(so.data.itemhold[0], so.data.itemhold[1], so.data.itemhold[2]);
jmlitemhold = new Array(so.data.jmlitemhold[0], so.data.jmlitemhold[1], so.data.jmlitemhold[2]);
jmlitem = new Array(so.data.jmlitem[0], so.data.jmlitem[1], so.data.jmlitem[2], so.data.jmlitem[3], so.data.jmlitem[4], so.data.jmlitem[5]);
pbm1 = new Array(so.data.pbm1[0], so.data.pbm1[1], so.data.pbm1[2]);
pbm2 = new Array(so.data.pbm2[0], so.data.pbm2[1], so.data.pbm2[2]);
pbm3 = new Array(so.data.pbm3[0], so.data.pbm3[1], so.data.pbm3[2]);
pbm4 = new Array(so.data.pbm4[0], so.data.pbm4[1], so.data.pbm4[2]);
pbm5 = new Array(so.data.pbm5[0], so.data.pbm5[1], so.data.pbm5[2]);
pbm6 = new Array(so.data.pbm6[0], so.data.pbm6[1], so.data.pbm6[2]);
pbm7 = new Array(so.data.pbm7[0], so.data.pbm7[1], so.data.pbm7[2]);
pbm8 = new Array(so.data.pbm8[0], so.data.pbm8[1], so.data.pbm8[2]);
pbm9 = new Array(so.data.pbm9[0], so.data.pbm9[1], so.data.pbm9[2]);
pbm10 = new Array(so.data.pbm10[0], so.data.pbm10[1], so.data.pbm10[2]);
pbm11 = new Array(so.data.pbm11[0], so.data.pbm11[1], so.data.pbm11[2]);
pbm12 = new Array(so.data.pbm12[0], so.data.pbm12[1], so.data.pbm12[2]);
progressbarmeter = new Array(pbm1, pbm2, pbm3, pbm4, pbm5, pbm6, pbm7, pbm8, pbm9, pbm10, pbm11, pbm12);
achievementmeter = new Array();
encountermusuh = new Array();
_local2 = 0;
while (_local2 < 70) {
achievementmeter[_local2] = so.data.achievementmeter[_local2];
encountermusuh[_local2] = so.data.encountermusuh[_local2];
_local2 = (_local2 + 1);
};
lvlc1 = new Array(so.data.lvlc1[0], so.data.lvlc1[1], so.data.lvlc1[2]);
lvlc2 = new Array(so.data.lvlc2[0], so.data.lvlc2[1], so.data.lvlc2[2]);
lvlc3 = new Array(so.data.lvlc3[0], so.data.lvlc3[1], so.data.lvlc3[2]);
lvlc4 = new Array(so.data.lvlc4[0], so.data.lvlc4[1], so.data.lvlc4[2]);
lvlc5 = new Array(so.data.lvlc5[0], so.data.lvlc5[1], so.data.lvlc5[2]);
lvlc6 = new Array(so.data.lvlc6[0], so.data.lvlc6[1], so.data.lvlc6[2]);
lvlc7 = new Array(so.data.lvlc7[0], so.data.lvlc7[1], so.data.lvlc7[2]);
lvlc8 = new Array(so.data.lvlc8[0], so.data.lvlc8[1], so.data.lvlc8[2]);
lvlc9 = new Array(so.data.lvlc9[0], so.data.lvlc9[1], so.data.lvlc9[2]);
lvlc10 = new Array(so.data.lvlc10[0], so.data.lvlc10[1], so.data.lvlc10[2]);
lvlc11 = new Array(so.data.lvlc11[0], so.data.lvlc11[1], so.data.lvlc11[2]);
lvlc12 = new Array(so.data.lvlc12[0], so.data.lvlc12[1], so.data.lvlc12[2]);
levelcomplete = new Array(lvlc1, lvlc2, lvlc3, lvlc4, lvlc5, lvlc6, lvlc7, lvlc8, lvlc9, lvlc10, lvlc11, lvlc12);
gold = so.data.gold;
levelhpwall = so.data.levelhpwall;
leveldefwall = so.data.leveldefwall;
upgradewall = so.data.upgradewall;
defwall = so.data.defwall;
validuse = so.data.validuse;
currentmodepeluru = achievementmeter[65];
menuheroselect = (currentmodepeluru - 1);
if (menuheroselect < 0){
menuheroselect = 0;
};
if (encountermusuh[69] != 0){
previousmap = encountermusuh[69];
};
gotoAndStop(3);
} else {
playopenstage = 19;
somethingsup = 1;
currentmodepeluru = 1;
menuheroselect = 0;
gotoAndStop(7);
};
};
}
public function panggil(){
urlvars.flash = "1";
urlvars.alamat = url;
urlreq.method = URLRequestMethod.POST;
urlreq.data = urlvars;
loaderx.dataFormat = URLLoaderDataFormat.TEXT;
loaderx.addEventListener(Event.COMPLETE, completed);
loaderx.load(urlreq);
coba34 = "trying";
}
public function openingthesteinsgate(_arg1:int){
steinsgate.visible = true;
steinsgatestate = _arg1;
steinsgatetimer = 0;
steinsgate.gotoAndPlay(22);
}
public function elpsycongoroo(_arg1){
if (steinsgatetimer >= 0){
steinsgatetimer = (steinsgatetimer + 1);
};
if ((((steinsgatetimer == 5)) && ((map >= 0)))){
if (mute != 1){
sechannel = jegrek.play();
};
};
if (steinsgatetimer >= 29){
steinsgate.visible = false;
steinsgatetimer = -1;
};
}
public function ggg(_arg1:MouseEvent):void{
openingthesteinsgate(0);
selesai = 2;
}
public function loads(_arg1:MouseEvent):void{
so.clear();
}
public function creditx(_arg1:MouseEvent):void{
maware.x = 0;
maware.y = 0;
}
public function removecreditx(_arg1:MouseEvent):void{
maware.x = 4000;
maware.y = 4000;
}
public function countherocompletition(){
var _local2:*;
var _local1:* = 0;
while (_local1 < 4) {
completes = ((levelheros[_local1] / 16) * 50);
_local2 = 0;
while (_local2 < 4) {
if (lah[_local1][_local2] == 1){
completes = (completes + ((1 / 16) * 50));
};
if (lah[_local1][_local2] == 2){
completes = (completes + ((1 / 8) * 50));
};
if (lah[_local1][_local2] == 3){
completes = (completes + ((3 / 16) * 50));
};
if (lah[_local1][_local2] == 4){
completes = (completes + ((1 / 4) * 50));
};
_local2 = (_local2 + 1);
};
completeheros[_local1] = completes;
completes = 0;
_local1 = (_local1 + 1);
};
}
public function showuh(_arg1:MouseEvent):void{
}
public function showhold1(_arg1:MouseEvent):void{
if (itemhold[0] == 1){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Stun Grenade";
uh.menuhero.itemstat.pop1.desc.text = "Stuns all monster in the screen";
};
if (itemhold[0] == 2){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Flash Grenade";
uh.menuhero.itemstat.pop1.desc.text = "25% chance enemy will ran away scared";
};
if (itemhold[0] == 3){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Air Strike";
uh.menuhero.itemstat.pop1.desc.text = "40 damage to all monster on the screen";
};
if (itemhold[0] == 4){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Strike Drone";
uh.menuhero.itemstat.pop1.desc.text = "Summon a Drone that shoots the monster";
};
if (itemhold[0] == 5){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Construct Drone";
uh.menuhero.itemstat.pop1.desc.text = "Summon a Drone that repairs wall for 20 s";
};
if (itemhold[0] == 6){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Tiny Elixir";
uh.menuhero.itemstat.pop1.desc.text = "Heal 100% of character's HP";
};
}
public function showhold2(_arg1:MouseEvent):void{
if (itemhold[1] == 1){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Stun Grenade";
uh.menuhero.itemstat.pop1.desc.text = "Stuns all monster in the screen";
};
if (itemhold[1] == 2){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Flash Grenade";
uh.menuhero.itemstat.pop1.desc.text = "25% chance enemy will ran away scared";
};
if (itemhold[1] == 3){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Air Strike";
uh.menuhero.itemstat.pop1.desc.text = "40 damage to all monster on the screen";
};
if (itemhold[1] == 4){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Strike Drone";
uh.menuhero.itemstat.pop1.desc.text = "Summon a Drone that shoots the monster";
};
if (itemhold[1] == 5){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Construct Drone";
uh.menuhero.itemstat.pop1.desc.text = "Summon a Drone that repairs wall for 20 s";
};
if (itemhold[1] == 6){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Tiny Elixir";
uh.menuhero.itemstat.pop1.desc.text = "Heal 100% of character's HP";
};
}
public function showhold3(_arg1:MouseEvent):void{
if (itemhold[2] == 1){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Stun Grenade";
uh.menuhero.itemstat.pop1.desc.text = "Stuns all monster in the screen";
};
if (itemhold[2] == 2){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Flash Grenade";
uh.menuhero.itemstat.pop1.desc.text = "25% chance enemy will ran away scared";
};
if (itemhold[2] == 3){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Air Strike";
uh.menuhero.itemstat.pop1.desc.text = "40 damage to all monster on the screen";
};
if (jmlitemhold[2] == 4){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Strike Drone";
uh.menuhero.itemstat.pop1.desc.text = "Summon a Drone that shoots the monster";
};
if (itemhold[2] == 5){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Construct Drone";
uh.menuhero.itemstat.pop1.desc.text = "Summon a Drone that repairs wall for 20 s";
};
if (itemhold[2] == 6){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Tiny Elixir";
uh.menuhero.itemstat.pop1.desc.text = "Heal 100% of character's HP";
};
}
public function overbutton(_arg1:MouseEvent):void{
if (itemover == 1){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Stun Grenade";
uh.menuhero.itemstat.pop1.desc.text = "Stuns all monster in the screen";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "50 G";
};
if (itemover == 2){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Flash Grenade";
uh.menuhero.itemstat.pop1.desc.text = "25% chance enemy will ran away scared";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "50 G";
};
if (itemover == 3){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Air Strike";
uh.menuhero.itemstat.pop1.desc.text = "40 damage to all monster on the screen";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "100 G";
};
if (itemover == 4){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Strike Drone";
uh.menuhero.itemstat.pop1.desc.text = "Summon a Drone that shoots the monster";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "150 G";
};
if (itemover == 5){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Construct Drone";
uh.menuhero.itemstat.pop1.desc.text = "Summon a Drone that repairs wall for 20 s";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "100 G";
};
if (itemover == 6){
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Tiny Elixir";
uh.menuhero.itemstat.pop1.desc.text = "Heal 100% of character's HP";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "150 G";
};
if (itemover == 7){
uh.menuhero.itemstat.pop2.visible = true;
uh.menuhero.itemstat.pop2.x = -66;
uh.menuhero.itemstat.pop2.y = -70;
uh.menuhero.itemstat.pop2.namess.text = "Fortify Wall";
uh.menuhero.itemstat.pop2.descs.text = "Price= 75G.";
uh.menuhero.itemstat.pop2.clvl.text = ("Current Level= " + String(levelhpwall));
uh.menuhero.itemstat.pop2.cstats.text = ("Wall HP+ " + String(upgradewall));
uh.menuhero.itemstat.buttonbuy.ggtext.text = "75 G";
if (upgradewall < 250){
uh.menuhero.itemstat.pop2.nlvl.text = ("Next Level= " + String((levelhpwall + 1)));
uh.menuhero.itemstat.pop2.nstats.text = ("Wall HP+ " + String((upgradewall + 50)));
} else {
uh.menuhero.itemstat.pop2.nlvl.visible = false;
uh.menuhero.itemstat.pop2.nstats.visible = false;
};
};
if (itemover == 8){
uh.menuhero.itemstat.pop2.visible = true;
uh.menuhero.itemstat.pop2.x = -66;
uh.menuhero.itemstat.pop2.y = 58;
uh.menuhero.itemstat.pop2.namess.text = "Strong Shield";
uh.menuhero.itemstat.pop2.descs.text = "Price= 75G.";
uh.menuhero.itemstat.pop2.clvl.text = ("Current Level= " + String(leveldefwall));
uh.menuhero.itemstat.pop2.cstats.text = (("Wall def+ " + String(defwall)) + "%");
uh.menuhero.itemstat.buttonbuy.ggtext.text = "75 G";
if (defwall < 25){
uh.menuhero.itemstat.pop2.nlvl.text = ("Next Level= " + String((leveldefwall + 1)));
uh.menuhero.itemstat.pop2.nstats.text = (("Wall def+ " + String((defwall + 50))) + "%");
} else {
uh.menuhero.itemstat.pop2.nlvl.visible = false;
uh.menuhero.itemstat.pop2.nstats.visible = false;
};
};
}
public function notoverbutton(_arg1:MouseEvent):void{
uh.menuhero.itemstat.pop1.visible = false;
uh.menuhero.itemstat.pop2.visible = false;
}
public function drag1(_arg1:MouseEvent):void{
curentselection = itemover;
if (jmlitem[(curentselection - 1)] > 0){
uh.menuhero.itemstat.icoba.x = (mouseX - 370);
uh.menuhero.itemstat.icoba.y = (mouseY - 200);
uh.menuhero.itemstat.icoba.jenisheld.gotoAndStop(curentselection);
uh.menuhero.itemstat.icoba.startDrag();
};
}
public function drop1(_arg1:MouseEvent):void{
uh.menuhero.itemstat.icoba.stopDrag();
if (uh.menuhero.itemstat.icoba.hitTestObject(uh.menuhero.itemstat.held3) == true){
if (((!((itemhold[0] == curentselection))) && (!((itemhold[1] == curentselection))))){
itemhold[2] = curentselection;
jmlitemhold[2] = jmlitem[(curentselection - 1)];
if ((((jmlitem[(curentselection - 1)] > 9)) && ((((((itemhold[2] == 1)) || ((itemhold[2] == 2)))) || ((itemhold[2] == 3)))))){
jmlitemhold[2] = 9;
};
if ((((jmlitem[(curentselection - 1)] > 9)) && ((itemhold[2] == 4)))){
jmlitemhold[2] = 9;
};
if ((((jmlitem[(curentselection - 1)] > 9)) && ((itemhold[2] == 5)))){
jmlitemhold[2] = 9;
};
if ((((jmlitem[(curentselection - 1)] > 9)) && ((itemhold[2] == 6)))){
jmlitemhold[2] = 9;
};
};
} else {
if (uh.menuhero.itemstat.icoba.hitTestObject(uh.menuhero.itemstat.held2) == true){
if (((!((itemhold[0] == curentselection))) && (!((itemhold[2] == curentselection))))){
itemhold[1] = curentselection;
jmlitemhold[1] = jmlitem[(curentselection - 1)];
if ((((jmlitem[(curentselection - 1)] > 9)) && ((((((itemhold[1] == 1)) || ((itemhold[1] == 2)))) || ((itemhold[1] == 3)))))){
jmlitemhold[1] = 9;
};
if ((((jmlitem[(curentselection - 1)] > 9)) && ((itemhold[1] == 4)))){
jmlitemhold[1] = 9;
};
if ((((jmlitem[(curentselection - 1)] > 9)) && ((itemhold[1] == 5)))){
jmlitemhold[1] = 9;
};
if ((((jmlitem[(curentselection - 1)] > 9)) && ((itemhold[1] == 6)))){
jmlitemhold[1] = 9;
};
};
} else {
if (uh.menuhero.itemstat.icoba.hitTestObject(uh.menuhero.itemstat.held1) == true){
if (((!((itemhold[1] == curentselection))) && (!((itemhold[2] == curentselection))))){
itemhold[0] = curentselection;
jmlitemhold[0] = jmlitem[(curentselection - 1)];
if ((((jmlitem[(curentselection - 1)] > 9)) && ((((((itemhold[0] == 1)) || ((itemhold[0] == 2)))) || ((itemhold[0] == 3)))))){
jmlitemhold[0] = 9;
};
if ((((jmlitem[(curentselection - 1)] > 9)) && ((itemhold[0] == 4)))){
jmlitemhold[0] = 9;
};
if ((((jmlitem[(curentselection - 1)] > 9)) && ((itemhold[0] == 5)))){
jmlitemhold[0] = 9;
};
if ((((jmlitem[(curentselection - 1)] > 9)) && ((itemhold[0] == 6)))){
jmlitemhold[0] = 9;
};
};
};
};
};
uh.menuhero.itemstat.icoba.x = 4000;
uh.menuhero.itemstat.icoba.y = 4000;
updatemenuitem();
curentselection = 7;
}
public function removetips(_arg1:MouseEvent):void{
uh.menuhero.itemstat.pop1.visible = false;
uh.menuhero.itemstat.pop2.visible = false;
}
public function updatewalltext(){
if (itemover == 7){
uh.menuhero.itemstat.pop2.namess.text = "Fortify Wall";
uh.menuhero.itemstat.pop2.descs.text = "Price= 75G. Increase wall HP by 50.";
uh.menuhero.itemstat.pop2.clvl.text = ("Current Level= " + String(levelhpwall));
uh.menuhero.itemstat.pop2.cstats.text = ("Wall HP+ " + String(upgradewall));
if (upgradewall < 250){
uh.menuhero.itemstat.pop2.nlvl.text = ("Next Level= " + String((levelhpwall + 1)));
uh.menuhero.itemstat.pop2.nstats.text = ("Wall HP+ " + String((upgradewall + 50)));
} else {
uh.menuhero.itemstat.pop2.nlvl.visible = false;
uh.menuhero.itemstat.pop2.nstats.visible = false;
};
};
if (itemover == 8){
uh.menuhero.itemstat.pop2.namess.text = "Strong Shield";
uh.menuhero.itemstat.pop2.descs.text = "Price= 75G. Increase wall armor by 5%.";
uh.menuhero.itemstat.pop2.clvl.text = ("Current Level= " + String(leveldefwall));
uh.menuhero.itemstat.pop2.cstats.text = (("Wall def+ " + String(defwall)) + "%");
if (defwall < 25){
uh.menuhero.itemstat.pop2.nlvl.text = ("Next Level= " + String((leveldefwall + 1)));
uh.menuhero.itemstat.pop2.nstats.text = (("Wall def+ " + String((defwall + 50))) + "%");
} else {
uh.menuhero.itemstat.pop2.nlvl.visible = false;
uh.menuhero.itemstat.pop2.nstats.visible = false;
};
};
}
public function wallhp(_arg1:MouseEvent):void{
itemover = 7;
uh.menuhero.itemstat.buttonbuy.visible = true;
uh.menuhero.itemstat.buttonbuy.gotoAndStop(2);
uh.menuhero.itemstat.buttonbuy.x = -212;
uh.menuhero.itemstat.buttonbuy.y = 18;
uh.menuhero.itemstat.pop2.visible = true;
uh.menuhero.itemstat.pop2.x = -66;
uh.menuhero.itemstat.pop2.y = -70;
updatewalltext();
}
public function walldef(_arg1:MouseEvent):void{
itemover = 8;
uh.menuhero.itemstat.buttonbuy.visible = true;
uh.menuhero.itemstat.buttonbuy.gotoAndStop(2);
uh.menuhero.itemstat.buttonbuy.x = -212;
uh.menuhero.itemstat.buttonbuy.y = 144;
uh.menuhero.itemstat.pop2.visible = true;
uh.menuhero.itemstat.pop2.x = -66;
uh.menuhero.itemstat.pop2.y = 58;
updatewalltext();
}
public function show1(_arg1:MouseEvent):void{
itemover = 1;
uh.menuhero.itemstat.buttonbuy.visible = true;
uh.menuhero.itemstat.buttonbuy.gotoAndStop(1);
uh.menuhero.itemstat.buttonbuy.x = -58;
uh.menuhero.itemstat.buttonbuy.y = -46;
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Stun Grenade";
uh.menuhero.itemstat.pop1.desc.text = "Stuns all monster in the screen";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "50 G";
}
public function show2(_arg1:MouseEvent):void{
itemover = 2;
uh.menuhero.itemstat.buttonbuy.visible = true;
uh.menuhero.itemstat.buttonbuy.gotoAndStop(1);
uh.menuhero.itemstat.buttonbuy.x = 58;
uh.menuhero.itemstat.buttonbuy.y = -46;
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Flash Grenade";
uh.menuhero.itemstat.pop1.desc.text = "25% chance enemy will ran away scared";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "50 G";
}
public function show3(_arg1:MouseEvent):void{
itemover = 3;
uh.menuhero.itemstat.buttonbuy.visible = true;
uh.menuhero.itemstat.buttonbuy.gotoAndStop(1);
uh.menuhero.itemstat.buttonbuy.x = -57;
uh.menuhero.itemstat.buttonbuy.y = 28;
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Air Strike";
uh.menuhero.itemstat.pop1.desc.text = "40 damage to all monster on the screen";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "100 G";
}
public function show4(_arg1:MouseEvent):void{
itemover = 4;
uh.menuhero.itemstat.buttonbuy.visible = true;
uh.menuhero.itemstat.buttonbuy.x = 59;
uh.menuhero.itemstat.buttonbuy.y = 29;
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Strike Drone";
uh.menuhero.itemstat.pop1.desc.text = "Summon a Drone that shoots the monster";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "150 G";
}
public function show5(_arg1:MouseEvent):void{
itemover = 5;
uh.menuhero.itemstat.buttonbuy.visible = true;
uh.menuhero.itemstat.buttonbuy.gotoAndStop(1);
uh.menuhero.itemstat.buttonbuy.x = -56;
uh.menuhero.itemstat.buttonbuy.y = 105;
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Construct Drone";
uh.menuhero.itemstat.pop1.desc.text = "Summon a Drone that repairs wall for 20 s";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "100 G";
}
public function show6(_arg1:MouseEvent):void{
itemover = 6;
uh.menuhero.itemstat.buttonbuy.visible = true;
uh.menuhero.itemstat.buttonbuy.gotoAndStop(1);
uh.menuhero.itemstat.buttonbuy.x = 59;
uh.menuhero.itemstat.buttonbuy.y = 105;
uh.menuhero.itemstat.pop1.visible = true;
uh.menuhero.itemstat.pop1.namess.text = "Tiny Elixir";
uh.menuhero.itemstat.pop1.desc.text = "Heal 100% of character's HP";
uh.menuhero.itemstat.buttonbuy.ggtext.text = "150 G";
}
public function buy(_arg1:MouseEvent):void{
var _local4:*;
var _local5:Point;
var _local6:*;
var _local7:Point;
var _local8:*;
var _local9:Point;
var _local10:*;
var _local11:Point;
var _local12:*;
var _local13:Point;
var _local14:*;
var _local15:Point;
var _local16:*;
var _local17:Point;
var _local18:*;
var _local19:Point;
var _local2:* = 0;
var _local3:* = 0;
if ((((((itemover == 1)) || ((itemover == 2)))) && ((gold >= 50)))){
if (mute != 1){
sechannel = cekring.play();
};
gold = (gold - 50);
jmlitem[(itemover - 1)] = (jmlitem[(itemover - 1)] + 1);
while ((((_local2 < 3)) && ((_local3 == 0)))) {
if (itemover == itemhold[_local2]){
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
_local3 = 1;
};
if ((((((((((((itemover == 1)) && (!((itemhold[0] == 1))))) && (!((itemhold[1] == 1))))) && (!((itemhold[2] == 1))))) && ((itemhold[_local2] == 7)))) && ((_local3 == 0)))){
itemhold[_local2] = itemover;
if (_local2 == 0){
uh.menuhero.itemstat.held1.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 1){
uh.menuhero.itemstat.held2.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 2){
uh.menuhero.itemstat.held3.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
};
};
};
_local3 = 1;
};
if ((((((((((((itemover == 2)) && (!((itemhold[0] == 2))))) && (!((itemhold[1] == 2))))) && (!((itemhold[2] == 2))))) && ((itemhold[_local2] == 7)))) && ((_local3 == 0)))){
itemhold[_local2] = itemover;
if (_local2 == 0){
uh.menuhero.itemstat.held1.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 1){
uh.menuhero.itemstat.held2.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 2){
uh.menuhero.itemstat.held3.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
};
};
};
_local3 = 1;
};
_local2 = (_local2 + 1);
};
updatemenuitem();
} else {
if (itemover == 1){
_local4 = new itemcannotbuy();
_local5 = uh.menuhero.itemstat.buttonbuy.localToGlobal(new Point());
_local4.x = _local5.x;
_local4.y = _local5.y;
addChild(_local4);
};
if (itemover == 2){
_local6 = new itemcannotbuy();
_local7 = uh.menuhero.itemstat.buttonbuy.localToGlobal(new Point());
_local6.x = _local7.x;
_local6.y = _local7.y;
addChild(_local6);
};
};
if ((((((itemover == 3)) || ((itemover == 5)))) && ((gold >= 100)))){
if (mute != 1){
sechannel = cekring.play();
};
gold = (gold - 100);
jmlitem[(itemover - 1)] = (jmlitem[(itemover - 1)] + 1);
while ((((_local2 < 3)) && ((_local3 == 0)))) {
if (itemover == itemhold[_local2]){
if ((((jmlitemhold[_local2] < 9)) && ((itemover == 3)))){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
if ((((jmlitemhold[_local2] < 9)) && ((itemover == 5)))){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
_local3 = 1;
};
if ((((((((((((itemover == 3)) && (!((itemhold[0] == 3))))) && (!((itemhold[1] == 3))))) && (!((itemhold[2] == 3))))) && ((itemhold[_local2] == 7)))) && ((_local3 == 0)))){
itemhold[_local2] = itemover;
if (_local2 == 0){
uh.menuhero.itemstat.held1.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 1){
uh.menuhero.itemstat.held2.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 2){
uh.menuhero.itemstat.held3.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
};
};
};
_local3 = 1;
};
if ((((((((((((itemover == 5)) && (!((itemhold[0] == 5))))) && (!((itemhold[1] == 5))))) && (!((itemhold[2] == 5))))) && ((itemhold[_local2] == 7)))) && ((_local3 == 0)))){
itemhold[_local2] = itemover;
if (_local2 == 0){
uh.menuhero.itemstat.held1.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 1){
uh.menuhero.itemstat.held2.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 2){
uh.menuhero.itemstat.held3.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
};
};
};
_local3 = 1;
};
_local2 = (_local2 + 1);
};
updatemenuitem();
} else {
if (itemover == 3){
_local8 = new itemcannotbuy();
_local9 = uh.menuhero.itemstat.buttonbuy.localToGlobal(new Point());
_local8.x = _local9.x;
_local8.y = _local9.y;
addChild(_local8);
};
if (itemover == 5){
_local10 = new itemcannotbuy();
_local11 = uh.menuhero.itemstat.buttonbuy.localToGlobal(new Point());
_local10.x = _local11.x;
_local10.y = _local11.y;
addChild(_local10);
};
};
if ((((((itemover == 4)) || ((itemover == 6)))) && ((gold >= 150)))){
if (mute != 1){
sechannel = cekring.play();
};
gold = (gold - 150);
jmlitem[(itemover - 1)] = (jmlitem[(itemover - 1)] + 1);
while ((((_local2 < 3)) && ((_local3 == 0)))) {
if (itemover == itemhold[_local2]){
if ((((jmlitemhold[_local2] < 9)) && ((itemover == 6)))){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
if ((((jmlitemhold[_local2] < 9)) && ((itemover == 4)))){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
_local3 = 1;
};
if ((((((((((((itemover == 6)) && (!((itemhold[0] == 6))))) && (!((itemhold[1] == 6))))) && (!((itemhold[2] == 6))))) && ((itemhold[_local2] == 7)))) && ((_local3 == 0)))){
itemhold[_local2] = itemover;
if (_local2 == 0){
uh.menuhero.itemstat.held1.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 1){
uh.menuhero.itemstat.held2.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 2){
uh.menuhero.itemstat.held3.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
};
};
};
_local3 = 1;
};
if ((((((((((((itemover == 4)) && (!((itemhold[0] == 4))))) && (!((itemhold[1] == 4))))) && (!((itemhold[2] == 4))))) && ((itemhold[_local2] == 7)))) && ((_local3 == 0)))){
itemhold[_local2] = itemover;
if (_local2 == 0){
uh.menuhero.itemstat.held1.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 1){
uh.menuhero.itemstat.held2.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
} else {
if (_local2 == 2){
uh.menuhero.itemstat.held3.jenisheld.gotoAndStop(itemover);
if (jmlitemhold[_local2] < 9){
jmlitemhold[_local2] = (jmlitemhold[_local2] + 1);
};
};
};
};
_local3 = 1;
};
_local2 = (_local2 + 1);
};
updatemenuitem();
} else {
if (itemover == 4){
_local12 = new itemcannotbuy();
_local13 = uh.menuhero.itemstat.buttonbuy.localToGlobal(new Point());
_local12.x = _local13.x;
_local12.y = _local13.y;
addChild(_local12);
};
if (itemover == 6){
_local14 = new itemcannotbuy();
_local15 = uh.menuhero.itemstat.buttonbuy.localToGlobal(new Point());
_local14.x = _local15.x;
_local14.y = _local15.y;
addChild(_local14);
};
};
if ((((((itemover == 7)) || ((itemover == 8)))) && ((gold >= 75)))){
if ((((itemover == 7)) && ((upgradewall < 250)))){
if (mute != 1){
sechannel = cekring.play();
};
gold = (gold - 75);
levelhpwall = (levelhpwall + 1);
upgradewall = (upgradewall + 50);
};
if ((((itemover == 8)) && ((defwall < 25)))){
if (mute != 1){
sechannel = cekring.play();
};
gold = (gold - 75);
leveldefwall = (leveldefwall + 1);
defwall = (defwall + 5);
};
updatemenuitem();
updatewalltext();
} else {
if (itemover == 7){
_local16 = new itemcannotbuy();
_local17 = uh.menuhero.itemstat.buttonbuy.localToGlobal(new Point());
_local16.x = _local17.x;
_local16.y = _local17.y;
addChild(_local16);
};
if (itemover == 8){
_local18 = new itemcannotbuy();
_local19 = uh.menuhero.itemstat.buttonbuy.localToGlobal(new Point());
_local18.x = _local19.x;
_local18.y = _local19.y;
addChild(_local18);
};
};
}
public function updatepp(){
if (skillselect == 0){
if ((((menuheroselect == 0)) || ((menuheroselect == 1)))){
uh.menuhero.herostat.popuphelp.aname.text = "Ammo Monster";
uh.menuhero.herostat.popuphelp.desc.text = "Increase ammo capacity (+5 ammo)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][0]));
if (lah[menuheroselect][0] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "10 Bullets max";
};
if (lah[menuheroselect][0] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "15 Bullets max";
};
if (lah[menuheroselect][0] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "20 Bullets max";
};
if (lah[menuheroselect][0] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "25 Bullets max";
};
if (lah[menuheroselect][0] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "30 Bullets max";
};
if (lah[menuheroselect][0] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][0] + 1)));
if (lah[menuheroselect][0] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "15 Bullets max";
};
if (lah[menuheroselect][0] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "20 Bullets max";
};
if (lah[menuheroselect][0] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "25 Bullets max";
};
if (lah[menuheroselect][0] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "30 Bullets max";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 2){
uh.menuhero.herostat.popuphelp.aname.text = "Ammo Monster";
uh.menuhero.herostat.popuphelp.desc.text = "Increase ammo capacity (+1 ammo)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][0]));
if (lah[menuheroselect][0] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "7 Bullets max";
};
if (lah[menuheroselect][0] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "8 Bullets max";
};
if (lah[menuheroselect][0] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "9 Bullets max";
};
if (lah[menuheroselect][0] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "10 Bullets max";
};
if (lah[menuheroselect][0] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "11 Bullets max";
};
if (lah[menuheroselect][0] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][0] + 1)));
if (lah[menuheroselect][0] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "8 Bullets max";
};
if (lah[menuheroselect][0] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "9 Bullets max";
};
if (lah[menuheroselect][0] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "10 Bullets max";
};
if (lah[menuheroselect][0] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "11 Bullets max";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 3){
uh.menuhero.herostat.popuphelp.aname.text = "Ammo Monster";
uh.menuhero.herostat.popuphelp.desc.text = "Increase ammo capacity (+1 ammo)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][0]));
if (lah[menuheroselect][0] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "5 Bullets max";
};
if (lah[menuheroselect][0] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "6 Bullets max";
};
if (lah[menuheroselect][0] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "7 Bullets max";
};
if (lah[menuheroselect][0] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "8 Bullets max";
};
if (lah[menuheroselect][0] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "9 Bullets max";
};
if (lah[menuheroselect][0] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][0] + 1)));
if (lah[menuheroselect][0] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "6 Bullets max";
};
if (lah[menuheroselect][0] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "7 Bullets max";
};
if (lah[menuheroselect][0] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "8 Bullets max";
};
if (lah[menuheroselect][0] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "9 Bullets max";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
};
if (skillselect == 1){
if (menuheroselect == 0){
uh.menuhero.herostat.popuphelp.aname.text = "Magnetic Bullet";
uh.menuhero.herostat.popuphelp.desc.text = "Increase bullet damage (+1 damage)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][1]));
if (lah[menuheroselect][1] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "2 Damage";
};
if (lah[menuheroselect][1] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "3 Damage";
};
if (lah[menuheroselect][1] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "4 Damage";
};
if (lah[menuheroselect][1] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "5 Damage";
};
if (lah[menuheroselect][1] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "6 Damage";
};
if (lah[menuheroselect][1] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][1] + 1)));
if (lah[menuheroselect][1] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "3 Damage";
};
if (lah[menuheroselect][1] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "4 Damage";
};
if (lah[menuheroselect][1] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "5 Damage";
};
if (lah[menuheroselect][1] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "6 Damage";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 1){
uh.menuhero.herostat.popuphelp.aname.text = "Multi Shoot";
uh.menuhero.herostat.popuphelp.desc.text = "Increase spread bullet (+1 spread)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][1]));
if (lah[menuheroselect][1] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "No Spreads";
};
if (lah[menuheroselect][1] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "2 Spreads";
};
if (lah[menuheroselect][1] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "3 Spreads";
};
if (lah[menuheroselect][1] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "4 Spreads";
};
if (lah[menuheroselect][1] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "5 Spreads";
};
if (lah[menuheroselect][1] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][1] + 1)));
if (lah[menuheroselect][1] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "2 Spreads";
};
if (lah[menuheroselect][1] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "3 Spreads";
};
if (lah[menuheroselect][1] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "4 Spreads";
};
if (lah[menuheroselect][1] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "5 Spreads";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 2){
uh.menuhero.herostat.popuphelp.aname.text = "Magnetic Bullet";
uh.menuhero.herostat.popuphelp.desc.text = "Increase bullet damage (+5 damage)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][1]));
if (lah[menuheroselect][1] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "20 Damage";
};
if (lah[menuheroselect][1] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "25 Damage";
};
if (lah[menuheroselect][1] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "30 Damage";
};
if (lah[menuheroselect][1] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "35 Damage";
};
if (lah[menuheroselect][1] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "40 Damage";
};
if (lah[menuheroselect][1] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][1] + 1)));
if (lah[menuheroselect][1] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "25 Damage";
};
if (lah[menuheroselect][1] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "30 Damage";
};
if (lah[menuheroselect][1] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "35 Damage";
};
if (lah[menuheroselect][1] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "40 Damage";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 3){
uh.menuhero.herostat.popuphelp.aname.text = "Fat Man";
uh.menuhero.herostat.popuphelp.desc.text = "Create Sharpnel (+1/Level) ";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][1]));
if (lah[menuheroselect][1] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "0 Sharpnel";
};
if (lah[menuheroselect][1] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "1 Sharpnel";
};
if (lah[menuheroselect][1] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "2 Sharpnel";
};
if (lah[menuheroselect][1] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "3 Sharpnel";
};
if (lah[menuheroselect][1] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "4 Sharpnel";
};
if (lah[menuheroselect][1] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][1] + 1)));
if (lah[menuheroselect][1] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "1 Sharpnel";
};
if (lah[menuheroselect][1] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "2 Sharpnel";
};
if (lah[menuheroselect][1] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "3 Sharpnel";
};
if (lah[menuheroselect][1] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "4 Sharpnel";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
};
if (skillselect == 2){
if (menuheroselect == 0){
uh.menuhero.herostat.popuphelp.aname.text = "Vantage Shot";
uh.menuhero.herostat.popuphelp.desc.text = "Instant kill every 10 s to non-boss enemies";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][2]));
if (lah[menuheroselect][2] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "No Instant kill bullet";
};
if (lah[menuheroselect][2] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "Instant kill for 0.5 s";
};
if (lah[menuheroselect][2] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "Instant kill for 1 s";
};
if (lah[menuheroselect][2] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "Instant kill for 1.5 s";
};
if (lah[menuheroselect][2] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "Instant kill for 2 s";
};
if (lah[menuheroselect][2] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][2] + 1)));
if (lah[menuheroselect][2] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "Instant kill for 0.5 s";
};
if (lah[menuheroselect][2] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "Instant kill for 1 s";
};
if (lah[menuheroselect][2] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "Instant kill for 1.5 s";
};
if (lah[menuheroselect][2] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "Instant kill for 2 s";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 1){
uh.menuhero.herostat.popuphelp.aname.text = "Magnetic Bullet";
uh.menuhero.herostat.popuphelp.desc.text = "Increase bullet damage (+1 damage)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][2]));
if (lah[menuheroselect][2] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "1 Damage";
};
if (lah[menuheroselect][2] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "2 Damage";
};
if (lah[menuheroselect][2] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "3 Damage";
};
if (lah[menuheroselect][2] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "4 Damage";
};
if (lah[menuheroselect][2] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "5 Damage";
};
if (lah[menuheroselect][2] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][2] + 1)));
if (lah[menuheroselect][2] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "2 Damage";
};
if (lah[menuheroselect][2] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "3 Damage";
};
if (lah[menuheroselect][2] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "4 Damage";
};
if (lah[menuheroselect][2] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "5 Damage";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 2){
uh.menuhero.herostat.popuphelp.aname.text = "Pure Energy";
uh.menuhero.herostat.popuphelp.desc.text = "Decrease the reduction chain damage when pass through other enemy (+1)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][2]));
if (lah[menuheroselect][2] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "-7 damage reduction when chain hits";
};
if (lah[menuheroselect][2] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "-6 damage reduction when chain hits";
};
if (lah[menuheroselect][2] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "-5 damage reduction when chain hits";
};
if (lah[menuheroselect][2] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "-4 damage reduction when chain hits";
};
if (lah[menuheroselect][2] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "-3 damage reduction when chain hits";
};
if (lah[menuheroselect][2] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][2] + 1)));
if (lah[menuheroselect][2] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "-6 damage reduction when chain hits";
};
if (lah[menuheroselect][2] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "-5 damage reduction when chain hits";
};
if (lah[menuheroselect][2] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "-4 damage reduction when chain hits";
};
if (lah[menuheroselect][2] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "-3 damage reduction when chain hits";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 3){
uh.menuhero.herostat.popuphelp.aname.text = "Advanced Tech";
uh.menuhero.herostat.popuphelp.desc.text = "Reduce reload duration (-0.2 s) ";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][2]));
if (lah[menuheroselect][2] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "2 s reload";
};
if (lah[menuheroselect][2] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "1,8 s reload";
};
if (lah[menuheroselect][2] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "1,6 s reload";
};
if (lah[menuheroselect][2] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "1,4 s reload";
};
if (lah[menuheroselect][2] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "1,2 s reload";
};
if (lah[menuheroselect][2] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][2] + 1)));
if (lah[menuheroselect][2] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "1,8 s reload";
};
if (lah[menuheroselect][2] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "1,6 s reload";
};
if (lah[menuheroselect][2] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "1,4 s reload";
};
if (lah[menuheroselect][2] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "1,2 s reload";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
};
if (skillselect == 3){
if (menuheroselect == 0){
uh.menuhero.herostat.popuphelp.aname.text = "Rage Burst";
uh.menuhero.herostat.popuphelp.desc.text = "Increase shooting speed (+10% faster)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][3]));
if (lah[menuheroselect][3] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "Normal shoot speed";
};
if (lah[menuheroselect][3] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "10% Faster shoot";
};
if (lah[menuheroselect][3] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "20% Faster shoot";
};
if (lah[menuheroselect][3] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "30% Faster shoot";
};
if (lah[menuheroselect][3] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "40% Faster shoot";
};
if (lah[menuheroselect][3] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][3] + 1)));
if (lah[menuheroselect][3] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "10% Faster shoot";
};
if (lah[menuheroselect][3] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "20% Faster shoot";
};
if (lah[menuheroselect][3] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "30% Faster shoot";
};
if (lah[menuheroselect][3] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "40% Faster shoot";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 1){
uh.menuhero.herostat.popuphelp.aname.text = "Keen Eye";
uh.menuhero.herostat.popuphelp.desc.text = "Dodge all attack for short period of time";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][3]));
if (lah[menuheroselect][3] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "No chance to dodge attack";
};
if (lah[menuheroselect][3] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "1 s dodge all attack";
};
if (lah[menuheroselect][3] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "1.5 s dodge all attack";
};
if (lah[menuheroselect][3] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "2 s dodge all attack";
};
if (lah[menuheroselect][3] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "2.5 s dodge all attack";
};
if (lah[menuheroselect][3] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][3] + 1)));
if (lah[menuheroselect][3] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "1 s dodge all attack";
};
if (lah[menuheroselect][3] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "1.5 s dodge all attack";
};
if (lah[menuheroselect][3] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "2 s dodge all attack";
};
if (lah[menuheroselect][3] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "2.5 s dodge all attack";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 2){
uh.menuhero.herostat.popuphelp.aname.text = "Kinetic Line";
uh.menuhero.herostat.popuphelp.desc.text = "Increase chain (+1 chain)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][3]));
if (lah[menuheroselect][3] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "1 Chain";
};
if (lah[menuheroselect][3] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "2 Chain";
};
if (lah[menuheroselect][3] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "3 Chain";
};
if (lah[menuheroselect][3] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "4 Chain";
};
if (lah[menuheroselect][3] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "5 Chain";
};
if (lah[menuheroselect][3] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][3] + 1)));
if (lah[menuheroselect][3] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "2 Chain";
};
if (lah[menuheroselect][3] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "3 Chain";
};
if (lah[menuheroselect][3] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "4 Chain";
};
if (lah[menuheroselect][3] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "5 Chain";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
if (menuheroselect == 3){
uh.menuhero.herostat.popuphelp.aname.text = "Burning Ground";
uh.menuhero.herostat.popuphelp.desc.text = "Volcano in exploded area, deals 4 dot (+2/upgrade)";
uh.menuhero.herostat.popuphelp.clevels.text = ("Current Level= " + String(lah[menuheroselect][3]));
if (lah[menuheroselect][3] == 0){
uh.menuhero.herostat.popuphelp.cstats.text = "No Volcano";
};
if (lah[menuheroselect][3] == 1){
uh.menuhero.herostat.popuphelp.cstats.text = "Volcano damage= 4/s";
};
if (lah[menuheroselect][3] == 2){
uh.menuhero.herostat.popuphelp.cstats.text = "Volcano damage= 6/s";
};
if (lah[menuheroselect][3] == 3){
uh.menuhero.herostat.popuphelp.cstats.text = "Volcano damage= 8/s";
};
if (lah[menuheroselect][3] == 4){
uh.menuhero.herostat.popuphelp.cstats.text = "Volcano damage= 10/s";
};
if (lah[menuheroselect][3] <= 3){
uh.menuhero.herostat.popuphelp.nlevels.text = ("Next Level= " + String((lah[menuheroselect][3] + 1)));
if (lah[menuheroselect][3] == 0){
uh.menuhero.herostat.popuphelp.nstats.text = "Volcano damage= 4/s";
};
if (lah[menuheroselect][3] == 1){
uh.menuhero.herostat.popuphelp.nstats.text = "Volcano damage= 6/s";
};
if (lah[menuheroselect][3] == 2){
uh.menuhero.herostat.popuphelp.nstats.text = "Volcano damage= 8/s";
};
if (lah[menuheroselect][3] == 3){
uh.menuhero.herostat.popuphelp.nstats.text = "Volcano damage= 10/s";
};
} else {
uh.menuhero.herostat.popuphelp.nlevels.text = "";
uh.menuhero.herostat.popuphelp.nstats.text = "";
};
};
};
}
public function showpp1(_arg1:MouseEvent):void{
skillselect = 0;
uh.menuhero.herostat.popuphelp.visible = true;
uh.menuhero.herostat.popuphelp.x = -30;
uh.menuhero.herostat.popuphelp.y = -25;
updatepp();
}
public function showpp2(_arg1:MouseEvent):void{
skillselect = 1;
uh.menuhero.herostat.popuphelp.visible = true;
uh.menuhero.herostat.popuphelp.x = 65;
uh.menuhero.herostat.popuphelp.y = -25;
updatepp();
}
public function showpp3(_arg1:MouseEvent):void{
skillselect = 2;
uh.menuhero.herostat.popuphelp.visible = true;
uh.menuhero.herostat.popuphelp.x = 95;
uh.menuhero.herostat.popuphelp.y = -25;
updatepp();
}
public function showpp4(_arg1:MouseEvent):void{
skillselect = 3;
uh.menuhero.herostat.popuphelp.visible = true;
uh.menuhero.herostat.popuphelp.x = 190;
uh.menuhero.herostat.popuphelp.y = -25;
updatepp();
}
public function removepp(_arg1:MouseEvent):void{
if ((((skillselect == 0)) && ((((((((mouseX < 251)) || ((mouseX > 290)))) || ((mouseY < 300)))) || ((mouseY > 342)))))){
uh.menuhero.herostat.popuphelp.visible = false;
uh.menuhero.herostat.popuphelp.x = 3000;
} else {
uh.menuhero.herostat.popuphelp.y = 20;
};
if ((((skillselect == 1)) && ((((((((mouseX < 371)) || ((mouseX > 392)))) || ((mouseY < 300)))) || ((mouseY > 341)))))){
uh.menuhero.herostat.popuphelp.visible = false;
uh.menuhero.herostat.popuphelp.x = 3000;
} else {
uh.menuhero.herostat.popuphelp.y = 20;
};
if ((((skillselect == 2)) && ((((((((mouseX < 454)) || ((mouseX > 481)))) || ((mouseY < 300)))) || ((mouseY > 341)))))){
uh.menuhero.herostat.popuphelp.visible = false;
uh.menuhero.herostat.popuphelp.x = 3000;
} else {
uh.menuhero.herostat.popuphelp.y = 20;
};
if ((((skillselect == 3)) && ((((((((mouseX < 554)) || ((mouseX > 569)))) || ((mouseY < 300)))) || ((mouseY > 341)))))){
uh.menuhero.herostat.popuphelp.visible = false;
uh.menuhero.herostat.popuphelp.x = 3000;
} else {
uh.menuhero.herostat.popuphelp.y = 20;
};
}
public function updatemenuitem(){
if (jmlitemhold[0] < 0){
jmlitemhold[0] = 0;
};
if (jmlitemhold[1] < 0){
jmlitemhold[0] = 0;
};
if (jmlitemhold[2] < 0){
jmlitemhold[0] = 0;
};
if (jmlitem[0] < 0){
jmlitem[0] = 0;
};
if (jmlitem[1] < 0){
jmlitem[1] = 0;
};
if (jmlitem[2] < 0){
jmlitem[2] = 0;
};
if (jmlitem[3] < 0){
jmlitem[3] = 0;
};
if (jmlitem[4] < 0){
jmlitem[4] = 0;
};
if (jmlitem[5] < 0){
jmlitem[5] = 0;
};
uh.menuhero.itemstat.moneytext.text = String(gold);
if (jmlitem[0] != 0){
uh.menuhero.itemstat.add1.visible = true;
uh.menuhero.itemstat.numitem1.visible = true;
if (itemhold[0] == 1){
uh.menuhero.itemstat.numitem1.text = String((jmlitem[0] - jmlitemhold[0]));
} else {
if (itemhold[1] == 1){
uh.menuhero.itemstat.numitem1.text = String((jmlitem[0] - jmlitemhold[1]));
} else {
if (itemhold[2] == 1){
uh.menuhero.itemstat.numitem1.text = String((jmlitem[0] - jmlitemhold[2]));
} else {
uh.menuhero.itemstat.numitem1.text = String(jmlitem[0]);
};
};
};
if (uh.menuhero.itemstat.numitem1.text == "0"){
uh.menuhero.itemstat.add1.visible = false;
} else {
uh.menuhero.itemstat.add1.visible = true;
};
} else {
uh.menuhero.itemstat.numitem1.visible = false;
uh.menuhero.itemstat.add1.visible = false;
};
if (jmlitem[1] != 0){
uh.menuhero.itemstat.add2.visible = true;
uh.menuhero.itemstat.numitem2.visible = true;
if (itemhold[0] == 2){
uh.menuhero.itemstat.numitem2.text = String((jmlitem[1] - jmlitemhold[0]));
} else {
if (itemhold[1] == 2){
uh.menuhero.itemstat.numitem2.text = String((jmlitem[1] - jmlitemhold[1]));
} else {
if (itemhold[2] == 2){
uh.menuhero.itemstat.numitem2.text = String((jmlitem[1] - jmlitemhold[2]));
} else {
uh.menuhero.itemstat.numitem2.text = String(jmlitem[1]);
};
};
};
if (uh.menuhero.itemstat.numitem2.text == "0"){
uh.menuhero.itemstat.add2.visible = false;
} else {
uh.menuhero.itemstat.add2.visible = true;
};
} else {
uh.menuhero.itemstat.numitem2.visible = false;
uh.menuhero.itemstat.add2.visible = false;
};
if (jmlitem[2] != 0){
uh.menuhero.itemstat.numitem3.visible = true;
uh.menuhero.itemstat.add3.visible = true;
if (itemhold[0] == 3){
uh.menuhero.itemstat.numitem3.text = String((jmlitem[2] - jmlitemhold[0]));
} else {
if (itemhold[1] == 3){
uh.menuhero.itemstat.numitem3.text = String((jmlitem[2] - jmlitemhold[1]));
} else {
if (itemhold[2] == 3){
uh.menuhero.itemstat.numitem3.text = String((jmlitem[2] - jmlitemhold[2]));
} else {
uh.menuhero.itemstat.numitem3.text = String(jmlitem[2]);
};
};
};
if (uh.menuhero.itemstat.numitem3.text == "0"){
uh.menuhero.itemstat.add3.visible = false;
} else {
uh.menuhero.itemstat.add3.visible = true;
};
} else {
uh.menuhero.itemstat.numitem3.visible = false;
uh.menuhero.itemstat.add3.visible = false;
};
if (jmlitem[3] != 0){
uh.menuhero.itemstat.numitem4.visible = true;
uh.menuhero.itemstat.add4.visible = true;
if (itemhold[0] == 4){
uh.menuhero.itemstat.numitem4.text = String((jmlitem[3] - jmlitemhold[0]));
} else {
if (itemhold[1] == 4){
uh.menuhero.itemstat.numitem4.text = String((jmlitem[3] - jmlitemhold[1]));
} else {
if (itemhold[2] == 4){
uh.menuhero.itemstat.numitem4.text = String((jmlitem[3] - jmlitemhold[2]));
} else {
uh.menuhero.itemstat.numitem4.text = String(jmlitem[3]);
};
};
};
if (uh.menuhero.itemstat.numitem4.text == "0"){
uh.menuhero.itemstat.add4.visible = false;
} else {
uh.menuhero.itemstat.add4.visible = true;
};
} else {
uh.menuhero.itemstat.numitem4.visible = false;
uh.menuhero.itemstat.add4.visible = false;
};
if (jmlitem[4] != 0){
uh.menuhero.itemstat.numitem5.visible = true;
uh.menuhero.itemstat.add5.visible = true;
if (itemhold[0] == 5){
uh.menuhero.itemstat.numitem5.text = String((jmlitem[4] - jmlitemhold[0]));
} else {
if (itemhold[1] == 5){
uh.menuhero.itemstat.numitem5.text = String((jmlitem[4] - jmlitemhold[1]));
} else {
if (itemhold[2] == 5){
uh.menuhero.itemstat.numitem5.text = String((jmlitem[4] - jmlitemhold[2]));
} else {
uh.menuhero.itemstat.numitem5.text = String(jmlitem[4]);
};
};
};
if (uh.menuhero.itemstat.numitem5.text == "0"){
uh.menuhero.itemstat.add5.visible = false;
} else {
uh.menuhero.itemstat.add5.visible = true;
};
} else {
uh.menuhero.itemstat.numitem5.visible = false;
uh.menuhero.itemstat.add5.visible = false;
};
if (jmlitem[5] != 0){
uh.menuhero.itemstat.numitem6.visible = true;
uh.menuhero.itemstat.add6.visible = true;
if (itemhold[0] == 6){
uh.menuhero.itemstat.numitem6.text = String((jmlitem[5] - jmlitemhold[0]));
} else {
if (itemhold[1] == 6){
uh.menuhero.itemstat.numitem6.text = String((jmlitem[5] - jmlitemhold[1]));
} else {
if (itemhold[2] == 6){
uh.menuhero.itemstat.numitem6.text = String((jmlitem[5] - jmlitemhold[2]));
} else {
uh.menuhero.itemstat.numitem6.text = String(jmlitem[5]);
};
};
};
if (uh.menuhero.itemstat.numitem6.text == "0"){
uh.menuhero.itemstat.add6.visible = false;
} else {
uh.menuhero.itemstat.add6.visible = true;
};
} else {
uh.menuhero.itemstat.numitem6.visible = false;
uh.menuhero.itemstat.add6.visible = false;
};
if (jmlitemhold[0] != 0){
uh.menuhero.itemstat.numheld1.visible = true;
uh.menuhero.itemstat.close1.visible = true;
uh.menuhero.itemstat.numheld1.text = String(jmlitemhold[0]);
} else {
uh.menuhero.itemstat.numheld1.visible = false;
uh.menuhero.itemstat.close1.visible = false;
};
if (jmlitemhold[1] != 0){
uh.menuhero.itemstat.numheld2.visible = true;
uh.menuhero.itemstat.close2.visible = true;
uh.menuhero.itemstat.numheld2.text = String(jmlitemhold[1]);
} else {
uh.menuhero.itemstat.numheld2.visible = false;
uh.menuhero.itemstat.close2.visible = false;
};
if (jmlitemhold[2] != 0){
uh.menuhero.itemstat.numheld3.visible = true;
uh.menuhero.itemstat.close3.visible = true;
uh.menuhero.itemstat.numheld3.text = String(jmlitemhold[2]);
} else {
uh.menuhero.itemstat.numheld3.visible = false;
uh.menuhero.itemstat.close3.visible = false;
};
uh.menuhero.itemstat.held1.jenisheld.gotoAndStop(itemhold[0]);
uh.menuhero.itemstat.held2.jenisheld.gotoAndStop(itemhold[1]);
uh.menuhero.itemstat.held3.jenisheld.gotoAndStop(itemhold[2]);
}
public function skilladd(_arg1:MouseEvent):void{
if ((((skillpointheros[menuheroselect] > 0)) && ((lah[menuheroselect][skillselect] < 4)))){
if (mute != 1){
sechannel = perbaiki.play();
};
skillpointheros[menuheroselect] = (skillpointheros[menuheroselect] - 1);
if (skillselect == 0){
lah[menuheroselect][0] = (lah[menuheroselect][0] + 1);
};
if (skillselect == 1){
lah[menuheroselect][1] = (lah[menuheroselect][1] + 1);
};
if (skillselect == 2){
lah[menuheroselect][2] = (lah[menuheroselect][2] + 1);
};
if (skillselect == 3){
lah[menuheroselect][3] = (lah[menuheroselect][3] + 1);
};
updatepp();
};
}
public function backmap(_arg1:MouseEvent):void{
menumode = 3;
uh.menuhero.gotoAndStop(30);
menufocus = 0;
savegame();
uh.geges.visible = false;
uh.glowy.x = 95.25;
uh.glowy.y = 202.85;
nagaduwek.visible = false;
sapiduwek.visible = false;
}
public function acon(_arg1){
if ((((uh.menuhero.currentFrame == 10)) && ((menumode == 2)))){
uh.menuhero.gotoAndStop(10);
canclickmenu = 1;
};
if ((((uh.menuhero.currentFrame == 20)) && ((menumode == 1)))){
uh.menuhero.gotoAndStop(20);
canclickmenu = 1;
};
if (menumode == 1){
uh.menuhero.herostat.h2.geges.mouseEnabled = false;
uh.menuhero.herostat.h3.geges.mouseEnabled = false;
uh.menuhero.herostat.h4.geges.mouseEnabled = false;
if (validuse < 2){
uh.menuhero.herostat.h2.geges.visible = true;
} else {
uh.menuhero.herostat.h2.geges.visible = false;
};
if (validuse < 3){
uh.menuhero.herostat.h3.geges.visible = true;
} else {
uh.menuhero.herostat.h3.geges.visible = false;
};
if (validuse < 4){
uh.menuhero.herostat.h4.geges.visible = true;
} else {
uh.menuhero.herostat.h4.geges.visible = false;
};
uh.menuhero.herostat.picts.warnings.visible = false;
if (menuheroselect == 0){
uh.menuhero.herostat.picts.gotoAndStop(1);
uh.menuhero.herostat.namahero.text = "Maruru";
uh.menuhero.herostat.p1.gotoAndStop(1);
uh.menuhero.herostat.p2.gotoAndStop(1);
uh.menuhero.herostat.p3.gotoAndStop(1);
uh.menuhero.herostat.p4.gotoAndStop(1);
uh.menuhero.herostat.h1.gotoAndStop(2);
uh.menuhero.herostat.h2.gotoAndStop(1);
uh.menuhero.herostat.h3.gotoAndStop(1);
uh.menuhero.herostat.h4.gotoAndStop(1);
};
if ((((menuheroselect == 1)) && ((validuse >= 2)))){
uh.menuhero.herostat.picts.gotoAndStop(2);
uh.menuhero.herostat.namahero.text = "Glupug";
uh.menuhero.herostat.p1.gotoAndStop(2);
uh.menuhero.herostat.p2.gotoAndStop(2);
uh.menuhero.herostat.p3.gotoAndStop(2);
uh.menuhero.herostat.p4.gotoAndStop(2);
uh.menuhero.herostat.h1.gotoAndStop(1);
uh.menuhero.herostat.h2.gotoAndStop(2);
uh.menuhero.herostat.h3.gotoAndStop(1);
uh.menuhero.herostat.h4.gotoAndStop(1);
};
if ((((menuheroselect == 2)) && ((validuse >= 3)))){
uh.menuhero.herostat.picts.gotoAndStop(3);
uh.menuhero.herostat.namahero.text = "Munyi";
uh.menuhero.herostat.p1.gotoAndStop(3);
uh.menuhero.herostat.p2.gotoAndStop(3);
uh.menuhero.herostat.p3.gotoAndStop(3);
uh.menuhero.herostat.p4.gotoAndStop(3);
uh.menuhero.herostat.h1.gotoAndStop(1);
uh.menuhero.herostat.h2.gotoAndStop(1);
uh.menuhero.herostat.h3.gotoAndStop(2);
uh.menuhero.herostat.h4.gotoAndStop(1);
};
if ((((menuheroselect == 3)) && ((validuse >= 4)))){
uh.menuhero.herostat.picts.gotoAndStop(4);
uh.menuhero.herostat.namahero.text = "Zoya";
uh.menuhero.herostat.p1.gotoAndStop(4);
uh.menuhero.herostat.p2.gotoAndStop(4);
uh.menuhero.herostat.p3.gotoAndStop(4);
uh.menuhero.herostat.p4.gotoAndStop(4);
uh.menuhero.herostat.h1.gotoAndStop(1);
uh.menuhero.herostat.h2.gotoAndStop(1);
uh.menuhero.herostat.h3.gotoAndStop(1);
uh.menuhero.herostat.h4.gotoAndStop(2);
};
uh.menuhero.herostat.merah.width = ((171 * expheros[menuheroselect]) / maxexpheros[menuheroselect]);
uh.menuhero.herostat.levelhero.text = String(levelheros[menuheroselect]);
if (levelheros[menuheroselect] < 16){
uh.menuhero.herostat.exphero.text = ((String(expheros[menuheroselect]) + " / ") + String(maxexpheros[menuheroselect]));
} else {
if (levelheros[menuheroselect] == 16){
uh.menuhero.herostat.exphero.text = "MAX";
};
};
uh.menuhero.herostat.skillpointhero.text = String(skillpointheros[menuheroselect]);
countherocompletition();
uh.menuhero.herostat.hijau1.height = ((67 * completeheros[0]) / 100);
uh.menuhero.herostat.hijau2.height = ((67 * completeheros[1]) / 100);
uh.menuhero.herostat.hijau3.height = ((67 * completeheros[2]) / 100);
uh.menuhero.herostat.hijau4.height = ((67 * completeheros[3]) / 100);
if ((((lah[menuheroselect][0] < 4)) && ((skillpointheros[menuheroselect] > 0)))){
uh.menuhero.herostat.pp.x = -43;
uh.menuhero.herostat.pp.y = 150;
uh.menuhero.herostat.pp.gotoAndStop(1);
uh.menuhero.herostat.pp.visible = true;
uh.menuhero.herostat.pp.visible = true;
} else {
if ((((lah[menuheroselect][0] < 4)) && ((skillpointheros[menuheroselect] <= 0)))){
uh.menuhero.herostat.pp.x = -43;
uh.menuhero.herostat.pp.y = 150;
uh.menuhero.herostat.pp.gotoAndStop(2);
uh.menuhero.herostat.pp.visible = true;
uh.menuhero.herostat.pp.visible = true;
} else {
if (lah[menuheroselect][0] >= 4){
uh.menuhero.herostat.pp.visible = false;
};
};
};
if ((((lah[menuheroselect][1] < 4)) && ((skillpointheros[menuheroselect] > 0)))){
uh.menuhero.herostat.pp1.x = 53;
uh.menuhero.herostat.pp1.y = 150;
uh.menuhero.herostat.pp1.gotoAndStop(1);
uh.menuhero.herostat.pp1.visible = true;
uh.menuhero.herostat.pp1.visible = true;
} else {
if ((((lah[menuheroselect][1] < 4)) && ((skillpointheros[menuheroselect] <= 0)))){
uh.menuhero.herostat.pp1.x = 53;
uh.menuhero.herostat.pp1.y = 150;
uh.menuhero.herostat.pp1.gotoAndStop(2);
uh.menuhero.herostat.pp1.visible = true;
uh.menuhero.herostat.pp1.visible = true;
} else {
if (lah[menuheroselect][1] >= 4){
uh.menuhero.herostat.pp1.visible = false;
};
};
};
if ((((lah[menuheroselect][2] < 4)) && ((skillpointheros[menuheroselect] > 0)))){
uh.menuhero.herostat.pp2.x = 150;
uh.menuhero.herostat.pp2.y = 150;
uh.menuhero.herostat.pp2.gotoAndStop(1);
uh.menuhero.herostat.pp2.visible = true;
uh.menuhero.herostat.pp2.visible = true;
} else {
if ((((lah[menuheroselect][2] < 4)) && ((skillpointheros[menuheroselect] <= 0)))){
uh.menuhero.herostat.pp2.x = 150;
uh.menuhero.herostat.pp2.y = 150;
uh.menuhero.herostat.pp2.gotoAndStop(2);
uh.menuhero.herostat.pp2.visible = true;
uh.menuhero.herostat.pp2.visible = true;
} else {
if (lah[menuheroselect][2] >= 4){
uh.menuhero.herostat.pp2.visible = false;
};
};
};
if ((((lah[menuheroselect][3] < 4)) && ((skillpointheros[menuheroselect] > 0)))){
uh.menuhero.herostat.pp3.x = 246;
uh.menuhero.herostat.pp3.y = 149;
uh.menuhero.herostat.pp3.gotoAndStop(1);
uh.menuhero.herostat.pp3.visible = true;
uh.menuhero.herostat.pp3.visible = true;
} else {
if ((((lah[menuheroselect][3] < 4)) && ((skillpointheros[menuheroselect] <= 0)))){
uh.menuhero.herostat.pp3.x = 246;
uh.menuhero.herostat.pp3.y = 149;
uh.menuhero.herostat.pp3.gotoAndStop(2);
uh.menuhero.herostat.pp3.visible = true;
uh.menuhero.herostat.pp3.visible = true;
} else {
if (lah[menuheroselect][3] >= 4){
uh.menuhero.herostat.pp3.visible = false;
};
};
};
updatemenuitem();
uh.menuhero.itemstat.numitem1.mouseEnabled = false;
uh.menuhero.itemstat.numitem2.mouseEnabled = false;
uh.menuhero.itemstat.numitem3.mouseEnabled = false;
uh.menuhero.itemstat.numitem4.mouseEnabled = false;
uh.menuhero.itemstat.numitem5.mouseEnabled = false;
uh.menuhero.itemstat.numitem6.mouseEnabled = false;
uh.menuhero.itemstat.numheld1.mouseEnabled = false;
uh.menuhero.itemstat.numheld2.mouseEnabled = false;
uh.menuhero.itemstat.numheld3.mouseEnabled = false;
};
}
public function showhero1(_arg1:MouseEvent):void{
menuheroselect = 0;
currentmodepeluru = 1;
}
public function showhero2(_arg1:MouseEvent):void{
if (validuse > 1){
menuheroselect = 1;
currentmodepeluru = 2;
};
}
public function showhero3(_arg1:MouseEvent):void{
if (validuse > 2){
menuheroselect = 2;
currentmodepeluru = 3;
};
}
public function showhero4(_arg1:MouseEvent):void{
if (validuse > 3){
menuheroselect = 3;
currentmodepeluru = 4;
};
}
public function showherostat(_arg1:MouseEvent):void{
uh.geges.visible = true;
if (mute != 1){
sechannel = gantis.play();
};
if (menumode == 3){
uh.menuhero.gotoAndStop(1);
};
if (menumode == 2){
uh.menuhero.gotoAndPlay(10);
};
if (menuheroselect == 0){
uh.menuhero.herostat.picts.gotoAndStop(1);
uh.menuhero.herostat.namahero.text = "Maruru";
};
if (menuheroselect == 1){
uh.menuhero.herostat.picts.gotoAndStop(2);
uh.menuhero.herostat.namahero.text = "Glupug";
};
if (menuheroselect == 2){
uh.menuhero.herostat.picts.gotoAndStop(3);
uh.menuhero.herostat.namahero.text = "Munyi";
};
if (menuheroselect == 3){
uh.menuhero.herostat.picts.gotoAndStop(4);
uh.menuhero.herostat.namahero.text = "MUNYI";
};
uh.menuhero.herostat.merah.width = ((171 * expheros[menuheroselect]) / maxexpheros[menuheroselect]);
uh.menuhero.herostat.levelhero.text = ("Level= " + String(levelheros[menuheroselect]));
if (levelheros[menuheroselect] < 16){
uh.menuhero.herostat.exphero.text = ((String(expheros[menuheroselect]) + " / ") + String(maxexpheros[menuheroselect]));
} else {
if (levelheros[menuheroselect] == 16){
uh.menuhero.herostat.exphero.text = "LEVEL MAX";
};
};
uh.menuhero.herostat.skillpointhero.text = ("Skill Point= " + String(skillpointheros[menuheroselect]));
uh.menuhero.herostat.popuphelp.visible = false;
uh.menuhero.herostat.pp.visible = false;
menumode = 1;
menufocus = 1;
canclickmenu = 0;
uh.glowy.x = -63.7;
uh.glowy.y = 202.85;
somethingsup = 0;
uh.menuhero.herostat.popuphelp.desc.visible = false;
introgg = 1;
}
public function showstore(_arg1:MouseEvent):void{
uh.geges.visible = true;
if (menumode == 1){
uh.menuhero.gotoAndPlay(1);
};
if (menumode == 3){
uh.menuhero.gotoAndStop(10);
};
if (mute != 1){
sechannel = gantis.play();
};
updatemenuitem();
uh.menuhero.itemstat.pop1.visible = false;
uh.menuhero.itemstat.pop2.visible = false;
uh.menuhero.itemstat.buttonbuy.visible = false;
menumode = 2;
menufocus = 1;
canclickmenu = 0;
introgg = 1;
uh.glowy.x = -225.7;
uh.glowy.y = 202.85;
uh.menuhero.itemstat.pop2.descs.visible = false;
}
public function c(_arg1){
if (switchmap == 0){
if (so.size > 0){
menumap.y = ymap;
};
menumap.mlvl1.addEventListener(MouseEvent.MOUSE_DOWN, menulvl1);
menumap.mlvl2.addEventListener(MouseEvent.MOUSE_DOWN, menulvl2);
menumap.mlvl3.addEventListener(MouseEvent.MOUSE_DOWN, menulvl3);
menumap.mlvl4.addEventListener(MouseEvent.MOUSE_DOWN, menulvl4);
menumap.mlvl5.addEventListener(MouseEvent.MOUSE_DOWN, menulvl5);
menumap.mlvl6.addEventListener(MouseEvent.MOUSE_DOWN, menulvl6);
menumap.mlvl7.addEventListener(MouseEvent.MOUSE_DOWN, menulvl7);
menumap.mlvl8.addEventListener(MouseEvent.MOUSE_DOWN, menulvl8);
menumap.mlvl9.addEventListener(MouseEvent.MOUSE_DOWN, menulvl9);
menumap.mlvl10.addEventListener(MouseEvent.MOUSE_DOWN, menulvl10);
menumap.mlvl11.addEventListener(MouseEvent.MOUSE_DOWN, menulvl11);
menumap.mlvl12.addEventListener(MouseEvent.MOUSE_DOWN, menulvl12);
mychannel4.stop();
mychannel5.stop();
menumap2.x = 4000;
menumap2.y = 4000;
addChild(menumap2);
menumap2.gotoAndStop(1);
uh.x = 318;
uh.y = 241;
sapiduwek.x = 484;
sapiduwek.y = 326;
sapiduwek.scaleX = 0.7;
sapiduwek.scaleY = 0.7;
sapiduwek.visible = false;
nagaduwek.x = 540;
nagaduwek.y = 324;
nagaduwek.scaleX = 0.7;
nagaduwek.scaleY = 0.7;
nagaduwek.visible = false;
showsomething.x = 372;
showsomething.y = 444;
showsomething.scaleX = 0.3;
showsomething.scaleY = 0.3;
if (playending == 0){
addChild(uh);
addChild(showsomething);
addChild(sapiduwek);
addChild(nagaduwek);
if (mute != 1){
mytransform3.volume = 1;
} else {
mytransform3.volume = 0;
};
mychannel3 = bgmmap1.play(0, 9999);
mychannel3.soundTransform = mytransform3;
};
uh.addEventListener(Event.ENTER_FRAME, acon);
uh.heros.addEventListener(MouseEvent.CLICK, showherostat);
uh.stores.addEventListener(MouseEvent.CLICK, showstore);
uh.maps.addEventListener(MouseEvent.CLICK, backmap);
uh.menuhero.herostat.h1.addEventListener(MouseEvent.CLICK, showhero1);
uh.menuhero.herostat.h2.addEventListener(MouseEvent.CLICK, showhero2);
uh.menuhero.herostat.h3.addEventListener(MouseEvent.CLICK, showhero3);
uh.menuhero.herostat.h4.addEventListener(MouseEvent.CLICK, showhero4);
uh.menuhero.herostat.pp.addEventListener(MouseEvent.CLICK, skilladd);
uh.menuhero.herostat.pp1.addEventListener(MouseEvent.CLICK, skilladd);
uh.menuhero.herostat.pp2.addEventListener(MouseEvent.CLICK, skilladd);
uh.menuhero.herostat.pp3.addEventListener(MouseEvent.CLICK, skilladd);
uh.menuhero.herostat.p1.addEventListener(MouseEvent.MOUSE_OVER, showpp1);
uh.menuhero.herostat.p1.addEventListener(MouseEvent.MOUSE_OUT, removepp);
uh.menuhero.herostat.p2.addEventListener(MouseEvent.MOUSE_OVER, showpp2);
uh.menuhero.herostat.p2.addEventListener(MouseEvent.MOUSE_OUT, removepp);
uh.menuhero.herostat.p3.addEventListener(MouseEvent.MOUSE_OVER, showpp3);
uh.menuhero.herostat.p3.addEventListener(MouseEvent.MOUSE_OUT, removepp);
uh.menuhero.herostat.p4.addEventListener(MouseEvent.MOUSE_OVER, showpp4);
uh.menuhero.herostat.p4.addEventListener(MouseEvent.MOUSE_OUT, removepp);
uh.menuhero.itemstat.whp.addEventListener(MouseEvent.MOUSE_OVER, wallhp);
uh.menuhero.itemstat.wdefs.addEventListener(MouseEvent.MOUSE_OVER, walldef);
uh.menuhero.itemstat.whp.addEventListener(MouseEvent.MOUSE_OUT, removetips);
uh.menuhero.itemstat.wdefs.addEventListener(MouseEvent.MOUSE_OUT, removetips);
uh.menuhero.itemstat.i1.addEventListener(MouseEvent.MOUSE_OVER, show1);
uh.menuhero.itemstat.i1.addEventListener(MouseEvent.MOUSE_OUT, removetips);
uh.menuhero.itemstat.i2.addEventListener(MouseEvent.MOUSE_OVER, show2);
uh.menuhero.itemstat.i2.addEventListener(MouseEvent.MOUSE_OUT, removetips);
uh.menuhero.itemstat.i3.addEventListener(MouseEvent.MOUSE_OVER, show3);
uh.menuhero.itemstat.i3.addEventListener(MouseEvent.MOUSE_OUT, removetips);
uh.menuhero.itemstat.i4.addEventListener(MouseEvent.MOUSE_OVER, show4);
uh.menuhero.itemstat.i4.addEventListener(MouseEvent.MOUSE_OUT, removetips);
uh.menuhero.itemstat.i5.addEventListener(MouseEvent.MOUSE_OVER, show5);
uh.menuhero.itemstat.i5.addEventListener(MouseEvent.MOUSE_OUT, removetips);
uh.menuhero.itemstat.i6.addEventListener(MouseEvent.MOUSE_OVER, show6);
uh.menuhero.itemstat.i6.addEventListener(MouseEvent.MOUSE_OUT, removetips);
uh.menuhero.itemstat.i1.addEventListener(MouseEvent.MOUSE_DOWN, drag1);
uh.menuhero.itemstat.i2.addEventListener(MouseEvent.MOUSE_DOWN, drag1);
uh.menuhero.itemstat.i3.addEventListener(MouseEvent.MOUSE_DOWN, drag1);
uh.menuhero.itemstat.i4.addEventListener(MouseEvent.MOUSE_DOWN, drag1);
uh.menuhero.itemstat.i5.addEventListener(MouseEvent.MOUSE_DOWN, drag1);
uh.menuhero.itemstat.i6.addEventListener(MouseEvent.MOUSE_DOWN, drag1);
uh.menuhero.itemstat.held1.addEventListener(MouseEvent.MOUSE_UP, drop1);
uh.menuhero.itemstat.held2.addEventListener(MouseEvent.MOUSE_UP, drop1);
uh.menuhero.itemstat.held3.addEventListener(MouseEvent.MOUSE_UP, drop1);
stage.addEventListener(MouseEvent.MOUSE_UP, drop1);
uh.menuhero.itemstat.held1.addEventListener(MouseEvent.MOUSE_OVER, showhold1);
uh.menuhero.itemstat.held2.addEventListener(MouseEvent.MOUSE_OVER, showhold2);
uh.menuhero.itemstat.held3.addEventListener(MouseEvent.MOUSE_OVER, showhold3);
uh.menuhero.itemstat.held1.addEventListener(MouseEvent.MOUSE_OUT, notoverbutton);
uh.menuhero.itemstat.held2.addEventListener(MouseEvent.MOUSE_OUT, notoverbutton);
uh.menuhero.itemstat.held3.addEventListener(MouseEvent.MOUSE_OUT, notoverbutton);
uh.menuhero.itemstat.buttonbuy.addEventListener(MouseEvent.CLICK, buy);
uh.menuhero.itemstat.buttonbuy.addEventListener(MouseEvent.MOUSE_OVER, overbutton);
uh.menuhero.itemstat.buttonbuy.addEventListener(MouseEvent.MOUSE_OUT, notoverbutton);
uh.menuhero.itemstat.add1.addEventListener(MouseEvent.CLICK, adding1);
uh.menuhero.itemstat.add2.addEventListener(MouseEvent.CLICK, adding2);
uh.menuhero.itemstat.add3.addEventListener(MouseEvent.CLICK, adding3);
uh.menuhero.itemstat.add4.addEventListener(MouseEvent.CLICK, adding4);
uh.menuhero.itemstat.add5.addEventListener(MouseEvent.CLICK, adding5);
uh.menuhero.itemstat.add6.addEventListener(MouseEvent.CLICK, adding6);
uh.menuhero.itemstat.close1.addEventListener(MouseEvent.CLICK, closing1);
uh.menuhero.itemstat.close2.addEventListener(MouseEvent.CLICK, closing2);
uh.menuhero.itemstat.close3.addEventListener(MouseEvent.CLICK, closing3);
uh.menuhero.gotoAndStop(30);
uh.geges.visible = false;
uh.glowy.x = 95.25;
uh.glowy.y = 202.85;
sapiduwek.addEventListener(MouseEvent.CLICK, sapigotoweb);
nagaduwek.addEventListener(MouseEvent.CLICK, nagagotoweb);
movearrowgerak.x = 4000;
movearrowgerak.y = 4000;
addChild(movearrowgerak);
unlockhero.x = 320;
unlockhero.y = 200;
addChild(unlockhero);
unlockhero.visible = false;
unlockhero.gotoAndStop(1);
menumap.botak1.visible = false;
menumap.botak2.visible = false;
menumap.botak3.visible = false;
menumap.botak4.visible = false;
menumap.botak5.visible = false;
menumap.botak6.visible = false;
menumap.botak7.visible = false;
menumap.botak8.visible = false;
menumap.botak9.visible = false;
menumap.botak10.visible = false;
menumap.botak11.visible = false;
menumap.botak12.visible = false;
menumap.lvltxt1.mouseEnabled = false;
menumap.lvltxt2.mouseEnabled = false;
menumap.lvltxt3.mouseEnabled = false;
menumap.lvltxt4.mouseEnabled = false;
menumap.lvltxt5.mouseEnabled = false;
menumap.lvltxt6.mouseEnabled = false;
menumap.lvltxt7.mouseEnabled = false;
menumap.lvltxt8.mouseEnabled = false;
menumap.lvltxt9.mouseEnabled = false;
menumap.lvltxt10.mouseEnabled = false;
menumap.lvltxt11.mouseEnabled = false;
menumap.lvltxt12.mouseEnabled = false;
if (levelcomplete[1][0] == 0){
menumap.mlvl2.visible = false;
menumap.lvltxt2.visible = false;
};
if (levelcomplete[2][0] == 0){
menumap.mlvl3.visible = false;
menumap.lvltxt3.visible = false;
};
if (levelcomplete[3][0] == 0){
menumap.mlvl4.visible = false;
menumap.lvltxt4.visible = false;
};
if (levelcomplete[4][0] == 0){
menumap.mlvl5.visible = false;
menumap.lvltxt5.visible = false;
};
if (levelcomplete[5][0] == 0){
menumap.mlvl6.visible = false;
menumap.lvltxt6.visible = false;
};
if (levelcomplete[6][0] == 0){
menumap.mlvl7.visible = false;
menumap.lvltxt7.visible = false;
};
if (levelcomplete[7][0] == 0){
menumap.mlvl8.visible = false;
menumap.lvltxt8.visible = false;
};
if (levelcomplete[8][0] == 0){
menumap.mlvl9.visible = false;
menumap.lvltxt9.visible = false;
};
if (levelcomplete[9][0] == 0){
menumap.mlvl10.visible = false;
menumap.lvltxt10.visible = false;
};
if (levelcomplete[10][0] == 0){
menumap.mlvl11.visible = false;
menumap.lvltxt11.visible = false;
};
if (levelcomplete[11][0] == 0){
menumap.mlvl12.visible = false;
menumap.lvltxt12.visible = false;
};
movearrowgerak.addEventListener(MouseEvent.CLICK, removearrow);
menumap2.summary.cb.addEventListener(MouseEvent.CLICK, cbs);
menumap2.summary.sb.addEventListener(MouseEvent.CLICK, sbs);
menumap2.summary.select1.addEventListener(MouseEvent.CLICK, selectr1);
menumap2.summary.select2.addEventListener(MouseEvent.CLICK, selectr2);
menumap2.summary.select3.addEventListener(MouseEvent.CLICK, selectr3);
menumap2.summary.rightbutton.addEventListener(MouseEvent.CLICK, righty);
menumap2.summary.leftbutton.addEventListener(MouseEvent.CLICK, lefty);
menumap2.summary.sb.addEventListener(MouseEvent.CLICK, removemenu);
if ((((((levelcomplete[0][0] >= 1)) && ((levelcomplete[0][1] >= 1)))) && ((((levelcomplete[0][2] >= 1)) && ((levelcomplete[1][0] >= 1)))))){
menumap.mlvl1.gotoAndStop(2);
} else {
menumap.mlvl1.gotoAndStop(1);
};
if ((((((levelcomplete[1][0] >= 1)) && ((levelcomplete[1][1] >= 1)))) && ((((levelcomplete[1][2] >= 1)) && ((levelcomplete[2][0] >= 1)))))){
menumap.mlvl2.gotoAndStop(2);
} else {
menumap.mlvl2.gotoAndStop(1);
};
if ((((((levelcomplete[2][0] >= 1)) && ((levelcomplete[2][1] >= 1)))) && ((((levelcomplete[2][2] >= 1)) && ((levelcomplete[3][0] >= 1)))))){
menumap.mlvl3.gotoAndStop(2);
} else {
menumap.mlvl3.gotoAndStop(1);
};
if ((((((levelcomplete[3][0] >= 1)) && ((levelcomplete[3][1] >= 1)))) && ((((levelcomplete[3][2] >= 1)) && ((levelcomplete[4][0] >= 1)))))){
menumap.mlvl4.gotoAndStop(2);
} else {
menumap.mlvl4.gotoAndStop(1);
};
if ((((((levelcomplete[4][0] >= 1)) && ((levelcomplete[4][1] >= 1)))) && ((((levelcomplete[4][2] >= 1)) && ((levelcomplete[5][0] >= 1)))))){
menumap.mlvl5.gotoAndStop(2);
} else {
menumap.mlvl5.gotoAndStop(1);
};
if ((((((levelcomplete[5][0] >= 1)) && ((levelcomplete[5][1] >= 1)))) && ((((levelcomplete[5][2] >= 1)) && ((levelcomplete[6][0] >= 1)))))){
menumap.mlvl6.gotoAndStop(2);
} else {
menumap.mlvl6.gotoAndStop(1);
};
if ((((((levelcomplete[6][0] >= 1)) && ((levelcomplete[6][1] >= 1)))) && ((((levelcomplete[6][2] >= 1)) && ((levelcomplete[7][0] >= 1)))))){
menumap.mlvl7.gotoAndStop(2);
} else {
menumap.mlvl7.gotoAndStop(1);
};
if ((((((levelcomplete[7][0] >= 1)) && ((levelcomplete[7][1] >= 1)))) && ((((levelcomplete[7][2] >= 1)) && ((levelcomplete[8][0] >= 1)))))){
menumap.mlvl8.gotoAndStop(2);
} else {
menumap.mlvl8.gotoAndStop(1);
};
if ((((((levelcomplete[8][0] >= 1)) && ((levelcomplete[8][1] >= 1)))) && ((((levelcomplete[8][2] >= 1)) && ((levelcomplete[9][0] >= 1)))))){
menumap.mlvl9.gotoAndStop(2);
} else {
menumap.mlvl9.gotoAndStop(1);
};
if ((((((levelcomplete[9][0] >= 1)) && ((levelcomplete[9][1] >= 1)))) && ((((levelcomplete[9][2] >= 1)) && ((levelcomplete[10][0] >= 1)))))){
menumap.mlvl10.gotoAndStop(2);
} else {
menumap.mlvl10.gotoAndStop(1);
};
if ((((((levelcomplete[10][0] >= 1)) && ((levelcomplete[10][1] >= 1)))) && ((((levelcomplete[10][2] >= 1)) && ((levelcomplete[11][0] >= 1)))))){
menumap.mlvl11.gotoAndStop(2);
} else {
menumap.mlvl11.gotoAndStop(1);
};
if ((((((((levelcomplete[11][0] >= 1)) && ((levelcomplete[11][1] >= 1)))) && ((levelcomplete[11][2] >= 1)))) && ((achievementmeter[66] == 1)))){
menumap.mlvl12.gotoAndStop(2);
} else {
menumap.mlvl12.gotoAndStop(1);
};
switchmap = 1;
};
if (onworldmap == 0){
waktuworldmap = (waktuworldmap + 1);
if ((((waktuworldmap == 1375)) && ((playending == 1)))){
addChild(uh);
addChild(sapiduwek);
addChild(nagaduwek);
addChild(showsomething);
mychannel4.stop();
if (mute != 1){
mytransform3.volume = 1;
} else {
mytransform3.volume = 0;
};
mychannel3 = bgmmap1.play(0, 9999);
mychannel3.soundTransform = mytransform3;
playending = 0;
};
if (waktuworldmap == 1){
if ((((playopenstage == 19)) && ((so.size <= 0)))){
menumap.botak1.visible = true;
menumap.botak1.gotoAndStop(1);
};
if (playopenstage == 1){
menumap.botak2.visible = true;
menumap.botak2.gotoAndStop(1);
};
if (playopenstage == 2){
menumap.botak3.visible = true;
menumap.botak3.gotoAndStop(1);
};
if (playopenstage == 3){
menumap.botak4.visible = true;
menumap.botak4.gotoAndStop(1);
};
if (playopenstage == 4){
menumap.botak5.visible = true;
menumap.botak5.gotoAndStop(1);
};
if (playopenstage == 5){
menumap.botak6.visible = true;
menumap.botak6.gotoAndStop(1);
};
if (playopenstage == 6){
menumap.botak7.visible = true;
menumap.botak7.gotoAndStop(1);
};
if (playopenstage == 7){
menumap.botak8.visible = true;
menumap.botak8.gotoAndStop(1);
};
if (playopenstage == 8){
menumap.botak9.visible = true;
menumap.botak9.gotoAndStop(1);
};
if (playopenstage == 9){
menumap.botak10.visible = true;
menumap.botak10.gotoAndStop(1);
};
if (playopenstage == 10){
menumap.botak11.visible = true;
menumap.botak11.gotoAndStop(1);
};
if (playopenstage == 11){
menumap.botak12.visible = true;
menumap.botak12.gotoAndStop(1);
};
};
if (waktuworldmap == 10){
if ((((playopenstage == 19)) && ((so.size <= 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak1.visible = true;
menumap.botak1.gotoAndPlay(1);
};
if ((((playopenstage == 1)) && ((progressbarmeter[1][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak2.visible = true;
menumap.botak2.gotoAndPlay(1);
};
if ((((playopenstage == 2)) && ((progressbarmeter[2][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak3.visible = true;
menumap.botak3.gotoAndPlay(1);
};
if ((((playopenstage == 3)) && ((progressbarmeter[3][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak4.visible = true;
menumap.botak4.gotoAndPlay(1);
};
if ((((playopenstage == 4)) && ((progressbarmeter[4][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak5.visible = true;
menumap.botak5.gotoAndPlay(1);
};
if ((((playopenstage == 5)) && ((progressbarmeter[5][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak6.visible = true;
menumap.botak6.gotoAndPlay(1);
};
if ((((playopenstage == 6)) && ((progressbarmeter[6][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak7.visible = true;
menumap.botak7.gotoAndPlay(1);
};
if ((((playopenstage == 7)) && ((progressbarmeter[7][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak8.visible = true;
menumap.botak8.gotoAndPlay(1);
};
if ((((playopenstage == 8)) && ((progressbarmeter[8][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak9.visible = true;
menumap.botak9.gotoAndPlay(1);
};
if ((((playopenstage == 9)) && ((progressbarmeter[9][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak10.visible = true;
menumap.botak10.gotoAndPlay(1);
};
if ((((playopenstage == 10)) && ((progressbarmeter[10][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak11.visible = true;
menumap.botak11.gotoAndPlay(1);
};
if ((((playopenstage == 11)) && ((progressbarmeter[11][0] == 0)))){
playopenstage = 0;
sublevels = 0;
menumap.botak12.visible = true;
menumap.botak12.gotoAndPlay(1);
};
};
if (ggstate == 0){
if (levelcomplete[11][0] == 1){
menumap.lvltxt12.y = (menumap.lvltxt12.y + ggmove);
} else {
if (levelcomplete[10][0] == 1){
menumap.lvltxt11.y = (menumap.lvltxt11.y + ggmove);
} else {
if (levelcomplete[9][0] == 1){
menumap.lvltxt10.y = (menumap.lvltxt10.y + ggmove);
} else {
if (levelcomplete[8][0] == 1){
menumap.lvltxt9.y = (menumap.lvltxt9.y + ggmove);
} else {
if (levelcomplete[7][0] == 1){
menumap.lvltxt8.y = (menumap.lvltxt8.y + ggmove);
} else {
if (levelcomplete[6][0] == 1){
menumap.lvltxt7.y = (menumap.lvltxt7.y + ggmove);
} else {
if (levelcomplete[5][0] == 1){
menumap.lvltxt6.y = (menumap.lvltxt6.y + ggmove);
} else {
if (levelcomplete[4][0] == 1){
menumap.lvltxt5.y = (menumap.lvltxt5.y + ggmove);
} else {
if (levelcomplete[3][0] == 1){
menumap.lvltxt4.y = (menumap.lvltxt4.y + ggmove);
} else {
if (levelcomplete[2][0] == 1){
menumap.lvltxt3.y = (menumap.lvltxt3.y + ggmove);
} else {
if (levelcomplete[1][0] == 1){
menumap.lvltxt2.y = (menumap.lvltxt2.y + ggmove);
} else {
if (levelcomplete[0][0] == 1){
menumap.lvltxt1.y = (menumap.lvltxt1.y + ggmove);
};
};
};
};
};
};
};
};
};
};
};
};
ggmove = (ggmove + 0.1);
};
if ((((ggstate == 0)) && ((ggmove >= 1)))){
ggstate = 1;
};
if (ggstate == 1){
if (levelcomplete[11][0] == 1){
menumap.lvltxt12.y = (menumap.lvltxt12.y + ggmove);
} else {
if (levelcomplete[10][0] == 1){
menumap.lvltxt11.y = (menumap.lvltxt11.y + ggmove);
} else {
if (levelcomplete[9][0] == 1){
menumap.lvltxt10.y = (menumap.lvltxt10.y + ggmove);
} else {
if (levelcomplete[8][0] == 1){
menumap.lvltxt9.y = (menumap.lvltxt9.y + ggmove);
} else {
if (levelcomplete[7][0] == 1){
menumap.lvltxt8.y = (menumap.lvltxt8.y + ggmove);
} else {
if (levelcomplete[6][0] == 1){
menumap.lvltxt7.y = (menumap.lvltxt7.y + ggmove);
} else {
if (levelcomplete[5][0] == 1){
menumap.lvltxt6.y = (menumap.lvltxt6.y + ggmove);
} else {
if (levelcomplete[4][0] == 1){
menumap.lvltxt5.y = (menumap.lvltxt5.y + ggmove);
} else {
if (levelcomplete[3][0] == 1){
menumap.lvltxt4.y = (menumap.lvltxt4.y + ggmove);
} else {
if (levelcomplete[2][0] == 1){
menumap.lvltxt3.y = (menumap.lvltxt3.y + ggmove);
} else {
if (levelcomplete[1][0] == 1){
menumap.lvltxt2.y = (menumap.lvltxt2.y + ggmove);
} else {
if (levelcomplete[0][0] == 1){
menumap.lvltxt1.y = (menumap.lvltxt1.y + ggmove);
};
};
};
};
};
};
};
};
};
};
};
};
ggmove = (ggmove - 0.1);
};
if ((((ggstate == 1)) && ((ggmove <= -1)))){
ggstate = 0;
};
if (introgg > 0){
introgg = (introgg + 1);
nagaduwek.visible = false;
sapiduwek.visible = false;
};
if ((((introgg == 10)) && ((menumode == 2)))){
introgg = 0;
nagaduwek.visible = true;
sapiduwek.visible = true;
} else {
if (introgg == 10){
introgg = 0;
};
};
if (menufocus == 0){
if ((((((mouseY > 420)) && ((menumap.y > 158.7)))) && ((playending == 0)))){
menumap.y = (menumap.y - 40);
if (menumap.y <= 158.7){
menumap.y = 158.7;
};
movearrowgerak.scaleY = -1;
movearrowgerak.x = 300;
movearrowgerak.y = 390;
lagigerak = 1;
lp.visible = false;
lp.x = 4400;
ymap = menumap.y;
} else {
if ((((((mouseY > 420)) && ((menumap.y <= 158.7)))) && ((playending == 0)))){
movearrowgerak.x = 4000;
lagigerak = 0;
lp.visible = true;
ymap = menumap.y;
};
};
if ((((((mouseY < 30)) && ((menumap.y < 318.7)))) && ((playending == 0)))){
menumap.y = (menumap.y + 40);
if (menumap.y >= 318.7){
menumap.y = 318.7;
};
movearrowgerak.scaleY = 1;
movearrowgerak.x = 300;
movearrowgerak.y = 32;
lagigerak = 2;
lp.visible = false;
lp.x = 4400;
ymap = menumap.y;
} else {
if ((((((mouseY < 30)) && ((menumap.y >= 318.7)))) && ((playending == 0)))){
movearrowgerak.x = 4000;
lagigerak = 0;
lp.visible = true;
ymap = menumap.y;
};
};
if ((((((mouseY <= 450)) && ((mouseY >= 30)))) && ((playending == 0)))){
movearrowgerak.x = 4000;
lp.visible = true;
};
};
if (menumap2.currentFrame == 5){
menumap2.gotoAndStop(6);
};
if ((((clickstart == 1)) && ((steinsgatetimer == 14)))){
if (currentmodepeluru <= validuse){
menumap2.x = 4000;
menumap2.y = 4000;
menumap2.visible = false;
clickstart = 0;
level = map;
onworldmap = 1;
gameinit = 0;
deletemenu = 0;
menufocus = 0;
gotoAndStop(4);
};
};
if (somethingsup == 0){
showsomething.visible = false;
} else {
if (somethingsup == 1){
showsomething.visible = true;
};
};
if (playherounlocked == 0){
unlockhero.visible = false;
} else {
if ((((playherounlocked == 1)) && ((wesjalan == 0)))){
unlockhero.visible = true;
unlockhero.gotoAndPlay(1);
unlockhero.mc1.gotoAndStop(2);
unlockhero.mc2.gegehhhhh.text = "GLUPLUG";
wesjalan = 1;
} else {
if ((((playherounlocked == 2)) && ((wesjalan == 0)))){
unlockhero.visible = true;
unlockhero.gotoAndPlay(1);
unlockhero.mc1.gotoAndStop(3);
unlockhero.mc2.gegehhhhh.text = "MUNYI";
wesjalan = 1;
} else {
if ((((playherounlocked == 3)) && ((wesjalan == 0)))){
unlockhero.visible = true;
unlockhero.gotoAndPlay(1);
unlockhero.mc1.gotoAndStop(4);
unlockhero.mc2.gegehhhhh.text = "ZOYA";
wesjalan = 1;
};
};
};
};
if ((((unlockhero.currentFrame == 50)) || ((unlockhero.currentFrame == 61)))){
if (playherounlocked == 1){
unlockhero.mc2.gegehhhhh.text = "GLUPLUG";
};
if (playherounlocked == 2){
unlockhero.mc2.gegehhhhh.text = "MUNYI";
};
if (playherounlocked == 3){
unlockhero.mc2.gegehhhhh.text = "ZOYA";
};
if (playherounlocked == 4){
unlockhero.mc2.gegehhhhh.text = "MARURU";
};
};
if (unlockhero.currentFrame == 69){
unlockhero.gotoAndStop(70);
unlockhero.okiedokie.addEventListener(MouseEvent.MOUSE_DOWN, quitunlock);
if (playherounlocked == 1){
unlockhero.mc2.gegehhhhh.text = "GLUPLUG";
};
if (playherounlocked == 2){
unlockhero.mc2.gegehhhhh.text = "MUNYI";
};
if (playherounlocked == 3){
unlockhero.mc2.gegehhhhh.text = "ZOYA";
};
if (playherounlocked == 4){
unlockhero.mc2.gegehhhhh.text = "MARURU";
};
};
};
}
public function closing1(_arg1:MouseEvent):void{
itemhold[0] = 7;
jmlitemhold[0] = 0;
updatemenuitem();
}
public function closing2(_arg1:MouseEvent):void{
itemhold[1] = 7;
jmlitemhold[1] = 0;
updatemenuitem();
}
public function closing3(_arg1:MouseEvent):void{
itemhold[2] = 7;
jmlitemhold[2] = 0;
updatemenuitem();
}
public function adding1(_arg1:MouseEvent):void{
if ((((itemhold[0] == 7)) && (((((!((itemhold[0] == 1))) && (!((itemhold[1] == 1))))) && (!((itemhold[2] == 1))))))){
itemhold[0] = 1;
jmlitemhold[0] = jmlitem[0];
if (jmlitem[0] >= 9){
jmlitemhold[0] = 9;
gg1();
};
} else {
if ((((itemhold[1] == 7)) && (((((!((itemhold[0] == 1))) && (!((itemhold[1] == 1))))) && (!((itemhold[2] == 1))))))){
itemhold[1] = 1;
jmlitemhold[1] = jmlitem[0];
if (jmlitem[0] >= 9){
jmlitemhold[1] = 9;
gg1();
};
} else {
if ((((itemhold[2] == 7)) && (((((!((itemhold[0] == 1))) && (!((itemhold[1] == 1))))) && (!((itemhold[2] == 1))))))){
itemhold[2] = 1;
jmlitemhold[2] = jmlitem[0];
if (jmlitem[0] >= 9){
jmlitemhold[2] = 9;
gg1();
};
} else {
if (itemhold[0] == 1){
jmlitemhold[0] = jmlitem[0];
if (jmlitem[0] >= 9){
jmlitemhold[0] = 9;
gg1();
};
} else {
if (itemhold[1] == 1){
jmlitemhold[1] = jmlitem[0];
if (jmlitem[0] >= 9){
jmlitemhold[1] = 9;
gg1();
};
} else {
if (itemhold[2] == 1){
jmlitemhold[2] = jmlitem[0];
if (jmlitem[0] >= 9){
jmlitemhold[2] = 9;
gg1();
};
} else {
gg1();
};
};
};
};
};
};
updatemenuitem();
}
public function gg1(){
var _local1:*;
var _local2:Point;
_local1 = new itemmax();
_local2 = uh.menuhero.itemstat.add1.localToGlobal(new Point());
_local1.x = _local2.x;
_local1.y = _local2.y;
addChild(_local1);
}
public function adding2(_arg1:MouseEvent):void{
if ((((itemhold[0] == 7)) && (((((!((itemhold[0] == 2))) && (!((itemhold[1] == 2))))) && (!((itemhold[2] == 2))))))){
itemhold[0] = 2;
jmlitemhold[0] = jmlitem[1];
if (jmlitem[1] >= 9){
jmlitemhold[0] = 9;
gg2();
};
} else {
if ((((itemhold[1] == 7)) && (((((!((itemhold[0] == 2))) && (!((itemhold[1] == 2))))) && (!((itemhold[2] == 2))))))){
itemhold[1] = 2;
jmlitemhold[1] = jmlitem[1];
if (jmlitem[1] >= 9){
jmlitemhold[1] = 9;
gg2();
};
} else {
if ((((itemhold[2] == 7)) && (((((!((itemhold[0] == 2))) && (!((itemhold[1] == 2))))) && (!((itemhold[2] == 2))))))){
itemhold[2] = 2;
jmlitemhold[2] = jmlitem[1];
if (jmlitem[1] >= 9){
jmlitemhold[2] = 9;
gg2();
};
} else {
if (itemhold[0] == 2){
jmlitemhold[0] = jmlitem[1];
if (jmlitem[1] >= 9){
jmlitemhold[0] = 9;
gg2();
};
} else {
if (itemhold[1] == 2){
jmlitemhold[1] = jmlitem[1];
if (jmlitem[1] >= 9){
jmlitemhold[1] = 9;
gg2();
};
} else {
if (itemhold[2] == 2){
jmlitemhold[2] = jmlitem[1];
if (jmlitem[1] >= 9){
jmlitemhold[2] = 9;
gg2();
};
} else {
gg2();
};
};
};
};
};
};
updatemenuitem();
}
public function gg2(){
var _local1:*;
var _local2:Point;
_local1 = new itemmax();
_local2 = uh.menuhero.itemstat.add2.localToGlobal(new Point());
_local1.x = _local2.x;
_local1.y = _local2.y;
addChild(_local1);
}
public function adding3(_arg1:MouseEvent):void{
if ((((itemhold[0] == 7)) && (((((!((itemhold[0] == 3))) && (!((itemhold[1] == 3))))) && (!((itemhold[2] == 3))))))){
itemhold[0] = 3;
jmlitemhold[0] = jmlitem[2];
if (jmlitem[2] >= 9){
jmlitemhold[0] = 9;
gg3();
};
} else {
if ((((itemhold[1] == 7)) && (((((!((itemhold[0] == 3))) && (!((itemhold[1] == 3))))) && (!((itemhold[2] == 3))))))){
itemhold[1] = 3;
jmlitemhold[1] = jmlitem[2];
if (jmlitem[2] >= 9){
jmlitemhold[1] = 9;
gg3();
};
} else {
if ((((itemhold[2] == 7)) && (((((!((itemhold[0] == 3))) && (!((itemhold[1] == 3))))) && (!((itemhold[2] == 3))))))){
itemhold[2] = 3;
jmlitemhold[2] = jmlitem[2];
if (jmlitem[2] >= 9){
jmlitemhold[2] = 9;
gg3();
};
} else {
if (itemhold[0] == 3){
jmlitemhold[0] = jmlitem[2];
if (jmlitem[2] >= 9){
jmlitemhold[0] = 9;
gg3();
};
} else {
if (itemhold[1] == 3){
jmlitemhold[1] = jmlitem[2];
if (jmlitem[2] >= 9){
jmlitemhold[1] = 9;
gg3();
};
} else {
if (itemhold[2] == 3){
jmlitemhold[2] = jmlitem[2];
if (jmlitem[2] >= 9){
jmlitemhold[2] = 9;
gg3();
};
} else {
gg3();
};
};
};
};
};
};
updatemenuitem();
}
public function gg3(){
var _local1:*;
var _local2:Point;
_local1 = new itemmax();
_local2 = uh.menuhero.itemstat.add3.localToGlobal(new Point());
_local1.x = _local2.x;
_local1.y = _local2.y;
addChild(_local1);
}
public function adding4(_arg1:MouseEvent):void{
if ((((itemhold[0] == 7)) && (((((!((itemhold[0] == 4))) && (!((itemhold[1] == 4))))) && (!((itemhold[2] == 4))))))){
itemhold[0] = 4;
jmlitemhold[0] = jmlitem[3];
if (jmlitem[3] >= 9){
jmlitemhold[0] = 9;
gg4();
};
} else {
if ((((itemhold[1] == 7)) && (((((!((itemhold[0] == 4))) && (!((itemhold[1] == 4))))) && (!((itemhold[2] == 4))))))){
itemhold[1] = 4;
jmlitemhold[1] = jmlitem[3];
if (jmlitem[3] >= 9){
jmlitemhold[1] = 9;
gg4();
};
} else {
if ((((itemhold[2] == 7)) && (((((!((itemhold[0] == 4))) && (!((itemhold[1] == 4))))) && (!((itemhold[2] == 4))))))){
itemhold[2] = 4;
jmlitemhold[2] = jmlitem[3];
if (jmlitem[3] >= 9){
jmlitemhold[2] = 9;
gg4();
};
} else {
if (itemhold[0] == 4){
jmlitemhold[0] = jmlitem[3];
if (jmlitem[3] >= 9){
jmlitemhold[0] = 9;
gg4();
};
} else {
if (itemhold[1] == 4){
jmlitemhold[1] = jmlitem[3];
if (jmlitem[3] >= 9){
jmlitemhold[1] = 9;
gg4();
};
} else {
if (itemhold[2] == 4){
jmlitemhold[2] = jmlitem[3];
if (jmlitem[3] >= 9){
jmlitemhold[2] = 9;
gg4();
};
} else {
gg4();
};
};
};
};
};
};
updatemenuitem();
}
public function gg4(){
var _local1:*;
var _local2:Point;
_local1 = new itemmax();
_local2 = uh.menuhero.itemstat.add4.localToGlobal(new Point());
_local1.x = _local2.x;
_local1.y = _local2.y;
addChild(_local1);
}
public function adding5(_arg1:MouseEvent):void{
if ((((itemhold[0] == 7)) && (((((!((itemhold[0] == 5))) && (!((itemhold[1] == 5))))) && (!((itemhold[2] == 5))))))){
itemhold[0] = 5;
jmlitemhold[0] = jmlitem[4];
if (jmlitem[4] >= 9){
jmlitemhold[0] = 9;
gg5();
};
} else {
if ((((itemhold[1] == 7)) && (((((!((itemhold[0] == 5))) && (!((itemhold[1] == 5))))) && (!((itemhold[2] == 5))))))){
itemhold[1] = 5;
jmlitemhold[1] = jmlitem[4];
if (jmlitem[4] >= 9){
jmlitemhold[1] = 9;
gg5();
};
} else {
if ((((itemhold[2] == 7)) && (((((!((itemhold[0] == 5))) && (!((itemhold[1] == 5))))) && (!((itemhold[2] == 5))))))){
itemhold[2] = 5;
jmlitemhold[2] = jmlitem[4];
if (jmlitem[4] >= 9){
jmlitemhold[2] = 9;
gg5();
};
} else {
if (itemhold[0] == 5){
jmlitemhold[0] = jmlitem[4];
if (jmlitem[4] >= 9){
jmlitemhold[0] = 9;
gg5();
};
} else {
if (itemhold[1] == 5){
jmlitemhold[1] = jmlitem[4];
if (jmlitem[4] >= 9){
jmlitemhold[1] = 9;
gg5();
};
} else {
if (itemhold[2] == 5){
jmlitemhold[2] = jmlitem[4];
if (jmlitem[4] >= 9){
jmlitemhold[2] = 9;
gg5();
};
} else {
gg5();
};
};
};
};
};
};
updatemenuitem();
}
public function gg5(){
var _local1:*;
var _local2:Point;
_local1 = new itemmax();
_local2 = uh.menuhero.itemstat.add5.localToGlobal(new Point());
_local1.x = _local2.x;
_local1.y = _local2.y;
addChild(_local1);
}
public function adding6(_arg1:MouseEvent):void{
if ((((itemhold[0] == 7)) && (((((!((itemhold[0] == 6))) && (!((itemhold[1] == 6))))) && (!((itemhold[2] == 6))))))){
itemhold[0] = 6;
jmlitemhold[0] = jmlitem[5];
if (jmlitem[5] >= 9){
jmlitemhold[0] = 9;
gg6();
};
} else {
if ((((itemhold[1] == 7)) && (((((!((itemhold[0] == 6))) && (!((itemhold[1] == 6))))) && (!((itemhold[2] == 6))))))){
itemhold[1] = 6;
jmlitemhold[1] = jmlitem[5];
if (jmlitem[5] >= 9){
jmlitemhold[1] = 9;
gg6();
};
} else {
if ((((itemhold[2] == 7)) && (((((!((itemhold[0] == 6))) && (!((itemhold[1] == 6))))) && (!((itemhold[2] == 6))))))){
itemhold[2] = 6;
jmlitemhold[2] = jmlitem[5];
if (jmlitem[5] >= 9){
jmlitemhold[2] = 9;
gg6();
};
} else {
if (itemhold[0] == 6){
jmlitemhold[0] = jmlitem[5];
if (jmlitem[5] >= 9){
jmlitemhold[0] = 9;
gg6();
};
} else {
if (itemhold[1] == 6){
jmlitemhold[1] = jmlitem[5];
if (jmlitem[5] >= 9){
jmlitemhold[1] = 9;
gg6();
};
} else {
if (itemhold[2] == 6){
jmlitemhold[2] = jmlitem[5];
if (jmlitem[5] >= 9){
jmlitemhold[2] = 9;
gg6();
};
} else {
gg6();
};
};
};
};
};
};
updatemenuitem();
}
public function gg6(){
var _local1:*;
var _local2:Point;
_local1 = new itemmax();
_local2 = uh.menuhero.itemstat.add6.localToGlobal(new Point());
_local1.x = _local2.x;
_local1.y = _local2.y;
addChild(_local1);
}
public function righty(_arg1:MouseEvent):void{
if (mute != 1){
sechannel = iyas.play();
};
currentmodepeluru = (currentmodepeluru + 1);
if (currentmodepeluru > 4){
currentmodepeluru = 1;
};
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menuheroselect = (currentmodepeluru - 1);
}
public function lefty(_arg1:MouseEvent):void{
if (mute != 1){
sechannel = iyas.play();
};
currentmodepeluru = (currentmodepeluru - 1);
if (currentmodepeluru < 1){
currentmodepeluru = 4;
};
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menuheroselect = (currentmodepeluru - 1);
}
public function menulvl1(_arg1:MouseEvent):void{
if (menufocus == 0){
if (mute != 1){
sechannel = botaktolol.play();
};
map = 1;
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "NO BONUS MISSION";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = false;
menumap2.summary.checkbox1.gotoAndStop(1);
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "NONE";
menumap2.summary.bonus2.visible = false;
menumap2.summary.checkbox2.visible = false;
menumap2.summary.checkbox2.gotoAndStop(1);
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "NO BONUS MISSION";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = false;
menumap2.summary.checkbox3.gotoAndStop(1);
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "NONE";
menumap2.summary.bonus4.visible = false;
menumap2.summary.checkbox4.visible = false;
menumap2.summary.checkbox4.gotoAndStop(1);
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "NO BONUS MISSION";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = false;
menumap2.summary.checkbox5.gotoAndStop(1);
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "NONE";
menumap2.summary.bonus6.visible = false;
menumap2.summary.checkbox6.visible = false;
menumap2.summary.checkbox6.gotoAndStop(1);
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
};
}
public function menulvl2(_arg1:MouseEvent):void{
if (menufocus == 0){
if (mute != 1){
sechannel = botaktolol.play();
};
map = 2;
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "MINIMUM HERO HP 40%";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[0] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "NONE";
menumap2.summary.bonus2.visible = false;
menumap2.summary.checkbox2.visible = false;
menumap2.summary.checkbox2.gotoAndStop(1);
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "MINIMUM HERO HP 60%";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[1] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "NONE";
menumap2.summary.bonus4.visible = false;
menumap2.summary.checkbox4.visible = false;
menumap2.summary.checkbox4.gotoAndStop(1);
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "MINIMUM HERO HP 80%";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[2] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "NONE";
menumap2.summary.bonus6.visible = false;
menumap2.summary.checkbox6.visible = false;
menumap2.summary.checkbox6.gotoAndStop(1);
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
};
}
public function menulvl3(_arg1:MouseEvent):void{
if (menufocus == 0){
if (mute != 1){
sechannel = botaktolol.play();
};
map = 3;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "MINIMUM WALL HP 40%";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[3] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "NONE";
menumap2.summary.bonus2.visible = false;
menumap2.summary.checkbox2.visible = false;
menumap2.summary.checkbox2.gotoAndStop(1);
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "MINIMUM WALL HP 60%";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[4] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "NONE";
menumap2.summary.bonus4.visible = false;
menumap2.summary.checkbox4.visible = false;
menumap2.summary.checkbox4.gotoAndStop(1);
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "MINIMUM WALL HP 80%";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[5] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "NONE";
menumap2.summary.bonus6.visible = false;
menumap2.summary.checkbox6.visible = false;
menumap2.summary.checkbox6.gotoAndStop(1);
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
};
}
public function menulvl4(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if ((((menufocus == 0)) && ((warningpot == 0)))){
if (warningpot2 == 1){
warningpot = 1;
};
if (mute != 1){
sechannel = botaktolol.play();
};
map = 4;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "USE FLASH GRENADE 1 TIMES";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[6] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "NONE";
menumap2.summary.bonus2.visible = false;
menumap2.summary.checkbox2.visible = false;
menumap2.summary.checkbox2.gotoAndStop(1);
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "USE STUN GRENADE 1 TIMES";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[7] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "NONE";
menumap2.summary.bonus4.visible = false;
menumap2.summary.checkbox4.visible = false;
menumap2.summary.checkbox4.gotoAndStop(1);
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "USE AIR STRIKE 1 TIMES";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[8] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "NONE";
menumap2.summary.bonus6.visible = false;
menumap2.summary.checkbox6.visible = false;
menumap2.summary.checkbox6.gotoAndStop(1);
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
} else {
if ((((warningpot == 1)) && ((hacked == 0)))){
_local2 = new betamon();
_local2.x = 300;
_local2.y = 200;
addChild(_local2);
} else {
if ((((warningpot == 1)) && ((hacked == 1)))){
_local3 = Math.floor(((Math.random() * 10) + 1));
if (_local3 < 4){
_local4 = new betamon();
_local4.x = 300;
_local4.y = 200;
addChild(_local4);
} else {
warningpot = 0;
};
};
};
};
}
public function menulvl5(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if ((((menufocus == 0)) && ((warningpot == 0)))){
if (warningpot2 == 1){
warningpot = 1;
};
if (mute != 1){
sechannel = botaktolol.play();
};
map = 5;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "USE GLUPUG";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[9] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "NONE";
menumap2.summary.bonus2.visible = false;
menumap2.summary.checkbox2.visible = false;
menumap2.summary.checkbox2.gotoAndStop(1);
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "USE GLUPUG";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[10] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "MINIMUM WALL HP 60%";
menumap2.summary.bonus4.visible = true;
menumap2.summary.checkbox4.visible = true;
if (achievementmeter[11] == 1){
menumap2.summary.checkbox4.gotoAndStop(2);
} else {
menumap2.summary.checkbox4.gotoAndStop(1);
};
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "USE GLUPUG";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[12] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "USE STUN GRENADE 2 TIMES";
menumap2.summary.bonus6.visible = true;
menumap2.summary.checkbox6.visible = true;
if (achievementmeter[13] == 1){
menumap2.summary.checkbox6.gotoAndStop(2);
} else {
menumap2.summary.checkbox6.gotoAndStop(1);
};
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
} else {
if ((((warningpot == 1)) && ((hacked == 0)))){
_local2 = new betamon();
_local2.x = 300;
_local2.y = 200;
addChild(_local2);
} else {
if ((((warningpot == 1)) && ((hacked == 1)))){
_local3 = Math.floor(((Math.random() * 10) + 1));
if (_local3 < 4){
_local4 = new betamon();
_local4.x = 300;
_local4.y = 200;
addChild(_local4);
} else {
warningpot = 0;
};
};
};
};
}
public function menulvl6(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if ((((menufocus == 0)) && ((warningpot == 0)))){
if (warningpot2 == 1){
warningpot = 1;
};
if (mute != 1){
sechannel = botaktolol.play();
};
map = 6;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "KILL 2 PARASITE";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[14] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "USE MARURU";
menumap2.summary.bonus2.visible = true;
menumap2.summary.checkbox2.visible = true;
if (achievementmeter[15] == 1){
menumap2.summary.checkbox2.gotoAndStop(2);
} else {
menumap2.summary.checkbox2.gotoAndStop(1);
};
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "KILL 5 PARASITE";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[16] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "USE FLASH GRENADE 2 TIMES";
menumap2.summary.bonus4.visible = true;
menumap2.summary.checkbox4.visible = true;
if (achievementmeter[17] == 1){
menumap2.summary.checkbox4.gotoAndStop(2);
} else {
menumap2.summary.checkbox4.gotoAndStop(1);
};
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "USE AIR STRIKE 1 TIMES";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[18] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "USE CONSTRUCT DRONE 1 TIMES";
menumap2.summary.bonus6.visible = true;
menumap2.summary.checkbox6.visible = true;
if (achievementmeter[19] == 1){
menumap2.summary.checkbox6.gotoAndStop(2);
} else {
menumap2.summary.checkbox6.gotoAndStop(1);
};
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
} else {
if ((((warningpot == 1)) && ((hacked == 0)))){
_local2 = new betamon();
_local2.x = 300;
_local2.y = 200;
addChild(_local2);
} else {
if ((((warningpot == 1)) && ((hacked == 1)))){
_local3 = Math.floor(((Math.random() * 10) + 1));
if (_local3 < 4){
_local4 = new betamon();
_local4.x = 300;
_local4.y = 200;
addChild(_local4);
} else {
warningpot = 0;
};
};
};
};
}
public function menulvl7(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if ((((menufocus == 0)) && ((warningpot == 0)))){
if (warningpot2 == 1){
warningpot = 1;
};
if (mute != 1){
sechannel = botaktolol.play();
};
map = 7;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "MINIMUM HERO HP 80%";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[20] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "USE MUNYI";
menumap2.summary.bonus2.visible = true;
menumap2.summary.checkbox2.visible = true;
if (achievementmeter[21] == 1){
menumap2.summary.checkbox2.gotoAndStop(2);
} else {
menumap2.summary.checkbox2.gotoAndStop(1);
};
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "USE 2 AIR STRIKE";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[22] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "USE MUNYI";
menumap2.summary.bonus4.visible = true;
menumap2.summary.checkbox4.visible = true;
if (achievementmeter[23] == 1){
menumap2.summary.checkbox4.gotoAndStop(2);
} else {
menumap2.summary.checkbox4.gotoAndStop(1);
};
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "USE 1 TINY POTION";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[24] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "USE MUNYI";
menumap2.summary.bonus6.visible = true;
menumap2.summary.checkbox6.visible = true;
if (achievementmeter[25] == 1){
menumap2.summary.checkbox6.gotoAndStop(2);
} else {
menumap2.summary.checkbox6.gotoAndStop(1);
};
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
} else {
if ((((warningpot == 1)) && ((hacked == 0)))){
_local2 = new betamon();
_local2.x = 300;
_local2.y = 200;
addChild(_local2);
} else {
if ((((warningpot == 1)) && ((hacked == 1)))){
_local3 = Math.floor(((Math.random() * 10) + 1));
if (_local3 < 4){
_local4 = new betamon();
_local4.x = 300;
_local4.y = 200;
addChild(_local4);
} else {
warningpot = 0;
};
};
};
};
}
public function menulvl8(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if ((((menufocus == 0)) && ((warningpot == 0)))){
if (warningpot2 == 1){
warningpot = 1;
};
if (mute != 1){
sechannel = botaktolol.play();
};
map = 8;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "USE 1 STRIKE DRONE";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[26] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "USE MARURU";
menumap2.summary.bonus2.visible = true;
menumap2.summary.checkbox2.visible = true;
if (achievementmeter[27] == 1){
menumap2.summary.checkbox2.gotoAndStop(2);
} else {
menumap2.summary.checkbox2.gotoAndStop(1);
};
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "USE 3 FLASH GRENADE";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[28] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "USE MARURU";
menumap2.summary.bonus4.visible = true;
menumap2.summary.checkbox4.visible = true;
if (achievementmeter[29] == 1){
menumap2.summary.checkbox4.gotoAndStop(2);
} else {
menumap2.summary.checkbox4.gotoAndStop(1);
};
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "MINIMUM HERO HP 60%";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[30] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "USE MARURU";
menumap2.summary.bonus6.visible = true;
menumap2.summary.checkbox6.visible = true;
if (achievementmeter[31] == 1){
menumap2.summary.checkbox6.gotoAndStop(2);
} else {
menumap2.summary.checkbox6.gotoAndStop(1);
};
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
} else {
if ((((warningpot == 1)) && ((hacked == 0)))){
_local2 = new betamon();
_local2.x = 300;
_local2.y = 200;
addChild(_local2);
} else {
if ((((warningpot == 1)) && ((hacked == 1)))){
_local3 = Math.floor(((Math.random() * 10) + 1));
if (_local3 < 4){
_local4 = new betamon();
_local4.x = 300;
_local4.y = 200;
addChild(_local4);
} else {
warningpot = 0;
};
};
};
};
}
public function menulvl9(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if ((((menufocus == 0)) && ((warningpot == 0)))){
if (warningpot2 == 1){
warningpot = 1;
};
if (mute != 1){
sechannel = botaktolol.play();
};
map = 9;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "MINIMUM HERO HP 60%";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[32] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "USE GLUPUG";
menumap2.summary.bonus2.visible = true;
menumap2.summary.checkbox2.visible = true;
if (achievementmeter[33] == 1){
menumap2.summary.checkbox2.gotoAndStop(2);
} else {
menumap2.summary.checkbox2.gotoAndStop(1);
};
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "MINIMUM HERO HP 80%";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[34] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "USE MARURU";
menumap2.summary.bonus4.visible = true;
menumap2.summary.checkbox4.visible = true;
if (achievementmeter[35] == 1){
menumap2.summary.checkbox4.gotoAndStop(2);
} else {
menumap2.summary.checkbox4.gotoAndStop(1);
};
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "MINIMUM HERO HP 40%";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[36] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "USE MUNYI";
menumap2.summary.bonus6.visible = true;
menumap2.summary.checkbox6.visible = true;
if (achievementmeter[37] == 1){
menumap2.summary.checkbox6.gotoAndStop(2);
} else {
menumap2.summary.checkbox6.gotoAndStop(1);
};
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
} else {
if ((((warningpot == 1)) && ((hacked == 0)))){
_local2 = new betamon();
_local2.x = 300;
_local2.y = 200;
addChild(_local2);
} else {
if ((((warningpot == 1)) && ((hacked == 1)))){
_local3 = Math.floor(((Math.random() * 10) + 1));
if (_local3 < 4){
_local4 = new betamon();
_local4.x = 300;
_local4.y = 200;
addChild(_local4);
} else {
warningpot = 0;
};
};
};
};
}
public function menulvl10(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if ((((menufocus == 0)) && ((warningpot == 0)))){
if (warningpot2 == 1){
warningpot = 1;
};
if (mute != 1){
sechannel = botaktolol.play();
};
map = 10;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "SAVE 2 CIVILIANS";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[38] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "USE 2 TINY POTION";
menumap2.summary.bonus2.visible = true;
menumap2.summary.checkbox2.visible = true;
if (achievementmeter[39] == 1){
menumap2.summary.checkbox2.gotoAndStop(2);
} else {
menumap2.summary.checkbox2.gotoAndStop(1);
};
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "USE ZOYA";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[40] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "MINIMUM HERO HP 60%";
menumap2.summary.bonus4.visible = true;
menumap2.summary.checkbox4.visible = true;
if (achievementmeter[41] == 1){
menumap2.summary.checkbox4.gotoAndStop(2);
} else {
menumap2.summary.checkbox4.gotoAndStop(1);
};
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "USE 1 TINY POTION";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[42] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "SAVE 2 CIVILIANS";
menumap2.summary.bonus6.visible = true;
menumap2.summary.checkbox6.visible = true;
if (achievementmeter[43] == 1){
menumap2.summary.checkbox6.gotoAndStop(2);
} else {
menumap2.summary.checkbox6.gotoAndStop(1);
};
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
} else {
if ((((warningpot == 1)) && ((hacked == 0)))){
_local2 = new betamon();
_local2.x = 300;
_local2.y = 200;
addChild(_local2);
} else {
if ((((warningpot == 1)) && ((hacked == 1)))){
_local3 = Math.floor(((Math.random() * 10) + 1));
if (_local3 < 4){
_local4 = new betamon();
_local4.x = 300;
_local4.y = 200;
addChild(_local4);
} else {
warningpot = 0;
};
};
};
};
}
public function menulvl11(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if ((((menufocus == 0)) && ((warningpot == 0)))){
if (warningpot2 == 1){
warningpot = 1;
};
if (mute != 1){
sechannel = botaktolol.play();
};
map = 11;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "SAVE 3 CIVILIANS";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[44] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "USE GLUPLUG";
menumap2.summary.bonus2.visible = true;
menumap2.summary.checkbox2.visible = true;
if (achievementmeter[45] == 1){
menumap2.summary.checkbox2.gotoAndStop(2);
} else {
menumap2.summary.checkbox2.gotoAndStop(1);
};
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "USE 3 STUN GRENADE";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[46] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "MINIMUM WALL HP 60%";
menumap2.summary.bonus4.visible = true;
menumap2.summary.checkbox4.visible = true;
if (achievementmeter[47] == 1){
menumap2.summary.checkbox4.gotoAndStop(2);
} else {
menumap2.summary.checkbox4.gotoAndStop(1);
};
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "KILL 6 VOLCANO GIANT";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[48] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "USE MUNYI";
menumap2.summary.bonus6.visible = true;
menumap2.summary.checkbox6.visible = true;
if (achievementmeter[49] == 1){
menumap2.summary.checkbox6.gotoAndStop(2);
} else {
menumap2.summary.checkbox6.gotoAndStop(1);
};
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
} else {
if ((((warningpot == 1)) && ((hacked == 0)))){
_local2 = new betamon();
_local2.x = 300;
_local2.y = 200;
addChild(_local2);
} else {
if ((((warningpot == 1)) && ((hacked == 1)))){
_local3 = Math.floor(((Math.random() * 10) + 1));
if (_local3 < 4){
_local4 = new betamon();
_local4.x = 300;
_local4.y = 200;
addChild(_local4);
} else {
warningpot = 0;
};
};
};
};
}
public function menulvl12(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if ((((menufocus == 0)) && ((warningpot == 0)))){
if (warningpot2 == 1){
warningpot = 1;
};
if (mute != 1){
sechannel = botaktolol.play();
};
map = 12;
if (levelcomplete[(map - 1)][2] == 1){
sublevels = 2;
};
if (levelcomplete[(map - 1)][2] == 0){
sublevels = 1;
};
if (levelcomplete[(map - 1)][1] == 0){
sublevels = 0;
};
setChildIndex(menumap2, (numChildren - 1));
menufocus = 1;
menumap2.x = 160;
menumap2.y = 200;
menumap2.visible = true;
menumap2.gotoAndPlay(1);
menumap2.summary.gambar.gotoAndStop(currentmodepeluru);
if (sublevels == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 1){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(2);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (sublevels == 2){
menumap2.summary.select1.gotoAndStop(1);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(2);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (levelcomplete[(map - 1)][sublevels] == 0){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
if (currentmodepeluru <= validuse){
menumap2.summary.gambar.warnings.visible = false;
} else {
menumap2.summary.gambar.warnings.visible = true;
};
menumap2.summary.percentagetext.text = (String(progressbarmeter[(map - 1)][0]) + "%");
menumap2.regiontext.text = ("AREA " + map);
menumap2.summary.text1.mouseEnabled = false;
menumap2.summary.text2.mouseEnabled = false;
menumap2.summary.text3.mouseEnabled = false;
menumap2.summary.duittext.text = (moneyreward[(map - 1)][0] + " G");
menumap2.summary.duittext1.text = (moneyreward[(map - 1)][1] + " G");
menumap2.summary.duittext2.text = (moneyreward[(map - 1)][2] + " G");
menumap2.summary.duittext.mouseEnabled = false;
menumap2.summary.duittext1.mouseEnabled = false;
menumap2.summary.duittext2.mouseEnabled = false;
menumap2.summary.bonus1.text = "CREATE 30 BURNING GROUND";
menumap2.summary.bonus1.visible = true;
menumap2.summary.checkbox1.visible = true;
if (achievementmeter[50] == 1){
menumap2.summary.checkbox1.gotoAndStop(2);
} else {
menumap2.summary.checkbox1.gotoAndStop(1);
};
menumap2.summary.bonus1.mouseEnabled = false;
menumap2.summary.checkbox1.mouseEnabled = false;
menumap2.summary.bonus2.text = "SAVE ALL CIVILIANS";
menumap2.summary.bonus2.visible = true;
menumap2.summary.checkbox2.visible = true;
if (achievementmeter[51] == 1){
menumap2.summary.checkbox2.gotoAndStop(2);
} else {
menumap2.summary.checkbox2.gotoAndStop(1);
};
menumap2.summary.bonus2.mouseEnabled = false;
menumap2.summary.checkbox2.mouseEnabled = false;
menumap2.summary.bonus3.text = "USE ANY ITEM 6 TIMES";
menumap2.summary.bonus3.visible = true;
menumap2.summary.checkbox3.visible = true;
if (achievementmeter[52] == 1){
menumap2.summary.checkbox3.gotoAndStop(2);
} else {
menumap2.summary.checkbox3.gotoAndStop(1);
};
menumap2.summary.bonus3.mouseEnabled = false;
menumap2.summary.checkbox3.mouseEnabled = false;
menumap2.summary.bonus4.text = "LET 3 VOLCANO GIANT EXPLODE";
menumap2.summary.bonus4.visible = true;
menumap2.summary.checkbox4.visible = true;
if (achievementmeter[53] == 1){
menumap2.summary.checkbox4.gotoAndStop(2);
} else {
menumap2.summary.checkbox4.gotoAndStop(1);
};
menumap2.summary.bonus4.mouseEnabled = false;
menumap2.summary.checkbox4.mouseEnabled = false;
menumap2.summary.bonus5.text = "USE MARURU";
menumap2.summary.bonus5.visible = true;
menumap2.summary.checkbox5.visible = true;
if (achievementmeter[54] == 1){
menumap2.summary.checkbox5.gotoAndStop(2);
} else {
menumap2.summary.checkbox5.gotoAndStop(1);
};
menumap2.summary.bonus5.mouseEnabled = false;
menumap2.summary.checkbox5.mouseEnabled = false;
menumap2.summary.bonus6.text = "MINIMUM HERO HP 100%";
menumap2.summary.bonus6.visible = true;
menumap2.summary.checkbox6.visible = true;
if (achievementmeter[55] == 1){
menumap2.summary.checkbox6.gotoAndStop(2);
} else {
menumap2.summary.checkbox6.gotoAndStop(1);
};
menumap2.summary.bonus6.mouseEnabled = false;
menumap2.summary.checkbox6.mouseEnabled = false;
} else {
if ((((warningpot == 1)) && ((hacked == 0)))){
_local2 = new betamon();
_local2.x = 300;
_local2.y = 200;
addChild(_local2);
} else {
if ((((warningpot == 1)) && ((hacked == 1)))){
_local3 = Math.floor(((Math.random() * 10) + 1));
if (_local3 < 4){
_local4 = new betamon();
_local4.x = 300;
_local4.y = 200;
addChild(_local4);
} else {
warningpot = 0;
};
};
};
};
}
public function selectr1(_arg1:MouseEvent):void{
sublevels = 0;
if (mute != 1){
sechannel = iyas.play();
};
if (levelcomplete[(map - 1)][sublevels] == 1){
menumap2.summary.select1.gotoAndStop(2);
if (levelcomplete[(map - 1)][1] == 1){
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.mask1.visible = false;
} else {
menumap2.summary.select2.gotoAndStop(3);
menumap2.summary.mask1.visible = true;
};
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
}
public function selectr2(_arg1:MouseEvent):void{
sublevels = 1;
if (mute != 1){
sechannel = iyas.play();
};
if (levelcomplete[(map - 1)][sublevels] == 1){
menumap2.summary.select1.gotoAndStop(1);
menumap2.summary.select2.gotoAndStop(2);
if (levelcomplete[(map - 1)][2] == 1){
menumap2.summary.select3.gotoAndStop(1);
menumap2.summary.mask2.visible = false;
} else {
menumap2.summary.select3.gotoAndStop(3);
menumap2.summary.mask2.visible = true;
};
};
}
public function selectr3(_arg1:MouseEvent):void{
sublevels = 2;
if (mute != 1){
sechannel = iyas.play();
};
if (levelcomplete[(map - 1)][sublevels] == 1){
menumap2.summary.select1.gotoAndStop(1);
menumap2.summary.select2.gotoAndStop(1);
menumap2.summary.select3.gotoAndStop(2);
};
}
public function quitunlock(_arg1:MouseEvent):void{
unlockhero.visible = false;
unlockhero.gotoAndStop(1);
playherounlocked = 0;
wesjalan = 0;
}
public function cbs(_arg1:MouseEvent):void{
menumap2.x = 4000;
menumap2.y = 4000;
menumap2.visible = false;
menufocus = 0;
if (mute != 1){
sechannel = ngeklik.play();
};
}
public function sbs(_arg1:MouseEvent):void{
if ((((currentmodepeluru <= validuse)) && ((levelcomplete[(map - 1)][sublevels] == 1)))){
openingthesteinsgate(1);
clickstart = 1;
somethingsup = 0;
mychannel3.stop();
sapiduwek.visible = false;
nagaduwek.visible = false;
showsomething.visible = false;
removeChild(uh);
removeChild(sapiduwek);
sapiduwek.removeEventListener(MouseEvent.CLICK, sapigotoweb);
removeChild(nagaduwek);
sapiduwek.removeEventListener(MouseEvent.CLICK, nagagotoweb);
};
}
public function removemenu(_arg1){
var _local2:*;
_local2 = _arg1.currentTarget;
if (deletemenu == 1){
deletemenu = 0;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, removemenu);
_local2.summary.cb.removeEventListener(MouseEvent.CLICK, cbs);
_local2.summary.sb.removeEventListener(MouseEvent.CLICK, sbs);
_local2.summary.select1.removeEventListener(MouseEvent.CLICK, selectr1);
_local2.summary.select2.removeEventListener(MouseEvent.CLICK, selectr2);
_local2.summary.select3.removeEventListener(MouseEvent.CLICK, selectr3);
_local2.summary.rightbutton.removeEventListener(MouseEvent.CLICK, righty);
_local2.summary.leftbutton.removeEventListener(MouseEvent.CLICK, lefty);
};
}
public function removearrow(_arg1){
var _local2:*;
_local2 = _arg1.currentTarget;
if (deletemenu == 1){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, removearrow);
};
}
public function removethis(_arg1:MouseEvent):void{
if ((((((((mouseY > (lp.y + 41))) || ((mouseY < lp.y)))) || ((mouseX < (lp.x - 31))))) || ((mouseX > (lp.x + 70))))){
removeChild(lp);
lp.removeEventListener(MouseEvent.MOUSE_OUT, removethis);
this.buttonMode = false;
};
}
public function sapigotoweb(_arg1:MouseEvent):void{
var _local2:*;
var _local3:URLRequest;
if (encountermusuh[30] != 1){
encountermusuh[30] = 1;
gold = (gold + 300);
updatemenuitem();
_local2 = new rewardscoin();
_local2.x = 484;
_local2.y = 326;
addChild(_local2);
if (mute != 1){
sechannel = cekring.play();
};
} else {
_local3 = new URLRequest("http://www.facebook.com/smallfarmstudio");
navigateToURL(_local3, "_blank");
};
}
public function nagagotoweb(_arg1:MouseEvent):void{
var _local2:*;
var _local3:URLRequest;
if (encountermusuh[31] != 1){
encountermusuh[31] = 1;
gold = (gold + 300);
updatemenuitem();
_local2 = new rewardscoin2();
_local2.x = 540;
_local2.y = 324;
addChild(_local2);
if (mute != 1){
sechannel = cekring.play();
};
} else {
_local3 = new URLRequest("http://www.facebook.com/pages/Games-Free/112783725420705");
navigateToURL(_local3, "_blank");
};
}
public function panggils(){
if ((((level == 2)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "MINIMUM HERO HP 40%";
if (achievementmeter[0] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 2)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "MINIMUM HERO HP 60%";
if (achievementmeter[1] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 2)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "MINIMUM HERO HP 80%";
if (achievementmeter[2] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 3)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "MINIMUM WALL HP 40%";
if (achievementmeter[3] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 3)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "MINIMUM WALL HP 60%";
if (achievementmeter[4] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 3)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "MINIMUM WALL HP 80%";
if (achievementmeter[5] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 4)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "USE FLASH GRENADE 1 TIMES";
if (achievementmeter[6] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 4)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "USE STUN GRENADE 1 TIMES";
if (achievementmeter[7] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 4)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "USE AIR STRIKE 1 TIMES";
if (achievementmeter[8] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 5)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "USE GLUPUG";
if (achievementmeter[9] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 5)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "USE GLUPUG";
if (achievementmeter[10] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 5)) && ((sublevels == 1)))){
resultscreen.summary.bonus2.text = "MINIMUM WALL HP 60%";
if (achievementmeter[11] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 5)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "USE GLUPUG";
if (achievementmeter[12] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 5)) && ((sublevels == 2)))){
resultscreen.summary.bonus2.text = "USE STUN GRENADE 2 TIMES";
if (achievementmeter[13] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 6)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "KILL 2 PARASITE";
if (achievementmeter[14] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 6)) && ((sublevels == 0)))){
resultscreen.summary.bonus2.text = "USE MARURU";
if (achievementmeter[15] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 6)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "KILL 5 PARASITE";
if (achievementmeter[16] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 6)) && ((sublevels == 1)))){
resultscreen.summary.bonus2.text = "USE FLASH GRENADE 2 TIMES";
if (achievementmeter[17] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 6)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "USE AIR STRIKE 1 TIMES";
if (achievementmeter[18] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 6)) && ((sublevels == 2)))){
resultscreen.summary.bonus2.text = "USE REPAIR DRONE 1 TIMES";
if (achievementmeter[19] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 7)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "MINIMUM HERO HP 80%";
if (achievementmeter[20] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 7)) && ((sublevels == 0)))){
resultscreen.summary.bonus2.text = "USE MUNYI";
if (achievementmeter[21] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 7)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "USE 2 AIR STRIKE";
if (achievementmeter[22] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 7)) && ((sublevels == 1)))){
resultscreen.summary.bonus2.text = "USE MUNYI";
if (achievementmeter[23] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 7)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "USE 1 TINY POTION";
if (achievementmeter[24] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 7)) && ((sublevels == 2)))){
resultscreen.summary.bonus2.text = "USE MUNYI";
if (achievementmeter[25] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 8)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "USE 1 STRIKE DRONE";
if (achievementmeter[26] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 8)) && ((sublevels == 0)))){
resultscreen.summary.bonus2.text = "USE MARURU";
if (achievementmeter[27] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 8)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "USE 3 FLASH GRENADE";
if (achievementmeter[28] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 8)) && ((sublevels == 1)))){
resultscreen.summary.bonus2.text = "USE MARURU";
if (achievementmeter[29] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 8)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "MINIMUM HERO HP 60%";
if (achievementmeter[30] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 8)) && ((sublevels == 2)))){
resultscreen.summary.bonus2.text = "USE MARURU";
if (achievementmeter[31] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 9)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "MINIMUM HERO HP 60%";
if (achievementmeter[32] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 9)) && ((sublevels == 0)))){
resultscreen.summary.bonus2.text = "USE GLUPUG";
if (achievementmeter[33] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 9)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "MINIMUM HERO HP 80%";
if (achievementmeter[34] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 9)) && ((sublevels == 1)))){
resultscreen.summary.bonus2.text = "USE MARURU";
if (achievementmeter[35] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 9)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "MINIMUM HERO HP 40%";
if (achievementmeter[36] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 9)) && ((sublevels == 2)))){
resultscreen.summary.bonus2.text = "USE MUNYI";
if (achievementmeter[37] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 10)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "SAVE 2 CIVILIANS";
if (achievementmeter[38] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 10)) && ((sublevels == 0)))){
resultscreen.summary.bonus2.text = "USE 2 TINY POTION";
if (achievementmeter[39] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 10)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "USE ZOYA";
if (achievementmeter[40] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 10)) && ((sublevels == 1)))){
resultscreen.summary.bonus2.text = "MINIMUM HERO HP 60%";
if (achievementmeter[41] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 10)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "USE 1 TINY POTION";
if (achievementmeter[42] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 10)) && ((sublevels == 2)))){
resultscreen.summary.bonus2.text = "SAVE 2 CIVILIANS";
if (achievementmeter[43] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 11)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "SAVE 3 CIVILIANS";
if (achievementmeter[44] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 11)) && ((sublevels == 0)))){
resultscreen.summary.bonus2.text = "USE GLUPLUG";
if (achievementmeter[45] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 11)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "USE 3 STUN GRENADE";
if (achievementmeter[46] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 11)) && ((sublevels == 1)))){
resultscreen.summary.bonus2.text = "MINIMUM WALL HP 60%";
if (achievementmeter[47] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 11)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "KILL 6 VOLCANO GIANT";
if (achievementmeter[48] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 11)) && ((sublevels == 2)))){
resultscreen.summary.bonus2.text = "USE MUNYI";
if (achievementmeter[49] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 12)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.text = "CREATE 30 BURNING GROUND";
if (achievementmeter[50] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 12)) && ((sublevels == 0)))){
resultscreen.summary.bonus2.text = "SAVE ALL CIVILIANS";
if (achievementmeter[51] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 12)) && ((sublevels == 1)))){
resultscreen.summary.bonus1.text = "USE ANY ITEM 6 TIMES";
if (achievementmeter[52] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 12)) && ((sublevels == 1)))){
resultscreen.summary.bonus2.text = "LET 3 VOLCANO GIANT EXPLODE(WITHOUT KILLING IT)";
if (achievementmeter[53] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
if ((((level == 12)) && ((sublevels == 2)))){
resultscreen.summary.bonus1.text = "USE MARURU";
if (achievementmeter[54] == 1){
resultscreen.summary.checkbox1.gotoAndStop(2);
};
};
if ((((level == 12)) && ((sublevels == 2)))){
resultscreen.summary.bonus2.text = "MINIMUM HERO HP 100%";
if (achievementmeter[55] == 1){
resultscreen.summary.checkbox2.gotoAndStop(2);
};
};
}
public function tutorials(_arg1){
if (onworldmap == 1){
if ((((((encountermusuh[0] == 0)) && ((apocount == -1)))) && ((spawntut == 1)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[0] = 1;
tscreen.mc1.gotoAndStop(1);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[1] == 0)) && ((apocount == -1)))) && ((spawntut == 2)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[1] = 1;
tscreen.mc1.gotoAndStop(2);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[2] == 0)) && ((apocount == -1)))) && ((spawntut == 3)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[2] = 1;
tscreen.mc1.gotoAndStop(3);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[3] == 0)) && ((apocount == -1)))) && ((spawntut == 4)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[3] = 1;
tscreen.mc1.gotoAndStop(4);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[4] == 0)) && ((apocount == -1)))) && ((spawntut == 5)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[4] = 1;
tscreen.mc1.gotoAndStop(5);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[5] == 0)) && ((apocount == -1)))) && ((spawntut == 6)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[5] = 1;
tscreen.mc1.gotoAndStop(6);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[6] == 0)) && ((apocount == -1)))) && ((spawntut == 7)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[6] = 1;
tscreen.mc1.gotoAndStop(7);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[7] == 0)) && ((apocount == -1)))) && ((spawntut == 8)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[7] = 1;
tscreen.mc1.gotoAndStop(8);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[8] == 0)) && ((apocount == -1)))) && ((spawntut == 9)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[8] = 1;
tscreen.mc1.gotoAndStop(9);
lagitutorial = 1;
Mouse.show();
};
if ((((encountermusuh[9] == 0)) && ((barricadehp <= 0)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[9] = 1;
tscreen.mc1.gotoAndStop(10);
lagitutorial = 1;
Mouse.show();
};
if ((((encountermusuh[10] == 0)) && ((spawntut == 160)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[10] = 1;
tscreen.mc1.gotoAndStop(11);
lagitutorial = 1;
Mouse.show();
};
if ((((encountermusuh[11] == 0)) && ((spawntut == 260)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[11] = 1;
tscreen.mc1.gotoAndStop(12);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[12] == 0)) && ((apocount == -1)))) && ((spawntut == 10)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[12] = 1;
tscreen.mc1.gotoAndStop(13);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[13] == 0)) && ((apocount == -1)))) && ((spawntut == 11)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[13] = 1;
tscreen.mc1.gotoAndStop(14);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[14] == 0)) && ((apocount == -1)))) && ((spawntut == 12)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[14] = 1;
tscreen.mc1.gotoAndStop(15);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[15] == 0)) && ((apocount == -1)))) && ((spawntut == 13)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[15] = 1;
tscreen.mc1.gotoAndStop(16);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[16] == 0)) && ((apocount == -1)))) && ((spawntut == 14)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[16] = 1;
tscreen.mc1.gotoAndStop(17);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[17] == 0)) && ((apocount == -1)))) && ((spawntut == 15)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[17] = 1;
tscreen.mc1.gotoAndStop(18);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[18] == 0)) && ((apocount == -1)))) && ((spawntut == 16)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[18] = 1;
tscreen.mc1.gotoAndStop(19);
lagitutorial = 1;
Mouse.show();
};
if ((((((((((level == 3)) && ((sublevels == 2)))) && ((encountermusuh[19] == 0)))) && ((apocount == -1)))) && ((wavelevel == 12)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[19] = 1;
tscreen.mc1.gotoAndStop(24);
lagitutorial = 1;
if (itemhold[0] == 3){
if (jmlitemhold[0] < 9){
jmlitemhold[0] = (jmlitemhold[0] + 1);
};
} else {
if (itemhold[0] == 7){
itemhold[0] = 3;
jmlitemhold[0] = (jmlitemhold[0] + 1);
jmlitem[2] = (jmlitem[2] + 1);
} else {
if (itemhold[1] == 3){
if (jmlitemhold[1] < 9){
jmlitemhold[1] = (jmlitemhold[1] + 1);
};
} else {
if (itemhold[1] == 7){
itemhold[1] = 3;
jmlitemhold[1] = (jmlitemhold[1] + 1);
jmlitem[2] = (jmlitem[2] + 1);
} else {
if (itemhold[2] == 3){
if (jmlitemhold[2] < 9){
jmlitemhold[2] = (jmlitemhold[2] + 1);
};
} else {
if (itemhold[2] == 7){
itemhold[2] = 3;
jmlitemhold[2] = (jmlitemhold[2] + 1);
jmlitem[2] = (jmlitem[2] + 1);
} else {
jmlitem[2] = (jmlitem[2] + 1);
};
};
};
};
};
};
Mouse.show();
updateallitem();
};
if ((((((encountermusuh[20] == 0)) && ((apocount == -1)))) && ((spawntut == 17)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[20] = 1;
tscreen.mc1.gotoAndStop(20);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[21] == 0)) && ((apocount == -1)))) && ((spawntut == 18)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[21] = 1;
tscreen.mc1.gotoAndStop(21);
lagitutorial = 1;
Mouse.show();
};
if ((((((encountermusuh[22] == 0)) && ((apocount == -1)))) && ((spawntut == 19)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[22] = 1;
tscreen.mc1.gotoAndStop(22);
lagitutorial = 1;
Mouse.show();
};
if ((((encountermusuh[23] == 0)) && ((spawntut == 360)))){
pauseornot = 1;
tscreen.visible = true;
tscreen.gotoAndPlay(1);
encountermusuh[23] = 1;
tscreen.mc1.gotoAndStop(23);
lagitutorial = 1;
Mouse.show();
};
};
spawntut = 0;
}
public function removetut(_arg1:MouseEvent):void{
pauseornot = 0;
tscreen.visible = false;
lagitutorial = 0;
Mouse.hide();
}
public function updateallitem(){
if (jmlitemhold[0] < 0){
jmlitemhold[0] = 0;
};
if (jmlitemhold[1] < 0){
jmlitemhold[0] = 0;
};
if (jmlitemhold[2] < 0){
jmlitemhold[0] = 0;
};
if (jmlitem[0] < 0){
jmlitem[0] = 0;
};
if (jmlitem[1] < 0){
jmlitem[1] = 0;
};
if (jmlitem[2] < 0){
jmlitem[2] = 0;
};
if (jmlitem[3] < 0){
jmlitem[3] = 0;
};
if (jmlitem[4] < 0){
jmlitem[4] = 0;
};
if (jmlitem[5] < 0){
jmlitem[5] = 0;
};
if (jmlitemhold[0] == 0){
userinterface.numheld1.visible = false;
itemhold[0] = 7;
userinterface.stock1.jenisheld.gotoAndStop(itemhold[0]);
} else {
userinterface.numheld1.visible = true;
userinterface.stock1.jenisheld.gotoAndStop(itemhold[0]);
};
if (jmlitemhold[1] == 0){
userinterface.numheld2.visible = false;
itemhold[1] = 7;
userinterface.stock2.jenisheld.gotoAndStop(itemhold[1]);
} else {
userinterface.numheld2.visible = true;
userinterface.stock2.jenisheld.gotoAndStop(itemhold[1]);
};
if (jmlitemhold[2] == 0){
userinterface.numheld3.visible = false;
itemhold[2] = 7;
userinterface.stock3.jenisheld.gotoAndStop(itemhold[2]);
} else {
userinterface.numheld3.visible = true;
userinterface.stock3.jenisheld.gotoAndStop(itemhold[2]);
};
userinterface.numheld1.text = jmlitemhold[0];
userinterface.numheld2.text = jmlitemhold[1];
userinterface.numheld3.text = jmlitemhold[2];
}
public function cekbulletbar(){
bulletnew.bshadow.width = ((160 * (maxpelurushot - currentbulletused)) / maxpelurushot);
bulletnew.textpeluru.text = String((maxpelurushot - currentbulletused));
bulletnew.textmaxpeluru.text = String(maxpelurushot);
}
public function useitems1(_arg1:MouseEvent):void{
useitem(0);
cooldownitem = 1;
updateallitem();
}
public function useitems2(_arg1:MouseEvent):void{
useitem(1);
cooldownitem = 1;
updateallitem();
}
public function useitems3(_arg1:MouseEvent):void{
useitem(2);
cooldownitem = 1;
updateallitem();
}
public function savegame(){
var _local1:*;
so.data.levelheros = new Array(levelheros[0], levelheros[1], levelheros[2], levelheros[3]);
so.data.expheros = new Array(expheros[0], expheros[1], expheros[2], expheros[3]);
so.data.maxexpheros = new Array(maxexpheros[0], maxexpheros[1], maxexpheros[2], maxexpheros[3]);
so.data.completeheros = new Array(completeheros[0], completeheros[1], completeheros[2], completeheros[3]);
so.data.levelabilityhero1 = new Array(levelabilityhero1[0], levelabilityhero1[1], levelabilityhero1[2], levelabilityhero1[3]);
so.data.levelabilityhero2 = new Array(levelabilityhero2[0], levelabilityhero2[1], levelabilityhero2[2], levelabilityhero2[3]);
so.data.levelabilityhero3 = new Array(levelabilityhero3[0], levelabilityhero3[1], levelabilityhero3[2], levelabilityhero3[3]);
so.data.levelabilityhero4 = new Array(levelabilityhero4[0], levelabilityhero4[1], levelabilityhero4[2], levelabilityhero4[3]);
so.data.skillpointheros = new Array(skillpointheros[0], skillpointheros[1], skillpointheros[2], skillpointheros[3]);
so.data.itemhold = new Array(itemhold[0], itemhold[1], itemhold[2]);
so.data.jmlitemhold = new Array(jmlitemhold[0], jmlitemhold[1], jmlitemhold[2]);
so.data.jmlitem = new Array(jmlitem[0], jmlitem[1], jmlitem[2], jmlitem[3], jmlitem[4], jmlitem[5]);
so.data.pbm1 = new Array(pbm1[0], pbm1[1], pbm1[2]);
so.data.pbm2 = new Array(pbm2[0], pbm2[1], pbm2[2]);
so.data.pbm3 = new Array(pbm3[0], pbm3[1], pbm3[2]);
so.data.pbm4 = new Array(pbm4[0], pbm4[1], pbm4[2]);
so.data.pbm5 = new Array(pbm5[0], pbm5[1], pbm5[2]);
so.data.pbm6 = new Array(pbm6[0], pbm6[1], pbm6[2]);
so.data.pbm7 = new Array(pbm7[0], pbm7[1], pbm7[2]);
so.data.pbm8 = new Array(pbm8[0], pbm8[1], pbm8[2]);
so.data.pbm9 = new Array(pbm9[0], pbm9[1], pbm9[2]);
so.data.pbm10 = new Array(pbm10[0], pbm10[1], pbm10[2]);
so.data.pbm11 = new Array(pbm11[0], pbm11[1], pbm11[2]);
so.data.pbm12 = new Array(pbm12[0], pbm12[1], pbm12[2]);
so.data.achievementmeter = new Array();
so.data.encountermusuh = new Array();
_local1 = 0;
while (_local1 < 70) {
so.data.achievementmeter[_local1] = achievementmeter[_local1];
so.data.encountermusuh[_local1] = encountermusuh[_local1];
_local1 = (_local1 + 1);
};
so.data.lvlc1 = new Array(lvlc1[0], lvlc1[1], lvlc1[2]);
so.data.lvlc2 = new Array(lvlc2[0], lvlc2[1], lvlc2[2]);
so.data.lvlc3 = new Array(lvlc3[0], lvlc3[1], lvlc3[2]);
so.data.lvlc4 = new Array(lvlc4[0], lvlc4[1], lvlc4[2]);
so.data.lvlc5 = new Array(lvlc5[0], lvlc5[1], lvlc5[2]);
so.data.lvlc6 = new Array(lvlc6[0], lvlc6[1], lvlc6[2]);
so.data.lvlc7 = new Array(lvlc7[0], lvlc7[1], lvlc7[2]);
so.data.lvlc8 = new Array(lvlc8[0], lvlc8[1], lvlc8[2]);
so.data.lvlc9 = new Array(lvlc9[0], lvlc9[1], lvlc9[2]);
so.data.lvlc10 = new Array(lvlc10[0], lvlc10[1], lvlc10[2]);
so.data.lvlc11 = new Array(lvlc11[0], lvlc11[1], lvlc11[2]);
so.data.lvlc12 = new Array(lvlc12[0], lvlc12[1], lvlc12[2]);
so.data.gold = gold;
so.data.levelhpwall = levelhpwall;
so.data.leveldefwall = leveldefwall;
so.data.upgradewall = upgradewall;
so.data.defwall = defwall;
so.data.validuse = validuse;
so.flush();
}
public function modehard(){
var _local1:int;
modehards = 1;
_local1 = 0;
while (_local1 < 17) {
listmonster[_local1][2] = (listmonster[_local1][2] + 3);
listmonster[_local1][3] = (listmonster[_local1][3] + 5);
damagebulletmonster[_local1] = (damagebulletmonster[_local1] + 5);
_local1++;
};
}
public function modeeasy(){
var _local1:int;
modehards = 0;
_local1 = 0;
while (_local1 < 17) {
listmonster[_local1][2] = (listmonster[_local1][2] - 3);
listmonster[_local1][3] = (listmonster[_local1][3] - 5);
damagebulletmonster[_local1] = (damagebulletmonster[_local1] - 5);
_local1++;
};
}
public function arahsenjata(_arg1){
var _local2:*;
var _local3:*;
var _local4:Point;
var _local5:Point;
var _local6:Point;
var _local7:*;
var _local8:*;
if ((((((((((map > 0)) && ((onworldmap == 1)))) && ((cooldown > 5)))) && ((((stopspawn == 0)) || ((((monsterlayar > 0)) && ((mchealth > 0)))))))) && ((pauseornot == 0)))){
_local2 = Math.atan2((mouseY - pesawat.y), (mouseX - pesawat.x));
_local3 = ((_local2 * 180) / Math.PI);
if ((((mouseX >= (pesawat.x + pesawat.width))) && ((stancechara == 1)))){
if (modepeluru == 1){
_local4 = pesawat.chara1.mc.b2.upeluru.localToGlobal(new Point());
pesawat.chara1.mc.b2.upeluru.localToGlobal(new Point()).x = (_local4.x + 23);
_local4.y = (_local4.y + 10);
if (pesawat.chara1.mc.b2.currentFrame == 1){
pesawat.chara1.mc.b2.rotation = ((Math.atan2((mouseY - _local4.y), (mouseX - _local4.x)) * 180) / Math.PI);
};
} else {
if (modepeluru == 2){
_local5 = pesawat.chara1.mc.bazo.ubazo.localToGlobal(new Point());
pesawat.chara1.mc.bazo.ubazo.localToGlobal(new Point()).x = (_local5.x + 27);
_local5.y = (_local5.y + 11);
if (pesawat.chara1.mc.currentFrame == 1){
pesawat.chara1.mc.bazo.rotation = ((Math.atan2((mouseY - _local5.y), (mouseX - _local5.x)) * 180) / Math.PI);
};
} else {
if (modepeluru == 3){
pesawat.chara1.loaders.visible = false;
_local6 = pesawat.chara1.uufo.localToGlobal(new Point());
pesawat.chara1.uufo.localToGlobal(new Point()).x = (_local6.x + 12);
_local6.y = (_local6.y + 6);
_local7 = ((Math.atan2((mouseY - _local6.y), (mouseX - _local6.x)) * 180) / Math.PI);
if ((((((pesawat.chara1.currentFrame == 1)) && ((_local7 <= 57)))) && ((_local7 >= -57)))){
pesawat.chara1.uufo.rotation = ((Math.atan2((mouseY - _local6.y), (mouseX - _local6.x)) * 180) / Math.PI);
};
nananakelihatan = 0;
_local8 = 0;
while (_local8 < (jumlahmonster - 1)) {
if ((((dummy[_local8].hitTestObject(nanana) == true)) && ((dummy[_local8].health > 0)))){
nananakelihatan = (nananakelihatan + 1);
};
_local8 = (_local8 + 1);
};
if ((((nananakelihatan <= 0)) && ((nanana.currentFrame == 2)))){
nanana.gotoAndStop(1);
};
};
};
};
};
};
}
public function setpesawatmode(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8){
cooldownchange = 0;
keypressed = "0";
delaytime = _arg2;
modepeluru = _arg1;
mcmaxhealth = _arg3;
crit = _arg4;
crit = 0;
evade = _arg5;
evade = 0;
speedjalan = _arg6;
maxpelurushot = _arg7;
reloadpesawat = _arg8;
if (badcondition == 1){
speedjalan = (speedjalan - ((speedjalan * 5) / 10));
};
pesawat.gotoAndStop(_arg1);
pesawat.rotation = 0;
}
public function useitem(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (jmlitemhold[_arg1] > 0){
jmlitemhold[_arg1] = (jmlitemhold[_arg1] - 1);
if (itemhold[_arg1] == 1){
if ((((((((((level == 4)) && ((sublevels == 1)))) || ((((level == 5)) && ((sublevels == 2)))))) || ((((level == 11)) && ((sublevels == 1)))))) || ((((level == 12)) && ((sublevels == 1)))))){
useitem1 = (useitem1 + 1);
};
whatitem = 1;
_local2 = new item1();
_local2.x = 339.8;
_local2.y = 215.85;
addChild(_local2);
jmlitem[0] = (jmlitem[0] - 1);
if (mute != 1){
sechannel = items1.play();
};
};
if (itemhold[_arg1] == 2){
if ((((((((((level == 4)) && ((sublevels == 0)))) || ((((level == 6)) && ((sublevels == 1)))))) || ((((level == 8)) && ((sublevels == 1)))))) || ((((level == 12)) && ((sublevels == 1)))))){
useitem1 = (useitem1 + 1);
};
whatitem = 2;
_local3 = new item2();
_local3.x = 339.8;
_local3.y = 215.85;
addChild(_local3);
jmlitem[1] = (jmlitem[1] - 1);
if (mute != 1){
sechannel = items2.play();
};
};
if (itemhold[_arg1] == 3){
if ((((((((((level == 4)) && ((sublevels == 2)))) || ((((level == 6)) && ((sublevels == 2)))))) || ((((level == 7)) && ((sublevels == 1)))))) || ((((level == 12)) && ((sublevels == 1)))))){
useitem1 = (useitem1 + 1);
};
whatitem = 3;
jmlitem[2] = (jmlitem[2] - 1);
if (mute != 1){
sechannel = items3.play();
};
};
if (itemhold[_arg1] == 4){
if (jumlahstrikedrone < 2){
if ((((((level == 8)) && ((sublevels == 0)))) || ((((level == 12)) && ((sublevels == 1)))))){
useitem1 = (useitem1 + 1);
};
jmlitem[3] = (jmlitem[3] - 1);
_local4 = new item4();
_local4.x = -40;
if (jumlahstrikedrone == 0){
_local4.y = 100;
} else {
if (jumlahstrikedrone == 1){
_local4.y = 300;
};
};
_local4.kondisi = 1;
_local4.locks = 0;
_local4.targets = 0;
addChild(_local4);
_local4.gotoAndStop(12);
_local4.addEventListener(Event.ENTER_FRAME, strikes);
jumlahstrikedrone = (jumlahstrikedrone + 1);
};
};
if (itemhold[_arg1] == 5){
if (jumlahrepairdrone < 1){
if ((((((level == 6)) && ((sublevels == 2)))) || ((((level == 12)) && ((sublevels == 1)))))){
useitem2 = (useitem2 + 1);
if (level == 12){
useitem1 = (useitem1 + 1);
};
};
jmlitem[4] = (jmlitem[4] - 1);
_local5 = new item5();
_local5.x = -40;
_local5.y = 230;
_local5.kondisi = 1;
_local5.locks = 0;
_local5.gotoAndStop(96);
_local5.scaleX = -1;
addChild(_local5);
_local5.addEventListener(Event.ENTER_FRAME, repairs);
jumlahrepairdrone = (jumlahrepairdrone + 1);
};
};
if (itemhold[_arg1] == 6){
if ((((((((((level == 7)) && ((sublevels == 2)))) || ((((level == 10)) && ((sublevels == 0)))))) || ((((level == 10)) && ((sublevels == 2)))))) || ((((level == 12)) && ((sublevels == 1)))))){
useitem1 = (useitem1 + 1);
};
_local6 = new item6();
_local6.x = pesawat.x;
_local6.y = pesawat.y;
addChild(_local6);
if (mute != 1){
sechannel = items6.play();
};
mchealth = mcmaxhealth;
userinterface.hpbarchara.merah1.width = ((361 * mchealth) / mcmaxhealth);
userinterface.hpbarchara.merah2.width = ((361 * mchealth) / mcmaxhealth);
jmlitem[5] = (jmlitem[5] - 1);
};
};
updateallitem();
}
public function danganronpa(_arg1){
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget;
if (pauseornot == 1){
_local2.gotoAndStop(_local2.currentFrame);
};
if ((((pauseornot == 0)) && ((mchealth > 0)))){
_local2.summon = (_local2.summon + 1);
if (_local2.kondisi == 1){
_local2.privatetimer = (_local2.privatetimer + 1);
if (_local2.locks == 0){
_local2.gotoAndStop(1);
_local2.locks = 1;
};
if (_local2.temps == 0){
if (_local2.y <= 50){
_local2.y = (_local2.y + 3);
};
if (_local2.y > 50){
_local2.kondisi = 2;
_local2.locks = 0;
};
};
if (_local2.temps == 1){
if (_local2.y <= 110){
_local2.y = (_local2.y + 3);
};
if (_local2.y > 110){
_local2.kondisi = 2;
_local2.locks = 0;
};
};
if (_local2.temps == 2){
if (_local2.y <= 170){
_local2.y = (_local2.y + 3);
};
if (_local2.y > 170){
_local2.kondisi = 2;
_local2.locks = 0;
};
};
if (_local2.temps == 3){
if (_local2.y <= 230){
_local2.y = (_local2.y + 3);
};
if (_local2.y > 230){
_local2.kondisi = 2;
_local2.locks = 0;
};
};
if (_local2.temps == 4){
if (_local2.y <= 290){
_local2.y = (_local2.y + 3);
};
if (_local2.y > 290){
_local2.kondisi = 2;
_local2.locks = 0;
};
};
};
if (_local2.kondisi == 2){
if (_local2.locks == 0){
_local2.locks = 1;
_local2.gotoAndPlay(1);
};
_local2.privatetimer = (_local2.privatetimer + 1);
if (_local2.privatetimer == 10){
if (mute != 1){
sechannel = fireabs.play();
};
_local3 = new peluruenemy(_local2.x, _local2.y);
_local3.tipe = 8;
_local3.damages = damagebulletmonster[8];
_local3.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local3);
_local3.gotoAndStop(8);
};
};
if ((((_local2.kondisi == 2)) && ((_local2.privatetimer >= 30)))){
_local2.privatetimer = 0;
};
if (_local2.summon == 180){
_local2.kondisi = 3;
_local2.privatetimer = 0;
};
if (_local2.kondisi == 3){
_local2.privatetimer = (_local2.privatetimer + 1);
if (_local2.privatetimer == 2){
_local2.gotoAndStop(1);
};
_local2.y = (_local2.y - 2);
};
if ((((_local2.kondisi == 3)) && ((_local2.y < -20)))){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, danganronpa);
};
};
if (waktuciviliansaved == 151){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, danganronpa);
};
}
public function strikes(_arg1){
var _local2:*;
var _local3:Point;
var _local4:Point;
var _local5:*;
var _local6:Point;
var _local7:*;
var _local8:Point;
var _local9:*;
var _local10:int;
_local2 = _arg1.currentTarget;
if (pauseornot == 1){
_local2.gotoAndStop(_local2.currentFrame);
};
if ((((pauseornot == 0)) && ((mchealth > 0)))){
_local2.summon = (_local2.summon + 1);
if (_local2.summon == 1){
_local2.targets = 0;
};
if (_local2.kondisi == 1){
_local2.privatetimer = (_local2.privatetimer + 1);
if (_local2.locks == 0){
_local2.gotoAndStop(12);
_local2.locks = 1;
};
if ((((_local2.y == 100)) && ((_local2.x < 40)))){
_local2.x = (_local2.x + 2);
};
if ((((_local2.y == 300)) && ((_local2.x < 20)))){
_local2.x = (_local2.x + 2);
};
};
if (_local2.kondisi == 2){
if (_local2.locks == 0){
_local2.locks = 1;
_local2.gotoAndPlay(1);
};
_local2.privatetimer = (_local2.privatetimer + 1);
if ((_local2.privatetimer % 11) == 0){
if (mute != 1){
sechannel = items4.play();
};
_local2.gotoAndPlay(1);
_local4 = _local2.cdrone.udrone.localToGlobal(new Point());
_local5 = new peluru(_local4.x, _local4.y);
_local5.angles = Math.atan2(((dummy[_local2.targetsindex].y - (dummy[_local2.targetsindex].height / 2)) - _local4.y), (dummy[_local2.targetsindex].x - _local4.x));
_local5.tipe = 4;
_local5.addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
addChild(_local5);
_local5.gotoAndStop(6);
};
if ((_local2.privatetimer % 13) == 0){
_local6 = _local2.cdrone.udrone.localToGlobal(new Point());
_local7 = new peluru(_local6.x, _local6.y);
_local7.angles = Math.atan2(((dummy[_local2.targetsindex].y - (dummy[_local2.targetsindex].height / 2)) - _local6.y), (dummy[_local2.targetsindex].x - _local6.x));
_local7.tipe = 4;
_local7.addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
addChild(_local7);
_local7.gotoAndStop(6);
};
if ((_local2.privatetimer % 15) == 0){
_local8 = _local2.cdrone.udrone.localToGlobal(new Point());
_local9 = new peluru(_local8.x, _local8.y);
_local9.angles = Math.atan2(((dummy[_local2.targetsindex].y - (dummy[_local2.targetsindex].height / 2)) - _local8.y), (dummy[_local2.targetsindex].x - _local8.x));
_local9.tipe = 4;
_local9.addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
addChild(_local9);
_local9.gotoAndStop(6);
};
_local3 = _local2.cdrone.localToGlobal(new Point());
_local2.cdrone.rotation = ((Math.atan2((dummy[_local2.targetsindex].y - _local3.y), (dummy[_local2.targetsindex].x - _local3.x)) * 180) / Math.PI);
if ((((dummy[_local2.targetsindex].kondisi == 3)) || ((dummy[_local2.targetsindex].health <= 0)))){
_local2.targets = 0;
};
};
if ((((_local2.targets <= 0)) && ((jumlahmonster >= 1)))){
_local10 = 0;
while (_local10 < (jumlahmonster - 1)) {
if (dummy[_local10].kondisi != 3){
_local2.temps = Math.sqrt((Math.pow((_local2.x - dummy[_local10].x), 2) + Math.pow((_local2.y - dummy[_local10].y), 2)));
if (_local2.temps >= _local2.targets){
_local2.targets = _local2.temps;
_local2.targetsindex = _local10;
};
};
_local10 = (_local10 + 1);
};
};
if ((((((_local2.kondisi == 1)) && ((_local2.targets > 0)))) && ((_local2.privatetimer >= 30)))){
_local2.kondisi = 2;
_local2.locks = 0;
_local2.privatetimer = 0;
};
if ((((_local2.kondisi == 2)) && ((_local2.privatetimer == 21)))){
_local2.kondisi = 1;
_local2.locks = 0;
_local2.targets = -1;
_local2.privatetimer = 0;
};
if (_local2.summon == 1200){
_local2.kondisi = 3;
_local2.privatetimer = 0;
};
if (_local2.kondisi == 3){
_local2.privatetimer = (_local2.privatetimer + 1);
if (_local2.privatetimer == 3){
_local2.scaleX = -1;
_local2.gotoAndStop(1);
};
_local2.x = (_local2.x - 2);
};
if ((((_local2.kondisi == 3)) && ((_local2.x < -20)))){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, strikes);
jumlahstrikedrone = (jumlahstrikedrone - 1);
};
};
if (waktuciviliansaved == 151){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, strikes);
};
}
public function repairs(_arg1){
var _local2:*;
_local2 = _arg1.currentTarget;
if (pauseornot == 1){
_local2.gotoAndStop(_local2.currentFrame);
};
if (pauseornot == 0){
_local2.summon = (_local2.summon + 1);
if (_local2.kondisi == 1){
_local2.x = (_local2.x + 2);
if ((((_local2.x <= 235)) && ((_local2.x >= 160)))){
_local2.y = (_local2.y + 1);
};
_local2.arahhadap = (Math.floor((Math.random() * 2)) + 1);
};
if ((((_local2.kondisi == 2)) && ((_local2.summon <= 520)))){
_local2.privatetimer = (_local2.privatetimer + 1);
if (_local2.privatetimer == 2){
if (_local2.arahhadap == 2){
_local2.gotoAndStop(51);
};
if (_local2.arahhadap == 1){
_local2.gotoAndStop(95);
};
};
if (_local2.privatetimer == 5){
if (_local2.arahhadap == 2){
_local2.gotoAndStop(52);
};
if (_local2.arahhadap == 1){
_local2.gotoAndStop(94);
};
};
if ((((_local2.arahhadap == 1)) && ((_local2.privatetimer < 30)))){
_local2.y = (_local2.y - 0.5);
};
if ((((_local2.arahhadap == 2)) && ((_local2.privatetimer < 30)))){
_local2.y = (_local2.y + 0.5);
};
if (_local2.privatetimer == 31){
_local2.scaleX = 1;
if (_local2.arahhadap == 2){
_local2.gotoAndStop(51);
};
if (_local2.arahhadap == 1){
_local2.gotoAndStop(95);
};
};
if (_local2.privatetimer == 34){
_local2.scaleX = 1;
_local2.gotoAndStop(96);
};
if (_local2.privatetimer == 35){
_local2.gotoAndPlay(1);
};
if ((((_local2.privatetimer > 35)) && ((_local2.privatetimer < 85)))){
if (barricadehp > 0){
if (barricadehp < barricademaxhp){
barricadehp = (barricadehp + 1);
if (barricadehp > barricademaxhp){
barricadehp = barricademaxhp;
};
if ((((userinterface.hpbarwall.hijau1.width <= 308)) && ((userinterface.hpbarwall.hijau1.width < ((308 * barricadehp) / barricademaxhp))))){
userinterface.hpbarwall.hijau1.width = (userinterface.hpbarwall.hijau1.width + 1);
};
};
};
};
if (_local2.privatetimer == 85){
_local2.privatetimer = 0;
userinterface.hpbarwall.hijau1.width = ((308 * barricadehp) / barricademaxhp);
userinterface.hpbarwall.hijau2.width = ((308 * barricadehp) / barricademaxhp);
_local2.arahhadap = (Math.floor((Math.random() * 2)) + 1);
if (_local2.y > 250){
_local2.arahhadap = 1;
};
if (_local2.y < 130){
_local2.arahhadap = 2;
};
};
};
if (_local2.summon == 520){
_local2.kondisi = 3;
_local2.privatetimer = 0;
};
if (_local2.kondisi == 3){
_local2.privatetimer = (_local2.privatetimer + 1);
if (_local2.privatetimer == 3){
_local2.gotoAndStop(96);
};
_local2.x = (_local2.x - 2);
if ((((_local2.x <= 235)) && ((_local2.x >= 160)))){
_local2.y = (_local2.y - 1);
};
};
if ((((_local2.kondisi == 3)) && ((_local2.x <= -20)))){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, repairs);
jumlahrepairdrone = (jumlahrepairdrone - 1);
};
if ((((_local2.kondisi == 1)) && ((_local2.x > 235)))){
_local2.kondisi = 2;
};
};
if (waktuciviliansaved == 151){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, repairs);
};
}
public function absoluteorder(){
if ((((((((((stopspawn == 0)) || ((((monsterlayar > 0)) && ((mchealth > 0)))))) && ((pauseornot == 0)))) && ((apocount == -1)))) && ((steinsgatetimer == -1)))){
setChildIndex(userinterface, (numChildren - 1));
setChildIndex(bulletnew, (numChildren - 1));
nanana.alpha = 0.8;
setChildIndex(nanana, (numChildren - 1));
};
}
public function setpeluruanimation(_arg1){
}
public function sortdepth():void{
var _local1:Array;
var _local2:int;
var _local3:*;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
if ((((((((stopspawn == 0)) || ((((monsterlayar > 0)) && ((mchealth > 0)))))) && ((pauseornot == 0)))) && ((steinsgatetimer == -1)))){
_local1 = new Array();
_local3 = jumlahmonster;
while (_local3--) {
_local1[_local3] = dummy[_local3].y;
};
_local4 = 0;
while (_local4 < jumlahmonster) {
_local6 = (jumlahmonster - 1);
while (_local6 > _local4) {
if (_local1[(_local6 - 1)] > _local1[_local6]){
_local2 = _local1[(_local6 - 1)];
_local1[(_local6 - 1)] = _local1[_local6];
_local1[_local6] = _local2;
};
_local6--;
};
_local4++;
};
_local5 = 0;
while (_local5 < jumlahmonster) {
_local7 = 0;
while (_local7 < jumlahmonster) {
if ((((dummy[_local7].y >= _local1[_local5])) && (!((dummy[_local7].kondisi == 3))))){
setChildIndex(dummy[_local7], (numChildren - 1));
_local8 = 0;
while (_local8 < jumlahcivilians) {
if (civilians[_local8].kondisi != 3){
if (pesawat.y > civilians[_local8].y){
setChildIndex(pesawat, (numChildren - 1));
};
if (civilians[_local8].y > dummy[_local7].y){
setChildIndex(civilians[_local8], (numChildren - 1));
};
};
_local8++;
};
if (pesawat.y > dummy[_local7].y){
setChildIndex(pesawat, (numChildren - 1));
};
};
_local7++;
};
_local5++;
};
};
}
public function checkupgrade(){
if (modepeluru == 1){
listpesawat[0][2] = 40;
listpesawat[0][2] = (listpesawat[0][2] + (levelheros[0] * 5));
listpesawat[0][6] = 10;
listpesawat[0][6] = (listpesawat[0][6] + (lah[0][0] * 5));
damagebullet[0] = 2;
damagebullet[0] = (damagebullet[0] + lah[0][1]);
if (lah[0][3] == 0){
listpesawat[0][1] = 7;
};
if (lah[0][3] == 1){
listpesawat[0][1] = 6;
};
if (lah[0][3] == 2){
listpesawat[0][1] = 5;
};
if (lah[0][3] == 3){
listpesawat[0][1] = 4;
};
if (lah[0][3] == 4){
listpesawat[0][1] = 3;
};
};
if (modepeluru == 2){
listpesawat[1][2] = 50;
listpesawat[1][2] = (listpesawat[1][2] + (levelheros[1] * 7));
listpesawat[1][6] = 10;
listpesawat[1][6] = (listpesawat[1][6] + (lah[1][0] * 5));
damagebullet[0] = 1;
damagebullet[0] = (damagebullet[0] + lah[1][2]);
delaytime = 10;
};
if (modepeluru == 3){
listpesawat[2][2] = 75;
listpesawat[2][2] = (listpesawat[2][2] + (levelheros[2] * 10));
listpesawat[2][6] = 7;
listpesawat[2][6] = (listpesawat[2][6] + lah[2][0]);
damagebullet[2] = 20;
damagebullet[2] = (damagebullet[2] + (lah[2][1] * 5));
delaytime = 30;
maxbounce = lah[2][3];
};
if (modepeluru == 4){
listpesawat[3][2] = 150;
listpesawat[3][2] = (listpesawat[3][2] + (levelheros[3] * 15));
listpesawat[3][6] = 5;
listpesawat[3][6] = (listpesawat[3][6] + lah[3][0]);
listpesawat[3][7] = 70;
listpesawat[3][7] = (listpesawat[3][7] - (lah[3][2] * 5));
};
}
public function detectFocus(){
var notinfocus:Function;
notinfocus = function (_arg1:Event):void{
if (((((((!((waktuciviliansaved == 151))) && ((playresultscreen == 0)))) && ((apocount == -1)))) && ((idletime == 0)))){
pausegame.x = 340;
pausegame.y = 200;
pauseornot = 1;
Mouse.show();
if (mute == 0){
volumes = 0.5;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
mychannel2.soundTransform = setransform;
} else {
volumes = 0;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
mychannel2.soundTransform = setransform;
};
};
};
stage.addEventListener(Event.DEACTIVATE, notinfocus);
}
public function pausing(_arg1:MouseEvent):void{
if ((((((pauseornot == 0)) && ((playresultscreen == 0)))) && ((apocount == -1)))){
pauseornot = 1;
pausegame.x = 340;
pausegame.y = 200;
Mouse.show();
userinterface.bpause.gotoAndStop(2);
if (mute == 0){
volumes = 0.5;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
mychannel2.soundTransform = setransform;
} else {
volumes = 0;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
mychannel2.soundTransform = setransform;
};
} else {
if ((((pauseornot == 1)) && ((lagitutorial == 0)))){
pauseornot = 0;
pausegame.x = 4000;
pausegame.y = 4000;
Mouse.hide();
nanana.gg.mouseEnabled = false;
nanana.mouseEnabled = false;
userinterface.bpause.gotoAndStop(1);
if (mute == 0){
volumes = 1;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
mychannel2.soundTransform = setransform;
} else {
volumes = 0;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
mychannel2.soundTransform = setransform;
};
};
};
}
public function muting(_arg1:MouseEvent):void{
if (mute == 0){
mute = 1;
volumes = 0;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
mychannel2.soundTransform = setransform;
userinterface.bmute.gotoAndStop(2);
} else {
if (mute == 1){
mute = 0;
volumes = 1;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
mychannel2.soundTransform = setransform;
userinterface.bmute.gotoAndStop(1);
};
};
}
public function tnterFrame(_arg1){
var _local2:Sprite;
var _local3:Sprite;
var _local4:*;
var _local5:Sprite;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:int;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:int;
var _local22:int;
var _local23:*;
var _local24:int;
if ((((map > 0)) && ((onworldmap == 1)))){
stage.focus = stage;
if (((((!((stage.focus == stage))) && ((apocount == -1)))) && ((lagitutorial == 0)))){
pauseornot = 1;
};
detectFocus();
if (gameinit == 0){
Mouse.hide();
if ((((level >= 1)) && ((level <= 3)))){
backgrounds.gotoAndStop(1);
};
if ((((level >= 4)) && ((level <= 6)))){
backgrounds.gotoAndStop(2);
};
if ((((level >= 7)) && ((level <= 9)))){
backgrounds.gotoAndStop(4);
};
if ((((level >= 10)) && ((level <= 12)))){
backgrounds.gotoAndStop(3);
};
wavelevels = new Array(serverwavelevels[0], serverwavelevels[1], serverwavelevels[2], serverwavelevels[3], serverwavelevels[4], serverwavelevels[5], serverwavelevels[6], serverwavelevels[7], serverwavelevels[8], serverwavelevels[9], serverwavelevels[10], serverwavelevels[11]);
wavelevels[0] = 9;
wavelevels[1] = 12;
wavelevels[2] = 14;
if (level == 1){
bmlvl11 = new Array(drsvbmlvl11[0], drsvbmlvl11[1]);
bmlvl12 = new Array(drsvbmlvl12[0], drsvbmlvl12[1]);
bmlvl13 = new Array(drsvbmlvl13[0], drsvbmlvl13[1]);
};
if (level == 2){
bmlvl21 = new Array(drsvbmlvl21[0], drsvbmlvl21[1]);
bmlvl22 = new Array(drsvbmlvl22[0], drsvbmlvl22[1]);
bmlvl23 = new Array(drsvbmlvl23[0], drsvbmlvl23[1]);
};
if (level == 3){
bmlvl31 = new Array(drsvbmlvl31[0], drsvbmlvl31[1], drsvbmlvl31[2]);
bmlvl32 = new Array(drsvbmlvl32[0], drsvbmlvl32[1], drsvbmlvl32[2]);
bmlvl33 = new Array(drsvbmlvl33[0], drsvbmlvl33[1], drsvbmlvl33[2]);
};
if (level == 8){
bmlvl81 = new Array(drsvbmlvl81[0], drsvbmlvl81[1], drsvbmlvl81[2]);
bmlvl82 = new Array(drsvbmlvl82[0], drsvbmlvl82[1], drsvbmlvl82[2]);
bmlvl83 = new Array(drsvbmlvl83[0], drsvbmlvl83[1], drsvbmlvl83[2]);
};
banyakmonsterlevel1 = new Array(bmlvl11, bmlvl12, bmlvl13);
banyakmonsterlevel2 = new Array(bmlvl21, bmlvl22, bmlvl23);
banyakmonsterlevel3 = new Array(bmlvl31, bmlvl33, bmlvl33);
banyakmonsterlevel4 = new Array(bmlvl41, bmlvl42, bmlvl43);
banyakmonsterlevel5 = new Array(bmlvl51, bmlvl52, bmlvl53);
banyakmonsterlevel6 = new Array(bmlvl61, bmlvl63, bmlvl63);
banyakmonsterlevel7 = new Array(bmlvl71, bmlvl72, bmlvl73);
banyakmonsterlevel8 = new Array(bmlvl81, bmlvl82, bmlvl83);
banyakmonsterlevel9 = new Array(bmlvl91, bmlvl93, bmlvl93);
banyakmonsterlevel10 = new Array(bmlvl101, bmlvl102, bmlvl103);
banyakmonsterlevel11 = new Array(bmlvl111, bmlvl112, bmlvl113);
banyakmonsterlevel12 = new Array(bmlvl121, bmlvl122, bmlvl123);
banyaktipemonsterlevel = new Array(banyakmonsterlevel1, banyakmonsterlevel2, banyakmonsterlevel3, banyakmonsterlevel4, banyakmonsterlevel5, banyakmonsterlevel6, banyakmonsterlevel7, banyakmonsterlevel8, banyakmonsterlevel9, banyakmonsterlevel10, banyakmonsterlevel11, banyakmonsterlevel12);
pesawat.x = -20;
pesawat.y = 180;
pesawat.addEventListener(Event.ENTER_FRAME, removepesawat);
pesawat.mchpbar.visible = false;
addChild(pesawat);
_local2 = new Sprite();
stage.addChild(_local2);
pausegame.x = 4000;
pausegame.y = 4000;
pausegame.rbtn.addEventListener(MouseEvent.CLICK, resumebutton);
pausegame.rtbtn.addEventListener(MouseEvent.CLICK, restartbutton);
pausegame.mbtn.addEventListener(MouseEvent.CLICK, mapbutton);
pausegame.gsbuttonhit.addEventListener(MouseEvent.CLICK, gotoweb2);
_local2.addChild(pausegame);
modepeluru = currentmodepeluru;
pesawat.gotoAndStop(modepeluru);
_local3 = new Sprite();
stage.addChild(_local3);
_local3.addChild(focusm);
ou1.visible = true;
focusm.visible = false;
this.buttonMode = false;
levelpartremove = 0;
cooldownitem = 0;
civillayar = 0;
userinterface.x = 318;
userinterface.y = 388.25;
userinterface.y = 388.25;
userinterface.gambarchara.gotoAndStop(modepeluru);
userinterface.addEventListener(Event.ENTER_FRAME, removeui);
userinterface.bpause.gotoAndStop(1);
userinterface.bpause.addEventListener(MouseEvent.CLICK, pausing);
if (mute != 1){
userinterface.bmute.gotoAndStop(1);
} else {
userinterface.bmute.gotoAndStop(2);
};
userinterface.bmute.addEventListener(MouseEvent.CLICK, muting);
userinterface.stock1.addEventListener(MouseEvent.CLICK, useitems1);
userinterface.stock2.addEventListener(MouseEvent.CLICK, useitems2);
userinterface.stock3.addEventListener(MouseEvent.CLICK, useitems3);
userinterface.naganaga.addEventListener(MouseEvent.CLICK, gotoweb2);
userinterface.stock1.jenisheld.gotoAndStop(itemhold[0]);
userinterface.stock2.jenisheld.gotoAndStop(itemhold[1]);
userinterface.stock3.jenisheld.gotoAndStop(itemhold[2]);
userinterface.numheld1.text = jmlitemhold[0];
userinterface.numheld2.text = jmlitemhold[1];
userinterface.numheld3.text = jmlitemhold[2];
updateallitem();
userinterface.numheld1.mouseEnabled = false;
userinterface.numheld2.mouseEnabled = false;
userinterface.numheld3.mouseEnabled = false;
addChild(userinterface);
jumlahcivilthislevel = 0;
gameinit = 1;
apocount = 0;
gobacktoworldmap = 0;
maxpelurushot = 10;
currentbulletused = 0;
rechargebullet = 0;
cobacounter = 0;
cooldown = 0;
idletime = 0;
cooldownchange = 0;
jumlahstrikedrone = 0;
jumlahrepairdrone = 0;
ontasudahspawn = 0;
lengthspawn = 40;
maxtimespawn = Math.floor((maxleveltime[(level - 1)] / wavelevels[(level - 1)]));
tambah = 0;
chara = 1;
wavelevel = 1;
firsttimepressed = 0;
previouskey = -50;
mcexp = 0;
up = true;
mouseclicked = 99;
soundmeter = 0;
jmlmonsternow = 0;
recharge = 0;
enemykill = 0;
adaboss = 0;
callboss = 0;
badcondition = 0;
timebadcondition = 0;
timedamage2 = 0;
barricademaxhp = (150 + upgradewall);
barricadehp = barricademaxhp;
prevrotation = 0;
keypressed = 99;
bounceSpeed = 0;
encounter = 0;
loopings = 0;
previousy = 0;
bolhp = new Array(20, 20, 20, 20);
penguranganhpchara;
penguranganhwall;
decrement1 = 0;
decrement2 = 0;
maxmonsterlayar = 15;
monsterlayar = 0;
jumlahspawn = 0;
tembakrandomboss2 = 1;
reloadpesawat = listpesawat[0][7];
modulus = 0;
waktuworldmap = 0;
apocount = 0;
countergold = 0;
auragold = 0;
isreloading = false;
stopspawn = 0;
indextarget = 0;
playresultscreen = 0;
waktuexperience = 0;
waktuciviliansaved = 0;
jumlahciviliansaved = 0;
jumlahcivilians = 0;
countcivilian = 0;
civx = 150;
civy = 288;
nanana.visible = true;
nanana.gotoAndStop(2);
maxtimespawncivil = Math.floor((maxleveltime[(level - 1)] / (civilianlevel[(level - 1)][sublevels] + 3)));
timercivilian = Math.floor((Math.random() * maxtimespawncivil));
expshowed = 0;
waktuhijau = 0;
timers = 0;
waktuworldmap = 0;
autosorttime = 0;
harmo = 0;
scattershot = 1;
spawntut = 0;
useitem1 = 0;
useitem2 = 0;
damagepeluru = 1;
inc = -30;
t = -17;
velo = 4;
mbledos = 0;
sedangmenembak = 0;
levelfailed = 0;
explosion = 10;
burninggrounds = 0;
firstscene = 0;
reduction = 0;
waktubom = 0;
wallsudahjebol = 0;
timedamage = 0;
canFire = false;
pressing = false;
reloadanimation = 20;
stopresultscreen = 0;
userinterface.hpbarchara.merah1.width = 361;
userinterface.hpbarchara.merah2.width = 361;
userinterface.hpbarwall.hijau1.width = 308;
userinterface.hpbarwall.hijau2.width = 308;
killmission[0] = 0;
killmission[1] = 0;
linkglobal = 0;
soundvolume = 1;
randomyglobal = new Array();
_local4 = 0;
while (_local4 < 99) {
mcgoodstatus[_local4] = 0;
mcgoodstatustime[_local4] = 0;
wallgoodstatus[_local4] = 0;
wallgoodstatustime[_local4] = 0;
civiliansaved[_local4] = 0;
sudahspawnmonster[_local4] = 0;
_local4 = (_local4 + 1);
};
checkupgrade();
setpesawatmode(listpesawat[(modepeluru - 1)][0], listpesawat[(modepeluru - 1)][1], listpesawat[(modepeluru - 1)][2], listpesawat[(modepeluru - 1)][3], listpesawat[(modepeluru - 1)][4], listpesawat[(modepeluru - 1)][5], listpesawat[(modepeluru - 1)][6], listpesawat[(modepeluru - 1)][7]);
mchealth = mcmaxhealth;
bulletnew.x = 105.7;
bulletnew.y = 438;
bulletnew.addEventListener(Event.ENTER_FRAME, removepeluru);
addChild(bulletnew);
bulletnew.textpeluru.text = String((maxpelurushot - currentbulletused));
bulletnew.textmaxpeluru.text = String(maxpelurushot);
if (listpesawat[(modepeluru - 1)][6] == 10){
peluru1.x = 105.7;
peluru1.y = 450.55;
peluru1.addEventListener(Event.ENTER_FRAME, removepeluru);
addChild(peluru1);
peluru1.textpeluru.text = String((maxpelurushot - currentbulletused));
peluru1.textmaxpeluru.text = String(maxpelurushot);
peluru1.gotoAndStop(1);
peluru1.visible = false;
};
if (listpesawat[(modepeluru - 1)][6] == 15){
peluru2.x = 105.7;
peluru2.y = 450.55;
peluru2.addEventListener(Event.ENTER_FRAME, removepeluru);
addChild(peluru2);
peluru2.textpeluru.text = String((maxpelurushot - currentbulletused));
peluru2.textmaxpeluru.text = String(maxpelurushot);
peluru2.gotoAndStop(1);
peluru2.visible = false;
};
if (listpesawat[(modepeluru - 1)][6] == 20){
peluru3.x = 105.7;
peluru3.y = 450.55;
peluru3.addEventListener(Event.ENTER_FRAME, removepeluru);
addChild(peluru3);
peluru3.textpeluru.text = String((maxpelurushot - currentbulletused));
peluru3.textmaxpeluru.text = String(maxpelurushot);
peluru3.gotoAndStop(1);
peluru3.visible = false;
};
if (listpesawat[(modepeluru - 1)][6] == 25){
peluru4.x = 83;
peluru4.y = 450.55;
peluru4.scaleX = 0.8;
peluru4.scaleY = 0.8;
peluru4.addEventListener(Event.ENTER_FRAME, removepeluru);
addChild(peluru4);
peluru4.textpeluru.text = String((maxpelurushot - currentbulletused));
peluru4.textmaxpeluru.text = String(maxpelurushot);
peluru4.gotoAndStop(1);
peluru4.visible = false;
};
if (listpesawat[(modepeluru - 1)][6] == 30){
peluru5.x = 83;
peluru5.y = 450.55;
peluru5.scaleX = 0.8;
peluru5.scaleY = 0.8;
peluru5.addEventListener(Event.ENTER_FRAME, removepeluru);
addChild(peluru5);
peluru5.textpeluru.text = String((maxpelurushot - currentbulletused));
peluru5.textmaxpeluru.text = String(maxpelurushot);
peluru5.gotoAndStop(1);
peluru5.visible = false;
};
ou1.visible = true;
nanana.visible = true;
whatitem = 0;
dummy = new Array();
civilians = new Array();
jumlahmonster = 0;
temboks.gotoAndStop(1);
tscreen.x = 331;
tscreen.y = 194;
_local5 = new Sprite();
stage.addChild(_local5);
_local5.addChild(tscreen);
tscreen.visible = false;
tscreen.addEventListener(Event.ENTER_FRAME, tutorials);
tscreen.mc1.okay.addEventListener(MouseEvent.CLICK, removetut);
civposx = 0;
civposy = 40;
regenhpchara = 0;
regenhpwall = 0;
wakturegenhpchara = 0;
wakturegenhpwall = 0;
auramiss = 0;
auracrit = 0;
achievementmeter[65] = modepeluru;
if (mute == 0){
volumes = 0;
setransform.volume = volumes;
mychannel2.soundTransform = setransform;
volumes = 1;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
} else {
volumes = 0;
setransform.volume = volumes;
mychannel2.soundTransform = setransform;
volumes = 0;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
};
};
if ((((((((keypressed == "80")) && ((lagitutorial == 0)))) && ((apocount == -1)))) && ((playresultscreen == 0)))){
keypressed = "0";
if ((((((pauseornot == 0)) && ((playresultscreen == 0)))) && ((apocount == -1)))){
pauseornot = 1;
pausegame.x = 340;
pausegame.y = 200;
Mouse.show();
} else {
if ((((pauseornot == 1)) && ((lagitutorial == 0)))){
pauseornot = 0;
pausegame.x = 4000;
pausegame.y = 4000;
Mouse.hide();
nanana.gg.mouseEnabled = false;
nanana.mouseEnabled = false;
};
};
};
if ((((idletime > 1)) && ((idletime < 60)))){
if (((((!(((level % 3) == 0))) || ((sublevels <= 1)))) || ((((((((((((level == 3)) && ((sublevels == 2)))) && ((wavelevel <= 13)))) || ((((((level == 6)) && ((sublevels == 2)))) && ((wavelevel <= 16)))))) || ((((((level == 9)) && ((sublevels == 2)))) && ((wavelevel <= 10)))))) || ((((((level == 12)) && ((sublevels == 2)))) && ((wavelevel <= 19)))))))){
soundvolume = (soundvolume - 0.03);
if (soundvolume <= 0){
soundvolume = 0;
};
if (mute == 1){
soundvolume = 0;
};
mytransform1.volume = soundvolume;
mychannel1.soundTransform = mytransform1;
};
};
if ((((((((((((level == 3)) && ((sublevels == 2)))) && ((wavelevel == 13)))) || ((((((level == 6)) && ((sublevels == 2)))) && ((wavelevel == 16)))))) || ((((((level == 9)) && ((sublevels == 2)))) && ((wavelevel == 10)))))) || ((((((level == 12)) && ((sublevels == 2)))) && ((wavelevel == 19)))))){
soundvolume = (soundvolume - 0.009);
if (soundvolume <= 0){
soundvolume = 0;
};
if (mute == 1){
soundvolume = 0;
};
mytransform1.volume = soundvolume;
mychannel1.soundTransform = mytransform1;
} else {
if ((((((((((((level == 3)) && ((sublevels == 2)))) && ((wavelevel == 13)))) || ((((((level == 6)) && ((sublevels == 2)))) && ((wavelevel == 16)))))) || ((((((level == 9)) && ((sublevels == 2)))) && ((wavelevel == 10)))))) || ((((((((level == 12)) && ((sublevels == 2)))) && ((wavelevel == 21)))) && (!((soundvolume == 0))))))){
soundvolume = 0;
mytransform1.volume = soundvolume;
mychannel1.soundTransform = mytransform1;
};
};
if (apocount >= 0){
apocount = (apocount + 1);
if (pesawat.x < 80){
pesawat.x = (pesawat.x + 2);
};
};
if (apocount == 5){
pesawat.chara1.gotoAndStop(6);
};
if (apocount == 10){
pesawat.chara1.mc.gotoAndPlay(1);
if (modepeluru != 3){
nanana.gotoAndStop(2);
} else {
nanana.gotoAndStop(1);
};
};
if (apocount == 45){
apocount = -1;
if (modepeluru == 3){
pesawat.chara1.uufo.visible = false;
};
pesawat.chara1.gotoAndStop(1);
mytransform1.volume = volumes;
mychannel1 = battletheme.play(0, 9999);
mychannel1.soundTransform = mytransform1;
};
if ((((charatakedamages >= 1)) && ((charatakedamages <= 8)))){
charatakedamages = (charatakedamages + 1);
colorcharabar.brightness = (colorcharabar.brightness + 0.2);
userinterface.hpbarchara.merah1.transform.colorTransform = colorcharabar;
};
if ((((charatakedamages > 8)) && ((charatakedamages <= 16)))){
charatakedamages = (charatakedamages + 1);
colorcharabar.brightness = (colorcharabar.brightness + 0.2);
userinterface.hpbarchara.merah1.transform.colorTransform = colorcharabar;
};
if (charatakedamages == 16){
charatakedamages = (charatakedamages + 1);
colorcharabar.brightness = 0;
userinterface.hpbarchara.merah1.transform.colorTransform = colorcharabar;
};
if ((((walltakedamages >= 1)) && ((walltakedamages <= 5)))){
walltakedamages = (walltakedamages + 1);
colorwall.brightness = (colorwall.brightness + 0.2);
colorwallbar.brightness = (colorwallbar.brightness + 0.2);
temboks.transform.colorTransform = colorwall;
userinterface.hpbarwall.hijau1.transform.colorTransform = colorwallbar;
};
if ((((walltakedamages > 5)) && ((walltakedamages <= 10)))){
walltakedamages = (walltakedamages + 1);
colorwall.brightness = (colorwall.brightness - 0.2);
colorwallbar.brightness = (colorwallbar.brightness - 0.2);
temboks.transform.colorTransform = colorwall;
userinterface.hpbarwall.hijau1.transform.colorTransform = colorwallbar;
};
if (walltakedamages == 10){
walltakedamages = 0;
colorwall.brightness = 0;
colorwallbar.brightness = 0;
temboks.transform.colorTransform = colorwall;
userinterface.hpbarwall.hijau1.transform.colorTransform = colorwallbar;
};
if ((((monsterlayar > 0)) && ((mchealth > 0)))){
idletime = 0;
} else {
if ((((monsterlayar > 0)) && ((mchealth <= 0)))){
idletime = 0;
stopspawn = 0;
monsterlayar = 0;
} else {
if ((((((monsterlayar <= 0)) || ((mchealth <= 0)))) && ((stopspawn == 1)))){
idletime = (idletime + 1);
};
};
};
if ((((mchealth <= 0)) && ((stopspawn == 1)))){
if ((((((pesawat.chara1.currentFrame == 5)) && ((pesawat.chara1.mc.currentFrame == 13)))) && ((((modepeluru == 1)) || ((modepeluru == 2)))))){
pesawat.chara1.mc.gotoAndStop(13);
};
if ((((((pesawat.chara1.currentFrame == 5)) && ((pesawat.chara1.mc.currentFrame == 54)))) && ((modepeluru == 3)))){
pesawat.chara1.mc.gotoAndStop(54);
};
if ((((((pesawat.chara1.currentFrame == 5)) && ((pesawat.chara1.mc.currentFrame == 30)))) && ((modepeluru == 4)))){
pesawat.chara1.mc.gotoAndStop(30);
};
};
if ((((mchealth <= 0)) && ((stopspawn == 0)))){
stopspawn = 1;
idletime = 1;
playresultscreen = 0;
levelfailed = 1;
pesawat.chara1.gotoAndStop(5);
};
if (sublevels == 0){
if ((((jmlmonsternow >= maxmonsterlevel[(level - 1)][sublevels])) && ((stopspawn == 0)))){
stopspawn = 1;
idletime = 1;
playresultscreen = 0;
};
} else {
if (sublevels == 1){
if ((((jmlmonsternow >= maxmonsterlevel[(level - 1)][sublevels])) && ((stopspawn == 0)))){
if (level == 12){
if ((((wavelevel > 6)) && ((monsterlayar <= 0)))){
stopspawn = 1;
idletime = 1;
playresultscreen = 0;
};
} else {
stopspawn = 1;
idletime = 1;
playresultscreen = 0;
};
};
} else {
if (sublevels == 2){
if (((((!(((level % 3) == 0))) && ((jmlmonsternow >= maxmonsterlevel[(level - 1)][sublevels])))) && ((stopspawn == 0)))){
stopspawn = 1;
idletime = 1;
playresultscreen = 0;
};
};
};
};
if ((((((((((monsterlayar <= 0)) || ((mchealth <= 0)))) && ((stopspawn == 1)))) && ((playresultscreen == 0)))) && ((idletime >= 60)))){
if (levelfailed == 0){
resultscreen.levelcomplete.text = "Level Complete";
pesawat.chara1.gotoAndStop(1);
} else {
if (levelfailed == 1){
resultscreen.levelcomplete.text = "Level Failed";
};
};
if ((((((sublevels < 2)) && ((levelfailed == 0)))) && ((pauseornot == 0)))){
levelcomplete[(level - 1)][(sublevels + 1)] = 1;
if (level == 1){
progressbarmeter[(level - 1)][sublevels] = 100;
};
} else {
if ((((levelfailed == 0)) && ((pauseornot == 0)))){
if (level != 12){
if (levelcomplete[level][0] == 0){
playopenstage = level;
};
levelcomplete[level][0] = 1;
if (level == 1){
progressbarmeter[(level - 1)][sublevels] = 100;
};
};
};
};
if ((((((((((((level == 3)) && ((sublevels == 2)))) && ((wavelevel >= 13)))) || ((((((level == 6)) && ((sublevels == 2)))) && ((wavelevel >= 16)))))) || ((((((level == 9)) && ((sublevels == 2)))) && ((wavelevel >= 10)))))) || ((((((level == 12)) && ((sublevels == 2)))) && ((wavelevel > 21)))))){
mychannel2.stop();
} else {
mychannel1.stop();
};
if (levelfailed == 0){
if (mute != 1){
mytransform5.volume = 1;
} else {
mytransform5.volume = 0;
};
mychannel5 = fanfare.play(0, 1);
mychannel5.soundTransform = mytransform5;
};
if (levelfailed == 1){
if (mute != 1){
mytransform5.volume = 1;
} else {
mytransform5.volume = 0;
};
mychannel5 = fanfare1.play(0, 1);
mychannel5.soundTransform = mytransform5;
};
Mouse.show();
resultscreen.x = 204.7;
resultscreen.y = 59.05;
resultscreen.addEventListener(Event.ENTER_FRAME, removeresultscreen);
addChild(resultscreen);
stancechara = 1;
sedangmenembak = 0;
setChildIndex(resultscreen, (numChildren - 1));
resultscreen.gotoAndPlay(1);
resultscreen.visible = true;
playresultscreen = (playresultscreen + 1);
resultscreen.framesembunyis.visible = false;
resultscreen.resultexp.visible = false;
resultscreen.hijau.visible = false;
resultscreen.uang.visible = false;
resultscreen.gambars.visible = false;
resultscreen.uang.x = 4000;
resultscreen.uang.y = 4000;
resultscreen.bright.visible = false;
resultscreen.gambars.x = 4000;
resultscreen.gambars.y = 4000;
panggils();
if (level == 1){
resultscreen.summary.bonus1.visible = false;
resultscreen.summary.bonus2.visible = false;
resultscreen.summary.checkbox1.visible = false;
resultscreen.summary.checkbox2.visible = false;
} else {
if (level <= 5){
if ((((level == 5)) && ((sublevels == 0)))){
resultscreen.summary.bonus1.visible = true;
resultscreen.summary.bonus2.visible = false;
resultscreen.summary.checkbox1.visible = true;
resultscreen.summary.checkbox2.visible = false;
} else {
if ((((level == 5)) && ((sublevels > 0)))){
resultscreen.summary.bonus1.visible = true;
resultscreen.summary.bonus2.visible = true;
resultscreen.summary.checkbox1.visible = true;
resultscreen.summary.checkbox2.visible = true;
} else {
resultscreen.summary.bonus1.visible = true;
resultscreen.summary.bonus2.visible = false;
resultscreen.summary.checkbox1.visible = true;
resultscreen.summary.checkbox2.visible = false;
};
};
} else {
resultscreen.summary.bonus1.visible = true;
resultscreen.summary.bonus2.visible = true;
resultscreen.summary.checkbox1.visible = true;
resultscreen.summary.checkbox2.visible = true;
};
};
if (levelfailed == 0){
resultscreen.uang.text = (moneyreward[(level - 1)][sublevels] + " G");
} else {
resultscreen.uang.text = (0 + " G");
};
} else {
if ((((((((monsterlayar <= 0)) || ((mchealth <= 0)))) && ((stopspawn == 1)))) && ((playresultscreen > 0)))){
playresultscreen = (playresultscreen + 1);
if (playresultscreen == 10){
resultscreen.summary.checkbox1.gotoAndStop(1);
resultscreen.summary.checkbox2.gotoAndStop(1);
};
};
};
if (playresultscreen >= 22){
if (playresultscreen == 22){
resultscreen.framesembunyis.visible = true;
resultscreen.hijau.visible = true;
resultscreen.hijau.width = ((170 * expheros[(modepeluru - 1)]) / maxexpheros[(modepeluru - 1)]);
expheros[(modepeluru - 1)] = (expheros[(modepeluru - 1)] + mcexp);
resultscreen.resultexp.x = 210;
resultscreen.resultexp.y = 94.25;
resultscreen.uang.x = 210;
resultscreen.uang.y = 60;
resultscreen.gambars.visible = true;
resultscreen.gambars.x = 12;
resultscreen.gambars.y = 145;
resultscreen.gambars.gotoAndStop(modepeluru);
resultscreen.uang.visible = true;
resultscreen.resultexp.visible = true;
resultscreen.visible = true;
resultscreen.bright.visible = false;
increments = (mcexp / 45);
resultscreen.banner.bendera.gotoAndStop(1);
if ((((increments <= 1)) && (!((mcexp == 0))))){
increments = 1;
};
if (levelfailed == 0){
_local6 = new staralign();
_local6.x = 338;
_local6.y = 233;
_local6.gotoAndStop(1);
_local7 = new staralign();
_local7.x = 333;
_local7.y = 274;
_local7.gotoAndStop(1);
_local8 = new goldie();
_local8.x = 400;
_local8.y = 222;
_local8.gotoAndStop(1);
_local9 = new goldie();
_local9.x = 400;
_local9.y = 264;
_local9.gotoAndStop(1);
if ((((((((level == 2)) && ((sublevels == 0)))) && ((mchealth >= ((mcmaxhealth * 2) / 5))))) && ((achievementmeter[0] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 100);
achievementmeter[0] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 2)) && ((sublevels == 1)))) && ((mchealth >= ((mcmaxhealth * 3) / 5))))) && ((achievementmeter[1] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 100);
achievementmeter[1] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 2)) && ((sublevels == 2)))) && ((mchealth >= ((mcmaxhealth * 4) / 5))))) && ((achievementmeter[2] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 100);
achievementmeter[2] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 3)) && ((sublevels == 0)))) && ((barricadehp >= ((barricademaxhp * 2) / 5))))) && ((achievementmeter[3] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 100);
achievementmeter[3] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 3)) && ((sublevels == 1)))) && ((barricadehp >= ((barricademaxhp * 3) / 5))))) && ((achievementmeter[4] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 100);
achievementmeter[4] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 3)) && ((sublevels == 2)))) && ((barricadehp >= ((barricademaxhp * 4) / 5))))) && ((achievementmeter[5] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 100);
achievementmeter[5] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 4)) && ((sublevels == 0)))) && ((useitem1 >= 1)))) && ((achievementmeter[6] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 100);
achievementmeter[6] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 4)) && ((sublevels == 1)))) && ((useitem1 >= 1)))) && ((achievementmeter[7] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 100);
achievementmeter[7] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 4)) && ((sublevels == 2)))) && ((useitem1 >= 1)))) && ((achievementmeter[8] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 100);
achievementmeter[8] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 5)) && ((sublevels == 0)))) && ((modepeluru == 2)))) && ((achievementmeter[9] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 100);
achievementmeter[9] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 5)) && ((sublevels == 1)))) && ((modepeluru == 2)))) && ((achievementmeter[10] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[10] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 5)) && ((sublevels == 1)))) && ((barricadehp >= ((barricademaxhp * 3) / 5))))) && ((achievementmeter[11] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[11] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 5)) && ((sublevels == 2)))) && ((modepeluru == 2)))) && ((achievementmeter[12] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[12] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 5)) && ((sublevels == 2)))) && ((useitem1 >= 2)))) && ((achievementmeter[13] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[13] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 6)) && ((sublevels == 0)))) && ((killmission[0] >= 2)))) && ((achievementmeter[14] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[14] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 6)) && ((sublevels == 0)))) && ((modepeluru == 1)))) && ((achievementmeter[15] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[15] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 6)) && ((sublevels == 1)))) && ((killmission[0] >= 5)))) && ((achievementmeter[16] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[16] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 6)) && ((sublevels == 1)))) && ((useitem1 >= 2)))) && ((achievementmeter[17] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[17] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 6)) && ((sublevels == 2)))) && ((useitem1 >= 1)))) && ((achievementmeter[18] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[18] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 6)) && ((sublevels == 2)))) && ((useitem2 >= 1)))) && ((achievementmeter[19] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[19] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 7)) && ((sublevels == 0)))) && ((mchealth >= ((mcmaxhealth * 3) / 5))))) && ((achievementmeter[20] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[20] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 7)) && ((sublevels == 0)))) && ((modepeluru == 3)))) && ((achievementmeter[21] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[21] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 7)) && ((sublevels == 1)))) && ((useitem1 >= 2)))) && ((achievementmeter[22] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[22] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 7)) && ((sublevels == 1)))) && ((modepeluru == 3)))) && ((achievementmeter[23] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[23] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 7)) && ((sublevels == 2)))) && ((useitem1 >= 1)))) && ((achievementmeter[24] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[24] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 7)) && ((sublevels == 2)))) && ((modepeluru == 3)))) && ((achievementmeter[25] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[25] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 8)) && ((sublevels == 0)))) && ((useitem1 >= 1)))) && ((achievementmeter[26] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[26] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 8)) && ((sublevels == 0)))) && ((modepeluru == 1)))) && ((achievementmeter[27] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[27] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 8)) && ((sublevels == 1)))) && ((useitem1 >= 3)))) && ((achievementmeter[28] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[28] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 8)) && ((sublevels == 1)))) && ((modepeluru == 1)))) && ((achievementmeter[29] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[29] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 8)) && ((sublevels == 2)))) && ((mchealth >= ((mcmaxhealth * 3) / 5))))) && ((achievementmeter[30] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[30] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 8)) && ((sublevels == 2)))) && ((modepeluru == 1)))) && ((achievementmeter[31] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[31] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 9)) && ((sublevels == 0)))) && ((mchealth >= ((mcmaxhealth * 3) / 5))))) && ((achievementmeter[32] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[32] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 9)) && ((sublevels == 0)))) && ((modepeluru == 2)))) && ((achievementmeter[33] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[33] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 9)) && ((sublevels == 1)))) && ((mchealth >= ((mcmaxhealth * 4) / 5))))) && ((achievementmeter[34] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[34] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 9)) && ((sublevels == 1)))) && ((modepeluru == 1)))) && ((achievementmeter[35] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[35] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 9)) && ((sublevels == 2)))) && ((mchealth >= ((mcmaxhealth * 2) / 5))))) && ((achievementmeter[36] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[36] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 9)) && ((sublevels == 2)))) && ((modepeluru == 3)))) && ((achievementmeter[37] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[37] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 10)) && ((sublevels == 0)))) && ((jumlahciviliansaved >= 2)))) && ((achievementmeter[38] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[38] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 10)) && ((sublevels == 0)))) && ((useitem1 >= 2)))) && ((achievementmeter[39] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[39] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 10)) && ((sublevels == 1)))) && ((modepeluru == 4)))) && ((achievementmeter[40] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[40] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 10)) && ((sublevels == 1)))) && ((mchealth >= ((mcmaxhealth * 3) / 5))))) && ((achievementmeter[41] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[41] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 10)) && ((sublevels == 2)))) && ((useitem1 >= 1)))) && ((achievementmeter[42] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[42] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 10)) && ((sublevels == 2)))) && ((jumlahciviliansaved >= 5)))) && ((achievementmeter[43] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[43] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 11)) && ((sublevels == 0)))) && ((jumlahciviliansaved >= 3)))) && ((achievementmeter[44] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[44] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 11)) && ((sublevels == 0)))) && ((modepeluru == 2)))) && ((achievementmeter[45] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[45] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 11)) && ((sublevels == 1)))) && ((useitem1 >= 3)))) && ((achievementmeter[46] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[46] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 11)) && ((sublevels == 1)))) && ((barricadehp >= ((barricademaxhp * 3) / 5))))) && ((achievementmeter[47] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[47] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 11)) && ((sublevels == 2)))) && ((killmission[0] >= 6)))) && ((achievementmeter[48] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[48] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 11)) && ((sublevels == 2)))) && ((modepeluru == 3)))) && ((achievementmeter[49] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[49] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 12)) && ((sublevels == 0)))) && ((burninggrounds >= 30)))) && ((achievementmeter[50] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[50] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 12)) && ((sublevels == 0)))) && ((jumlahciviliansaved >= 12)))) && ((achievementmeter[51] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[51] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 12)) && ((sublevels == 1)))) && ((useitem1 >= 6)))) && ((achievementmeter[52] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[52] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 12)) && ((sublevels == 1)))) && ((killmission[0] >= 3)))) && ((achievementmeter[53] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[53] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 12)) && ((sublevels == 2)))) && ((modepeluru == 1)))) && ((achievementmeter[54] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[54] = 1;
addChild(_local6);
_local6.gotoAndPlay(1);
addChild(_local8);
_local8.addEventListener(Event.ENTER_FRAME, buangduwek);
_local8.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if ((((((((level == 12)) && ((sublevels == 2)))) && ((mchealth >= mcmaxhealth)))) && ((achievementmeter[55] == 0)))){
progressbarmeter[(level - 1)][sublevels] = (progressbarmeter[(level - 1)][sublevels] + 50);
achievementmeter[55] = 1;
addChild(_local7);
_local7.gotoAndPlay(1);
addChild(_local9);
_local9.addEventListener(Event.ENTER_FRAME, buangduwek);
_local9.gotoAndPlay(1);
gold = (gold + (50 + (10 * level)));
};
if (progressbarmeter[(level - 1)][sublevels] > 100){
progressbarmeter[(level - 1)][sublevels] = 100;
};
if (sudahdapatgold == 0){
gold = (gold + moneyreward[(level - 1)][sublevels]);
sudahdapatgold = 1;
};
};
};
if (waktuexperience == 1){
tempmaxexphero = maxexpheros[(modepeluru - 1)];
penambahan = (((170 / 50) * mcexp) / tempmaxexphero);
};
if (simpanhijau == 0){
waktuhijau = (waktuhijau + 1);
waktuexperience = (waktuexperience + 1);
};
};
if (stopresultscreen == 0){
if ((((waktuexperience > 0)) && ((waktuexperience <= 50)))){
if (waktuexperience == 10){
panggils();
};
if (levelfailed == 0){
resultscreen.banner.bendera.gotoAndStop(1);
} else {
if (levelfailed == 1){
resultscreen.banner.bendera.gotoAndStop(2);
};
};
if (resultscreen.banner.currentFrame >= 33){
resultscreen.banner.gotoAndStop(33);
if (levelfailed == 0){
resultscreen.banner.bendera.gotoAndStop(1);
} else {
if (levelfailed == 1){
resultscreen.banner.bendera.gotoAndStop(2);
};
};
};
if (levelheros[(modepeluru - 1)] < 16){
resultscreen.resultexp.text = String(expshowed);
if ((((expshowed < mcexp)) && ((simpanhijau == 0)))){
expshowed = (expshowed + Math.floor(increments));
};
} else {
if (levelheros[(modepeluru - 1)] == 16){
resultscreen.resultexp.text = "MAX";
};
};
};
if ((((waktuexperience > 50)) && ((levelheros[(modepeluru - 1)] < 16)))){
resultscreen.resultexp.text = String(mcexp);
} else {
if (levelheros[(modepeluru - 1)] == 16){
resultscreen.resultexp.text = "MAX";
};
};
if ((((((waktuhijau > 0)) && ((waktuhijau <= 50)))) && ((levelheros[(modepeluru - 1)] < 16)))){
if ((resultscreen.hijau.width + penambahan) <= 170){
resultscreen.hijau.width = (resultscreen.hijau.width + penambahan);
} else {
if (((((resultscreen.hijau.width + penambahan) > 170)) && ((simpanhijau == 0)))){
simpanhijau = 1;
resultscreen.bright.visible = true;
resultscreen.bright.gotoAndPlay(1);
tempmaxexphero = (maxexpheros[(modepeluru - 1)] * 1.5);
penambahan = (((170 / 50) * mcexp) / tempmaxexphero);
};
};
if (simpanhijau > 0){
simpanhijau = (simpanhijau + 1);
};
if (simpanhijau == 13){
simpanhijau = 0;
resultscreen.bright.visible = false;
resultscreen.hijau.width = 0;
};
};
if (waktuhijau > 50){
resultscreen.bright.visible = false;
if (waktuciviliansaved < 150){
waktuciviliansaved = (waktuciviliansaved + 1);
};
};
if ((((((waktuciviliansaved > 0)) && (((waktuciviliansaved % 15) == 0)))) && ((countcivilian < jumlahciviliansaved)))){
countcivilian = (countcivilian + 1);
civx = (civx + 14);
if (civx >= 484.95){
civx = 314.95;
civy = (civy + 10);
};
};
} else {
if ((((((stopresultscreen == 1)) && ((playresultscreen >= 22)))) && ((waktuciviliansaved < 150)))){
panggils();
waktuciviliansaved = (waktuciviliansaved + 1);
resultscreen.banner.gotoAndStop(33);
if (levelfailed == 0){
resultscreen.banner.bendera.gotoAndStop(1);
} else {
if (levelfailed == 1){
resultscreen.banner.bendera.gotoAndStop(2);
};
};
tempmaxexphero = maxexpheros[(modepeluru - 1)];
_local10 = ((170 * expheros[(modepeluru - 1)]) / tempmaxexphero);
while (_local10 > 170) {
_local10 = (_local10 - 170);
};
if (levelheros[(modepeluru - 1)] < 16){
resultscreen.resultexp.text = String(mcexp);
resultscreen.hijau.width = _local10;
} else {
if (levelheros[(modepeluru - 1)] == 16){
resultscreen.resultexp.text = "MAX";
resultscreen.hijau.width = 170;
};
};
_local11 = countcivilian;
while (_local11 < jumlahciviliansaved) {
countcivilian = (countcivilian + 1);
civx = (civx + 14);
if (civx >= 484.95){
civx = 314.95;
civy = (civy + 10);
};
_local11 = (_local11 + 1);
};
resultscreen.summary.restarts.addEventListener(MouseEvent.MOUSE_UP, restartbutton);
resultscreen.summary.maps.addEventListener(MouseEvent.MOUSE_UP, mapbutton);
};
};
if (resultscreen.currentFrame == 22){
if (levelfailed == 0){
resultscreen.levelcomplete.gotoAndStop(1);
} else {
if (levelfailed == 1){
resultscreen.levelcomplete.gotoAndStop(2);
};
};
};
if (waktuciviliansaved == 150){
resultscreen.summary.restarts.addEventListener(MouseEvent.MOUSE_UP, restartbutton);
resultscreen.summary.maps.addEventListener(MouseEvent.MOUSE_UP, mapbutton);
};
if (waktuciviliansaved == 151){
if ((((level == 3)) && ((sublevels == 2)))){
panggil();
};
if ((((((((((((level == 3)) && ((sublevels == 2)))) && ((wavelevel >= 13)))) || ((((((level == 6)) && ((sublevels == 2)))) && ((wavelevel >= 16)))))) || ((((((level == 9)) && ((sublevels == 2)))) && ((wavelevel >= 10)))))) || ((((((level == 12)) && ((sublevels == 2)))) && ((wavelevel > 21)))))){
mychannel2.stop();
} else {
mychannel1.stop();
};
resultscreen.hijau.visible = false;
if (modehards == 1){
modeeasy();
};
previousmap = map;
encountermusuh[69] = previousmap;
ou1.visible = false;
savegame();
if (levelheros[(modepeluru - 1)] < 16){
mcexp = 0;
_local12 = 0;
while (_local12 < 16) {
if (expheros[(modepeluru - 1)] >= maxexpheros[(modepeluru - 1)]){
expheros[(modepeluru - 1)] = (expheros[(modepeluru - 1)] - maxexpheros[(modepeluru - 1)]);
levelheros[(modepeluru - 1)] = (levelheros[(modepeluru - 1)] + 1);
skillpointheros[(modepeluru - 1)] = (skillpointheros[(modepeluru - 1)] + 1);
somethingsup = 1;
maxexpheros[(modepeluru - 1)] = Math.floor((maxexpheros[(modepeluru - 1)] * 1.5));
};
_local12 = (_local12 + 1);
};
};
if (skillpointheros[0] > 0){
somethingsup = 1;
};
if ((((skillpointheros[1] > 0)) && ((validuse >= 2)))){
somethingsup = 1;
};
if ((((skillpointheros[2] > 0)) && ((validuse >= 3)))){
somethingsup = 1;
};
if ((((skillpointheros[3] > 0)) && ((validuse >= 4)))){
somethingsup = 1;
};
if ((((gobacktoworldmap == 1)) && ((steinsgatetimer == 14)))){
removeChild(nanana);
if ((((((((((level == 12)) && ((sublevels == 2)))) && ((levelfailed == 0)))) && ((gobacktoworldmap == 1)))) && ((steinsgatetimer == 14)))){
onworldmap = 0;
map = 0;
switchmap = 0;
gotoAndStop(3);
sudahdapatgold = 0;
_local13 = new owari();
_local13.x = 0;
_local13.y = 0;
addChild(_local13);
playending = 1;
mytransform4.volume = 1;
mychannel4 = endingbgm1.play(0, 9999);
mychannel4.soundTransform = mytransform4;
restartornot = 0;
achievementmeter[66] = 1;
System.gc();
} else {
onworldmap = 0;
map = 0;
switchmap = 0;
gotoAndStop(3);
sudahdapatgold = 0;
restartornot = 0;
System.gc();
};
} else {
if (gobacktoworldmap == 0){
gameinit = 0;
System.gc();
};
};
};
if ((((currentbulletused < maxpelurushot)) && (!((keypressed == "82"))))){
cekbulletbar();
};
autosorttime = (autosorttime + 1);
if (autosorttime == 10){
sortdepth();
absoluteorder();
setChildIndex(bulletnew, (numChildren - 1));
autosorttime = 1;
};
if ((((timers > 0)) && ((timers <= 15)))){
if (timers == 1){
if (mute != 1){
sechannel = quakes.play();
};
};
x = (25 * (Math.random() - 0.5));
y = (12 * (Math.random() - 0.5));
timers = (timers + 1);
};
if (timers >= 15){
x = (y = 0);
timers = 0;
};
if (((((barricadehp / barricademaxhp) <= 0.9)) && (((barricadehp / barricademaxhp) > 0.5)))){
temboks.gotoAndStop(2);
} else {
if (((((barricadehp / barricademaxhp) <= 0.5)) && (((barricadehp / barricademaxhp) > 0)))){
temboks.gotoAndStop(3);
} else {
if ((barricadehp / barricademaxhp) <= 0){
temboks.gotoAndStop(4);
} else {
if ((barricadehp / barricademaxhp) == 1){
temboks.gotoAndStop(1);
};
};
};
};
penguranganhpchara = (userinterface.hpbarchara.merah2.width - userinterface.hpbarchara.merah1.width);
penguranganhwall = (userinterface.hpbarwall.hijau2.width - userinterface.hpbarwall.hijau1.width);
if (penguranganhpchara <= 50){
decrement1 = 1;
} else {
if (penguranganhpchara <= 150){
decrement1 = 5;
} else {
if (penguranganhpchara <= 250){
decrement1 = 10;
} else {
if (penguranganhpchara <= 350){
decrement1 = 15;
};
};
};
};
if (penguranganhwall <= 50){
decrement2 = 1;
} else {
if (penguranganhwall <= 150){
decrement2 = 3;
} else {
if (penguranganhwall <= 250){
decrement2 = 5;
} else {
if (penguranganhwall <= 350){
decrement2 = 7;
};
};
};
};
timedamage = (timedamage + 1);
if ((((timedamage >= 60)) && ((userinterface.hpbarchara.merah2.width >= userinterface.hpbarchara.merah1.width)))){
userinterface.hpbarchara.merah2.width = (userinterface.hpbarchara.merah2.width - decrement1);
} else {
if ((((timedamage >= 60)) && ((userinterface.hpbarchara.merah2.width < userinterface.hpbarchara.merah1.width)))){
timedamage = 0;
};
};
timedamage2 = (timedamage2 + 1);
if ((((timedamage2 >= 60)) && ((userinterface.hpbarwall.hijau2.width >= userinterface.hpbarwall.hijau1.width)))){
userinterface.hpbarwall.hijau2.width = (userinterface.hpbarwall.hijau2.width - decrement2);
} else {
if ((((timedamage2 >= 60)) && ((userinterface.hpbarwall.hijau2.width < userinterface.hpbarwall.hijau1.width)))){
timedamage2 = 0;
};
};
if ((((((((((stopspawn == 0)) || ((monsterlayar > 0)))) && ((apocount < 0)))) && ((pauseornot == 0)))) && ((mchealth > 0)))){
nanana.gg.mouseEnabled = false;
nanana.mouseEnabled = false;
if (cooldownitem > 0){
cooldownitem = (cooldownitem + 1);
};
if (cooldownitem >= 60){
cooldownitem = 0;
whatitem = 0;
};
if ((((whatitem == 1)) && ((cooldownitem == 14)))){
_local14 = 0;
while (_local14 < jumlahmonster) {
if (dummy[_local14].kondisi != 3){
dummy[_local14].health = (dummy[_local14].health - 5);
dummy[_local14].stunornot = 1;
popupdamagemonster(dummy[_local14].x, dummy[_local14].y, 5, 1);
if (dummy[_local14].health <= 0){
dummy[_local14].health = 0;
dummy[_local14].stunornot = 0;
dummy[_local14].cowardornot = 0;
};
dummy[_local14].mhpbar.hijau.width = ((35 * dummy[_local14].health) / dummy[_local14].maxHealth);
};
_local14++;
};
};
if ((((((whatitem == 3)) && (((cooldownitem % 3) == 0)))) && ((cooldownitem < 30)))){
_local15 = new item31();
_local16 = ((Math.random() * 200) + 200);
_local17 = ((Math.random() * 200) + 150);
_local15.x = _local16;
_local15.y = _local17;
_local18 = ((Math.random() * 200) + 400);
_local19 = ((Math.random() * 200) + 150);
_local20 = new item31();
_local20.x = _local18;
_local20.y = _local19;
addChild(_local15);
addChild(_local20);
_local15.gotoAndPlay(1);
_local20.gotoAndPlay(1);
};
if ((((whatitem == 3)) && ((cooldownitem == 15)))){
_local21 = 0;
while (_local21 < jumlahmonster) {
if (dummy[_local21].kondisi != 3){
dummy[_local21].health = (dummy[_local21].health - 100);
popupdamagemonster(dummy[_local21].x, dummy[_local21].y, 100, 1);
if (dummy[_local21].health <= 0){
dummy[_local21].health = 0;
dummy[_local21].stunornot = 0;
dummy[_local21].cowardornot = 0;
};
dummy[_local21].mhpbar.hijau.width = ((35 * dummy[_local21].health) / dummy[_local21].maxHealth);
};
_local21++;
};
};
if ((((whatitem == 2)) && ((cooldownitem == 14)))){
_local22 = 0;
while (_local22 < jumlahmonster) {
if (dummy[_local22].kondisi != 3){
dummy[_local22].health = (dummy[_local22].health - 5);
_local23 = (Math.random() * 100);
if (_local23 <= 25){
if (dummy[_local22].isboss == 0){
dummy[_local22].cowardornot = 1;
dummy[_local22].scaleX = 1;
dummy[_local22].mhpbar.scaleX = -1;
dummy[_local22].x = (dummy[_local22].x - dummy[_local22].width);
dummy[_local22].mhpbar.x = (dummy[_local22].mhpbar.x + (dummy[_local22].width / 2));
dummy[_local22].e1.gotoAndStop(1);
};
};
popupdamagemonster(dummy[_local22].x, dummy[_local22].y, 5, 1);
if (dummy[_local22].health <= 0){
dummy[_local22].health = 0;
dummy[_local22].stunornot = 0;
dummy[_local22].cowardornot = 0;
};
dummy[_local22].mhpbar.hijau.width = ((35 * dummy[_local22].health) / dummy[_local22].maxHealth);
};
_local22++;
};
};
absoluteorder();
lengthspawn = (lengthspawn + 1);
timercivilian = (timercivilian + 1);
cooldown = (cooldown + 1);
cooldownchange = (cooldownchange + 1);
if ((((timercivilian == maxtimespawncivil)) && ((wavelevel < 9)))){
if (jumlahcivilthislevel < civilianlevel[(level - 1)][sublevels]){
spawncvlns();
cooldown = 0;
sortdepth();
jumlahcivilthislevel = (jumlahcivilthislevel + 1);
};
timercivilian = 0;
};
if ((((((lengthspawn >= maxtimespawn)) && ((monsterlayar <= maxmonsterlayar)))) && ((stopspawn == 0)))){
spawns();
if (((((((((wavelevel % 9) == 0)) && ((level >= 3)))) && ((level <= 9)))) && ((wavelevel < 10)))){
wavecivil();
};
if (((((((((wavelevel % 4) == 0)) && ((level >= 10)))) && ((level <= 12)))) && ((wavelevel <= 8)))){
wavecivil();
};
if ((((((level >= 7)) && ((level <= 9)))) && (((wavelevel % 3) == 0)))){
spawnenemy(640, 200, 6, 1);
};
if ((((((level == 12)) && ((sublevels == 1)))) && ((wavelevel == 9)))){
spawnenemy(680, 300, 19, 1);
};
if ((((((level >= 10)) && ((level <= 12)))) && ((wavelevel == 6)))){
cavernofrememberance();
};
wavelevel = (wavelevel + 1);
cooldown = 0;
lengthspawn = 0;
sortdepth();
};
if (badcondition != 2){
recharge = (recharge + 1);
if (recharge > delaytime){
if ((((currentbulletused <= maxpelurushot)) && ((rechargebullet == 0)))){
canFire = true;
};
};
if ((((currentbulletused >= maxpelurushot)) || ((keypressed == "82")))){
if (currentbulletused > 0){
canFire = false;
if (rechargebullet == 0){
nanana.gotoAndStop(1);
reloadpesawattemp = Math.floor(((reloadpesawat * currentbulletused) / maxpelurushot));
modulus = Math.floor((reloadpesawattemp / 20));
if (modulus <= 0){
modulus = 1;
};
isreloading = true;
reloadanimation = (maxpelurushot - currentbulletused);
};
rechargebullet = (rechargebullet + 1);
if ((rechargebullet % modulus) == 0){
bulletnew.bshadow.width = ((160 * reloadanimation) / maxpelurushot);
if (reloadanimation < maxpelurushot){
reloadanimation = (reloadanimation + 1);
};
if (reloadanimation > maxpelurushot){
reloadanimation = maxpelurushot;
};
bulletnew.textpeluru.text = reloadanimation;
};
if (rechargebullet == reloadpesawattemp){
nanana.gotoAndStop(2);
currentbulletused = 0;
rechargebullet = 0;
setpeluruanimation(1);
reloadanimation = 12;
keypressed = "0";
isreloading = false;
};
} else {
keypressed = "";
};
};
if ((((mouseclicked == 0)) || ((mouseclicked >= 98)))){
_local24 = 0;
if ((((((upArrow == true)) && ((downArrow == false)))) && ((pesawat.y > 62)))){
stancechara = 3;
_local24 = (_local24 - speedjalan);
pesawat.y = (pesawat.y + _local24);
soundmeter = (soundmeter + 1);
if (((((!((mute == 1))) && ((((modepeluru == 1)) || ((modepeluru == 2)))))) && (((soundmeter % 10) == 0)))){
sechannel = jalan1.play();
};
if (((((!((mute == 1))) && ((modepeluru == 3)))) && (((soundmeter % 20) == 0)))){
sechannel = jalan7.play();
};
if (((((!((mute == 1))) && ((modepeluru == 4)))) && (((soundmeter % 10) == 0)))){
sechannel = jalan2.play();
};
pesawat.x = (pesawat.x + 0.3);
if (firsttimepressed == 0){
pesawat.chara1.gotoAndStop(3);
firsttimepressed = 1;
};
} else {
if ((((((downArrow == true)) && ((upArrow == false)))) && ((pesawat.y < 320)))){
stancechara = 2;
pesawat.x = (pesawat.x - 0.3);
_local24 = (_local24 + speedjalan);
pesawat.y = (pesawat.y + _local24);
soundmeter = (soundmeter + 1);
if (((((!((mute == 1))) && ((((modepeluru == 1)) || ((modepeluru == 2)))))) && (((soundmeter % 10) == 0)))){
sechannel = jalan1.play();
};
if (((((!((mute == 1))) && ((modepeluru == 3)))) && (((soundmeter % 20) == 0)))){
sechannel = jalan7.play();
};
if (((((!((mute == 1))) && ((modepeluru == 4)))) && (((soundmeter % 10) == 0)))){
sechannel = jalan2.play();
};
if (firsttimepressed == 0){
pesawat.chara1.gotoAndStop(2);
firsttimepressed = 1;
};
} else {
if ((((((((downArrow == false)) && ((upArrow == false)))) || ((pesawat.y >= 320)))) || ((pesawat.y <= 62)))){
firsttimepressed = 0;
downArrow = false;
upArrow = false;
if ((((mouseclicked == 0)) || ((mouseclicked >= 98)))){
stancechara = 1;
soundmeter = 0;
pesawat.chara1.gotoAndStop(1);
};
};
};
};
};
if ((((keypressed == "49")) && ((cooldownitem == 0)))){
keypressed = "0";
useitem(0);
cooldownitem = 1;
};
if ((((keypressed == "50")) && ((cooldownitem == 0)))){
keypressed = "0";
useitem(1);
cooldownitem = 1;
};
if ((((keypressed == "51")) && ((cooldownitem == 0)))){
keypressed = "0";
useitem(2);
cooldownitem = 1;
};
if (mouseclicked == 1){
if ((((currentbulletused <= maxpelurushot)) && ((rechargebullet == 0)))){
if (mouseX >= (pesawat.x + pesawat.width)){
if ((((sedangmenembak == 0)) && (((!((modepeluru == 3))) || ((((modepeluru == 3)) && ((adayangditembak == 1)))))))){
pesawat.chara1.gotoAndStop(4);
sedangmenembak = 1;
adayangditembak = 0;
};
stancechara = 4;
} else {
pesawat.chara1.gotoAndStop(1);
stancechara = 1;
sedangmenembak = 0;
};
} else {
pesawat.chara1.gotoAndStop(1);
stancechara = 1;
sedangmenembak = 0;
};
} else {
if (mouseclicked == 0){
if (upArrow == true){
pesawat.chara1.gotoAndStop(3);
stancechara = 3;
} else {
if (downArrow == true){
pesawat.chara1.gotoAndStop(2);
stancechara = 2;
} else {
pesawat.chara1.gotoAndStop(1);
stancechara = 1;
};
};
sedangmenembak = 0;
mouseclicked = 99;
pesawat.rotation = 0;
};
};
};
if (regenhpchara > 0){
wakturegenhpchara = (wakturegenhpchara + 1);
};
if (auragold > 0){
countergold = (countergold + 1);
};
if (regenhpwall > 0){
wakturegenhpwall = (wakturegenhpwall + 1);
};
if (countergold == 120){
gold = (gold + auragold);
popupgoldplayer(auragold);
countergold = 0;
};
if (wakturegenhpchara == 120){
mchealth = (mchealth + regenhpchara);
popuphealplayer(regenhpchara);
if (mchealth > mcmaxhealth){
mchealth = mcmaxhealth;
};
userinterface.hpbarchara.merah1.width = ((361 * mchealth) / mcmaxhealth);
userinterface.hpbarchara.merah2.width = ((361 * mchealth) / mcmaxhealth);
wakturegenhpchara = 0;
};
if ((((wakturegenhpwall == 120)) && ((barricadehp > 0)))){
barricadehp = (barricadehp + regenhpwall);
if (barricadehp > barricademaxhp){
barricadehp = barricademaxhp;
};
userinterface.hpbarwall.hijau1.width = ((308 * barricadehp) / barricademaxhp);
userinterface.hpbarwall.hijau2.width = ((308 * barricadehp) / barricademaxhp);
wakturegenhpwall = 0;
};
if ((((lah[0][2] > 0)) && ((modepeluru == 1)))){
if (auracrit != 301){
auracrit = (auracrit + 1);
};
if (auracrit == 300){
pesawat.mchpbar.visible = true;
crit = 100;
auracrit = 301;
};
if (auracrit > (301 + ((30 / 2) * lah[0][2]))){
pesawat.mchpbar.visible = false;
auracrit = 0;
crit = 0;
};
};
if ((((lah[1][3] > 0)) && ((modepeluru == 2)))){
auramiss = (auramiss + 1);
if (auramiss == 300){
pesawat.mchpbar.visible = true;
evade = 100;
};
if (auramiss > (300 + ((30 / 2) * lah[0][2]))){
pesawat.mchpbar.visible = false;
auramiss = 0;
evade = 0;
};
};
if ((((badcondition == 1)) && ((timebadcondition == 0)))){
speedjalan = (speedjalan - (speedjalan / 2));
};
if (badcondition > 0){
timebadcondition = (timebadcondition + 1);
};
if ((((badcondition == 1)) && ((timebadcondition >= 60)))){
timebadcondition = 0;
badcondition = 0;
if ((((modepeluru == 1)) || ((modepeluru == 2)))){
speedjalan = 4;
};
if (modepeluru == 3){
speedjalan = 3.5;
};
if (modepeluru == 4){
speedjalan = 3;
};
};
if ((((badcondition == 2)) && ((timebadcondition == 0)))){
pesawat.chara1.gotoAndStop(1);
stancechara = 1;
sedangmenembak = 0;
timebadcondition = (timebadcondition + 1);
};
if ((((((badcondition == 2)) && ((timebadcondition > 0)))) && ((timebadcondition < 60)))){
timebadcondition = (timebadcondition + 1);
};
if ((((badcondition == 2)) && ((timebadcondition == 60)))){
timebadcondition = 0;
badcondition = 0;
if ((((modepeluru == 1)) || ((modepeluru == 2)))){
speedjalan = 4;
};
if (modepeluru == 3){
speedjalan = 3.5;
};
if (modepeluru == 4){
speedjalan = 3;
};
};
};
};
}
public function mapbutton(_arg1:MouseEvent){
gobacktoworldmap = 1;
restarts = 0;
if (pauseornot == 1){
levelfailed = 1;
};
pauseornot = 0;
pausegame.x = 4000;
pausegame.y = 4000;
openingthesteinsgate(0);
waktuciviliansaved = 151;
Mouse.show();
nanana.visible = false;
}
public function restartbutton(_arg1:MouseEvent){
gobacktoworldmap = 0;
restarts = 1;
pauseornot = 0;
pausegame.x = 4000;
pausegame.y = 4000;
levelfailed = 1;
if (modehards == 1){
modeeasy();
};
waktuciviliansaved = 151;
restartornot = 1;
}
public function resumebutton(_arg1:MouseEvent){
pauseornot = 0;
pausegame.x = 4000;
pausegame.y = 4000;
userinterface.bpause.gotoAndStop(1);
Mouse.hide();
if (mute == 0){
volumes = 1;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
mychannel2.soundTransform = setransform;
} else {
volumes = 0;
setransform.volume = volumes;
sechannel.soundTransform = setransform;
mychannel1.soundTransform = setransform;
mychannel2.soundTransform = setransform;
};
}
public function removecivilian(_arg1){
var _local2:*;
_local2 = _arg1.currentTarget;
if (playresultscreen == 0){
_local2.waktuloncat = (_local2.waktuloncat + 1);
};
if ((((((((_local2.waktuloncat >= _local2.randomjump)) && ((_local2.waktuloncat < (_local2.randomjump + 5))))) && ((playresultscreen == 0)))) && ((idletime > 0)))){
_local2.y = (_local2.y - 3);
};
if ((((((((_local2.waktuloncat >= (_local2.randomjump + 5))) && ((_local2.waktuloncat < (_local2.randomjump + 10))))) && ((playresultscreen == 0)))) && ((idletime > 0)))){
_local2.y = (_local2.y + 3);
};
if ((((_local2.waktuloncat == (_local2.randomjump + 20))) && ((idletime > 0)))){
_local2.waktuloncat = 0;
};
if (idletime == 0){
if ((((wakturegenhpchara >= 110)) && ((wakturegenhpchara < 115)))){
if (_local2.tipe == 1){
_local2.colorcivil.brightness = (_local2.colorcivil.brightness + 0.2);
_local2.transform.colorTransform = _local2.colorcivil;
};
};
if ((((wakturegenhpchara >= 115)) && ((wakturegenhpchara < 120)))){
if (_local2.tipe == 1){
_local2.colorcivil.brightness = (_local2.colorcivil.brightness - 0.2);
_local2.transform.colorTransform = _local2.colorcivil;
};
};
if ((((wakturegenhpwall >= 110)) && ((wakturegenhpwall < 115)))){
if (_local2.tipe == 3){
_local2.colorcivil.brightness = (_local2.colorcivil.brightness + 0.2);
_local2.transform.colorTransform = _local2.colorcivil;
};
};
if ((((wakturegenhpwall >= 115)) && ((wakturegenhpwall < 120)))){
if (_local2.tipe == 3){
_local2.colorcivil.brightness = (_local2.colorcivil.brightness - 0.2);
_local2.transform.colorTransform = _local2.colorcivil;
};
};
if ((((wakturegenhpchara == 120)) || ((wakturegenhpchara == 0)))){
if (_local2.tipe == 1){
_local2.colorcivil.brightness = 0;
_local2.transform.colorTransform = _local2.colorcivil;
};
};
if ((((wakturegenhpwall == 120)) || ((wakturegenhpwall == 0)))){
if (_local2.tipe == 3){
_local2.colorcivil.brightness = 0;
_local2.transform.colorTransform = _local2.colorcivil;
};
};
};
if (idletime == 3){
if (_local2.tipe == 1){
_local2.colorcivil.brightness = 0;
_local2.transform.colorTransform = _local2.colorcivil;
};
if (_local2.tipe == 3){
_local2.colorcivil.brightness = 0;
_local2.transform.colorTransform = _local2.colorcivil;
};
};
if (waktuciviliansaved == 151){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, removecivilian);
};
}
public function buangduwek(_arg1){
var _local2:*;
_local2 = _arg1.currentTarget;
if (_local2.currentFrame == 18){
_local2.mc1.txt1.text = (("+" + String((50 + (10 * level)))) + " G");
};
if (_local2.currentFrame == 48){
_local2.gotoAndStop(49);
};
if (waktuciviliansaved == 151){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, buangduwek);
};
}
public function removepesawat(_arg1){
var _local2:*;
_local2 = _arg1.currentTarget;
if (waktuciviliansaved == 151){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, removepesawat);
};
}
public function removeui(_arg1){
var _local2:*;
_local2 = _arg1.currentTarget;
if ((((waktuciviliansaved == 151)) && ((steinsgatetimer == 14)))){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, removeui);
_local2.bpause.removeEventListener(MouseEvent.CLICK, pausing);
_local2.bmute.removeEventListener(MouseEvent.CLICK, muting);
};
}
public function removepeluru(_arg1){
var _local2:*;
_local2 = _arg1.currentTarget;
if ((((waktuciviliansaved == 151)) && ((steinsgatetimer == 14)))){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, removepeluru);
};
}
public function removeresultscreen(_arg1){
var _local2:*;
_local2 = _arg1.currentTarget;
if (waktuciviliansaved == 151){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, removeresultscreen);
_local2.summary.restarts.removeEventListener(MouseEvent.MOUSE_UP, restartbutton);
_local2.summary.maps.removeEventListener(MouseEvent.MOUSE_UP, mapbutton);
};
}
public function removeapocount(_arg1){
var _local2:*;
_local2 = _arg1.currentTarget;
if (apocount == 65){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, removeapocount);
};
}
public function efektembakan(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local3 = Math.floor(((Math.random() * 4) + 1));
if (_local3 == 1){
_local4 = new bulletpopout();
_local4.x = _arg1;
_local4.y = _arg2;
addChild(_local4);
setChildIndex(pesawat, (numChildren - 1));
if (mute != 1){
sechannel = bulletfall1.play();
};
};
if (_local3 == 2){
_local5 = new bulletpopup2();
_local5.x = _arg1;
_local5.y = _arg2;
addChild(_local5);
setChildIndex(pesawat, (numChildren - 1));
if (mute != 1){
sechannel = bulletfall2.play();
};
};
if (_local3 == 3){
_local6 = new bulletpopup3();
_local6.x = _arg1;
_local6.y = _arg2;
addChild(_local6);
setChildIndex(pesawat, (numChildren - 1));
if (mute != 1){
sechannel = bulletfall1.play();
};
};
if (_local3 == 4){
_local7 = new bulletpopup4();
_local7.x = _arg1;
_local7.y = _arg2;
addChild(_local7);
setChildIndex(pesawat, (numChildren - 1));
if (mute != 1){
sechannel = bulletfall2.play();
};
};
absoluteorder();
}
public function cekshortest(_arg1:int){
var _local2:int;
_local2 = 0;
while (_local2 < (jumlahmonster - 1)) {
if ((((((dummy[_local2].hitbylaser == 0)) && (!((dummy[_local2].kondisi == 3))))) && ((dummy[_local2].health > 0)))){
penambahans = Math.sqrt((Math.pow((dummy[_arg1].x - dummy[_local2].x), 2) + Math.pow((dummy[_arg1].y - dummy[_local2].y), 2)));
if (sebelums >= penambahans){
sebelums = penambahans;
indextarget = _local2;
pembuat = _local2;
};
};
_local2 = (_local2 + 1);
};
sebelums = 99999;
}
public function createchain(_arg1:int, _arg2:int, _arg3:int){
var _local4:Sprite;
var _local5:*;
var _local6:*;
var _local7:*;
if (_arg3 < jumlahmonster){
_local4 = new Sprite();
stage.addChild(_local4);
_local5 = new peluru((_arg1 - 20), _arg2);
_local5.gotoAndStop(2);
_local5.tipe = 1;
if (dummy[_arg3].tipe != 6){
targetlaser = (dummy[_arg3].x - (dummy[_arg3].width / 4));
targety = (dummy[_arg3].y - (dummy[_arg3].height / 2));
} else {
targetlaser = (dummy[_arg3].x + dummy[_arg3].width);
targety = (dummy[_arg3].y - (dummy[_arg3].height / 2));
};
_local6 = Math.atan2((targety - _arg2), (targetlaser - _arg1));
_local7 = new chaoshead();
_local7.x = _local5.x;
_local7.y = _local5.y;
_local7.rotation = ((_local6 * 180) / Math.PI);
_local4.addChild(_local7);
_local5.rotation = ((_local6 * 180) / Math.PI);
if ((targetlaser - _arg1) >= 0){
_local5.width = (targetlaser - _arg1);
} else {
_local5.width = (_arg1 - targetlaser);
};
_local5.addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
addChild(_local5);
dummy[_arg3].hitbylaser = 1;
};
gege = 1;
}
public function flyingobject(_arg1:MouseEvent):void{
nanana.x = (mouseX - 12);
nanana.y = (mouseY - 12);
}
public function clickenemycheck(_arg1:MouseEvent):void{
}
public function a(_arg1){
var _local2:Point;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:Point;
var _local8:Point;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:Point;
var _local13:Array;
var _local14:Array;
var _local15:Array;
var _local16:Array;
var _local17:Array;
var _local18:*;
var _local19:Point;
var _local20:*;
if (mouseclicked == 1){
if ((((((canFire == true)) && (!((pesawat.chara1.currentFrame == 2))))) && (!((pesawat.chara1.currentFrame == 3))))){
if (auracrit == 301){
auracrit = 302;
};
if (modepeluru != 3){
currentbulletused = (currentbulletused + 1);
setpeluruanimation((currentbulletused + 1));
canFire = false;
recharge = 0;
};
if (modepeluru == 1){
if (mute != 1){
sechannel = tembak1.play();
};
_local2 = pesawat.chara1.mc.b2.upeluru.localToGlobal(new Point());
_local3 = Math.atan2((mouseY - pesawat.y), (mouseX - pesawat.x));
_local4 = ((_local3 * 180) / Math.PI);
_local5 = new infantryefekserang();
_local5.x = _local2.x;
_local5.y = _local2.y;
_local5.rotation = _local4;
addChild(_local5);
pesawat.chara1.mc.b2.rotation = ((Math.atan2((mouseY - _local2.y), (mouseX - _local2.x)) * 180) / Math.PI);
_local6 = new peluru(_local2.x, _local2.y);
_local6.angles = Math.atan2((mouseY - _local2.y), (mouseX - _local2.x));
_local6.tipe = 0;
_local6.addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
addChild(_local6);
_local6.gotoAndStop(6);
_local7 = pesawat.chara1.mc.b2.localToGlobal(new Point());
efektembakan(_local7.x, _local7.y);
} else {
if (modepeluru == 2){
if (mute != 1){
sechannel = tembak1.play();
};
_local8 = pesawat.chara1.mc.bazo.ubazo.localToGlobal(new Point());
_local9 = Math.atan2((mouseY - pesawat.y), (mouseX - pesawat.x));
_local10 = ((_local9 * 180) / Math.PI);
_local11 = new infantryefekserang();
_local11.x = _local8.x;
_local11.y = _local8.y;
_local11.rotation = _local10;
addChild(_local11);
pesawat.chara1.mc.bazo.rotation = ((Math.atan2((mouseY - _local8.y), (mouseX - _local8.x)) * 180) / Math.PI);
if (lah[1][1] == 0){
inc = 0;
while (inc <= 0) {
_local13 = [];
_local13[tambah] = new peluru(_local8.x, _local8.y);
_local13[tambah].tipe = 0;
_local13[tambah].angles = (Math.atan2((mouseY - _local8.y), (mouseX - _local8.x)) + inc);
_local13[tambah].addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
addChild(_local13[tambah]);
_local13[tambah].gotoAndStop(6);
tambah = (tambah + 1);
inc = (inc + 1);
};
};
if (lah[1][1] == 1){
inc = -0.1;
while (inc <= 0.1) {
_local14 = [];
_local14[tambah] = new peluru(_local8.x, _local8.y);
_local14[tambah].tipe = 0;
_local14[tambah].angles = (Math.atan2((mouseY - _local8.y), (mouseX - _local8.x)) + inc);
_local14[tambah].addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
addChild(_local14[tambah]);
_local14[tambah].gotoAndStop(6);
tambah = (tambah + 1);
inc = (inc + 0.2);
};
};
if (lah[1][1] == 2){
inc = -0.2;
while (inc <= 0.2) {
_local15 = [];
_local15[tambah] = new peluru(_local8.x, _local8.y);
_local15[tambah].tipe = 0;
_local15[tambah].angles = (Math.atan2((mouseY - _local8.y), (mouseX - _local8.x)) + inc);
_local15[tambah].addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
addChild(_local15[tambah]);
_local15[tambah].gotoAndStop(6);
tambah = (tambah + 1);
inc = (inc + 0.2);
};
};
if (lah[1][1] == 3){
inc = -0.2;
while (inc <= 0.1) {
_local16 = [];
_local16[tambah] = new peluru(_local8.x, _local8.y);
_local16[tambah].tipe = 0;
_local16[tambah].angles = (Math.atan2((mouseY - _local8.y), (mouseX - _local8.x)) + inc);
_local16[tambah].addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
addChild(_local16[tambah]);
_local16[tambah].gotoAndStop(6);
tambah = (tambah + 1);
inc = (inc + 0.1);
};
};
if (lah[1][1] == 4){
inc = -0.16;
while (inc <= 0.16) {
_local17 = [];
_local17[tambah] = new peluru(_local8.x, _local8.y);
_local17[tambah].tipe = 0;
_local17[tambah].angles = (Math.atan2((mouseY - _local8.y), (mouseX - _local8.x)) + inc);
_local17[tambah].addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
addChild(_local17[tambah]);
_local17[tambah].gotoAndStop(6);
tambah = (tambah + 1);
inc = (inc + 0.08);
};
};
_local12 = pesawat.chara1.mc.bazo.localToGlobal(new Point());
efektembakan(_local12.x, _local12.y);
tambah = 1;
} else {
if (modepeluru == 4){
if (mute != 1){
sechannel = tembak3.play();
};
pesawat.chara1.utank.visible = false;
_local18 = new load2();
_local19 = pesawat.chara1.utank.localToGlobal(new Point());
_local18.x = _local19.x;
_local18.y = _local19.y;
_local18.rotation = -90;
addChild(_local18);
_local20 = new peluru((_local19.x + 10), _local19.y);
_local20.tipe = 2;
xtarget = mouseX;
ytarget = mouseY;
_local20.addEventListener(Event.ENTER_FRAME, bulletEnterFrame);
_local20.visible = false;
addChild(_local20);
_local20.gotoAndStop(7);
};
};
};
};
};
}
public function popupdamagemonster(_arg1, _arg2, _arg3, _arg4){
var _local5:*;
var _local6:Sprite;
var _local7:*;
var _local8:Sprite;
var _local9:*;
_local5 = Math.floor(((Math.random() * 3) + 1));
if (_arg4 == 1.5){
_local6 = new Sprite();
_local7 = new dmggainedcrit();
_local7.x = _arg1;
_local7.y = _arg2;
_local7.damagebox.damagetext.text = String(_arg3);
stage.addChild(_local6);
_local6.addChild(_local7);
_local7.gotoAndPlay("damageatas");
} else {
_local8 = new Sprite();
_local9 = new dmggained();
_local9.x = _arg1;
_local9.y = _arg2;
_local9.damagebox.damagetext.text = String(_arg3);
_local9.scaleX = _arg4;
_local9.scaleY = _arg4;
stage.addChild(_local8);
_local8.addChild(_local9);
if (_local5 == 1){
_local9.gotoAndPlay("damageatas");
};
if (_local5 == 2){
_local9.gotoAndPlay("damagebawah");
};
if (_local5 == 3){
_local9.gotoAndPlay("damagetengah");
};
};
}
public function sharpnelmovement(_arg1){
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget;
_local2.waktu = (_local2.waktu + 1);
if (_local2.arah == 1){
_local2.rotation = _local2.angles;
if (_local2.angles < 90){
_local2.angles = (_local2.angles + 10);
};
if (_local2.waktu < 10){
_local2.x = (_local2.x + _local2.randomx);
_local2.y = (_local2.y - _local2.speeds);
_local2.speeds = (_local2.speeds - 0.1);
};
if (_local2.waktu > 9){
_local2.x = (_local2.x + _local2.randomx);
_local2.y = (_local2.y + _local2.speeds);
_local2.speeds = (_local2.speeds + 1);
};
};
if (_local2.arah == 2){
_local2.rotation = _local2.angles;
if (_local2.angles > -270){
_local2.angles = (_local2.angles - 10);
};
if (_local2.waktu < 10){
_local2.x = (_local2.x - _local2.randomx);
_local2.y = (_local2.y - _local2.speeds);
_local2.speeds = (_local2.speeds - 0.1);
};
if (_local2.waktu > 9){
_local2.x = (_local2.x - _local2.randomx);
_local2.y = (_local2.y + _local2.speeds);
_local2.speeds = (_local2.speeds + 1);
};
};
if (_local2.waktu == _local2.lifetime){
_local3 = new ledak2();
_local3.x = _local2.x;
_local3.y = _local2.y;
addChild(_local3);
_local3.addEventListener(Event.ENTER_FRAME, ledakansharpnel);
absoluteorder();
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, sharpnelmovement);
};
if (waktuciviliansaved == 151){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, sharpnelmovement);
};
}
public function ledakansharpnel(_arg1){
var _local2:*;
var _local3:int;
_local2 = _arg1.currentTarget;
if (_local2.currentFrame == 10){
_local3 = 0;
while (_local3 < (jumlahmonster - 1)) {
if ((((((dummy[_local3].health > 0)) && (!((dummy[_local3].kondisi == 3))))) && ((cooldown > 3)))){
if (_local2.hitTestObject(dummy[_local3].e1.sh)){
dummy[_local3].health = (dummy[_local3].health - Math.floor((damagebullet[3] / 2)));
popupdamagemonster(_local2.x, _local2.y, (damagebullet[3] / 2), 1);
if (dummy[_local3].health <= 0){
dummy[_local3].health = 0;
};
dummy[_local3].mhpbar.hijau.width = ((35 * dummy[_local3].health) / dummy[_local3].maxHealth);
};
};
_local3++;
};
};
if (_local2.currentFrame == 25){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, ledakansharpnel);
};
}
public function volcanblaze(_arg1){
var _local2:*;
var _local3:int;
_local2 = _arg1.currentTarget;
_local2.timevolcano = (_local2.timevolcano + 1);
if ((_local2.timevolcano % 30) == 0){
if (cooldown >= 2){
_local3 = 0;
while (_local3 < jumlahmonster) {
if (dummy[_local3] != undefined){
if ((((dummy[_local3].health > 0)) && (!((dummy[_local3].kondisi == 3))))){
if (_local2.hv.hitTestObject(dummy[_local3].e1.sh)){
dummy[_local3].health = (dummy[_local3].health - (2 + (lah[3][3] * 2)));
popupdamagemonster(dummy[_local3].x, _local2.y, (2 + (lah[3][3] * 2)), 1);
if (dummy[_local3].health <= 0){
dummy[_local3].health = 0;
};
dummy[_local3].mhpbar.hijau.width = ((35 * dummy[_local3].health) / dummy[_local3].maxHealth);
};
};
};
_local3++;
};
};
};
if ((((_local2.timevolcano >= 151)) || ((waktuciviliansaved > 149)))){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, volcanblaze);
};
}
public function bulletEnterFrame(_arg1){
var _local2:*;
var _local3:*;
var _local4:Sprite;
var _local5:*;
var _local6:*;
var _local7:int;
var _local8:int;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
_local2 = 20;
_local3 = _arg1.currentTarget;
_local3.visible = true;
if (pauseornot == 0){
if ((((((_local3.tipe == 0)) || ((_local3.tipe == 3)))) || ((_local3.tipe == 4)))){
_local3.x = (_local3.x + (Math.cos(_local3.angles) * _local2));
_local3.y = (_local3.y + (Math.sin(_local3.angles) * _local2));
_local3.rotation = ((_local3.angles * 180) / Math.PI);
} else {
if (_local3.tipe == 1){
_local3.waktubom = (_local3.waktubom + 1);
if (_local3.waktubom == 5){
if (dummy[pembuat].kondisi != 3){
if (laserreduction >= damagebullet[2]){
laserreduction = (damagebullet[2] - 1);
};
if (dummy[pembuat].tipe != 18){
if (mute != 1){
sechannel = bullet2hit.play();
};
dummy[pembuat].health = (dummy[pembuat].health - (damagebullet[2] - laserreduction));
popupdamagemonster(dummy[pembuat].x, dummy[pembuat].y, (damagebullet[2] - laserreduction), 1);
} else {
if (mute != 1){
sechannel = bullet2hit.play();
};
if ((((dummy[pembuat].counterdamage < 80)) || ((dummy[pembuat].counterdamage > 175)))){
dummy[pembuat].health = (dummy[pembuat].health - 1);
popupdamagemonster(dummy[pembuat].x, dummy[pembuat].y, 1, 1);
} else {
dummy[pembuat].health = (dummy[pembuat].health - (damagebullet[2] - laserreduction));
popupdamagemonster(dummy[pembuat].x, dummy[pembuat].y, (damagebullet[2] - laserreduction), 1);
};
};
laserreduction = (laserreduction + (6 - lah[2][2]));
if (dummy[pembuat].health <= 0){
dummy[pembuat].health = 0;
};
dummy[pembuat].mhpbar.hijau.width = ((35 * dummy[pembuat].health) / dummy[pembuat].maxHealth);
if (monsterlayar > 1){
cekshortest(pembuat);
if ((((bounce < maxbounce)) && ((monsterlayar > bounce)))){
if (((!((dummy[indextarget].kondisi == 3))) && ((dummy[indextarget].hitbylaser == 0)))){
createchain(targetlaser, targety, indextarget);
bounce = (bounce + 1);
} else {
if (dummy[indextarget] == 18){
bounce = 0;
};
};
};
};
};
};
if (_local3.waktubom == 20){
_local3.waktubom = 0;
removeChild(_local3);
_local3.removeEventListener(Event.ENTER_FRAME, bulletEnterFrame);
};
} else {
if (_local3.tipe == 2){
if (_local3.firstscene == 0){
_local3.rotation = -90;
_local3.y = (_local3.y - _local2);
} else {
if ((((_local3.firstscene == 1)) && ((_local3.y < ytarget)))){
_local3.rotation = 90;
_local3.y = (_local3.y + _local2);
} else {
if (_local3.y >= ytarget){
_local3.waktubom = (_local3.waktubom + 1);
_local4 = new Sprite();
stage.addChild(_local4);
_local5 = new ledak3();
_local5.x = _local3.x;
_local5.y = _local3.y;
_local5.visible = false;
_local5.ledakantank.visible = false;
_local4.addChild(_local5);
if (cooldown >= 1){
mbledos = 1;
_local3.firstscene = 0;
};
};
};
};
if ((((_local3.y <= -90)) && ((_local3.firstscene == 0)))){
_local3.firstscene = 1;
_local3.x = xtarget;
};
};
};
};
if (cooldown >= 1){
if (mbledos == 1){
if (_local3.waktubom >= 1){
_local5.visible = true;
if (lah[3][3] > 0){
_local9 = new volcano();
_local9.x = (_local5.x - 20);
_local9.y = (_local5.y - 20);
_local9.addEventListener(Event.ENTER_FRAME, volcanblaze);
addChild(_local9);
burninggrounds = (burninggrounds + 1);
};
if (lah[3][1] > 0){
_local10 = 0;
while (_local10 < lah[3][1]) {
_local11 = new sharpnel();
_local11.x = _local5.x;
_local11.y = (_local5.y - 20);
_local11.waktu = 0;
_local11.arah = Math.floor(((Math.random() * 2) + 1));
_local11.angles = -90;
_local11.incangles = Math.floor(((Math.random() * 10) + 1));
_local11.speeds = (8 + Math.floor(((Math.random() * 10) + 1)));
_local11.randomx = Math.floor(((Math.random() * 8) + 1));
_local11.lifetime = Math.floor(((Math.random() * 3) + 20));
addChild(_local11);
_local11.addEventListener(Event.ENTER_FRAME, sharpnelmovement);
_local10 = (_local10 + 1);
};
};
};
_local8 = 0;
while (_local8 < jumlahmonster) {
if (dummy[_local8] != undefined){
if ((((dummy[_local8].health > 0)) && (!((dummy[_local8].kondisi == 3))))){
if (_local5.ledakantank.hitTestObject(dummy[_local8].e1.sh)){
if (_local3.critornot < crit){
dummy[_local8].health = (dummy[_local8].health - (damagebullet[3] * 2));
popupdamagemonster(_local3.x, _local3.y, (damagebullet[3] * 2), 1.5);
} else {
dummy[_local8].health = (dummy[_local8].health - damagebullet[3]);
popupdamagemonster(_local3.x, _local3.y, damagebullet[3], 1);
};
if (dummy[_local8].health <= 0){
dummy[_local8].health = 0;
};
dummy[_local8].mhpbar.hijau.width = ((35 * dummy[_local8].health) / dummy[_local8].maxHealth);
};
};
};
_local8++;
};
if (mute != 1){
sechannel = bullet3hit.play();
};
removeChild(_local3);
_local3.removeEventListener(Event.ENTER_FRAME, bulletEnterFrame);
mbledos = 0;
};
_local6 = 0;
_local7 = 0;
while (_local7 < jumlahmonster) {
if (dummy[_local7] != undefined){
if (dummy[_local7].health > 0){
if (dummy[_local7].tipe == 19){
if (((((_local3.hitTestObject(dummy[_local7].e1.bol1)) && ((_local3.laserhit == 0)))) && ((bolhp[0] > 0)))){
if (mute != 1){
sechannel = voidabs.play();
};
bolhp[0] = (bolhp[0] - 1);
if (bolhp[0] <= 0){
dummy[_local7].e1.bol1.visible = false;
};
_local3.laserhit = 1;
_local6 = (_local6 + 1);
};
if (((((_local3.hitTestObject(dummy[_local7].e1.bol2)) && ((_local3.laserhit == 0)))) && ((bolhp[1] > 0)))){
if (mute != 1){
sechannel = voidabs.play();
};
bolhp[1] = (bolhp[1] - 1);
if (bolhp[1] <= 0){
dummy[_local7].e1.bol2.visible = false;
};
_local3.laserhit = 1;
_local6 = (_local6 + 1);
};
if (((((_local3.hitTestObject(dummy[_local7].e1.bol3)) && ((_local3.laserhit == 0)))) && ((bolhp[2] > 0)))){
if (mute != 1){
sechannel = voidabs.play();
};
bolhp[2] = (bolhp[2] - 1);
if (bolhp[2] <= 0){
dummy[_local7].e1.bol3.visible = false;
};
_local3.laserhit = 1;
_local6 = (_local6 + 1);
};
if (((((_local3.hitTestObject(dummy[_local7].e1.bol4)) && ((_local3.laserhit == 0)))) && ((bolhp[3] > 0)))){
if (mute != 1){
sechannel = voidabs.play();
};
bolhp[3] = (bolhp[3] - 1);
if (bolhp[3] <= 0){
dummy[_local7].e1.bol4.visible = false;
};
_local3.laserhit = 1;
_local6 = (_local6 + 1);
};
};
if (((((_local3.hitTestObject(dummy[_local7].e1.sh)) && ((_local3.laserhit == 0)))) && ((((((_local3.tipe == 0)) || ((_local3.tipe == 3)))) || ((_local3.tipe == 4)))))){
if (_local3.tipe == 0){
if (dummy[_local7].tipe != 18){
if (_local3.critornot < crit){
if ((((_local3.critornot > crit)) && ((modepeluru == 1)))){
dummy[_local7].health = (dummy[_local7].health - (damagebullet[0] * 2));
popupdamagemonster(_local3.x, _local3.y, (damagebullet[0] * 2), 1.5);
} else {
if ((((((((_local3.critornot < crit)) && ((modepeluru == 1)))) && ((dummy[_local7].isboss == 0)))) && ((auracrit > 300)))){
dummy[_local7].health = (dummy[_local7].health - 9999);
popupdamagemonster(_local3.x, _local3.y, 9999, 1.5);
} else {
dummy[_local7].health = (dummy[_local7].health - (damagebullet[0] * 2));
popupdamagemonster(_local3.x, _local3.y, (damagebullet[0] * 2), 1.5);
};
};
} else {
dummy[_local7].health = (dummy[_local7].health - damagebullet[0]);
popupdamagemonster(_local3.x, _local3.y, damagebullet[0], 1);
};
} else {
if ((((dummy[_local7].counterdamage < 80)) || ((dummy[_local7].counterdamage > 175)))){
if (_local3.critornot < crit){
dummy[_local7].health = (dummy[_local7].health - 2);
popupdamagemonster(_local3.x, _local3.y, 2, 1.5);
} else {
dummy[_local7].health = (dummy[_local7].health - 1);
popupdamagemonster(_local3.x, _local3.y, 1, 1);
};
} else {
if (_local3.critornot < crit){
dummy[_local7].health = (dummy[_local7].health - (damagebullet[0] * 2));
popupdamagemonster(_local3.x, _local3.y, (damagebullet[0] * 2), 1.5);
} else {
dummy[_local7].health = (dummy[_local7].health - damagebullet[0]);
popupdamagemonster(_local3.x, _local3.y, damagebullet[0], 1);
};
};
};
};
if (_local3.tipe == 4){
if (_local3.critornot < crit){
dummy[_local7].health = (dummy[_local7].health - (damagebullet[4] * 2));
popupdamagemonster(_local3.x, _local3.y, (damagebullet[4] * 2), 1.5);
} else {
dummy[_local7].health = (dummy[_local7].health - damagebullet[4]);
popupdamagemonster(_local3.x, _local3.y, damagebullet[4], 1);
};
};
if (dummy[_local7].health <= 0){
dummy[_local7].health = 0;
};
_local3.laserhit = 1;
dummy[_local7].mhpbar.hijau.width = ((35 * dummy[_local7].health) / dummy[_local7].maxHealth);
_local12 = new ledak();
_local12.x = _local3.x;
_local12.y = _local3.y;
addChild(_local12);
_local6 = (_local6 + 1);
};
};
};
_local7++;
};
};
if ((((_local6 > 0)) && ((((((_local3.tipe == 0)) || ((_local3.tipe == 3)))) || ((_local3.tipe == 4)))))){
removeChild(_local3);
_local3.removeEventListener(Event.ENTER_FRAME, bulletEnterFrame);
_local6 = 0;
} else {
if ((((((((((_local3.x <= 0)) || ((_local3.x >= 640)))) || ((_local3.y <= 0)))) || ((_local3.y >= 480)))) && ((((((_local3.tipe == 0)) || ((_local3.tipe == 3)))) || ((_local3.tipe == 4)))))){
removeChild(_local3);
_local3.removeEventListener(Event.ENTER_FRAME, bulletEnterFrame);
};
};
};
if ((((waktuciviliansaved == 151)) && ((steinsgatetimer == 0)))){
removeChild(_local3);
_local3.removeEventListener(Event.ENTER_FRAME, bulletEnterFrame);
};
}
public function handlePress(_arg1:MouseEvent){
if (mouseY >= 372){
} else {
if (mouseX <= 101){
} else {
if ((((((((onworldmap == 1)) && ((((stopspawn == 0)) || ((monsterlayar > 0)))))) && ((pauseornot == 0)))) && ((mchealth > 0)))){
mouseclicked = 1;
} else {
if ((((((((stopspawn == 1)) || ((monsterlayar <= 0)))) && ((stopresultscreen == 0)))) && ((playresultscreen >= 22)))){
stopresultscreen = 1;
};
};
};
};
}
public function handleRelease(_arg1:MouseEvent){
mouseclicked = 0;
}
public function keyPressed(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 38)) || ((((_arg1.keyCode == 87)) && ((upArrow == false)))))){
upArrow = true;
downArrow = false;
firsttimepressed = 0;
};
if ((((_arg1.keyCode == 40)) || ((((_arg1.keyCode == 83)) && ((downArrow == false)))))){
downArrow = true;
upArrow = false;
firsttimepressed = 0;
};
if (((((((!((_arg1.keyCode == 40))) && (!((_arg1.keyCode == 83))))) && (!((_arg1.keyCode == 38))))) && (!((_arg1.keyCode == 87))))){
keypressed = String(_arg1.keyCode);
};
cobacounter = (cobacounter + 1);
}
public function basicstance(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 38)) || ((_arg1.keyCode == 87)))){
upArrow = false;
firsttimepressed = 0;
};
if ((((_arg1.keyCode == 40)) || ((_arg1.keyCode == 83)))){
downArrow = false;
firsttimepressed = 0;
};
}
public function wavecivil(){
var _local1:*;
awaveofcivil = 140;
_local1 = 0;
while (_local1 < 6) {
spawncvlns();
cooldown = 0;
sortdepth();
jumlahcivilthislevel = (jumlahcivilthislevel + 1);
awaveofcivil = (awaveofcivil + 40);
_local1 = (_local1 + 1);
};
awaveofcivil = 0;
}
public function spawncvlns():void{
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 680;
_local2 = Math.floor(((Math.random() * 130) + 142));
_local3 = Math.floor(((Math.random() * 3) + 1));
if (level <= 3){
_local3 = 1;
};
if (awaveofcivil == 0){
spawncivilian(_local1, _local2, _local3, 1);
} else {
spawncivilian(_local1, awaveofcivil, _local3, 1);
};
spawnenemy(820, (exey + 30), 14, 1);
}
public function spawncivilian(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{
var _local5:*;
var _local6:*;
_local5 = 0;
while (_local5 < _arg4) {
_local6 = new civilian();
_local6.x = _arg1;
_local6.y = _arg2;
exey = _local6.y;
_local6.kondisi = 1;
_local6.locks = 0;
_local6.maxHealth = 1;
_local6.speeds = 3;
_local6.tipe = _arg3;
_local6.health = _local6.maxHealth;
_local6.gotoAndStop(_arg3);
_local6.addEventListener(Event.ENTER_FRAME, civilianEnterFrame);
addChild(_local6);
civilians.push(_local6);
jumlahcivilians = (jumlahcivilians + 1);
_local6.jp.visible = false;
_local5++;
};
civillayar = (civillayar + 1);
}
public function civilianEnterFrame(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.currentTarget;
if (pauseornot == 1){
if (cooldown > 5){
_local2.a1.b1.gotoAndStop(_local2.a1.b1.currentFrame);
};
};
if ((((((pauseornot == 0)) && ((mchealth > 0)))) && ((idletime == 0)))){
_local2.timercivil = (_local2.timercivil + 1);
if (_local2.timercivil == 1){
_local2.a1.gotoAndStop(1);
};
if ((((_local2.hitTestObject(temboks.sh) == false)) && (!((_local2.kondisi == 3))))){
_local2.x = (_local2.x - _local2.speeds);
if (_local2.killer == -1){
_local2.killer = executionmarks;
};
} else {
if (_local2.kondisi != 3){
_local2.x = (_local2.x - 1);
};
};
if (dummy[_local2.killer].kondisi == 3){
_local2.executionmark.visible = false;
};
if ((((((_local2.hitTestObject(temboks.sh) == true)) && ((_local2.y > 170)))) && (!((_local2.kondisi == 3))))){
_local2.a1.b1.gotoAndStop(1);
_local2.jp.visible = true;
_local2.y = (_local2.y - 1);
} else {
if ((((((_local2.hitTestObject(temboks.sh) == true)) && ((_local2.y <= 170)))) && (!((_local2.kondisi == 3))))){
_local2.a1.b1.gotoAndStop(1);
_local2.jp.visible = true;
_local2.y = (_local2.y - 0.5);
} else {
if ((((((((((_local2.hitTestObject(temboks.sh) == false)) && ((_local2.x > 0)))) && ((_local2.x < 250)))) && (!((_local2.kondisi == 3))))) && ((_local2.locks == 0)))){
_local2.a1.b1.gotoAndPlay(1);
_local2.jp.visible = false;
_local2.locks = 1;
};
};
};
if ((((_local2.kondisi == 3)) && ((_local2.x > 100)))){
_local2.countermati = (_local2.countermati + 1);
if (_local2.countermati == 1){
_local2.a1.gotoAndStop(2);
};
};
if ((((_local2.kondisi == 3)) && ((_local2.countermati == 21)))){
civillayar = (civillayar - 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, civilianEnterFrame);
};
if (_local2.x <= 0){
_local3 = 0;
civillayar = (civillayar - 1);
civiliansaved[jumlahciviliansaved] = _local2.tipe;
jumlahciviliansaved = (jumlahciviliansaved + 1);
_local4 = new civilianssaved();
_local4.x = civposx;
_local4.y = civposy;
_local4.tipe = _local2.tipe;
civposx = (civposx + 20);
if (civposx >= 200){
civposx = 0;
civposy = (civposy + 20);
};
_local4.gotoAndStop(_local2.tipe);
_local4.addEventListener(Event.ENTER_FRAME, removecivilian);
addChild(_local4);
if (_local2.tipe == 1){
if (encountermusuh[10] == 0){
spawntut = 160;
};
};
if (_local2.tipe == 2){
if (encountermusuh[23] == 0){
spawntut = 360;
};
};
if (_local2.tipe == 3){
if (encountermusuh[11] == 0){
spawntut = 260;
};
};
if (_local2.tipe == 1){
regenhpchara = (regenhpchara + 1);
};
if (_local2.tipe == 2){
auragold = (auragold + 1);
};
if (_local2.tipe == 3){
regenhpwall = (regenhpwall + 1);
};
_local2.kondisi = 3;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, civilianEnterFrame);
};
};
if (waktuciviliansaved == 151){
_local2.kondisi = 3;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, civilianEnterFrame);
};
}
public function spawns():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
if ((((((((((level == 3)) && ((sublevels == 2)))) && ((wavelevel == 13)))) || ((((((level == 6)) && ((sublevels == 2)))) && ((wavelevel == 16)))))) || ((((((level == 9)) && ((sublevels == 2)))) && ((wavelevel == 10)))))){
mychannel1.stop();
mytransform2.volume = volumes;
mychannel2 = bossbattletheme.play(0, 9999);
mychannel2.soundTransform = mytransform2;
};
if ((((((level == 12)) && ((sublevels == 2)))) && ((wavelevel == 21)))){
mychannel1.stop();
mytransform2.volume = volumes;
mychannel2 = decesivebattle.play(0, 9999);
mychannel2.soundTransform = mytransform2;
};
if (wavelevel <= wavelevels[(level - 1)]){
if (level == 1){
if (wavelevel <= 2){
jumlahspawn = 1;
};
if ((((wavelevel >= 3)) && ((wavelevel <= 7)))){
jumlahspawn = 2;
};
if (wavelevel >= 8){
jumlahspawn = 3;
};
};
if (level == 2){
if (wavelevel <= 2){
jumlahspawn = 1;
};
if ((((wavelevel >= 3)) && ((wavelevel <= 9)))){
jumlahspawn = 2;
};
if ((((wavelevel > 9)) && ((wavelevel <= 11)))){
jumlahspawn = 3;
};
if (wavelevel == 12){
jumlahspawn = 5;
};
};
if ((((level == 3)) || ((level == 4)))){
if (wavelevel <= 2){
jumlahspawn = 2;
};
if ((((wavelevel >= 3)) && ((wavelevel <= 8)))){
jumlahspawn = 2;
};
if ((((wavelevel > 8)) && ((wavelevel <= 11)))){
jumlahspawn = 3;
};
if ((((wavelevel > 11)) && ((wavelevel <= 13)))){
jumlahspawn = 4;
};
if (wavelevel == 14){
jumlahspawn = 5;
};
};
if (level == 5){
if (wavelevel <= 2){
jumlahspawn = 3;
};
if ((((wavelevel >= 3)) && ((wavelevel <= 11)))){
jumlahspawn = 4;
};
if ((((wavelevel > 11)) && ((wavelevel <= 15)))){
jumlahspawn = 6;
};
if (wavelevel == 16){
jumlahspawn = 8;
};
};
if (level == 6){
if (wavelevel <= 2){
jumlahspawn = 3;
};
if ((((wavelevel >= 3)) && ((wavelevel <= 11)))){
jumlahspawn = 4;
};
if ((((wavelevel > 11)) && ((wavelevel <= 17)))){
jumlahspawn = 6;
};
if (wavelevel == 18){
jumlahspawn = 8;
};
};
if ((((level >= 7)) && ((level <= 9)))){
if (wavelevel == 1){
jumlahspawn = 3;
};
if (wavelevel == 2){
jumlahspawn = 3;
};
if (wavelevel == 3){
jumlahspawn = 4;
};
if (wavelevel == 4){
jumlahspawn = 5;
};
if (wavelevel == 5){
jumlahspawn = 8;
};
if (wavelevel == 6){
jumlahspawn = 7;
};
if (wavelevel == 7){
jumlahspawn = 10;
};
};
if (level >= 10){
if (wavelevel == 1){
jumlahspawn = 1;
};
if (wavelevel == 2){
jumlahspawn = 2;
};
if (wavelevel == 3){
jumlahspawn = 3;
};
if (wavelevel == 4){
jumlahspawn = 2;
};
if (wavelevel == 5){
jumlahspawn = 2;
};
if (wavelevel == 6){
jumlahspawn = 2;
};
if (wavelevel >= 7){
jumlahspawn = 3;
};
};
o1 = 0;
o2 = 0;
o3 = 0;
o4 = 0;
kaliini = 0;
tambahtambahan = 100;
if (jmlmonsternow >= maxmonsterlevel[(level - 1)][sublevels]){
jumlahspawn = 0;
};
if ((((level >= 7)) && ((level <= 9)))){
ytankpertama = Math.floor(((Math.random() * 100) + 135));
};
tipetank = -1;
_local2 = 0;
_local3 = 0;
while (_local3 < jumlahspawn) {
_local4 = 680;
_local5 = Math.floor(((Math.random() * 20) + 225));
_local6 = Math.floor((Math.random() * 4));
if ((((_local6 == 0)) && ((o1 == 0)))){
_local5 = Math.floor(((Math.random() * 20) + 205));
o1 = 1;
} else {
if ((((_local6 == 0)) && ((o1 == 1)))){
_local5 = Math.floor(((Math.random() * 20) + 215));
o1 = 2;
};
};
if ((((_local6 == 1)) && ((o2 == 0)))){
_local5 = Math.floor(((Math.random() * 20) + 225));
o2 = 1;
} else {
if ((((_local6 == 1)) && ((o2 == 1)))){
_local5 = Math.floor(((Math.random() * 20) + 235));
o2 = 2;
};
};
if ((((_local6 == 2)) && ((o3 == 0)))){
_local5 = Math.floor(((Math.random() * 20) + 245));
o3 = 1;
} else {
if ((((_local6 == 2)) && ((o3 == 1)))){
_local5 = Math.floor(((Math.random() * 20) + 0xFF));
o3 = 2;
};
};
if ((((_local6 == 3)) && ((o4 == 0)))){
_local5 = Math.floor(((Math.random() * 20) + 265));
o4 = 1;
} else {
if ((((_local6 == 3)) && ((o4 == 1)))){
_local5 = Math.floor(((Math.random() * 20) + 275));
o4 = 2;
};
};
_local7 = 0;
while ((((_local7 == 0)) && ((jmlmonsternow < maxmonsterlevel[(level - 1)][sublevels])))) {
_local8 = Math.floor((Math.random() * tipemonsterlevel[(level - 1)].length));
if ((((sudahspawnmonster[_local8] < banyaktipemonsterlevel[(level - 1)][sublevels][_local8])) && (!((tipemonsterlevel[(level - 1)][_local8] == 0))))){
_local7 = 1;
};
if ((((((ontasudahspawn == 1)) && ((_local8 == 2)))) && ((((level == 5)) || ((level == 6)))))){
_local7 = 0;
_local2 = (_local2 + 1);
};
if ((((((((ontasudahspawn == 1)) && ((_local8 == 2)))) && ((((level == 5)) || ((level == 6)))))) && ((_local2 > 10)))){
_local8 = 0;
_local7 = 1;
};
};
if ((((level == 1)) && ((sublevels == 0)))){
_local8 = 0;
};
if ((((((((level >= 7)) && ((level <= 9)))) && ((jumlahspawn >= 4)))) && ((kuotatank < 4)))){
if ((((level == 7)) && ((sudahspawnmonster[1] < banyaktipemonsterlevel[(level - 1)][sublevels][1])))){
_local8 = 1;
tipetank = 0;
};
if ((((level == 8)) || ((level == 9)))){
_local9 = Math.floor(((Math.random() * 2) + 1));
if ((((_local9 == 1)) && ((sudahspawnmonster[1] < banyaktipemonsterlevel[(level - 1)][sublevels][1])))){
_local8 = 1;
if (tipetank == -1){
tipetank = 0;
};
};
if ((((_local9 == 2)) && ((sudahspawnmonster[1] < banyaktipemonsterlevel[(level - 1)][sublevels][2])))){
_local8 = 2;
if (tipetank == -1){
tipetank = 1;
};
};
};
kuotatank = (kuotatank + 1);
} else {
if ((((((level >= 7)) && ((level <= 9)))) && ((((jumlahspawn < 4)) || ((kuotatank >= 4)))))){
_local8 = 0;
};
};
if (jmlmonsternow < maxmonsterlevel[(level - 1)][sublevels]){
sudahspawnmonster[_local8] = (sudahspawnmonster[_local8] + 1);
_local10 = tipemonsterlevel[(level - 1)][_local8];
if (_local10 == 6){
ontasudahspawn = 1;
};
if (((!((_local10 == 10))) && (!((_local10 == 11))))){
spawnenemy(_local4, _local5, _local10, 1);
};
if ((((_local10 == 10)) || ((_local10 == 11)))){
if (tipetank == 0){
spawnenemy(_local4, ytankpertama, 10, 1);
};
if (tipetank == 1){
spawnenemy(_local4, ytankpertama, 11, 1);
};
ytankpertama = (ytankpertama + 30);
};
kaliini = (kaliini + 1);
tambahtambahan = (tambahtambahan - 20);
if (tambahtambahan <= 0){
tambahtambahan = 0;
};
};
_local7 = 0;
_local3 = (_local3 + 1);
};
if (kuotatank == 4){
linkglobal = (linkglobal + 1);
};
kuotatank = 0;
_local2 = 0;
};
if ((((((wavelevel >= wavelevels[(level - 1)])) && ((monsterlayar <= 0)))) && ((callboss == 0)))){
callboss = 1;
adaboss = 1;
if ((((level == 3)) && ((sublevels == 2)))){
spawnenemy(860, 200, 1, 1);
spawnenemy(880, 225, 1, 1);
spawnenemy(840, 300, 9, 1);
spawnenemy(800, 220, 9, 1);
spawnenemy(820, 235, 2, 1);
spawnenemy(970, 200, 8, 1);
};
if ((((level == 6)) && ((sublevels == 2)))){
spawnenemy(700, 260, 12, 1);
};
if ((((level == 9)) && ((sublevels == 2)))){
spawnenemy(700, 230, 13, 1);
spawnenemy(1100, 240, 8, 1);
};
if ((((level == 12)) && ((sublevels == 2)))){
spawnenemy(850, 300, 20, 1);
};
} else {
if ((((wavelevel > wavelevels[(level - 1)])) && ((adaboss == 1)))){
_local11 = 680;
if (level == 3){
maxtimespawn = 300;
spawnenemy(_local11, Math.floor(((Math.random() * 20) + 195)), 1, 1);
spawnenemy(_local11, Math.floor(((Math.random() * 20) + 285)), 2, 1);
};
if (level == 6){
maxtimespawn = 300;
spawnenemy(_local11, Math.floor(((Math.random() * 20) + 195)), 6, 1);
};
if (level == 9){
maxtimespawn = 300;
spawnenemy(_local11, Math.floor(((Math.random() * 20) + 195)), 7, 1);
spawnenemy(_local11, Math.floor(((Math.random() * 20) + 215)), 7, 1);
spawnenemy(_local11, Math.floor(((Math.random() * 20) + 235)), 7, 1);
spawnenemy(_local11, Math.floor(((Math.random() * 20) + 275)), 7, 1);
spawnenemy(_local11, Math.floor(((Math.random() * 20) + 305)), 7, 1);
};
};
};
_local1 = 0;
while (_local1 < 10) {
randomyglobal[_local1] = ((Math.random() * 200) + 110);
_local1 = (_local1 + 1);
};
}
public function cavernofrememberance(){
if (level == 10){
spawnenemy(860, 130, 1, 1);
spawnenemy(880, 175, 1, 1);
spawnenemy(840, 250, 9, 1);
spawnenemy(800, 130, 9, 1);
spawnenemy(820, 175, 2, 1);
if (sublevels <= 1){
spawnenemy(970, 180, 8, 1);
};
if (sublevels == 2){
spawnenemy(970, 180, 8, 1);
spawnenemy(970, 280, 8, 1);
};
};
if (level == 11){
spawnenemy(860, 130, 3, 1);
spawnenemy(880, 175, 3, 1);
spawnenemy(840, 250, 4, 1);
spawnenemy(800, 130, 4, 1);
spawnenemy(820, 175, 3, 1);
spawnenemy(970, 180, 3, 1);
if (sublevels <= 1){
spawnenemy(970, 180, 12, 1);
};
if (sublevels == 2){
spawnenemy(970, 180, 12, 1);
spawnenemy(970, 280, 8, 1);
};
};
if (level == 12){
spawnenemy(860, 150, 7, 1);
spawnenemy(880, 195, 11, 1);
spawnenemy(840, 270, 11, 1);
spawnenemy(800, 150, 11, 1);
spawnenemy(820, 195, 11, 1);
spawnenemy(970, 200, 7, 1);
if (sublevels <= 1){
spawnenemy(970, 200, 13, 1);
};
if (sublevels == 2){
spawnenemy(970, 220, 13, 1);
spawnenemy(970, 180, 8, 1);
spawnenemy(970, 300, 8, 1);
};
};
}
public function spawnenemy(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{
var _local5:*;
var _local6:*;
var _local7:*;
_local5 = 0;
while (_local5 < _arg4) {
_local6 = new enemy();
if (((((((((!((_arg3 == 8))) && (!((_arg3 == 12))))) && (!((_arg3 == 13))))) && (!((_arg3 == 19))))) && (!((_arg3 == 20))))){
_local6.isboss = 0;
} else {
_local6.isboss = 1;
};
if (((((!((_arg3 == 5))) && ((_local6.isboss == 0)))) && (!((_arg3 == 6))))){
if (((((!((_arg3 == 10))) && (!((_arg3 == 11))))) && (!((_arg3 == 14))))){
_arg1 = (_arg1 + (tambahtambahan * kaliini));
};
if ((((((((_arg2 <= previousy)) && ((_arg2 >= (previousy - 100))))) && ((_arg2 > 130)))) && (((((!((_arg3 == 10))) && (!((_arg3 == 11))))) && (!((_arg3 == 14))))))){
_arg2 = (_arg2 - 50);
} else {
if ((((((((_arg2 >= previousy)) && ((_arg2 <= (previousy + 100))))) && ((_arg2 < 272)))) && (((((!((_arg3 == 10))) && (!((_arg3 == 11))))) && (!((_arg3 == 14))))))){
_arg2 = (_arg2 + 50);
};
};
jmlmonsternow = (jmlmonsternow + 1);
};
_local6.x = _arg1;
_local6.y = _arg2;
_local6.kondisi = 1;
_local6.locks = 0;
_local6.gotoAndStop(listmonster[(_arg3 - 1)][0]);
_local6.maxHealth = listmonster[(_arg3 - 1)][1];
_local6.speeds = listmonster[(_arg3 - 1)][2];
_local6.damages = listmonster[(_arg3 - 1)][3];
_local6.crit = listmonster[(_arg3 - 1)][4];
_local6.evade = listmonster[(_arg3 - 1)][5];
_local6.havetakedamage = listmonster[(_arg3 - 1)][6];
_local6.counterdamage = listmonster[(_arg3 - 1)][7];
_local6.bisatembak = listmonster[(_arg3 - 1)][8];
_local6.reloadtime = listmonster[(_arg3 - 1)][10];
_local6.incdelay = listmonster[(_arg3 - 1)][11];
_local6.experiences = listmonster[(_arg3 - 1)][12];
if (_arg3 == 3){
_local7 = Math.floor(((Math.random() * 2) + 1));
if (_local7 == 1){
_local6.kondisi = 1;
};
if (_local7 == 2){
_local6.kondisi = 5;
};
};
if (_arg3 == 14){
_local6.targetexecution = jumlahcivilthislevel;
};
if (_arg3 == 10){
_local6.links = linkglobal;
};
_local6.ke = jumlahmonster;
_local6.tipe = _arg3;
_local6.health = _local6.maxHealth;
_local6.addEventListener(Event.ENTER_FRAME, monsterEnterFrame);
addChild(_local6);
executionmarks = jumlahmonster;
jumlahmonster = (jumlahmonster + 1);
dummy.push(_local6);
previousy = _arg2;
monsterlayar = (monsterlayar + 1);
_local6.stuns.visible = false;
_local6.idmonster.text = _local6.ke;
_local6.idmonster.scaleX = -1;
_local6.idmonster.visible = false;
if ((((_local6.tipe == 1)) && ((encountermusuh[0] == 0)))){
spawntut = 1;
};
if ((((_local6.tipe == 2)) && ((encountermusuh[1] == 0)))){
spawntut = 2;
};
if ((((_local6.tipe == 9)) && ((encountermusuh[2] == 0)))){
spawntut = 3;
};
if ((((_local6.tipe == 14)) && ((encountermusuh[3] == 0)))){
spawntut = 4;
};
if ((((_local6.tipe == 8)) && ((encountermusuh[4] == 0)))){
spawntut = 5;
};
if ((((_local6.tipe == 3)) && ((encountermusuh[5] == 0)))){
spawntut = 6;
};
if ((((_local6.tipe == 4)) && ((encountermusuh[6] == 0)))){
spawntut = 7;
};
if ((((_local6.tipe == 6)) && ((encountermusuh[7] == 0)))){
spawntut = 8;
};
if ((((_local6.tipe == 12)) && ((encountermusuh[8] == 0)))){
spawntut = 9;
};
if ((((_local6.tipe == 7)) && ((encountermusuh[12] == 0)))){
spawntut = 10;
};
if ((((_local6.tipe == 10)) && ((encountermusuh[13] == 0)))){
spawntut = 11;
};
if ((((_local6.tipe == 11)) && ((encountermusuh[14] == 0)))){
spawntut = 12;
};
if ((((_local6.tipe == 13)) && ((encountermusuh[15] == 0)))){
spawntut = 13;
};
if ((((_local6.tipe == 15)) && ((encountermusuh[16] == 0)))){
spawntut = 14;
};
if ((((_local6.tipe == 16)) && ((encountermusuh[17] == 0)))){
spawntut = 15;
};
if ((((_local6.tipe == 17)) && ((encountermusuh[18] == 0)))){
spawntut = 16;
};
if ((((_local6.tipe == 18)) && ((encountermusuh[20] == 0)))){
spawntut = 17;
};
if ((((_local6.tipe == 19)) && ((encountermusuh[21] == 0)))){
spawntut = 18;
};
if ((((_local6.tipe == 20)) && ((encountermusuh[22] == 0)))){
spawntut = 19;
};
_local5++;
};
}
public function popupexp(_arg1:int, _arg2:int, _arg3){
var _local4:*;
var _local5:Sprite;
_local4 = new expgained();
_local4.x = _arg1;
_local4.y = _arg2;
if (mute != 1){
sechannel = soundexp.play();
};
_local4.experiencebox.exptext.text = (String(_arg3) + "xp");
_local4.experiencebox.shtext.text = (String(_arg3) + "xp");
mcexp = (mcexp + _arg3);
_local5 = new Sprite();
stage.addChild(_local5);
_local5.addChild(_local4);
monsterlayar = (monsterlayar - 1);
}
public function walltakedamage(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local3 = ((308 * barricadehp) / barricademaxhp);
userinterface.hpbarwall.hijau1.width = _local3;
walltakedamages = 1;
colorwall.brightness = 0;
temboks.transform.colorTransform = colorwall;
_local4 = ((Math.random() * 30) - (Math.random() * 30));
_local5 = Math.floor(((Math.random() * 6) + 1));
_local6 = new crackles();
_local6.x = (((Math.random() * 20) - (Math.random() * 20)) + 170);
_local6.y = (_arg2 + _local4);
_local6.cc.gotoAndStop(_local5);
addChild(_local6);
if ((((barricadehp <= 0)) && ((wallsudahjebol == 0)))){
shatterstar();
walljebolwave();
wallsudahjebol = 1;
if (mute != 1){
sechannel = jedor.play();
};
};
}
public function walljebolwave(){
var _local1:Array;
var _local2:*;
_local1 = new Array();
_local2 = 0;
while (_local2 < 8) {
if (level <= 12){
_local1[_local2] = 15;
};
if (level <= 9){
_local1[_local2] = 7;
};
if (level <= 6){
_local1[_local2] = Math.floor(((Math.random() * 3) + 3));
if (_local1[_local2] == 5){
_local1[_local2] = 3;
};
};
if (level <= 3){
_local1[_local2] = Math.floor(((Math.random() * 3) + 1));
if (_local1[_local2] == 3){
_local1[_local2] = 9;
};
};
if (level <= 2){
_local1[_local2] = Math.floor(((Math.random() * 2) + 1));
};
if ((((level == 1)) && ((sublevels == 0)))){
(_local1[_local2] == 1);
};
_local2 = (_local2 + 1);
};
spawnenemy(860, 180, _local1[0], 1);
spawnenemy(890, 200, _local1[1], 1);
spawnenemy(920, 220, _local1[2], 1);
spawnenemy(950, 240, _local1[3], 1);
spawnenemy(980, 260, _local1[4], 1);
spawnenemy(1010, 280, _local1[5], 1);
spawnenemy(1040, 300, _local1[6], 1);
spawnenemy(1060, 320, _local1[7], 1);
cooldown = 0;
}
public function shatterstar(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = 0;
while (_local1 < 40) {
_local2 = (Math.random() * 200);
_local3 = Math.floor(((Math.random() * 2) + 1));
_local4 = Math.floor(((Math.random() * 6) + 1));
_local5 = new crackles();
if (_local3 == 1){
_local5.scaleX = -1;
};
_local5.x = ((Math.random() * 120) + 170);
_local5.y = (_local2 + 130);
_local5.cc.gotoAndStop(_local4);
addChild(_local5);
_local1 = (_local1 + 1);
};
modehard();
}
public function playertakedamage(_arg1){
var _local2:*;
_local2 = ((361 * mchealth) / mcmaxhealth);
userinterface.hpbarchara.merah1.width = _local2;
charatakedamages = 1;
}
public function popupdamageplayer(_arg1){
var _local2:*;
var _local3:*;
var _local4:Sprite;
_local2 = Math.floor(((Math.random() * 3) + 1));
_local3 = new dmggained();
_local3.x = pesawat.x;
_local3.y = pesawat.y;
if (_arg1 > 0){
_local3.damagebox.damagetext.text = String(_arg1);
} else {
_local3.damagebox.damagetext.text = "miss";
};
_local4 = new Sprite();
stage.addChild(_local4);
_local4.addChild(_local3);
if (_local2 == 1){
_local3.gotoAndPlay("damageatas");
};
if (_local2 == 2){
_local3.gotoAndPlay("damagebawah");
};
if (_local2 == 3){
_local3.gotoAndPlay("damagetengah");
};
}
public function popuphealplayer(_arg1){
var _local2:*;
var _local3:*;
var _local4:Sprite;
_local2 = Math.floor(((Math.random() * 3) + 1));
_local3 = new healing();
_local3.x = pesawat.x;
_local3.y = pesawat.y;
if (_arg1 > 0){
_local3.damagebox.damagetext.text = ("+ " + String(_arg1));
} else {
_local3.damagebox.damagetext.text = "miss";
};
_local4 = new Sprite();
stage.addChild(_local4);
_local4.addChild(_local3);
if (_local2 == 1){
_local3.gotoAndPlay("damageatas");
};
if (_local2 == 2){
_local3.gotoAndPlay("damagebawah");
};
if (_local2 == 3){
_local3.gotoAndPlay("damagetengah");
};
}
public function popupgoldplayer(_arg1){
var _local2:*;
var _local3:*;
var _local4:Sprite;
_local2 = Math.floor(((Math.random() * 3) + 1));
_local3 = new moneyheal();
_local3.x = 0;
_local3.y = 50;
if (_arg1 > 0){
_local3.damagebox.damagetext.text = (("+ " + String(_arg1)) + " G");
} else {
_local3.damagebox.damagetext.text = "miss";
};
_local4 = new Sprite();
stage.addChild(_local4);
_local4.addChild(_local3);
if (_local2 == 1){
_local3.gotoAndPlay("damageatas");
};
if (_local2 == 2){
_local3.gotoAndPlay("damagebawah");
};
if (_local2 == 3){
_local3.gotoAndPlay("damagetengah");
};
}
public function monsterEnterFrame(_arg1){
var _local2:*;
var _local3:*;
var _local4:Point;
var _local5:Sprite;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:Point;
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:Point;
var _local32:*;
var _local33:Point;
var _local34:*;
var _local35:*;
var _local36:*;
var _local37:*;
var _local38:Point;
var _local39:*;
var _local40:Point;
var _local41:*;
var _local42:Point;
var _local43:*;
var _local44:Point;
var _local45:*;
var _local46:*;
var _local47:*;
var _local48:Point;
var _local49:Sprite;
var _local50:*;
var _local51:*;
var _local52:*;
var _local53:Point;
var _local54:Sprite;
var _local55:*;
var _local56:*;
var _local57:*;
var _local58:*;
var _local59:*;
var _local60:*;
var _local61:*;
var _local62:*;
var _local63:*;
var _local64:*;
var _local65:*;
var _local66:*;
var _local67:*;
var _local68:*;
var _local69:*;
var _local70:*;
var _local71:*;
var _local72:*;
var _local73:*;
var _local74:*;
var _local75:*;
var _local76:*;
var _local77:*;
var _local78:*;
var _local79:*;
var _local80:*;
var _local81:Point;
var _local82:Point;
var _local83:Sprite;
var _local84:*;
_local2 = _arg1.currentTarget;
_local2.e1.sh.visible = false;
if ((((_local2.kondisi == 3)) && ((_local2.tipe <= 98)))){
_local2.mhpbar.visible = false;
};
if ((((((((pauseornot == 0)) && ((_local2.stunornot == 0)))) && ((_local2.cowardornot == 0)))) && ((mchealth > 0)))){
if (_local2.tipe == 1){
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if (_local2.x >= 310){
_local2.x = (_local2.x - _local2.speeds);
} else {
_local2.x = (_local2.x - 2);
};
if ((((((barricadehp <= 0)) && ((_local2.x < 310)))) && ((_local2.y > 170)))){
_local2.y = (_local2.y - 2);
} else {
if ((((((barricadehp <= 0)) && ((_local2.x < 310)))) && ((_local2.y <= 170)))){
_local2.y = (_local2.y - 0.5);
};
};
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
if (barricadehp > 0){
_local2.e1.gotoAndStop(4);
} else {
if ((((barricadehp <= 0)) && ((_local2.counterdamage >= 70)))){
_local2.e1.gotoAndStop(4);
} else {
_local2.e1.gotoAndStop(1);
};
};
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage < 90)))){
if (barricadehp <= 0){
if ((((_local2.y > pesawat.y)) && ((_local2.counterdamage < 70)))){
_local2.y = (_local2.y - 2);
if (_local2.y < pesawat.y){
_local2.counterdamage = 90;
};
} else {
if ((((((_local2.y <= pesawat.y)) && ((_local2.counterdamage < 70)))) && (((_local2.y + _local2.height) <= 420)))){
_local2.y = (_local2.y + 2);
if (_local2.y > pesawat.y){
_local2.counterdamage = 90;
};
};
};
};
};
if ((((_local2.counterdamage >= 90)) && ((_local2.counterdamage < 95)))){
_local2.e1.gotoAndStop(4);
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage >= 95)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 0;
};
if ((((_local2.locks == 0)) && ((_local2.counterdamage == 110)))){
if (mute != 1){
sechannel = smelee1.play();
};
};
if ((((((((_local2.hitTestObject(temboks) == true)) && ((barricadehp > 0)))) && ((_local2.havetakedamage == 0)))) && ((_local2.counterdamage >= _local2.reloadtime)))){
barricadehp = (barricadehp - Math.floor((_local2.damages - ((_local2.damages * defwall) / 100))));
if (barricadehp <= 0){
barricadehp = 0;
};
walltakedamage(_local2.damages, _local2.y);
_local2.havetakedamage = 1;
};
if ((((((((((_local2.hitTestObject(pesawat.hittesmc) == true)) && ((mchealth > 0)))) && ((_local2.havetakedamage == 0)))) && ((barricadehp <= 0)))) && ((_local2.counterdamage >= 120)))){
if (_local2.missornot > evade){
mchealth = (mchealth - _local2.damages);
};
if (mchealth <= 0){
mchealth = 0;
};
if (_local2.missornot > evade){
popupdamageplayer(_local2.damages);
playertakedamage(_local2.damages);
} else {
if ((((_local2.missornot <= evade)) && ((_local2.missornot >= 0)))){
popupdamageplayer(0);
_local2.missornot = -99;
};
};
_local2.havetakedamage = 1;
};
if (_local2.counterdamage >= _local2.reloadtime){
_local2.havetakedamage = 0;
_local2.counterdamage = 0;
_local2.missornot = (Math.random() * 100);
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
if (mute != 1){
sechannel = senemymati1.play();
};
};
_local2.locks = (_local2.locks + 1);
};
if ((((((_local2.hitTestObject(temboks.sh) == true)) && ((_local2.kondisi == 1)))) && ((barricadehp > 0)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((((barricadehp <= 0)) && ((_local2.kondisi == 2)))) && ((_local2.x > 180)))){
_local2.kondisi = 1;
_local2.locks = 0;
_local2.counterdamage = 0;
};
if ((((((_local2.kondisi == 1)) && ((_local2.x <= 180)))) && ((barricadehp <= 0)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 15)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 2){
_local2.e1.um.visible = false;
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
_local2.x = (_local2.x - _local2.speeds);
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
_local2.e1.gotoAndStop(4);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage >= 90)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 0;
_local2.bisatembak = 1;
};
if (_local2.bisatembak == 1){
_local3 = Math.floor(((Math.random() * 2) + 1));
_local4 = _local2.e1.um.localToGlobal(new Point());
_local5 = new Sprite();
stage.addChild(_local5);
if (_local3 == 1){
_local6 = new bulletpopout();
_local6.x = _local4.x;
_local6.y = _local4.y;
_local6.scaleX = -1;
_local5.addChild(_local6);
setransform.volume = volumes;
sechannel.soundTransform = setransform;
if (mute != 1){
sechannel = bulletfall1.play();
};
};
if (_local3 == 2){
_local7 = new bulletpopup2();
_local7.x = _local4.x;
_local7.y = _local4.y;
_local7.scaleX = -1;
_local5.addChild(_local7);
if (mute != 1){
sechannel = bulletfall2.play();
};
};
if (mute != 1){
sechannel = tembak1.play();
};
inc = -0.2;
while (inc <= 0.2) {
_local8 = new peluruenemy(_local4.x, _local4.y);
if (inc != -0.2){
_local8.tipe = 0;
_local8.damages = damagebulletmonster[0];
_local8.angles = (Math.atan2((pesawat.y - _local4.y), (pesawat.x - _local4.x)) + inc);
_local8.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local8);
_local8.gotoAndStop(1);
};
inc = (inc + 0.2);
};
_local2.bisatembak = 0;
};
if (_local2.counterdamage >= _local2.reloadtime){
_local2.counterdamage = 0;
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
if (mute != 1){
sechannel = senemymati2.play();
};
};
_local2.locks = (_local2.locks + 1);
};
if ((((_local2.x <= 500)) && ((_local2.kondisi == 1)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 15)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 3){
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
_local2.x = (_local2.x - _local2.speeds);
_local2.y = (_local2.y + 2);
};
if (_local2.kondisi == 5){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
_local2.x = (_local2.x - _local2.speeds);
_local2.y = (_local2.y - 2);
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 80)))){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage < 80)))){
if (barricadehp <= 0){
if ((((_local2.y > pesawat.y)) && ((_local2.counterdamage < 50)))){
_local2.y = (_local2.y - 2);
if (_local2.y < pesawat.y){
_local2.counterdamage = 80;
};
} else {
if ((((((_local2.y <= pesawat.y)) && ((_local2.counterdamage < 50)))) && (((_local2.y + _local2.height) <= 420)))){
_local2.y = (_local2.y + 2);
if (_local2.y > pesawat.y){
_local2.counterdamage = 80;
};
};
};
};
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage >= 80)))){
_local2.e1.gotoAndStop(4);
if (mute != 1){
sechannel = wasp.play();
};
_local2.locks = 0;
};
if ((((((((_local2.hitTestObject(temboks) == true)) && ((barricadehp > 0)))) && ((_local2.havetakedamage == 0)))) && ((_local2.counterdamage == 95)))){
barricadehp = (barricadehp - Math.floor((_local2.damages - ((_local2.damages * defwall) / 100))));
if (barricadehp <= 0){
barricadehp = 0;
};
walltakedamage(_local2.damages, _local2.y);
_local2.havetakedamage = 1;
};
if ((((((((((_local2.hitTestObject(pesawat) == true)) && ((mchealth > 0)))) && ((_local2.havetakedamage == 0)))) && ((barricadehp <= 0)))) && ((_local2.counterdamage == 93)))){
if (_local2.missornot > evade){
mchealth = (mchealth - _local2.damages);
};
if (mchealth <= 0){
mchealth = 0;
};
if (_local2.missornot > evade){
popupdamageplayer(_local2.damages);
playertakedamage(_local2.damages);
} else {
if ((((_local2.missornot <= evade)) && ((_local2.missornot >= 0)))){
popupdamageplayer(0);
_local2.missornot = -99;
};
};
_local2.havetakedamage = 1;
};
if (_local2.counterdamage >= _local2.reloadtime){
_local2.havetakedamage = 0;
_local2.counterdamage = 0;
_local2.missornot = (Math.random() * 100);
};
};
if ((((_local2.kondisi == 1)) && ((_local2.y >= 330)))){
_local2.kondisi = 5;
_local2.locks = 0;
};
if ((((_local2.kondisi == 5)) && ((_local2.y <= 160)))){
_local2.kondisi = 1;
_local2.locks = 0;
};
if ((((((_local2.hitTestObject(temboks.sh) == true)) && ((((_local2.kondisi == 1)) || ((_local2.kondisi == 5)))))) && ((barricadehp > 0)))){
_local2.kondisi = 2;
_local2.locks = 1;
_local2.counterdamage = 0;
};
if ((((((barricadehp <= 0)) && ((_local2.kondisi == 2)))) && ((_local2.x > 135)))){
_local2.kondisi = 1;
_local2.locks = 0;
_local2.counterdamage = 0;
};
if ((((((((_local2.kondisi == 1)) || ((_local2.kondisi == 5)))) && ((_local2.x <= 135)))) && ((barricadehp <= 0)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(5);
popupexp(_local2.x, _local2.y, _local2.experiences);
};
_local2.locks = (_local2.locks + 1);
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 20)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 4){
_local2.e1.um.visible = false;
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
_local2.x = (_local2.x - _local2.speeds);
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage >= 90)))){
_local2.e1.gotoAndStop(4);
_local2.locks = 0;
_local2.bisatembak = 1;
};
if ((((_local2.bisatembak == 1)) && ((_local2.counterdamage >= 110)))){
_local9 = _local2.e1.um.localToGlobal(new Point());
_local10 = new peluruenemy(_local9.x, _local9.y);
_local10.tipe = 0;
_local10.damages = damagebulletmonster[1];
_local10.angles = Math.atan2((pesawat.y - _local9.y), (pesawat.x - _local9.x));
_local10.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local10);
_local10.gotoAndStop(1);
_local2.bisatembak = 0;
};
if (_local2.counterdamage > _local2.reloadtime){
_local2.counterdamage = 0;
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(5);
spawnenemy(_local2.x, _local2.y, 5, 1);
spawnenemy(_local2.x, (_local2.y + _local2.height), 5, 1);
popupexp(_local2.x, _local2.y, _local2.experiences);
cooldown = 0;
};
_local2.locks = (_local2.locks + 1);
};
if ((((_local2.x <= 450)) && ((_local2.kondisi == 1)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 20)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 5){
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
_local2.kamikazeangle = Math.atan2((pesawat.y - mouseY), (pesawat.x - mouseX));
};
if ((((_local2.x >= 310)) || ((_local2.x <= 140)))){
_local2.x = (_local2.x - _local2.speeds);
} else {
_local2.x = (_local2.x - (_local2.speeds / 2));
};
if ((((_local2.x >= 310)) || ((_local2.x <= 140)))){
_local2.y = (_local2.y + ((Math.sin(_local2.kamikazeangle) * _local2.speeds) / 3));
} else {
_local2.y = (_local2.y - 3);
};
};
if ((((((_local2.hitTestObject(pesawat.hittesmc) == true)) && ((mchealth > 0)))) && ((_local2.havetakedamage == 0)))){
if (_local2.missornot > evade){
mchealth = (mchealth - _local2.damages);
badcondition = 1;
};
if (mchealth <= 0){
mchealth = 0;
};
if (_local2.missornot > evade){
popupdamageplayer(_local2.damages);
playertakedamage(_local2.damages);
} else {
if ((((_local2.missornot <= evade)) && ((_local2.missornot >= 0)))){
popupdamageplayer(0);
_local2.missornot = -99;
};
};
_local2.havetakedamage = 1;
monsterlayar = (monsterlayar - 1);
_local2.kondisi = 3;
_local2.health = 0;
_local2.locks = 0;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(2);
};
_local2.locks = (_local2.locks + 1);
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 15)))){
_local2.health = 0;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
enemykill = (enemykill + 1);
_local2.kondisi = 3;
_local2.locks = 0;
if ((((level == 6)) && ((sublevels <= 1)))){
killmission[0] = (killmission[0] + 1);
};
popupexp(_local2.x, _local2.y, _local2.experiences);
};
if ((((((((_local2.x <= 0)) || ((_local2.x > 640)))) || ((_local2.y <= 0)))) || ((_local2.y >= 480)))){
_local2.kondisi = 3;
_local2.health = 0;
monsterlayar = (monsterlayar - 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
};
if (_local2.tipe == 6){
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
_local2.x = (_local2.x - 2);
};
if ((((_local2.kondisi == 1)) && ((_local2.x <= 600)))){
_local2.kondisi = 2;
_local2.locks = 0;
};
if (_local2.kondisi == 4){
if (_local2.locks == 0){
_local2.counterdamage = 0;
_local2.e1.gotoAndStop(4);
_local2.locks = 1;
};
_local2.counterdamage = (_local2.counterdamage + 1);
if (_local2.counterdamage == 30){
_local2.e1.gotoAndStop(1);
_local2.scaleX = 1;
_local2.mhpbar.scaleX = -1;
_local2.mhpbar.x = (_local2.mhpbar.x + (_local2.width / 2));
};
if (_local2.counterdamage > 30){
_local2.x = (_local2.x + 2);
if ((((((((barricadehp <= 0)) && ((_local2.x > 120)))) && ((_local2.x < 260)))) && ((_local2.y < 270)))){
_local2.y = (_local2.y + 2);
} else {
if ((((((((barricadehp <= 0)) && ((_local2.x > 120)))) && ((_local2.x < 260)))) && ((_local2.y < 360)))){
_local2.y = (_local2.y + 0.5);
};
};
};
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if (_local2.locks == 0){
_local2.locks = 1;
_local2.e1.gotoAndStop(2);
if (barricadehp <= 0){
_local2.kamikazeangle = Math.atan2((pesawat.y - mouseY), (pesawat.x - mouseX));
} else {
if (_local2.y >= 240){
_local2.kamikazeangle = -1;
} else {
if (_local2.y < 240){
_local2.kamikazeangle = 1;
};
};
};
};
if (_local2.counterdamage >= 38){
if (barricadehp > 0){
_local2.x = (_local2.x - _local2.speeds);
_local2.y = (_local2.y + ((Math.sin(_local2.kamikazeangle) * _local2.speeds) / 3));
} else {
if ((((((barricadehp <= 0)) && ((_local2.x < 310)))) && ((_local2.y > 170)))){
_local2.y = (_local2.y - 2);
_local2.x = (_local2.x - 9);
} else {
if ((((((barricadehp <= 0)) && ((_local2.x < 310)))) && ((_local2.y <= 170)))){
_local2.y = (_local2.y - 0.5);
_local2.x = (_local2.x - 9);
} else {
_local2.x = (_local2.x - _local2.speeds);
};
};
};
};
if ((((((((((((_local2.counterdamage == 46)) || ((_local2.counterdamage == 54)))) || ((_local2.counterdamage == 62)))) || ((_local2.counterdamage == 70)))) || ((_local2.counterdamage == 78)))) || ((_local2.counterdamage == 86)))){
_local2.e1.m1.gotoAndPlay(38);
};
if ((((((_local2.x <= 240)) && ((barricadehp > 0)))) && ((_local2.havetakedamage == 0)))){
if (mute != 1){
sechannel = camels.play();
};
barricadehp = (barricadehp - Math.floor((_local2.damages - ((_local2.damages * defwall) / 100))));
badcondition = 2;
if (barricadehp <= 0){
barricadehp = 0;
};
walltakedamage(_local2.damages, _local2.y);
_local2.havetakedamage = 1;
_local2.locks = 0;
_local2.kondisi = 4;
sortdepth();
absoluteorder();
timers = (timers + 1);
};
if ((((((_local2.x <= 150)) && ((barricadehp <= 0)))) && ((_local2.havetakedamage == 0)))){
if ((((((_local2.hitTestObject(pesawat.hittesmc) == true)) && ((mchealth > 0)))) && ((_local2.havetakedamage == 0)))){
if (_local2.missornot > evade){
mchealth = (mchealth - _local2.damages);
badcondition = 2;
if (mute != 1){
sechannel = camels.play();
};
};
if (mchealth <= 0){
mchealth = 0;
};
if (_local2.missornot > evade){
popupdamageplayer(_local2.damages);
playertakedamage(_local2.damages);
} else {
if ((((_local2.missornot <= evade)) && ((_local2.missornot >= 0)))){
popupdamageplayer(0);
_local2.missornot = -99;
};
};
_local2.havetakedamage = 1;
timers = (timers + 1);
};
_local2.locks = 0;
_local2.kondisi = 4;
sortdepth();
absoluteorder();
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
};
_local2.locks = (_local2.locks + 1);
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 15)))){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
ontasudahspawn = 0;
enemykill = (enemykill + 1);
_local2.kondisi = 3;
_local2.locks = 0;
popupexp(_local2.x, _local2.y, _local2.experiences);
};
if (_local2.x >= 700){
ontasudahspawn = 0;
_local2.kondisi = 3;
_local2.health = 0;
monsterlayar = (monsterlayar - 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
};
if (_local2.tipe == 7){
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if (_local2.x >= 310){
_local2.x = (_local2.x - _local2.speeds);
} else {
_local2.x = (_local2.x - 2);
};
if ((((((barricadehp <= 0)) && ((_local2.x < 310)))) && ((_local2.y > 170)))){
_local2.y = (_local2.y - 2);
} else {
if ((((((barricadehp <= 0)) && ((_local2.x < 310)))) && ((_local2.y <= 170)))){
_local2.y = (_local2.y - 0.5);
};
};
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
if (barricadehp > 0){
_local2.e1.gotoAndStop(4);
} else {
if ((((barricadehp <= 0)) && ((_local2.counterdamage >= 70)))){
_local2.e1.gotoAndStop(4);
} else {
_local2.e1.gotoAndStop(1);
};
};
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage < 90)))){
if (barricadehp <= 0){
if ((((_local2.y > pesawat.y)) && ((_local2.counterdamage < 70)))){
_local2.y = (_local2.y - 2);
if (_local2.y < pesawat.y){
_local2.counterdamage = 90;
};
} else {
if ((((((_local2.y <= pesawat.y)) && ((_local2.counterdamage < 70)))) && (((_local2.y + _local2.height) <= 420)))){
_local2.y = (_local2.y + 2);
if (_local2.y > pesawat.y){
_local2.counterdamage = 90;
};
};
};
};
};
if ((((_local2.counterdamage >= 90)) && ((_local2.counterdamage < 95)))){
_local2.e1.gotoAndStop(4);
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage >= 95)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 0;
};
if ((((_local2.locks == 0)) && ((_local2.counterdamage == 110)))){
if (mute != 1){
sechannel = smelee1.play();
};
};
if ((((((((_local2.hitTestObject(temboks) == true)) && ((barricadehp > 0)))) && ((_local2.havetakedamage == 0)))) && ((_local2.counterdamage >= _local2.reloadtime)))){
barricadehp = (barricadehp - Math.floor((_local2.damages - ((_local2.damages * defwall) / 100))));
if (barricadehp <= 0){
barricadehp = 0;
};
walltakedamage(_local2.damages, _local2.y);
_local2.havetakedamage = 1;
};
if ((((((((((_local2.hitTestObject(pesawat.hittesmc) == true)) && ((mchealth > 0)))) && ((_local2.havetakedamage == 0)))) && ((barricadehp <= 0)))) && ((_local2.counterdamage >= 120)))){
if (_local2.missornot > evade){
mchealth = (mchealth - _local2.damages);
};
if (mchealth <= 0){
mchealth = 0;
};
if (_local2.missornot > evade){
popupdamageplayer(_local2.damages);
playertakedamage(_local2.damages);
} else {
if ((((_local2.missornot <= evade)) && ((_local2.missornot >= 0)))){
popupdamageplayer(0);
_local2.missornot = -99;
};
};
_local2.havetakedamage = 1;
};
if (_local2.counterdamage >= _local2.reloadtime){
_local2.havetakedamage = 0;
_local2.counterdamage = 0;
_local2.missornot = (Math.random() * 100);
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
if (mute != 1){
sechannel = senemymati1.play();
};
};
_local2.locks = (_local2.locks + 1);
};
if ((((((_local2.hitTestObject(temboks.sh) == true)) && ((_local2.kondisi == 1)))) && ((barricadehp > 0)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((((barricadehp <= 0)) && ((_local2.kondisi == 2)))) && ((_local2.x > 140)))){
_local2.kondisi = 1;
_local2.locks = 0;
_local2.counterdamage = 0;
};
if ((((((_local2.kondisi == 1)) && ((_local2.x <= 140)))) && ((barricadehp <= 0)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 15)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 8){
_local2.specialskill1 = (_local2.specialskill1 + 1);
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.e1.sh.visible = false;
_local2.locks = 1;
};
_local2.x = (_local2.x - _local2.speeds);
};
if ((((_local2.kondisi == 2)) && ((_local2.specialskill1 <= 10)))){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(4);
_local2.locks = 1;
_local11 = Math.floor(((Math.random() * 2) + 1));
};
if (_local11 == 1){
_local12 = new peluruenemy(81.6, 123.45);
_local12.tipe = 1;
_local12.damages = damagebulletmonster[2];
_local12.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local12);
_local12.visible = false;
_local12.gotoAndStop(2);
_local13 = new peluruenemy(54.6, 255.45);
_local13.tipe = 1;
_local13.damages = damagebulletmonster[2];
_local13.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local13);
_local13.visible = false;
_local13.gotoAndStop(2);
};
if (_local11 == 2){
_local14 = new peluruenemy(93.6, 67.45);
_local14.tipe = 1;
_local14.damages = damagebulletmonster[2];
_local14.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local14);
_local14.visible = false;
_local14.gotoAndStop(2);
_local15 = new peluruenemy(67.6, 192.45);
_local15.tipe = 1;
_local15.damages = damagebulletmonster[2];
_local15.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local15);
_local15.visible = false;
_local15.gotoAndStop(2);
_local16 = new peluruenemy(43.6, 328.45);
_local16.tipe = 1;
_local16.damages = damagebulletmonster[2];
_local16.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local16);
_local16.visible = false;
_local16.gotoAndStop(2);
};
};
if ((((((_local2.kondisi == 2)) && ((_local2.specialskill1 > 5)))) && ((_local2.specialskill1 <= 30)))){
_local2.e1.gotoAndStop(5);
_local2.locks = 1;
};
if ((((((_local2.kondisi == 2)) && ((_local2.specialskill1 > 30)))) && ((_local2.specialskill1 <= 45)))){
if (_local2.locks == 1){
_local2.e1.gotoAndStop(2);
_local2.locks = 0;
};
};
if ((((_local2.kondisi == 2)) && ((((((_local2.specialskill1 > 45)) && ((_local2.specialskill1 < 100)))) || ((((_local2.specialskill1 > 120)) && ((_local2.specialskill1 < 175)))))))){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
randomdirectionboss = Math.floor(((Math.random() * 3) + 1));
aboss = 1;
};
if (_local2.kebelakang == 2){
if (randomdirectionboss == 3){
if (_local2.x < 600){
_local17 = new boss1ninja();
_local17.x = _local2.x;
_local17.y = _local2.y;
_local17.alpha = 0.7;
addChild(_local17);
setChildIndex(_local2, (numChildren - 1));
_local2.x = (_local2.x + aboss);
};
if (_local2.x >= 600){
_local2.kebelakang = 0;
};
aboss = (aboss + 2);
if (_local2.y > 130){
_local2.y = (_local2.y - 5);
};
};
if (randomdirectionboss == 2){
if (_local2.x < 600){
_local18 = new boss1ninja();
_local18.x = _local2.x;
_local18.y = _local2.y;
_local18.alpha = 0.7;
addChild(_local18);
setChildIndex(_local2, (numChildren - 1));
_local2.x = (_local2.x + aboss);
};
aboss = (aboss + 2);
if (_local2.x >= 600){
_local2.kebelakang = 0;
};
};
if (randomdirectionboss == 1){
if (_local2.x < 600){
_local19 = new boss1ninja();
_local19.x = _local2.x;
_local19.y = _local2.y;
_local19.alpha = 0.7;
addChild(_local19);
setChildIndex(_local2, (numChildren - 1));
_local2.x = (_local2.x + aboss);
};
if (_local2.x >= 600){
_local2.kebelakang = 0;
};
aboss = (aboss + 2);
if (_local2.y < 280){
_local2.y = (_local2.y + 5);
};
};
if ((((((((barricadehp <= 0)) && ((_local2.x < 300)))) && ((_local2.x > 170)))) && ((_local2.y < 300)))){
_local2.y = (_local2.y + 15);
};
} else {
if ((((_local2.kebelakang == 0)) && ((_local2.specialskill1 < 120)))){
if ((((_local2.y <= 100)) && ((barricadehp > 0)))){
if (_local2.x > 300){
_local20 = new boss1ninja();
_local20.x = _local2.x;
_local20.y = _local2.y;
_local20.alpha = 0.7;
addChild(_local20);
setChildIndex(_local2, (numChildren - 1));
_local2.x = (_local2.x - aboss);
};
aboss = (aboss + 2);
if (_local2.x <= 300){
_local2.kebelakang = 1;
};
if (_local2.y > 90){
_local2.y = (_local2.y + 2);
};
};
if ((((((_local2.y < 180)) && ((_local2.y > 100)))) && ((barricadehp > 0)))){
if (_local2.x > 300){
_local21 = new boss1ninja();
_local21.x = _local2.x;
_local21.y = _local2.y;
_local21.alpha = 0.7;
addChild(_local21);
setChildIndex(_local2, (numChildren - 1));
_local2.x = (_local2.x - aboss);
};
aboss = (aboss + 2);
if (_local2.x <= 300){
_local2.kebelakang = 1;
};
};
if ((((_local2.y >= 180)) && ((barricadehp > 0)))){
if (_local2.x > 300){
_local22 = new boss1ninja();
_local22.x = _local2.x;
_local22.y = _local2.y;
_local22.alpha = 0.7;
addChild(_local22);
setChildIndex(_local2, (numChildren - 1));
_local2.x = (_local2.x - aboss);
};
aboss = (aboss + 2);
if (_local2.x <= 300){
_local2.kebelakang = 1;
};
if (_local2.y < 280){
_local2.y = (_local2.y - 2);
};
};
if (barricadehp <= 0){
if (_local2.x > 170){
_local23 = new boss1ninja();
_local23.x = _local2.x;
_local23.y = _local2.y;
_local23.alpha = 0.7;
addChild(_local23);
setChildIndex(_local2, (numChildren - 1));
_local2.x = (_local2.x - aboss);
};
aboss = (aboss + 2);
if (_local2.x <= 170){
_local2.kebelakang = 1;
};
if (pesawat.y > _local2.y){
_local2.y = (_local2.y + 9);
};
if (pesawat.y <= _local2.y){
_local2.y = (_local2.y - 9);
};
};
if ((((((((barricadehp <= 0)) && ((_local2.x < 300)))) && ((_local2.x > 170)))) && ((_local2.y > 120)))){
_local2.y = (_local2.y - 15);
};
};
};
};
if (_local2.specialskill1 == 100){
if (_local2.locks == 1){
_local2.locks = 0;
_local2.e1.gotoAndStop(4);
};
};
if (_local2.specialskill1 == 105){
if (_local2.locks == 0){
_local2.locks = 1;
_local2.e1.gotoAndStop(5);
};
};
if (_local2.specialskill1 == 110){
if (_local2.locks == 1){
_local2.locks = 0;
_local2.e1.gotoAndStop(2);
_local2.missornot = Math.floor((Math.random() * 100));
if (mute != 1){
sechannel = camels.play();
};
};
};
if ((((_local2.specialskill1 == 120)) && (!((_local2.kondisi == 3))))){
if (barricadehp > 0){
barricadehp = (barricadehp - Math.floor((_local2.damages - ((_local2.damages * defwall) / 100))));
if (barricadehp <= 0){
barricadehp = 0;
};
walltakedamage(_local2.damages, _local2.y);
} else {
if ((((mchealth > 0)) && ((_local2.hitTestObject(pesawat.hittesmc) == true)))){
if (_local2.missornot > evade){
mchealth = (mchealth - _local2.damages);
};
if (mchealth <= 0){
mchealth = 0;
};
if (_local2.missornot > evade){
popupdamageplayer(_local2.damages);
playertakedamage(_local2.damages);
} else {
if ((((_local2.missornot <= evade)) && ((_local2.missornot >= 0)))){
popupdamageplayer(0);
_local2.missornot = -99;
};
};
};
};
_local2.kebelakang = 2;
};
if ((((_local2.kondisi == 1)) && ((_local2.x <= 600)))){
_local2.kondisi = 2;
_local2.locks = 0;
_local2.specialskill1 = 0;
};
if ((((_local2.specialskill1 >= 175)) && (!((_local2.kondisi == 3))))){
_local2.specialskill1 = 0;
_local2.locks = 0;
};
if (_local2.kondisi == 3){
if (_local2.locks <= 1){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
_local2.locks = 2;
};
if (_local2.locks < 142){
if (((((((_local2.locks % 20) == 0)) && (!((mute == 1))))) && ((_local2.locks < 100)))){
_local24 = Math.floor(((Math.random() * 3) + 1));
if (_local24 == 1){
sechannel = bom1.play();
};
if (_local24 == 2){
sechannel = bom2.play();
};
if (_local24 == 3){
sechannel = bom3.play();
};
};
_local2.locks = (_local2.locks + 1);
};
_local2.mhpbar.visible = false;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 142)))){
if (validuse < 2){
validuse = 2;
playherounlocked = 1;
};
_local2.e1.m1.gotoAndStop(141);
if ((((monsterlayar <= 0)) && ((level == 3)))){
if (idletime == 0){
idletime = 1;
playresultscreen = 0;
};
adaboss = 0;
stopspawn = 1;
maxtimespawn = Math.floor((maxleveltime[(level - 1)] / wavelevels[(level - 1)]));
};
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 9){
_local2.e1.um.visible = false;
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if (_local2.x >= 310){
_local2.x = (_local2.x - _local2.speeds);
} else {
_local2.x = (_local2.x - 2);
};
if ((((((barricadehp <= 0)) && ((_local2.x < 310)))) && ((_local2.y > 170)))){
_local2.y = (_local2.y - 2);
} else {
if ((((((barricadehp <= 0)) && ((_local2.x < 310)))) && ((_local2.y <= 170)))){
_local2.y = (_local2.y - 0.5);
};
};
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
_local2.e1.gotoAndStop(4);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage >= 90)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 0;
_local2.bisatembak = 1;
};
if (_local2.bisatembak == 1){
if (_local2.counterdamage == 93){
_local2.e1.m1.gotoAndStop(3);
if (mute != 1){
sechannel = fireabs.play();
};
};
if (_local2.counterdamage == 96){
globalPoint10 = _local2.e1.um.localToGlobal(new Point());
};
if (_local2.counterdamage == 100){
_local25 = new peluruenemy(globalPoint10.x, globalPoint10.y);
_local25.tipe = 5;
_local25.yangkeluarin = _local2.ke;
_local25.damages = damagebulletmonster[5];
_local25.angles = Math.atan2((pesawat.y - globalPoint10.y), (pesawat.x - globalPoint10.x));
_local25.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local25);
_local25.gotoAndStop(6);
_local2.bisatembak = 0;
};
};
if (_local2.counterdamage >= _local2.reloadtime){
_local2.counterdamage = 0;
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
if (mute != 1){
sechannel = senemymati2.play();
};
};
_local2.locks = (_local2.locks + 1);
};
if ((((((_local2.x <= 300)) && ((_local2.kondisi == 1)))) && ((barricadehp > 0)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((((_local2.x <= 170)) && ((_local2.kondisi == 1)))) && ((barricadehp <= 0)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((((((_local2.kondisi == 2)) && ((barricadehp <= 0)))) && ((_local2.x >= 170)))) && ((_local2.counterdamage == 0)))){
_local2.kondisi = 1;
_local2.locks = 0;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 10)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 10){
_local2.e1.um.visible = false;
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
_local2.x = (_local2.x - _local2.speeds);
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
_local2.e1.gotoAndStop(4);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage == 90)))){
_local2.e1.gotoAndStop(4);
_local2.locks = 0;
_local2.bisatembak = 1;
};
if ((((_local2.bisatembak == 1)) && ((_local2.counterdamage == 90)))){
_local26 = ((Math.random() * 1) + 45);
_local27 = (randomyglobal[_local2.links] + (15 * linktembak));
linktembak = (linktembak + 1);
_local28 = new peluruenemy(_local26, _local27);
_local28.tipe = 1;
_local28.damages = damagebulletmonster[6];
_local28.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local28);
_local28.visible = false;
_local28.gotoAndStop(2);
_local2.bisatembak = 0;
};
if ((((_local2.locks == 0)) && ((_local2.counterdamage >= 115)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 1;
};
if (_local2.counterdamage > _local2.reloadtime){
_local2.counterdamage = 0;
linktembak = 0;
_local2.locks = 0;
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
};
_local2.locks = (_local2.locks + 1);
};
if ((((_local2.x <= 450)) && ((_local2.kondisi == 1)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 20)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 11){
_local2.e1.um.visible = false;
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
_local2.x = (_local2.x - _local2.speeds);
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
_local2.e1.gotoAndStop(4);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage >= 90)))){
_local2.e1.gotoAndStop(4);
_local2.locks = 0;
_local2.bisatembak = 1;
};
if ((((_local2.bisatembak == 1)) && ((_local2.counterdamage == 100)))){
_local29 = _local2.e1.um.localToGlobal(new Point());
_local30 = new peluruenemy(_local29.x, _local29.y);
_local30.tipe = 0;
_local30.damages = damagebulletmonster[1];
_local30.angles = Math.atan2((pesawat.y - _local29.y), (pesawat.x - _local29.x));
_local30.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local30);
_local30.gotoAndStop(1);
};
if ((((_local2.bisatembak == 1)) && ((_local2.counterdamage == 110)))){
_local31 = _local2.e1.um.localToGlobal(new Point());
_local32 = new peluruenemy(_local31.x, _local31.y);
_local32.tipe = 0;
_local32.damages = damagebulletmonster[1];
_local32.angles = Math.atan2((pesawat.y - _local31.y), (pesawat.x - _local31.x));
_local32.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local32);
_local32.gotoAndStop(1);
};
if ((((_local2.bisatembak == 1)) && ((_local2.counterdamage == 120)))){
_local33 = _local2.e1.um.localToGlobal(new Point());
_local34 = new peluruenemy(_local33.x, _local33.y);
_local34.tipe = 0;
_local34.damages = damagebulletmonster[1];
_local34.angles = Math.atan2((pesawat.y - _local33.y), (pesawat.x - _local33.x));
_local34.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local34);
_local34.gotoAndStop(1);
_local2.bisatembak = 0;
};
if (_local2.counterdamage > _local2.reloadtime){
_local2.counterdamage = 0;
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
};
_local2.locks = (_local2.locks + 1);
};
if ((((_local2.x <= 450)) && ((_local2.kondisi == 1)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 20)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 12){
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
_local2.e1.sh.visible = false;
};
_local2.x = (_local2.x - _local2.speeds);
};
if (tembakrandomboss2 == 1){
_local2.specialskill1 = (_local2.specialskill1 + 1);
if ((((_local2.kondisi == 2)) && ((_local2.specialskill1 < 30)))){
if (_local2.locks == 0){
harmo = Math.floor(((Math.random() * 2) + 1));
_local2.e1.gotoAndStop(2);
_local2.locks = 1;
};
};
if ((((_local2.kondisi == 2)) && ((_local2.specialskill1 == 30)))){
if (mute != 1){
sechannel = electrical.play();
};
_local35 = new peluruenemy(pesawat.x, (pesawat.y - 60));
_local35.tipe = 2;
_local35.yangkeluarin = _local2.ke;
_local35.damages = damagebulletmonster[3];
_local35.statepeluru = harmo;
_local35.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local35);
_local35.gotoAndStop(4);
_local36 = new peluruenemy(pesawat.x, ((pesawat.y + pesawat.height) + 5));
_local36.tipe = 2;
_local36.yangkeluarin = _local2.ke;
_local36.damages = damagebulletmonster[3];
_local36.statepeluru = harmo;
_local36.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local36);
_local36.gotoAndStop(4);
};
if ((((_local2.kondisi == 2)) && ((_local2.specialskill1 > 240)))){
if (_local2.locks == 1){
_local2.e1.gotoAndStop(5);
_local2.locks = 0;
};
if (_local2.y < 300){
_local2.y = (_local2.y + 1);
};
};
if ((((_local2.specialskill1 > 320)) && (!((_local2.kondisi == 3))))){
_local2.specialskill1 = 0;
_local2.locks = 0;
tembakrandomboss2 = Math.floor(((Math.random() * 2) + 1));
_local2.repeatthesameskill = (_local2.repeatthesameskill + 1);
if (_local2.repeatthesameskill == 3){
tembakrandomboss2 = 2;
_local2.repeatthesameskill = 0;
};
};
};
if (tembakrandomboss2 == 2){
_local2.specialskill2 = (_local2.specialskill2 + 1);
if ((((_local2.kondisi == 2)) && ((_local2.specialskill2 < 30)))){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(4);
_local2.locks = 1;
};
};
if ((((_local2.kondisi == 2)) && ((_local2.specialskill2 == 30)))){
if (mute != 1){
sechannel = lasertink.play();
};
harmo = Math.floor(((Math.random() * 2) + 1));
_local37 = new peluruenemy(_local2.x, (_local2.y - (_local2.height - 20)));
_local37.tipe = 3;
_local37.yangkeluarin = _local2.ke;
_local37.damages = damagebulletmonster[4];
if (harmo == 1){
_local37.statepeluru = 0;
} else {
_local37.statepeluru = 1;
};
if (_local2.y < 180){
_local37.statepeluru = 2;
};
if (_local2.y > 300){
_local37.statepeluru = 3;
};
_local37.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local37);
_local37.gotoAndStop(5);
};
if ((((_local2.kondisi == 2)) && ((_local2.specialskill2 > 30)))){
if (_local2.locks == 1){
_local2.e1.gotoAndStop(5);
_local2.locks = 0;
};
};
if ((((_local2.kondisi == 2)) && ((_local2.specialskill2 > 240)))){
if (_local2.y > 120){
_local2.y = (_local2.y - 1);
};
};
if ((((_local2.specialskill2 > 300)) && (!((_local2.kondisi == 3))))){
_local2.specialskill2 = 0;
_local2.locks = 0;
tembakrandomboss2 = Math.floor(((Math.random() * 2) + 1));
_local2.repeatthesameskill = (_local2.repeatthesameskill + 1);
if (_local2.repeatthesameskill == 3){
tembakrandomboss2 = 1;
_local2.repeatthesameskill = 0;
};
};
};
if ((((_local2.kondisi == 1)) && ((_local2.x <= 520)))){
_local2.kondisi = 2;
_local2.locks = 0;
_local2.specialskill1 = 0;
tembakrandomboss2 = Math.floor(((Math.random() * 2) + 1));
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
stopspawn = 1;
};
_local2.locks = (_local2.locks + 1);
_local2.mhpbar.visible = false;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks >= 20)))){
enemykill = (enemykill + 1);
_local2.e1.m1.gotoAndStop(6);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
idletime = 1;
adaboss = 0;
_local2.locks = 0;
if (validuse < 3){
validuse = 3;
playherounlocked = 2;
};
maxtimespawn = Math.floor((maxleveltime[(level - 1)] / wavelevels[(level - 1)]));
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 13){
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.um1.visible = false;
_local2.e1.um2.visible = false;
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
_local2.e1.sh.visible = false;
tembakrandomboss2 = 1;
};
_local2.x = (_local2.x - _local2.speeds);
};
if (tembakrandomboss2 == 1){
_local2.specialskill1 = (_local2.specialskill1 + 1);
if ((((_local2.kondisi == 2)) && ((_local2.specialskill1 <= 200)))){
if (_local2.locks == 0){
harmo = (Math.floor((Math.random() * 2)) + 1);
_local2.e1.gotoAndStop(2);
_local2.locks = 1;
};
percepatan = (Math.floor((_local2.maxHealth / _local2.health)) * 2);
if (percepatan > 10){
percepatan = 10;
};
modulustembak = Math.floor((30 * (_local2.health / _local2.maxHealth)));
if (modulustembak < 10){
modulustembak = 10;
};
if (_local2.bisatembak == 0){
_local2.y = (_local2.y + percepatan);
if (_local2.y > 340){
_local2.bisatembak = 1;
};
};
if (_local2.bisatembak == 1){
_local2.y = (_local2.y - percepatan);
if (_local2.y < 100){
_local2.bisatembak = 0;
};
};
if ((_local2.specialskill1 % modulustembak) == 0){
if (((((_local2.specialskill1 % 10) == 0)) && (!((mute == 1))))){
sechannel = items4.play();
};
_local38 = _local2.e1.um1.localToGlobal(new Point());
_local39 = new peluruenemy(_local38.x, _local38.y);
_local39.tipe = 6;
_local39.damages = 15;
_local39.angles = Math.atan2((_local2.y - _local38.y), (0 - _local38.x));
_local39.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local39);
_local39.gotoAndStop(1);
_local40 = _local2.e1.um2.localToGlobal(new Point());
_local41 = new peluruenemy(_local40.x, _local40.y);
_local41.tipe = 6;
_local41.damages = 15;
_local41.angles = Math.atan2((_local2.y - _local40.y), (0 - _local40.x));
_local41.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local41);
_local41.gotoAndStop(1);
};
};
if ((((_local2.kondisi == 2)) && ((_local2.specialskill1 > 200)))){
if (_local2.locks == 1){
percepatan = 0;
_local2.e1.gotoAndStop(1);
_local2.locks = 0;
};
if (x > 300){
_local2.x = (_local2.x - 0.2);
};
};
if ((((_local2.specialskill1 > 300)) && (!((_local2.kondisi == 3))))){
_local2.specialskill1 = 0;
_local2.locks = 0;
tembakrandomboss2 = Math.floor(((Math.random() * 2) + 1));
_local2.repeatthesameskill = (_local2.repeatthesameskill + 1);
if (_local2.repeatthesameskill == 3){
tembakrandomboss2 = 2;
_local2.repeatthesameskill = 0;
};
};
};
if (tembakrandomboss2 == 2){
_local2.specialskill2 = (_local2.specialskill2 + 1);
if ((((_local2.kondisi == 2)) && ((_local2.specialskill2 <= 200)))){
if (_local2.locks == 0){
harmo = Math.floor(((Math.random() * 2) + 1));
_local2.e1.gotoAndStop(2);
_local2.locks = 1;
};
percepatan = (Math.floor((_local2.maxHealth / _local2.health)) * 2);
if (percepatan > 10){
percepatan = 10;
};
modulustembak = Math.floor((30 * (_local2.health / _local2.maxHealth)));
if (modulustembak < 10){
modulustembak = 10;
};
if (_local2.bisatembak == 0){
_local2.y = (_local2.y + percepatan);
if (_local2.y > 340){
_local2.bisatembak = 1;
};
};
if (_local2.bisatembak == 1){
_local2.y = (_local2.y - percepatan);
if (_local2.y < 100){
_local2.bisatembak = 0;
};
};
if ((_local2.specialskill2 % modulustembak) == 0){
if (mute != 1){
sechannel = lasertink.play();
};
_local42 = _local2.e1.um1.localToGlobal(new Point());
_local43 = new peluruenemy(_local42.x, _local42.y);
_local43.tipe = 6;
_local43.damages = damagebulletmonster[6];
_local43.angles = Math.atan2(((_local2.y - _local2.height) - _local42.y), (0 - _local42.x));
_local43.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local43);
_local43.gotoAndStop(7);
_local44 = _local2.e1.um2.localToGlobal(new Point());
_local45 = new peluruenemy(_local44.x, _local44.y);
_local45.tipe = 6;
_local45.damages = damagebulletmonster[6];
_local45.angles = Math.atan2(((_local2.y - _local2.height) - _local44.y), (0 - _local44.x));
_local45.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local45);
_local45.gotoAndStop(7);
};
};
if ((((_local2.kondisi == 2)) && ((_local2.specialskill2 > 200)))){
if (_local2.locks == 1){
percepatan = 0;
_local2.e1.gotoAndStop(1);
_local2.locks = 0;
};
if (x > 300){
_local2.x = (_local2.x - 0.2);
};
};
if ((((_local2.specialskill2 > 300)) && (!((_local2.kondisi == 3))))){
_local2.specialskill2 = 0;
_local2.locks = 0;
tembakrandomboss2 = Math.floor(((Math.random() * 2) + 1));
_local2.repeatthesameskill = (_local2.repeatthesameskill + 1);
if (_local2.repeatthesameskill == 3){
tembakrandomboss2 = 2;
_local2.repeatthesameskill = 0;
};
tembakrandomboss2 = 1;
};
};
if ((((_local2.kondisi == 1)) && ((_local2.x <= 560)))){
_local2.kondisi = 2;
_local2.locks = 0;
_local2.specialskill1 = 0;
tembakrandomboss2 = Math.floor(((Math.random() * 2) + 1));
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
};
if (_local2.locks < 185){
if (((((((_local2.locks % 20) == 0)) && (!((mute == 1))))) && ((_local2.locks < 140)))){
_local46 = Math.floor(((Math.random() * 3) + 1));
if (_local46 == 1){
sechannel = bom1.play();
};
if (_local46 == 2){
sechannel = bom2.play();
};
if (_local46 == 3){
sechannel = bom3.play();
};
};
_local2.locks = (_local2.locks + 1);
};
_local2.mhpbar.visible = false;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 185)))){
if (validuse < 4){
validuse = 4;
playherounlocked = 3;
};
_local2.e1.m1.gotoAndStop(185);
if ((((monsterlayar <= 0)) && ((level == 9)))){
if (idletime == 0){
idletime = 1;
playresultscreen = 0;
};
adaboss = 0;
stopspawn = 1;
maxtimespawn = Math.floor((maxleveltime[(level - 1)] / wavelevels[(level - 1)]));
};
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 14){
_local2.e1.um.visible = false;
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
_local2.x = (_local2.x - _local2.speeds);
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + 1);
if ((((_local2.locks == 0)) && ((_local2.counterdamage == 2)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage == 4)))){
_local2.e1.m1.gotoAndPlay(1);
_local2.locks = 0;
};
if ((((_local2.locks == 0)) && ((_local2.counterdamage == 8)))){
_local2.e1.m1.gotoAndStop(4);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage == 80)))){
_local2.e1.m1.gotoAndPlay(5);
_local2.locks = 0;
_local47 = Math.floor(((Math.random() * 2) + 1));
_local48 = _local2.e1.um.localToGlobal(new Point());
_local49 = new Sprite();
stage.addChild(_local49);
if (_local47 == 1){
_local50 = new bulletpopout();
_local50.x = _local48.x;
_local50.y = _local48.y;
_local50.scaleX = -1;
_local49.addChild(_local50);
if (mute != 1){
sechannel = bulletfall1.play();
};
};
if (_local47 == 2){
_local51 = new bulletpopup2();
_local51.x = _local48.x;
_local51.y = _local48.y;
_local51.scaleX = -1;
_local49.addChild(_local51);
if (mute != 1){
sechannel = bulletfall2.play();
};
};
if (mute != 1){
sechannel = tembak1.play();
};
civilians[_local2.targetexecution].kondisi = 3;
};
if ((((_local2.locks == 0)) && ((_local2.counterdamage == 84)))){
_local2.e1.m1.gotoAndStop(8);
};
if (_local2.counterdamage >= 100){
_local2.e1.gotoAndPlay(1);
_local2.kondisi = 4;
};
};
if (_local2.kondisi == 4){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
_local2.x = (_local2.x - (_local2.width / 2));
_local2.scaleX = 1;
};
_local2.x = (_local2.x + 3);
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
if (mute != 1){
sechannel = senemymati2.play();
};
};
_local2.locks = (_local2.locks + 1);
};
if ((((_local2.x <= 600)) && ((_local2.kondisi == 1)))){
_local2.kondisi = 2;
_local2.locks = 0;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 15)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
if ((((_local2.kondisi == 4)) && ((_local2.x > 650)))){
monsterlayar = (monsterlayar - 1);
_local2.kondisi = 3;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
};
if (_local2.tipe == 15){
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if (_local2.x >= 310){
_local2.x = (_local2.x - _local2.speeds);
} else {
_local2.x = (_local2.x - 2);
};
if ((((((barricadehp <= 0)) && ((_local2.x < 310)))) && ((_local2.y > 170)))){
_local2.y = (_local2.y - 2);
} else {
if ((((((barricadehp <= 0)) && ((_local2.x < 310)))) && ((_local2.y <= 170)))){
_local2.y = (_local2.y - 0.5);
};
};
};
if (_local2.kondisi == 4){
_local2.isjump = (_local2.isjump + 1);
if (_local2.locks == 1){
_local2.e1.gotoAndStop(5);
_local2.locks = 0;
if (mute != 1){
sechannel = zomdogjumps.play();
};
};
if (_local2.isjump < 5){
_local2.x = (_local2.x - 13);
};
if ((((_local2.isjump >= 5)) && ((_local2.isjump < 11)))){
_local2.x = (_local2.x - 13);
};
if (_local2.isjump == 10){
_local2.isjump = 0;
_local2.kondisi = 2;
_local2.counterdamage = 0;
};
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage < 90)))){
if ((((_local2.y > pesawat.y)) && ((_local2.counterdamage < 70)))){
_local2.y = (_local2.y - 2);
if (_local2.y < pesawat.y){
_local2.counterdamage = 90;
};
} else {
if ((((((_local2.y <= pesawat.y)) && ((_local2.counterdamage < 70)))) && (((_local2.y + _local2.height) <= 420)))){
_local2.y = (_local2.y + 2);
if (_local2.y > pesawat.y){
_local2.counterdamage = 90;
};
};
};
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage >= 95)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 0;
if (mute != 1){
sechannel = zomdogbite.play();
};
};
if ((((((((_local2.hitTestObject(pesawat.hittesmc) == true)) && ((mchealth > 0)))) && ((_local2.havetakedamage == 0)))) && ((_local2.counterdamage >= 100)))){
if (_local2.missornot > evade){
mchealth = (mchealth - _local2.damages);
};
if (mchealth <= 0){
mchealth = 0;
};
if (_local2.missornot > evade){
popupdamageplayer(_local2.damages);
playertakedamage(_local2.damages);
} else {
if ((((_local2.missornot <= evade)) && ((_local2.missornot >= 0)))){
popupdamageplayer(0);
_local2.missornot = -99;
};
};
_local2.havetakedamage = 1;
};
if (_local2.counterdamage >= _local2.reloadtime){
_local2.havetakedamage = 0;
_local2.counterdamage = 0;
_local2.missornot = (Math.random() * 100);
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
};
_local2.locks = (_local2.locks + 1);
};
if ((((_local2.hitTestObject(temboks.sh) == true)) && ((_local2.kondisi == 1)))){
_local2.kondisi = 4;
_local2.locks = 1;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 15)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 16){
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if (_local2.x >= 310){
_local2.x = (_local2.x - _local2.speeds);
} else {
_local2.x = (_local2.x - 2);
};
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage < 90)))){
if ((((_local2.y > (pesawat.y + 50))) && ((_local2.counterdamage < 70)))){
_local2.y = (_local2.y - 1);
} else {
if ((((((_local2.y <= (pesawat.y - 50))) && ((_local2.counterdamage < 70)))) && (((_local2.y + _local2.height) <= 470)))){
_local2.y = (_local2.y + 1);
};
};
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage == 90)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 0;
if (mute != 1){
sechannel = trexbite.play();
};
};
if ((((((((_local2.hitTestObject(temboks) == true)) && ((barricadehp > 0)))) && ((_local2.havetakedamage == 0)))) && ((_local2.counterdamage == _local2.reloadtime)))){
barricadehp = (barricadehp - Math.floor((_local2.damages - ((_local2.damages * defwall) / 100))));
if (barricadehp <= 0){
barricadehp = 0;
};
walltakedamage(_local2.damages, _local2.y);
_local2.havetakedamage = 1;
};
if ((((((((_local2.hitTestObject(pesawat.hittesmc) == true)) && ((mchealth > 0)))) && ((_local2.havetakedamage <= 1)))) && ((_local2.counterdamage == _local2.reloadtime)))){
if (_local2.missornot > evade){
mchealth = (mchealth - _local2.damages);
badcondition = 1;
};
if (mchealth <= 0){
mchealth = 0;
};
if (_local2.missornot > evade){
popupdamageplayer(_local2.damages);
playertakedamage(_local2.damages);
} else {
if ((((_local2.missornot <= evade)) && ((_local2.missornot >= 0)))){
popupdamageplayer(0);
_local2.missornot = -99;
};
};
_local2.havetakedamage = 2;
};
if (_local2.counterdamage >= _local2.reloadtime){
_local2.havetakedamage = 0;
_local2.counterdamage = 0;
_local2.missornot = (Math.random() * 100);
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
};
_local2.locks = (_local2.locks + 1);
};
if ((((_local2.hitTestObject(temboks.sh) == true)) && ((_local2.kondisi == 1)))){
_local2.kondisi = 2;
_local2.locks = 1;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 29)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 17){
if (_local2.kondisi == 1){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage == 1)))){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if ((((_local2.x >= 310)) && ((_local2.counterdamage < 20)))){
_local2.x = (_local2.x - _local2.speeds);
} else {
if (_local2.counterdamage < 20){
_local2.x = (_local2.x - 0.4);
if (_local2.x >= 150){
_local2.y = (_local2.y - 0.2);
};
};
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage == 20)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 0;
};
if (_local2.counterdamage >= _local2.reloadtime){
_local2.counterdamage = 0;
};
};
if ((((((barricadehp > 0)) && ((_local2.hitTestObject(temboks.sh) == true)))) && ((_local2.kondisi == 1)))){
_local2.kondisi = 3;
_local2.locks = 0;
_local2.health = 0;
if ((((level == 12)) && ((sublevels == 1)))){
killmission[0] = (killmission[0] + 1);
};
monsterlayar = (monsterlayar - 1);
};
if ((((((barricadehp <= 0)) && ((_local2.x == 140)))) && ((_local2.kondisi == 1)))){
_local2.kondisi = 3;
_local2.locks = 0;
_local2.health = 0;
if ((((level == 12)) && ((sublevels == 1)))){
killmission[0] = (killmission[0] + 1);
};
monsterlayar = (monsterlayar - 1);
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
if (mute != 1){
sechannel = bom1.play();
};
};
_local2.locks = (_local2.locks + 1);
};
if ((((((((_local2.hitTestObject(temboks.sh) == true)) && ((_local2.kondisi == 3)))) && ((_local2.locks == 10)))) && ((barricadehp > 0)))){
barricadehp = (barricadehp - Math.floor((_local2.damages - ((_local2.damages * defwall) / 100))));
if (barricadehp <= 0){
barricadehp = 0;
};
walltakedamage(_local2.damages, _local2.y);
_local2.havetakedamage = 1;
};
if ((((((_local2.hitTestObject(pesawat.hittesmc) == true)) && ((mchealth > 0)))) && ((_local2.locks == 10)))){
if (_local2.missornot > evade){
mchealth = (mchealth - _local2.damages);
};
if (mchealth <= 0){
mchealth = 0;
};
if (_local2.missornot > evade){
popupdamageplayer(_local2.damages);
playertakedamage(_local2.damages);
} else {
if ((((_local2.missornot <= evade)) && ((_local2.missornot >= 0)))){
popupdamageplayer(0);
_local2.missornot = -99;
};
};
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 33)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
popupexp(_local2.x, _local2.y, _local2.experiences);
if ((((level == 11)) && ((sublevels == 2)))){
killmission[0] = (killmission[0] + 1);
};
};
};
if (_local2.tipe == 18){
_local2.e1.um.visible = false;
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
_local2.arahjump = 0;
};
_local2.x = (_local2.x - _local2.speeds);
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
_local2.e1.gotoAndStop(4);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage == 90)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 0;
};
if (_local2.counterdamage == 100){
_local2.bisatembak = 1;
};
if (_local2.bisatembak == 1){
_local52 = Math.floor(((Math.random() * 2) + 1));
_local53 = _local2.e1.um.localToGlobal(new Point());
_local54 = new Sprite();
stage.addChild(_local54);
if (_local52 == 1){
_local56 = new bulletpopout();
_local56.x = _local53.x;
_local56.y = _local53.y;
_local56.scaleX = -1;
_local54.addChild(_local56);
if (mute != 1){
sechannel = bulletfall1.play();
};
};
if (_local52 == 2){
_local57 = new bulletpopup2();
_local57.x = _local53.x;
_local57.y = _local53.y;
_local57.scaleX = -1;
_local54.addChild(_local57);
if (mute != 1){
sechannel = bulletfall2.play();
};
};
if (mute != 1){
sechannel = tembak1.play();
};
_local55 = new peluruenemy(_local53.x, _local53.y);
_local55.tipe = 0;
_local55.damages = damagebulletmonster[0];
_local55.angles = Math.atan2((pesawat.y - _local53.y), (pesawat.x - _local53.x));
_local55.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local55);
_local55.gotoAndStop(1);
_local2.bisatembak = 0;
};
if ((((_local2.locks == 0)) && ((_local2.counterdamage == 125)))){
_local2.e1.m1.gotoAndStop(30);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage == 175)))){
_local2.e1.gotoAndStop(4);
_local2.locks = 0;
};
if (_local2.counterdamage >= _local2.reloadtime){
_local2.locks = 0;
_local2.counterdamage = 0;
_local2.kondisi = 1;
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
popupexp(_local2.x, _local2.y, _local2.experiences);
if (mute != 1){
sechannel = senemymati2.play();
};
};
_local2.locks = (_local2.locks + 1);
};
if ((((((((_local2.x <= 300)) || (((((_local2.x % 100) == 0)) && ((_local2.arahjump == 0)))))) && ((_local2.x <= 620)))) && ((_local2.kondisi == 1)))){
_local2.kondisi = 2;
_local2.locks = 0;
_local2.arahjump = 1;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 42)))){
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 19){
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if (_local2.x >= 310){
_local2.x = (_local2.x - _local2.speeds);
} else {
_local2.x = (_local2.x - 2);
};
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage < 90)))){
if ((((_local2.y > (pesawat.y + 50))) && ((_local2.counterdamage < 70)))){
_local2.y = (_local2.y - 1);
} else {
if ((((((_local2.y <= (pesawat.y - 50))) && ((_local2.counterdamage < 70)))) && (((_local2.y + _local2.height) <= 470)))){
_local2.y = (_local2.y + 1);
};
};
};
if ((((_local2.locks == 1)) && ((_local2.counterdamage == 90)))){
_local2.e1.gotoAndStop(2);
_local2.locks = 0;
};
if (((((((_local2.counterdamage % 3) == 0)) && (!((mute == 1))))) && ((_local2.counterdamage >= 120)))){
_local58 = Math.floor(((Math.random() * 4) + 1));
if (_local58 == 1){
sechannel = sword1.play();
};
if (_local58 == 2){
sechannel = sword2.play();
};
if (_local58 == 3){
sechannel = sword3.play();
};
if (_local58 == 4){
sechannel = sword3.play();
};
};
if ((((((_local2.hitTestObject(temboks) == true)) && ((barricadehp > 0)))) && ((_local2.havetakedamage == 0)))){
barricadehp = (barricadehp - Math.floor((_local2.damages - ((_local2.damages * defwall) / 100))));
if (barricadehp <= 0){
barricadehp = 0;
};
walltakedamage(_local2.damages, _local2.y);
_local2.havetakedamage = 1;
};
if ((((((_local2.hitTestObject(pesawat.hittesmc) == true)) && ((mchealth > 0)))) && ((_local2.havetakedamage <= 1)))){
if (_local2.missornot > evade){
mchealth = (mchealth - _local2.damages);
badcondition = 1;
};
if (mchealth <= 0){
mchealth = 0;
};
if (_local2.missornot > evade){
popupdamageplayer(_local2.damages);
playertakedamage(_local2.damages);
} else {
if ((((_local2.missornot <= evade)) && ((_local2.missornot >= 0)))){
popupdamageplayer(0);
_local2.missornot = -99;
};
};
if (_local2.counterdamage > 130){
_local2.havetakedamage = 2;
};
};
if (_local2.counterdamage >= 135){
_local2.havetakedamage = 0;
_local2.counterdamage = 0;
_local2.missornot = (Math.random() * 100);
_local2.kondisi = 1;
_local2.x = 620;
_local2.e1.gotoAndStop(1);
bolhp[0] = 20;
bolhp[1] = 20;
bolhp[2] = 20;
bolhp[3] = 20;
_local2.e1.bol1.visible = true;
_local2.e1.bol2.visible = true;
_local2.e1.bol3.visible = true;
_local2.e1.bol4.visible = true;
};
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(3);
};
_local2.locks = (_local2.locks + 1);
if (((((((_local2.locks % 20) == 0)) && (!((mute == 1))))) && ((_local2.locks < 140)))){
_local59 = Math.floor(((Math.random() * 3) + 1));
if (_local59 == 1){
sechannel = bom1.play();
};
if (_local59 == 2){
sechannel = bom2.play();
};
if (_local59 == 3){
sechannel = bom3.play();
};
};
_local2.e1.bol1.alpha = (_local2.e1.bol1.alpha - 0.01);
_local2.e1.bol2.alpha = (_local2.e1.bol2.alpha - 0.01);
_local2.e1.bol3.alpha = (_local2.e1.bol3.alpha - 0.01);
_local2.e1.bol4.alpha = (_local2.e1.bol4.alpha - 0.01);
};
if ((((_local2.x <= 470)) && ((_local2.kondisi == 1)))){
_local2.kondisi = 2;
_local2.locks = 0;
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 170)))){
popupexp(_local2.x, _local2.y, _local2.experiences);
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
if (_local2.tipe == 20){
if ((((_local2.specialskill2 == 0)) && ((_local2.health <= ((1 / 5) * _local2.maxHealth))))){
spawnenemy(680, 300, 19, 1);
_local2.specialskill2 = 1;
cooldown = 0;
};
if (_local2.kondisi == 1){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(2);
_local2.locks = 1;
_local2.specialskill2 = 0;
};
if ((((_local2.locks == 1)) && ((_local2.x < 740)))){
_local2.e1.m1.gotoAndStop(1);
_local2.locks = 2;
};
if (_local2.x >= 500){
_local2.x = (_local2.x - _local2.speeds);
};
};
if (_local2.kondisi == 2){
_local2.counterdamage = (_local2.counterdamage + _local2.incdelay);
if ((((_local2.locks == 0)) && ((_local2.counterdamage < 90)))){
_local2.e1.gotoAndStop(1);
_local2.locks = 1;
};
if ((((((_local2.locks == 1)) && ((_local2.counterdamage == 90)))) && ((((_local2.specialskill1 == 4)) && ((_local2.health >= ((4 / 5) * _local2.maxHealth))))))){
_local2.e1.gotoAndStop(6);
_local2.locks = 0;
};
if ((((_local2.specialskill1 == 4)) && ((_local2.counterdamage == 135)))){
barricadehp = (barricadehp - _local2.damages);
badcondition = 2;
if (barricadehp <= 0){
barricadehp = 0;
};
walltakedamage(_local2.damages, _local2.y);
timers = (timers + 1);
};
if ((((((_local2.locks == 1)) && ((_local2.counterdamage == 90)))) && ((((_local2.specialskill1 == 3)) && ((_local2.health >= ((3 / 5) * _local2.maxHealth))))))){
_local2.e1.gotoAndStop(5);
_local2.locks = 0;
};
if ((((_local2.specialskill1 == 3)) && ((_local2.counterdamage == 120)))){
if (mute != 1){
sechannel = electrical.play();
};
_local60 = new peluruenemy(320, 240);
_local60.tipe = 10;
_local60.yangkeluarin = _local2.ke;
_local60.damages = damagebulletmonster[10];
_local60.statepeluru = 1;
_local60.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local60);
_local60.gotoAndStop(10);
_local61 = new peluruenemy(320, 240);
_local61.tipe = 10;
_local61.yangkeluarin = _local2.ke;
_local61.damages = damagebulletmonster[10];
_local61.statepeluru = 2;
_local61.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local61);
_local61.gotoAndStop(10);
};
if ((((((_local2.locks == 1)) && ((_local2.counterdamage == 90)))) && ((((_local2.specialskill1 == 2)) && ((_local2.health >= ((2 / 5) * _local2.maxHealth))))))){
_local2.e1.gotoAndStop(4);
_local2.locks = 0;
};
if ((((_local2.specialskill1 == 2)) && ((_local2.counterdamage == 120)))){
if (mute != 1){
sechannel = iceberg.play();
};
_local2.e1.m1.gotoAndStop(31);
_local62 = -350;
_local63 = new peluruenemy(80, _local62);
_local63.tipe = 9;
_local63.damages = damagebulletmonster[9];
_local63.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local63);
_local63.gotoAndStop(9);
};
if ((((_local2.specialskill1 == 2)) && ((_local2.counterdamage == 125)))){
if (mute != 1){
sechannel = iceberg.play();
};
_local64 = new peluruenemy(80, -420);
_local64.tipe = 9;
_local64.damages = damagebulletmonster[9];
_local64.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local64);
_local64.gotoAndStop(9);
};
if ((((_local2.specialskill1 == 2)) && ((_local2.counterdamage == 130)))){
if (mute != 1){
sechannel = iceberg.play();
};
_local65 = new peluruenemy(80, -490);
_local65.tipe = 9;
_local65.damages = damagebulletmonster[9];
_local65.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local65);
_local65.gotoAndStop(9);
};
if ((((_local2.specialskill1 == 2)) && ((_local2.counterdamage == 135)))){
if (mute != 1){
sechannel = iceberg.play();
};
_local66 = new peluruenemy(80, -560);
_local66.tipe = 9;
_local66.damages = damagebulletmonster[9];
_local66.addEventListener(Event.ENTER_FRAME, tembakmusuh);
addChild(_local66);
_local66.gotoAndStop(9);
};
if ((((((_local2.locks == 1)) && ((_local2.counterdamage == 90)))) && ((_local2.specialskill1 == 1)))){
_local2.e1.gotoAndStop(3);
_local2.locks = 0;
};
if ((((_local2.specialskill1 == 1)) && ((_local2.counterdamage == 120)))){
if (_local2.health > ((_local2.maxHealth * 3) / 5)){
_local67 = new dronee();
_local67.x = 170;
_local67.y = -30;
_local67.temps = 1;
_local67.kondisi = 1;
_local67.addEventListener(Event.ENTER_FRAME, danganronpa);
addChild(_local67);
_local68 = new dronee();
_local68.x = 170;
_local68.y = -30;
_local68.temps = 3;
_local68.kondisi = 1;
_local68.addEventListener(Event.ENTER_FRAME, danganronpa);
addChild(_local68);
};
if ((((_local2.health >= ((_local2.maxHealth * 1) / 5))) && ((_local2.health <= ((_local2.maxHealth * 3) / 5))))){
_local69 = new dronee();
_local69.x = 170;
_local69.y = -30;
_local69.temps = 0;
_local69.kondisi = 1;
_local69.addEventListener(Event.ENTER_FRAME, danganronpa);
addChild(_local69);
_local70 = new dronee();
_local70.x = 170;
_local70.y = -30;
_local70.temps = 2;
_local70.kondisi = 1;
_local70.addEventListener(Event.ENTER_FRAME, danganronpa);
addChild(_local70);
_local71 = new dronee();
_local71.x = 170;
_local71.y = -30;
_local71.temps = 4;
_local71.kondisi = 1;
_local71.addEventListener(Event.ENTER_FRAME, danganronpa);
addChild(_local71);
};
if (_local2.health < ((_local2.maxHealth * 1) / 5)){
_local72 = Math.floor(((Math.random() * 5) + 1));
if (_local72 != 1){
_local73 = new dronee();
_local73.x = 170;
_local73.y = -30;
_local73.temps = 0;
_local73.kondisi = 1;
_local73.addEventListener(Event.ENTER_FRAME, danganronpa);
addChild(_local73);
};
if (_local72 != 2){
_local74 = new dronee();
_local74.x = 170;
_local74.y = -30;
_local74.temps = 1;
_local74.kondisi = 1;
_local74.addEventListener(Event.ENTER_FRAME, danganronpa);
addChild(_local74);
};
if (_local72 != 4){
_local75 = new dronee();
_local75.x = 170;
_local75.y = -30;
_local75.temps = 3;
_local75.kondisi = 1;
_local75.addEventListener(Event.ENTER_FRAME, danganronpa);
addChild(_local75);
};
if (_local72 != 5){
_local76 = new dronee();
_local76.x = 170;
_local76.y = -30;
_local76.temps = 4;
_local76.kondisi = 1;
_local76.addEventListener(Event.ENTER_FRAME, danganronpa);
addChild(_local76);
};
};
};
if ((((_local2.counterdamage >= 140)) && ((((_local2.specialskill1 == 1)) || ((_local2.specialskill1 == 4)))))){
_local2.havetakedamage = 0;
_local2.counterdamage = 0;
_local2.missornot = (Math.random() * 100);
_local2.specialskill1 = (_local2.specialskill1 + 1);
if ((((_local2.health < ((4 / 5) * _local2.maxHealth))) && ((_local2.specialskill1 == 4)))){
_local2.specialskill1 = 1;
};
if ((((_local2.health < ((3 / 5) * _local2.maxHealth))) && ((_local2.specialskill1 == 3)))){
_local2.specialskill1 = 1;
};
if ((((_local2.health < ((2 / 5) * _local2.maxHealth))) && ((_local2.specialskill1 == 2)))){
_local2.specialskill1 = 1;
};
if (_local2.specialskill1 >= 5){
_local2.specialskill1 = 1;
};
};
if ((((_local2.counterdamage >= 141)) && ((_local2.specialskill1 == 2)))){
_local2.havetakedamage = 0;
_local2.counterdamage = 0;
_local2.missornot = (Math.random() * 100);
_local2.specialskill1 = (_local2.specialskill1 + 1);
if ((((_local2.health < ((4 / 5) * _local2.maxHealth))) && ((_local2.specialskill1 == 4)))){
_local2.specialskill1 = 1;
};
if ((((_local2.health < ((3 / 5) * _local2.maxHealth))) && ((_local2.specialskill1 == 3)))){
_local2.specialskill1 = 1;
};
if ((((_local2.health < ((2 / 5) * _local2.maxHealth))) && ((_local2.specialskill1 == 2)))){
_local2.specialskill1 = 1;
};
if (_local2.specialskill1 >= 5){
_local2.specialskill1 = 1;
};
};
if ((((_local2.counterdamage >= 150)) && ((_local2.specialskill1 == 3)))){
_local2.havetakedamage = 0;
_local2.counterdamage = 0;
_local2.missornot = (Math.random() * 100);
_local2.specialskill1 = (_local2.specialskill1 + 1);
if ((((_local2.health < ((4 / 5) * _local2.maxHealth))) && ((_local2.specialskill1 == 4)))){
_local2.specialskill1 = 1;
};
if ((((_local2.health < ((3 / 5) * _local2.maxHealth))) && ((_local2.specialskill1 == 3)))){
_local2.specialskill1 = 1;
};
if ((((_local2.health < ((2 / 5) * _local2.maxHealth))) && ((_local2.specialskill1 == 2)))){
_local2.specialskill1 = 1;
};
if (_local2.specialskill1 >= 5){
_local2.specialskill1 = 1;
};
};
};
if ((((((_local2.x <= 500)) && ((_local2.kondisi == 1)))) && ((_local2.counterdamage == 0)))){
_local2.e1.m1.gotoAndPlay(1);
_local2.specialskill1 = 1;
_local2.counterdamage = 1;
};
if ((((_local2.counterdamage > 0)) && ((_local2.kondisi == 1)))){
_local2.counterdamage = (_local2.counterdamage + 1);
};
if ((((_local2.counterdamage == 155)) && ((_local2.kondisi == 1)))){
_local2.kondisi = 2;
_local2.locks = 0;
};
if (_local2.kondisi == 3){
if (_local2.locks == 0){
_local2.e1.gotoAndStop(7);
popupexp(_local2.x, _local2.y, _local2.experiences);
};
_local2.locks = (_local2.locks + 1);
if (((((((_local2.locks % 20) == 0)) && (!((mute == 1))))) && ((_local2.locks < 140)))){
_local77 = Math.floor(((Math.random() * 3) + 1));
if (_local77 == 1){
sechannel = bom1.play();
};
if (_local77 == 2){
sechannel = bom2.play();
};
if (_local77 == 3){
sechannel = bom3.play();
};
};
};
if ((((_local2.kondisi == 3)) && ((_local2.locks == 170)))){
stopspawn = 1;
enemykill = (enemykill + 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((_local2.health <= 0)) && (!((_local2.kondisi == 3))))){
_local2.kondisi = 3;
_local2.locks = 0;
};
};
};
if (pauseornot == 1){
_local2.e1.gotoAndStop(_local2.e1.currentFrame);
};
if (_local2.stunornot >= 1){
_local2.e1.gotoAndStop(1);
_local2.stuns.visible = true;
_local2.stunornot = (_local2.stunornot + 1);
};
if (_local2.stunornot == 90){
_local2.stunornot = 0;
_local2.counterdamage = 0;
_local2.stuns.visible = false;
};
if (_local2.health <= 0){
_local2.cowardornot = 0;
_local2.stunornot = 0;
};
if (_local2.cowardornot == 1){
_local2.x = (_local2.x + 3);
};
if ((((_local2.x >= 700)) && ((_local2.cowardornot == 1)))){
_local2.kondisi = 3;
_local2.health = 0;
monsterlayar = (monsterlayar - 1);
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if (mchealth <= 0){
_local2.e1.gotoAndStop(1);
};
if (waktuciviliansaved == 151){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, monsterEnterFrame);
};
if ((((modepeluru == 3)) && ((nanana.hitTestObject(_local2) == true)))){
nanana.gotoAndStop(2);
};
if ((((((((((((((((rechargebullet == 0)) && ((canFire == true)))) && ((mchealth > 0)))) && ((modepeluru == 3)))) && ((nanana.hitTestObject(_local2) == true)))) && (!((_local2.kondisi == 3))))) && ((_local2.health > 0)))) && ((mouseclicked == 1)))){
_local78 = 0;
while (_local78 < jumlahmonster) {
if (dummy[_local78].kondisi != 3){
dummy[_local78].hitbylaser = 0;
};
_local78 = (_local78 + 1);
};
bounce = 0;
laserreduction = 0;
adayangditembak = 1;
currentbulletused = (currentbulletused + 1);
setpeluruanimation((currentbulletused + 1));
canFire = false;
recharge = 0;
if (mute != 1){
sechannel = tembak2.play();
};
_local79 = Math.atan2((mouseY - pesawat.y), (mouseX - pesawat.x));
_local80 = ((_local79 * 180) / Math.PI);
_local81 = pesawat.chara1.uufo.localToGlobal(new Point());
pesawat.chara1.uufo.localToGlobal(new Point()).x = (_local81.x + 20);
_local81.y = _local81.y;
pesawat.chara1.uufo.rotation = ((Math.atan2((mouseY - _local81.y), (mouseX - _local81.x)) * 180) / Math.PI);
_local82 = pesawat.chara1.uufo.localToGlobal(new Point());
_local83 = new Sprite();
stage.addChild(_local83);
_local84 = new load1();
_local84.x = (_local82.x + 20);
_local84.y = _local82.y;
_local84.rotation = _local80;
_local83.addChild(_local84);
createchain(_local81.x, _local81.y, _local2.ke);
pembuat = _local2.ke;
gege = 0;
};
}
public function tembakmusuh(_arg1){
var _local2:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local2 = 10;
var _local3:* = Math.floor(((Math.random() * 3) + 1));
_local4 = _arg1.currentTarget;
if (_local4.tipe != 9){
_local4.visible = true;
};
if (pauseornot == 1){
_local4.be.gotoAndStop(_local4.be.currentFrame);
};
if (pauseornot == 0){
if (_local4.tipe == 0){
_local4.x = (_local4.x + (Math.cos(_local4.angles) * _local2));
_local4.y = (_local4.y + (Math.sin(_local4.angles) * _local2));
};
if (_local4.tipe == 6){
_local4.x = (_local4.x + (Math.cos(_local4.angles) * _local2));
};
if (_local4.tipe == 8){
_local4.waktubom = (_local4.waktubom + 1);
};
if (_local4.tipe == 9){
_local4.be.area1.visible = false;
if (_local4.waktubom < 33){
_local4.y = (_local4.y + 20);
};
_local4.waktubom = (_local4.waktubom + 1);
};
if (_local4.tipe == 1){
_local4.be.area1.visible = false;
_local4.waktubom = (_local4.waktubom + 1);
};
if ((((_local4.tipe == 2)) || ((_local4.tipe == 10)))){
if (_local4.tipe == 10){
_local4.x = (_local4.x - 1);
};
_local4.waktubom = (_local4.waktubom + 1);
if ((((((((_local4.waktubom == 60)) || ((_local4.waktubom == 120)))) || ((_local4.waktubom == 180)))) && ((_local4.tipe == 2)))){
if (_local4.statepeluru == 1){
_local4.statepeluru = 2;
_local4.missornot = (Math.random() * 100);
} else {
if (_local4.statepeluru == 2){
_local4.statepeluru = 1;
_local4.missornot = (Math.random() * 100);
};
};
};
if ((((((((((_local4.waktubom == 60)) || ((_local4.waktubom == 120)))) || ((_local4.waktubom == 180)))) || ((_local4.waktubom == 240)))) && ((_local4.tipe == 10)))){
if (_local4.statepeluru == 1){
_local4.statepeluru = 2;
_local4.missornot = (Math.random() * 100);
} else {
if (_local4.statepeluru == 2){
_local4.statepeluru = 1;
_local4.missornot = (Math.random() * 100);
};
};
};
if ((((_local4.statepeluru == 1)) && ((_local4.tipe == 2)))){
_local4.y = (_local4.y - 1.5);
};
if ((((_local4.statepeluru == 2)) && ((_local4.tipe == 2)))){
_local4.y = (_local4.y + 1.5);
};
if ((((_local4.statepeluru == 1)) && ((_local4.tipe == 10)))){
_local4.y = (_local4.y - 1);
};
if ((((_local4.statepeluru == 2)) && ((_local4.tipe == 10)))){
_local4.y = (_local4.y + 1);
};
if ((((dummy[_local4.yangkeluarin].kondisi == 3)) || ((dummy[_local4.yangkeluarin].health <= 0)))){
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
};
if (_local4.tipe == 3){
_local4.waktubom = (_local4.waktubom + 1);
if ((((_local4.statepeluru == 0)) && ((_local4.rotation < 9)))){
_local4.rotation = (_local4.rotation + 0.3);
} else {
_local4.statepeluru = 1;
_local4.missornot = (Math.random() * 100);
};
if ((((_local4.statepeluru == 1)) && ((_local4.rotation > -9)))){
_local4.rotation = (_local4.rotation - 0.3);
} else {
_local4.statepeluru = 0;
_local4.missornot = (Math.random() * 100);
};
if (_local4.statepeluru == 2){
_local4.rotation = (_local4.rotation + 0.2);
};
if (_local4.statepeluru == 3){
_local4.rotation = (_local4.rotation - 0.2);
};
if ((((dummy[_local4.yangkeluarin].kondisi == 3)) || ((dummy[_local4.yangkeluarin].health <= 0)))){
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
};
if (_local4.tipe == 5){
_local4.waktubom = (_local4.waktubom + 1);
if ((((dummy[_local4.yangkeluarin].kondisi == 3)) || ((dummy[_local4.yangkeluarin].health <= 0)))){
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
};
if ((((waktubom >= 2)) && ((_local4.tipe == 1)))){
_local4.visible = true;
};
if (((((_local4.hitTestObject(temboks.sh)) && ((barricadehp > 0)))) && ((_local4.tipe == 5)))){
if ((_local4.waktubom % 5) == 0){
barricadehp = (barricadehp - Math.floor((_local4.damages - ((_local4.damages * defwall) / 100))));
if (barricadehp <= 0){
barricadehp = 0;
};
walltakedamage(_local4.damages, _local4.y);
};
};
if (((_local4.hitTestObject(pesawat.hittesmc)) && ((mchealth > 0)))){
if ((((((((((_local4.tipe == 0)) || ((_local4.tipe == 5)))) || ((_local4.tipe == 6)))) || ((_local4.tipe == 8)))) || ((_local4.tipe == 9)))){
if ((((stopspawn == 0)) || ((monsterlayar > 0)))){
if (_local4.missornot > evade){
if ((((((_local4.tipe == 0)) || ((_local4.tipe == 6)))) || ((_local4.tipe == 8)))){
mchealth = (mchealth - _local4.damages);
} else {
if ((((((_local4.tipe == 5)) || ((_local4.tipe == 9)))) && (((_local4.waktubom % 10) == 0)))){
if (_local4.tipe == 5){
mchealth = (mchealth - _local4.damages);
};
if (_local4.tipe == 9){
if (((_local4.be.area1.hitTestObject(pesawat.hittesmc)) && ((mchealth > 0)))){
mchealth = (mchealth - _local4.damages);
};
};
};
};
};
};
if (mchealth <= 0){
mchealth = 0;
};
if ((((stopspawn == 0)) || ((monsterlayar > 0)))){
if (_local4.missornot > evade){
if ((((((_local4.tipe == 5)) || ((_local4.tipe == 9)))) && (((_local4.waktubom % 10) == 0)))){
if (_local4.tipe == 5){
popupdamageplayer(_local4.damages);
playertakedamage(_local4.damages);
};
if (_local4.tipe == 9){
if (((_local4.be.area1.hitTestObject(pesawat.hittesmc)) && ((mchealth > 0)))){
popupdamageplayer(_local4.damages);
playertakedamage(_local4.damages);
};
};
};
if ((((((_local4.tipe == 0)) || ((_local4.tipe == 6)))) || ((_local4.tipe == 8)))){
popupdamageplayer(_local4.damages);
playertakedamage(_local4.damages);
if ((((_local4.tipe == 0)) || ((_local4.tipe == 6)))){
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
_local5 = new ledak();
_local5.x = _local4.x;
_local5.y = _local4.y;
addChild(_local5);
};
};
} else {
if ((((_local4.missornot <= evade)) && ((_local4.missornot >= 0)))){
popupdamageplayer(0);
_local4.missornot = -99;
};
};
};
};
if ((((_local4.tipe == 2)) || ((_local4.tipe == 10)))){
if ((((stopspawn == 0)) || ((monsterlayar > 0)))){
if (_local4.missornot > evade){
mchealth = (mchealth - _local4.damages);
};
};
if (mchealth <= 0){
mchealth = 0;
};
if ((((stopspawn == 0)) || ((monsterlayar > 0)))){
if (_local4.missornot > evade){
waktubom = 0;
_local6 = new petirmbledos();
_local6.x = _local4.x;
_local6.y = _local4.y;
addChild(_local6);
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
popupdamageplayer(_local4.damages);
playertakedamage(_local4.damages);
} else {
if ((((_local4.missornot <= evade)) && ((_local4.missornot >= 0)))){
popupdamageplayer(0);
_local4.missornot = -99;
};
};
};
};
if (_local4.tipe == 3){
if ((((stopspawn == 0)) || ((monsterlayar > 0)))){
if (_local4.missornot > evade){
mchealth = (mchealth - _local4.damages);
};
};
if (mchealth <= 0){
mchealth = 0;
};
if ((((stopspawn == 0)) || ((monsterlayar > 0)))){
if (_local4.missornot > evade){
popupdamageplayer(_local4.damages);
playertakedamage(_local4.damages);
} else {
if ((((_local4.missornot <= evade)) && ((_local4.missornot >= 0)))){
popupdamageplayer(0);
_local4.missornot = -99;
};
};
};
};
};
if ((((_local4.tipe == 1)) && ((_local4.waktubom >= 30)))){
if (_local4.waktubom == 35){
if (mute != 1){
sechannel = bom2.play();
};
};
if (((_local4.be.area1.hitTestObject(pesawat.hittesmc)) && ((mchealth > 0)))){
if (_local4.waktubom == 35){
if ((((stopspawn == 0)) || ((monsterlayar > 0)))){
if (_local4.missornot > evade){
mchealth = (mchealth - _local4.damages);
};
};
if ((((stopspawn == 0)) || ((monsterlayar > 0)))){
if (_local4.missornot > evade){
popupdamageplayer(_local4.damages);
playertakedamage(_local4.damages);
} else {
if ((((_local4.missornot <= evade)) && ((_local4.missornot >= 0)))){
popupdamageplayer(0);
_local4.missornot = -99;
};
};
};
};
if (mchealth <= 0){
mchealth = 0;
};
if ((((stopspawn == 0)) || ((monsterlayar > 0)))){
if (_local4.missornot > evade){
playertakedamage(_local4.damages);
};
};
if (_local4.waktubom >= 45){
_local4.waktubom = 0;
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
};
};
if ((((_local4.tipe == 8)) && ((_local4.waktubom >= 20)))){
waktubom = 0;
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
if ((((_local4.tipe == 9)) && ((_local4.waktubom == 10)))){
_local4.be.gotoAndStop(1);
};
if ((((_local4.tipe == 9)) && ((_local4.waktubom == 40)))){
_local4.be.gotoAndPlay(1);
};
if ((((_local4.tipe == 9)) && ((_local4.waktubom == 80)))){
_local4.be.gotoAndStop(40);
};
if ((((_local4.tipe == 9)) && ((_local4.waktubom >= 290)))){
_local4.alpha = (_local4.alpha - 0.03);
};
if ((((_local4.tipe == 9)) && ((_local4.waktubom == 309)))){
waktubom = 0;
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
if ((((_local4.tipe == 1)) && ((_local4.waktubom >= 45)))){
waktubom = -1;
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
if ((((_local4.tipe == 2)) && ((_local4.waktubom >= 210)))){
waktubom = 0;
_local7 = new petirmbledos();
_local7.x = _local4.x;
_local7.y = _local4.y;
addChild(_local7);
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
if ((((_local4.tipe == 10)) && ((_local4.waktubom >= 300)))){
waktubom = 0;
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
if ((((_local4.tipe == 3)) && ((_local4.waktubom >= 150)))){
waktubom = 0;
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
if ((((_local4.tipe == 5)) && ((_local4.waktubom >= 55)))){
waktubom = 0;
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
if ((((((((_local4.x <= 0)) || ((_local4.y <= 0)))) || ((_local4.y >= 480)))) && ((((_local4.tipe == 0)) || ((_local4.tipe == 6)))))){
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
};
if (waktuciviliansaved == 151){
removeChild(_local4);
_local4.removeEventListener(Event.ENTER_FRAME, tembakmusuh);
};
}
public function ggs2(_arg1:MouseEvent):void{
gotoAndStop(3);
}
function frame1(){
stop();
stage.quality = "medium";
customContextMenu = new ContextMenu();
customContextMenu.hideBuiltInItems();
temp = new ContextMenuItem("SMALLFARM");
temp.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, gotoweb3);
customContextMenu.customItems.push(temp);
contextMenu = customContextMenu;
this.addEventListener(Event.ENTER_FRAME, loadingdocking);
pres.gsbuttonhit.addEventListener(MouseEvent.CLICK, gotoweb2);
if (loaderInfo.url.substring(0, 4) != "file"){
Security.allowDomain("*");
Security.loadPolicyFile("http://track.g-bot.net/crossdomain.xml");
variables = new URLVariables();
variables.id = "tinydefenders";
variables.ui = loaderInfo.url;
request = new URLRequest("http://track.g-bot.net/track.php");
request.method = "POST";
request.data = variables;
loader = new URLLoader();
loader.load(request);
};
}
function frame2(){
stop();
stage.addEventListener(Event.ENTER_FRAME, newload);
grandfinale.a1.visible = false;
grandfinale.clearsave.visible = false;
grandfinale.loadbutton.visible = false;
grandfinale.mg.visible = false;
grandfinale.a1.addEventListener(MouseEvent.CLICK, ggg);
grandfinale.loadbutton.addEventListener(MouseEvent.CLICK, creditx);
grandfinale.clearsave.addEventListener(MouseEvent.CLICK, loads);
grandfinale.lgbuttonhit.addEventListener(MouseEvent.CLICK, gotoweb);
grandfinale.gsbuttonhit.addEventListener(MouseEvent.CLICK, gotoweb2);
grandfinale.mg.addEventListener(MouseEvent.CLICK, gotoweb2);
maware.cancelbutton.addEventListener(MouseEvent.CLICK, removecreditx);
maware.lgbuttonhit.addEventListener(MouseEvent.CLICK, gotoweb);
maware.gsbuttonhit.addEventListener(MouseEvent.CLICK, gotoweb2);
inisialisasi = 0;
if (inisialisasi == 0){
serverwavelevels = new Array();
urlvars = new URLVariables();
url = loaderInfo.loaderURL;
urlreq = new URLRequest("http://gamedata.gamesfree.com/api-tiny.php");
loaderx = new URLLoader(urlreq);
flag1 = 0;
flag2 = 0;
flag3 = 0;
so = SharedObject.getLocal("tinyapo");
menuutama = 0;
tokens = new tokeny();
menumap2 = new levelsummary();
lp = new levelpartss();
uh = new upgrades();
upgradebutton = new upgradebuttonss();
sapiduwek = new duwek();
nagaduwek = new duwek2();
tscreen = new tutorialsummary();
showsomething = new popupnotif();
unlockhero = new herounlocked();
playherounlocked = 0;
wesjalan = 0;
burninggrounds = 0;
pesawat = new kumpulanmc();
countdownapo = new countdown();
resultscreen = new resultscreens();
userinterface = new ingameui();
pausegame = new pauseds();
bulletnew = new bulletgg();
peluru1 = new pelurus();
peluru2 = new pelurus15();
peluru3 = new pelurus20();
peluru4 = new pelurus35();
peluru5 = new pelurus30();
movearrowgerak = new movearrow();
colorwall = new Color();
colorcharabar = new Color();
colorwallbar = new Color();
steinsgate = new openthesteinsgate();
stage.addChild(steinsgate);
steinsgate.x = 320;
steinsgate.y = 240;
steinsgate.addEventListener(Event.ENTER_FRAME, elpsycongoroo);
steinsgatestate = -1;
steinsgatetimer = 0;
steinsgate.visible = false;
modehards = 0;
reloadpesawattemp = 0;
loadstate = 0;
brokenwill = 0;
inisialisasi = 1;
monster1 = new Array(1, 10, 5, 5, 0, 0, 0, 90, 0, 1, 130, 1, 5);
monster2 = new Array(2, 5, 5, 0, 0, 0, 0, 90, 1, 2, 100, 1, 5);
monster3 = new Array(3, 15, 4, 5, 0, 20, 0, 90, 0, 3, 95, 1, 7);
monster4 = new Array(4, 25, 3, 5, 0, 20, 0, 90, 1, 4, 120, 1, 9);
monster5 = new Array(5, 8, 15, 10, 0, 0, 0, 90, 0, 5, 0, 1, 2);
monster6 = new Array(6, 25, 15, 30, 0, 0, 0, 0, 0, 6, 0, 1, 15);
monster7 = new Array(7, 30, 2, 10, 0, 0, 0, 90, 0, 7, 130, 1, 15);
monster8 = new Array(8, 200, 5, 30, 0, 0, 0, 90, 0, 8, 0, 1, 25);
monster9 = new Array(9, 10, 5, 0, 0, 0, 0, 90, 1, 9, 160, 1, 7);
monster10 = new Array(10, 50, 3, 0, 0, 0, 0, 90, 1, 10, 120, 1, 20);
monster11 = new Array(11, 50, 3, 0, 0, 0, 0, 90, 1, 11, 120, 1, 20);
monster12 = new Array(12, 600, 3, 30, 0, 0, 0, 90, 0, 12, 0, 1, 40);
monster13 = new Array(13, 1000, 3, 30, 0, 0, 0, 90, 0, 13, 0, 1, 150);
monster14 = new Array(14, 5, 5, 0, 0, 0, 0, 0, 1, 14, 100, 1, 5);
monster15 = new Array(15, 50, 4, 20, 0, 0, 0, 90, 0, 15, 108, 1, 30);
monster16 = new Array(16, 150, 1, 40, 0, 0, 0, 90, 0, 16, 120, 1, 50);
monster17 = new Array(17, 200, 1, 40, 0, 0, 0, 90, 0, 17, 45, 1, 50);
monster18 = new Array(18, 40, 1, 0, 0, 0, 0, 0, 0, 18, 200, 1, 120);
monster19 = new Array(19, 1500, 1, 15, 0, 0, 0, 0, 0, 19, 0, 1, 500);
monster20 = new Array(20, 4000, 3, 100, 0, 0, 0, 0, 0, 20, 0, 1, 1000);
listmonster = new Array(monster1, monster2, monster3, monster4, monster5, monster6, monster7, monster8, monster9, monster10, monster11, monster12, monster13, monster14, monster15, monster16, monster17, monster18, monster19, monster20);
damagebulletmonster = new Array(5, 5, 40, 30, 30, 2, 20, 20, 1, 5, 100);
encountermusuh = new Array();
cu = 0;
while (cu < 18) {
if (((((!((cu == 3))) && (!((cu == 12))))) && (!((cu == 13))))){
listmonster[cu][1] = (listmonster[cu][1] + Math.floor((listmonster[cu][1] / 2)));
};
cu++;
};
awaveofcivil = 0;
regenhpchara = 0;
regenhpwall = 0;
wakturegenhpchara = 0;
wakturegenhpwall = 0;
somethingsup = 0;
waktuworldmap = 0;
pesawat1 = new Array(1, 7, 40, 0, 0, 4, 10, 30);
pesawat2 = new Array(2, 10, 50, 0, 0, 4, 10, 30);
pesawat3 = new Array(3, 30, 75, 0, 0, 3, 7, 60);
pesawat4 = new Array(4, 60, 250, 0, 0, 2.5, 5, 60);
listpesawat = new Array(pesawat1, pesawat2, pesawat3, pesawat4);
damagebullet = new Array(2, 1, 20, 40, 20);
levelheros = new Array(1, 1, 1, 1);
expheros = new Array(0, 0, 0, 0);
maxexpheros = new Array(50, 75, 150, 250);
skillpointheros = new Array(1, 1, 1, 1);
completeheros = new Array(0, 0, 0, 0);
levelabilityhero1 = new Array(0, 0, 0, 0);
levelabilityhero2 = new Array(0, 0, 0, 0);
levelabilityhero3 = new Array(0, 0, 0, 0);
levelabilityhero4 = new Array(0, 0, 0, 0);
lah = new Array(levelabilityhero1, levelabilityhero2, levelabilityhero3, levelabilityhero4);
itemhold = new Array(7, 7, 7);
jmlitemhold = new Array(0, 0, 0);
jmlitem = new Array(0, 0, 0, 0, 0, 0, 0);
cvlvl1 = new Array(0, 0, 2);
cvlvl2 = new Array(4, 4, 4);
cvlvl3 = new Array(5, 5, 5);
cvlvl4 = new Array(2, 3, 4);
cvlvl5 = new Array(4, 5, 6);
cvlvl6 = new Array(6, 6, 7);
cvlvl7 = new Array(5, 5, 5);
cvlvl8 = new Array(6, 7, 6);
cvlvl9 = new Array(4, 6, 4);
cvlvl10 = new Array(3, 4, 5);
cvlvl11 = new Array(3, 4, 6);
cvlvl12 = new Array(4, 4, 6);
civilianlevel = new Array(cvlvl1, cvlvl2, cvlvl3, cvlvl4, cvlvl5, cvlvl6, cvlvl7, cvlvl8, cvlvl9, cvlvl10, cvlvl11, cvlvl12);
bulletfall1 = new soundbulletfall1();
bulletfall2 = new soundbulletfall2();
tembak1 = new soundtembak1();
tembak2 = new soundtembak2();
tembak3 = new soundtembak3();
bullet1hit = new soundbullethit1();
bullet2hit = new soundbullethit2();
bullet3hit = new soundbullethit3();
items1 = new soundstun();
items2 = new soundflash();
items3 = new soundairstrike();
items4 = new sounditemstrike();
items6 = new sounditemheal();
smelee1 = new soundmelee1();
smelee2 = new soundmelee2();
senemymati1 = new soundmusuhmanusiamati1();
senemymati2 = new soundmusuhmanusiamati2();
senemymati3 = new soundmusuhmanusiamati3();
senemymati4 = new soundmusuhmanusiamati4();
kenatembak1 = new soundkenatembak1();
tembakmeletus = new soundbulletexplode();
iceberg = new soundice();
electrical = new soundelectric();
quakes = new soundquake();
jedor = new soundbreak();
camels = new soundcamel();
jegrek = new sounddoor();
botaktolol = new soundbotak();
iyas = new soundconfirm();
ngeklik = new soundclicked();
soundexp = new sounddapetexp();
cekring = new soundgold();
countd = new soundapo();
gantis = new soundstarts();
perbaiki = new soundupgrade();
wasp = new soundbee();
bom1 = new soundexpl1();
bom2 = new soundexpl2();
bom3 = new soundexpl3();
sword1 = new soundsword1();
sword2 = new soundsword2();
sword3 = new soundsword3();
sword4 = new soundsword4();
fireabs = new soundflame();
voidabs = new soundvoid();
zomdogbite = new soundzomdog();
zomdogjumps = new soundzomjump();
trexbite = new soundtrex();
lasertink = new soundtinkerlaser();
droneshot = new sounddrone();
jalan1 = new jalan55();
jalan2 = new jalan5();
jalan3 = new jalan6();
jalan7 = new jalan4();
soundmeter = 0;
bossbattletheme = new bossbattletheme1();
battletheme = new battles();
bgmmap1 = new bgmmap();
endingbgm1 = new endingbgm();
fanfare = new bgmwin();
fanfare1 = new bgmlose();
decesivebattle = new bgmfinalboss();
soundvolume = 1;
mychannel1 = new SoundChannel();
mychannel2 = new SoundChannel();
mychannel3 = new SoundChannel();
mychannel4 = new SoundChannel();
mychannel5 = new SoundChannel();
sechannel = new SoundChannel();
mytransform1 = new SoundTransform();
mytransform2 = new SoundTransform();
mytransform3 = new SoundTransform();
mytransform4 = new SoundTransform();
mytransform5 = new SoundTransform();
setransform = new SoundTransform();
volumes = 1;
mytransform4.volume = 1;
mychannel4 = endingbgm1.play(0, 9999);
mychannel4.soundTransform = mytransform4;
mlvl1 = new Array(6, 10, 18);
mlvl2 = new Array(18, 23, 27);
mlvl3 = new Array(29, 34, 36);
mlvl4 = new Array(20, 30, 30);
mlvl5 = new Array(32, 34, 44);
mlvl6 = new Array(42, 50, 68);
mlvl7 = new Array(60, 60, 60);
mlvl8 = new Array(60, 60, 60);
mlvl9 = new Array(25, 35, 45);
mlvl10 = new Array(30, 30, 30);
mlvl11 = new Array(40, 40, 40);
mlvl12 = new Array(50, 40, 70);
maxmonsterlevel = new Array(mlvl1, mlvl2, mlvl3, mlvl4, mlvl5, mlvl6, mlvl7, mlvl8, mlvl9, mlvl10, mlvl11, mlvl12);
monsterlevel1 = new Array(1, 2);
monsterlevel2 = new Array(1, 2);
monsterlevel3 = new Array(1, 2, 9);
monsterlevel4 = new Array(3, 4);
monsterlevel5 = new Array(3, 4, 6);
monsterlevel6 = new Array(3, 4, 6);
monsterlevel7 = new Array(7, 10);
monsterlevel8 = new Array(7, 10, 11);
monsterlevel9 = new Array(18, 10, 11);
monsterlevel10 = new Array(15, 16);
monsterlevel11 = new Array(15, 16, 17);
monsterlevel12 = new Array(15, 16, 17, 18);
tipemonsterlevel = new Array(monsterlevel1, monsterlevel2, monsterlevel3, monsterlevel4, monsterlevel5, monsterlevel6, monsterlevel7, monsterlevel8, monsterlevel9, monsterlevel10, monsterlevel11, monsterlevel12);
bmlvl11 = new Array();
bmlvl12 = new Array();
bmlvl13 = new Array();
bmlvl21 = new Array();
bmlvl22 = new Array();
bmlvl23 = new Array();
bmlvl31 = new Array();
bmlvl32 = new Array();
bmlvl33 = new Array();
drsvbmlvl11 = new Array(6, 0);
drsvbmlvl12 = new Array(6, 4);
drsvbmlvl13 = new Array(10, 8);
drsvbmlvl21 = new Array(10, 8);
drsvbmlvl22 = new Array(13, 10);
drsvbmlvl23 = new Array(15, 12);
drsvbmlvl31 = new Array(10, 14, 5);
drsvbmlvl32 = new Array(10, 16, 8);
drsvbmlvl33 = new Array(10, 16, 10);
bmlvl41 = new Array(20, 0);
bmlvl42 = new Array(30, 0);
bmlvl43 = new Array(24, 6);
bmlvl51 = new Array(24, 8, 0);
bmlvl52 = new Array(14, 6, 14);
bmlvl53 = new Array(22, 12, 14);
bmlvl61 = new Array(8, 24, 8);
bmlvl62 = new Array(0, 40, 14);
bmlvl63 = new Array(28, 20, 20);
bmlvl71 = new Array(52, 8);
bmlvl72 = new Array(44, 16);
bmlvl73 = new Array(32, 28);
bmlvl81 = new Array();
bmlvl82 = new Array();
bmlvl83 = new Array();
bmlvl91 = new Array(9, 8, 8);
bmlvl92 = new Array(11, 12, 12);
bmlvl93 = new Array(5, 20, 20);
drsvbmlvl81 = new Array(36, 20, 4);
drsvbmlvl82 = new Array(28, 24, 8);
drsvbmlvl83 = new Array(20, 24, 16);
bmlvl101 = new Array(28, 2);
bmlvl102 = new Array(22, 8);
bmlvl103 = new Array(20, 10);
bmlvl111 = new Array(20, 10, 10);
bmlvl112 = new Array(10, 10, 20);
bmlvl113 = new Array(5, 5, 30);
bmlvl121 = new Array(25, 15, 10, 0);
bmlvl122 = new Array(10, 5, 5, 20);
bmlvl123 = new Array(30, 20, 20, 0);
banyakmonsterlevel1 = new Array(bmlvl11, bmlvl12, bmlvl13);
banyakmonsterlevel2 = new Array(bmlvl21, bmlvl22, bmlvl23);
banyakmonsterlevel3 = new Array(bmlvl31, bmlvl33, bmlvl33);
banyakmonsterlevel4 = new Array(bmlvl41, bmlvl42, bmlvl43);
banyakmonsterlevel5 = new Array(bmlvl51, bmlvl52, bmlvl53);
banyakmonsterlevel6 = new Array(bmlvl61, bmlvl63, bmlvl63);
banyakmonsterlevel7 = new Array(bmlvl71, bmlvl72, bmlvl73);
banyakmonsterlevel8 = new Array(bmlvl81, bmlvl82, bmlvl83);
banyakmonsterlevel9 = new Array(bmlvl91, bmlvl93, bmlvl93);
banyakmonsterlevel10 = new Array(bmlvl101, bmlvl102, bmlvl103);
banyakmonsterlevel11 = new Array(bmlvl111, bmlvl112, bmlvl113);
banyakmonsterlevel12 = new Array(bmlvl121, bmlvl122, bmlvl123);
banyaktipemonsterlevel = new Array(banyakmonsterlevel1, banyakmonsterlevel2, banyakmonsterlevel3, banyakmonsterlevel4, banyakmonsterlevel5, banyakmonsterlevel6, banyakmonsterlevel7, banyakmonsterlevel8, banyakmonsterlevel9, banyakmonsterlevel10, banyakmonsterlevel11, banyakmonsterlevel12);
wavelevels = new Array();
maxleveltime = new Array(1200, 1400, 1600, 1800, 2000, 2200, 1200, 2000, 2000, 2000, 3000, 3000, 3000);
sudahspawnmonster = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
pbm1 = new Array(0, 0, 0);
pbm2 = new Array(0, 0, 0);
pbm3 = new Array(0, 0, 0);
pbm4 = new Array(0, 0, 0);
pbm5 = new Array(0, 0, 0);
pbm6 = new Array(0, 0, 0);
pbm7 = new Array(0, 0, 0);
pbm8 = new Array(0, 0, 0);
pbm9 = new Array(0, 0, 0);
pbm10 = new Array(0, 0, 0);
pbm11 = new Array(0, 0, 0);
pbm12 = new Array(0, 0, 0);
progressbarmeter = new Array(pbm1, pbm2, pbm3, pbm4, pbm5, pbm6, pbm7, pbm8, pbm9, pbm10, pbm11, pbm12);
achievementmeter = new Array();
tutu = 0;
while (tutu < 70) {
achievementmeter[tutu] = 0;
encountermusuh[tutu] = 0;
tutu = (tutu + 1);
};
lvlc1 = new Array(1, 0, 0, 0);
lvlc2 = new Array(0, 0, 0, 0);
lvlc3 = new Array(0, 0, 0, 0);
lvlc4 = new Array(0, 0, 0, 0);
lvlc5 = new Array(0, 0, 0, 0);
lvlc6 = new Array(0, 0, 0, 0);
lvlc7 = new Array(0, 0, 0, 0);
lvlc8 = new Array(0, 0, 0, 0);
lvlc9 = new Array(0, 0, 0, 0);
lvlc10 = new Array(0, 0, 0, 0);
lvlc11 = new Array(0, 0, 0, 0);
lvlc12 = new Array(0, 0, 0, 0);
levelcomplete = new Array(lvlc1, lvlc2, lvlc3, lvlc4, lvlc5, lvlc6, lvlc7, lvlc8, lvlc9, lvlc10, lvlc11, lvlc12);
money1 = new Array(5, 7, 9);
money2 = new Array(11, 13, 15);
money3 = new Array(17, 19, 21);
money4 = new Array(23, 25, 27);
money5 = new Array(29, 31, 33);
money6 = new Array(35, 37, 39);
money7 = new Array(30, 40, 45);
money8 = new Array(45, 55, 65);
money9 = new Array(80, 90, 100);
money10 = new Array(60, 70, 80);
money11 = new Array(100, 120, 140);
money12 = new Array(200, 250, 1000);
moneyreward = new Array(money1, money2, money3, money4, money5, money6, money7, money8, money9, money10, money11, money12);
yaya = 0;
while (yaya < 12) {
jaja = 0;
while (jaja < 3) {
moneyreward[yaya][jaja] = (moneyreward[yaya][jaja] * 2);
jaja = (jaja + 1);
};
yaya = (yaya + 1);
};
sudahdapatgold = 0;
killmission = new Array(0, 0);
focusm = new MovieClip();
focusm.graphics.beginFill(0, 0.6);
focusm.graphics.drawRect(0, 0, 640, 480);
focusm.graphics.endFill();
wallsudahjebol = 0;
gold = 100;
levelhpwall = 0;
leveldefwall = 0;
upgradewall = 0;
defwall = 0;
executionmarks = 0;
showuhtrans = -1;
lagitutorial = 0;
playopenstage = 19;
lagigerak = 0;
ggmove = 0;
ggstate = 0;
introgg = 0;
restartornot = 0;
auracrit = 0;
auramiss = 0;
playending = 0;
countergold = 0;
auragold = 0;
berapaes = 0;
bolhp = new Array(40, 40, 40, 40);
civillayar = 0;
previousmap = 1;
xmap = 1.15;
ymap = 158.7;
bounce = 0;
percepatan = 1;
maxbounce = 4;
map = -1;
xs = 0;
ys = 0;
jumlahstrikedrone = 0;
jumlahrepairdrone = 0;
indextarget = 0;
penambahan = 0;
pembuat = 0;
exey = 0;
penambahans = 0;
sebelums = 99999;
cooldownitem = 0;
o1 = 0;
o2 = 0;
o3 = 0;
o4 = 0;
taken1 = 0;
taken2 = 0;
whatitem = 0;
modulustembak = 0;
gege = 0;
targetlaser = 0;
targety = 0;
tipetank = 0;
kaliini = 0;
ontasudahspawn = 0;
stopresultscreen = 0;
onworldmap = 0;
itemover = 0;
buybuttonon = 0;
levelpartremove = 0;
curentselection = 7;
pauseornot = 0;
switchmap = 0;
deletemenu = 0;
initfirsttime = 0;
levelfailed = 0;
gameinit = 0;
maxpelurushot = 10;
validuse = 1;
kuotatank = 0;
currentbulletused = 0;
currentmodepeluru = 1;
rechargebullet = 0;
cobacounter = 0;
cooldown = 0;
cooldownchange = 0;
warningpot2 = 0;
mute = 0;
completes = 0;
levelgame = 1;
wavelevel = 1;
lengthspawn = 74;
stancechara = 1;
jmlmonsternow = 0;
menumode = 3;
menuheroselect = 0;
skillselect = 0;
canclickmenu = 0;
level = 1;
maxtimespawn = Math.floor((maxleveltime[(level - 1)] / wavelevels[(level - 1)]));
tambah = 0;
chara = 1;
firsttimepressed = 0;
previouskey = -50;
mcmaxhealth = 150;
mchealth = mcmaxhealth;
mcexp = 0;
speedjalan = 4;
crit = 0;
hacked = 0;
evade = 0;
up = true;
mouseclicked = 99;
warningpot = 0;
useitem1 = 0;
useitem2 = 0;
recharge = 0;
enemykill = 0;
adaboss = 0;
callboss = 0;
badcondition = 0;
timebadcondition = 0;
timedamage = 0;
timedamage2 = 0;
barricademaxhp = 100;
jumlahcivilthislevel = 0;
idletime = 0;
latestmonsteralive = 0;
sublevels = 0;
menufocus = 0;
restarts = 0;
walltakedamages = 0;
charatakedamages = 0;
barricadehp = barricademaxhp;
prevrotation = 0;
keypressed = 99;
bounceSpeed = 0;
encounter = 0;
loopings = 0;
previousy = 0;
decrement1 = 0;
decrement2 = 0;
maxmonsterlayar = 4;
monsterlayar = 0;
jumlahspawn = 0;
reloadpesawat = listpesawat[0][7];
modulus = 0;
apocount = 0;
jumlahcivilians = 0;
mcgoodstatus = new Array(0, 0, 0);
mcgoodstatustime = new Array(0, 0, 0);
wallgoodstatus = new Array(0, 0, 0);
wallgoodstatustime = new Array(0, 0, 0);
isreloading = false;
stopspawn = 0;
playresultscreen = 0;
waktuexperience = 0;
waktuciviliansaved = 0;
jumlahciviliansaved = 0;
countcivilian = 0;
civx = 294.95;
civy = 307;
civiliansaved = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
timercivilian = 0;
maxtimespawncivil = Math.floor((maxleveltime[(level - 1)] / civilianlevel[(level - 1)]));
expshowed = 0;
waktuhijau = 0;
timers = 0;
autosorttime = 0;
gobacktoworldmap = 0;
randomdirectionboss = 0;
aboss = 1;
kebelakang = 0;
laserreduction = 0;
simpanhijau = 0;
spawntut = 0;
linktembak = 0;
randomyglobal = new Array();
linkglobal = 0;
nananakelihatan = 0;
adayangditembak = 0;
harmo = 0;
scattershot = 1;
modepeluru = 1;
damagepeluru = 1;
inc = -30;
t = -17;
velo = 4;
mbledos = 0;
sedangmenembak = 0;
delaytime = 4;
explosion = 10;
firstscene = 0;
reduction = 0;
canFire = false;
pressing = false;
reloadanimation = 20;
clickstart = 0;
civilians = [];
dummy = [];
waktubom = 0;
selesai = 0;
};
}
function frame3(){
stop();
stage.addEventListener(Event.ENTER_FRAME, c);
}
function frame4(){
stop();
stage.addEventListener(Event.ENTER_FRAME, a);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, basicstance);
stage.addEventListener(MouseEvent.MOUSE_DOWN, handlePress);
stage.addEventListener(MouseEvent.MOUSE_MOVE, arahsenjata);
stage.addEventListener(MouseEvent.MOUSE_UP, handleRelease);
stage.addEventListener(MouseEvent.CLICK, clickenemycheck);
stage.addEventListener(MouseEvent.MOUSE_MOVE, flyingobject);
stage.addEventListener(Event.ENTER_FRAME, tnterFrame);
Mouse.hide();
nanana.gotoAndStop(1);
if ((((level >= 1)) && ((level <= 3)))){
backgrounds.gotoAndStop(1);
};
if ((((level >= 4)) && ((level <= 6)))){
backgrounds.gotoAndStop(2);
};
if ((((level >= 7)) && ((level <= 9)))){
backgrounds.gotoAndStop(4);
};
if ((((level >= 10)) && ((level <= 12)))){
backgrounds.gotoAndStop(3);
};
pesawat.hittesmc.visible = false;
temboks.sh.visible = false;
}
function frame5(){
stop();
}
function frame6(){
stop();
preloaderss.buttonMode = true;
}
function frame7(){
stop();
sbutton.addEventListener(MouseEvent.CLICK, ggs2);
kakaka.gotoAndPlay(1);
}
}
}//package tinyapo_fla
Section 11
//Symbol134534534534534_74 (tinyapo_fla.Symbol134534534534534_74)
package tinyapo_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Symbol134534534534534_74 extends MovieClip {
public var par;
public function Symbol134534534534534_74(){
addFrameScript(953, frame954);
}
function frame954(){
stop();
par = this.parent;
par.gotoAndStop(3);
}
}
}//package tinyapo_fla
Section 12
//tembok_47 (tinyapo_fla.tembok_47)
package tinyapo_fla {
import flash.display.*;
public dynamic class tembok_47 extends MovieClip {
public var sh:MovieClip;
public function tembok_47(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package tinyapo_fla
Section 13
//auracrits (auracrits)
package {
import flash.display.*;
public dynamic class auracrits extends MovieClip {
}
}//package
Section 14
//auracrits1 (auracrits1)
package {
import flash.display.*;
public dynamic class auracrits1 extends MovieClip {
}
}//package
Section 15
//battles (battles)
package {
import flash.media.*;
public dynamic class battles extends Sound {
}
}//package
Section 16
//betamon (betamon)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class betamon extends MovieClip {
public var par;
public function betamon(){
addFrameScript(87, frame88);
}
function frame88(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 17
//bgmfinalboss (bgmfinalboss)
package {
import flash.media.*;
public dynamic class bgmfinalboss extends Sound {
}
}//package
Section 18
//bgmlose (bgmlose)
package {
import flash.media.*;
public dynamic class bgmlose extends Sound {
}
}//package
Section 19
//bgmmap (bgmmap)
package {
import flash.media.*;
public dynamic class bgmmap extends Sound {
}
}//package
Section 20
//bgmwin (bgmwin)
package {
import flash.media.*;
public dynamic class bgmwin extends Sound {
}
}//package
Section 21
//boss1ninja (boss1ninja)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class boss1ninja extends MovieClip {
public var par;
public function boss1ninja(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 22
//bossbattletheme1 (bossbattletheme1)
package {
import flash.media.*;
public dynamic class bossbattletheme1 extends Sound {
}
}//package
Section 23
//btngamesfree (btngamesfree)
package {
import flash.display.*;
public dynamic class btngamesfree extends SimpleButton {
}
}//package
Section 24
//bulletgg (bulletgg)
package {
import flash.display.*;
import flash.text.*;
public dynamic class bulletgg extends MovieClip {
public var bshadow:MovieClip;
public var textmaxpeluru:TextField;
public var textpeluru:TextField;
}
}//package
Section 25
//bulletpopout (bulletpopout)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class bulletpopout extends MovieClip {
public var par;
public function bulletpopout(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 26
//bulletpopup2 (bulletpopup2)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class bulletpopup2 extends MovieClip {
public var par;
public function bulletpopup2(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 27
//bulletpopup3 (bulletpopup3)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class bulletpopup3 extends MovieClip {
public var par;
public function bulletpopup3(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 28
//bulletpopup4 (bulletpopup4)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class bulletpopup4 extends MovieClip {
public var par;
public function bulletpopup4(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 29
//chaoshead (chaoshead)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class chaoshead extends MovieClip {
public var par;
public function chaoshead(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 30
//civilian (civilian)
package {
import flash.display.*;
public class civilian extends MovieClip {
public var executionmark:MovieClip;
public var a1:MovieClip;
public var jp:MovieClip;
public var health:int;
public var maxHealth:int;
public var tipe:int;
public var speeds:int;
public var kondisi:int;
public var locks:int;
public var timercivil:int;
public var killer:int;
public var countermati:int;
public function civilian(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
scaleX = -1;
timercivil = 0;
killer = -1;
countermati = 0;
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package
Section 31
//civilianssaved (civilianssaved)
package {
import fl.motion.*;
import flash.display.*;
public class civilianssaved extends MovieClip {
public var tipe;
public var colorcivil:Color;
public var randomjump;
public var waktuloncat;
public function civilianssaved(){
colorcivil = new Color();
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
waktuloncat = 0;
randomjump = Math.floor((Math.random() * 120));
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package
Section 32
//countdown (countdown)
package {
import flash.display.*;
public dynamic class countdown extends MovieClip {
public function countdown(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package
Section 33
//crackles (crackles)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class crackles extends MovieClip {
public var cc:MovieClip;
public var par;
public function crackles(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 34
//criticalsx (criticalsx)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class criticalsx extends MovieClip {
public var par;
public function criticalsx(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 35
//dmggained (dmggained)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class dmggained extends MovieClip {
public var damagebox:MovieClip;
public var par;
public function dmggained(){
addFrameScript(20, frame21, 40, frame41, 61, frame62, 62, frame63);
}
function frame21(){
stop();
gotoAndStop(63);
}
function frame41(){
stop();
gotoAndStop(63);
}
function frame62(){
stop();
gotoAndStop(63);
}
function frame63(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 36
//dmggainedcrit (dmggainedcrit)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class dmggainedcrit extends MovieClip {
public var damagebox:MovieClip;
public var par;
public function dmggainedcrit(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 37
//dronee (dronee)
package {
import flash.display.*;
public class dronee extends MovieClip {
public var kondisi:int;
public var locks:int;
public var targets:int;
public var targetsindex:int;
public var privatetimer:int;
public var arahhadap:int;
public var summon:int;
public var temps:int;
public function dronee(){
privatetimer = 0;
targets = -1;
}
}
}//package
Section 38
//duwek (duwek)
package {
import flash.display.*;
public dynamic class duwek extends SimpleButton {
}
}//package
Section 39
//duwek2 (duwek2)
package {
import flash.display.*;
public dynamic class duwek2 extends SimpleButton {
}
}//package
Section 40
//endingbgm (endingbgm)
package {
import flash.media.*;
public dynamic class endingbgm extends Sound {
}
}//package
Section 41
//enemy (enemy)
package {
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public class enemy extends MovieClip {
public var e1:MovieClip;
public var mhpbar:MovieClip;
public var stuns:MovieClip;
public var indexmonster:TextField;
public var idmonster:TextField;
public var list:Array;
public var xv:Number;
public var yv:Number;
public var shootTimer:Timer;
public var health:int;
public var maxHealth:int;
public var hitbylaser:int;
public var tipe:int;
public var kondisi:int;
public var locks:int;
public var ke:int;
public var speeds:int;
public var crit:int;
public var evade:int;
public var damages:int;
public var havetakedamage:int;
public var counterdamage:int;
public var reloadtime:int;
public var incdelay:int;
public var bisatembak:int;
public var haveswitch:int;
public var prevbar:int;
public var updatetarget:int;
public var targety:int;
public var experiences:int;
public var kamikazeangle:int;
public var specialskill1:int;
public var specialskill2:int;
public var specialskill3:int;
public var repeatthesameskill:int;
public var missornot:int;
public var stunornot:int;
public var cowardornot:int;
public var prevkondisi:int;
public var kebelakang:int;
public var isboss:int;
public var targetexecution:int;
public var links:int;
public var isjump:int;
public var arahjump:int;
public function enemy(){
list = [];
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21);
scaleX = -1;
hitbylaser = 0;
haveswitch = 0;
prevbar = 0;
updatetarget = 0;
targety = 0;
missornot = (Math.random() * 100);
stunornot = 0;
cowardornot = 0;
prevkondisi = 0;
specialskill1 = 0;
kebelakang = 0;
isboss = 0;
bisatembak = 0;
isjump = 0;
arahjump = Math.floor(((Math.random() * 2) + 1));
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame20(){
stop();
}
function frame21(){
stop();
}
}
}//package
Section 42
//expgained (expgained)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class expgained extends MovieClip {
public var experiencebox:MovieClip;
public var par;
public function expgained(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 43
//goldie (goldie)
package {
import flash.display.*;
public dynamic class goldie extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 44
//healing (healing)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class healing extends MovieClip {
public var damagebox:MovieClip;
public var par;
public function healing(){
addFrameScript(10, frame11, 21, frame22, 32, frame33, 33, frame34);
}
function frame11(){
stop();
gotoAndStop(34);
}
function frame22(){
stop();
gotoAndStop(34);
}
function frame33(){
stop();
gotoAndStop(34);
}
function frame34(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 45
//herounlocked (herounlocked)
package {
import flash.display.*;
public dynamic class herounlocked extends MovieClip {
public var okiedokie:SimpleButton;
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package
Section 46
//infantryefekserang (infantryefekserang)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class infantryefekserang extends MovieClip {
public var par;
public function infantryefekserang(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 47
//ingameui (ingameui)
package {
import flash.display.*;
import flash.text.*;
public dynamic class ingameui extends MovieClip {
public var numheld2:TextField;
public var numheld3:TextField;
public var bpause:MovieClip;
public var numheld1:TextField;
public var naganaga:SimpleButton;
public var bmute:MovieClip;
public var hpbarchara:MovieClip;
public var stock1:MovieClip;
public var stock2:MovieClip;
public var gambarchara:MovieClip;
public var stock3:MovieClip;
public var hpbarwall:MovieClip;
}
}//package
Section 48
//item1 (item1)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class item1 extends MovieClip {
public var par;
public function item1(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 49
//item2 (item2)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class item2 extends MovieClip {
public var par;
public function item2(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 50
//item31 (item31)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class item31 extends MovieClip {
public var par;
public function item31(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 51
//item4 (item4)
package {
import flash.display.*;
public class item4 extends MovieClip {
public var cdrone:MovieClip;
public var kondisi:int;
public var locks:int;
public var targets:int;
public var targetsindex:int;
public var privatetimer:int;
public var arahhadap:int;
public var summon:int;
public var temps:int;
public function item4(){
privatetimer = 0;
targets = -1;
}
}
}//package
Section 52
//item5 (item5)
package {
import flash.display.*;
public class item5 extends MovieClip {
public var kondisi:int;
public var locks:int;
public var privatetimer:int;
public var arahhadap:int;
public var summon:int;
public function item5(){
privatetimer = 0;
summon = 0;
}
}
}//package
Section 53
//item6 (item6)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class item6 extends MovieClip {
public var par;
public function item6(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 54
//itemcannotbuy (itemcannotbuy)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class itemcannotbuy extends MovieClip {
public var par;
public function itemcannotbuy(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 55
//itemmax (itemmax)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class itemmax extends MovieClip {
public var par;
public function itemmax(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 56
//jalan (jalan)
package {
import flash.media.*;
public dynamic class jalan extends Sound {
}
}//package
Section 57
//jalan4 (jalan4)
package {
import flash.media.*;
public dynamic class jalan4 extends Sound {
}
}//package
Section 58
//jalan5 (jalan5)
package {
import flash.media.*;
public dynamic class jalan5 extends Sound {
}
}//package
Section 59
//jalan55 (jalan55)
package {
import flash.media.*;
public dynamic class jalan55 extends Sound {
}
}//package
Section 60
//jalan555 (jalan555)
package {
import flash.media.*;
public dynamic class jalan555 extends Sound {
}
}//package
Section 61
//jalan5555 (jalan5555)
package {
import flash.media.*;
public dynamic class jalan5555 extends Sound {
}
}//package
Section 62
//jalan6 (jalan6)
package {
import flash.media.*;
public dynamic class jalan6 extends Sound {
}
}//package
Section 63
//jalan77 (jalan77)
package {
import flash.media.*;
public dynamic class jalan77 extends Sound {
}
}//package
Section 64
//kumpulanmc (kumpulanmc)
package {
import flash.display.*;
public dynamic class kumpulanmc extends MovieClip {
public var mchpbar:auracrits;
public var chara1:MovieClip;
public var hittesmc:MovieClip;
public function kumpulanmc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package
Section 65
//ledak (ledak)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class ledak extends MovieClip {
public var par;
public function ledak(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 66
//ledak2 (ledak2)
package {
import flash.display.*;
public dynamic class ledak2 extends MovieClip {
public function ledak2(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package
Section 67
//ledak3 (ledak3)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class ledak3 extends MovieClip {
public var ledakantank:MovieClip;
public var par;
public function ledak3(){
addFrameScript(32, frame33);
}
function frame33(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 68
//levelpartss (levelpartss)
package {
import flash.display.*;
public dynamic class levelpartss extends MovieClip {
public var levelpart1:MovieClip;
public var levelpart3:MovieClip;
public var levelpart2:MovieClip;
}
}//package
Section 69
//levelsummary (levelsummary)
package {
import flash.display.*;
import flash.text.*;
public dynamic class levelsummary extends MovieClip {
public var summary:MovieClip;
public var regiontext:TextField;
}
}//package
Section 70
//load1 (load1)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class load1 extends MovieClip {
public var par;
public function load1(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 71
//load2 (load2)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class load2 extends MovieClip {
public var par;
public function load2(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 72
//MD5 (MD5)
package {
public class MD5 {
public static const HEX_FORMAT_LOWERCASE:uint = 0;
public static const HEX_FORMAT_UPPERCASE:uint = 1;
public static const BASE64_PAD_CHARACTER_DEFAULT_COMPLIANCE:String = "";
public static const BASE64_PAD_CHARACTER_RFC_COMPLIANCE:String = "=";
public static var hexcase:uint = 0;
public static var b64pad:String = "";
public static function encrypt(_arg1:String):String{
return (hex_md5(_arg1));
}
public static function hex_md5(_arg1:String):String{
return (rstr2hex(rstr_md5(str2rstr_utf8(_arg1))));
}
public static function b64_md5(_arg1:String):String{
return (rstr2b64(rstr_md5(str2rstr_utf8(_arg1))));
}
public static function any_md5(_arg1:String, _arg2:String):String{
return (rstr2any(rstr_md5(str2rstr_utf8(_arg1)), _arg2));
}
public static function hex_hmac_md5(_arg1:String, _arg2:String):String{
return (rstr2hex(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2))));
}
public static function b64_hmac_md5(_arg1:String, _arg2:String):String{
return (rstr2b64(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2))));
}
public static function any_hmac_md5(_arg1:String, _arg2:String, _arg3:String):String{
return (rstr2any(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2)), _arg3));
}
public static function md5_vm_test():Boolean{
return ((hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72"));
}
public static function rstr_md5(_arg1:String):String{
return (binl2rstr(binl_md5(rstr2binl(_arg1), (_arg1.length * 8))));
}
public static function rstr_hmac_md5(_arg1:String, _arg2:String):String{
var _local3:Array = rstr2binl(_arg1);
if (_local3.length > 16){
_local3 = binl_md5(_local3, (_arg1.length * 8));
};
var _local4:Array = new Array(16);
var _local5:Array = new Array(16);
var _local6:Number = 0;
while (_local6 < 16) {
_local4[_local6] = (_local3[_local6] ^ 909522486);
_local5[_local6] = (_local3[_local6] ^ 1549556828);
_local6++;
};
var _local7:Array = binl_md5(_local4.concat(rstr2binl(_arg2)), (0x0200 + (_arg2.length * 8)));
return (binl2rstr(binl_md5(_local5.concat(_local7), (0x0200 + 128))));
}
public static function rstr2hex(_arg1:String):String{
var _local4:Number;
var _local2:String = (hexcase) ? "0123456789ABCDEF" : "0123456789abcdef";
var _local3 = "";
var _local5:Number = 0;
while (_local5 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local5);
_local3 = (_local3 + (_local2.charAt(((_local4 >>> 4) & 15)) + _local2.charAt((_local4 & 15))));
_local5++;
};
return (_local3);
}
public static function rstr2b64(_arg1:String):String{
var _local6:Number;
var _local7:Number;
var _local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local3 = "";
var _local4:Number = _arg1.length;
var _local5:Number = 0;
while (_local5 < _local4) {
_local6 = (((_arg1.charCodeAt(_local5) << 16) | (((_local5 + 1) < _local4)) ? (_arg1.charCodeAt((_local5 + 1)) << 8) : 0) | (((_local5 + 2) < _local4)) ? _arg1.charCodeAt((_local5 + 2)) : 0);
_local7 = 0;
while (_local7 < 4) {
if (((_local5 * 8) + (_local7 * 6)) > (_arg1.length * 8)){
_local3 = (_local3 + b64pad);
} else {
_local3 = (_local3 + _local2.charAt(((_local6 >>> (6 * (3 - _local7))) & 63)));
};
_local7++;
};
_local5 = (_local5 + 3);
};
return (_local3);
}
public static function rstr2any(_arg1:String, _arg2:String):String{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
var _local3:Number = _arg2.length;
var _local4:Array = [];
var _local9:Array = new Array((_arg1.length / 2));
_local5 = 0;
while (_local5 < _local9.length) {
_local9[_local5] = ((_arg1.charCodeAt((_local5 * 2)) << 8) | _arg1.charCodeAt(((_local5 * 2) + 1)));
_local5++;
};
while (_local9.length > 0) {
_local8 = [];
_local7 = 0;
_local5 = 0;
while (_local5 < _local9.length) {
_local7 = ((_local7 << 16) + _local9[_local5]);
_local6 = Math.floor((_local7 / _local3));
_local7 = (_local7 - (_local6 * _local3));
if ((((_local8.length > 0)) || ((_local6 > 0)))){
_local8[_local8.length] = _local6;
};
_local5++;
};
_local4[_local4.length] = _local7;
_local9 = _local8;
};
var _local10 = "";
_local5 = (_local4.length - 1);
while (_local5 >= 0) {
_local10 = (_local10 + _arg2.charAt(_local4[_local5]));
_local5--;
};
return (_local10);
}
public static function str2rstr_utf8(_arg1:String):String{
var _local4:Number;
var _local5:Number;
var _local2 = "";
var _local3:Number = -1;
while (++_local3 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local3);
_local5 = (((_local3 + 1) < _arg1.length)) ? _arg1.charCodeAt((_local3 + 1)) : 0;
if ((((((((0xD800 <= _local4)) && ((_local4 <= 56319)))) && ((0xDC00 <= _local5)))) && ((_local5 <= 57343)))){
_local4 = ((65536 + ((_local4 & 1023) << 10)) + (_local5 & 1023));
_local3++;
};
if (_local4 <= 127){
_local2 = (_local2 + String.fromCharCode(_local4));
} else {
if (_local4 <= 2047){
_local2 = (_local2 + String.fromCharCode((192 | ((_local4 >>> 6) & 31)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 0xFFFF){
_local2 = (_local2 + String.fromCharCode((224 | ((_local4 >>> 12) & 15)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 2097151){
_local2 = (_local2 + String.fromCharCode((240 | ((_local4 >>> 18) & 7)), (128 | ((_local4 >>> 12) & 63)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
};
};
};
};
};
return (_local2);
}
public static function str2rstr_utf16le(_arg1:String):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode((_arg1.charCodeAt(_local3) & 0xFF), ((_arg1.charCodeAt(_local3) >>> 8) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function str2rstr_utf16be(_arg1:String):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(((_arg1.charCodeAt(_local3) >>> 8) & 0xFF), (_arg1.charCodeAt(_local3) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function rstr2binl(_arg1:String):Array{
var _local2:Array = new Array((_arg1.length >> 2));
var _local3:Number = 0;
while (_local3 < _local2.length) {
_local2[_local3] = 0;
_local3++;
};
var _local4:Number = 0;
while (_local4 < (_arg1.length * 8)) {
_local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / 8)) & 0xFF) << (_local4 % 32)));
_local4 = (_local4 + 8);
};
return (_local2);
}
public static function binl2rstr(_arg1:Array):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < (_arg1.length * 32)) {
_local2 = (_local2 + String.fromCharCode(((_arg1[(_local3 >> 5)] >>> (_local3 % 32)) & 0xFF)));
_local3 = (_local3 + 8);
};
return (_local2);
}
public static function binl_md5(_arg1:Array, _arg2:Number):Array{
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32)));
_arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2;
var _local3:Number = 1732584193;
var _local4:Number = -271733879;
var _local5:Number = -1732584194;
var _local6:Number = 271733878;
var _local7:Number = 0;
while (_local7 < _arg1.length) {
_local8 = _local3;
_local9 = _local4;
_local10 = _local5;
_local11 = _local6;
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, -680876936);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, -389564586);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, -1044525330);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, -176418897);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, -1473231341);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, -45705983);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, -1958414417);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, -42063);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, -1990404162);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, -40341101);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, -1502002290);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, -165796510);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, -1069501632);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, -373897302);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, -701558691);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, -660478335);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, -405537848);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, -1019803690);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, -187363961);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, -1444681467);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, -51403784);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, -1926607734);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, -378558);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, -2022574463);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, -35309556);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, -1530992060);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, -155497632);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, -1094730640);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, -358537222);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, -722521979);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, -640364487);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, -421815835);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, -995338651);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, -198630844);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, -1416354905);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, -57434055);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, -1894986606);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, -1051523);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, -2054922799);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, -30611744);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, -1560198380);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, -145523070);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, -1120210379);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, -343485551);
_local3 = safe_add(_local3, _local8);
_local4 = safe_add(_local4, _local9);
_local5 = safe_add(_local5, _local10);
_local6 = safe_add(_local6, _local11);
_local7 = (_local7 + 16);
};
return ([_local3, _local4, _local5, _local6]);
}
public static function md5_cmn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
return (safe_add(bit_rol(safe_add(safe_add(_arg2, _arg1), safe_add(_arg4, _arg6)), _arg5), _arg3));
}
public static function md5_ff(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function md5_gg(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function md5_hh(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function md5_ii(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
var _local4:Number = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
public static function bit_rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package
Section 73
//moneyheal (moneyheal)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class moneyheal extends MovieClip {
public var damagebox:MovieClip;
public var par;
public function moneyheal(){
addFrameScript(10, frame11, 21, frame22, 32, frame33, 33, frame34);
}
function frame11(){
stop();
gotoAndStop(34);
}
function frame22(){
stop();
gotoAndStop(34);
}
function frame33(){
stop();
gotoAndStop(34);
}
function frame34(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 74
//movearrow (movearrow)
package {
import flash.display.*;
public dynamic class movearrow extends MovieClip {
}
}//package
Section 75
//openthesteinsgate (openthesteinsgate)
package {
import flash.display.*;
public dynamic class openthesteinsgate extends MovieClip {
}
}//package
Section 76
//owari (owari)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class owari extends MovieClip {
public var gg:MovieClip;
public var par;
public function owari(){
addFrameScript(1374, frame1375);
}
function frame1375(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 77
//pauseds (pauseds)
package {
import flash.display.*;
public dynamic class pauseds extends MovieClip {
public var rbtn:SimpleButton;
public var mbtn:SimpleButton;
public var rtbtn:SimpleButton;
public var gsbuttonhit:SimpleButton;
}
}//package
Section 78
//peluru (peluru)
package {
import flash.display.*;
public class peluru extends MovieClip {
public var edge:MovieClip;
public var angles:Number;
public var tipe:Number;
public var laserhit:Number;
public var firstscene:int;
public var waktubom:int;
public var critornot:int;
public var speeds:int;
public var laserproc:int;
public var timelaser:int;
public var isduplicate:int;
public function peluru(_arg1, _arg2){
x = _arg1;
y = _arg2;
laserhit = 0;
firstscene = 0;
waktubom = 0;
critornot = (Math.random() * 100);
laserproc = (Math.random() * 100);
timelaser = 0;
isduplicate = 0;
}
}
}//package
Section 79
//peluruenemy (peluruenemy)
package {
import flash.display.*;
public class peluruenemy extends MovieClip {
public var be:MovieClip;
public var speed:int;
public var angles:Number;
public var tipe:Number;
public var damages:Number;
public var waktubom:int;
public var statepeluru:int;
public var missornot:int;
public var yangkeluarin:int;
public function peluruenemy(_arg1, _arg2){
scaleX = -1;
speed = 5;
x = _arg1;
y = _arg2;
waktubom = 0;
statepeluru = 0;
missornot = (Math.random() * 100);
}
}
}//package
Section 80
//pelurus (pelurus)
package {
import flash.display.*;
import flash.text.*;
public dynamic class pelurus extends MovieClip {
public var textmaxpeluru:TextField;
public var stockpeluru:MovieClip;
public var textpeluru:TextField;
public function pelurus(){
addFrameScript(31, frame32);
}
function frame32(){
stop();
}
}
}//package
Section 81
//pelurus15 (pelurus15)
package {
import flash.display.*;
import flash.text.*;
public dynamic class pelurus15 extends MovieClip {
public var textmaxpeluru:TextField;
public var stockpeluru:MovieClip;
public var textpeluru:TextField;
public function pelurus15(){
addFrameScript(36, frame37);
}
function frame37(){
stop();
stop();
}
}
}//package
Section 82
//pelurus20 (pelurus20)
package {
import flash.display.*;
import flash.text.*;
public dynamic class pelurus20 extends MovieClip {
public var textmaxpeluru:TextField;
public var stockpeluru:MovieClip;
public var textpeluru:TextField;
public function pelurus20(){
addFrameScript(41, frame42);
}
function frame42(){
stop();
stop();
}
}
}//package
Section 83
//pelurus30 (pelurus30)
package {
import flash.display.*;
import flash.text.*;
public dynamic class pelurus30 extends MovieClip {
public var textmaxpeluru:TextField;
public var stockpeluru:MovieClip;
public var textpeluru:TextField;
public function pelurus30(){
addFrameScript(51, frame52);
}
function frame52(){
stop();
stop();
stop();
}
}
}//package
Section 84
//pelurus35 (pelurus35)
package {
import flash.display.*;
import flash.text.*;
public dynamic class pelurus35 extends MovieClip {
public var textmaxpeluru:TextField;
public var stockpeluru:MovieClip;
public var textpeluru:TextField;
public function pelurus35(){
addFrameScript(46, frame47);
}
function frame47(){
stop();
stop();
stop();
}
}
}//package
Section 85
//petirmbledos (petirmbledos)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class petirmbledos extends MovieClip {
public var par;
public function petirmbledos(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 86
//popupnotif (popupnotif)
package {
import flash.display.*;
public dynamic class popupnotif extends MovieClip {
}
}//package
Section 87
//prese (prese)
package {
import flash.display.*;
import flash.text.*;
public dynamic class prese extends MovieClip {
public var loader_txt:TextField;
public var prebar:MovieClip;
public var prehorde:TextField;
public var gsbuttonhit:SimpleButton;
}
}//package
Section 88
//resultscreens (resultscreens)
package {
import flash.display.*;
import flash.text.*;
public dynamic class resultscreens extends MovieClip {
public var hijau:MovieClip;
public var summary:MovieClip;
public var resultexp:TextField;
public var banner:MovieClip;
public var uang:TextField;
public var levelcomplete:MovieClip;
public var framesembunyis:MovieClip;
public var bright:MovieClip;
public var gambars:MovieClip;
public function resultscreens(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
}
}
}//package
Section 89
//rewardscoin (rewardscoin)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class rewardscoin extends MovieClip {
public var swfOne:URLRequest;
public var par;
public function rewardscoin(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
swfOne = new URLRequest("http://www.facebook.com/smallfarmstudio");
navigateToURL(swfOne, "_blank");
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 90
//rewardscoin2 (rewardscoin2)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class rewardscoin2 extends MovieClip {
public var swfOne:URLRequest;
public var par;
public function rewardscoin2(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
swfOne = new URLRequest("http://www.facebook.com/pages/Games-Free/112783725420705");
navigateToURL(swfOne, "_blank");
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 91
//sharpnel (sharpnel)
package {
import flash.display.*;
public class sharpnel extends MovieClip {
public var angles:int;
public var incangles:int;
public var waktu:int;
public var arah:int;
public var speeds:int;
public var randomx:int;
public var lifetime:int;
public function sharpnel(){
speeds = 5;
randomx = Math.floor(((Math.random() * 10) + 1));
}
}
}//package
Section 92
//soundairstrike (soundairstrike)
package {
import flash.media.*;
public dynamic class soundairstrike extends Sound {
}
}//package
Section 93
//soundapo (soundapo)
package {
import flash.media.*;
public dynamic class soundapo extends Sound {
}
}//package
Section 94
//soundbee (soundbee)
package {
import flash.media.*;
public dynamic class soundbee extends Sound {
}
}//package
Section 95
//soundbotak (soundbotak)
package {
import flash.media.*;
public dynamic class soundbotak extends Sound {
}
}//package
Section 96
//soundbreak (soundbreak)
package {
import flash.media.*;
public dynamic class soundbreak extends Sound {
}
}//package
Section 97
//soundbulletexplode (soundbulletexplode)
package {
import flash.media.*;
public dynamic class soundbulletexplode extends Sound {
}
}//package
Section 98
//soundbulletfall1 (soundbulletfall1)
package {
import flash.media.*;
public dynamic class soundbulletfall1 extends Sound {
}
}//package
Section 99
//soundbulletfall2 (soundbulletfall2)
package {
import flash.media.*;
public dynamic class soundbulletfall2 extends Sound {
}
}//package
Section 100
//soundbullethit1 (soundbullethit1)
package {
import flash.media.*;
public dynamic class soundbullethit1 extends Sound {
}
}//package
Section 101
//soundbullethit2 (soundbullethit2)
package {
import flash.media.*;
public dynamic class soundbullethit2 extends Sound {
}
}//package
Section 102
//soundbullethit3 (soundbullethit3)
package {
import flash.media.*;
public dynamic class soundbullethit3 extends Sound {
}
}//package
Section 103
//soundcamel (soundcamel)
package {
import flash.media.*;
public dynamic class soundcamel extends Sound {
}
}//package
Section 104
//soundcancelbutton (soundcancelbutton)
package {
import flash.media.*;
public dynamic class soundcancelbutton extends Sound {
}
}//package
Section 105
//soundclicked (soundclicked)
package {
import flash.media.*;
public dynamic class soundclicked extends Sound {
}
}//package
Section 106
//soundconfirm (soundconfirm)
package {
import flash.media.*;
public dynamic class soundconfirm extends Sound {
}
}//package
Section 107
//sounddapetexp (sounddapetexp)
package {
import flash.media.*;
public dynamic class sounddapetexp extends Sound {
}
}//package
Section 108
//sounddoor (sounddoor)
package {
import flash.media.*;
public dynamic class sounddoor extends Sound {
}
}//package
Section 109
//sounddrone (sounddrone)
package {
import flash.media.*;
public dynamic class sounddrone extends Sound {
}
}//package
Section 110
//soundelectric (soundelectric)
package {
import flash.media.*;
public dynamic class soundelectric extends Sound {
}
}//package
Section 111
//soundexpl1 (soundexpl1)
package {
import flash.media.*;
public dynamic class soundexpl1 extends Sound {
}
}//package
Section 112
//soundexpl2 (soundexpl2)
package {
import flash.media.*;
public dynamic class soundexpl2 extends Sound {
}
}//package
Section 113
//soundexpl3 (soundexpl3)
package {
import flash.media.*;
public dynamic class soundexpl3 extends Sound {
}
}//package
Section 114
//soundflame (soundflame)
package {
import flash.media.*;
public dynamic class soundflame extends Sound {
}
}//package
Section 115
//soundflash (soundflash)
package {
import flash.media.*;
public dynamic class soundflash extends Sound {
}
}//package
Section 116
//soundgold (soundgold)
package {
import flash.media.*;
public dynamic class soundgold extends Sound {
}
}//package
Section 117
//soundice (soundice)
package {
import flash.media.*;
public dynamic class soundice extends Sound {
}
}//package
Section 118
//sounditemheal (sounditemheal)
package {
import flash.media.*;
public dynamic class sounditemheal extends Sound {
}
}//package
Section 119
//sounditemstrike (sounditemstrike)
package {
import flash.media.*;
public dynamic class sounditemstrike extends Sound {
}
}//package
Section 120
//soundkenatembak1 (soundkenatembak1)
package {
import flash.media.*;
public dynamic class soundkenatembak1 extends Sound {
}
}//package
Section 121
//soundmelee1 (soundmelee1)
package {
import flash.media.*;
public dynamic class soundmelee1 extends Sound {
}
}//package
Section 122
//soundmelee2 (soundmelee2)
package {
import flash.media.*;
public dynamic class soundmelee2 extends Sound {
}
}//package
Section 123
//soundmusuhmanusiamati1 (soundmusuhmanusiamati1)
package {
import flash.media.*;
public dynamic class soundmusuhmanusiamati1 extends Sound {
}
}//package
Section 124
//soundmusuhmanusiamati2 (soundmusuhmanusiamati2)
package {
import flash.media.*;
public dynamic class soundmusuhmanusiamati2 extends Sound {
}
}//package
Section 125
//soundmusuhmanusiamati3 (soundmusuhmanusiamati3)
package {
import flash.media.*;
public dynamic class soundmusuhmanusiamati3 extends Sound {
}
}//package
Section 126
//soundmusuhmanusiamati4 (soundmusuhmanusiamati4)
package {
import flash.media.*;
public dynamic class soundmusuhmanusiamati4 extends Sound {
}
}//package
Section 127
//soundquake (soundquake)
package {
import flash.media.*;
public dynamic class soundquake extends Sound {
}
}//package
Section 128
//soundstarts (soundstarts)
package {
import flash.media.*;
public dynamic class soundstarts extends Sound {
}
}//package
Section 129
//soundstun (soundstun)
package {
import flash.media.*;
public dynamic class soundstun extends Sound {
}
}//package
Section 130
//soundsword1 (soundsword1)
package {
import flash.media.*;
public dynamic class soundsword1 extends Sound {
}
}//package
Section 131
//soundsword2 (soundsword2)
package {
import flash.media.*;
public dynamic class soundsword2 extends Sound {
}
}//package
Section 132
//soundsword3 (soundsword3)
package {
import flash.media.*;
public dynamic class soundsword3 extends Sound {
}
}//package
Section 133
//soundsword4 (soundsword4)
package {
import flash.media.*;
public dynamic class soundsword4 extends Sound {
}
}//package
Section 134
//soundtembak1 (soundtembak1)
package {
import flash.media.*;
public dynamic class soundtembak1 extends Sound {
}
}//package
Section 135
//soundtembak2 (soundtembak2)
package {
import flash.media.*;
public dynamic class soundtembak2 extends Sound {
}
}//package
Section 136
//soundtembak3 (soundtembak3)
package {
import flash.media.*;
public dynamic class soundtembak3 extends Sound {
}
}//package
Section 137
//soundtinkerlaser (soundtinkerlaser)
package {
import flash.media.*;
public dynamic class soundtinkerlaser extends Sound {
}
}//package
Section 138
//soundtrex (soundtrex)
package {
import flash.media.*;
public dynamic class soundtrex extends Sound {
}
}//package
Section 139
//soundupgrade (soundupgrade)
package {
import flash.media.*;
public dynamic class soundupgrade extends Sound {
}
}//package
Section 140
//soundvoid (soundvoid)
package {
import flash.media.*;
public dynamic class soundvoid extends Sound {
}
}//package
Section 141
//soundzomdog (soundzomdog)
package {
import flash.media.*;
public dynamic class soundzomdog extends Sound {
}
}//package
Section 142
//soundzomjump (soundzomjump)
package {
import flash.media.*;
public dynamic class soundzomjump extends Sound {
}
}//package
Section 143
//splashscreen (splashscreen)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class splashscreen extends MovieClip {
public var par;
public function splashscreen(){
addFrameScript(0, frame1, 73, frame74);
}
public function clickMore(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.smallfarmstudio.com");
navigateToURL(_local2, "_blank");
}
function frame1(){
addEventListener(MouseEvent.CLICK, clickMore);
}
function frame74(){
stop();
par = this.parent;
par.gotoAndStop(2);
}
}
}//package
Section 144
//staralign (staralign)
package {
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class staralign extends MovieClip {
public var par;
public function staralign(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
par = this.parent;
par.removeChild(this);
}
}
}//package
Section 145
//tokeny (tokeny)
package {
import flash.display.*;
public dynamic class tokeny extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 146
//tutorialsummary (tutorialsummary)
package {
import flash.display.*;
public dynamic class tutorialsummary extends MovieClip {
public var mc1:MovieClip;
public function tutorialsummary(){
addFrameScript(23, frame24);
}
function frame24(){
gotoAndPlay("reload");
}
}
}//package
Section 147
//upgradebuttonss (upgradebuttonss)
package {
import flash.display.*;
public dynamic class upgradebuttonss extends SimpleButton {
}
}//package
Section 148
//upgrades (upgrades)
package {
import flash.display.*;
public dynamic class upgrades extends MovieClip {
public var stores:SimpleButton;
public var glowy:MovieClip;
public var heros:SimpleButton;
public var geges:MovieClip;
public var menuhero:MovieClip;
public var maps:SimpleButton;
}
}//package
Section 149
//volcano (volcano)
package {
import flash.display.*;
public class volcano extends MovieClip {
public var hv:MovieClip;
public var timevolcano:Number;
public function volcano(){
timevolcano = 0;
}
}
}//package