Section 1
//bar_root_18 (rover_archer_511125_PB_fla.bar_root_18)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class bar_root_18 extends MovieClip {
public var barmask:MovieClip;
}
}//package rover_archer_511125_PB_fla
Section 2
//BG_2 (rover_archer_511125_PB_fla.BG_2)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class BG_2 extends MovieClip {
public function BG_2(){
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(parent).gotoAndStop(2);
}
}
}//package rover_archer_511125_PB_fla
Section 3
//LOGOEND_43 (rover_archer_511125_PB_fla.LOGOEND_43)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class LOGOEND_43 extends MovieClip {
public function LOGOEND_43(){
addFrameScript(132, frame133);
}
function frame133(){
MovieClip(root).play();
stop();
}
}
}//package rover_archer_511125_PB_fla
Section 4
//LOGOPRELOAD_0_23 (rover_archer_511125_PB_fla.LOGOPRELOAD_0_23)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_0_23 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_0_23(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package rover_archer_511125_PB_fla
Section 5
//LOGOPRELOAD_1_27 (rover_archer_511125_PB_fla.LOGOPRELOAD_1_27)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_1_27 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_1_27(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package rover_archer_511125_PB_fla
Section 6
//LOGOPRELOAD_2_30 (rover_archer_511125_PB_fla.LOGOPRELOAD_2_30)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_2_30 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_2_30(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package rover_archer_511125_PB_fla
Section 7
//LOGOPRELOAD_3_32 (rover_archer_511125_PB_fla.LOGOPRELOAD_3_32)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_3_32 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_3_32(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package rover_archer_511125_PB_fla
Section 8
//LOGOPRELOAD_4_34 (rover_archer_511125_PB_fla.LOGOPRELOAD_4_34)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_4_34 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_4_34(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package rover_archer_511125_PB_fla
Section 9
//LOGOPRELOAD_5_36 (rover_archer_511125_PB_fla.LOGOPRELOAD_5_36)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_5_36 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_5_36(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package rover_archer_511125_PB_fla
Section 10
//LOGOPRELOAD_6_38 (rover_archer_511125_PB_fla.LOGOPRELOAD_6_38)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_6_38 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_6_38(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package rover_archer_511125_PB_fla
Section 11
//LOGOPRELOAD_7_40 (rover_archer_511125_PB_fla.LOGOPRELOAD_7_40)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_7_40 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_7_40(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package rover_archer_511125_PB_fla
Section 12
//MainTimeline (rover_archer_511125_PB_fla.MainTimeline)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var bowdelay:MovieClip;
public var playMoreGameSub;
public var stageclear:MovieClip;
public var ehp:MovieClip;
public var ac2:TextField;
public var submitClick;
public var ac3:TextField;
public var ac0:TextField;
public var b_highscores:SimpleButton;
public var so;
public var b_mfz_logo:SimpleButton;
public var ac1:TextField;
public var ename:TextField;
public var gage_exp:MovieClip;
public var gage_sta:MovieClip;
public var scene;
public var b_submit:SimpleButton;
public var b_mfz:SimpleButton;
public var bcon_click;
public var b_next:SimpleButton;
public var hightScore;
public var money:TextField;
public var playMoreGameSub2;
public var now;
public var playMoreGameTitle;
public var scoreText:TextField;
public var EPOCH_TIME;
public var playername:TextField;
public var shop:MovieClip;
public var plevel:TextField;
public var b_menu:SimpleButton;
public var b_moregames1:SimpleButton;
public var b_moregames2:SimpleButton;
public var b_moregames3:SimpleButton;
public var magmax:TextField;
public var b_preload:SimpleButton;
public var b_preloadRelease;
public var aco0:MovieClip;
public var aco1:MovieClip;
public var aco2:MovieClip;
public var arrow0:MovieClip;
public var arrow1:MovieClip;
public var arrow2:MovieClip;
public var aco3:MovieClip;
public var bstart:SimpleButton;
public var mag:TextField;
public var arrow3:MovieClip;
public var menuClick;
public var gage_hp:MovieClip;
public var tot;
public var b_nextPress;
public var g_root;
public var bstart_click;
public var bow:MovieClip;
public var gameover:MovieClip;
public var bcon:SimpleButton;
public var bowreload:MovieClip;
public var scoreInGame:TextField;
public var game:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 9, frame10, 50, frame51, 51, frame52, 60, frame61, 70, frame71, 80, frame81, 90, frame91, 100, frame101, 206, frame207, 437, frame438);
}
function frame10(){
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
function frame1(){
now = new Date();
EPOCH_TIME = now.getTime();
b_preloadRelease = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_preload.addEventListener("mouseUp", b_preloadRelease);
stop();
}
public function loadVariablesNum(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = new URLRequest(_arg1);
_local3 = new URLLoader();
_local3.load(_local2);
}
function frame51(){
Mouse.show();
g_root = this;
g_root.con = false;
bstart_click = function (){
g_root.play();
};
bstart.addEventListener("click", bstart_click);
stop();
bcon_click = function (){
if (bcon.enabled){
g_root.con = true;
g_root.gotoAndPlay("skip", "tutorial");
};
};
bcon.addEventListener("click", bcon_click);
so = SharedObject.getLocal("r_arc");
if (so.data.dplayer == null){
bcon.alpha = 0.75;
bcon.enabled = false;
};
playMoreGameTitle = function (){
getURL("http://www.mofunzone.com/", "_blank");
};
b_moregames1.addEventListener("click", playMoreGameTitle);
b_mfz.addEventListener("click", playMoreGameTitle);
b_mfz_logo.addEventListener("click", playMoreGameTitle);
hightScore = function (){
getURL("http://www.mofunzone.com/game_scores/rover_archer/highscores.shtml", "_blank");
};
b_highscores.addEventListener("click", hightScore);
}
function frame52(){
stop();
b_nextPress = function (){
play();
};
b_next.addEventListener("click", b_nextPress);
tot = this;
tot.addEventListener("keyDown", onKeySkip);
}
function frame61(){
stop();
}
function frame71(){
stop();
}
function frame438(){
stop();
stage.focus = playername;
scoreText.text = MovieClip(root).score;
scene = this;
menuClick = function (_arg1){
MovieClip(root).gotoAndStop(1, "title");
};
b_menu.addEventListener("click", menuClick);
submitClick = function (_arg1):void{
MovieClip(root).gotoAndStop(1, "title");
};
b_submit.addEventListener("click", submitClick);
playMoreGameSub = function (_arg1):void{
getURL("http://www.mofunzone.com/online_games/rover_archer.shtml", "_blank");
MovieClip(root).gotoAndStop(1, "title");
};
b_moregames2.addEventListener("click", playMoreGameSub);
playMoreGameSub2 = function (_arg1):void{
getURL("http://www.mofunzone.com/", "_blank");
};
b_moregames3.addEventListener("click", playMoreGameSub2);
Mouse.show();
}
function frame81(){
stop();
}
function frame91(){
stop();
}
function frame207(){
stop();
}
function frame101(){
stop();
}
public function onKeySkip(_arg1){
if (_arg1.keyCode == 75){
tot.gotoAndPlay("skip");
tot.removeEventListener("keyDown", onKeySkip);
};
}
}
}//package rover_archer_511125_PB_fla
Section 13
//malliteminshop_140 (rover_archer_511125_PB_fla.malliteminshop_140)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class malliteminshop_140 extends MovieClip {
public function malliteminshop_140(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package rover_archer_511125_PB_fla
Section 14
//mdmgshowsub_80 (rover_archer_511125_PB_fla.mdmgshowsub_80)
package rover_archer_511125_PB_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mdmgshowsub_80 extends MovieClip {
public var dmg2:TextField;
}
}//package rover_archer_511125_PB_fla
Section 15
//mgfx_flame_on_ground_sub_60 (rover_archer_511125_PB_fla.mgfx_flame_on_ground_sub_60)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class mgfx_flame_on_ground_sub_60 extends MovieClip {
public function mgfx_flame_on_ground_sub_60(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndPlay((1 + int((Math.random() * 24))));
}
}
}//package rover_archer_511125_PB_fla
Section 16
//mgfx_thunders_74 (rover_archer_511125_PB_fla.mgfx_thunders_74)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class mgfx_thunders_74 extends MovieClip {
public function mgfx_thunders_74(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package rover_archer_511125_PB_fla
Section 17
//mgui_gage_exp_146 (rover_archer_511125_PB_fla.mgui_gage_exp_146)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class mgui_gage_exp_146 extends MovieClip {
public function mgui_gage_exp_146(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package rover_archer_511125_PB_fla
Section 18
//mobj_force_export_46 (rover_archer_511125_PB_fla.mobj_force_export_46)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class mobj_force_export_46 extends MovieClip {
public function mobj_force_export_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package rover_archer_511125_PB_fla
Section 19
//mobj_GAME_194 (rover_archer_511125_PB_fla.mobj_GAME_194)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mobj_GAME_194 extends MovieClip {
public var shoot_2_hero;
public var levelsound;
public var desc_hpplus;
public var reflexcooldown;
public var lastkey;
public var boss_energy_bolt;
public var desc_endure;
public var skillmortal;
public var flameFunction;
public var heal_area1;
public var skilla;
public var skillhpplus;
public var av;
public var arrowinfo;
public var lvdoor;
public var heal_area2;
public var skillendure;
public var dplayer;
public var boss_falling_stone2;
public var gunpoint;
public var GHline;
public var CLASS_walk;
public var boss_falling_stone1;
public var mortallv;
public var b;
public var waitlevelClear;
public var i;
public var j;
public var k;
public var f;
public var arrowrate;
public var toggleDrop;
public var desc_skilldrop;
public var createNormalWithMapGravaty;
public var leonado;
public var firesound;
public var boss_ghost1;
public var waitlevelOver;
public var scrollhunter;
public var shooter2;
public var maxlevel;
public var monster_layer;
public var map_layer;
public var bfn;
public var overcount;
public var shooter1;
public var skilldrop;
public var droplv;
public var boss4_att;
public var dir;
public var fc;
public var landmine2_set;
public var bs_heal_area1;
public var bs_heal_area2;
public var threeHomingInOneRandomWay;
public var mouse;
public var downspeed;
public var desc_hunter;
public var endurelv;
public var moveright;
public var bs_earth_quake1;
public var boomer10;
public var bs_earth_quake3;
public var bs_earth_quake2;
public var obj;
public var landmine2_act;
public var gfx_layer;
public var linetoplayer;
public var speedx;
public var shoot_2_hero2;
public var boss_boomer_spirit2;
public var splayer;
public var quaker2;
public var boss_boomer_spirit1;
public var item_layer;
public var group_boss;
public var quaker1;
public var fdeactive;
public var playerbullet_layer;
public var desc_thunder;
public var slave1;
public var bs_shoot_2_hero;
public var curve_2_hero;
public var multilevelmon;
public var boss3_att;
public var setWalk;
public var hitsound;
public var backupnewobject;
public var landmine1_set;
public var bs_landmine2_set;
public var boss_stone_wall1;
public var boss_stone_wall;
public var boss_stone2;
public var desc_wooden;
public var caster1;
public var lv;
public var ground;
public var quaker_jr;
public var landmine1_act;
public var boss_stone1;
public var group6;
public var bs_landmine2_act;
public var group2;
public var mi;
public var bs_shoot_2_hero2;
public var caster2;
public var moneyrate;
public var toggleJump;
public var group5;
public var getGunPoint;
public var objectWalk;
public var group3;
public var group4;
public var dashkey;
public var group1;
public var desc_iron;
public var bosssound;
public var bow;
public var boss2_att;
public var homing3;
public var AIAttackState;
public var heal;
public var bs_landmine1_set;
public var rain_of_fire;
public var AINormalNoMap;
public var scrollsniper;
public var GHhoming;
public var arrowNormalProcess;
public var pd;
public var objectGravity;
public var attach_mon;
public var bs_landmine1_act;
public var desc_reflex;
public var exp;
public var linetofront;
public var createNormalObject;
public var moveleftex;
public var testmonster1;
public var testmonster2;
public var levelinfo;
public var jumper1;
public var jumper2;
public var moveup;
public var healer1;
public var bgcolor:MovieClip;
public var mine2;
public var skillreflex;
public var mine1;
public var boss1_att;
public var healer2;
public var pointlist;
public var shotsound;
public var newfore;
public var desc_sniper;
public var key;
public var boomer8;
public var quake_game;
public var so;
public var boss3;
public var boss4;
public var fire_ball;
public var boss1;
public var mine_layer2;
public var ghost_shoot;
public var gravity;
public var player_layer;
public var bs_curve_2_hero;
public var HPBonusAmp;
public var startpoint;
public var boss2;
public var newback;
public var shoot_forward;
public var thundersound;
public var earthQuake;
public var mine_layer1;
public var CLASS_jump;
public var boss_earthQuake;
public var overcountmax;
public var createDoor;
public var gamelevel;
public var clearSet;
public var player;
public var clearcount;
public var moverightex;
public var mine2_explode;
public var overSet;
public var soldier1;
public var soldier2;
public var soldier3;
public var factive;
public var freeblocky;
public var background_layer;
public var mortalcooldown;
public var earthsound;
public var active;
public var curvetoplayer;
public var CLASS_attack;
public var bs_rain_of_fire;
public var reloadsound;
public var desc_fire;
public var AINormal;
public var bs_shoot_forward;
public var reflexlv;
public var MapAPI;
public var clearcountmax;
public var foreground_layer;
public var boss_energy_bolt1;
public var boss_energy_bolt2;
public var moveleft;
public var lastpress;
public var bullet1;
public var bullet2;
public var monsterlist;
public var boss_earth_quake1;
public var boss_heal;
public var bs_ghost_shoot;
public var mapcolor;
public var ghost1;
public var world;
public var setGravity;
public var dash;
public var skilllv;
public var hppluslv;
public var commoncool;
public var skyObject;
public var AICheckAll;
public var knockback;
public var earth_quake1;
public var earth_quake3;
public var earth_quake2;
public var monster;
public var unshotsound;
public var monbase;
public var mine1_explode;
public var unwalk;
public var game;
public var movedown;
public var desc_mortal;
public var jumpbase;
public function mobj_GAME_194(){
addFrameScript(0, frame1);
}
public function setLineMove(_arg1, _arg2, _arg3){
_arg1.speedx = _arg2;
_arg1.speedy = _arg3;
_arg1.mot = GHline;
}
function frame1(){
shotsound = new shot();
unshotsound = new reload();
reloadsound = new reload();
firesound = new fire();
thundersound = new thunders();
bosssound = new boss_die();
earthsound = new earthquakes();
hitsound = new arrow_hit();
levelsound = new Array();
levelsound[1] = new bgm_w1();
levelsound[2] = new bgm_w1();
levelsound[3] = new bgm_w1();
levelsound[5] = new bgm_w2();
levelsound[6] = new bgm_w2();
levelsound[7] = new bgm_w2();
levelsound[9] = new bgm_w3();
levelsound[10] = new bgm_w3();
levelsound[11] = new bgm_w3();
levelsound[13] = new bgm_w4();
levelsound[14] = new bgm_w4();
levelsound[15] = new bgm_w4();
levelsound[4] = new bgm_boss();
levelsound[8] = new bgm_boss();
levelsound[12] = new bgm_boss();
levelsound[16] = new bgm_boss();
overcount = -1;
overcountmax = 100;
overSet = function (){
MovieClip(game.parent).gameover.visible = true;
MovieClip(game.parent).stageclear.visible = false;
MovieClip(game.parent).gameover.gotoAndPlay(1);
overcount = overcountmax;
};
waitlevelOver = function (){
var _local1:*;
overcount--;
if (overcount > 0){
_local1 = SoundMixer.soundTransform;
_local1.volume = ((overcount / 1) / overcountmax);
SoundMixer.soundTransform = _local1;
};
if (overcount == 0){
SoundMixer.stopAll();
_local1 = SoundMixer.soundTransform;
_local1.volume = 1;
SoundMixer.soundTransform = _local1;
setLoop(pauseGame);
MovieClip(game.parent).gotoAndStop(1, "submit");
};
if (overcount < 0){
overcount = -1;
};
};
clearcount = -1;
clearcountmax = 100;
clearSet = function (){
var _local1:*;
MovieClip(game.parent).gameover.visible = false;
MovieClip(game.parent).stageclear.visible = true;
MovieClip(game.parent).stageclear.gotoAndPlay(1);
_local1 = new gfxplayerwarp();
_local1.x = splayer.x;
_local1.y = splayer.y;
gfx_layer.addChild(_local1);
clearcount = clearcountmax;
splayer.visible = false;
};
waitlevelClear = function (){
var _local1:*;
clearcount--;
if (clearcount > 0){
_local1 = SoundMixer.soundTransform;
_local1.volume = ((clearcount / 1) / clearcountmax);
if (((clearcount / 1) / clearcountmax) < 0.5){
_local1.volume = 0.5;
};
SoundMixer.soundTransform = _local1;
};
if (clearcount == 0){
if (gamelevel == maxlevel){
Mouse.show();
setLoop(pauseGame);
MovieClip(game.parent).gotoAndPlay(1, "ending");
} else {
Mouse.show();
setLoop(pauseGame);
deleteSub(game);
Mouse.show();
MovieClip(parent).shop.visible = true;
};
};
if (clearcount < 0){
clearcount = -1;
};
};
bfn = null;
backupnewobject = null;
GHline = function (){
if (!this.visible){
return;
};
this.x = (this.x + this.speedx);
this.y = (this.y + this.speedy);
};
GHhoming = function (){
if (!this.visible){
return;
};
this.lrot2 = this.lrot;
this.lrot = this.rotation;
this.waypoint = Math.atan(((this.x - this.targ.x) / (this.targ.y - this.y)));
if (this.targ.y > this.y){
this.waypoint = (this.waypoint + Math.PI);
};
if (this.waypoint < 0){
this.waypoint = (this.waypoint + (Math.PI * 2));
} else {
if (this.waypoint >= (Math.PI * 2)){
this.waypoint = (this.waypoint - (Math.PI * 2));
};
};
this.rota = (this.rotation * (Math.PI / 180));
if (this.rota < 0){
this.rota = (this.rota + (Math.PI * 2));
} else {
if (this.rota >= (Math.PI * 2)){
this.rota = (this.rota - (Math.PI * 2));
};
};
this.orota = (this.waypoint - this.rota);
if (this.orota < 0){
this.orota = (this.orota + (Math.PI * 2));
} else {
if (this.orota >= (Math.PI * 2)){
this.orota = (this.orota - (Math.PI * 2));
};
};
if ((((this.rota < ((this.waypoint - (this.turning / 2)) + this.turning))) && ((this.rota > (this.waypoint - (this.turning / 2)))))){
this.rota = this.waypoint;
} else {
if (this.orota <= Math.PI){
this.rota = (this.rota + this.turning);
} else {
this.rota = (this.rota - this.turning);
};
};
if (this.rotation == 0){
this.rotation++;
this.rota = (this.rotation * (Math.PI / 180));
};
this.rotation = ((this.rota * 180) / Math.PI);
this.xspeed = (this.velocity * Math.sin(this.rota));
this.yspeed = (this.velocity * Math.cos(this.rota));
this.x = (this.x + this.xspeed);
this.y = (this.y - this.yspeed);
if ((((((((this.rotation > 0)) && ((this.lrot < 0)))) && ((this.lrot2 > 0)))) || ((((((this.rotation < 0)) && ((this.lrot > 0)))) && ((this.lrot2 < 0)))))){
this.rotation = 0;
};
};
MapAPI = new Object();
MapAPI.freedat = new BitmapData(1000, 1000, false, 0);
MapAPI.loadMap = function (_arg1, _arg2, _arg3){
MapAPI.block = new (getDefinitionByName(_arg1) as Class)(0, 0);
MapAPI.dat = new (getDefinitionByName(_arg2) as Class)(0, 0);
MapAPI.blocklist = _arg3;
};
MapAPI.loadIndex = function (_arg1){
MapAPI.mapindex = new (getDefinitionByName(_arg1) as Class)(0, 0);
MapAPI.gotoframe = new Array();
i = (MapAPI.mapindex.width - 1);
while (i >= 0) {
MapAPI.gotoframe[MapAPI.mapindex.getPixel(i, 0)] = (i + 1);
i--;
};
};
MapAPI.getBlock = function (_arg1, _arg2){
return (MapAPI.block.getPixel(_arg1, _arg2));
};
MapAPI.drawAll = function (_arg1, _arg2, _arg3){
j = 0;
while (j < MapAPI.block.height) {
i = 0;
while (i < MapAPI.block.width) {
if (((((((((i * 40) > (-(_arg2) - 40))) && (((j * 40) > (-(_arg3) - 40))))) && (((i * 40) < ((-(_arg2) + 640) + 40))))) && (((j * 40) < ((-(_arg3) + 480) + 40))))){
if (MapAPI.block.getPixel(i, j) != 0){
if (_arg1.getChildByName(((("b" + i) + "x") + j)) == null){
b = new ((getDefinitionByName(MapAPI.blocklist) as Class));
b.name = ((("b" + i) + "x") + j);
b.x = (i * 40);
b.y = (j * 40);
MapAPI.gotoframe[MapAPI.block.getPixel(i, j)];
b.gotoAndStop(MapAPI.gotoframe[MapAPI.block.getPixel(i, j)]);
_arg1.addChild(b);
};
};
};
i++;
};
j++;
};
};
MapAPI.moveLeftMap = function (_arg1, _arg2, _arg3){
i = 0;
while (i < 2) {
j = 0;
while (j < 13) {
if (_arg1.getChildByName(((("b" + int(((-(_arg2) + 640) / 40))) + "x") + int((-(_arg3) / 40)))) == null){
if (MapAPI.block.getPixel(int(((-(_arg2) + 640) / 40)), int((-(_arg3) / 40))) != 0){
b = new ((getDefinitionByName(MapAPI.blocklist) as Class));
b.name = ((("b" + int(((-(_arg2) + 640) / 40))) + "x") + int((-(_arg3) / 40)));
b.x = (int(((-(_arg2) + 640) / 40)) * 40);
b.y = (int((-(_arg3) / 40)) * 40);
b.gotoAndStop(MapAPI.gotoframe[MapAPI.block.getPixel(int(((-(_arg2) + 640) / 40)), int((-(_arg3) / 40)))]);
_arg1.addChild(b);
};
};
_arg3 = (_arg3 - 40);
j++;
};
_arg3 = (_arg3 + (40 * 12));
_arg2 = (_arg2 + 40);
i++;
};
};
MapAPI.moveRightMap = function (_arg1, _arg2, _arg3){
i = 0;
while (i < 2) {
j = 0;
while (j < 13) {
if (_arg1.getChildByName(((("b" + int((-(_arg2) / 40))) + "x") + int((-(_arg3) / 40)))) == null){
if (MapAPI.block.getPixel(int((-(_arg2) / 40)), int((-(_arg3) / 40))) != 0){
b = new ((getDefinitionByName(MapAPI.blocklist) as Class));
b.name = ((("b" + int((-(_arg2) / 40))) + "x") + int((-(_arg3) / 40)));
b.x = (int((-(_arg2) / 40)) * 40);
b.y = (int((-(_arg3) / 40)) * 40);
b.gotoAndStop(MapAPI.gotoframe[MapAPI.block.getPixel(int((-(_arg2) / 40)), int((-(_arg3) / 40)))]);
_arg1.addChild(b);
};
};
_arg3 = (_arg3 - 40);
j++;
};
_arg3 = (_arg3 + (40 * 12));
_arg2 = (_arg2 + 40);
i++;
};
};
MapAPI.moveUpMap = function (_arg1, _arg2, _arg3){
i = 0;
while (i < 2) {
j = 0;
while (j < 17) {
if (_arg1.getChildByName(((("b" + int((-(_arg2) / 40))) + "x") + int((-(_arg3) / 40)))) == null){
if (MapAPI.block.getPixel(int((-(_arg2) / 40)), int((-(_arg3) / 40))) != 0){
b = new ((getDefinitionByName(MapAPI.blocklist) as Class));
b.name = ((("b" + int((-(_arg2) / 40))) + "x") + int((-(_arg3) / 40)));
b.x = (int((-(_arg2) / 40)) * 40);
b.y = (int((-(_arg3) / 40)) * 40);
b.gotoAndStop(MapAPI.gotoframe[MapAPI.block.getPixel(int((-(_arg2) / 40)), int((-(_arg3) / 40)))]);
_arg1.addChild(b);
};
};
_arg2 = (_arg2 - 40);
j++;
};
_arg2 = (_arg2 + (40 * 16));
_arg3 = (_arg3 + 40);
i++;
};
};
MapAPI.moveDownMap = function (_arg1, _arg2, _arg3){
i = 0;
while (i < 2) {
j = 0;
while (j < 17) {
if (_arg1.getChildByName(((("b" + int((-(_arg2) / 40))) + "x") + int(((-(_arg3) + 480) / 40)))) == null){
if (MapAPI.block.getPixel(int((-(_arg2) / 40)), int(((-(_arg3) + 480) / 40))) != 0){
b = new ((getDefinitionByName(MapAPI.blocklist) as Class));
b.name = ((("b" + int((-(_arg2) / 40))) + "x") + int(((-(_arg3) + 480) / 40)));
b.x = (int((-(_arg2) / 40)) * 40);
b.y = (int(((-(_arg3) + 480) / 40)) * 40);
b.gotoAndStop(MapAPI.gotoframe[MapAPI.block.getPixel(int((-(_arg2) / 40)), int(((-(_arg3) + 480) / 40)))]);
_arg1.addChild(b);
};
};
_arg2 = (_arg2 - 40);
j++;
};
_arg2 = (_arg2 + (40 * 16));
_arg3 = (_arg3 + 40);
i++;
};
};
MapAPI.trim = function (_arg1, _arg2){
i = (_arg1.numChildren - 1);
while (i >= 0) {
if (_arg1.getChildAt(i).x > ((-(_arg2.x) + 640) + 40)){
delete ??getglobalscope
[_arg1.removeChildAt(i)];
} else {
if (_arg1.getChildAt(i).y > ((-(_arg2.y) + 480) + 40)){
delete ??getglobalscope
[_arg1.removeChildAt(i)];
} else {
if (_arg1.getChildAt(i).y < (-(_arg2.y) - 40)){
delete ??getglobalscope
[_arg1.removeChildAt(i)];
} else {
if (_arg1.getChildAt(i).x < (-(_arg2.x) - 40)){
delete ??getglobalscope
[_arg1.removeChildAt(i)];
};
};
};
};
i--;
};
};
MovieClip(root).score = 0;
game = this;
quake_game = 0;
world = null;
map_layer = null;
player_layer = null;
monster_layer = null;
gfx_layer = null;
playerbullet_layer = null;
foreground_layer = null;
background_layer = null;
item_layer = null;
monster = null;
player = null;
splayer = null;
maxlevel = 16;
gamelevel = (1 - 1);
dplayer = {price:0, reqclass:"null", reqlv:0, playerclass:"novice", dmgamp:1, rangeamp:1, delayamp:1};
dplayer.str = 0;
dplayer.stramp = 1;
dplayer.strmax = 25;
dplayer.con = 0;
dplayer.conamp = 1;
dplayer.conmax = 25;
dplayer.agi = 0;
dplayer.agiamp = 1;
dplayer.agimax = 25;
dplayer.luk = 0;
dplayer.lukamp = 1;
dplayer.lukmax = 25;
dplayer.stamina = 1;
dplayer.level_exp = 0;
dplayer.level_player = 1;
dplayer.hp = 100;
dplayer.speed = 11;
dplayer.jump = 8;
dplayer.dir = 1;
dplayer.basicstate = "stand";
dplayer.currentstate = "stand";
dplayer.bow = 5;
dplayer.bowdelay = 0;
dplayer.mag = 0;
dplayer.arrowactive = 0;
dplayer.addarrow = false;
dplayer.reloadtime = 0;
dplayer.money = 50;
dplayer.unhitcool = 0;
dplayer.arrowlv0 = 1;
dplayer.arrowlv1 = 1;
dplayer.arrowlv2 = 1;
dplayer.arrowlv3 = 1;
dplayer.arrowc0 = 99999;
dplayer.arrowc1 = 0;
dplayer.arrowc2 = 0;
dplayer.arrowc3 = 0;
dplayer.arrowcool0 = 0;
dplayer.arrowcool1 = 0;
dplayer.arrowcool2 = 0;
dplayer.arrowcool3 = 0;
dplayer.levelUp = function (){
av = new gfx_levelup();
av.x = player.x;
av.y = player.y;
gfx_layer.addChild(av);
dplayer.level_exp = 0;
dplayer.level_player = (dplayer.level_player + 1);
dplayer.str = (dplayer.str + 1.5);
dplayer.con = (dplayer.con + 1.5);
dplayer.agi = (dplayer.agi + 1.5);
dplayer.luk = (dplayer.luk + 1.5);
dplayer.hp = dplayer.getHPMax();
if (dplayer.luk > dplayer.lukmax){
dplayer.luk = dplayer.lukmax;
};
if (dplayer.agi > dplayer.agimax){
dplayer.agi = dplayer.agimax;
};
if (dplayer.str > dplayer.strmax){
dplayer.str = dplayer.strmax;
};
if (dplayer.con > dplayer.conmax){
dplayer.con = dplayer.conmax;
};
};
dplayer.damage = function (_arg1){
if (dplayer.die != null){
if (dplayer.die){
return;
};
};
if (!splayer.visible){
return;
};
if ((Math.random() * 100) < dplayer.avoid){
av = new gfxavoid();
av.x = player.x;
av.y = player.y;
gfx_layer.addChild(av);
dplayer.unhitcool = 50;
knockback = 0;
return;
};
knockback = 7;
dplayer.unhitcool = 25;
pd = new playerdamage();
pd.x = player.x;
pd.y = (player.y - 10);
gfx_layer.addChild(pd);
dplayer.hp = (dplayer.hp - _arg1);
if (dplayer.hp <= 0){
splayer.p.gotoAndPlay("die");
dplayer.die = true;
dplayer.hp = 0;
overSet();
};
for (k in key) {
delete key[k];
};
commoncool = 0;
};
dplayer.getDamage = function (_arg1){
if (dplayer.stamina > 0){
return ((((bow[dplayer.bow].weaatt * dplayer.dmgamp) * ((70 + (Math.random() * 31)) / 100)) * arrowinfo[_arg1][dplayer[("arrowlv" + _arg1)]].amp));
};
return (((((bow[dplayer.bow].weaatt * dplayer.dmgamp) * ((70 + (Math.random() * 31)) / 100)) * arrowinfo[_arg1][dplayer[("arrowlv" + _arg1)]].amp) * 0.3));
};
dplayer.getHPMax = function (){
return (((150 + ((dplayer.con * 7) * dplayer.conamp)) + ((dplayer.str * 2) * dplayer.stramp)));
};
dplayer.getStaminaMax = function (){
return ((150 + ((dplayer.str * 7) * dplayer.stramp)));
};
dplayer.processAgility = function (){
dplayer.avoid = (10 + (((20 * dplayer.agi) * dplayer.agiamp) / dplayer.agimax));
};
MovieClip(parent).arrow0.gotoAndStop(1);
MovieClip(parent).arrow1.gotoAndStop(2);
MovieClip(parent).arrow2.gotoAndStop(3);
MovieClip(parent).arrow3.gotoAndStop(4);
moneyrate = new Array();
lv = 0;
while (lv < 100) {
moneyrate[lv] = (10 * lv);
lv++;
};
arrowrate = new Array();
lv = 0;
while (lv < 100) {
arrowrate[lv] = (1 * lv);
lv++;
};
exp = new Array();
lv = 0;
while (lv < 100) {
exp[lv] = ((lv * 50) + (100 * int(((100 + (lv * 95)) / 100))));
lv++;
};
desc_skilldrop = "Increase the chance to get an iron arrow from killing a monster. \n Upgrade increases drop chance.";
desc_hpplus = "Recover your HP while standing still. \n Upgrade increases recovery rate.";
desc_endure = "Recover your Stamina while standing still. \n Upgrade increases recovery rate.";
desc_mortal = "Perform a critical attack and may instantly kill your target. \n Upgrade improves attack power, chance to critical, chance to kill and faster cool down.";
desc_reflex = "Pierce through multiple targets and may deflect to another target. \n Upgrade improves attack power, chance to pierce, chance to deflect and faster cool down.";
skilla = new Array();
skilllv = new Array("droplv", "hppluslv", "endurelv");
commoncool = 0;
skilldrop = new Array();
droplv = 0;
skilldrop[0] = {upprice:300, amount:0, chance:0, desc:desc_skilldrop};
skilldrop[1] = {upprice:600, amount:8, chance:15, desc:desc_skilldrop};
skilldrop[2] = {upprice:1200, amount:10, chance:30, desc:desc_skilldrop};
skilldrop[3] = {upprice:2400, amount:12, chance:45, desc:desc_skilldrop};
skilla[0] = skilldrop;
skillhpplus = new Array();
hppluslv = 0;
skillhpplus[0] = {upprice:200, cooltime:125, regen:10, desc:desc_hpplus};
skillhpplus[1] = {upprice:400, cooltime:100, regen:9, desc:desc_hpplus};
skillhpplus[2] = {upprice:800, cooltime:75, regen:8, desc:desc_hpplus};
skillhpplus[3] = {upprice:1600, cooltime:50, regen:7, desc:desc_hpplus};
skilla[1] = skillhpplus;
skillendure = new Array();
endurelv = 0;
skillendure[0] = {upprice:200, cooltime:65, regen:7, desc:desc_endure};
skillendure[1] = {upprice:400, cooltime:60, regen:8, desc:desc_endure};
skillendure[2] = {upprice:800, cooltime:55, regen:9, desc:desc_endure};
skillendure[3] = {upprice:1600, cooltime:50, regen:10, desc:desc_endure};
skilla[2] = skillendure;
skillreflex = new Array();
reflexlv = 0;
reflexcooldown = 0;
skillreflex[0] = {reqclass:"sniper", upprice:500, skillamp:0.7, cooldown:50, pierce:60, retarget:40, desc:desc_reflex};
skillreflex[1] = {reqclass:"sniper", upprice:800, skillamp:0.8, cooldown:45, pierce:70, retarget:50, desc:desc_reflex};
skillreflex[2] = {reqclass:"sniper", upprice:1100, skillamp:0.9, cooldown:40, pierce:80, retarget:60, desc:desc_reflex};
skillreflex[3] = {reqclass:"sniper", upprice:1400, skillamp:1, cooldown:35, pierce:90, retarget:70, desc:desc_reflex};
skillmortal = new Array();
mortallv = 0;
mortalcooldown = 0;
skillmortal[0] = {reqclass:"hunter", upprice:500, skillamp:1.1, cooldown:25, chance:28, ko:2, desc:desc_mortal};
skillmortal[1] = {reqclass:"hunter", upprice:800, skillamp:1.2, cooldown:20, chance:30, ko:4, desc:desc_mortal};
skillmortal[2] = {reqclass:"hunter", upprice:1100, skillamp:1.3, cooldown:15, chance:32, ko:6, desc:desc_mortal};
skillmortal[3] = {reqclass:"hunter", upprice:1400, skillamp:1.4, cooldown:10, chance:34, ko:8, desc:desc_mortal};
scrollhunter = new Array();
desc_hunter = "Promotes you to Hunter class. Requires LV 10 \n Increases overall attack power \n Hunter is a class with a powerful ability that gives you a chance to instantly kill your target.";
desc_sniper = "Promotes you to Sniper class. Requires LV 10 \n Increases range and faster reload \n Sniper is an expert in attacking multiple targets from far away and is able to fire to bosses' weakpoints.";
scrollhunter[0] = {price:3000, reqclass:"novoice", reqlv:10, playerclass:"hunter", dmgamp:1.4, rangeamp:1, delayamp:1, desc:desc_hunter};
scrollsniper = new Array();
scrollsniper[0] = {price:3000, reqclass:"novoice", reqlv:10, playerclass:"sniper", dmgamp:1, rangeamp:2, delayamp:0.7, desc:desc_sniper};
flameFunction = function (){
var _local1:*;
var _local2:*;
var _local3:*;
this.dura--;
if ((this.dura % 25) != 0){
return;
};
this.scaleY = (this.dura / arrowinfo[2][dplayer[("arrowlv" + 2)]].dura);
this.scaleX = (this.dura / arrowinfo[2][dplayer[("arrowlv" + 2)]].dura);
if (this.dura <= 0){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
return;
};
_local1 = (monster_layer.numChildren - 1);
while (_local1 >= 0) {
_local2 = monster_layer.getChildAt(_local1);
if (_local2.hit != null){
if (((_local2.hit.hitTestObject(this.hit)) && ((_local2.dead == null)))){
if (_local2.fire){
if (_local2.unmove == 0){
_local2.knock = 15;
_local2.downspeed = -10;
} else {
_local2.knock = 0;
};
_local3 = new flamegfx();
_local3.x = ((this.x + _local2.x) / 2);
_local3.y = ((this.y + _local2.y) / 2);
_local3.rotation = this.rotation;
gfx_layer.addChild(_local3);
if ((Math.random() * 100) < 50){
_local2.dir = 1;
} else {
_local2.dir = -1;
};
if (_local2.dir != 0){
_local2.scaleX = -(_local2.dir);
} else {
_local2.scaleX = -1;
};
monsterdamage(_local2, this, this.dmg);
};
};
};
_local1--;
};
};
arrowNormalProcess = function (){
var mon:*;
var mons:*;
var hitect:*;
var pd:*;
var thun:*;
var hitcount:*;
var mi:*;
var mis:*;
var fire:*;
var shortest:*;
var lock:*;
var abs:*;
var line:*;
mon = (monster_layer.numChildren - 1);
while (mon >= 0) {
mons = monster_layer.getChildAt(mon);
hitect = false;
if (mons.hit2 != null){
if (((mons.hit2.hitTestObject(this)) && ((mons.dead == null)))){
if (this.lastobj != this){
this.lastobj = this;
monsterdamage(mons, this, (this.damage * 5));
};
};
};
if (mons.hit3 != null){
hitect = mons.hit3.hitTestObject(this);
};
if (mons.hit != null){
if (((((((((mons.hit.hitTestObject(this)) || (hitect))) && ((mons.dead == null)))) && (!((mons.lastarrow == this))))) && (!((this.lasthit == mons))))){
this.lasthit = mons;
if ((((((mons.knock == 0)) && ((mons.knockdamage < this.damage)))) && ((this.dura > 0)))){
if (mons.unmove == 0){
mons.downspeed = -5;
mons.knock = 5;
if (mons.speed < 2){
mons.knock = 5;
};
};
if (this.speedx > 0){
mons.dir = 1;
} else {
mons.dir = -1;
};
};
pd = new arrowhitgfx();
pd.x = this.x;
pd.y = this.y;
pd.rotation = this.rotation;
gfx_layer.addChild(pd);
monsterdamage(mons, this, this.damage);
if (this.thunder != null){
thundersound.play();
mons.downspeed = -10;
thun = new thunder();
thun.x = mons.x;
thun.y = mons.y;
if ((Math.random() * 100) < 50){
thun.scaleX = -1;
};
gfx_layer.addChild(thun);
hitcount = 0;
mi = (monster_layer.numChildren - 1);
while (mi >= 0) {
mis = monster_layer.getChildAt(mi);
if ((((Math.sqrt((((mis.x - mons.x) * (mis.x - mons.x)) + ((mis.y - mons.y) * (mis.y - mons.y)))) < (arrowinfo[3][dplayer[("arrowlv" + 3)]].aoe * 40))) && ((mis.dead == null)))){
hitcount = (hitcount + 1);
if (hitcount > 6){
break;
};
mis.downspeed = -10;
if ((mons.x + 80) < mis.x){
thun = new thundersub();
thun.x = mis.x;
thun.y = mis.y;
thun.scaleX = -1;
thun.rotation = (Math.random() * 45);
gfx_layer.addChild(thun);
} else {
if ((mons.x - 80) > mis.x){
thun = new thundersub();
thun.x = mis.x;
thun.y = mis.y;
thun.scaleX = 1;
thun.rotation = (Math.random() * 45);
gfx_layer.addChild(thun);
} else {
thun = new thundersub2();
thun.x = mis.x;
thun.y = mis.y;
if ((Math.random() * 100) < 50){
thun.scaleX = 1;
} else {
thun.scaleX = -1;
};
thun.rotation = (Math.random() * 10);
gfx_layer.addChild(thun);
};
};
monsterdamage(mis, this, arrowinfo[3][dplayer[("arrowlv" + 3)]].tdmg);
if (mis.thunder){
mis.knock = 0;
mis.unmove = arrowinfo[3][dplayer[("arrowlv" + 3)]].dura;
};
};
mi = (mi - 1);
};
};
if (this.fire != null){
mons.downspeed = 10;
i = 0;
while (i < arrowinfo[2][dplayer[("arrowlv" + 2)]].aoe) {
firesound.play();
fire = new flamestatus();
fire.x = ((((int((mons.x / 40)) * 40) + 20) - (int((arrowinfo[2][dplayer[("arrowlv" + 2)]].aoe / 2)) * 40)) + (40 * i));
fire.y = mons.y;
objstatus(fire);
fire.dura = arrowinfo[2][dplayer[("arrowlv" + 2)]].dura;
fire.dmg = arrowinfo[2][dplayer[("arrowlv" + 2)]].dps;
fire.process = flameFunction;
setGravity(fire, MapAPI.dat);
playerbullet_layer.addChild(fire);
i++;
};
};
this.fire = null;
this.thunder = null;
if (((!((this.ko == null))) && ((mons.boss == false)))){
if (mons.dead == null){
monsterdamage(mons, this, mons.hp);
};
};
if (this.pierce == null){
playerbullet_layer.removeChild(this);
delete ??getglobalscope
[this];
return;
};
if (((((!((this.retarget == null))) && ((this.dura > 0)))) && (!(mons.boss)))){
shortest = 999999999;
lock = null;
if (this.speedx < 0){
mi = (monster_layer.numChildren - 1);
while (mi >= 0) {
mis = monster_layer.getChildAt(mi);
if ((((mis.x < mons.x)) && ((mis.dura == -1)))){
if (Math.abs((mis.x - mons.x)) < shortest){
shortest = Math.abs((mis.x - mons.x));
lock = mis;
};
};
mi = (mi - 1);
};
};
if (this.speedx > 0){
mi = (monster_layer.numChildren - 1);
while (mi >= 0) {
mis = monster_layer.getChildAt(mi);
if ((((mis.x > mons.x)) && ((mis.dura == -1)))){
abs = Math.sqrt((((mis.x - mons.x) * (mis.x - mons.x)) + ((mis.y - mons.y) * (mis.y - mons.y))));
if (abs < shortest){
shortest = abs;
lock = mis;
};
};
mi = (mi - 1);
};
};
if (lock != null){
mis = lock;
line = new MovieClip();
line.graphics.lineStyle(1, 0xFF00, 1);
line.graphics.beginFill(0xFF00, 1);
line.graphics.moveTo(this.x, (this.y - 2));
line.graphics.lineTo(mis.x, mis.y);
line.graphics.lineTo(this.x, (this.y + 2));
line.graphics.lineTo(this.x, (this.y - 2));
line.process = function (){
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
gfx_layer.removeChild(this);
delete ??getglobalscope
[this];
return;
};
};
gfx_layer.addChild(line);
this.dx = (mis.x - this.x);
this.dy = (mis.y - this.y);
this.u = Math.sqrt(((this.dx * this.dx) + (this.dy * this.dy)));
this.r = (Math.random() * 30);
this.speedx = ((this.dx / this.u) * 40);
this.speedy = ((this.dy / this.u) * 40);
this.rotation = ((Math.atan2(this.speedy, this.speedx) * 180) / Math.PI);
mons.lastarrow = this;
} else {
mons.lastarrow = this;
};
} else {
mons.lastarrow = this;
};
};
};
mon = (mon - 1);
};
this.dura--;
if (Math.abs((this.x - player.x)) > 500){
playerbullet_layer.removeChild(this);
delete ??getglobalscope
[this];
return;
};
if (Math.abs((this.y - player.y)) > 500){
playerbullet_layer.removeChild(this);
delete ??getglobalscope
[this];
return;
};
};
bow = new Array();
bow[5] = {bowname:"Short Bow", price:1, ext:8, weaatt:10, range:5, attspd:2, magazine:(2 * 3), redelay:50, desc:"N/A"};
bow[0] = {bowname:"Wooden Bow", price:200, ext:8, weaatt:20, range:6, attspd:2, magazine:(3 * 3), redelay:60, desc:"W.attack 20, Range 06, Magazine size 3 * 3, Reload delay 60 \n Able to fire Wooden arrows."};
bow[1] = {bowname:"Composite Bow", price:700, ext:12, weaatt:25, range:7, attspd:2, magazine:(1 * 3), redelay:10, desc:"W.attack 25, Range 07, Magazine size 1 * 3, Reload delay 10 \n Able to fire Wooden and Iron arrows."};
bow[2] = {bowname:"Battle Bow", price:1500, ext:14, weaatt:30, range:7, attspd:2, magazine:(4 * 3), redelay:50, desc:"W.attack 30, Range 07, Magazine size 4 * 3, Reload delay 50 \n Able to fire Wooden, Iron and Fire arrows."};
bow[3] = {bowname:"War Bow", price:4000, ext:15, weaatt:42, range:10, attspd:2, magazine:(4 * 3), redelay:75, desc:"W.attack 42, Range 10, Magazine size 4 * 3, Reload delay 75 \n Able to fire Wooden, Iron, Fire and Thunder arrows."};
bow[4] = {bowname:"Hydra Long Bow", price:7500, ext:15, weaatt:35, range:8, attspd:2, magazine:(7 * 3), redelay:35, desc:"W.attack 35, Range 08, Magazine size 7 * 3, Reload delay 35 \n Randomly fire Wooden, Iron, Fire and Thunder arrows. \n Try to stock all types of arrows to maximize its power . . . "};
arrowinfo = new Array();
arrowinfo[0] = new Array();
arrowinfo[1] = new Array();
arrowinfo[2] = new Array();
arrowinfo[3] = new Array();
desc_wooden = "Usage per shot = 1 \n Basic arrow, can not upgrade but you can get it for FREE!";
desc_iron = "Usage per shot = 1 \n Upgrade improves attack power and faster cool down.";
desc_fire = "Usage per shot = 3 \n Each hit creates a firewall on the ground. \n upgrade improve overall damage, duration and AoE.";
desc_thunder = "Usage per shot = 3 \n Each hit causes a thunder bolt that hurts multiple targets. \n upgrade improves thunder's damage and AoE.";
arrowinfo[0][1] = {price:0, ext:8, upgradeprice:125, amp:0.6, used:1, cool:3, desc:desc_wooden};
arrowinfo[1][1] = {price:15, ext:4, upgradeprice:100, amp:1.1, used:1, cool:3, desc:desc_iron};
arrowinfo[1][2] = {price:15, ext:4, upgradeprice:300, amp:1.2, used:1, cool:2, desc:desc_iron};
arrowinfo[1][3] = {price:15, ext:4, upgradeprice:900, amp:1.3, used:1, cool:1, desc:desc_iron};
arrowinfo[2][1] = {price:30, ext:2, upgradeprice:300, amp:1.12, used:3, aoe:2, dps:10, dura:125, cool:125, desc:desc_fire};
arrowinfo[2][2] = {price:30, ext:2, upgradeprice:600, amp:1.24, used:3, aoe:3, dps:15, dura:175, cool:100, desc:desc_fire};
arrowinfo[2][3] = {price:30, ext:2, upgradeprice:1200, amp:1.36, used:3, aoe:4, dps:20, dura:225, cool:75, desc:desc_fire};
arrowinfo[3][1] = {price:30, ext:1, upgradeprice:300, amp:1.1, used:3, aoe:5, dura:25, cool:100, tdmg:10, desc:desc_thunder};
arrowinfo[3][2] = {price:30, ext:1, upgradeprice:600, amp:1.15, used:3, aoe:6, dura:30, cool:75, tdmg:12, desc:desc_thunder};
arrowinfo[3][3] = {price:30, ext:1, upgradeprice:1200, amp:1.2, used:3, aoe:7, dura:35, cool:50, tdmg:14, desc:desc_thunder};
AINormal = function (){
if (this.dead != null){
return;
};
if (this.dura > 0){
this.dura--;
if (this.dura == 0){
if (this.dead == null){
this.dead = true;
this.gotoAndPlay("die");
return;
};
};
};
if ((((((((this.y > (player.y + 720))) || ((this.y < (player.y - 720))))) && (!((this.dura == 0))))) && (!(this.boss)))){
if (this.dead == null){
this.dead = true;
this.gotoAndPlay("die");
return;
};
};
if (this.attfrq != 0){
if (((((this.walkcount % this.attfrq) == 0)) || (!((this.attq == null))))){
if ((((this.downspeed == 0)) && (this.stayground))){
this.attackdelay = this.attackdelaymax;
this.unmove = this.attackdelaymax;
this.AI = AIAttackState;
this.gotoAndPlay("attack");
this.attq = null;
return;
};
this.attq = true;
};
};
if (this.fade > 0){
this.fade--;
this.transform.colorTransform = new ColorTransform(0.75, 0.2, 0.2, 1, (Math.random() * 250));
} else {
this.transform.colorTransform = new ColorTransform(1, 1, 1);
};
if (((((((!((this.speed == 0))) && (((((this.walkcount % 10) == 0)) && (this.activedetect))))) && ((this.knock == 0)))) && ((this.speed > 0)))){
if (this.x > player.x){
this.dir = -1;
this.gotoAndPlay("walk");
} else {
this.dir = 1;
this.gotoAndPlay("walk");
};
this.scaleX = -(this.dir);
};
if (((((((((Math.random() * 100) < 5)) && (!(this.activedetect)))) && (!((this.dir == 0))))) || ((this.speed == 0)))){
this.dir = 0;
this.gotoAndPlay("stand");
};
if (((((((!((this.speed == 0))) && (((Math.random() * 100) < 10)))) && (!(this.activedetect)))) && ((this.dir == 0)))){
if ((Math.random() * 100) < 50){
this.dir = 1;
} else {
this.dir = -1;
};
this.scaleX = -(this.dir);
this.gotoAndPlay("walk");
};
if (this.knock == 1){
if ((((this.x > player.x)) && (!((this.speed == 0))))){
this.dir = -1;
} else {
this.dir = 1;
};
};
if ((((knockback == 0)) && (!((this.hit == null))))){
if (((((player.hit.hitTestObject(this.hit)) || (player.hit2.hitTestObject(this.hit)))) && ((dplayer.unhitcool == 0)))){
this.dir = dplayer.dir;
if (this.boss == null){
this.downspeed = -20;
dir = -(dplayer.dir);
};
if (dir == 0){
if (player.x > this.x){
dir = 1;
} else {
dir = -1;
};
};
dplayer.damage(this.damage);
};
};
};
AIAttackState = function (){
var _local1:*;
var _local2:*;
if (this.dead != null){
return;
};
this.attackdelay--;
if ((this.attlist as String)){
this.attlist = game[this.attlist];
};
if (this.attackdelay == (this.attackdelaymax - this.attackactive)){
_local1 = int((Math.random() * this.attlist.length));
for (_local2 in this.attlist[_local1]) {
this.attlist[_local1][_local2].template(this);
};
};
if (this.attackdelay == 0){
this.AI = AINormal;
this.gotoAndPlay("walk");
};
};
AINormalNoMap = function (){
if (this.dead != null){
return;
};
if (this.dura > 0){
this.dura--;
if (this.dura == 0){
if (this.dead == null){
this.dead = true;
this.gotoAndPlay("die");
};
};
};
if ((((knockback == 0)) && (!((this.hit == null))))){
if (((((player.hit.hitTestObject(this.hit)) || (player.hit2.hitTestObject(this.hit)))) && ((((dplayer.unhitcool == 0)) || (this.obstruct))))){
if (this.obstruct){
if (player.x < this.x){
player.x = ((this.x - (this.width / 2)) - 10);
} else {
player.x = ((this.x + (this.width / 2)) + 10);
};
} else {
dir = -(dplayer.dir);
if (dir == 0){
if (player.x > this.x){
dir = 1;
} else {
dir = -1;
};
};
knockback = 10;
dplayer.damage(this.damage);
};
};
};
};
AICheckAll = function (){
if (this.dura > 0){
this.dura--;
if (this.dura == 0){
if (this.dead == null){
this.dead = true;
this.gotoAndPlay("die");
};
};
};
if ((((knockback == 0)) && (!((this.hit == null))))){
if (((((player.hit.hitTestObject(this.hit)) || (player.hit2.hitTestObject(this.hit)))) && ((((dplayer.unhitcool == 0)) || (this.obstruct))))){
if (this.obstruct){
if (player.x < this.x){
player.x = ((this.x - (this.width / 2)) - 10);
} else {
player.x = ((this.x + (this.width / 2)) + 10);
};
} else {
dir = -(dplayer.dir);
if (dir == 0){
if (player.x > this.x){
dir = 1;
} else {
dir = -1;
};
};
knockback = 10;
dplayer.damage(this.damage);
};
};
};
};
gunpoint = new Point();
createNormalObject = function (_arg1){
var _local2:*;
_local2 = new ((getDefinitionByName(_arg1.clip) as Class));
objstatus(_local2);
if (_local2.mname != null){
_local2.mname.text = "normal";
};
copyObject(_local2, _arg1);
_local2.hp = (_local2.hp * HPBonusAmp[gamelevel]);
_local2.hpmax = _local2.hp;
return (_local2);
};
createNormalWithMapGravaty = function (_arg1, _arg2){
var _local3:*;
_local3 = new ((getDefinitionByName(_arg1.clip) as Class));
objstatus(_local3);
setGravity(_local3, _arg2);
setWalk(_local3, _arg2);
if (_local3.mname != null){
_local3.mname.text = "normal";
};
copyObject(_local3, _arg1);
_local3.hp = (_local3.hp * HPBonusAmp[gamelevel]);
_local3.hpmax = _local3.hp;
return (_local3);
};
getGunPoint = function (_arg1){
gunpoint.x = _arg1.gun.x;
gunpoint.y = _arg1.gun.y;
gunpoint = _arg1.localToGlobal(gunpoint);
return (_arg1.parent.globalToLocal(gunpoint));
};
MovieClip(game.parent).ehp.visible = false;
skyObject = function (_arg1){
var _local2:*;
var _local3:*;
_local2 = _arg1.damage;
if (this.amp != null){
_local2 = (_arg1.damage * this.amp);
};
if ((player.x - _arg1.x) > this.range){
return;
};
i = 0;
while (i < this.count) {
_local3 = createNormalWithMapGravaty(this.mon, this.mon.dat);
_local3.x = ((player.x + int((Math.random() * 640))) - 320);
_local3.y = ((player.y - int((Math.random() * 400))) - 480);
_local3.damage = _local2;
if (_local3.mname != null){
_local3.mname.text = "objectformsky";
};
monster_layer.addChild(_local3);
i++;
};
};
earthQuake = function (_arg1){
var _local2:*;
_local2 = _arg1.damage;
if (this.amp != null){
_local2 = (_arg1.damage * this.amp);
};
if (this.dmg != null){
_local2 = this.dmg;
};
if ((((Math.abs((player.x - _arg1.x)) < this.range)) && ((Math.abs((player.y - _arg1.y)) < 50)))){
if (ground){
dplayer.damage(_local2);
};
quake_game = 25;
};
};
boss_earthQuake = function (_arg1){
var _local2:*;
_local2 = _arg1.damage;
if (this.amp != null){
_local2 = (_arg1.damage * this.amp);
};
if (this.dmg != null){
_local2 = this.dmg;
};
if ((((Math.abs((player.x - _arg1.x)) < this.range)) && ((Math.abs((player.y - _arg1.y)) < 2500)))){
if (ground){
dplayer.damage(_local2);
};
earthsound.play();
quake_game = 50;
};
};
boomer8 = function (_arg1){
var damage:*;
var newmon:*;
var sx:*;
var sy:*;
var user = _arg1;
damage = user.damage;
if (this.amp != null){
damage = (user.damage * this.amp);
};
if (user.gun == null){
return;
};
gunpoint = getGunPoint(user);
i = 0;
while (i < 8) {
newmon = createNormalObject(this.mon);
newmon.father = user;
newmon.chcount = 0;
newmon.damage = damage;
sx = (10 * Math.cos(((Math.PI / 4) * i)));
sy = (10 * Math.sin(((Math.PI / 4) * i)));
setLineMove(newmon, sx, sy);
newmon.x = gunpoint.x;
newmon.y = gunpoint.y;
monster_layer.addChild(newmon);
newmon.process = function (){
this.chcount++;
if (this.chcount == 125){
setHomingMove(this, this.father, 10, 15);
this.chcount = 0;
};
};
i++;
};
};
boomer10 = function (_arg1){
var damage:*;
var newmon:*;
var sx:*;
var sy:*;
var user = _arg1;
damage = user.damage;
if (this.amp != null){
damage = (user.damage * this.amp);
};
if (user.gun == null){
return;
};
gunpoint = getGunPoint(user);
i = 0;
while (i < 10) {
newmon = createNormalObject(this.mon);
newmon.father = user;
newmon.chcount = 0;
newmon.damage = damage;
sx = (10 * Math.cos(((Math.PI / 4) * i)));
sy = (10 * Math.sin(((Math.PI / 4) * i)));
setLineMove(newmon, sx, sy);
newmon.x = gunpoint.x;
newmon.y = gunpoint.y;
monster_layer.addChild(newmon);
newmon.process = function (){
this.chcount++;
if (this.chcount == 125){
setHomingMove(this, this.father, 10, 12);
this.chcount = 0;
};
};
i++;
};
};
homing3 = function (_arg1){
var _local2:*;
var _local3:*;
_local2 = _arg1.damage;
if (this.amp != null){
_local2 = (_arg1.damage * this.amp);
};
i = 0;
while (i < 3) {
_local3 = createNormalObject(_arg1.summon);
_local3.father = _arg1;
_local3.chcount = 0;
_local3.damage = _local2;
setHomingMove(_local3, player, 8, 3);
_local3.x = _arg1.x;
_local3.y = _arg1.y;
if (_local3.mname != null){
_local3.mname.text = "homing";
};
monster_layer.addChild(_local3);
i++;
};
};
threeHomingInOneRandomWay = function (_arg1){
var damage:*;
var newmon:*;
var sx:*;
var sy:*;
var user = _arg1;
damage = user.damage;
if (this.amp != null){
damage = (user.damage * this.amp);
};
if (user.gun == null){
return;
};
gunpoint = getGunPoint(user);
newmon = createNormalObject(this.mon);
newmon.father = user;
newmon.summon = this.summon;
i = (Math.random() * 8);
sx = (4 * Math.cos(((Math.PI / 4) * i)));
sy = (4 * Math.sin(((Math.PI / 4) * i)));
setLineMove(newmon, sx, sy);
newmon.process = function (){
if (this.dura == 1){
homing3(this);
};
};
newmon.x = gunpoint.x;
newmon.y = gunpoint.y;
newmon.damage = damage;
if (newmon.mname != null){
newmon.mname.text = "3 in 1";
};
monster_layer.addChild(newmon);
};
heal = function (_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = _arg1.damage;
if (this.amp != null){
_local2 = (_arg1.damage * this.amp);
};
_local3 = (monster_layer.numChildren - 1);
while (_local3 >= 0) {
_local4 = monster_layer.getChildAt(_local3);
if (Math.abs((_local4.x - _arg1.x)) < this.range){
_local4.hp = (_local4.hp + (this.recover * _local4.hpmax));
if (_local4.hp > _local4.hpmax){
_local4.hp = _local4.hpmax;
};
_local5 = new ((getDefinitionByName(this.heal) as Class));
_local5.x = _local4.x;
_local5.y = _local4.y;
gfx_layer.addChild(_local5);
};
_local3--;
};
};
attach_mon = function (_arg1){
var _local2:*;
var _local3:*;
_local2 = _arg1.damage;
if (this.amp != null){
_local2 = (_arg1.damage * this.amp);
};
i = 0;
while (i < this.count) {
_local3 = createNormalWithMapGravaty(this.mon, MapAPI.dat);
_local3.x = ((_arg1.x + (Math.random() * this.range)) - (this.range / 2));
_local3.y = _arg1.y;
monster_layer.addChild(_local3);
i++;
};
};
linetoplayer = function (_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = _arg1.damage;
if (this.amp != null){
_local2 = (_arg1.damage * this.amp);
};
if (_arg1.gun == null){
return;
};
gunpoint = getGunPoint(_arg1);
_local3 = createNormalObject(this.mon);
_local4 = (player.x - gunpoint.x);
_local5 = ((player.y - 10) - gunpoint.y);
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
_local3.x = gunpoint.x;
_local3.y = gunpoint.y;
_local3.damage = _local2;
setLineMove(_local3, ((_local4 / _local6) * 8), ((_local5 / _local6) * 8));
monster_layer.addChild(_local3);
};
linetofront = function (_arg1){
var _local2:*;
var _local3:*;
_local2 = _arg1.damage;
if (this.amp != null){
_local2 = (_arg1.damage * this.amp);
};
if (_arg1.gun == null){
return;
};
gunpoint = getGunPoint(_arg1);
_local3 = createNormalObject(this.mon);
_local3.x = gunpoint.x;
_local3.y = gunpoint.y;
_local3.damage = _local2;
setLineMove(_local3, (int(-(_arg1.scaleX)) * 10), 0);
monster_layer.addChild(_local3);
};
curvetoplayer = function (_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local2 = _arg1.damage;
if (this.amp != null){
_local2 = (_arg1.damage * this.amp);
};
if (_arg1.gun == null){
return;
};
gunpoint = getGunPoint(_arg1);
_local3 = createNormalObject(this.mon);
_local4 = (player.x - gunpoint.x);
_local5 = ((player.y - 10) - gunpoint.y);
_local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5)));
_local3.x = gunpoint.x;
_local3.y = gunpoint.y;
_local3.damage = _local2;
_local7 = new Point(player.x, player.y);
setHomingMove(_local3, _local7, 6, 3);
monster_layer.addChild(_local3);
};
leonado = {clip:"monster3", monname:"leonado", hp:10, exp:10, damage:20, gravity:2, speed:1, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AINormal, activedetect:false, arrowtype:1, rateamp:1};
CLASS_jump = {gravity:2, undown:false, jump:true, jumpfrq:50, jumppow:20};
CLASS_attack = {attfrq:20, attackdelaymax:10, attackactive:9};
CLASS_walk = {speed:3, dir:-1, freewalk:false};
testmonster1 = {clip:"monster1", monname:"test1", hp:10, exp:10, damage:20, AI:AINormal, attlist:bs_shoot_forward};
pasteObject(testmonster1, CLASS_jump);
pasteObject(testmonster1, CLASS_walk);
pasteObject(testmonster1, CLASS_attack);
testmonster2 = {clip:"monster2", monname:"test2", hp:10, exp:10, damage:0, AI:AINormal, arrowtype:0, moneyamp:1, rateamp:1};
pasteObject(testmonster1, CLASS_walk);
pasteObject(testmonster1, CLASS_attack);
fire_ball = {clip:"fire_ball", monname:"fire_ball", hp:5, exp:0, damage:9, gravity:0.2, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:250, dat:MapAPI.freedat};
ghost1 = {clip:"ghost1", monname:"ghost1", hp:10, exp:0, damage:12, gravity:2, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:250, dat:MapAPI.freedat};
mine1 = {clip:"mine1", monname:"mine1", hp:7, exp:0, damage:0, gravity:5, speed:2, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AINormal, activedetect:false, dura:140, downspeed:-35, attlist:"bs_landmine1_act"};
pasteObject(mine1, CLASS_walk);
pasteObject(mine1, CLASS_attack);
mine1.attfrq = 130;
mine1.speed = 2;
mine1_explode = {clip:"mine1_explode", monname:"mine1_explode", hp:999, exp:0, damage:13, gravity:5, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:15, knockdamage:99999, downspeed:0};
mine2 = {clip:"mine2", monname:"mine2", hp:7, exp:0, damage:10, gravity:5, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, AI:AINormal, activedetect:false, dura:120, downspeed:-40, attlist:"bs_landmine2_act"};
pasteObject(mine2, CLASS_attack);
mine2.attfrq = 110;
mine2_explode = {clip:"mine2_explode", monname:"mine2_explode", hp:999, exp:0, damage:15, gravity:5, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:14, knockdamage:99999, downspeed:0};
bullet1 = {clip:"bullet1", monname:"bullet1", hp:5, exp:0, damage:0, gravity:5, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:50, dat:MapAPI.freedat};
bullet2 = {clip:"bullet1", monname:"bullet1", hp:5, exp:0, damage:0, gravity:5, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:100, dat:MapAPI.freedat};
rain_of_fire = {template:skyObject, mon:fire_ball, count:2, range:350};
ghost_shoot = {template:curvetoplayer, mon:ghost1};
heal_area1 = {template:heal, recover:0.1, range:100, heal:"gfx_heal"};
heal_area2 = {template:heal, recover:0.05, range:80, heal:"gfx_heal"};
landmine1_set = {template:attach_mon, mon:mine1, range:1, count:1};
landmine1_act = {template:attach_mon, mon:mine1_explode, range:1, count:1};
landmine2_set = {template:attach_mon, mon:mine2, range:1, count:1};
landmine2_act = {template:attach_mon, mon:mine2_explode, range:1, count:1};
earth_quake1 = {template:earthQuake, dmg:2, range:250};
earth_quake2 = {template:earthQuake, dmg:4, range:350};
earth_quake3 = {template:earthQuake, dmg:6, range:450};
shoot_2_hero = {template:linetoplayer, mon:bullet1};
shoot_2_hero2 = {template:linetoplayer, mon:bullet2};
curve_2_hero = {template:curvetoplayer, mon:bullet1};
shoot_forward = {template:linetofront, mon:bullet1};
bs_rain_of_fire = new Array({a0:rain_of_fire});
bs_ghost_shoot = new Array({a0:ghost_shoot});
bs_heal_area1 = new Array({a0:heal_area1});
bs_heal_area2 = new Array({a0:heal_area2});
bs_landmine1_set = new Array({a0:landmine1_set});
bs_landmine1_act = new Array({a0:landmine1_act});
bs_landmine2_set = new Array({a0:landmine2_set});
bs_landmine2_act = new Array({a0:landmine2_act});
bs_earth_quake1 = new Array({a0:earth_quake1});
bs_earth_quake2 = new Array({a0:earth_quake2});
bs_earth_quake3 = new Array({a0:earth_quake3});
bs_shoot_2_hero = new Array({a0:shoot_2_hero});
bs_shoot_2_hero2 = new Array({a0:shoot_2_hero2});
bs_curve_2_hero = new Array({a0:curve_2_hero});
bs_shoot_forward = new Array({a0:shoot_forward});
obj = new Object();
obj.clip = "monster1";
obj.monname = "นู๋เกิดจากจุดที่1เปงแบบที่1";
obj.hp = 10;
obj.damage = 20;
obj.gravity = 2;
obj.speed = 2;
obj.dir = 1;
obj.undown = true;
obj.jump = true;
obj.jumpfrq = 25;
obj.jumppow = 15;
obj.freewalk = false;
obj.attfrq = 0;
obj.attackdelaymax = 10;
obj.attackactive = 9;
obj.AI = AINormal;
obj.activedetect = false;
caster1 = {clip:"caster1", monname:"caster1", hp:5, exp:12, damage:15, AI:AINormal, attlist:bs_rain_of_fire, arrowtype:1, moneyamp:1.2, rateamp:1};
pasteObject(caster1, CLASS_walk);
pasteObject(caster1, CLASS_attack);
caster1.attfrq = 250;
caster1.attackdelaymax = 75;
caster1.attackactive = 25;
caster1.speed = 2;
caster2 = {clip:"caster2", monname:"caster2", hp:8, exp:int((16 * 1.2)), damage:12, AI:AINormal, attlist:bs_ghost_shoot, arrowtype:1, moneyamp:1.3, rateamp:1};
pasteObject(caster2, CLASS_walk);
pasteObject(caster2, CLASS_attack);
caster2.attfrq = 140;
caster2.attackdelaymax = 50;
caster2.attackactive = 5;
caster2.speed = 1;
healer1 = {clip:"healer1", monname:"healer1", hp:16, exp:12, damage:10, AI:AINormal, attlist:bs_heal_area1, arrowtype:1, moneyamp:1, rateamp:1.6};
pasteObject(healer1, CLASS_walk);
pasteObject(healer1, CLASS_attack);
healer1.attfrq = 225;
healer1.speed = 5;
healer2 = {clip:"healer2", monname:"healer2", hp:14, exp:int((18 * 1.2)), damage:10, AI:AINormal, attlist:bs_heal_area2, arrowtype:1, moneyamp:1, rateamp:1.8};
pasteObject(healer2, CLASS_walk);
pasteObject(healer2, CLASS_attack);
pasteObject(healer2, CLASS_jump);
healer2.activedetect = true;
healer2.attfrq = 300;
healer2.speed = 5;
healer2.undown = false;
healer2.gravity = 3;
healer2.jumpfrq = 30;
healer2.jumppow = 20;
jumper1 = {clip:"jumper1", monname:"jumper1", hp:2, exp:6, damage:8, AI:AINormal, arrowtype:1, moneyamp:1, rateamp:1.1};
pasteObject(jumper1, CLASS_walk);
pasteObject(jumper1, CLASS_jump);
jumper1.undown = true;
jumper1.gravity = 2;
jumper1.speed = 6;
jumper1.jumpfrq = 60;
jumper1.jumppow = 20;
jumper2 = {clip:"jumper2", monname:"jumper2", hp:3, exp:int((11 * 1.2)), damage:10, AI:AINormal, arrowtype:1, moneyamp:1.1, rateamp:1.2};
pasteObject(jumper2, CLASS_walk);
pasteObject(jumper2, CLASS_jump);
jumper2.undown = true;
jumper2.gravity = 1;
jumper2.speed = 7;
jumper2.jumpfrq = 50;
jumper2.jumppow = 25;
mine_layer1 = {clip:"mine_layer1", monname:"mine_layer1", hp:10, exp:12, damage:20, AI:AINormal, attlist:bs_landmine1_set, arrowtype:1, moneyamp:1.2, rateamp:1.2};
pasteObject(mine_layer1, CLASS_walk);
pasteObject(mine_layer1, CLASS_attack);
mine_layer1.attfrq = 175;
mine_layer1.speed = 5;
mine_layer2 = {clip:"mine_layer2", monname:"mine_layer2", hp:12, exp:int((14 * 1.2)), damage:20, AI:AINormal, attlist:bs_landmine2_set, arrowtype:1, moneyamp:1.3, rateamp:1.3};
pasteObject(mine_layer2, CLASS_walk);
pasteObject(mine_layer2, CLASS_attack);
mine_layer2.attfrq = 175;
mine_layer2.speed = 5;
quaker_jr = {clip:"quaker_jr", monname:"quaker_jr", hp:7, exp:int((13 * 1.1)), damage:14, AI:AINormal, attlist:bs_earth_quake1, arrowtype:1, moneyamp:1, rateamp:1.4};
pasteObject(quaker_jr, CLASS_walk);
pasteObject(quaker_jr, CLASS_jump);
pasteObject(quaker_jr, CLASS_attack);
quaker_jr.activedetect = true;
quaker_jr.undown = true;
quaker_jr.gravity = 2;
quaker_jr.attfrq = 200;
quaker_jr.speed = 3;
quaker_jr.jumpfrq = 100;
quaker_jr.jumppow = 30;
quaker1 = {clip:"quaker1", monname:"quaker1", hp:22, exp:int((22 * 1.2)), damage:16, AI:AINormal, attlist:bs_earth_quake2, arrowtype:1, moneyamp:1.3, rateamp:1.3};
quaker1.activedetect = true;
pasteObject(quaker1, CLASS_walk);
pasteObject(quaker1, CLASS_attack);
quaker1.attfrq = 175;
quaker1.attackdelaymax = 25;
quaker1.attackactive = 10;
quaker1.speed = 3;
quaker2 = {clip:"quaker2", monname:"quaker2", hp:27, exp:int((26 * 1.25)), damage:18, AI:AINormal, attlist:bs_earth_quake3, arrowtype:1, moneyamp:1.5, rateamp:1.5};
pasteObject(quaker2, CLASS_walk);
pasteObject(quaker2, CLASS_attack);
quaker2.activedetect = true;
quaker2.attfrq = 175;
quaker2.attackdelaymax = 25;
quaker2.attackactive = 10;
quaker2.speed = 2;
shooter1 = {clip:"shooter1", monname:"shooter1", hp:8, exp:10, damage:8, AI:AINormal, attlist:bs_shoot_2_hero, arrowtype:1, moneyamp:1.1, rateamp:1.1};
pasteObject(shooter1, CLASS_attack);
shooter1.attfrq = 250;
shooter1.attackdelaymax = 25;
shooter1.attackactive = 5;
shooter2 = {clip:"shooter2", monname:"shooter2", hp:10, exp:int((13 * 1.1)), damage:9, AI:AINormal, attlist:bs_shoot_2_hero2, arrowtype:1, moneyamp:1.2, rateamp:1.1};
pasteObject(shooter2, CLASS_attack);
shooter2.attfrq = 250;
shooter2.attackdelaymax = 25;
shooter2.attackactive = 5;
slave1 = {clip:"slave1", monname:"slave1", hp:5, exp:5, damage:5, AI:AINormal, arrowtype:1, moneyamp:1, rateamp:1};
pasteObject(slave1, CLASS_walk);
slave1.undown = false;
slave1.speed = 5;
soldier1 = {clip:"soldier1", monname:"soldier1", hp:9, exp:9, damage:6, AI:AINormal, arrowtype:1, moneyamp:1.1, rateamp:1};
pasteObject(soldier1, CLASS_walk);
soldier1.undown = false;
soldier1.speed = 7;
soldier2 = {clip:"soldier2", monname:"soldier2", hp:12, exp:int((12 * 1.1)), damage:7, AI:AINormal, arrowtype:1, moneyamp:1.1, rateamp:1.1};
pasteObject(soldier2, CLASS_walk);
soldier2.undown = false;
soldier2.speed = 6;
soldier3 = {clip:"soldier3", monname:"soldier3", hp:15, exp:int((15 * 1.2)), damage:10, AI:AINormal, attlist:bs_shoot_forward, arrowtype:1, moneyamp:1.2, rateamp:1.1};
pasteObject(soldier3, CLASS_walk);
pasteObject(soldier3, CLASS_attack);
soldier3.undown = false;
soldier3.speed = 6;
soldier3.attfrq = 200;
soldier3.attackdelaymax = 25;
soldier3.attackactive = 1;
monbase = new Array("caster1", "caster2", "healer1", "healer2", "jumper1", "jumper2", "mine_layer1", "mine_layer2", "quaker_jr", "quaker1", "quaker2", "shooter1", "shooter2", "slave1", "soldier1", "soldier2", "soldier3");
multilevelmon = {};
i = 0;
while (i < 100) {
mi = 0;
while (mi < monbase.length) {
multilevelmon[((monbase[mi] + "_lv") + i)] = {};
pasteObject(multilevelmon[((monbase[mi] + "_lv") + i)], this[monbase[mi]]);
multilevelmon[((monbase[mi] + "_lv") + i)].hp = (multilevelmon[((monbase[mi] + "_lv") + i)].hp + int(((this[monbase[mi]].hp * 0.4) * i)));
multilevelmon[((monbase[mi] + "_lv") + i)].damage = (multilevelmon[((monbase[mi] + "_lv") + i)].damage + int(((this[monbase[mi]].damage * 0.1) * i)));
multilevelmon[((monbase[mi] + "_lv") + i)].exp = (multilevelmon[((monbase[mi] + "_lv") + i)].exp + int(((this[monbase[mi]].exp * 0.2) * i)));
multilevelmon[((monbase[mi] + "_lv") + i)].moneyamp = (multilevelmon[((monbase[mi] + "_lv") + i)].moneyamp + int(((this[monbase[mi]].exp * 0.1) * i)));
mi++;
};
i++;
};
boss_stone1 = {clip:"boss_stone1", monname:"boss_stone1", hp:12, exp:0, damage:0, gravity:0.2, speed:0, knockdamage:99999, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:400, dat:MapAPI.freedat};
boss_stone2 = {clip:"boss_stone2", monname:"boss_stone2", hp:10, exp:0, damage:0, gravity:0.1, speed:0, knockdamage:99999, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:400, dat:MapAPI.freedat};
boss_ghost1 = {clip:"boss_ghost1", monname:"boss_ghost1", hp:8, exp:0, damage:17, gravity:2, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:250, dat:MapAPI.freedat};
boss_stone_wall1 = {clip:"boss_stone_wall1", monname:"boss_stone_wall1", hp:30, exp:0, damage:1, gravity:2, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:400, knockdamage:99999};
boss_energy_bolt1 = {clip:"boss_energy_bolt1", monname:"boss_energy_bolt1", hp:30, exp:0, damage:20, gravity:2, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:200, dat:MapAPI.freedat};
boss_energy_bolt2 = {clip:"boss_energy_bolt2", monname:"boss_energy_bolt2", hp:30, exp:0, damage:18, gravity:2, speed:0, dir:1, undown:true, jump:false, jumpfrq:1, jumppow:20, freewalk:false, attfrq:0, AI:AICheckAll, activedetect:false, dura:800, dat:MapAPI.freedat};
boss_earth_quake1 = {template:boss_earthQuake, dmg:1, range:2000};
boss_falling_stone1 = {template:skyObject, mon:boss_stone1, count:6, range:640, amp:0.8};
boss_falling_stone2 = {template:skyObject, mon:boss_stone2, count:8, range:640, amp:0.6};
boss_boomer_spirit1 = {template:boomer8, mon:boss_ghost1, amp:0.8};
boss_boomer_spirit2 = {template:boomer10, mon:boss_ghost1, amp:0.8};
boss_heal = {template:heal, recover:0.03, range:1000, heal:"gfx_heal_boss"};
boss_stone_wall = {template:attach_mon, mon:boss_stone_wall1, range:3000, count:3};
boss_energy_bolt = {template:threeHomingInOneRandomWay, mon:boss_energy_bolt1, summon:boss_energy_bolt2};
boss1_att = new Array();
boss1_att.push({a0:boss_earth_quake1, a1:boss_falling_stone1});
boss1_att.push({a0:boss_earth_quake1, a1:boss_falling_stone1, a3:boss_falling_stone2});
boss2_att = new Array();
boss2_att.push({a0:boss_boomer_spirit1});
boss2_att.push({a0:boss_boomer_spirit1}, {a1:boss_boomer_spirit2});
boss3_att = new Array();
boss3_att.push({a0:boss_heal});
boss4_att = new Array();
boss4_att.push({a0:boss_stone_wall});
boss4_att.push({a0:boss_stone_wall}, {a1:boss_energy_bolt});
boss4_att.push({a0:boss_stone_wall}, {a1:boss_energy_bolt});
boss1 = {clip:"boss1", monname:"boss1", hp:750, exp:120, damage:20, gravity:5, speed:0, dir:1, undown:false, jump:false, jumpfrq:0, jumppow:0, freewalk:true, attfrq:200, AI:AINormal, activedetect:false, fire:true, thunder:true, knockdamage:99999, attackdelaymax:100, attackactive:5, attlist:boss1_att, boss:true};
boss2 = {clip:"boss2", monname:"boss2", hp:2000, exp:160, damage:20, gravity:5, speed:1, dir:-1, undown:false, jump:false, jumpfrq:0, jumppow:0, freewalk:true, attfrq:175, AI:AINormal, activedetect:false, fire:false, thunder:false, knockdamage:99999, attackdelaymax:50, attackactive:15, attlist:boss2_att, boss:true};
boss3 = {clip:"boss3", monname:"boss3", hp:4000, exp:240, damage:40, gravity:5, speed:0, dir:1, undown:false, jump:false, jumpfrq:0, jumppow:0, freewalk:true, attfrq:400, AI:AINormal, activedetect:false, fire:false, thunder:false, knockdamage:99999, attackdelaymax:50, attackactive:20, attlist:boss3_att, boss:true};
boss4 = {clip:"boss4", monname:"boss4", hp:6000, exp:0, damage:20, gravity:1, speed:2, dir:-1, undown:true, jump:true, jumpfrq:150, jumppow:30, freewalk:true, AI:AINormal, activedetect:true, fire:false, thunder:false, knockdamage:99999, attfrq:125, attackdelaymax:50, attackactive:10, attlist:boss4_att, boss:true};
lvdoor = null;
createDoor = function (_arg1, _arg2){
var x = _arg1;
var y = _arg2;
lvdoor = new door();
lvdoor.x = x;
lvdoor.y = y;
lvdoor.process = function (){
if (((this.hit.hitTestObject(splayer)) && (splayer.visible))){
splayer.x = this.x;
splayer.y = this.y;
clearSet();
};
};
background_layer.addChild(lvdoor);
};
startpoint = new Array();
startpoint[0] = {x:600, y:(40 * 15)};
startpoint[1] = {x:(40 * 2), y:(40 * 14)};
startpoint[2] = {x:(40 * 2), y:(40 * 24)};
startpoint[3] = {x:(40 * 2), y:(40 * 17)};
startpoint[4] = {x:(40 * 6), y:(40 * 28)};
startpoint[5] = {x:(40 * 2), y:(40 * 24)};
startpoint[6] = {x:(40 * 2), y:(40 * 40)};
startpoint[7] = {x:(40 * 49), y:(40 * 35)};
startpoint[8] = {x:(40 * 18), y:(40 * 18)};
startpoint[9] = {x:(40 * 7), y:(40 * 39)};
startpoint[10] = {x:(40 * 8), y:(40 * 29)};
startpoint[11] = {x:(40 * 3), y:(40 * 92)};
startpoint[12] = {x:(40 * 18), y:(40 * 19)};
startpoint[13] = {x:(40 * 2), y:(40 * 14)};
startpoint[14] = {x:(40 * 2), y:(40 * 73)};
startpoint[15] = {x:(40 * 6), y:(40 * 11)};
startpoint[16] = {x:(40 * 2), y:(40 * 36)};
mouse = null;
levelinfo = new Array();
HPBonusAmp = new Array();
HPBonusAmp[0] = 1;
HPBonusAmp[1] = 0.8;
HPBonusAmp[2] = 0.9;
HPBonusAmp[3] = 1;
HPBonusAmp[4] = 1.2;
HPBonusAmp[5] = 1.3;
HPBonusAmp[6] = 1.4;
HPBonusAmp[7] = 1.5;
HPBonusAmp[8] = 1.6;
HPBonusAmp[9] = 1.7;
HPBonusAmp[10] = 1.8;
HPBonusAmp[11] = 1.9;
HPBonusAmp[12] = 2;
HPBonusAmp[13] = 2.1;
HPBonusAmp[14] = 2.2;
HPBonusAmp[15] = 2.3;
HPBonusAmp[16] = 2.4;
HPBonusAmp[17] = 1;
levelinfo[1] = function (){
group1 = new Array();
group1.push(multilevelmon["slave1_lv1"]);
group1.push(multilevelmon["slave1_lv2"]);
group2 = new Array();
group2.push(multilevelmon["soldier1_lv1"]);
group2.push(multilevelmon["slave1_lv1"]);
group2.push(multilevelmon["soldier1_lv2"]);
group3 = new Array();
group3.push(multilevelmon["soldier3_lv15"]);
pointlist.push({mon:group1, x:22, y:9, frq:275, seq:false, limit:15, counter:75, nextcreate:0});
pointlist.push({mon:group1, x:30, y:9, frq:250, seq:false, limit:15, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:38, y:6, frq:275, seq:false, limit:15, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:73, y:7, frq:250, seq:false, limit:15, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:47, y:6, frq:50, seq:true, limit:10, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group2, x:60, y:6, frq:50, seq:true, limit:10, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group2, x:47, y:6, frq:350, seq:false, limit:18, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:60, y:6, frq:325, seq:false, limit:18, counter:150, nextcreate:0});
i = 0;
while (i < 5) {
newback = background_layer.addChild(new sce_world1_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 15);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 3);
newback.y = (40 * 13);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 10);
newback.y = (40 * 13);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 19);
newback.y = (40 * 10);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 24);
newback.y = (40 * 10);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 30);
newback.y = (40 * 10);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 44);
newback.y = (40 * 7);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 52);
newback.y = (40 * 7);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 59);
newback.y = (40 * 7);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 64);
newback.y = (40 * 7);
newback.gotoAndStop(1);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 56);
newfore.y = (40 * 7);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 73);
newfore.y = (40 * 9);
newfore.gotoAndStop(9);
createDoor((40 * 73), (40 * 2));
foreground_layer.addChild(mouse);
};
levelinfo[2] = function (){
group1 = new Array();
group1.push(multilevelmon["slave1_lv1"]);
group1.push(multilevelmon["slave1_lv2"]);
group2.push(multilevelmon["soldier1_lv3"]);
group2 = new Array();
group2.push(multilevelmon["slave1_lv2"]);
group2.push(multilevelmon["soldier1_lv1"]);
group2.push(multilevelmon["soldier1_lv2"]);
group3 = new Array();
group3.push(multilevelmon["shooter1_lv1"]);
pointlist.push({mon:group1, x:9, y:22, frq:250, seq:false, limit:50, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:27, y:22, frq:225, seq:false, limit:50, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:8, y:14, frq:250, seq:false, limit:50, counter:150, nextcreate:0});
pointlist.push({mon:group1, x:31, y:15, frq:225, seq:false, limit:50, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:15, y:12, frq:525, seq:false, limit:50, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:20, y:15, frq:275, seq:false, limit:50, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:42, y:13, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group3, x:17, y:7, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group3, x:42, y:7, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group3, x:34, y:3, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group3, x:42, y:13, frq:1025, seq:false, limit:54, counter:1000, nextcreate:0});
pointlist.push({mon:group3, x:17, y:7, frq:1050, seq:false, limit:54, counter:1000, nextcreate:0});
pointlist.push({mon:group3, x:42, y:7, frq:1025, seq:false, limit:54, counter:1000, nextcreate:0});
pointlist.push({mon:group3, x:34, y:3, frq:1050, seq:false, limit:54, counter:1000, nextcreate:0});
i = 0;
while (i < 4) {
newback = background_layer.addChild(new sce_world1_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 25);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 1);
newback.y = (40 * 23);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 11);
newback.y = (40 * 23);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 16);
newback.y = (40 * 23);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 20);
newback.y = (40 * 23);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 27);
newback.y = (40 * 23);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 35);
newback.y = (40 * 23);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 41);
newback.y = (40 * 23);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 19);
newback.y = (40 * 16);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 26);
newback.y = (40 * 16);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 31);
newback.y = (40 * 16);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 21);
newback.y = (40 * 11);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 28);
newback.y = (40 * 10);
newback.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 7);
newfore.y = (40 * 23);
newfore.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 23);
newfore.y = (40 * 23);
newfore.gotoAndStop(2);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 31);
newfore.y = (40 * 23);
newfore.gotoAndStop(1);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 47);
newfore.y = (40 * 23);
newfore.gotoAndStop(3);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 10);
newfore.y = (40 * 15);
newfore.gotoAndStop(6);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 14);
newfore.y = (40 * 13);
newfore.gotoAndStop(6);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 36);
newfore.y = (40 * 9);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 42);
newfore.y = (40 * 9);
newfore.gotoAndStop(8);
createDoor((40 * 50), (40 * 6));
foreground_layer.addChild(mouse);
};
levelinfo[3] = function (){
group1 = new Array();
group1.push(multilevelmon["slave1_lv3"]);
group1.push(multilevelmon["slave1_lv4"]);
group2 = new Array();
group2.push(multilevelmon["slave1_lv3"]);
group2.push(multilevelmon["soldier1_lv3"]);
group3 = new Array();
group3.push(multilevelmon["shooter1_lv2"]);
pointlist.push({mon:group1, x:24, y:15, frq:250, seq:false, limit:25, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:27, y:10, frq:275, seq:false, limit:25, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:63, y:7, frq:225, seq:false, limit:25, counter:150, nextcreate:0});
pointlist.push({mon:group1, x:34, y:4, frq:250, seq:false, limit:25, counter:175, nextcreate:0});
pointlist.push({mon:group1, x:46, y:3, frq:225, seq:false, limit:25, counter:200, nextcreate:0});
pointlist.push({mon:group2, x:15, y:12, frq:275, seq:false, limit:25, counter:100, nextcreate:0});
pointlist.push({mon:group2, x:5, y:13, frq:275, seq:false, limit:25, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:56, y:3, frq:225, seq:false, limit:25, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:32, y:7, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group3, x:65, y:3, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group3, x:71, y:12, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group3, x:32, y:7, frq:1000, seq:false, limit:30, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:65, y:3, frq:1025, seq:false, limit:30, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:71, y:12, frq:1050, seq:false, limit:30, counter:175, nextcreate:0});
i = 0;
while (i < 5) {
newback = background_layer.addChild(new sce_world1_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 18);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 4);
newback.y = (40 * 14);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 12);
newback.y = (40 * 13);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 72);
newback.y = (40 * 13);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world1());
newback.x = (40 * 31);
newback.y = (40 * 8);
newback.gotoAndStop(1);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 16);
newfore.y = (40 * 16);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 55);
newfore.y = (40 * 16);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 68);
newfore.y = (40 * 16);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 55);
newfore.y = (40 * 3);
newfore.gotoAndStop(6);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 45);
newfore.y = (40 * 2);
newfore.gotoAndStop(6);
createDoor((40 * 77), (40 * 15));
foreground_layer.addChild(mouse);
};
levelinfo[4] = function (){
group_boss = new Array();
group_boss.push(boss1);
group1 = new Array();
group1.push(multilevelmon["quaker1_lv1"]);
group1.push(multilevelmon["quaker1_lv2"]);
group1.push(multilevelmon["quaker1_lv3"]);
group1.push(multilevelmon["quaker1_lv4"]);
pointlist.push({mon:group_boss, x:71, y:26, frq:50, seq:false, limit:10, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:49, y:19, frq:50, seq:false, limit:4, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:62, y:19, frq:50, seq:false, limit:4, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:58, y:20, frq:50, seq:false, limit:4, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:62, y:28, frq:50, seq:false, limit:4, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:49, y:19, frq:525, seq:false, limit:25, counter:250, nextcreate:0});
pointlist.push({mon:group1, x:58, y:20, frq:500, seq:false, limit:25, counter:350, nextcreate:0});
pointlist.push({mon:group1, x:62, y:19, frq:525, seq:false, limit:25, counter:300, nextcreate:0});
pointlist.push({mon:group1, x:62, y:28, frq:575, seq:false, limit:25, counter:400, nextcreate:0});
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 7);
newfore.y = (40 * 27);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 15);
newfore.y = (40 * 27);
newfore.gotoAndStop(7);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 18);
newfore.y = (40 * 27);
newfore.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 12);
newfore.y = (40 * 26);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 24);
newfore.y = (40 * 26);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 27);
newfore.y = (40 * 26);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 33);
newfore.y = (40 * 25);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 43);
newfore.y = (40 * 20);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world1());
newfore.x = (40 * 47);
newfore.y = (40 * 20);
newfore.gotoAndStop(9);
foreground_layer.addChild(mouse);
};
levelinfo[5] = function (){
group1 = new Array();
group1.push(multilevelmon["jumper1_lv6"]);
group1.push(multilevelmon["jumper1_lv7"]);
group2 = new Array();
group2.push(multilevelmon["jumper1_lv6"]);
group2.push(multilevelmon["soldier2_lv7"]);
pointlist.push({mon:group1, x:8, y:2, frq:225, seq:false, limit:30, counter:75, nextcreate:0});
pointlist.push({mon:group1, x:54, y:18, frq:225, seq:false, limit:30, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:168, y:6, frq:225, seq:false, limit:30, counter:75, nextcreate:0});
pointlist.push({mon:group1, x:31, y:3, frq:225, seq:false, limit:30, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:73, y:6, frq:225, seq:false, limit:30, counter:75, nextcreate:0});
pointlist.push({mon:group1, x:112, y:3, frq:225, seq:false, limit:30, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:161, y:6, frq:225, seq:false, limit:30, counter:75, nextcreate:0});
pointlist.push({mon:group2, x:134, y:4, frq:325, seq:false, limit:40, counter:75, nextcreate:0});
pointlist.push({mon:group2, x:151, y:6, frq:325, seq:false, limit:40, counter:100, nextcreate:0});
pointlist.push({mon:group2, x:94, y:4, frq:325, seq:false, limit:40, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:14, y:19, frq:325, seq:false, limit:40, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:36, y:20, frq:325, seq:false, limit:40, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:74, y:19, frq:325, seq:false, limit:40, counter:200, nextcreate:0});
pointlist.push({mon:group2, x:88, y:20, frq:325, seq:false, limit:40, counter:75, nextcreate:0});
pointlist.push({mon:group2, x:96, y:19, frq:325, seq:false, limit:40, counter:100, nextcreate:0});
pointlist.push({mon:group2, x:194, y:9, frq:325, seq:false, limit:40, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:111, y:16, frq:325, seq:false, limit:40, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:123, y:21, frq:325, seq:false, limit:40, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:133, y:20, frq:325, seq:false, limit:40, counter:200, nextcreate:0});
pointlist.push({mon:group2, x:148, y:20, frq:325, seq:false, limit:40, counter:75, nextcreate:0});
pointlist.push({mon:group2, x:170, y:21, frq:325, seq:false, limit:40, counter:100, nextcreate:0});
pointlist.push({mon:group2, x:186, y:20, frq:325, seq:false, limit:40, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:60, y:4, frq:325, seq:false, limit:40, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:19, y:2, frq:325, seq:false, limit:40, counter:175, nextcreate:0});
i = 0;
while (i < 13) {
newback = background_layer.addChild(new sce_world2_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 25);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 2);
newback.y = (40 * 23);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 7);
newback.y = (40 * 23);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 12);
newback.y = (40 * 23);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 18);
newback.y = (40 * 23);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 22);
newback.y = (40 * 23);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 40);
newback.y = (40 * 23);
newback.gotoAndStop(10);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 47);
newback.y = (40 * 23);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 57);
newback.y = (40 * 23);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 63);
newback.y = (40 * 23);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 79);
newback.y = (40 * 23);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 83);
newback.y = (40 * 23);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 94);
newback.y = (40 * 23);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 100);
newback.y = (40 * 23);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 105);
newback.y = (40 * 23);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 109);
newback.y = (40 * 23);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 127);
newback.y = (40 * 23);
newback.gotoAndStop(7);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 15);
newfore.y = (40 * 23);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 52);
newfore.y = (40 * 23);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 90);
newfore.y = (40 * 23);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 113);
newfore.y = (40 * 23);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 157);
newfore.y = (40 * 23);
newfore.gotoAndStop(9);
createDoor((40 * 195), (40 * 19));
foreground_layer.addChild(mouse);
};
levelinfo[6] = function (){
group1 = new Array();
group1.push(multilevelmon["jumper1_lv7"]);
group1.push(multilevelmon["jumper1_lv8"]);
group2 = new Array();
group2.push(multilevelmon["soldier2_lv8"]);
group2.push(multilevelmon["soldier2_lv9"]);
group3 = new Array();
group3.push(multilevelmon["caster1_lv6"]);
group3.push(multilevelmon["caster1_lv7"]);
pointlist.push({mon:group1, x:4, y:12, frq:475, seq:false, limit:25, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:9, y:29, frq:475, seq:false, limit:25, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:18, y:2, frq:475, seq:false, limit:25, counter:150, nextcreate:0});
pointlist.push({mon:group1, x:24, y:2, frq:475, seq:false, limit:25, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:7, y:37, frq:275, seq:false, limit:20, counter:75, nextcreate:0});
pointlist.push({mon:group2, x:21, y:9, frq:275, seq:false, limit:20, counter:100, nextcreate:0});
pointlist.push({mon:group2, x:29, y:8, frq:275, seq:false, limit:20, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:24, y:34, frq:275, seq:false, limit:20, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:15, y:36, frq:275, seq:false, limit:20, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:20, y:26, frq:275, seq:false, limit:20, counter:200, nextcreate:0});
pointlist.push({mon:group2, x:9, y:17, frq:275, seq:false, limit:20, counter:225, nextcreate:0});
pointlist.push({mon:group2, x:15, y:18, frq:275, seq:false, limit:20, counter:250, nextcreate:0});
pointlist.push({mon:group2, x:23, y:19, frq:275, seq:false, limit:20, counter:275, nextcreate:0});
pointlist.push({mon:group2, x:27, y:22, frq:275, seq:false, limit:20, counter:300, nextcreate:0});
pointlist.push({mon:group2, x:15, y:7, frq:275, seq:false, limit:20, counter:325, nextcreate:0});
pointlist.push({mon:group3, x:6, y:23, frq:775, seq:false, limit:30, counter:750, nextcreate:0});
pointlist.push({mon:group3, x:11, y:4, frq:775, seq:false, limit:30, counter:775, nextcreate:0});
pointlist.push({mon:group3, x:11, y:23, frq:775, seq:false, limit:30, counter:800, nextcreate:0});
pointlist.push({mon:group3, x:27, y:29, frq:775, seq:false, limit:30, counter:825, nextcreate:0});
i = 0;
while (i < 2) {
newback = background_layer.addChild(new sce_world2_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 41);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 5);
newback.y = (40 * 39);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 16);
newback.y = (40 * 39);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 24);
newback.y = (40 * 39);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 23);
newback.y = (40 * 35);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 5);
newback.y = (40 * 24);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 8);
newback.y = (40 * 24);
newback.gotoAndStop(5);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 11);
newback.y = (40 * 24);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 15);
newback.y = (40 * 19);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 8);
newback.y = (40 * 18);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 27);
newback.y = (40 * 9);
newback.gotoAndStop(7);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 13);
newfore.y = (40 * 39);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 7);
newfore.y = (40 * 32);
newfore.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 13);
newfore.y = (40 * 31);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 21);
newfore.y = (40 * 20);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 18);
newfore.y = (40 * 12);
newfore.gotoAndStop(8);
createDoor((40 * 0), (40 * 1));
foreground_layer.addChild(mouse);
};
levelinfo[7] = function (){
group1 = new Array();
group1.push(multilevelmon["jumper1_lv8"]);
group1.push(multilevelmon["jumper1_lv9"]);
group2 = new Array();
group2.push(multilevelmon["soldier2_lv9"]);
group2.push(multilevelmon["soldier2_lv10"]);
group3 = new Array();
group3.push(multilevelmon["caster1_lv7"]);
group3.push(multilevelmon["caster1_lv8"]);
pointlist.push({mon:group1, x:12, y:11, frq:200, seq:false, limit:20, counter:75, nextcreate:0});
pointlist.push({mon:group1, x:16, y:15, frq:200, seq:false, limit:20, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:34, y:13, frq:200, seq:false, limit:20, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:9, y:29, frq:300, seq:false, limit:30, counter:75, nextcreate:0});
pointlist.push({mon:group2, x:19, y:28, frq:300, seq:false, limit:30, counter:100, nextcreate:0});
pointlist.push({mon:group2, x:38, y:31, frq:300, seq:false, limit:30, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:13, y:19, frq:300, seq:false, limit:30, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:23, y:19, frq:300, seq:false, limit:30, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:30, y:17, frq:300, seq:false, limit:30, counter:200, nextcreate:0});
pointlist.push({mon:group2, x:43, y:18, frq:300, seq:false, limit:30, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:8, y:12, frq:300, seq:false, limit:30, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:27, y:8, frq:300, seq:false, limit:30, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:12, y:24, frq:900, seq:false, limit:35, counter:500, nextcreate:0});
pointlist.push({mon:group3, x:17, y:7, frq:900, seq:false, limit:35, counter:525, nextcreate:0});
pointlist.push({mon:group3, x:19, y:24, frq:900, seq:false, limit:35, counter:550, nextcreate:0});
pointlist.push({mon:group3, x:27, y:26, frq:900, seq:false, limit:35, counter:575, nextcreate:0});
pointlist.push({mon:group3, x:34, y:26, frq:900, seq:false, limit:35, counter:600, nextcreate:0});
i = 0;
while (i < 4) {
newback = background_layer.addChild(new sce_world2_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 38);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 2);
newback.y = (40 * 36);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 6);
newback.y = (40 * 36);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 11);
newback.y = (40 * 36);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 22);
newback.y = (40 * 36);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 27);
newback.y = (40 * 36);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 34);
newback.y = (40 * 36);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 41);
newback.y = (40 * 36);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 25);
newback.y = (40 * 26);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 31);
newback.y = (40 * 26);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 12);
newback.y = (40 * 24);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 17);
newback.y = (40 * 20);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 35);
newback.y = (40 * 20);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 27);
newback.y = (40 * 18);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 6);
newback.y = (40 * 14);
newback.gotoAndStop(2);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 13);
newfore.y = (40 * 36);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 25);
newfore.y = (40 * 36);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 38);
newfore.y = (40 * 36);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 48);
newfore.y = (40 * 36);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 15);
newfore.y = (40 * 36);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 37);
newfore.y = (40 * 20);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 21);
newfore.y = (40 * 19);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 44);
newfore.y = (40 * 19);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 10);
newfore.y = (40 * 14);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 28);
newfore.y = (40 * 8);
newfore.gotoAndStop(10);
createDoor((40 * 24), (40 * 2));
foreground_layer.addChild(mouse);
};
levelinfo[8] = function (){
group_boss = new Array();
group_boss.push(boss2);
group1 = new Array();
group1.push(multilevelmon["shooter2_lv9"]);
group1.push(multilevelmon["shooter2_lv10"]);
pointlist.push({mon:group_boss, x:18, y:10, frq:25, seq:false, limit:50, counter:5, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:3, y:21, frq:450, seq:false, limit:50, counter:100, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:31, y:24, frq:450, seq:false, limit:50, counter:125, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:3, y:21, frq:900, seq:false, limit:50, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:31, y:24, frq:900, seq:false, limit:50, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:12, y:15, frq:900, seq:false, limit:50, counter:150, nextcreate:0});
pointlist.push({mon:group1, x:23, y:15, frq:900, seq:false, limit:50, counter:175, nextcreate:0});
pointlist.push({mon:group1, x:10, y:3, frq:900, seq:false, limit:50, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:26, y:3, frq:900, seq:false, limit:50, counter:150, nextcreate:0});
pointlist.push({mon:group1, x:13, y:1, frq:900, seq:false, limit:50, counter:175, nextcreate:0});
pointlist.push({mon:group1, x:23, y:1, frq:900, seq:false, limit:50, counter:125, nextcreate:0});
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 8);
newback.y = (40 * 31);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 11);
newback.y = (40 * 31);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 16);
newback.y = (40 * 31);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 25);
newback.y = (40 * 31);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 2);
newback.y = (40 * 23);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 7);
newback.y = (40 * 12);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 15);
newback.y = (40 * 12);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 27);
newback.y = (40 * 12);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 31);
newback.y = (40 * 6);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 9);
newback.y = (40 * 5);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world2());
newback.x = (40 * 22);
newback.y = (40 * 2);
newback.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 22);
newfore.y = (40 * 31);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 10);
newfore.y = (40 * 12);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world2());
newfore.x = (40 * 22);
newfore.y = (40 * 12);
newfore.gotoAndStop(9);
foreground_layer.addChild(mouse);
};
levelinfo[9] = function (){
group1 = new Array();
group1.push(multilevelmon["jumper2_lv11"]);
group1.push(multilevelmon["jumper2_lv12"]);
group2 = new Array();
group2.push(multilevelmon["quaker2_lv11"]);
group2.push(multilevelmon["quaker2_lv12"]);
group3 = new Array();
group3.push(multilevelmon["mine_layer1_lv11"]);
group3.push(multilevelmon["mine_layer1_lv12"]);
group4 = new Array();
group4.push(multilevelmon["mine_layer1_lv11"]);
group4.push(multilevelmon["quaker2_lv11"]);
pointlist.push({mon:group1, x:17, y:10, frq:200, seq:false, limit:20, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:55, y:14, frq:200, seq:false, limit:20, counter:150, nextcreate:0});
pointlist.push({mon:group1, x:59, y:6, frq:200, seq:false, limit:20, counter:175, nextcreate:0});
pointlist.push({mon:group1, x:60, y:12, frq:200, seq:false, limit:20, counter:200, nextcreate:0});
pointlist.push({mon:group1, x:68, y:9, frq:200, seq:false, limit:20, counter:225, nextcreate:0});
pointlist.push({mon:group2, x:22, y:35, frq:25, seq:false, limit:40, counter:5, nextcreate:0, uni:true});
pointlist.push({mon:group2, x:37, y:30, frq:25, seq:false, limit:40, counter:5, nextcreate:0, uni:true});
pointlist.push({mon:group3, x:45, y:17, frq:300, seq:false, limit:25, counter:100, nextcreate:0});
pointlist.push({mon:group4, x:8, y:19, frq:550, seq:false, limit:33, counter:125, nextcreate:0});
pointlist.push({mon:group4, x:15, y:19, frq:600, seq:false, limit:33, counter:150, nextcreate:0});
pointlist.push({mon:group4, x:23, y:19, frq:550, seq:false, limit:33, counter:175, nextcreate:0});
pointlist.push({mon:group4, x:35, y:21, frq:600, seq:false, limit:33, counter:200, nextcreate:0});
pointlist.push({mon:group4, x:28, y:8, frq:550, seq:false, limit:33, counter:125, nextcreate:0});
pointlist.push({mon:group4, x:33, y:8, frq:600, seq:false, limit:33, counter:150, nextcreate:0});
pointlist.push({mon:group4, x:48, y:7, frq:550, seq:false, limit:33, counter:175, nextcreate:0});
pointlist.push({mon:group4, x:57, y:21, frq:600, seq:false, limit:33, counter:200, nextcreate:0});
i = 0;
while (i < 6) {
newback = background_layer.addChild(new sce_world3_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 40);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 2);
newback.y = (40 * 38);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 4);
newback.y = (40 * 38);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 8);
newback.y = (40 * 38);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 10);
newback.y = (40 * 38);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 15);
newback.y = (40 * 37);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 16);
newback.y = (40 * 37);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 18);
newback.y = (40 * 37);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 20);
newback.y = (40 * 37);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 24);
newback.y = (40 * 36);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 26);
newback.y = (40 * 36);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 27);
newback.y = (40 * 36);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 29);
newback.y = (40 * 36);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 33);
newback.y = (40 * 35);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 34);
newback.y = (40 * 35);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 35);
newback.y = (40 * 35);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 42);
newback.y = (40 * 33);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 62);
newback.y = (40 * 26);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 63);
newback.y = (40 * 26);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 31);
newback.y = (40 * 23);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 33);
newback.y = (40 * 23);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 38);
newback.y = (40 * 23);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 15);
newback.y = (40 * 21);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 20);
newback.y = (40 * 21);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 6);
newback.y = (40 * 20);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 16);
newback.y = (40 * 11);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 26);
newback.y = (40 * 10);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 30);
newback.y = (40 * 10);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 40);
newback.y = (40 * 9);
newback.gotoAndStop(7);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 6);
newfore.y = (40 * 38);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 36);
newfore.y = (40 * 35);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 32);
newfore.y = (40 * 23);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 37);
newfore.y = (40 * 35);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 18);
newfore.y = (40 * 21);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 8);
newfore.y = (40 * 20);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 32);
newfore.y = (40 * 10);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 45);
newfore.y = (40 * 9);
newfore.gotoAndStop(10);
createDoor((40 * 82), (40 * 1));
foreground_layer.addChild(mouse);
};
levelinfo[10] = function (){
group1 = new Array();
group1.push(multilevelmon["jumper2_lv12"]);
group1.push(multilevelmon["jumper2_lv13"]);
group2 = new Array();
group2.push(multilevelmon["quaker2_lv12"]);
group2.push(multilevelmon["quaker2_lv13"]);
group3 = new Array();
group3.push(multilevelmon["mine_layer1_lv12"]);
group3.push(multilevelmon["quaker2_lv12"]);
group3.push(multilevelmon["mine_layer1_lv13"]);
group3.push(multilevelmon["quaker2_lv13"]);
pointlist.push({mon:group1, x:13, y:21, frq:250, seq:false, limit:30, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:26, y:27, frq:250, seq:false, limit:30, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:45, y:23, frq:250, seq:false, limit:30, counter:150, nextcreate:0});
pointlist.push({mon:group1, x:58, y:24, frq:250, seq:false, limit:30, counter:175, nextcreate:0});
pointlist.push({mon:group1, x:69, y:25, frq:250, seq:false, limit:30, counter:200, nextcreate:0});
pointlist.push({mon:group1, x:86, y:21, frq:250, seq:false, limit:30, counter:225, nextcreate:0});
pointlist.push({mon:group2, x:14, y:29, frq:500, seq:false, limit:40, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:34, y:25, frq:500, seq:false, limit:40, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:43, y:28, frq:500, seq:false, limit:40, counter:200, nextcreate:0});
pointlist.push({mon:group2, x:61, y:26, frq:500, seq:false, limit:40, counter:225, nextcreate:0});
pointlist.push({mon:group2, x:75, y:24, frq:500, seq:false, limit:40, counter:250, nextcreate:0});
pointlist.push({mon:group3, x:49, y:9, frq:300, seq:false, limit:35, counter:100, nextcreate:0});
pointlist.push({mon:group3, x:56, y:8, frq:325, seq:false, limit:35, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:66, y:10, frq:300, seq:false, limit:35, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:71, y:10, frq:325, seq:false, limit:35, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:84, y:11, frq:300, seq:false, limit:35, counter:200, nextcreate:0});
pointlist.push({mon:group3, x:88, y:10, frq:350, seq:false, limit:35, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:70, y:5, frq:300, seq:false, limit:35, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:78, y:7, frq:350, seq:false, limit:35, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:87, y:5, frq:300, seq:false, limit:35, counter:200, nextcreate:0});
i = 0;
while (i < 7) {
newback = background_layer.addChild(new sce_world3_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 38);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 11);
newback.y = (40 * 29);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 54);
newback.y = (40 * 29);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 68);
newback.y = (40 * 29);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 33);
newback.y = (40 * 28);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 34);
newback.y = (40 * 28);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 89);
newback.y = (40 * 21);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 82);
newback.y = (40 * 11);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 86);
newback.y = (40 * 11);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 70);
newback.y = (40 * 10);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 79);
newback.y = (40 * 7);
newback.gotoAndStop(3);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 16);
newfore.y = (40 * 32);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 45);
newfore.y = (40 * 31);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 51);
newfore.y = (40 * 29);
newfore.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 57);
newfore.y = (40 * 29);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 75);
newfore.y = (40 * 26);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 54);
newfore.y = (40 * 12);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 65);
newfore.y = (40 * 10);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 76);
newfore.y = (40 * 10);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 69);
newfore.y = (40 * 6);
newfore.gotoAndStop(9);
createDoor((40 * 91), (40 * 5));
foreground_layer.addChild(mouse);
};
levelinfo[11] = function (){
group1 = new Array();
group1.push(multilevelmon["caster1_lv10"]);
group1.push(multilevelmon["caster1_lv12"]);
group2 = new Array();
group2.push(multilevelmon["jumper2_lv13"]);
group2.push(multilevelmon["jumper2_lv14"]);
group3 = new Array();
group3.push(multilevelmon["mine_layer1_lv14"]);
group3.push(multilevelmon["quaker2_lv14"]);
group3.push(multilevelmon["mine_layer1_lv15"]);
group3.push(multilevelmon["quaker2_lv15"]);
pointlist.push({mon:group1, x:9, y:15, frq:250, seq:false, limit:45, counter:5, nextcreate:0});
pointlist.push({mon:group1, x:13, y:10, frq:275, seq:false, limit:45, counter:5, nextcreate:0});
pointlist.push({mon:group1, x:11, y:17, frq:300, seq:false, limit:45, counter:5, nextcreate:0});
pointlist.push({mon:group1, x:13, y:31, frq:325, seq:false, limit:45, counter:5, nextcreate:0});
pointlist.push({mon:group1, x:22, y:26, frq:350, seq:false, limit:45, counter:5, nextcreate:0});
pointlist.push({mon:group1, x:25, y:9, frq:250, seq:false, limit:45, counter:5, nextcreate:0});
pointlist.push({mon:group1, x:29, y:12, frq:275, seq:false, limit:45, counter:5, nextcreate:0});
pointlist.push({mon:group1, x:29, y:31, frq:300, seq:false, limit:45, counter:5, nextcreate:0});
pointlist.push({mon:group1, x:31, y:79, frq:325, seq:false, limit:45, counter:5, nextcreate:0});
pointlist.push({mon:group1, x:32, y:18, frq:350, seq:false, limit:45, counter:5, nextcreate:0});
pointlist.push({mon:group2, x:6, y:58, frq:250, seq:false, limit:30, counter:75, nextcreate:0});
pointlist.push({mon:group2, x:11, y:42, frq:275, seq:false, limit:30, counter:75, nextcreate:0});
pointlist.push({mon:group2, x:13, y:66, frq:300, seq:false, limit:30, counter:75, nextcreate:0});
pointlist.push({mon:group2, x:25, y:67, frq:250, seq:false, limit:30, counter:75, nextcreate:0});
pointlist.push({mon:group2, x:32, y:42, frq:275, seq:false, limit:30, counter:75, nextcreate:0});
pointlist.push({mon:group3, x:1, y:84, frq:325, seq:false, limit:40, counter:100, nextcreate:0});
pointlist.push({mon:group3, x:6, y:81, frq:350, seq:false, limit:38, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:12, y:85, frq:375, seq:false, limit:40, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:15, y:78, frq:400, seq:false, limit:38, counter:200, nextcreate:0});
pointlist.push({mon:group3, x:22, y:77, frq:325, seq:false, limit:40, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:32, y:74, frq:350, seq:false, limit:38, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:38, y:72, frq:375, seq:false, limit:40, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:7, y:64, frq:400, seq:false, limit:38, counter:200, nextcreate:0});
pointlist.push({mon:group3, x:18, y:67, frq:325, seq:false, limit:40, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:30, y:66, frq:350, seq:false, limit:38, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:13, y:59, frq:375, seq:false, limit:40, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:6, y:43, frq:400, seq:false, limit:38, counter:200, nextcreate:0});
pointlist.push({mon:group3, x:15, y:41, frq:325, seq:false, limit:40, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:30, y:49, frq:350, seq:false, limit:38, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:37, y:48, frq:375, seq:false, limit:40, counter:175, nextcreate:0});
i = 0;
while (i < 3) {
newback = background_layer.addChild(new sce_world3_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 97);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 1);
newback.y = (40 * 85);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 13);
newback.y = (40 * 79);
newback.gotoAndStop(10);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 15);
newback.y = (40 * 79);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 21);
newback.y = (40 * 77);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 26);
newback.y = (40 * 76);
newback.gotoAndStop(10);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 36);
newback.y = (40 * 73);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 16);
newback.y = (40 * 68);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 28);
newback.y = (40 * 67);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 12);
newback.y = (40 * 66);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 5);
newback.y = (40 * 59);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 24);
newback.y = (40 * 50);
newback.gotoAndStop(10);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 26);
newback.y = (40 * 50);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 28);
newback.y = (40 * 50);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 31);
newback.y = (40 * 50);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 30);
newback.y = (40 * 79);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 9);
newback.y = (40 * 45);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 18);
newback.y = (40 * 6);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 23);
newback.y = (40 * 6);
newback.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 7);
newfore.y = (40 * 87);
newfore.gotoAndStop(9);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 11);
newback.y = (40 * 87);
newback.gotoAndStop(10);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 7);
newback.y = (40 * 81);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 31);
newback.y = (40 * 74);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 5);
newback.y = (40 * 65);
newback.gotoAndStop(10);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 20);
newback.y = (40 * 59);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 6);
newback.y = (40 * 47);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 14);
newback.y = (40 * 47);
newback.gotoAndStop(10);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 32);
newback.y = (40 * 45);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 22);
newback.y = (40 * 40);
newback.gotoAndStop(9);
createDoor((40 * 20), (40 * 5));
foreground_layer.addChild(mouse);
};
levelinfo[12] = function (){
group_boss = new Array();
group_boss.push(boss3);
group1 = new Array();
group1.push(multilevelmon["quaker_jr_lv14"]);
group1.push(multilevelmon["quaker_jr_lv15"]);
group1.push(multilevelmon["quaker_jr_lv16"]);
group1.push(multilevelmon["quaker_jr_lv17"]);
group2 = new Array();
group2.push(multilevelmon["healer1_lv15"]);
group2.push(multilevelmon["healer1_lv16"]);
group2.push(multilevelmon["quaker_jr_lv16"]);
group2.push(multilevelmon["quaker_jr_lv17"]);
pointlist.push({mon:group_boss, x:63, y:30, frq:150, seq:false, limit:5, counter:100, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:45, y:20, frq:450, seq:false, limit:6, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:49, y:14, frq:650, seq:false, limit:6, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:42, y:17, frq:850, seq:false, limit:6, counter:100, nextcreate:0});
pointlist.push({mon:group2, x:52, y:28, frq:1000, seq:false, limit:8, counter:250, nextcreate:0});
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 52);
newback.y = (40 * 31);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 51);
newback.y = (40 * 23);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 48);
newback.y = (40 * 19);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 41);
newback.y = (40 * 17);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world3());
newback.x = (40 * 51);
newback.y = (40 * 10);
newback.gotoAndStop(3);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 50);
newfore.y = (40 * 31);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 62);
newfore.y = (40 * 31);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 44);
newfore.y = (40 * 22);
newfore.gotoAndStop(7);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 49);
newfore.y = (40 * 15);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world3());
newfore.x = (40 * 46);
newfore.y = (40 * 9);
newfore.gotoAndStop(9);
foreground_layer.addChild(mouse);
};
levelinfo[13] = function (){
group1 = new Array();
group1.push(multilevelmon["caster2_lv16"]);
group1.push(multilevelmon["caster2_lv17"]);
group2 = new Array();
group2.push(multilevelmon["mine_layer2_lv16"]);
group2.push(multilevelmon["mine_layer2_lv17"]);
group3 = new Array();
group3.push(multilevelmon["soldier3_lv16"]);
group3.push(multilevelmon["soldier3_lv17"]);
group3.push(multilevelmon["soldier3_lv18"]);
group3.push(multilevelmon["mine_layer2_lv16"]);
pointlist.push({mon:group1, x:12, y:7, frq:800, seq:false, limit:55, counter:50, nextcreate:0});
pointlist.push({mon:group1, x:25, y:7, frq:800, seq:false, limit:55, counter:75, nextcreate:0});
pointlist.push({mon:group1, x:37, y:8, frq:800, seq:false, limit:55, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:66, y:3, frq:800, seq:false, limit:55, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:82, y:1, frq:800, seq:false, limit:55, counter:150, nextcreate:0});
pointlist.push({mon:group1, x:105, y:2, frq:800, seq:false, limit:55, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:28, y:16, frq:500, seq:false, limit:45, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:43, y:16, frq:500, seq:false, limit:45, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:60, y:17, frq:500, seq:false, limit:45, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:76, y:14, frq:500, seq:false, limit:45, counter:200, nextcreate:0});
pointlist.push({mon:group2, x:91, y:12, frq:500, seq:false, limit:45, counter:225, nextcreate:0});
pointlist.push({mon:group2, x:102, y:12, frq:500, seq:false, limit:45, counter:250, nextcreate:0});
pointlist.push({mon:group3, x:8, y:13, frq:250, seq:false, limit:38, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:20, y:11, frq:250, seq:false, limit:38, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:51, y:12, frq:250, seq:false, limit:38, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:59, y:9, frq:250, seq:false, limit:38, counter:200, nextcreate:0});
pointlist.push({mon:group3, x:70, y:16, frq:250, seq:false, limit:38, counter:225, nextcreate:0});
pointlist.push({mon:group3, x:85, y:8, frq:250, seq:false, limit:38, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:75, y:8, frq:250, seq:false, limit:38, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:108, y:9, frq:250, seq:false, limit:38, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:97, y:5, frq:250, seq:false, limit:38, counter:200, nextcreate:0});
pointlist.push({mon:group3, x:115, y:6, frq:250, seq:false, limit:38, counter:225, nextcreate:0});
i = 0;
while (i < 8) {
newback = background_layer.addChild(new sce_world4_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 19);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 15);
newback.y = (40 * 17);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 28);
newback.y = (40 * 17);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 101);
newback.y = (40 * 17);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 99);
newback.y = (40 * 14);
newback.gotoAndStop(5);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 14);
newback.y = (40 * 13);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 23);
newback.y = (40 * 13);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 31);
newback.y = (40 * 13);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 36);
newback.y = (40 * 13);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 47);
newback.y = (40 * 13);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 57);
newback.y = (40 * 13);
newback.gotoAndStop(4);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 84);
newback.y = (40 * 12);
newback.gotoAndStop(5);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 67);
newback.y = (40 * 10);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 106);
newback.y = (40 * 10);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 109);
newback.y = (40 * 10);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 71);
newback.y = (40 * 8);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 79);
newback.y = (40 * 8);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 87);
newback.y = (40 * 8);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 114);
newback.y = (40 * 8);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 96);
newback.y = (40 * 6);
newback.gotoAndStop(5);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 5);
newfore.y = (40 * 17);
newfore.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 12);
newfore.y = (40 * 17);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 21);
newfore.y = (40 * 17);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 35);
newfore.y = (40 * 17);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 77);
newfore.y = (40 * 17);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 93);
newfore.y = (40 * 17);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 50);
newfore.y = (40 * 15);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 85);
newfore.y = (40 * 15);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 17);
newfore.y = (40 * 13);
newfore.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 91);
newfore.y = (40 * 12);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 74);
newfore.y = (40 * 8);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 93);
newfore.y = (40 * 8);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 101);
newfore.y = (40 * 6);
newfore.gotoAndStop(9);
createDoor((40 * 118), (40 * 6));
foreground_layer.addChild(mouse);
};
levelinfo[14] = function (){
group1 = new Array();
group1.push(multilevelmon["caster2_lv17"]);
group1.push(multilevelmon["caster2_lv18"]);
group2 = new Array();
group2.push(multilevelmon["mine_layer2_lv17"]);
group2.push(multilevelmon["mine_layer2_lv18"]);
group3 = new Array();
group3.push(multilevelmon["soldier3_lv17"]);
group3.push(multilevelmon["soldier3_lv18"]);
group3.push(multilevelmon["soldier3_lv19"]);
group3.push(multilevelmon["mine_layer2_lv17"]);
pointlist.push({mon:group1, x:10, y:62, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:18, y:41, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:22, y:32, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:36, y:53, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:38, y:62, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:62, y:12, frq:50, seq:false, limit:50, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:10, y:62, frq:400, seq:false, limit:46, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:18, y:41, frq:400, seq:false, limit:46, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:22, y:32, frq:400, seq:false, limit:46, counter:150, nextcreate:0});
pointlist.push({mon:group1, x:36, y:53, frq:400, seq:false, limit:46, counter:175, nextcreate:0});
pointlist.push({mon:group1, x:38, y:62, frq:400, seq:false, limit:46, counter:100, nextcreate:0});
pointlist.push({mon:group1, x:62, y:12, frq:400, seq:false, limit:46, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:33, y:62, frq:300, seq:false, limit:40, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:44, y:62, frq:300, seq:false, limit:40, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:49, y:48, frq:300, seq:false, limit:40, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:58, y:50, frq:300, seq:false, limit:40, counter:200, nextcreate:0});
pointlist.push({mon:group2, x:62, y:24, frq:300, seq:false, limit:40, counter:225, nextcreate:0});
pointlist.push({mon:group3, x:25, y:63, frq:250, seq:false, limit:35, counter:100, nextcreate:0});
pointlist.push({mon:group3, x:31, y:42, frq:250, seq:false, limit:35, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:43, y:41, frq:250, seq:false, limit:35, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:34, y:30, frq:250, seq:false, limit:35, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:27, y:24, frq:250, seq:false, limit:35, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:38, y:22, frq:250, seq:false, limit:35, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:46, y:22, frq:250, seq:false, limit:35, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:35, y:4, frq:250, seq:false, limit:35, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:40, y:5, frq:250, seq:false, limit:35, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:46, y:6, frq:250, seq:false, limit:35, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:54, y:4, frq:250, seq:false, limit:35, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:57, y:7, frq:250, seq:false, limit:35, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:40, y:57, frq:250, seq:false, limit:35, counter:175, nextcreate:0});
i = 0;
while (i < 5) {
newback = background_layer.addChild(new sce_world4_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 74);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 9);
newback.y = (40 * 66);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 12);
newback.y = (40 * 66);
newback.gotoAndStop(4);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 23);
newback.y = (40 * 64);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 25);
newback.y = (40 * 64);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 32);
newback.y = (40 * 62);
newback.gotoAndStop(10);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 36);
newback.y = (40 * 62);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 43);
newback.y = (40 * 62);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 37);
newback.y = (40 * 58);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 35);
newback.y = (40 * 54);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 59);
newback.y = (40 * 54);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 24);
newback.y = (40 * 44);
newback.gotoAndStop(10);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 34);
newback.y = (40 * 44);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 37);
newback.y = (40 * 44);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 39);
newback.y = (40 * 44);
newback.gotoAndStop(4);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 43);
newback.y = (40 * 44);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 27);
newback.y = (40 * 26);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 30);
newback.y = (40 * 26);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 38);
newback.y = (40 * 26);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 46);
newback.y = (40 * 26);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 57);
newback.y = (40 * 24);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 45);
newback.y = (40 * 8);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 51);
newback.y = (40 * 8);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 35);
newback.y = (40 * 6);
newback.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 6);
newfore.y = (40 * 72);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 11);
newfore.y = (40 * 70);
newfore.gotoAndStop(11);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 8);
newfore.y = (40 * 68);
newfore.gotoAndStop(11);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 18);
newfore.y = (40 * 68);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 33);
newfore.y = (40 * 68);
newfore.gotoAndStop(6);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 22);
newfore.y = (40 * 66);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 49);
newfore.y = (40 * 61);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 53);
newfore.y = (40 * 58);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 48);
newfore.y = (40 * 56);
newfore.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 56);
newfore.y = (40 * 56);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 26);
newfore.y = (40 * 54);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 41);
newfore.y = (40 * 52);
newfore.gotoAndStop(6);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 37);
newfore.y = (40 * 48);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 42);
newfore.y = (40 * 46);
newfore.gotoAndStop(7);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 15);
newfore.y = (40 * 44);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 29);
newfore.y = (40 * 44);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 18);
newfore.y = (40 * 36);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 27);
newfore.y = (40 * 32);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 25);
newfore.y = (40 * 28);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 34);
newfore.y = (40 * 26);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 43);
newfore.y = (40 * 26);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 54);
newfore.y = (40 * 24);
newfore.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 59);
newfore.y = (40 * 20);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 55);
newfore.y = (40 * 14);
newfore.gotoAndStop(10);
createDoor((40 * 21), (40 * 1));
foreground_layer.addChild(mouse);
};
levelinfo[15] = function (){
group1 = new Array();
group1.push(multilevelmon["caster2_lv18"]);
group1.push(multilevelmon["caster2_lv19"]);
group2 = new Array();
group2.push(multilevelmon["mine_layer2_lv18"]);
group2.push(multilevelmon["mine_layer2_lv19"]);
group3 = new Array();
group3.push(multilevelmon["soldier3_lv18"]);
group3.push(multilevelmon["soldier3_lv19"]);
group3.push(multilevelmon["soldier3_lv20"]);
group3.push(multilevelmon["mine_layer2_lv18"]);
pointlist.push({mon:group1, x:129, y:6, frq:750, seq:false, limit:50, counter:100, nextcreate:0});
pointlist.push({mon:group2, x:19, y:4, frq:350, seq:false, limit:55, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:30, y:10, frq:350, seq:false, limit:55, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:40, y:6, frq:350, seq:false, limit:55, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:69, y:8, frq:350, seq:false, limit:55, counter:200, nextcreate:0});
pointlist.push({mon:group2, x:77, y:9, frq:350, seq:false, limit:55, counter:225, nextcreate:0});
pointlist.push({mon:group2, x:97, y:2, frq:350, seq:false, limit:55, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:107, y:13, frq:350, seq:false, limit:55, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:117, y:8, frq:350, seq:false, limit:55, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:120, y:16, frq:350, seq:false, limit:55, counter:200, nextcreate:0});
pointlist.push({mon:group3, x:18, y:7, frq:250, seq:false, limit:50, counter:100, nextcreate:0});
pointlist.push({mon:group3, x:43, y:9, frq:250, seq:false, limit:50, counter:125, nextcreate:0});
pointlist.push({mon:group3, x:54, y:16, frq:250, seq:false, limit:50, counter:150, nextcreate:0});
pointlist.push({mon:group3, x:59, y:16, frq:250, seq:false, limit:50, counter:175, nextcreate:0});
pointlist.push({mon:group3, x:81, y:15, frq:250, seq:false, limit:50, counter:200, nextcreate:0});
i = 0;
while (i < 9) {
newback = background_layer.addChild(new sce_world4_bg());
newback.x = ((40 * i) * 16);
newback.y = (40 * 60);
newback.gotoAndStop(1);
i++;
};
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 55);
newback.y = (40 * 18);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 57);
newback.y = (40 * 18);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 58);
newback.y = (40 * 18);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 79);
newback.y = (40 * 16);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 80);
newback.y = (40 * 16);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 88);
newback.y = (40 * 15);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 89);
newback.y = (40 * 15);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 6);
newback.y = (40 * 10);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 7);
newback.y = (40 * 10);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 8);
newback.y = (40 * 10);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 17);
newback.y = (40 * 10);
newback.gotoAndStop(4);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 120);
newback.y = (40 * 10);
newback.gotoAndStop(7);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 106);
newfore.y = (40 * 22);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 31);
newfore.y = (40 * 18);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 53);
newfore.y = (40 * 18);
newfore.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 118);
newfore.y = (40 * 16);
newfore.gotoAndStop(11);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 16);
newfore.y = (40 * 14);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 66);
newfore.y = (40 * 13);
newfore.gotoAndStop(8);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 94);
newfore.y = (40 * 9);
newfore.gotoAndStop(11);
createDoor((40 * 134), (40 * 13));
foreground_layer.addChild(mouse);
};
levelinfo[16] = function (){
group_boss = new Array();
group_boss.push(boss4);
group1 = new Array();
group1.push(multilevelmon["soldier3_lv18"]);
group1.push(multilevelmon["soldier3_lv19"]);
group1.push(multilevelmon["soldier3_lv20"]);
group2 = new Array();
group2.push(multilevelmon["soldier3_lv18"]);
group2.push(multilevelmon["soldier3_lv19"]);
group2.push(multilevelmon["soldier3_lv20"]);
group2.push(multilevelmon["soldier3_lv18"]);
group2.push(multilevelmon["soldier3_lv19"]);
group2.push(multilevelmon["soldier3_lv20"]);
group2.push(multilevelmon["healer2_lv10"]);
pointlist.push({mon:group_boss, x:45, y:38, frq:50, seq:false, limit:5, counter:25, nextcreate:0, uni:true});
pointlist.push({mon:group1, x:7, y:37, frq:725, seq:false, limit:30, counter:125, nextcreate:0});
pointlist.push({mon:group1, x:11, y:28, frq:750, seq:false, limit:30, counter:150, nextcreate:0});
pointlist.push({mon:group1, x:15, y:20, frq:775, seq:false, limit:30, counter:175, nextcreate:0});
pointlist.push({mon:group1, x:18, y:12, frq:800, seq:false, limit:30, counter:200, nextcreate:0});
pointlist.push({mon:group1, x:20, y:40, frq:725, seq:false, limit:30, counter:225, nextcreate:0});
pointlist.push({mon:group1, x:29, y:49, frq:750, seq:false, limit:30, counter:250, nextcreate:0});
pointlist.push({mon:group1, x:34, y:8, frq:775, seq:false, limit:30, counter:275, nextcreate:0});
pointlist.push({mon:group1, x:36, y:2, frq:800, seq:false, limit:30, counter:300, nextcreate:0});
pointlist.push({mon:group1, x:43, y:55, frq:725, seq:false, limit:30, counter:325, nextcreate:0});
pointlist.push({mon:group1, x:53, y:51, frq:750, seq:false, limit:30, counter:350, nextcreate:0});
pointlist.push({mon:group1, x:57, y:4, frq:775, seq:false, limit:30, counter:375, nextcreate:0});
pointlist.push({mon:group1, x:61, y:22, frq:800, seq:false, limit:30, counter:400, nextcreate:0});
pointlist.push({mon:group1, x:64, y:49, frq:725, seq:false, limit:30, counter:425, nextcreate:0});
pointlist.push({mon:group1, x:69, y:35, frq:750, seq:false, limit:30, counter:450, nextcreate:0});
pointlist.push({mon:group1, x:71, y:10, frq:775, seq:false, limit:30, counter:475, nextcreate:0});
pointlist.push({mon:group1, x:75, y:31, frq:800, seq:false, limit:30, counter:500, nextcreate:0});
pointlist.push({mon:group2, x:7, y:37, frq:1300, seq:false, limit:31, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:11, y:28, frq:1325, seq:false, limit:31, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:15, y:20, frq:1350, seq:false, limit:31, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:18, y:12, frq:1375, seq:false, limit:31, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:20, y:40, frq:1400, seq:false, limit:31, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:29, y:49, frq:1300, seq:false, limit:31, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:34, y:8, frq:1325, seq:false, limit:31, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:36, y:2, frq:1350, seq:false, limit:31, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:43, y:55, frq:1375, seq:false, limit:31, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:53, y:51, frq:1400, seq:false, limit:31, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:57, y:4, frq:1325, seq:false, limit:31, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:61, y:22, frq:1350, seq:false, limit:31, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:64, y:49, frq:1375, seq:false, limit:31, counter:125, nextcreate:0});
pointlist.push({mon:group2, x:69, y:35, frq:1400, seq:false, limit:31, counter:150, nextcreate:0});
pointlist.push({mon:group2, x:71, y:10, frq:1300, seq:false, limit:31, counter:175, nextcreate:0});
pointlist.push({mon:group2, x:75, y:31, frq:1325, seq:false, limit:31, counter:125, nextcreate:0});
createDoor((40 * 9), (9 * 40));
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 41);
newback.y = (40 * 57);
newback.gotoAndStop(6);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 59);
newback.y = (40 * 55);
newback.gotoAndStop(4);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 62);
newback.y = (40 * 52);
newback.gotoAndStop(8);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 33);
newback.y = (40 * 54);
newback.gotoAndStop(5);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 21);
newback.y = (40 * 49);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 28);
newback.y = (40 * 49);
newback.gotoAndStop(11);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 74);
newback.y = (40 * 47);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 6);
newback.y = (40 * 38);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 67);
newback.y = (40 * 38);
newback.gotoAndStop(1);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 10);
newback.y = (40 * 30);
newback.gotoAndStop(2);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 18);
newback.y = (40 * 30);
newback.gotoAndStop(7);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 57);
newback.y = (40 * 23);
newback.gotoAndStop(9);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 63);
newback.y = (40 * 23);
newback.gotoAndStop(3);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 14);
newback.y = (40 * 21);
newback.gotoAndStop(4);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 70);
newback.y = (40 * 13);
newback.gotoAndStop(5);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 54);
newback.y = (40 * 5);
newback.gotoAndStop(4);
newback = background_layer.addChild(new sce_world4());
newback.x = (40 * 32);
newback.y = (40 * 3);
newback.gotoAndStop(3);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 50);
newfore.y = (40 * 57);
newfore.gotoAndStop(11);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 54);
newfore.y = (40 * 55);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 33);
newfore.y = (40 * 54);
newfore.gotoAndStop(11);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 26);
newfore.y = (40 * 51);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 72);
newfore.y = (40 * 50);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 15);
newfore.y = (40 * 43);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 22);
newfore.y = (40 * 43);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 72);
newfore.y = (40 * 32);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 20);
newfore.y = (40 * 16);
newfore.gotoAndStop(11);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 31);
newfore.y = (40 * 16);
newfore.gotoAndStop(9);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 68);
newfore.y = (40 * 15);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 37);
newfore.y = (40 * 10);
newfore.gotoAndStop(11);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 50);
newfore.y = (40 * 5);
newfore.gotoAndStop(10);
newfore = foreground_layer.addChild(new sce_world4());
newfore.x = (40 * 38);
newfore.y = (40 * 3);
newfore.gotoAndStop(11);
foreground_layer.addChild(mouse);
};
setWalk = function (_arg1, _arg2){
if (_arg1.gravityfunction != objectGravity){
trace("must use only subset of standart[objectGravity]");
trace("setGravity(????) First");
return;
};
_arg1.dat = _arg2;
_arg1.walkfunction = objectWalk;
};
toggleDrop = function (_arg1, _arg2){
_arg1.undown = _arg2;
};
toggleJump = function (_arg1, _arg2, _arg3, _arg4){
_arg1.jumpfrq = _arg3;
_arg1.jump = _arg2;
_arg1.freewalk = _arg4;
};
objectWalk = function (){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
if (this.dead != null){
return;
};
if (this.unmove > 0){
this.unmove--;
return;
};
this.walkcount = ((this.walkcount + 1) % 20000);
_local1 = this.speed;
_local2 = this.jump;
if (this.stayground){
_local1 = this.speed;
};
if (this.downspeed < 0){
_local4 = this.dat.getPixel(int((this.x / 40)), (int((this.y / 40)) - 2));
if (_local4 == 0xFF){
this.downspeed = 5;
this.jumpdelay = 20;
};
};
if (this.jumpdelay != null){
if (this.jumpdelay > 0){
this.jumpdelay--;
} else {
delete this.jumpdelay;
};
};
if ((((this.knock > 0)) && (!(this.obstruct)))){
this.knock--;
_local1 = this.knock;
};
if (((((_local2) && ((this.walkcount >= this.jumpfrq)))) && ((this.jumpdelay == null)))){
if ((((this.downspeed == 0)) && (this.stayground))){
this.walkcount = 0;
this.downspeed = -(this.jumppow);
};
};
if (!this.undown){
if (this.dat.getPixel(int(((this.x + (_local1 * this.dir)) / 40)), int(((this.baseline + 1) / 40))) == 0){
if (this.dat.getPixel(int(((this.x + (_local1 * this.dir)) / 40)), int(((this.baseline - 1) / 40))) == 0){
this.dir = -(this.dir);
if (this.dir != 0){
this.scaleX = -(this.dir);
};
return;
};
};
};
_local3 = this.dat.getPixel(int(((this.x + (_local1 * this.dir)) / 40)), int((((this.y + this.downspeed) - 1) / 40)));
if (((this.freewalk) && (false))){
this.x = (this.x + (_local1 * this.dir));
} else {
if ((((_local3 == 0)) || ((_local3 == 0xFF00)))){
this.x = (this.x + (_local1 * this.dir));
} else {
if (_local3 == 0xFF){
if (this.downspeed != 0){
this.jumpdelay = 20;
};
};
};
};
if (this.x <= 0){
this.x = 5;
this.dir = 1;
this.scaleX = -(this.dir);
};
if (this.x > ((this.dat.width - 1) * 40)){
this.x = (((this.dat.width - 1) * 40) - 5);
this.dir = -1;
this.scaleX = -(this.dir);
};
};
setGravity = function (_arg1, _arg2){
_arg1.dat = _arg2;
_arg1.gravityfunction = objectGravity;
};
objectGravity = function (){
if (this.downspeed < 20){
this.downspeed = (this.downspeed + this.gravity);
};
if (this.downspeed < 0){
this.y = (this.y + this.downspeed);
this.stayground = false;
} else {
if ((((this.dat.getPixel(int((this.x / 40)), int(((this.y + this.downspeed) / 40))) == 0)) && (((this.dat.height * 40) > this.y)))){
this.y = (this.y + this.downspeed);
this.stayground = false;
} else {
if (int(((this.y + this.downspeed) / 40)) != int(((this.y - 1) / 40))){
this.y = (int(((this.y + this.downspeed) / 40)) * 40);
this.stayground = true;
this.baseline = this.y;
this.downspeed = 0;
} else {
this.y = (this.y + this.downspeed);
this.stayground = false;
};
};
};
};
downspeed = 0;
ground = false;
gravity = 4;
moveup = true;
movedown = true;
moveleft = true;
moveleftex = true;
moveright = true;
moverightex = true;
jumpbase = 0;
freeblocky = -1;
speedx = 0;
mapcolor = -1;
knockback = 0;
dir = 1;
unwalk = 0;
addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheel);
this.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
this.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
key = new Array();
lastkey = null;
dash = 0;
dashkey = 0;
lastpress = 0;
this.addEventListener("keyUp", onKeyUp);
this.addEventListener("keyDown", onKeyDown);
active = true;
fc = 0;
fdeactive = function (_arg1){
var _local2:*;
active = false;
stage.transform.colorTransform = new ColorTransform(1, 0, 0);
for (_local2 in key) {
delete key[_local2];
};
};
factive = function (_arg1){
var _local2:*;
active = true;
stage.transform.colorTransform = new ColorTransform(1, 1, 1);
for (_local2 in key) {
delete key[_local2];
};
};
stage.addEventListener(Event.DEACTIVATE, fdeactive);
stage.addEventListener(Event.ACTIVATE, factive);
addEventListener(Event.ACTIVATE, factive);
addEventListener(Event.DEACTIVATE, fdeactive);
if (MovieClip(game.parent).con){
so = SharedObject.getLocal("r_arc");
if (so.data.dplayer != null){
levelUp();
playGame(0);
pasteObject(dplayer, so.data.dplayer);
for (f in so.data) {
if (f != "dplayer"){
this[f] = so.data[f];
};
};
trace(dplayer.processAgility);
setLoop(pauseGame);
deleteSub(game);
Mouse.show();
MovieClip(parent).shop.x = 0;
MovieClip(parent).shop.y = 0;
MovieClip(parent).shop.visible = true;
} else {
MovieClip(parent).shop.visible = false;
levelUp();
setLoop(playGame);
};
} else {
MovieClip(parent).shop.visible = false;
levelUp();
setLoop(playGame);
};
dplayer.mag = bow[dplayer.bow].magazine;
stop();
}
public function deleteSub(_arg1){
var _local2:*;
_arg1.stop();
_local2 = (_arg1.numChildren - 1);
while (_local2 >= 0) {
if (_arg1.getChildAt(_local2) != null){
if ((_arg1.getChildAt(_local2) is MovieClip)){
if (_arg1.getChildAt(_local2).name != "bgcolor"){
delete ??getglobalscope
[_arg1.removeChild(_arg1.getChildAt(_local2))];
};
};
};
_local2--;
};
}
public function onKeyDown(_arg1){
if (dplayer.die != null){
if (dplayer.die){
return;
};
};
if (dplayer.currentstate == "hurt"){
return;
};
if (key[_arg1.keyCode] != null){
return;
};
if (knockback != 0){
lastkey = 0;
return;
};
if (((((((lastpress + 220) > getTimer())) && ((dash == 0)))) && (ground))){
if ((((_arg1.keyCode == lastkey)) && (!(key[_arg1.keyCode])))){
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
dash = 5;
dashkey = 37;
delete key[_arg1.keyCode];
};
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
dash = 5;
dashkey = 39;
delete key[_arg1.keyCode];
};
} else {
dash = 0;
dashkey = 0;
delete key[_arg1.keyCode];
};
};
key[_arg1.keyCode] = true;
lastpress = getTimer();
lastkey = _arg1.keyCode;
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
dplayer.dir = -1;
dplayer.basicstate = "walk";
if (((((!((dplayer.currentstate == "jump"))) && (!((dplayer.currentstate == "fire"))))) && ((knockback == 0)))){
splayer.p.gotoAndPlay("walk");
};
};
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
dplayer.dir = 1;
dplayer.basicstate = "walk";
if (((((!((dplayer.currentstate == "jump"))) && (!((dplayer.currentstate == "fire"))))) && ((knockback == 0)))){
splayer.p.gotoAndPlay("walk");
};
};
if ((((_arg1.keyCode == 87)) || ((_arg1.keyCode == 38)))){
if (((!((dplayer.currentstate == "fire"))) && ((knockback == 0)))){
dplayer.currentstate = "jump";
splayer.p.gotoAndStop("jump");
};
};
if (_arg1.keyCode == 49){
dplayer.arrowactive = 0;
};
if (_arg1.keyCode == 50){
dplayer.arrowactive = 1;
};
if (_arg1.keyCode == 51){
dplayer.arrowactive = 2;
};
if (_arg1.keyCode == 52){
dplayer.arrowactive = 3;
};
commoncool = 0;
}
public function onMouseWheel(_arg1){
if (_arg1.delta > 0){
dplayer.arrowactive++;
if (dplayer.arrowactive > 3){
dplayer.arrowactive = 0;
};
} else {
dplayer.arrowactive--;
if (dplayer.arrowactive < 0){
dplayer.arrowactive = 3;
};
};
}
public function levelUp(){
var transform:*;
var k:*;
SoundMixer.stopAll();
transform = SoundMixer.soundTransform;
transform.volume = 1;
SoundMixer.soundTransform = transform;
gamelevel++;
if (levelsound[gamelevel] != null){
levelsound[gamelevel].play(0, 9999999);
};
for (k in key) {
delete key[k];
};
setLoop(playGame);
MovieClip(game.parent).gameover.visible = false;
MovieClip(game.parent).stageclear.visible = false;
clearcount = -1;
overcount = -1;
world = addGroup(this, 0, 0);
background_layer = addGroup(world, 0, 0);
map_layer = addGroup(world, 0, 0);
monster_layer = addGroup(world, 0, 0);
player_layer = addGroup(world, 0, 0);
item_layer = addGroup(world, 0, 0);
gfx_layer = addGroup(world, 0, 0);
playerbullet_layer = addGroup(world, 0, 0);
foreground_layer = addGroup(world, 0, 0);
mouse = new mousecursor();
Mouse.hide();
mouse.process = function (){
var _local1:*;
_local1 = new Point(mouseX, mouseY);
_local1 = foreground_layer.globalToLocal(_local1);
mouse.x = _local1.x;
mouse.y = _local1.y;
};
MapAPI.loadMap(("map" + gamelevel), ("mapdat" + gamelevel), ("block" + gamelevel));
addPlayer(player_layer, startpoint[gamelevel].x, startpoint[gamelevel].y);
world.x = (-(player.x) + 320);
world.y = (-(player.y) + 240);
if (world.x > 0){
world.x = 0;
};
if (world.y > 0){
world.y = 0;
};
if ((world.x - 640) < (-(MapAPI.dat.width) * 40)){
world.x = -(((MapAPI.dat.width * 40) - 640));
};
if ((world.y - 480) < (-(MapAPI.dat.height) * 40)){
world.y = -(((MapAPI.dat.height * 40) - 480));
};
world.smoothy = world.y;
MapAPI.loadIndex("colorindex");
MapAPI.drawAll(map_layer, world.x, world.y);
dplayer.stamina = dplayer.getStaminaMax();
dplayer.hp = dplayer.getHPMax();
dplayer.stamina = dplayer.getStaminaMax();
pointlist = new Array();
var _local2 = levelinfo;
_local2[gamelevel]();
resetMoveOfPlayer();
}
public function playGame(_arg1){
var _local2:*;
if (!active){
return;
};
stage.focus = game;
if (dash > 0){
av = new gfx_dash();
av.x = player.x;
av.y = player.y;
gfx_layer.addChild(av);
_local2 = 3;
while (_local2 > 0) {
moveProcess();
_local2--;
};
dash--;
} else {
moveProcess();
};
monsterAdder();
processGroup(background_layer);
processGroup(foreground_layer);
processGroup(monster_layer);
processGroup(playerbullet_layer);
processGroup(gfx_layer);
processGroup(item_layer);
dplayer.processAgility();
splayer.x = player.x;
splayer.y = player.y;
splayer.scaleX = -(dplayer.dir);
skillprocess();
MovieClip(game.parent).bow.x = MovieClip(game.parent)[("arrow" + dplayer.arrowactive)].x;
MovieClip(game.parent).bow.y = MovieClip(game.parent)[("arrow" + dplayer.arrowactive)].y;
MovieClip(game.parent).ac0.text = dplayer.arrowc0;
MovieClip(game.parent).ac1.text = dplayer.arrowc1;
MovieClip(game.parent).ac2.text = dplayer.arrowc2;
MovieClip(game.parent).ac3.text = dplayer.arrowc3;
i = 0;
while (i < 4) {
if (dplayer[("arrowcool" + i)] > 0){
var _local3 = dplayer;
var _local4 = ("arrowcool" + i);
var _local5 = (_local3[_local4] - 1);
_local3[_local4] = _local5;
};
i++;
};
MovieClip(game.parent).aco0.gotoAndStop(int((((arrowinfo[0][dplayer.arrowlv0].cool - dplayer.arrowcool0) * 100) / arrowinfo[0][dplayer.arrowlv0].cool)));
MovieClip(game.parent).aco1.gotoAndStop(int((((arrowinfo[1][dplayer.arrowlv1].cool - dplayer.arrowcool1) * 100) / arrowinfo[1][dplayer.arrowlv1].cool)));
MovieClip(game.parent).aco2.gotoAndStop(int((((arrowinfo[2][dplayer.arrowlv2].cool - dplayer.arrowcool2) * 100) / arrowinfo[2][dplayer.arrowlv2].cool)));
MovieClip(game.parent).aco3.gotoAndStop(int((((arrowinfo[3][dplayer.arrowlv3].cool - dplayer.arrowcool3) * 100) / arrowinfo[3][dplayer.arrowlv3].cool)));
if (dplayer.bowdelay > 0){
dplayer.bowdelay--;
};
MovieClip(game.parent).bowdelay.gotoAndStop(int((((bow[dplayer.bow].attspd - dplayer.bowdelay) * 100) / bow[dplayer.bow].attspd)));
splayer.reloadgage.stop();
splayer.reloadgage.visible = false;
if (dplayer.addarrow){
if (dplayer.reloadtime > 0){
dplayer.reloadtime--;
MovieClip(game.parent).bowdelay.alpha = 0.2;
MovieClip(game.parent).bowreload.alpha = 0.2;
splayer.reloadgage.visible = true;
splayer.reloadgage.gotoAndStop(int((((int((bow[dplayer.bow].redelay * dplayer.delayamp)) - dplayer.reloadtime) * 100) / int((bow[dplayer.bow].redelay * dplayer.delayamp)))));
MovieClip(game.parent).bowreload.gotoAndStop(int((((int((bow[dplayer.bow].redelay * dplayer.delayamp)) - dplayer.reloadtime) * 100) / int((bow[dplayer.bow].redelay * dplayer.delayamp)))));
} else {
MovieClip(game.parent).bowdelay.alpha = 1;
MovieClip(game.parent).bowreload.alpha = 1;
dplayer.addarrow = false;
dplayer.mag = bow[dplayer.bow].magazine;
};
mouse.gotoAndStop(2);
} else {
MovieClip(game.parent).bowreload.gotoAndStop(int(((dplayer.mag * 100) / bow[dplayer.bow].magazine)));
mouse.gotoAndStop(1);
};
i = 0;
while (i < 4) {
if ((((((((((bow[dplayer.bow].ext & arrowinfo[i][dplayer[("arrowlv" + i)]].ext)) && (!(dplayer.addarrow)))) && ((dplayer.mag >= arrowinfo[i][dplayer[("arrowlv" + i)]].used)))) && ((dplayer[("arrowcool" + i)] == 0)))) && ((dplayer[("arrowc" + i)] > 0)))){
MovieClip(game.parent)[("aco" + i)].alpha = 1;
MovieClip(game.parent)[("arrow" + i)].alpha = 1;
MovieClip(game.parent)[("ac" + i)].textColor = 0xFFFFFF;
} else {
MovieClip(game.parent)[("aco" + i)].alpha = 0.25;
MovieClip(game.parent)[("arrow" + i)].alpha = 0.25;
MovieClip(game.parent)[("ac" + i)].textColor = 0;
};
i++;
};
splayer.p.spr_bow.gotoAndStop((dplayer.bow + 1));
MovieClip(game.parent).scoreInGame.text = MovieClip(root).score;
MovieClip(game.parent).money.text = dplayer.money;
MovieClip(game.parent).gage_hp.gotoAndStop((int(((99 * dplayer.hp) / dplayer.getHPMax())) + 1));
MovieClip(game.parent).gage_exp.gotoAndStop((int(((99 * dplayer.level_exp) / exp[dplayer.level_player])) + 1));
fc++;
if ((fc % 25) == 0){
fc = 0;
if (dplayer.stamina > 0){
dplayer.stamina--;
};
};
MovieClip(game.parent).gage_sta.gotoAndStop((int(((99 * dplayer.stamina) / dplayer.getStaminaMax())) + 1));
if (dplayer.unhitcool > 0){
splayer.transform.colorTransform = new ColorTransform(0.5, 0.5, (Math.random() + 1));
dplayer.unhitcool--;
} else {
splayer.transform.colorTransform = new ColorTransform(1, 1, 1);
};
if (quake_game > 0){
quake_game--;
game.y = ((Math.random() * quake_game) - (quake_game / 2));
} else {
game.y = 0;
};
MovieClip(game.parent).plevel.text = ("" + dplayer.level_player);
MovieClip(game.parent).mag.text = dplayer.mag;
MovieClip(game.parent).magmax.text = bow[dplayer.bow].magazine;
bgcolor.gotoAndStop(gamelevel);
waitlevelClear();
waitlevelOver();
}
public function moneyDropRate(){
return (Math.round((1 + int(((Math.random() * moneyrate[gamelevel]) + (dplayer.luk / 2))))));
}
public function processGroup(_arg1){
var _local2:*;
var _local3:*;
_local2 = (_arg1.numChildren - 1);
while (_local2 >= 0) {
_local3 = _arg1.getChildAt(_local2);
if (_local3.gravityfunction != null){
_local3.gravityfunction();
};
if (_local3.walkfunction != null){
_local3.walkfunction();
};
if (_local3.AI != null){
_local3.AI();
};
if (_local3.mot != null){
_local3.mot();
};
if (_local3.process != null){
_local3.process();
};
_local2--;
};
}
public function monsterAdder(){
var _local1:*;
var _local2:*;
var _local3:*;
for (_local1 in pointlist) {
if (pointlist[_local1].enable == null){
pointlist[_local1].counter++;
if (pointlist[_local1].limit < monster_layer.numChildren){
pointlist[_local1].counter = 0;
} else {
if ((pointlist[_local1].counter + 75) == pointlist[_local1].frq){
_local2 = new warpgate();
_local2.x = (pointlist[_local1].x * 40);
_local2.y = (pointlist[_local1].y * 40);
gfx_layer.addChild(_local2);
} else {
if (pointlist[_local1].counter >= pointlist[_local1].frq){
pointlist[_local1].counter = 0;
_local3 = createNormalWithMapGravaty(pointlist[_local1].mon[pointlist[_local1].nextcreate], MapAPI.dat);
_local3.x = (pointlist[_local1].x * 40);
_local3.y = (pointlist[_local1].y * 40);
_local3.walkcount = int((Math.random() * 50));
_local3.gotoAndPlay("walk");
if (_local3.mname != null){
_local3.mname.text = pointlist[_local1].mon[pointlist[_local1].nextcreate].monname;
};
monster_layer.addChild(_local3);
if (pointlist[_local1].uni){
pointlist[_local1].enable = false;
};
if (pointlist[_local1].seq){
if (pointlist[_local1].nextcreate < (pointlist[_local1].mon.length - 1)){
pointlist[_local1].nextcreate++;
} else {
pointlist[_local1].nextcreate = 0;
};
} else {
pointlist[_local1].nextcreate = int((Math.random() * pointlist[_local1].mon.length));
};
};
};
};
};
};
}
public function moveProcess(){
if (!splayer.visible){
return;
};
if (dplayer.die != null){
if (dplayer.die){
return;
};
};
if (unwalk > 0){
if (unwalk == 1){
splayer.p.gotoAndPlay(dplayer.basicstate);
dplayer.currentstate = dplayer.basicstate;
};
unwalk--;
};
if (downspeed <= 0){
speedx = dplayer.speed;
} else {
if (speedx > 0){
};
};
if (knockback > 0){
speedx = (knockback * 2);
knockback--;
if (knockback == 1){
splayer.p.gotoAndPlay(dplayer.basicstate);
dplayer.currentstate = dplayer.basicstate;
} else {
if (knockback > 1){
dplayer.currentstate = "hurt";
splayer.p.gotoAndPlay("hurt");
};
};
} else {
dir = 0;
};
if ((((((((((unwalk == 0)) || (!(ground)))) || ((knockback > 0)))) && (!((dir == 1))))) && (((((((!((key[65] == null))) || (!((key[37] == null))))) || ((((dash > 0)) && ((dashkey == 37)))))) || ((((((knockback > 0)) && ((dir == -1)))) && ((player.x > 0)))))))){
if ((((knockback == 0)) && (!((dplayer.currentstate == "fire"))))){
dplayer.dir = -1;
};
moveleft = true;
moveleftex = true;
if ((((MapAPI.dat.getPixel(int(((player.x - speedx) / 40)), int((((player.y + downspeed) - 10) / 40))) == 0xFFFF00)) && (ground))){
moveleft = false;
moveleftex = false;
};
mapcolor = MapAPI.dat.getPixel(int(((player.x - speedx) / 40)), int((((player.y + downspeed) - 1) / 40)));
if (((((!((mapcolor == 0xFFFF00))) && (!((mapcolor == 0xFF))))) || (((!(ground)) && (!((mapcolor == 0xFF))))))){
} else {
moveleft = false;
};
if (moveleft){
player.x = (player.x - speedx);
};
if (!moveleftex){
player.x = (int((((player.x - speedx) / 40) + 1)) * 40);
};
if ((((player.x > 320)) && ((player.x < ((MapAPI.dat.width * 40) - 320))))){
world.x = (-(player.x) + 320);
MapAPI.moveRightMap(map_layer, world.x, world.y);
};
};
if ((((((((((unwalk == 0)) || (!(ground)))) || ((knockback > 0)))) && (!((dir == -1))))) && (((((((!((key[68] == null))) || (!((key[39] == null))))) || ((((dash > 0)) && ((dashkey == 39)))))) || ((((((knockback > 0)) && ((dir == 1)))) && ((player.x < ((MapAPI.dat.width * 40) - player.width))))))))){
if ((((knockback == 0)) && (!((dplayer.currentstate == "fire"))))){
dplayer.dir = 1;
};
moveright = true;
moverightex = true;
if ((((MapAPI.dat.getPixel(int(((player.x + speedx) / 40)), int((((player.y + downspeed) - 1) / 40))) == 0xFF0000)) && (ground))){
moveright = false;
moverightex = false;
};
mapcolor = MapAPI.dat.getPixel(int(((player.x + speedx) / 40)), int((((player.y + downspeed) - 1) / 40)));
if (((((!((mapcolor == 0xFF0000))) && (!((mapcolor == 0xFF))))) || (((!(ground)) && (!((mapcolor == 0xFF))))))){
} else {
moveright = false;
};
if (moveright){
player.x = (player.x + speedx);
};
if (!moverightex){
player.x = ((int(((player.x / 40) + 1)) * 40) - 1);
};
if ((((player.x < ((MapAPI.dat.width * 40) - 320))) && ((player.x > 320)))){
world.x = (-(player.x) + 320);
MapAPI.moveLeftMap(map_layer, world.x, world.y);
};
};
if (((((!((key[87] == null))) || (!((key[38] == null))))) && ((dash == 0)))){
if (ground == true){
downspeed = (downspeed - (dplayer.jump * gravity));
ground = false;
};
};
if (key[40] != null){
};
if ((((downspeed < 20)) && ((dash == 0)))){
downspeed = (downspeed + gravity);
};
if (downspeed < 0){
if (((!((dplayer.currentstate == "fire"))) && ((knockback == 0)))){
splayer.p.gotoAndStop("jump");
};
moveup = true;
if (MapAPI.dat.getPixel(int((player.x / 40)), int((((player.y + downspeed) - player.height) / 40))) != 0xFF){
} else {
moveup = false;
};
if (moveup){
player.y = (player.y + downspeed);
} else {
player.y = ((int(((player.y + downspeed) / 40)) * 40) + 40);
downspeed = 0;
};
if (player.y < (((MapAPI.dat.height * 40) - 240) + 5)){
world.smoothy = (-(player.y) + 240);
};
} else {
if (downspeed > 1){
movedown = true;
if ((((((MapAPI.dat.getPixel(int((player.x / 40)), int(((player.y + downspeed) / 40))) == 0)) && (((player.y + downspeed) < (MapAPI.dat.height * 40))))) || ((int(((player.y + downspeed) / 40)) == int(((player.y - 1) / 40)))))){
} else {
movedown = false;
};
if (movedown){
player.y = (player.y + downspeed);
ground = false;
} else {
if (!ground){
splayer.p.gotoAndPlay(dplayer.basicstate);
dplayer.currentstate = dplayer.basicstate;
ground = true;
};
player.y = (int(((player.y + downspeed) / 40)) * 40);
downspeed = 0;
ground = true;
jumpbase = player.y;
freeblocky = -1;
};
if (player.y < (((MapAPI.dat.height * 40) - 240) + 5)){
world.smoothy = (-(player.y) + 240);
};
} else {
freeblocky = player.y;
};
};
if ((((player.y > ((MapAPI.dat.height * 40) + 40))) && ((overcount == -1)))){
overSet();
};
if (player.y > ((MapAPI.dat.height * 40) + 40)){
world.smoothy = -((MapAPI.dat.height * 40));
};
moveWorldY(world);
MapAPI.trim(map_layer, world);
if (player.x < 0){
player.x = 0;
};
if (player.x > ((MapAPI.dat.width * 40) - player.width)){
player.x = ((MapAPI.dat.width * 40) - player.width);
};
}
public function resetMoveOfPlayer(){
downspeed = 0;
ground = false;
gravity = 4;
moveup = true;
movedown = true;
moveleft = true;
moveleftex = true;
moveright = true;
moverightex = true;
jumpbase = 0;
freeblocky = -1;
speedx = 0;
mapcolor = -1;
knockback = 0;
dir = 1;
unwalk = 0;
}
public function setHomingMove(_arg1, _arg2, _arg3, _arg4){
_arg1.velocity = _arg3;
_arg1.turning_speed = _arg4;
_arg1.targ = _arg2;
_arg1.xspeed = 0;
_arg1.yspeed = 0;
_arg1.turning = (_arg1.turning_speed * (Math.PI / 180));
_arg1.mot = GHhoming;
}
public function setLoop(_arg1){
if (bfn != null){
removeEventListener(Event.ENTER_FRAME, bfn);
};
bfn = _arg1;
addEventListener(Event.ENTER_FRAME, _arg1);
}
public function moveWorldX(_arg1){
var _local2:*;
_local2 = (_arg1.x - _arg1.smoothx);
if (_local2 < 1){
_arg1.x = (_arg1.x + (Math.abs((_arg1.x - _arg1.smoothx)) / 20));
MapAPI.moveRightMap(map_layer, int(_arg1.x), int(_arg1.y));
} else {
if (_local2 > 1){
_arg1.x = (_arg1.x - (Math.abs((_arg1.x - _arg1.smoothx)) / 20));
MapAPI.moveLeftMap(map_layer, int(_arg1.x), int(_arg1.y));
};
};
}
public function addGroup(_arg1, _arg2, _arg3){
var _local4:*;
backupnewobject = new MovieClip();
backupnewobject.x = _arg2;
backupnewobject.y = _arg3;
_local4 = new MovieClip();
_local4.graphics.lineStyle(10, 0xFF00FF);
_local4.graphics.moveTo(0, 0);
_local4.graphics.lineTo(10, 10);
_local4.x = -10000;
_local4.y = -10000;
backupnewobject.addChild(_local4);
_local4 = new MovieClip();
_local4.graphics.lineStyle(10, 0xFF00FF);
_local4.graphics.moveTo(0, 0);
_local4.graphics.lineTo(10, 10);
_local4.x = 10000;
_local4.y = 10000;
backupnewobject.addChild(_local4);
backupnewobject.graphics.lineTo(10000, 10000);
return (_arg1.addChild(backupnewobject));
}
public function moveWorldY(_arg1){
var _local2:*;
_local2 = (_arg1.y - _arg1.smoothy);
if (_local2 < 1){
_arg1.y = (_arg1.y + (Math.abs((_arg1.y - _arg1.smoothy)) / 20));
MapAPI.moveUpMap(map_layer, _arg1.x, _arg1.y);
} else {
if (_local2 > 1){
_arg1.y = (_arg1.y - (Math.abs((_arg1.y - _arg1.smoothy)) / 20));
MapAPI.moveDownMap(map_layer, _arg1.x, _arg1.y);
};
};
}
public function onKeyUp(_arg1){
if (dplayer.die != null){
if (dplayer.die){
return;
};
};
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
dir = -1;
if ((((key[39] == null)) && ((key[68] == null)))){
dplayer.basicstate = "stand";
splayer.p.gotoAndPlay("stand");
};
};
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
dir = 1;
if ((((key[37] == null)) && ((key[65] == null)))){
dplayer.basicstate = "stand";
splayer.p.gotoAndPlay("stand");
};
};
delete key[87];
delete key[38];
delete key[_arg1.keyCode];
}
public function addPlayer(_arg1, _arg2, _arg3){
splayer = new showplayer();
splayer.x = _arg2;
splayer.y = _arg3;
_arg1.addChild(splayer);
player = new cplayer();
player.x = _arg2;
player.y = _arg3;
_arg1.addChild(player);
return (player);
}
public function skillprocess(){
if (reflexcooldown > 0){
reflexcooldown--;
};
if (mortalcooldown > 0){
mortalcooldown--;
};
commoncool++;
if (commoncool > 1000000){
commoncool = 0;
};
if ((commoncool % skillhpplus[hppluslv].cooltime) == 0){
dplayer.hp = (dplayer.hp + skillhpplus[hppluslv].regen);
};
if ((commoncool % skillendure[endurelv].cooltime) == 0){
dplayer.stamina = (dplayer.stamina + skillendure[endurelv].regen);
};
}
public function copyObject(_arg1, _arg2){
var _local3:*;
for (_local3 in _arg2) {
_arg1[_local3] = _arg2[_local3];
};
}
public function pauseGame(_arg1){
}
public function onMouseUp(_arg1){
}
public function arrowDropRate(){
return (Math.round((1 + int(((Math.random() * arrowrate[gamelevel]) + (dplayer.luk / 5))))));
}
public function objstatus(_arg1){
_arg1.fire = true;
_arg1.thunder = true;
_arg1.knockdamage = 0;
_arg1.arrowtype = 0;
_arg1.moneyamp = 1;
_arg1.rateamp = 1;
_arg1.damage = 1;
_arg1.lastarrow = null;
_arg1.fade = 5;
_arg1.attackdelay = 0;
_arg1.attackdelaymax = 0;
_arg1.dura = -1;
_arg1.attlist = null;
_arg1.boss = false;
_arg1.obstruct = false;
_arg1.clip = "free";
_arg1.monname = "free";
_arg1.hp = 10;
_arg1.damage = 20;
_arg1.gravity = 2;
_arg1.speed = 0;
_arg1.dir = 0;
_arg1.undown = false;
_arg1.jump = false;
_arg1.jumpfrq = 25;
_arg1.jumppow = 15;
_arg1.freewalk = false;
_arg1.attfrq = 0;
_arg1.AI = null;
_arg1.activedetect = false;
_arg1.downspeed = 0;
_arg1.stayground = false;
_arg1.baseline = _arg1.y;
_arg1.unmove = 0;
_arg1.walkcount = 0;
_arg1.knock = 0;
}
public function pasteObject(_arg1, _arg2){
var _local3:*;
for (_local3 in _arg2) {
_arg1[_local3] = _arg2[_local3];
};
}
public function onMouseDown(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
stage.focus = game;
if (dplayer.die != null){
if (dplayer.die){
return;
};
};
if (!splayer.visible){
return;
};
if (dplayer.currentstate == "hurt"){
unshotsound.play();
return;
};
if (dplayer.bowdelay > 0){
unshotsound.play();
return;
};
if (((!(dplayer.addarrow)) && ((dplayer.mag < arrowinfo[dplayer.arrowactive][dplayer[("arrowlv" + dplayer.arrowactive)]].used)))){
reloadsound.play();
dplayer.reloadtime = bow[dplayer.bow].redelay;
dplayer.addarrow = true;
return;
};
_local2 = dplayer.arrowactive;
_local3 = (((((((bow[dplayer.bow].ext & arrowinfo[_local2][dplayer[("arrowlv" + _local2)]].ext)) && ((dplayer.mag >= arrowinfo[_local2][dplayer[("arrowlv" + _local2)]].used)))) && ((dplayer[("arrowcool" + _local2)] == 0)))) && ((dplayer[("arrowc" + _local2)] > 0)));
if (((!(_local3)) && (!(dplayer.addarrow)))){
_local2 = 3;
while (_local2 >= 0) {
dplayer.arrowactive = _local2;
if ((((((((bow[dplayer.bow].ext & arrowinfo[_local2][dplayer[("arrowlv" + _local2)]].ext)) && ((dplayer.mag >= arrowinfo[_local2][dplayer[("arrowlv" + _local2)]].used)))) && ((dplayer[("arrowcool" + _local2)] == 0)))) && ((dplayer[("arrowc" + _local2)] > 0)))){
break;
};
_local2--;
};
};
if ((((dplayer[("arrowc" + dplayer.arrowactive)] <= 0)) || ((dplayer[("arrowcool" + dplayer.arrowactive)] > 0)))){
unshotsound.play();
return;
};
if ((arrowinfo[dplayer.arrowactive][dplayer[("arrowlv" + dplayer.arrowactive)]].ext & bow[dplayer.bow].ext)){
} else {
unshotsound.play();
return;
};
if (dplayer.addarrow){
unshotsound.play();
return;
};
if (dplayer.mag < arrowinfo[dplayer.arrowactive][dplayer[("arrowlv" + dplayer.arrowactive)]].used){
reloadsound.play();
dplayer.reloadtime = int((bow[dplayer.bow].redelay * dplayer.delayamp));
dplayer.addarrow = true;
return;
};
if (!_local3){
unshotsound.play();
return;
};
stage.focus = game;
_local4 = new acharrow();
_local4.x = player.x;
_local4.y = (player.y - 15);
_local5 = new Point(mouseX, mouseY);
_local5 = localToGlobal(_local5);
_local6 = new Point(player.x, (player.y - 15));
_local6 = player_layer.localToGlobal(_local6);
_local4.dx = (_local5.x - _local6.x);
_local4.dy = (_local5.y - _local6.y);
_local4.u = Math.sqrt(((_local4.dx * _local4.dx) + (_local4.dy * _local4.dy)));
_local4.speedx = ((_local4.dx / _local4.u) * 40);
_local4.speedy = ((_local4.dy / _local4.u) * 40);
_local4.rotation = ((Math.atan2(_local4.speedy, _local4.speedx) * 180) / Math.PI);
_local4.dura = int((bow[dplayer.bow].range * dplayer.rangeamp));
_local4.damage = dplayer.getDamage(dplayer.arrowactive);
if (dplayer.arrowactive == 1){
_local4.gotoAndStop(2);
} else {
if (dplayer.arrowactive == 2){
_local4.fire = true;
_local4.gotoAndStop(3);
} else {
if (dplayer.arrowactive == 3){
_local4.thunder = true;
_local4.gotoAndStop(4);
};
};
};
if (dplayer.playerclass == "sniper"){
_local8 = skillreflex[reflexlv];
if (reflexcooldown <= 0){
if ((Math.random() * 100) < _local8.pierce){
_local9 = new gfxsniper();
_local9.x = _local4.x;
_local9.y = _local4.y;
_local9.rotation = _local4.rotation;
gfx_layer.addChild(_local9);
_local4.damage = (_local4.damage * _local8.skillamp);
_local4.pierce = true;
reflexcooldown = _local8.cooldown;
};
if ((Math.random() * 100) < _local8.retarget){
_local4.retarget = true;
reflexcooldown = _local8.cooldown;
};
};
};
if (dplayer.playerclass == "hunter"){
_local10 = skillmortal[mortallv];
if (mortalcooldown <= 0){
if ((Math.random() * 100) < _local10.chance){
_local9 = new gfxhunter();
_local9.x = _local4.x;
_local9.y = _local4.y;
_local9.rotation = _local4.rotation;
gfx_layer.addChild(_local9);
_local4.damage = (_local4.damage * _local10.skillamp);
mortalcooldown = _local10.cooldown;
};
if ((Math.random() * 100) < _local10.ko){
_local9 = new gfxko();
_local9.x = _local4.x;
_local9.y = _local4.y;
_local9.rotation = _local4.rotation;
gfx_layer.addChild(_local9);
_local4.ko = true;
mortalcooldown = _local10.cooldown;
};
};
};
_local4.process = arrowNormalProcess;
setLineMove(_local4, _local4.speedx, _local4.speedy);
if (_local4.speedx > 0){
dplayer.dir = 1;
} else {
dplayer.dir = -1;
};
playerbullet_layer.addChild(_local4);
dplayer.currentstate = "fire";
_local7 = "";
if (_local4.rotation > 120){
_local7 = "-45";
} else {
if (_local4.rotation > 60){
_local7 = "-90";
} else {
if (_local4.rotation > 30){
_local7 = "-45";
} else {
if (_local4.rotation > -30){
_local7 = "";
} else {
if (_local4.rotation > -60){
_local7 = "45";
} else {
if (_local4.rotation > -120){
_local7 = "90";
} else {
if (_local4.rotation > -150){
_local7 = "45";
} else {
if (_local4.rotation > -180){
_local7 = "";
};
};
};
};
};
};
};
};
if (dplayer.arrowactive != 0){
var _local11 = dplayer;
var _local12 = ("arrowc" + dplayer.arrowactive);
var _local13 = (_local11[_local12] - 1);
_local11[_local12] = _local13;
};
dplayer.bowdelay = bow[dplayer.bow].attspd;
dplayer.mag = (dplayer.mag - arrowinfo[dplayer.arrowactive][dplayer[("arrowlv" + dplayer.arrowactive)]].used);
if (dplayer.mag == 0){
reloadsound.play();
dplayer.reloadtime = int((bow[dplayer.bow].redelay * dplayer.delayamp));
dplayer.addarrow = true;
};
shotsound.play();
unwalk = 5;
splayer.p.gotoAndPlay(("fire" + _local7));
dplayer[("arrowcool" + dplayer.arrowactive)] = arrowinfo[dplayer.arrowactive][dplayer[("arrowlv" + dplayer.arrowactive)]].cool;
if (dplayer.bow == 4){
dplayer.arrowactive = int((Math.random() * 4));
};
commoncool = 0;
}
public function monsterdamage(_arg1, _arg2, _arg3){
var showdmg:*;
var arrowd:*;
var money:*;
var sdrop:*;
var mon = _arg1;
var obj = _arg2;
var dmg = _arg3;
mon.fade = 2;
if (obj.dura <= 0){
dmg = 0;
};
mon.hp = (mon.hp - dmg);
MovieClip(game.parent).ename.text = mon.monname;
MovieClip(game.parent).ehp.visible = true;
MovieClip(game.parent).ehp.gotoAndStop((int(((99 * mon.hp) / mon.hpmax)) + 1));
mon.activedetect = true;
showdmg = new dmgshow();
hitsound.play();
showdmg.x = (obj.x - 10);
showdmg.y = obj.y;
if (dmg > 0){
showdmg.dmg.dmg2.text = int(dmg);
} else {
showdmg.dmg.dmg2.text = "Out of Range!";
};
if (obj.speedx != null){
};
gfx_layer.addChild(showdmg);
if (mon.hp <= 0){
if (mon.dead == null){
MovieClip(game.parent).ename.text = "";
MovieClip(game.parent).ehp.visible = false;
dplayer.level_exp = (dplayer.level_exp + mon.exp);
MovieClip(root).score = (MovieClip(root).score + (mon.exp * 10));
if (dplayer.level_exp >= exp[dplayer.level_player]){
dplayer.levelUp();
};
arrowd = null;
money = null;
if (int((Math.random() * 100)) < 80){
if (int((Math.random() * 100)) < 20){
arrowd = new arrowc();
arrowd.x = mon.x;
arrowd.y = mon.y;
objstatus(arrowd);
setGravity(arrowd, MapAPI.dat);
arrowd.downspeed = -20;
arrowd.arrowtype = mon.arrowtype;
arrowd.count = int((arrowDropRate() * mon.rateamp));
item_layer.addChild(arrowd);
} else {
sdrop = skilldrop[droplv];
if (int((Math.random() * 100)) < sdrop.chance){
arrowd = new arrowc();
arrowd.x = mon.x;
arrowd.y = mon.y;
objstatus(arrowd);
setGravity(arrowd, MapAPI.dat);
arrowd.downspeed = -22;
arrowd.arrowtype = mon.arrowtype;
arrowd.count = sdrop.amount;
item_layer.addChild(arrowd);
};
};
if (int((Math.random() * 100)) < 90){
money = new moneyc();
money.x = mon.x;
money.y = mon.y;
objstatus(money);
setGravity(money, MapAPI.dat);
money.downspeed = -20;
money.count = int((moneyDropRate() * mon.rateamp));
item_layer.addChild(money);
};
};
if (money != null){
money.alpha = 30;
money.process = function (){
this.alpha = (this.alpha - 0.04);
if (this.alpha <= 0){
this.stop();
item_layer.removeChild(this);
delete ??getglobalscope
[this];
return;
};
if (this.hitTestObject(player)){
dplayer.money = (dplayer.money + this.count);
this.stop();
item_layer.removeChild(this);
delete ??getglobalscope
[this];
return;
};
};
};
if (arrowd != null){
arrowd.alpha = 35;
arrowd.process = function (){
this.alpha = (this.alpha - 0.04);
if (this.alpha <= 0){
this.stop();
item_layer.removeChild(this);
delete ??getglobalscope
[this];
return;
};
if (this.hitTestObject(player)){
dplayer[("arrowc" + this.arrowtype)] = (dplayer[("arrowc" + this.arrowtype)] + this.count);
this.stop();
item_layer.removeChild(this);
delete ??getglobalscope
[this];
return;
};
};
};
if (mon.boss != null){
if (mon.boss == true){
bosssound.play();
clearSet();
};
};
mon.gotoAndPlay("die");
mon.dead = true;
};
};
}
}
}//package rover_archer_511125_PB_fla
Section 20
//mpage_shop_201 (rover_archer_511125_PB_fla.mpage_shop_201)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mpage_shop_201 extends MovieClip {
public var bs1:SimpleButton;
public var bs2:SimpleButton;
public var b0:SimpleButton;
public var b1:SimpleButton;
public var b2:SimpleButton;
public var b4:SimpleButton;
public var bc0:SimpleButton;
public var bc1:SimpleButton;
public var b3:SimpleButton;
public var b0p:TextField;
public var b1p:TextField;
public var bc0l:TextField;
public var bc0p:TextField;
public var bs0p:TextField;
public var bc1l:TextField;
public var b2p:TextField;
public var a;
public var bc1p:TextField;
public var i;
public var bs1p:TextField;
public var bs1l:TextField;
public var t;
public var bowdif;
public var b3p:TextField;
public var bs0l:TextField;
public var r;
public var b_mfz_logo2:SimpleButton;
public var bs2p:TextField;
public var desc:TextField;
public var bc0move;
public var bs2l:TextField;
public var b4p:TextField;
public var moneyerr;
public var mybow;
public var ba0c:TextField;
public var onEnterFrame;
public var ba0p:TextField;
public var money:TextField;
public var ba1c:TextField;
public var bau0l:TextField;
public var bau0p:TextField;
public var bau0:SimpleButton;
public var bau1:SimpleButton;
public var bau2:SimpleButton;
public var bau3:SimpleButton;
public var ba1p:TextField;
public var bsave:SimpleButton;
public var subdesc:TextField;
public var bau1l:TextField;
public var bau1p:TextField;
public var shop;
public var ba2c:TextField;
public var ba2p:TextField;
public var field;
public var bc0click;
public var bau2l:TextField;
public var bau2p:TextField;
public var ba3p:TextField;
public var ba3c:TextField;
public var b_moregames3:SimpleButton;
public var bau3l:TextField;
public var bau3p:TextField;
public var bc1click;
public var save;
public var showitem:MovieClip;
public var bok:SimpleButton;
public var ba0:SimpleButton;
public var ba1:SimpleButton;
public var ba2:SimpleButton;
public var ba3:SimpleButton;
public var bc1move;
public var ok;
public var ind;
public var playMoreGameShop;
public var game;
public var bs0:SimpleButton;
public function mpage_shop_201(){
addFrameScript(0, frame1);
}
public function getURL(_arg1:String, _arg2:String){
var web:String;
var request:URLRequest;
var url = _arg1;
var method = _arg2;
web = url;
request = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
function frame1(){
shop = this;
this.x = 0;
this.y = 0;
game = MovieClip(parent).game;
t = new ColorTransform(0, 0, 1, 0.15, 0, 0, 50);
a = new ColorTransform(1, 1, 1);
r = new ColorTransform(1, 1, 1, 1, 0x0200);
mybow = "You've already use this bow.\n";
bowdif = "";
moneyerr = "";
i = 0;
while (i < 5) {
shop[("fb" + i)] = new Object();
shop[("fb" + i)].ind = i;
shop[("fb" + i)].mousemove = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
ind = shop[("f" + _arg1.target.name)].ind;
showitem.gotoAndStop(("bow" + ind));
subdesc.text = "";
subdesc.textColor = 0xFFFFFF;
if (ind == game.dplayer.bow){
subdesc.text = mybow;
subdesc.textColor = 0xFF0000;
};
if (game.bow[ind].price > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
};
subdesc.appendText(game.bow[ind].desc);
desc.text = bowdif;
for (field in game.bow[ind]) {
if (((((!((field == "desc"))) && (!((field == "ext"))))) && (!((field == "bowname"))))){
desc.appendText((((" " + field) + ": ") + (game.bow[ind][field] - game.bow[game.dplayer.bow][field])));
};
};
desc.appendText(" ]");
};
shop[("fb" + i)].mouseclick = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
ind = shop[("f" + _arg1.target.name)].ind;
if (ind == game.dplayer.bow){
return;
};
if (game.bow[ind].price > game.dplayer.money){
return;
};
game.dplayer.bow = ind;
game.dplayer.money = (game.dplayer.money - game.bow[ind].price);
subdesc.text = "";
subdesc.textColor = 0xFFFFFF;
if (ind == game.dplayer.bow){
subdesc.text = mybow;
subdesc.textColor = 0xFF0000;
};
subdesc.appendText(game.bow[ind].desc);
desc.text = bowdif;
for (field in game.bow[ind]) {
if (((((!((field == "desc"))) && (!((field == "ext"))))) && (!((field == "bowname"))))){
desc.appendText((((" " + field) + ": ") + (game.bow[ind][field] - game.bow[game.dplayer.bow][field])));
};
};
desc.appendText(" ]");
};
shop[("b" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[("fb" + i)].mousemove);
shop[("b" + i)].addEventListener(MouseEvent.CLICK, shop[("fb" + i)].mouseclick);
i++;
};
i = 0;
while (i < 4) {
shop[("fba" + i)] = new Object();
shop[("fba" + i)].ind = i;
shop[("fba" + i)].mousemove = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
ind = shop[("f" + _arg1.target.name)].ind;
showitem.gotoAndStop(("arrow" + ind));
subdesc.text = "";
subdesc.textColor = 0xFFFFFF;
if (game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]].price > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
};
subdesc.appendText(game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]].desc);
desc.text = "Arrow info [ ";
for (field in game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]]) {
if (((((!((field == "desc"))) && (!((field == "ext"))))) && (!((field == "bowname"))))){
desc.appendText((((" " + field) + ": ") + game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]][field]));
};
};
desc.appendText(" ]");
};
shop[("fba" + i)].mouseclick = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
ind = shop[("f" + _arg1.target.name)].ind;
showitem.gotoAndStop(("arrow" + ind));
subdesc.text = "";
subdesc.textColor = 0xFFFFFF;
if (game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]].price > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
return;
};
game.dplayer.money = (game.dplayer.money - game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]].price);
game.dplayer[("arrowc" + ind)] = (game.dplayer[("arrowc" + ind)] + 10);
subdesc.appendText(game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]].desc);
desc.text = "Arrow info [ ";
for (field in game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]]) {
if (((((!((field == "desc"))) && (!((field == "ext"))))) && (!((field == "bowname"))))){
desc.appendText((((" " + field) + ": ") + game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]][field]));
};
};
desc.appendText(" ]");
};
shop[("ba" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[("fba" + i)].mousemove);
shop[("ba" + i)].addEventListener(MouseEvent.CLICK, shop[("fba" + i)].mouseclick);
i++;
};
i = 0;
while (i < 4) {
shop[("fbau" + i)] = new Object();
shop[("fbau" + i)].ind = i;
shop[("fbau" + i)].mousemove = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
ind = shop[("f" + _arg1.target.name)].ind;
showitem.gotoAndStop(("arrow" + ind));
subdesc.text = "";
subdesc.textColor = 0xFFFFFF;
if (game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]].upgradeprice > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
};
subdesc.appendText(game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]].desc);
desc.text = "Arrow info = [ ";
for (field in game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]]) {
if (((((!((field == "desc"))) && (!((field == "ext"))))) && (!((field == "bowname"))))){
desc.appendText((((" " + field) + ": ") + game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]][field]));
};
};
desc.appendText(" ]");
};
shop[("fbau" + i)].mouseclick = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
ind = shop[("f" + _arg1.target.name)].ind;
showitem.gotoAndStop(("arrow" + ind));
subdesc.text = "";
subdesc.textColor = 0xFFFFFF;
if (game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]].upgradeprice > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
return;
};
game.dplayer.money = (game.dplayer.money - game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]].upgradeprice);
game.dplayer[("arrowlv" + ind)] = (game.dplayer[("arrowlv" + ind)] + 1);
subdesc.appendText(game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]].desc);
desc.text = "Arrow info = [ ";
for (field in game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]]) {
if (((((!((field == "desc"))) && (!((field == "ext"))))) && (!((field == "bowname"))))){
desc.appendText((((" " + field) + ": ") + game.arrowinfo[ind][game.dplayer[("arrowlv" + ind)]][field]));
};
};
desc.appendText(" ]");
};
shop[("bau" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[("fbau" + i)].mousemove);
shop[("bau" + i)].addEventListener(MouseEvent.CLICK, shop[("fbau" + i)].mouseclick);
i++;
};
i = 0;
while (i < 3) {
shop[("fbs" + i)] = new Object();
shop[("fbs" + i)].ind = i;
shop[("fbs" + i)].mousemove = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
ind = shop[("f" + _arg1.target.name)].ind;
showitem.gotoAndStop("scroll");
subdesc.text = "";
subdesc.textColor = 0xFFFFFF;
if (game.skilla[ind][game[game.skilllv[ind]]].upprice > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
};
subdesc.appendText(game.skilla[ind][game[game.skilllv[ind]]].desc);
desc.text = "Arrow info = [ ";
for (field in game.skilla[ind][game[game.skilllv[ind]]]) {
if (((((!((field == "desc"))) && (!((field == "ext"))))) && (!((field == "bowname"))))){
desc.appendText((((" " + field) + ": ") + game.skilla[ind][game[game.skilllv[ind]]][field]));
};
};
desc.appendText(" ]");
};
shop[("fbs" + i)].mouseclick = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
ind = shop[("f" + _arg1.target.name)].ind;
if (game.skilla[ind][game[game.skilllv[ind]]].upprice > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
return;
};
game.dplayer.money = (game.dplayer.money - game.skilla[ind][game[game.skilllv[ind]]].upprice);
game[game.skilllv[ind]] = (game[game.skilllv[ind]] + 1);
};
shop[("bs" + i)].addEventListener(MouseEvent.MOUSE_OVER, shop[("fbs" + i)].mousemove);
shop[("bs" + i)].addEventListener(MouseEvent.CLICK, shop[("fbs" + i)].mouseclick);
i++;
};
bc0move = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
showitem.gotoAndStop("scroll");
if (game.dplayer.playerclass == "novice"){
if ((((game.scrollhunter[0].price > game.dplayer.money)) || ((game.scrollhunter[0].reqlv > game.dplayer.level_player)))){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
};
subdesc.text = game.scrollhunter[0].desc;
desc.text = game.scrollhunter[0].desc;
} else {
if (game.skillmortal[game.mortallv].upprice > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
};
subdesc.text = game.skillmortal[game.mortallv].desc;
desc.text = game.skillmortal[game.mortallv].desc;
};
};
bc0click = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
showitem.gotoAndStop("scroll");
if (game.dplayer.playerclass == "novice"){
if ((((game.scrollhunter[0].price > game.dplayer.money)) || ((game.scrollhunter[0].reqlv > game.dplayer.level_player)))){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
return;
};
game.dplayer.money = (game.dplayer.money - game.scrollhunter[0].price);
subdesc.text = "";
desc.text = "";
game.copyObject(game.dplayer, game.scrollhunter[0]);
game.mortallv = 1;
if (game.skillmortal[game.mortallv].upprice > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
};
subdesc.appendText(game.skillmortal[game.mortallv].desc);
desc.appendText(game.skillmortal[game.mortallv].desc);
} else {
subdesc.text = "";
if (game.skillmortal[game.mortallv].upprice > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
return;
};
game.dplayer.money = (game.dplayer.money - game.skillmortal[game.mortallv].upprice);
game.mortallv = (game.mortallv + 1);
subdesc.text = game.skillmortal[game.mortallv].desc;
desc.text = game.skillmortal[game.mortallv].desc;
};
};
bc0.addEventListener(MouseEvent.MOUSE_OVER, bc0move);
bc0.addEventListener(MouseEvent.CLICK, bc0click);
bc1move = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
showitem.gotoAndStop("scroll");
if (game.dplayer.playerclass == "novice"){
if ((((game.scrollsniper[0].price > game.dplayer.money)) || ((game.scrollsniper[0].reqlv > game.dplayer.level_player)))){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
};
subdesc.text = game.scrollsniper[0].desc;
desc.text = game.scrollsniper[0].desc;
} else {
if (game.skillreflex[game.reflexlv].upprice > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
};
subdesc.text = game.skillreflex[game.reflexlv].desc;
desc.text = game.skillreflex[game.reflexlv].desc;
};
};
bc1click = function (_arg1){
if (!shop[_arg1.target.name].enabled){
return;
};
showitem.gotoAndStop("scroll");
if (game.dplayer.playerclass == "novice"){
if ((((game.scrollsniper[0].price > game.dplayer.money)) || ((game.scrollsniper[0].reqlv > game.dplayer.level_player)))){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
return;
};
game.dplayer.money = (game.dplayer.money - game.scrollsniper[0].price);
subdesc.text = "";
desc.text = "";
game.copyObject(game.dplayer, game.scrollsniper[0]);
game.reflexlv = 1;
if (game.skillreflex[game.reflexlv].upprice > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
};
subdesc.text = game.skillreflex[game.reflexlv].desc;
desc.text = game.skillreflex[game.reflexlv].desc;
} else {
subdesc.text = "";
if (game.skillreflex[game.reflexlv].upprice > game.dplayer.money){
subdesc.appendText(moneyerr);
subdesc.textColor = 0xFF0000;
return;
};
game.dplayer.money = (game.dplayer.money - game.skillreflex[game.reflexlv].upprice);
game.reflexlv = (game.reflexlv + 1);
subdesc.text = game.skillreflex[game.reflexlv].desc;
desc.text = game.skillreflex[game.reflexlv].desc;
};
};
bc1.addEventListener(MouseEvent.MOUSE_OVER, bc1move);
bc1.addEventListener(MouseEvent.CLICK, bc1click);
onEnterFrame = function (_arg1){
if (shop.visible){
shop.money.text = game.dplayer.money;
i = 0;
while (i < 5) {
if (i == game.dplayer.bow){
shop[("b" + i)].transform.colorTransform = r;
} else {
shop[("b" + i)].transform.colorTransform = a;
};
shop[(("b" + i) + "p")].text = game.bow[i].price;
i++;
};
i = 0;
while (i < 4) {
shop[(("ba" + i) + "p")].text = game.arrowinfo[i][game.dplayer[("arrowlv" + i)]].price;
shop[(("ba" + i) + "c")].text = int(game.dplayer[("arrowc" + i)]);
if (game.arrowinfo[i][(game.dplayer[("arrowlv" + i)] + 1)] != null){
shop[(("bau" + i) + "l")].text = (game.dplayer[("arrowlv" + i)] + 1);
shop[(("bau" + i) + "p")].text = ((game.arrowinfo[i][game.dplayer[("arrowlv" + i)]].upgradeprice + (game.dplayer[("arrowc" + i)] * game.arrowinfo[i][(game.dplayer[("arrowlv" + i)] + 1)].price)) - (game.dplayer[("arrowc" + i)] * game.arrowinfo[i][game.dplayer[("arrowlv" + i)]].price));
} else {
shop[(("bau" + i) + "l")].text = "-";
shop[(("bau" + i) + "p")].text = "Max";
shop[("bau" + i)].transform.colorTransform = t;
shop[("bau" + i)].enabled = false;
};
i++;
};
if (game.dplayer.playerclass == "novice"){
shop["bc0p"].text = game.scrollhunter[0].price;
shop["bc0l"].text = 1;
shop["bc1p"].text = game.scrollsniper[0].price;
shop["bc1l"].text = 1;
} else {
if (game.dplayer.playerclass == "hunter"){
shop["bc1"].enabled = false;
shop["bc1"].transform.colorTransform = t;
shop["bc0p"].text = game.skillmortal[game.mortallv].upprice;
shop["bc0l"].text = (game.mortallv + 1);
if (game.skillmortal[(game.mortallv + 1)] == null){
shop["bc0"].enabled = false;
shop["bc0"].transform.colorTransform = t;
shop["bc0p"].text = "Max";
shop["bc0l"].text = "-";
};
} else {
if (game.dplayer.playerclass == "sniper"){
shop["bc0"].enabled = false;
shop["bc0"].transform.colorTransform = t;
shop["bc1p"].text = game.skillreflex[game.reflexlv].upprice;
shop["bc1l"].text = (game.reflexlv + 1);
if (game.skillreflex[(game.reflexlv + 1)] == null){
shop["bc1"].enabled = false;
shop["bc1"].transform.colorTransform = t;
shop["bc1p"].text = "Max";
shop["bc1l"].text = "-";
};
};
};
};
i = 0;
while (i < 3) {
if (game.skilla[i][(game[game.skilllv[i]] + 1)] != null){
shop[(("bs" + i) + "p")].text = game.skilla[i][game[game.skilllv[i]]].upprice;
shop[(("bs" + i) + "l")].text = (game[game.skilllv[i]] + 1);
} else {
shop[(("bs" + i) + "l")].text = "-";
shop[(("bs" + i) + "p")].text = "Max";
shop[("bs" + i)].transform.colorTransform = t;
shop[("bs" + i)].enabled = false;
};
i++;
};
};
};
ok = function (){
shop.visible = false;
game.levelUp();
game.setLoop(game.playGame);
};
save = function (){
var _local1:*;
trace("save");
_local1 = SharedObject.getLocal("r_arc");
_local1.data.dplayer = {};
game.pasteObject(_local1.data.dplayer, game.dplayer);
_local1.data["droplv"] = game["droplv"];
_local1.data["hppluslv"] = game["hppluslv"];
_local1.data["endurelv"] = game["endurelv"];
_local1.data["reflexlv"] = game["reflexlv"];
_local1.data["mortallv"] = game["mortallv"];
_local1.data["gamelevel"] = game["gamelevel"];
_local1.flush();
};
bsave.addEventListener(MouseEvent.CLICK, save);
bok.addEventListener(MouseEvent.CLICK, ok);
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
stop();
playMoreGameShop = function (){
getURL("http://www.mofunzone.com/online_games/rover_archer.shtml", "_blank");
};
b_moregames3.addEventListener("click", playMoreGameShop);
b_mfz_logo2.addEventListener("click", playMoreGameShop);
}
}
}//package rover_archer_511125_PB_fla
Section 21
//msce_sky_color_195 (rover_archer_511125_PB_fla.msce_sky_color_195)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class msce_sky_color_195 extends MovieClip {
public function msce_sky_color_195(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package rover_archer_511125_PB_fla
Section 22
//mspr_bow_149 (rover_archer_511125_PB_fla.mspr_bow_149)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class mspr_bow_149 extends MovieClip {
public function mspr_bow_149(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package rover_archer_511125_PB_fla
Section 23
//mspr_hero_148 (rover_archer_511125_PB_fla.mspr_hero_148)
package rover_archer_511125_PB_fla {
import flash.display.*;
public dynamic class mspr_hero_148 extends MovieClip {
public var spr_airrow:acharrow;
public var spr_bow:MovieClip;
public function mspr_hero_148(){
addFrameScript(19, frame20, 31, frame32, 37, frame38, 43, frame44, 48, frame49, 53, frame54, 59, frame60, 63, frame64, 67, frame68, 71, frame72, 79, frame80);
}
function frame72(){
stop();
}
function frame64(){
stop();
}
function frame80(){
gotoAndPlay("die");
}
function frame20(){
gotoAndPlay("stand");
}
function frame38(){
stop();
}
function frame44(){
stop();
}
function frame32(){
gotoAndPlay("walk");
}
function frame49(){
stop();
}
function frame54(){
stop();
}
function frame60(){
stop();
}
function frame68(){
stop();
}
}
}//package rover_archer_511125_PB_fla
Section 24
//THEPRELOADER_1 (rover_archer_511125_PB_fla.THEPRELOADER_1)
package rover_archer_511125_PB_fla {
import flash.events.*;
import flash.display.*;
public dynamic class THEPRELOADER_1 extends MovieClip {
public var shiftamt;
public var bar:MovieClip;
public var onRelease;
public var isloaded;
public function THEPRELOADER_1(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stage.removeEventListener(MouseEvent.CLICK, onRelease);
}
function frame1(){
stop();
shiftamt = 17;
isloaded = false;
parent.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING);
onRelease = function (){
};
stage.addEventListener(MouseEvent.CLICK, onRelease);
if (parent.loaderInfo.bytesLoaded >= parent.loaderInfo.bytesTotal){
parent.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, PL_LOADING);
gotoAndStop(10);
};
}
public function PL_LOADING(_arg1:ProgressEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = Math.round(_arg1.bytesLoaded);
_local3 = Math.round(_arg1.bytesTotal);
_local4 = (_local2 / _local3);
MovieClip(MovieClip(getChildByName("bar")).getChildByName("barmask")).scaleX = _local4;
if (_local2 == _local3){
isloaded = true;
};
}
}
}//package rover_archer_511125_PB_fla
Section 25
//acharrow (acharrow)
package {
import flash.display.*;
public dynamic class acharrow extends MovieClip {
public function acharrow(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 26
//arrow_hit (arrow_hit)
package {
import flash.media.*;
public dynamic class arrow_hit extends Sound {
}
}//package
Section 27
//arrowc (arrowc)
package {
import flash.display.*;
public dynamic class arrowc extends MovieClip {
}
}//package
Section 28
//arrowhitgfx (arrowhitgfx)
package {
import flash.display.*;
public dynamic class arrowhitgfx extends MovieClip {
public function arrowhitgfx(){
addFrameScript(4, frame5);
}
function frame5(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 29
//backtree (backtree)
package {
import flash.display.*;
public dynamic class backtree extends MovieClip {
}
}//package
Section 30
//bamboo (bamboo)
package {
import flash.display.*;
public dynamic class bamboo extends MovieClip {
public var hit:MovieClip;
public function bamboo(){
addFrameScript(13, frame14, 21, frame22);
}
function frame14(){
stop();
}
function frame22(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 31
//bgm_boss (bgm_boss)
package {
import flash.media.*;
public dynamic class bgm_boss extends Sound {
}
}//package
Section 32
//bgm_w1 (bgm_w1)
package {
import flash.media.*;
public dynamic class bgm_w1 extends Sound {
}
}//package
Section 33
//bgm_w2 (bgm_w2)
package {
import flash.media.*;
public dynamic class bgm_w2 extends Sound {
}
}//package
Section 34
//bgm_w3 (bgm_w3)
package {
import flash.media.*;
public dynamic class bgm_w3 extends Sound {
}
}//package
Section 35
//bgm_w4 (bgm_w4)
package {
import flash.media.*;
public dynamic class bgm_w4 extends Sound {
}
}//package
Section 36
//block1 (block1)
package {
import flash.display.*;
public dynamic class block1 extends MovieClip {
}
}//package
Section 37
//block10 (block10)
package {
import flash.display.*;
public dynamic class block10 extends MovieClip {
}
}//package
Section 38
//block11 (block11)
package {
import flash.display.*;
public dynamic class block11 extends MovieClip {
}
}//package
Section 39
//block12 (block12)
package {
import flash.display.*;
public dynamic class block12 extends MovieClip {
}
}//package
Section 40
//block13 (block13)
package {
import flash.display.*;
public dynamic class block13 extends MovieClip {
}
}//package
Section 41
//block14 (block14)
package {
import flash.display.*;
public dynamic class block14 extends MovieClip {
}
}//package
Section 42
//block15 (block15)
package {
import flash.display.*;
public dynamic class block15 extends MovieClip {
}
}//package
Section 43
//block16 (block16)
package {
import flash.display.*;
public dynamic class block16 extends MovieClip {
}
}//package
Section 44
//block2 (block2)
package {
import flash.display.*;
public dynamic class block2 extends MovieClip {
}
}//package
Section 45
//block3 (block3)
package {
import flash.display.*;
public dynamic class block3 extends MovieClip {
}
}//package
Section 46
//block4 (block4)
package {
import flash.display.*;
public dynamic class block4 extends MovieClip {
}
}//package
Section 47
//block5 (block5)
package {
import flash.display.*;
public dynamic class block5 extends MovieClip {
}
}//package
Section 48
//block6 (block6)
package {
import flash.display.*;
public dynamic class block6 extends MovieClip {
}
}//package
Section 49
//block7 (block7)
package {
import flash.display.*;
public dynamic class block7 extends MovieClip {
}
}//package
Section 50
//block8 (block8)
package {
import flash.display.*;
public dynamic class block8 extends MovieClip {
}
}//package
Section 51
//block9 (block9)
package {
import flash.display.*;
public dynamic class block9 extends MovieClip {
}
}//package
Section 52
//bomb (bomb)
package {
import flash.display.*;
public dynamic class bomb extends MovieClip {
public var hit:MovieClip;
public function bomb(){
addFrameScript(25, frame26, 33, frame34);
}
function frame26(){
gotoAndPlay("stand");
}
function frame34(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 53
//boss_die (boss_die)
package {
import flash.media.*;
public dynamic class boss_die extends Sound {
}
}//package
Section 54
//boss_energy_bolt1 (boss_energy_bolt1)
package {
import flash.display.*;
public dynamic class boss_energy_bolt1 extends MovieClip {
public var hit:MovieClip;
public function boss_energy_bolt1(){
addFrameScript(8, frame9, 20, frame21, 30, frame31);
}
function frame9(){
gotoAndPlay("stand");
}
function frame21(){
gotoAndPlay("walk");
}
function frame31(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 55
//boss_energy_bolt2 (boss_energy_bolt2)
package {
import flash.display.*;
public dynamic class boss_energy_bolt2 extends MovieClip {
public var hit:MovieClip;
public function boss_energy_bolt2(){
addFrameScript(8, frame9, 20, frame21, 30, frame31);
}
function frame9(){
gotoAndPlay("stand");
}
function frame21(){
gotoAndPlay("walk");
}
function frame31(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 56
//boss_ghost1 (boss_ghost1)
package {
import flash.display.*;
public dynamic class boss_ghost1 extends MovieClip {
public var hit:MovieClip;
public function boss_ghost1(){
addFrameScript(5, frame6, 11, frame12, 17, frame18, 23, frame24);
}
function frame18(){
gotoAndPlay("walk");
}
function frame12(){
gotoAndPlay("stand");
}
function frame6(){
gotoAndPlay("stand");
}
function frame24(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 57
//boss_stone_wall1 (boss_stone_wall1)
package {
import flash.display.*;
public dynamic class boss_stone_wall1 extends MovieClip {
public var hit:MovieClip;
public function boss_stone_wall1(){
addFrameScript(8, frame9, 18, frame19, 30, frame31, 44, frame45);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame31(){
gotoAndPlay("walk");
}
function frame45(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 58
//boss_stone1 (boss_stone1)
package {
import flash.display.*;
public dynamic class boss_stone1 extends MovieClip {
public var hit:MovieClip;
public function boss_stone1(){
addFrameScript(8, frame9, 20, frame21, 30, frame31);
}
function frame9(){
gotoAndPlay("stand");
}
function frame21(){
gotoAndPlay("walk");
}
function frame31(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 59
//boss_stone2 (boss_stone2)
package {
import flash.display.*;
public dynamic class boss_stone2 extends MovieClip {
public var hit:MovieClip;
public function boss_stone2(){
addFrameScript(8, frame9, 20, frame21, 30, frame31);
}
function frame9(){
gotoAndPlay("stand");
}
function frame21(){
gotoAndPlay("walk");
}
function frame31(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 60
//boss1 (boss1)
package {
import flash.display.*;
public dynamic class boss1 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public var hit2:MovieClip;
public function boss1(){
addFrameScript(15, frame16, 29, frame30, 41, frame42, 107, frame108);
}
function frame16(){
gotoAndPlay("stand");
}
function frame108(){
MovieClip(parent).removeChild(this);
stop();
}
function frame30(){
gotoAndPlay("stand");
}
function frame42(){
gotoAndPlay("hurt");
}
}
}//package
Section 61
//boss2 (boss2)
package {
import flash.display.*;
public dynamic class boss2 extends MovieClip {
public var hit3:MovieClip;
public var gun:MovieClip;
public var hit:MovieClip;
public var hit2:MovieClip;
public function boss2(){
addFrameScript(15, frame16, 34, frame35, 50, frame51, 63, frame64, 113, frame114);
}
function frame64(){
gotoAndPlay("hurt");
}
function frame16(){
gotoAndPlay("stand");
}
function frame114(){
MovieClip(parent).removeChild(this);
stop();
}
function frame35(){
gotoAndPlay("stand");
}
function frame51(){
gotoAndPlay("walk");
}
}
}//package
Section 62
//boss3 (boss3)
package {
import flash.display.*;
public dynamic class boss3 extends MovieClip {
public var hit3:MovieClip;
public var gun:MovieClip;
public var hit:MovieClip;
public var hit2:MovieClip;
public function boss3(){
addFrameScript(19, frame20, 39, frame40, 51, frame52, 114, frame115);
}
function frame20(){
gotoAndPlay("stand");
}
function frame115(){
MovieClip(parent).removeChild(this);
stop();
}
function frame40(){
gotoAndPlay("stand");
}
function frame52(){
gotoAndPlay("walk");
}
}
}//package
Section 63
//boss4 (boss4)
package {
import flash.display.*;
public dynamic class boss4 extends MovieClip {
public var hit3:MovieClip;
public var gun:MovieClip;
public var hit:MovieClip;
public var hit2:MovieClip;
public function boss4(){
addFrameScript(13, frame14, 39, frame40, 51, frame52, 106, frame107);
}
function frame14(){
gotoAndPlay("stand");
}
function frame107(){
MovieClip(parent).removeChild(this);
stop();
}
function frame40(){
gotoAndPlay("stand");
}
function frame52(){
gotoAndPlay("hurt");
}
}
}//package
Section 64
//bullet1 (bullet1)
package {
import flash.display.*;
public dynamic class bullet1 extends MovieClip {
public var hit:MovieClip;
public function bullet1(){
addFrameScript(4, frame5, 9, frame10, 15, frame16);
}
function frame10(){
gotoAndPlay("walk");
}
function frame16(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
function frame5(){
gotoAndPlay("stand");
}
}
}//package
Section 65
//caster1 (caster1)
package {
import flash.display.*;
public dynamic class caster1 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function caster1(){
addFrameScript(8, frame9, 29, frame30, 45, frame46, 60, frame61);
}
function frame9(){
gotoAndPlay("stand");
}
function frame30(){
gotoAndPlay("stand");
}
function frame46(){
gotoAndPlay("walk");
}
function frame61(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 66
//caster2 (caster2)
package {
import flash.display.*;
public dynamic class caster2 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function caster2(){
addFrameScript(8, frame9, 18, frame19, 34, frame35, 49, frame50);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame35(){
gotoAndPlay("walk");
}
function frame50(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 67
//colorindex (colorindex)
package {
import flash.display.*;
public dynamic class colorindex extends BitmapData {
public function colorindex(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 68
//cplayer (cplayer)
package {
import flash.display.*;
public dynamic class cplayer extends MovieClip {
public var hit:MovieClip;
public var hit2:MovieClip;
}
}//package
Section 69
//dmgshow (dmgshow)
package {
import flash.display.*;
public dynamic class dmgshow extends MovieClip {
public var dmg:MovieClip;
public function dmgshow(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 70
//door (door)
package {
import flash.display.*;
public dynamic class door extends MovieClip {
public var hit:MovieClip;
}
}//package
Section 71
//earthquakes (earthquakes)
package {
import flash.media.*;
public dynamic class earthquakes extends Sound {
}
}//package
Section 72
//fire (fire)
package {
import flash.media.*;
public dynamic class fire extends Sound {
}
}//package
Section 73
//fire_ball (fire_ball)
package {
import flash.display.*;
public dynamic class fire_ball extends MovieClip {
public var hit:MovieClip;
public function fire_ball(){
addFrameScript(8, frame9, 15, frame16, 25, frame26);
}
function frame16(){
gotoAndPlay("walk");
}
function frame26(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
function frame9(){
gotoAndPlay("stand");
}
}
}//package
Section 74
//flamegfx (flamegfx)
package {
import flash.display.*;
public dynamic class flamegfx extends MovieClip {
public function flamegfx(){
addFrameScript(7, frame8);
}
function frame8(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 75
//flamestatus (flamestatus)
package {
import flash.display.*;
public dynamic class flamestatus extends MovieClip {
public var hit:MovieClip;
}
}//package
Section 76
//foretree (foretree)
package {
import flash.display.*;
public dynamic class foretree extends MovieClip {
}
}//package
Section 77
//gfx_dash (gfx_dash)
package {
import flash.display.*;
public dynamic class gfx_dash extends MovieClip {
public function gfx_dash(){
addFrameScript(4, frame5);
}
function frame5(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 78
//gfx_heal (gfx_heal)
package {
import flash.display.*;
public dynamic class gfx_heal extends MovieClip {
public function gfx_heal(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 79
//gfx_heal_boss (gfx_heal_boss)
package {
import flash.display.*;
public dynamic class gfx_heal_boss extends MovieClip {
public function gfx_heal_boss(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 80
//gfx_levelup (gfx_levelup)
package {
import flash.display.*;
public dynamic class gfx_levelup extends MovieClip {
public function gfx_levelup(){
addFrameScript(49, frame50);
}
function frame50(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 81
//gfxavoid (gfxavoid)
package {
import flash.display.*;
public dynamic class gfxavoid extends MovieClip {
public function gfxavoid(){
addFrameScript(19, frame20);
}
function frame20(){
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 82
//gfxhunter (gfxhunter)
package {
import flash.display.*;
public dynamic class gfxhunter extends MovieClip {
public function gfxhunter(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 83
//gfxko (gfxko)
package {
import flash.display.*;
public dynamic class gfxko extends MovieClip {
public function gfxko(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 84
//gfxplayerwarp (gfxplayerwarp)
package {
import flash.display.*;
public dynamic class gfxplayerwarp extends MovieClip {
public function gfxplayerwarp(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 85
//gfxsniper (gfxsniper)
package {
import flash.display.*;
public dynamic class gfxsniper extends MovieClip {
public function gfxsniper(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 86
//ghost1 (ghost1)
package {
import flash.display.*;
public dynamic class ghost1 extends MovieClip {
public var hit:MovieClip;
public function ghost1(){
addFrameScript(5, frame6, 11, frame12, 17, frame18, 23, frame24);
}
function frame18(){
gotoAndPlay("walk");
}
function frame12(){
gotoAndPlay("stand");
}
function frame6(){
gotoAndPlay("stand");
}
function frame24(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 87
//healer1 (healer1)
package {
import flash.display.*;
public dynamic class healer1 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function healer1(){
addFrameScript(8, frame9, 18, frame19, 34, frame35, 49, frame50);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame35(){
gotoAndPlay("walk");
}
function frame50(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 88
//healer2 (healer2)
package {
import flash.display.*;
public dynamic class healer2 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function healer2(){
addFrameScript(8, frame9, 18, frame19, 34, frame35, 49, frame50);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame35(){
gotoAndPlay("walk");
}
function frame50(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 89
//homing (homing)
package {
import flash.display.*;
public dynamic class homing extends MovieClip {
public var hit:MovieClip;
public function homing(){
addFrameScript(8, frame9, 20, frame21, 30, frame31);
}
function frame9(){
gotoAndPlay("stand");
}
function frame21(){
gotoAndPlay("walk");
}
function frame31(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 90
//jumper1 (jumper1)
package {
import flash.display.*;
public dynamic class jumper1 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function jumper1(){
addFrameScript(8, frame9, 18, frame19, 28, frame29, 43, frame44);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame29(){
gotoAndPlay("walk");
}
function frame44(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 91
//jumper2 (jumper2)
package {
import flash.display.*;
public dynamic class jumper2 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function jumper2(){
addFrameScript(8, frame9, 18, frame19, 28, frame29, 43, frame44);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame29(){
gotoAndPlay("walk");
}
function frame44(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 92
//map1 (map1)
package {
import flash.display.*;
public dynamic class map1 extends BitmapData {
public function map1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 93
//map10 (map10)
package {
import flash.display.*;
public dynamic class map10 extends BitmapData {
public function map10(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 94
//map11 (map11)
package {
import flash.display.*;
public dynamic class map11 extends BitmapData {
public function map11(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 95
//map12 (map12)
package {
import flash.display.*;
public dynamic class map12 extends BitmapData {
public function map12(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 96
//map13 (map13)
package {
import flash.display.*;
public dynamic class map13 extends BitmapData {
public function map13(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 97
//map14 (map14)
package {
import flash.display.*;
public dynamic class map14 extends BitmapData {
public function map14(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 98
//map15 (map15)
package {
import flash.display.*;
public dynamic class map15 extends BitmapData {
public function map15(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 99
//map16 (map16)
package {
import flash.display.*;
public dynamic class map16 extends BitmapData {
public function map16(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 100
//map2 (map2)
package {
import flash.display.*;
public dynamic class map2 extends BitmapData {
public function map2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 101
//map3 (map3)
package {
import flash.display.*;
public dynamic class map3 extends BitmapData {
public function map3(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 102
//map4 (map4)
package {
import flash.display.*;
public dynamic class map4 extends BitmapData {
public function map4(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 103
//map5 (map5)
package {
import flash.display.*;
public dynamic class map5 extends BitmapData {
public function map5(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 104
//map6 (map6)
package {
import flash.display.*;
public dynamic class map6 extends BitmapData {
public function map6(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 105
//map7 (map7)
package {
import flash.display.*;
public dynamic class map7 extends BitmapData {
public function map7(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 106
//map8 (map8)
package {
import flash.display.*;
public dynamic class map8 extends BitmapData {
public function map8(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 107
//map9 (map9)
package {
import flash.display.*;
public dynamic class map9 extends BitmapData {
public function map9(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 108
//mapdat1 (mapdat1)
package {
import flash.display.*;
public dynamic class mapdat1 extends BitmapData {
public function mapdat1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 109
//mapdat10 (mapdat10)
package {
import flash.display.*;
public dynamic class mapdat10 extends BitmapData {
public function mapdat10(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 110
//mapdat11 (mapdat11)
package {
import flash.display.*;
public dynamic class mapdat11 extends BitmapData {
public function mapdat11(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 111
//mapdat12 (mapdat12)
package {
import flash.display.*;
public dynamic class mapdat12 extends BitmapData {
public function mapdat12(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 112
//mapdat13 (mapdat13)
package {
import flash.display.*;
public dynamic class mapdat13 extends BitmapData {
public function mapdat13(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 113
//mapdat14 (mapdat14)
package {
import flash.display.*;
public dynamic class mapdat14 extends BitmapData {
public function mapdat14(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 114
//mapdat15 (mapdat15)
package {
import flash.display.*;
public dynamic class mapdat15 extends BitmapData {
public function mapdat15(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 115
//mapdat16 (mapdat16)
package {
import flash.display.*;
public dynamic class mapdat16 extends BitmapData {
public function mapdat16(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 116
//mapdat2 (mapdat2)
package {
import flash.display.*;
public dynamic class mapdat2 extends BitmapData {
public function mapdat2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 117
//mapdat3 (mapdat3)
package {
import flash.display.*;
public dynamic class mapdat3 extends BitmapData {
public function mapdat3(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 118
//mapdat4 (mapdat4)
package {
import flash.display.*;
public dynamic class mapdat4 extends BitmapData {
public function mapdat4(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 119
//mapdat5 (mapdat5)
package {
import flash.display.*;
public dynamic class mapdat5 extends BitmapData {
public function mapdat5(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 120
//mapdat6 (mapdat6)
package {
import flash.display.*;
public dynamic class mapdat6 extends BitmapData {
public function mapdat6(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 121
//mapdat7 (mapdat7)
package {
import flash.display.*;
public dynamic class mapdat7 extends BitmapData {
public function mapdat7(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 122
//mapdat8 (mapdat8)
package {
import flash.display.*;
public dynamic class mapdat8 extends BitmapData {
public function mapdat8(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 123
//mapdat9 (mapdat9)
package {
import flash.display.*;
public dynamic class mapdat9 extends BitmapData {
public function mapdat9(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 124
//mine_layer1 (mine_layer1)
package {
import flash.display.*;
public dynamic class mine_layer1 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function mine_layer1(){
addFrameScript(17, frame18, 24, frame25, 42, frame43, 59, frame60);
}
function frame18(){
gotoAndPlay("stand");
}
function frame25(){
gotoAndPlay("stand");
}
function frame43(){
gotoAndPlay("walk");
}
function frame60(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 125
//mine_layer2 (mine_layer2)
package {
import flash.display.*;
public dynamic class mine_layer2 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function mine_layer2(){
addFrameScript(17, frame18, 24, frame25, 42, frame43, 59, frame60);
}
function frame18(){
gotoAndPlay("stand");
}
function frame25(){
gotoAndPlay("stand");
}
function frame43(){
gotoAndPlay("walk");
}
function frame60(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 126
//mine1 (mine1)
package {
import flash.display.*;
public dynamic class mine1 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function mine1(){
addFrameScript(8, frame9, 19, frame20, 27, frame28);
}
function frame20(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame28(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 127
//mine1_explode (mine1_explode)
package {
import flash.display.*;
public dynamic class mine1_explode extends MovieClip {
public var hit:MovieClip;
public function mine1_explode(){
addFrameScript(15, frame16, 23, frame24);
}
function frame16(){
gotoAndPlay("stand");
}
function frame24(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 128
//mine2 (mine2)
package {
import flash.display.*;
public dynamic class mine2 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function mine2(){
addFrameScript(8, frame9, 19, frame20, 27, frame28);
}
function frame20(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame28(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 129
//mine2_explode (mine2_explode)
package {
import flash.display.*;
public dynamic class mine2_explode extends MovieClip {
public var hit:MovieClip;
public function mine2_explode(){
addFrameScript(13, frame14, 21, frame22);
}
function frame14(){
gotoAndPlay("stand");
}
function frame22(){
stop();
MovieClip(this.parent).removeChild(this);
delete ??getglobalscope
[this];
}
}
}//package
Section 130
//moneyc (moneyc)
package {
import flash.display.*;
public dynamic class moneyc extends MovieClip {
}
}//package
Section 131
//mousecursor (mousecursor)
package {
import flash.display.*;
public dynamic class mousecursor extends MovieClip {
}
}//package
Section 132
//playerdamage (playerdamage)
package {
import flash.display.*;
public dynamic class playerdamage extends MovieClip {
public function playerdamage(){
addFrameScript(4, frame5);
}
function frame5(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 133
//quaker_jr (quaker_jr)
package {
import flash.display.*;
public dynamic class quaker_jr extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function quaker_jr(){
addFrameScript(8, frame9, 18, frame19, 34, frame35, 64, frame65);
}
function frame65(){
MovieClip(parent).removeChild(this);
stop();
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame35(){
gotoAndPlay("walk");
}
}
}//package
Section 134
//quaker1 (quaker1)
package {
import flash.display.*;
public dynamic class quaker1 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function quaker1(){
addFrameScript(8, frame9, 18, frame19, 38, frame39, 54, frame55);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame39(){
gotoAndPlay("walk");
}
function frame55(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 135
//quaker2 (quaker2)
package {
import flash.display.*;
public dynamic class quaker2 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function quaker2(){
addFrameScript(8, frame9, 18, frame19, 38, frame39, 54, frame55);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame39(){
gotoAndPlay("walk");
}
function frame55(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 136
//reload (reload)
package {
import flash.media.*;
public dynamic class reload extends Sound {
}
}//package
Section 137
//sce_world1 (sce_world1)
package {
import flash.display.*;
public dynamic class sce_world1 extends MovieClip {
}
}//package
Section 138
//sce_world1_bg (sce_world1_bg)
package {
import flash.display.*;
public dynamic class sce_world1_bg extends MovieClip {
}
}//package
Section 139
//sce_world2 (sce_world2)
package {
import flash.display.*;
public dynamic class sce_world2 extends MovieClip {
}
}//package
Section 140
//sce_world2_bg (sce_world2_bg)
package {
import flash.display.*;
public dynamic class sce_world2_bg extends MovieClip {
}
}//package
Section 141
//sce_world3 (sce_world3)
package {
import flash.display.*;
public dynamic class sce_world3 extends MovieClip {
}
}//package
Section 142
//sce_world3_bg (sce_world3_bg)
package {
import flash.display.*;
public dynamic class sce_world3_bg extends MovieClip {
}
}//package
Section 143
//sce_world4 (sce_world4)
package {
import flash.display.*;
public dynamic class sce_world4 extends MovieClip {
}
}//package
Section 144
//sce_world4_bg (sce_world4_bg)
package {
import flash.display.*;
public dynamic class sce_world4_bg extends MovieClip {
}
}//package
Section 145
//shooter1 (shooter1)
package {
import flash.display.*;
public dynamic class shooter1 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function shooter1(){
addFrameScript(8, frame9, 18, frame19, 30, frame31, 44, frame45);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame31(){
gotoAndPlay("walk");
}
function frame45(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 146
//shooter2 (shooter2)
package {
import flash.display.*;
public dynamic class shooter2 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function shooter2(){
addFrameScript(8, frame9, 18, frame19, 30, frame31, 44, frame45);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame31(){
gotoAndPlay("walk");
}
function frame45(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 147
//shootgfx (shootgfx)
package {
import flash.display.*;
public dynamic class shootgfx extends MovieClip {
public function shootgfx(){
addFrameScript(5, frame6);
}
function frame6(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 148
//shot (shot)
package {
import flash.media.*;
public dynamic class shot extends Sound {
}
}//package
Section 149
//showplayer (showplayer)
package {
import flash.display.*;
public dynamic class showplayer extends MovieClip {
public var reloadgage:MovieClip;
public var p:MovieClip;
}
}//package
Section 150
//slave1 (slave1)
package {
import flash.display.*;
public dynamic class slave1 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function slave1(){
addFrameScript(8, frame9, 18, frame19, 30, frame31, 44, frame45);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame31(){
gotoAndPlay("walk");
}
function frame45(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 151
//soldier1 (soldier1)
package {
import flash.display.*;
public dynamic class soldier1 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function soldier1(){
addFrameScript(8, frame9, 18, frame19, 34, frame35, 49, frame50);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame35(){
gotoAndPlay("walk");
}
function frame50(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 152
//soldier2 (soldier2)
package {
import flash.display.*;
public dynamic class soldier2 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function soldier2(){
addFrameScript(8, frame9, 18, frame19, 34, frame35, 49, frame50);
}
function frame19(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame35(){
gotoAndPlay("walk");
}
function frame50(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 153
//soldier3 (soldier3)
package {
import flash.display.*;
public dynamic class soldier3 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function soldier3(){
addFrameScript(8, frame9, 12, frame13, 28, frame29, 44, frame45);
}
function frame13(){
gotoAndPlay("stand");
}
function frame9(){
gotoAndPlay("stand");
}
function frame29(){
gotoAndPlay("walk");
}
function frame45(){
MovieClip(parent).removeChild(this);
stop();
}
}
}//package
Section 154
//stone (stone)
package {
import flash.display.*;
public dynamic class stone extends MovieClip {
public var hit:MovieClip;
public function stone(){
addFrameScript(8, frame9, 20, frame21, 30, frame31);
}
function frame9(){
gotoAndPlay("stand");
}
function frame21(){
gotoAndPlay("walk");
}
function frame31(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 155
//thunder (thunder)
package {
import flash.display.*;
public dynamic class thunder extends MovieClip {
public function thunder(){
addFrameScript(19, frame20);
}
function frame20(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 156
//thunders (thunders)
package {
import flash.media.*;
public dynamic class thunders extends Sound {
}
}//package
Section 157
//thundersub (thundersub)
package {
import flash.display.*;
public dynamic class thundersub extends MovieClip {
public function thundersub(){
addFrameScript(9, frame10);
}
function frame10(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 158
//thundersub2 (thundersub2)
package {
import flash.display.*;
public dynamic class thundersub2 extends MovieClip {
public function thundersub2(){
addFrameScript(9, frame10);
}
function frame10(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package
Section 159
//warpgate (warpgate)
package {
import flash.display.*;
public dynamic class warpgate extends MovieClip {
public function warpgate(){
addFrameScript(89, frame90);
}
function frame90(){
MovieClip(parent).removeChild(this);
delete ??getglobalscope
[this];
stop();
}
}
}//package