Section 1
//KongregateEvent (com.kongregate.as3.client.events.KongregateEvent)
package com.kongregate.as3.client.events {
import flash.events.*;
public class KongregateEvent extends Event {
public static const COMPLETE:String = "component_api_available";
public function KongregateEvent(_arg1:String){
super(_arg1);
}
}
}//package com.kongregate.as3.client.events
Section 2
//AbstractShadowService (com.kongregate.as3.client.services.AbstractShadowService)
package com.kongregate.as3.client.services {
import flash.events.*;
public class AbstractShadowService extends EventDispatcher {
protected function alert(_arg1:String, _arg2:String, _arg3="", _arg4:String=""):void{
trace(((((((("Kongregate API: " + _arg1) + ".") + _arg2) + "(") + _arg3) + ") ") + _arg4));
}
}
}//package com.kongregate.as3.client.services
Section 3
//HighScoreServiceShadow (com.kongregate.as3.client.services.HighScoreServiceShadow)
package com.kongregate.as3.client.services {
public class HighScoreServiceShadow extends AbstractShadowService implements IHighScoreServices {
private var mode:String;
public function HighScoreServiceShadow(){
mode = "";
}
public function submit(_arg1:Number, _arg2:String=null):void{
alert("IHighScoreServices", "submit", arguments);
}
public function connect():Boolean{
alert("IKongregateServices", "connect");
return (true);
}
public function requestList(_arg1:Function):void{
alert("IHighScoreServices", "requestList", "", (("[Mode: " + mode) + "]"));
_arg1({success:false});
}
public function setMode(_arg1:String):void{
alert("IHighScoreServices", "setMode", arguments);
this.mode = _arg1;
}
}
}//package com.kongregate.as3.client.services
Section 4
//IHighScoreServices (com.kongregate.as3.client.services.IHighScoreServices)
package com.kongregate.as3.client.services {
public interface IHighScoreServices {
function setMode(_arg1:String):void;
function submit(_arg1:Number, _arg2:String=null):void;
function requestList(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 5
//IKongregateServices (com.kongregate.as3.client.services.IKongregateServices)
package com.kongregate.as3.client.services {
import flash.events.*;
public interface IKongregateServices extends IEventDispatcher {
function getPlayerInfo(_arg1:Function):void;
function connect(_arg1:Number=-1):Boolean;
}
}//package com.kongregate.as3.client.services
Section 6
//IStatServices (com.kongregate.as3.client.services.IStatServices)
package com.kongregate.as3.client.services {
public interface IStatServices {
function submitArray(_arg1:Array):void;
function submit(_arg1:String, _arg2:Number):void;
}
}//package com.kongregate.as3.client.services
Section 7
//IUserServices (com.kongregate.as3.client.services.IUserServices)
package com.kongregate.as3.client.services {
public interface IUserServices {
function getName():String;
function getPlayerInfo(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 8
//KongregateServiceShadow (com.kongregate.as3.client.services.KongregateServiceShadow)
package com.kongregate.as3.client.services {
public class KongregateServiceShadow extends AbstractShadowService implements IKongregateServices {
public function getName():String{
alert("IKongregateServices", "getName");
return ("Guest");
}
public function connect(_arg1:Number=-1):Boolean{
alert("IKongregateServices", "connect", arguments);
return (true);
}
public function getPlayerInfo(_arg1:Function):void{
alert("IKongregateServices", "getPlayerInfo");
_arg1(new Object());
}
}
}//package com.kongregate.as3.client.services
Section 9
//StatServiceShadow (com.kongregate.as3.client.services.StatServiceShadow)
package com.kongregate.as3.client.services {
public class StatServiceShadow extends AbstractShadowService implements IStatServices {
public function submitArray(_arg1:Array):void{
alert("IStatServices", "submitArray", arguments);
}
public function submit(_arg1:String, _arg2:Number):void{
alert("IStatServices", "submitStat", arguments);
}
}
}//package com.kongregate.as3.client.services
Section 10
//UserServiceShadow (com.kongregate.as3.client.services.UserServiceShadow)
package com.kongregate.as3.client.services {
public class UserServiceShadow extends AbstractShadowService implements IUserServices {
public function getName():String{
alert("UserService", "getName");
return ("Guest");
}
public function getPlayerInfo(_arg1:Function):void{
alert("UserService", "getPlayerInfo");
_arg1({isGuest:true, name:"Guest", points:0, level:0, isMode:false, isAdmin:false, isDeveloper:false, avatarPath:"", chatAvatarPath:""});
}
}
}//package com.kongregate.as3.client.services
Section 11
//IAPIBootstrap (com.kongregate.as3.client.IAPIBootstrap)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
public interface IAPIBootstrap {
function init(_arg1:Event=null, _arg2:Stage=null):void;
function hideLog():void;
function showLog(_arg1:int=0):void;
}
}//package com.kongregate.as3.client
Section 12
//KongregateAPI (com.kongregate.as3.client.KongregateAPI)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
import com.kongregate.as3.client.events.*;
import com.kongregate.as3.client.services.*;
import flash.utils.*;
import flash.system.*;
import flash.errors.*;
import flash.net.*;
public class KongregateAPI extends Sprite {
private const VERSION:Number = 1;
private var loader:Loader;
private var loadedDomain:ApplicationDomain;
private static const CLASS_USER:String = "com.kongregate.as3.client.services.UserServices";
private static const CLASS_STATS:String = "com.kongregate.as3.client.services.StatServices";
private static const CLASS_SERVICES:String = "com.kongregate.as3.client.services.KongregateServices";
private static const CLASS_SCORES:String = "com.kongregate.as3.client.services.HighScoreServices";
private static const DEBUG_API_URL:String = "//Linuxpc/kongregate/public/flash/API_AS3.swf";
private static var _connected:Boolean;
private static var kUser:IUserServices;
private static var _loaded:Boolean;
private static var kServices:IKongregateServices;
private static var kScores:IHighScoreServices;
private static var mInstance:KongregateAPI;
private static var kStats:IStatServices;
private static var kAPI:IAPIBootstrap;
public function KongregateAPI(){
if (mInstance != null){
throw (new Error("Warning: KongregateAPI has been added to stage more than once or accessed improperly. Use getInstance() or a stage reference to access."));
};
mInstance = this;
this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}
public function get loaded():Boolean{
return (_loaded);
}
public function get connected():Boolean{
return (_connected);
}
private function alertConnected(_arg1:TimerEvent=null):void{
var _local2:KongregateEvent;
var _local3:Boolean;
_local2 = new KongregateEvent(KongregateEvent.COMPLETE);
_local3 = this.dispatchEvent(_local2);
}
private function init(_arg1:Event):void{
var _local2:Object;
var _local3:String;
var _local4:URLRequest;
var _local5:LoaderContext;
this.removeEventListener(Event.ADDED_TO_STAGE, init);
_loaded = false;
_connected = false;
_local2 = LoaderInfo(root.loaderInfo).parameters;
_local3 = _local2.api_path;
if (_local3 == null){
trace("Alert: Kongregate API could not be loaded, due to local testing. API will load when the game is uploaded.");
createShadowServices();
return;
};
Security.allowDomain("*.kongregate.com");
Security.allowDomain("kongregatetrunk.com");
_local4 = new URLRequest(_local3);
_local5 = new LoaderContext(false);
_local5.applicationDomain = ApplicationDomain.currentDomain;
_local5.securityDomain = SecurityDomain.currentDomain;
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.load(_local4, _local5);
}
public function get api():IAPIBootstrap{
return (kAPI);
}
private function loadComplete(_arg1:Event):void{
getServices();
}
public function get scores():IHighScoreServices{
return (kScores);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
throw (new IOError(("API file not found. " + _arg1)));
}
public function get services():IKongregateServices{
return (kServices);
}
public function get stats():IStatServices{
return (kStats);
}
private function createShadowServices():void{
var _local1:Timer;
trace(">>> Kongregate Shadow Services instantiated for local development..");
kServices = new KongregateServiceShadow();
kScores = new HighScoreServiceShadow();
kStats = new StatServiceShadow();
kUser = new UserServiceShadow();
_local1 = new Timer(200, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, alertConnected);
_local1.start();
_connected = true;
}
public function get user():IUserServices{
return (kUser);
}
private function getServices():void{
var _local1:ApplicationDomain;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = ApplicationDomain.currentDomain;
kAPI = IAPIBootstrap(loader.getChildAt(0));
this.addChild(loader);
_local2 = _local1.getDefinition(CLASS_SERVICES);
trace(_local2);
kServices = _local2.getInstance();
_local3 = _local1.getDefinition(CLASS_SCORES);
kScores = _local3.getInstance();
_local4 = _local1.getDefinition(CLASS_STATS);
kStats = _local4.getInstance();
_local5 = _local1.getDefinition(CLASS_USER);
kUser = _local5.getInstance();
kServices.connect(VERSION);
_loaded = true;
_connected = true;
alertConnected();
}
public static function getInstance():KongregateAPI{
if (!mInstance){
throw (new IllegalOperationError("You must add the Kongregate API component to the stage before attempting to access it."));
};
return (mInstance);
}
}
}//package com.kongregate.as3.client
Section 13
//ControlKey (FZBase.Control.ControlKey)
package FZBase.Control {
import flash.events.*;
public class ControlKey {
private var key_press;
private var key_press2;
private var clip;
private var key_hold;
public function refreshKey(){
key_press2.refreshKey();
key_press.refreshKey();
key_hold.refreshKey();
}
public function getKeyHold():Object{
if (key_hold){
return (key_hold);
};
return (null);
}
private function keyPressed(_arg1:KeyboardEvent):void{
if (key_press.getKeyFlag(_arg1.keyCode) == key_hold.getKeyFlag(_arg1.keyCode)){
key_press.setKeyFlag(_arg1.keyCode, true);
} else {
key_press.setKeyFlag(_arg1.keyCode, false);
};
key_press2.setKeyFlag(_arg1.keyCode, true);
key_hold.setKeyFlag(_arg1.keyCode, true);
clip.addEventListener(Event.ENTER_FRAME, keyPressHandle, false, 0, true);
}
private function keyPressHandle(_arg1:Event):void{
key_press.refreshKey();
key_press2.refreshKey();
clip.removeEventListener(Event.ENTER_FRAME, keyPressHandle);
}
private function deactiveHandle(_arg1:Event):void{
refreshKey();
trace(" deactive !! ");
}
public function initialise(_arg1){
clip = _arg1;
key_press = new KeyFlag();
key_hold = new KeyFlag();
key_press2 = new KeyFlag();
clip.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed, false, 0, true);
clip.addEventListener(KeyboardEvent.KEY_UP, keyReleased, false, 0, true);
clip.addEventListener(Event.ENTER_FRAME, keyFocus, false, 0, true);
clip.addEventListener(Event.DEACTIVATE, deactiveHandle, false, 0, true);
}
public function getKeyPress2():Object{
if (key_press2){
return (key_press2);
};
return (null);
}
private function keyFocus(_arg1:Event):void{
clip.stage.focus = clip;
}
public function getKeyPress():Object{
if (key_press){
return (key_press);
};
return (null);
}
private function keyReleased(_arg1:KeyboardEvent){
key_hold.setKeyFlag(_arg1.keyCode, false);
}
}
}//package FZBase.Control
Section 14
//KeyFlag (FZBase.Control.KeyFlag)
package FZBase.Control {
public class KeyFlag {
public var KEY_LEFT:Boolean;// = false
public var KEY_PGDOWN:Boolean;// = false
public var KEY_0:Boolean;// = false
public var KEY_1:Boolean;// = false
public var KEY_2:Boolean;// = false
public var KEY_3:Boolean;// = false
public var KEY_4:Boolean;// = false
public var KEY_5:Boolean;// = false
public var KEY_6:Boolean;// = false
public var KEY_7:Boolean;// = false
public var KEY_8:Boolean;// = false
public var KEY_9:Boolean;// = false
public var KEY_CONTROL:Boolean;// = false
public var KEY_A:Boolean;// = false
public var KEY_B:Boolean;// = false
public var KEY_C:Boolean;// = false
public var KEY_D:Boolean;// = false
public var KEY_E:Boolean;// = false
public var KEY_F:Boolean;// = false
public var KEY_G:Boolean;// = false
public var KEY_H:Boolean;// = false
public var KEY_I:Boolean;// = false
public var KEY_J:Boolean;// = false
public var KEY_K:Boolean;// = false
public var KEY_L:Boolean;// = false
public var KEY_M:Boolean;// = false
public var KEY_N:Boolean;// = false
public var KEY_O:Boolean;// = false
public var KEY_P:Boolean;// = false
public var KEY_Q:Boolean;// = false
public var KEY_R:Boolean;// = false
public var KEY_S:Boolean;// = false
public var KEY_T:Boolean;// = false
public var KEY_U:Boolean;// = false
public var KEY_V:Boolean;// = false
public var KEY_W:Boolean;// = false
public var KEY_X:Boolean;// = false
public var KEY_Y:Boolean;// = false
public var KEY_Z:Boolean;// = false
public var KEY_SHIFT:Boolean;// = false
public var KEY_TAB:Boolean;// = false
public var KEY_ESC:Boolean;// = false
public var KEY_BACKSPACE:Boolean;// = false
public var KEY_NUM1:Boolean;// = false
public var KEY_NUM3:Boolean;// = false
public var KEY_NUM5:Boolean;// = false
public var KEY_NUM0:Boolean;// = false
public var KEY_NUM2:Boolean;// = false
public var KEY_NUM4:Boolean;// = false
public var KEY_NUM6:Boolean;// = false
public var KEY_NUM8:Boolean;// = false
public var KEY_UP:Boolean;// = false
public var KEY_NUM7:Boolean;// = false
public var KEY_NUM9:Boolean;// = false
public var KEY_F3:Boolean;// = false
public var KEY_F5:Boolean;// = false
public var KEY_F7:Boolean;// = false
public var KEY_F2:Boolean;// = false
public var KEY_F4:Boolean;// = false
public var KEY_F6:Boolean;// = false
public var KEY_ENTER:Boolean;// = false
public var KEY_F8:Boolean;// = false
public var KEY_F1:Boolean;// = false
public var KEY_END:Boolean;// = false
public var KEY_INSERT:Boolean;// = false
public var KEY_F9:Boolean;// = false
public var KEY_DELETE:Boolean;// = false
public var KEY_DOWN:Boolean;// = false
public var KEY_PGUP:Boolean;// = false
public var KEY_HOME:Boolean;// = false
public var KEY_F10:Boolean;// = false
public var KEY_F11:Boolean;// = false
public var KEY_F12:Boolean;// = false
public var KEY_SPACE:Boolean;// = false
public var KEY_RIGHT:Boolean;// = false
public function getKeyFlag(_arg1):Boolean{
switch (_arg1){
case 65:
if (KEY_A){
return (true);
};
break;
case 66:
if (KEY_B){
return (true);
};
break;
case 67:
if (KEY_C){
return (true);
};
break;
case 68:
if (KEY_D){
return (true);
};
break;
case 69:
if (KEY_E){
return (true);
};
break;
case 70:
if (KEY_F){
return (true);
};
break;
case 71:
if (KEY_G){
return (true);
};
break;
case 72:
if (KEY_H){
return (true);
};
break;
case 73:
if (KEY_I){
return (true);
};
break;
case 74:
if (KEY_J){
return (true);
};
break;
case 75:
if (KEY_K){
return (true);
};
break;
case 76:
if (KEY_L){
return (true);
};
break;
case 77:
if (KEY_M){
return (true);
};
break;
case 78:
if (KEY_N){
return (true);
};
break;
case 79:
if (KEY_O){
return (true);
};
break;
case 80:
if (KEY_P){
return (true);
};
break;
case 81:
if (KEY_Q){
return (true);
};
break;
case 82:
if (KEY_R){
return (true);
};
break;
case 83:
if (KEY_S){
return (true);
};
break;
case 84:
if (KEY_T){
return (true);
};
break;
case 85:
if (KEY_U){
return (true);
};
break;
case 86:
if (KEY_V){
return (true);
};
break;
case 87:
if (KEY_W){
return (true);
};
break;
case 88:
if (KEY_X){
return (true);
};
break;
case 89:
if (KEY_Y){
return (true);
};
break;
case 90:
if (KEY_Z){
return (true);
};
break;
case 48:
if (KEY_0){
return (true);
};
break;
case 49:
if (KEY_1){
return (true);
};
break;
case 50:
if (KEY_2){
return (true);
};
break;
case 51:
if (KEY_3){
return (true);
};
break;
case 52:
if (KEY_4){
return (true);
};
break;
case 53:
if (KEY_5){
return (true);
};
break;
case 54:
if (KEY_6){
return (true);
};
break;
case 55:
if (KEY_7){
return (true);
};
break;
case 56:
if (KEY_8){
return (true);
};
break;
case 57:
if (KEY_9){
return (true);
};
break;
case 96:
if (KEY_NUM0){
return (true);
};
break;
case 97:
if (KEY_NUM1){
return (true);
};
break;
case 98:
if (KEY_NUM2){
return (true);
};
break;
case 99:
if (KEY_NUM3){
return (true);
};
break;
case 100:
if (KEY_NUM4){
return (true);
};
break;
case 101:
if (KEY_NUM5){
return (true);
};
break;
case 102:
if (KEY_NUM6){
return (true);
};
break;
case 103:
if (KEY_NUM7){
return (true);
};
break;
case 104:
if (KEY_NUM8){
return (true);
};
break;
case 105:
if (KEY_NUM9){
return (true);
};
break;
case 112:
if (KEY_F1){
return (true);
};
break;
case 113:
if (KEY_F2){
return (true);
};
break;
case 114:
if (KEY_F3){
return (true);
};
break;
case 115:
if (KEY_F4){
return (true);
};
break;
case 116:
if (KEY_F5){
return (true);
};
break;
case 117:
if (KEY_F6){
return (true);
};
break;
case 118:
if (KEY_F7){
return (true);
};
break;
case 119:
if (KEY_F8){
return (true);
};
break;
case 120:
if (KEY_F9){
return (true);
};
break;
case 122:
if (KEY_F11){
return (true);
};
break;
case 123:
if (KEY_F12){
return (true);
};
break;
case 27:
if (KEY_ESC){
return (true);
};
break;
case 13:
if (KEY_ENTER){
return (true);
};
break;
case 32:
if (KEY_SPACE){
return (true);
};
break;
case 16:
if (KEY_SHIFT){
return (true);
};
break;
case 17:
if (KEY_CONTROL){
return (true);
};
break;
case 9:
if (KEY_TAB){
return (true);
};
break;
case 8:
if (KEY_BACKSPACE){
return (true);
};
break;
case 33:
if (KEY_PGUP){
return (true);
};
break;
case 34:
if (KEY_PGDOWN){
return (true);
};
break;
case 35:
if (KEY_END){
return (true);
};
break;
case 36:
if (KEY_HOME){
return (true);
};
break;
case 45:
if (KEY_INSERT){
return (true);
};
break;
case 46:
if (KEY_DELETE){
return (true);
};
break;
case 37:
if (KEY_LEFT){
return (true);
};
break;
case 38:
if (KEY_UP){
return (true);
};
break;
case 39:
if (KEY_RIGHT){
return (true);
};
break;
case 40:
if (KEY_DOWN){
return (true);
};
break;
default:
break;
};
return (false);
}
public function refreshKey(){
KEY_A = false;
KEY_B = false;
KEY_C = false;
KEY_D = false;
KEY_E = false;
KEY_F = false;
KEY_G = false;
KEY_H = false;
KEY_I = false;
KEY_J = false;
KEY_K = false;
KEY_L = false;
KEY_M = false;
KEY_N = false;
KEY_O = false;
KEY_P = false;
KEY_Q = false;
KEY_R = false;
KEY_S = false;
KEY_T = false;
KEY_U = false;
KEY_V = false;
KEY_W = false;
KEY_X = false;
KEY_Y = false;
KEY_Z = false;
KEY_0 = false;
KEY_1 = false;
KEY_2 = false;
KEY_3 = false;
KEY_4 = false;
KEY_5 = false;
KEY_6 = false;
KEY_7 = false;
KEY_8 = false;
KEY_9 = false;
KEY_NUM0 = false;
KEY_NUM1 = false;
KEY_NUM2 = false;
KEY_NUM3 = false;
KEY_NUM4 = false;
KEY_NUM5 = false;
KEY_NUM6 = false;
KEY_NUM7 = false;
KEY_NUM8 = false;
KEY_NUM9 = false;
KEY_F1 = false;
KEY_F2 = false;
KEY_F3 = false;
KEY_F4 = false;
KEY_F5 = false;
KEY_F6 = false;
KEY_F7 = false;
KEY_F8 = false;
KEY_F9 = false;
KEY_F10 = false;
KEY_F11 = false;
KEY_F12 = false;
KEY_ESC = false;
KEY_ENTER = false;
KEY_SPACE = false;
KEY_SHIFT = false;
KEY_CONTROL = false;
KEY_TAB = false;
KEY_BACKSPACE = false;
KEY_PGUP = false;
KEY_PGDOWN = false;
KEY_END = false;
KEY_HOME = false;
KEY_INSERT = false;
KEY_DELETE = false;
KEY_UP = false;
KEY_DOWN = false;
KEY_LEFT = false;
KEY_RIGHT = false;
}
public function setKeyFlag(_arg1, _arg2){
switch (_arg1){
case 65:
KEY_A = _arg2;
break;
case 66:
KEY_B = _arg2;
break;
case 67:
KEY_C = _arg2;
break;
case 68:
KEY_D = _arg2;
break;
case 69:
KEY_E = _arg2;
break;
case 70:
KEY_F = _arg2;
break;
case 71:
KEY_G = _arg2;
break;
case 72:
KEY_H = _arg2;
break;
case 73:
KEY_I = _arg2;
break;
case 74:
KEY_J = _arg2;
break;
case 75:
KEY_K = _arg2;
break;
case 76:
KEY_L = _arg2;
break;
case 77:
KEY_M = _arg2;
break;
case 78:
KEY_N = _arg2;
break;
case 79:
KEY_O = _arg2;
break;
case 80:
KEY_P = _arg2;
break;
case 81:
KEY_Q = _arg2;
break;
case 82:
KEY_R = _arg2;
break;
case 83:
KEY_S = _arg2;
break;
case 84:
KEY_T = _arg2;
break;
case 85:
KEY_U = _arg2;
break;
case 86:
KEY_V = _arg2;
break;
case 87:
KEY_W = _arg2;
break;
case 88:
KEY_X = _arg2;
break;
case 89:
KEY_Y = _arg2;
break;
case 90:
KEY_Z = _arg2;
break;
case 48:
KEY_0 = _arg2;
break;
case 49:
KEY_1 = _arg2;
break;
case 50:
KEY_2 = _arg2;
break;
case 51:
KEY_3 = _arg2;
break;
case 52:
KEY_4 = _arg2;
break;
case 53:
KEY_5 = _arg2;
break;
case 54:
KEY_6 = _arg2;
break;
case 55:
KEY_7 = _arg2;
break;
case 56:
KEY_8 = _arg2;
break;
case 57:
KEY_9 = _arg2;
break;
case 96:
KEY_NUM0 = _arg2;
break;
case 97:
KEY_NUM1 = _arg2;
break;
case 98:
KEY_NUM2 = _arg2;
break;
case 99:
KEY_NUM3 = _arg2;
break;
case 100:
KEY_NUM4 = _arg2;
break;
case 101:
KEY_NUM5 = _arg2;
break;
case 102:
KEY_NUM6 = _arg2;
break;
case 103:
KEY_NUM7 = _arg2;
break;
case 104:
KEY_NUM8 = _arg2;
break;
case 105:
KEY_NUM9 = _arg2;
break;
case 112:
KEY_F1 = _arg2;
break;
case 113:
KEY_F2 = _arg2;
break;
case 114:
KEY_F3 = _arg2;
break;
case 115:
KEY_F4 = _arg2;
break;
case 116:
KEY_F5 = _arg2;
break;
case 117:
KEY_F6 = _arg2;
break;
case 118:
KEY_F7 = _arg2;
break;
case 119:
KEY_F8 = _arg2;
break;
case 120:
KEY_F9 = _arg2;
break;
case 122:
KEY_F11 = _arg2;
break;
case 123:
KEY_F12 = _arg2;
break;
case 27:
KEY_ESC = _arg2;
break;
case 13:
KEY_ENTER = _arg2;
break;
case 32:
KEY_SPACE = _arg2;
break;
case 16:
KEY_SHIFT = _arg2;
break;
case 17:
KEY_CONTROL = _arg2;
break;
case 9:
KEY_TAB = _arg2;
break;
case 8:
KEY_BACKSPACE = _arg2;
break;
case 33:
KEY_PGUP = _arg2;
break;
case 34:
KEY_PGDOWN = _arg2;
break;
case 35:
KEY_END = _arg2;
break;
case 36:
KEY_HOME = _arg2;
break;
case 45:
KEY_INSERT = _arg2;
break;
case 46:
KEY_DELETE = _arg2;
break;
case 37:
KEY_LEFT = _arg2;
break;
case 38:
KEY_UP = _arg2;
break;
case 39:
KEY_RIGHT = _arg2;
break;
case 40:
KEY_DOWN = _arg2;
break;
default:
break;
};
}
}
}//package FZBase.Control
Section 15
//BGM (FZBase.Sound.BGM)
package FZBase.Sound {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class BGM extends Sound {
private var sndTransform:SoundTransform;
private var sndFadeOut:Boolean;
private var sndFadeIn:Boolean;
private var sndPan:Number;
private var sndObj:Sound;
private var sndPosTime:Number;
private var sndChannel:SoundChannel;
private var sndTimer:Timer;
private var sndVolume:Number;
private var loop:Boolean;
public function BGM(){
sndObj = this;
sndChannel = null;
sndTransform = null;
sndVolume = 1;
sndPan = 0;
sndPosTime = 0;
sndFadeIn = false;
sndFadeOut = false;
loop = false;
sndTimer = new Timer(50);
sndTimer.addEventListener(TimerEvent.TIMER, sndTimerHandler);
sndTimer.start();
}
public function fadeIn(_arg1:Boolean):void{
sndFadeIn = true;
sndFadeOut = false;
if (_arg1){
setVolume(0);
};
trace("Fade In Effect ");
}
private function sndTimerHandler(_arg1:TimerEvent):void{
if (((sndFadeIn) && (sndFadeOut))){
sndFadeIn = false;
sndFadeOut = false;
setVolume(1);
};
if (sndFadeIn){
sndVolume = (sndVolume + 0.01);
if (sndVolume > 1){
setVolume(1);
sndFadeIn = false;
} else {
setVolume(sndVolume);
};
};
if (sndFadeOut){
sndVolume = (sndVolume - 0.01);
if (sndVolume < 0){
setVolume(0);
sndFadeOut = false;
} else {
setVolume(sndVolume);
};
};
}
public function setPan(_arg1:Number):void{
var _local2:SoundTransform;
sndPan = _arg1;
if (sndChannel){
_local2 = sndChannel.soundTransform;
_local2.pan = sndPan;
sndChannel.soundTransform = _local2;
};
}
public function resumeSound():void{
stopSound();
sndChannel = sndObj.play(sndPosTime);
if (loop){
sndChannel.addEventListener(Event.SOUND_COMPLETE, sound_loop);
};
setVolume(sndVolume);
setPan(sndPan);
trace("resumeSound() ");
}
private function sound_loop(_arg1:Event){
sndChannel = sndObj.play();
setVolume(sndVolume);
setPan(sndPan);
sndChannel.addEventListener(Event.SOUND_COMPLETE, sound_loop);
trace("Loop Back ");
}
public function stopSound():void{
if (sndChannel){
sndChannel.stop();
sndChannel.removeEventListener(Event.SOUND_COMPLETE, sound_loop);
loop = false;
trace("stopSound() ");
};
}
public function fadeOut(_arg1:Boolean):void{
sndFadeOut = true;
sndFadeIn = false;
if (_arg1){
setVolume(1);
};
trace("Fade Out Effect ");
}
public function pauseSound():void{
if (sndChannel){
sndPosTime = sndChannel.position;
sndChannel.stop();
sndChannel.removeEventListener(Event.SOUND_COMPLETE, sound_loop);
trace(("pauseSound(), Position :" + String(sndPosTime)));
};
}
public function playSound():void{
stopSound();
sndChannel = sndObj.play();
setVolume(sndVolume);
setPan(sndPan);
trace("playSound() ");
}
public function setVolume(_arg1:Number):void{
var _local2:SoundTransform;
sndVolume = _arg1;
if (sndChannel){
_local2 = sndChannel.soundTransform;
_local2.volume = sndVolume;
sndChannel.soundTransform = _local2;
};
}
public function playSoundLoop():void{
stopSound();
sndChannel = sndObj.play();
sndChannel.addEventListener(Event.SOUND_COMPLETE, sound_loop);
setVolume(sndVolume);
setPan(sndPan);
loop = true;
trace("playSoundLoop() ");
}
}
}//package FZBase.Sound
Section 16
//SE (FZBase.Sound.SE)
package FZBase.Sound {
import flash.media.*;
public class SE extends Sound {
private var sndVolume:Number;
private var sndChannel:SoundChannel;
private var sndObj:Sound;
public function SE(){
sndObj = this;
sndChannel = null;
sndVolume = 1;
}
public function setVolume(_arg1:Number):void{
var _local2:SoundTransform;
sndVolume = _arg1;
if (sndChannel){
_local2 = sndChannel.soundTransform;
_local2.volume = sndVolume;
sndChannel.soundTransform = _local2;
};
}
public function playSound(_arg1:Number=1):void{
stopSound();
sndChannel = sndObj.play();
sndVolume = _arg1;
setVolume(sndVolume);
}
public function stopSound():void{
if (sndChannel){
sndChannel.stop();
};
}
}
}//package FZBase.Sound
Section 17
//CPMStar (FZBase.System.CPMStar)
package FZBase.System {
import flash.errors.*;
public class CPMStar {
private var ad;// = null
private var clipCont;
public function initCPMStar(_arg1, _arg2:String="292Q7743BDB4"){
var _clipCont = _arg1;
var CPMStarContentSpotID = _arg2;
clipCont = _clipCont;
if (clipCont != null){
try {
ad = new CPMStarAdLoader(CPMStarContentSpotID);
clipCont.addChild(ad);
trace("init cpm star .... ");
} catch(error:IOError) {
trace("cpmstar IO error");
} catch(error:TypeError) {
trace("cpmstar type error");
} catch(error:SecurityError) {
trace("cpmstar security error");
} catch(error:Error) {
trace("cpmstar error");
};
};
}
public function removeCPMStar(){
if (clipCont != null){
if (ad != null){
try {
clipCont.removeChild(ad);
trace("remove cpm star .... ");
} catch(error:IOError) {
trace("cpmstar IO error");
} catch(error:TypeError) {
trace("cpmstar type error");
} catch(error:SecurityError) {
trace("cpmstar security error");
} catch(error:Error) {
trace("cpmstar error");
};
};
ad = null;
clipCont = null;
};
}
}
}//package FZBase.System
Section 18
//CPMStarAdLoader (FZBase.System.CPMStarAdLoader)
package FZBase.System {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
public class CPMStarAdLoader extends Sprite {
private var cpmstarLoader:Loader;
private var contentspotid:String;
public function CPMStarAdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function addedHandler(_arg1:Event):void{
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
var _local2 = "http://server.cpmstar.com/adviewas3.swf";
var _local3:DisplayObjectContainer = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
}
}//package FZBase.System
Section 19
//KongAPI (FZBase.System.KongAPI)
package FZBase.System {
import com.kongregate.as3.client.events.*;
import com.kongregate.as3.client.*;
public class KongAPI {
private var stageRoot;
private var kongregate:KongregateAPI;
private var kongregateServiceLoaded:Boolean;// = false
public function KongAPI(_arg1){
stageRoot = _arg1;
}
public function initKongregateAPI(){
kongregate = new KongregateAPI();
stageRoot.addChild(kongregate);
kongregate.addEventListener(KongregateEvent.COMPLETE, serviceLoaded);
}
public function submitData(_arg1:String="TEST", _arg2:int=0){
if (isServiceLoaded()){
kongregate.stats.submit(_arg1, _arg2);
trace(((("submit : " + _arg1) + " value : ") + String(_arg2)));
};
}
private function isServiceLoaded():Boolean{
if (((kongregate) && (kongregateServiceLoaded))){
return (true);
};
return (false);
}
private function serviceLoaded(_arg1:KongregateEvent):void{
kongregate.services.connect();
kongregateServiceLoaded = true;
}
}
}//package FZBase.System
Section 20
//MochiAd (FZBase.System.MochiAd)
package FZBase.System {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
public class MochiAd {
public static function getVersion():String{
return ("2.7");
}
public static function showClickAwayAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
var sendHostProgress:Boolean;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
var idx:Number = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var clip:Object;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
var depth:Number = options.depth;
delete options.depth;
var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth);
var wh:Array = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
var lv:URLVariables = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local6:Array;
var _local3:Object = _arg2.getBounds(_arg2.root);
var _local4:Number = 0;
var _local5:Number = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array = _arg2.split(".");
var _local4:Number = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var complete:Boolean;
var unloaded:Boolean;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
var fn:Function = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
var bar_color:Number = options.color;
delete options.color;
var bar_background:Number = options.background;
delete options.background;
var bar_outline:Number = options.outline;
delete options.outline;
var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1);
var backing:Object = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2);
var inside:Object = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3);
var outline:Object = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
var f:Function = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
var _local1:Object = this.parent.parent.root;
var _local2:Object = this.parent._mochiad_ctr;
var _local3:Number = (getTimer() - this.started);
var _local4:Boolean;
var _local5:Number = _local1.loaderInfo.bytesTotal;
var _local6:Number = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
var _local7:Number = ((100 * _local6) / _local5);
var _local8:Number = ((100 * _local3) / chk.ad_msec);
var _local9:Object = this._mochiad_bar._inside;
var _local10:Number = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var mc = _arg1;
var f:Function = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package FZBase.System
Section 21
//MochiBot (FZBase.System.MochiBot)
package FZBase.System {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package FZBase.System
Section 22
//CharBaseStat (FZGame.Rpg.Class.Base.CharBaseStat)
package FZGame.Rpg.Class.Base {
public class CharBaseStat extends DefClass {
public var _defense:int;// = 0
public var _is_rage:Boolean;// = false
public var _TYPE:int;// = 0
public var _ELEMENT_THUNDER:int;// = 0
public var _PRICE:int;// = 0
public var _is_resist_water:Boolean;// = false
public var _APTITUDE_STRENGTH:int;// = 100
public var _is_active:Boolean;// = false
public var _is_barrier:Boolean;// = false
public var _is_reflect:Boolean;// = false
public var _is_absorb:Boolean;// = false
public var _SKILL_1:int;// = 0
public var _LEVEL:int;// = 1
public var _SKILL_3:int;// = 0
public var _SKILL_4:int;// = 0
public var _NAME:String;// = "noname"
public var _SKILL_2:int;// = 0
public var _ELEMENT_ENERGY:int;// = 0
public var _health:int;// = 10
public var _is_pierce:Boolean;// = false
public var _ELEMENT_PHYS:int;// = 0
public var _is_resist_energy:Boolean;// = false
public var _EXP_MULT:Number;// = 0
public var _is_concentrate:Boolean;// = false
public var _ELEMENT_FIRE:int;// = 0
public var _health_max:int;// = 10
public var _strength:int;// = 0
public var _magic:int;// = 0
public var _is_guard:Boolean;// = false
public var _RACE:int;// = 0
public var _APTITUDE_RESISTANCE:int;// = 100
public var _MATERIAL_REQ_1:int;// = 0
public var _MATERIAL_REQ_2:int;// = 0
public var _ID:int;// = 0
public var _add_ap:int;// = 0
public var _is_expplus:Boolean;// = false
public var _is_resist_thunder:Boolean;// = false
public var _ELEMENT_MYSTIC:int;// = 0
public var _ABILITY:int;// = 0
public var _ELEMENT_WATER:int;// = 0
public var _APTITUDE_HEALTH:int;// = 100
public var _resistance:int;// = 0
public var _AP_BOOST:int;// = 0
public var _APTITUDE_MAGIC:int;// = 100
public var _is_criticalup:Boolean;// = false
public var _is_resist_phys:Boolean;// = false
public var _EQUIPMENT_1:int;// = 0
public var _EQUIPMENT_2:int;// = 0
public var _TOTAL_EXP:int;// = 0
public var _DROP_ITEM:int;// = 0
public var _APTITUDE_DEFENSE:int;// = 100
public var _is_focus:Boolean;// = false
public var _is_endure:Boolean;// = false
public var _is_resist_mystic:Boolean;// = false
public var _is_resist_fire:Boolean;// = false
private function calcElementDamage(_arg1, _arg2:int=0):int{
if (_arg1 == 1){
_arg2 = Math.max((_arg2 * 2), 1);
_health = Math.max((_health - _arg2), 0);
} else {
if (_arg1 == 2){
_arg2 = Math.max((_arg2 * 0.25), 1);
_health = Math.max((_health - _arg2), 0);
} else {
if (_arg1 == 3){
_arg2 = 0;
} else {
if (_arg1 == 4){
_arg2 = Math.max(_arg2, 1);
_health = Math.min((_health + _arg2), _health_max);
} else {
_arg2 = Math.max(_arg2, 1);
_health = Math.max((_health - _arg2), 0);
};
};
};
};
return (_arg2);
}
public function gainExperience(_arg1:int=0):int{
var _local2:int = (_arg1 * _EXP_MULT);
if (_is_expplus){
_local2 = (_local2 * 1.5);
};
_TOTAL_EXP = Math.min((_TOTAL_EXP + _local2), 999999);
_LEVEL = Math.min(Math.max((1 + (_TOTAL_EXP / 1000)), 0), 9999);
return (_local2);
}
public function getElementResistance(_arg1:int=0):int{
if (_arg1 == E_PHYS){
if ((((_ELEMENT_PHYS < 2)) && (_is_resist_phys))){
return (2);
};
return (_ELEMENT_PHYS);
} else {
if (_arg1 == E_ENERGY){
if ((((_ELEMENT_ENERGY < 2)) && (_is_resist_energy))){
return (2);
};
return (_ELEMENT_ENERGY);
} else {
if (_arg1 == E_FIRE){
if ((((_ELEMENT_FIRE < 2)) && (_is_resist_fire))){
return (2);
};
return (_ELEMENT_FIRE);
} else {
if (_arg1 == E_WATER){
if ((((_ELEMENT_WATER < 2)) && (_is_resist_water))){
return (2);
};
return (_ELEMENT_WATER);
} else {
if (_arg1 == E_THUNDER){
if ((((_ELEMENT_THUNDER < 2)) && (_is_resist_thunder))){
return (2);
};
return (_ELEMENT_THUNDER);
} else {
if (_arg1 == E_MYSTIC){
if ((((_ELEMENT_MYSTIC < 2)) && (_is_resist_mystic))){
return (2);
};
return (_ELEMENT_MYSTIC);
};
};
};
};
};
};
return (0);
}
public function damageHealth(_arg1:int=0, _arg2:int=0):int{
var _local3:int;
_local3 = (_arg1 - (_defense * 0.5));
if (_is_guard){
_local3 = (_local3 * 0.5);
trace("<guard> damage reduce 50%");
};
trace(((((((((((((("element = " + _arg2) + " resistance = ph") + getElementResistance(E_PHYS)) + "/en") + getElementResistance(E_ENERGY)) + "/fi") + getElementResistance(E_FIRE)) + "/wa") + getElementResistance(E_WATER)) + "/th") + getElementResistance(E_THUNDER)) + "/mi") + getElementResistance(E_MYSTIC)));
if (_arg2 == E_PHYS){
_local3 = calcElementDamage(getElementResistance(E_PHYS), _local3);
trace((("phys damage = " + _local3) + " !!!"));
} else {
if (_arg2 == E_ENERGY){
_local3 = calcElementDamage(getElementResistance(E_ENERGY), _local3);
trace((("energy damage = " + _local3) + " !!!"));
} else {
if (_arg2 == E_FIRE){
_local3 = calcElementDamage(getElementResistance(E_FIRE), _local3);
trace((("fire damage = " + _local3) + " !!!"));
} else {
if (_arg2 == E_WATER){
_local3 = calcElementDamage(getElementResistance(E_WATER), _local3);
trace((("water damage = " + _local3) + " !!!"));
} else {
if (_arg2 == E_THUNDER){
_local3 = calcElementDamage(getElementResistance(E_THUNDER), _local3);
trace((("thunder damage = " + _local3) + " !!!"));
} else {
if (_arg2 == E_MYSTIC){
_local3 = calcElementDamage(getElementResistance(E_MYSTIC), _local3);
trace((("mystic damage = " + _local3) + " !!!"));
} else {
if (_arg2 == E_NONE){
_local3 = Math.max(_local3, 1);
_health = Math.min(Math.max((_health - _local3), 0), _health_max);
trace((("void damage = " + _local3) + " !!!"));
};
};
};
};
};
};
};
return (_local3);
}
public function recoverHealth(_arg1:int):int{
_health = Math.min(Math.max((_health + _arg1), 0), _health_max);
trace((("heal = " + _arg1) + " !!!"));
return (_arg1);
}
public function getReqExperience():int{
if (_TOTAL_EXP <= 0){
return (1000);
};
if (_LEVEL >= 99){
return (0);
};
return (((_LEVEL * 1000) - _TOTAL_EXP));
}
}
}//package FZGame.Rpg.Class.Base
Section 23
//DefClass (FZGame.Rpg.Class.Base.DefClass)
package FZGame.Rpg.Class.Base {
public class DefClass {
public var Z_WATERRING:int;// = 21
public var Z_NONE:int;// = 0
public var S_PH_POWER_HIT:int;// = 3
public var Z_BROKENPIPE:int;// = 1
public var S_TH_CONCENTRATE:int;// = 27
public var C_MANDRAGORA:int;// = 10
public var S_MI_CHAOS_WAVE:int;// = 30
public var M_POCONGCLOTH:int;// = 2
public var Z_BOXINGGLOVE:int;// = 2
public var C_BAIHU2:int;// = 35
public var S_IT_AP_BOOST:int;// = 107
public var S_PH_FOCUS:int;// = 6
public var T_ABILITY:int;// = 3
public var E_MYSTIC:int;// = 6
public var Z_RPGLAUNCHER:int;// = 7
public var C_BAIHU3:int;// = 36
public var Z_METALCLAW:int;// = 5
public var S_EN_ENERGY_BALL:int;// = 9
public var Z_SOULEATER:int;// = 12
public var M_LEVIATHANSCALE:int;// = 12
public var A_APBOOST1:int;// = 12
public var A_CRITICAL_UP:int;// = 18
public var M_MONSTERCLAW:int;// = 6
public var A_APBOOST2:int;// = 13
public var Z_GASMASK:int;// = 15
public var S_NE_METEOR:int;// = 34
public var Z_FULLARMOR:int;// = 18
public var C_CHIMERA:int;// = 4
public var Z_IRONAXE:int;// = 3
public var S_EN_RADIANT_BLAST:int;// = 12
public var M_BAHEMOTHHORN:int;// = 13
public var M_OPART:int;// = 14
public var S_MI_DARK_FORCE:int;// = 28
public var Z_ATXMKXII:int;// = 29
public var S_WA_HEAL:int;// = 19
public var C_LIZARDMEN:int;// = 29
public var S_MI_SHADOW_FURY:int;// = 31
public var S_FI_INFERNO:int;// = 16
public var S_IT_ELIXIR:int;// = 105
public var A_RESIST_ALL:int;// = 11
public var A_ENDURE:int;// = 16
public var Z_EXCALIBUR:int;// = 11
public var A_RESIST_FIRE:int;// = 7
public var A_NONE:int;// = 0
public var C_ECHIDNA:int;// = 7
public var E_WATER:int;// = 4
public var Z_STUNGUARD:int;// = 17
public var M_FIRESTONE:int;// = 8
public var C_BAPHOMET:int;// = 1
public var C_DRAGON2:int;// = 39
public var C_DRAGON3:int;// = 40
public var C_DRAGON4:int;// = 41
public var Z_NEWSGROUNDTANK:int;// = 26
public var S_TH_LIGHTING:int;// = 24
public var T_SKILL:int;// = 2
public var Z_THUNDERRING:int;// = 22
public var C_BEHEMOTH:int;// = 48
public var Z_KONGBANNER:int;// = 25
public var S_IT_HEAL:int;// = 101
public var A_RAGE:int;// = 14
public var Z_MYSTICRING:int;// = 23
public var A_REFLECT:int;// = 20
public var S_EN_SOARING_LIGHT:int;// = 11
public var S_TH_THUNDER_BLADE:int;// = 25
public var C_DJIN:int;// = 5
public var C_INCUBUS:int;// = 27
public var C_SEA_SERPENT:int;// = 14
public var C_MINOTOUR:int;// = 11
public var S_PH_MIGHTY_BLOW:int;// = 4
public var S_WA_BUBBLE:int;// = 18
public var S_EN_SONIC_BLAST:int;// = 8
public var E_THUNDER:int;// = 5
public var E_PHYS:int;// = 1
public var S_IT_CURE:int;// = 103
public var M_GOLDENEGG:int;// = 15
public var C_YAKSA:int;// = 18
public var C_LICH2:int;// = 45
public var C_LICH3:int;// = 46
public var C_LICH4:int;// = 47
public var S_EN_RAY:int;// = 7
public var S_TH_MJOLLNIR:int;// = 26
public var S_FI_EXPLOSION:int;// = 15
public var A_EXP_PLUS:int;// = 15
public var Z_BAYONET:int;// = 4
public var A_ABSORB:int;// = 19
public var E_NONE:int;// = 0
public var S_NE_APOCALYPSE:int;// = 35
public var C_THANATOS:int;// = 15
public var A_ANTI_STUN:int;// = 2
public var S_WA_BLIZZARD:int;// = 22
public var S_NE_AURA:int;// = 33
public var C_BATTLE_MAIDEN:int;// = 23
public var A_PIERCE:int;// = 17
public var A_RESIST_ENERGY:int;// = 6
public var M_IRONORE:int;// = 3
public var M_DRAGONHEART:int;// = 11
public var S_FI_FLAME:int;// = 14
public var Z_AK47:int;// = 6
public var S_MI_POISON_MIST:int;// = 29
public var C_POCONG:int;// = 12
public var S_PH_SMASH:int;// = 1
public var M_EVILGEM:int;// = 9
public var T_PLAYER:int;// = 0
public var C_LICH:int;// = 28
public var S_FI_BURNING_SOUL:int;// = 17
public var Z_LAZERGUN:int;// = 10
public var C_INCUBUS2:int;// = 42
public var C_INCUBUS3:int;// = 43
public var C_INCUBUS4:int;// = 44
public var S_WA_ICESTORM:int;// = 21
public var M_DIAMOND:int;// = 7
public var T_EQUIPMENT:int;// = 4
public var A_RESIST_THUNDER:int;// = 9
public var A_RESIST_PHYS:int;// = 5
public var Z_BRACELET:int;// = 14
public var A_ANTI_FREEZE:int;// = 3
public var C_GOBLIN:int;// = 26
public var C_GARUDA:int;// = 8
public var S_WA_FROST:int;// = 20
public var S_TH_SHOCK:int;// = 23
public var A_RESIST_MYSTIC:int;// = 10
public var C_YAKSHINI:int;// = 19
public var A_ANTI_ALL:int;// = 4
public var C_ANGEL_WARRIOR2:int;// = 32
public var C_ANGEL_WARRIOR3:int;// = 33
public var C_ANGEL_WARRIOR4:int;// = 34
public var S_PH_THURST:int;// = 2
public var Z_GAMESHARK:int;// = 30
public var C_BAIHU:int;// = 22
public var C_BASILIK:int;// = 2
public var A_ANTI_POISOM:int;// = 1
public var S_EN_WIND_CUTTER:int;// = 10
public var C_DRAGON:int;// = 24
public var C_TUYUL:int;// = 16
public var C_LAMIA:int;// = 9
public var Z_PLAINCLOTH:int;// = 13
public var C_BATTLE_MAIDEN2:int;// = 37
public var C_RED_KNIGHT:int;// = 13
public var C_CERBERUS:int;// = 3
public var Z_ROBOSUIT:int;// = 24
public var C_BATTLE_MAIDEN3:int;// = 38
public var C_ANUBIS:int;// = 21
public var S_IT_HEAL2:int;// = 102
public var S_NONE:int;// = 0
public var A_RESIST_WATER:int;// = 8
public var C_GHOUL:int;// = 25
public var Z_FIRERING:int;// = 20
public var C_SELKIE:int;// = 31
public var S_PH_RAMPAGE:int;// = 5
public var C_NONE:int;// = 0
public var Z_HOLYLANCE:int;// = 9
public var T_ENEMY:int;// = 1
public var Z_ARTLOGICAUTOGRAPH:int;// = 27
public var Z_WINTERJACKET:int;// = 16
public var C_ANGEL_WARRIOR:int;// = 20
public var E_ENERGY:int;// = 2
public var M_DEVILORB:int;// = 10
public var M_MONSTERWING:int;// = 5
public var M_LEATHERHIDE:int;// = 4
public var S_FI_BURN:int;// = 13
public var C_BEHEMOTH2:int;// = 49
public var C_BEHEMOTH3:int;// = 50
public var Z_THORHAMMER:int;// = 8
public var S_MI_BLOODY_HOWL:int;// = 32
public var M_LUCKYCOIN:int;// = 1
public var S_IT_BARRIER:int;// = 106
public var E_FIRE:int;// = 3
public var M_NONE:int;// = 0
public var C_DRYAD:int;// = 6
public var Z_LUCKY7:int;// = 28
public var Z_GOLDCLOTH:int;// = 19
public var C_SALAMANDER:int;// = 30
public var C_UNDEAD:int;// = 17
public var S_IT_REVIVE:int;// = 104
}
}//package FZGame.Rpg.Class.Base
Section 24
//EquipmentBaseStat (FZGame.Rpg.Class.Base.EquipmentBaseStat)
package FZGame.Rpg.Class.Base {
public class EquipmentBaseStat extends DefClass {
public var _EFFECT_ID:int;// = 0
public var _ADD_MAGIC:int;// = 0
public var _ADD_RESISTANCE:int;// = 0
public var _TYPE:int;// = 0
public var _ADD_STRENGTH:int;// = 0
public var _ADD_DEFENSE:int;// = 0
public var _NAME:String;// = "noname"
public var _PRICE:int;// = 0
public var _MATERIAL_REQ_1:int;// = 0
public var _MATERIAL_REQ_2:int;// = 0
public var _ADD_HEALTH:int;// = 0
public var _ID:int;// = 0
public function isEquipable(_arg1:int=0, _arg2:int=0, _arg3:int=0):Boolean{
if ((((((_PRICE <= _arg1)) && ((_MATERIAL_REQ_1 <= _arg2)))) && ((_MATERIAL_REQ_2 <= _arg3)))){
return (true);
};
return (false);
}
public function isAvailable():Boolean{
if (_ID > 0){
return (true);
};
return (false);
}
}
}//package FZGame.Rpg.Class.Base
Section 25
//SkillBaseStat (FZGame.Rpg.Class.Base.SkillBaseStat)
package FZGame.Rpg.Class.Base {
public class SkillBaseStat extends DefClass {
public var _HEAL:int;// = 0
public var _EFFECT_ADD_PROC:int;// = 0
public var _is_revive:Boolean;// = false
public var _TYPE:int;// = 0
public var _ELEMENT:int;// = 0
public var _AP_COST:int;// = 0
public var _LEVEL_REQ:int;// = 0
public var _POWER:int;// = 0
public var _PRICE:int;// = 0
public var _is_refresh:Boolean;// = false
public var _RACE_REQ:int;// = 0
public var _TARGET:int;// = 0
public var _NAME:String;// = "noname"
public var _HIT:int;// = 0
public var _MATERIAL_REQ_1:int;// = 0
public var _MATERIAL_REQ_2:int;// = 0
public var _EFFECT_ADD:int;// = 0
public var _ID:int;// = 0
public var _CRITICAL:int;// = 0
public function isEquipable(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0, _arg5:int=0):Boolean{
if ((((((((((_PRICE <= _arg1)) && ((_LEVEL_REQ <= _arg2)))) && ((_RACE_REQ <= _arg3)))) && ((_MATERIAL_REQ_1 <= _arg4)))) && ((_MATERIAL_REQ_2 <= _arg5)))){
return (true);
};
return (false);
}
public function isHit():Boolean{
if (Math.random() <= (_HIT / 100)){
return (true);
};
return (false);
}
public function isMagicBased():Boolean{
if ((((((((_ELEMENT == E_FIRE)) || ((_ELEMENT == E_WATER)))) || ((_ELEMENT == E_THUNDER)))) || ((_ELEMENT == E_MYSTIC)))){
return (true);
};
return (false);
}
public function isReadyToCast(_arg1:int=0):Boolean{
if (_arg1 >= _AP_COST){
return (true);
};
return (false);
}
public function isStrengthBased():Boolean{
if ((((_ELEMENT == E_PHYS)) || ((_ELEMENT == E_ENERGY)))){
return (true);
};
return (false);
}
public function isAvailable():Boolean{
if (_ID > 0){
return (true);
};
return (false);
}
public function isSupportType():Boolean{
if ((((((_ID == S_WA_HEAL)) || ((_ID == S_PH_FOCUS)))) || ((_ID == S_TH_CONCENTRATE)))){
return (true);
};
return (false);
}
public function isCritical(_arg1:Boolean=false):Boolean{
if (_arg1){
if (Math.random() <= (_CRITICAL + (30 / 100))){
trace("+CRITICAL UP !!");
return (true);
};
} else {
if (Math.random() <= (_CRITICAL / 100)){
return (true);
};
};
return (false);
}
}
}//package FZGame.Rpg.Class.Base
Section 26
//BattleSystem (FZGame.Rpg.Class.BattleSystem)
package FZGame.Rpg.Class {
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Interface.*;
import flash.net.*;
public class BattleSystem extends DefClass {
const _START = 2;
const _ENEMY_TURN = 8;
const _ENEMY_CHANGE_TURN = 7;
const _PLAYER_TURN = 5;
const _ENEMY_WIN = 9;
const _PLAYER_CHANGE_TURN = 4;
const _INIT = 1;
const _FINISH = 3;
const _PLAYER_WIN = 6;
public var _area_stage:int;// = 0
private var mBg;
private var _state:int;// = 0
private var _active:Boolean;// = false
private var mResult;
private var dispCont;
private var mSystem;
public function BattleSystem(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
_active = false;
_state = 0;
}
public function startBattle(_arg1:int=0){
var _local2:*;
_area_stage = _arg1;
mBg = new bg_mc();
mSystem.contBG.addChild(mBg);
if (_arg1 <= 14){
mBg.gotoAndStop(1);
} else {
if ((((_arg1 > 14)) && ((_arg1 <= 34)))){
mBg.gotoAndStop(2);
} else {
if ((((_arg1 > 34)) && ((_arg1 <= 49)))){
mBg.gotoAndStop(3);
} else {
mBg.gotoAndStop(4);
};
};
};
mSystem.mEffect.playTransition();
if ((((((((((((((((((_arg1 == 7)) || ((_arg1 == 28)))) || ((_arg1 == 44)))) || ((_arg1 == 55)))) || ((_arg1 == 14)))) || ((_arg1 == 34)))) || ((_arg1 == 48)))) || ((_arg1 == 58)))) || ((_arg1 == 60)))){
mSystem.mSound.playBgmBattle2();
} else {
mSystem.mSound.playBgmBattle();
};
if (mSystem.mDat.stage_area[0] <= 0){
_local2 = new battle_tutorial();
_local2.init(mSystem);
trace(" INGAME TUT !!");
};
mSystem.mPlayerParty.initBattle();
if (_area_stage == 0){
mSystem.mEnemyParty.setEnemy(C_POCONG, 1);
};
if (_area_stage == 2){
mSystem.mEnemyParty.setEnemy(C_TUYUL, 1, C_TUYUL, 1);
};
if (_area_stage == 3){
mSystem.mEnemyParty.setEnemy(C_POCONG, 2, C_POCONG, 2, C_BAPHOMET, 3);
};
if (_area_stage == 5){
mSystem.mEnemyParty.setEnemy(C_MINOTOUR, 3, C_MINOTOUR, 4, C_UNDEAD, 5);
};
if (_area_stage == 6){
mSystem.mEnemyParty.setEnemy(C_DRYAD, 6, C_DRYAD, 7);
};
if (_area_stage == 7){
mSystem.mEnemyParty.setEnemy(C_BATTLE_MAIDEN2, 10);
};
if (_area_stage == 8){
mSystem.mEnemyParty.setEnemy(C_DJIN, 15, C_DJIN, 15, C_INCUBUS2, 20);
};
if (_area_stage == 9){
mSystem.mEnemyParty.setEnemy(C_LIZARDMEN, 20, C_LIZARDMEN, 20, C_DRAGON2, 25);
};
if (_area_stage == 10){
mSystem.mEnemyParty.setEnemy(C_RED_KNIGHT, 50, C_RED_KNIGHT, 50, C_SEA_SERPENT, 60);
};
if (_area_stage == 11){
mSystem.mEnemyParty.setEnemy(C_BATTLE_MAIDEN2, 45, C_BATTLE_MAIDEN2, 55, C_BATTLE_MAIDEN3, 70);
};
if (_area_stage == 14){
mSystem.mEnemyParty.setEnemy(C_SELKIE, 60, C_SELKIE, 75, C_INCUBUS4, 90);
};
if (_area_stage == 15){
mSystem.mEnemyParty.setEnemy(C_MINOTOUR, 9, C_DJIN, 9, C_CERBERUS, 12);
};
if (_area_stage == 16){
mSystem.mEnemyParty.setEnemy(C_UNDEAD, 10, C_UNDEAD, 10, C_LAMIA, 12);
};
if (_area_stage == 18){
mSystem.mEnemyParty.setEnemy(C_DRYAD, 10, C_DRYAD, 10, C_CHIMERA, 14);
};
if (_area_stage == 20){
mSystem.mEnemyParty.setEnemy(C_CERBERUS, 15, C_CHIMERA, 15);
};
if (_area_stage == 21){
mSystem.mEnemyParty.setEnemy(C_MINOTOUR, 14, C_POCONG, 15, C_GARUDA, 18);
};
if (_area_stage == 23){
mSystem.mEnemyParty.setEnemy(C_CERBERUS, 17, C_CERBERUS, 17, C_CERBERUS, 17);
};
if (_area_stage == 25){
mSystem.mEnemyParty.setEnemy(C_GARUDA, 18, C_GARUDA, 19, C_GARUDA, 20);
};
if (_area_stage == 26){
mSystem.mEnemyParty.setEnemy(C_MINOTOUR, 18, C_YAKSA, 19, C_RED_KNIGHT, 22);
};
if (_area_stage == 27){
mSystem.mEnemyParty.setEnemy(C_DJIN, 21, C_DJIN, 21, C_GHOUL, 21);
};
if (_area_stage == 28){
mSystem.mEnemyParty.setEnemy(C_GHOUL, 24, C_INCUBUS3, 25);
};
if (_area_stage == 29){
mSystem.mEnemyParty.setEnemy(C_DJIN, 31, C_DJIN, 31, C_ECHIDNA, 35);
};
if (_area_stage == 30){
mSystem.mEnemyParty.setEnemy(C_LAMIA, 33, C_LAMIA, 33, C_SEA_SERPENT, 37);
};
if (_area_stage == 31){
mSystem.mEnemyParty.setEnemy(C_GOBLIN, 65, C_GHOUL, 65, C_ANUBIS, 85);
};
if (_area_stage == 34){
mSystem.mEnemyParty.setEnemy(C_LIZARDMEN, 75, C_SALAMANDER, 80, C_DRAGON3, 92);
};
if (_area_stage == 35){
mSystem.mEnemyParty.setEnemy(C_BAPHOMET, 23, C_BAPHOMET, 24, C_BAPHOMET, 25);
};
if (_area_stage == 37){
mSystem.mEnemyParty.setEnemy(C_RED_KNIGHT, 25, C_RED_KNIGHT, 25, C_MANDRAGORA, 28);
};
if (_area_stage == 38){
mSystem.mEnemyParty.setEnemy(C_GOBLIN, 27, C_GOBLIN, 27, C_BATTLE_MAIDEN, 27);
};
if (_area_stage == 40){
mSystem.mEnemyParty.setEnemy(C_UNDEAD, 28, C_UNDEAD, 28, C_THANATOS, 29);
};
if (_area_stage == 41){
mSystem.mEnemyParty.setEnemy(C_YAKSA, 28, C_YAKSA, 29, C_YAKSHINI, 30);
};
if (_area_stage == 43){
mSystem.mEnemyParty.setEnemy(C_THANATOS, 29, C_THANATOS, 29, C_THANATOS, 31);
};
if (_area_stage == 44){
mSystem.mEnemyParty.setEnemy(C_SALAMANDER, 35, C_SALAMANDER, 35, C_SALAMANDER, 38);
};
if (_area_stage == 45){
mSystem.mEnemyParty.setEnemy(C_BATTLE_MAIDEN, 39, C_BATTLE_MAIDEN, 39, C_ANGEL_WARRIOR, 45);
};
if (_area_stage == 46){
mSystem.mEnemyParty.setEnemy(C_BASILIK, 60, C_BASILIK, 70, C_DRAGON, 85);
};
if (_area_stage == 48){
mSystem.mEnemyParty.setEnemy(C_GHOUL, 60, C_GHOUL, 80, C_LICH3, 95);
};
if (_area_stage == 50){
mSystem.mEnemyParty.setEnemy(C_GOBLIN, 29, C_GOBLIN, 29, C_ANUBIS, 35);
};
if (_area_stage == 51){
mSystem.mEnemyParty.setEnemy(C_LIZARDMEN, 31, C_LIZARDMEN, 31, C_DRAGON4, 40);
};
if (_area_stage == 53){
mSystem.mEnemyParty.setEnemy(C_BATTLE_MAIDEN, 33, C_BATTLE_MAIDEN, 33, C_BAIHU2, 45);
};
if (_area_stage == 55){
mSystem.mEnemyParty.setEnemy(C_SELKIE, 35, C_SELKIE, 35, C_LICH2, 50);
};
if (_area_stage == 56){
mSystem.mEnemyParty.setEnemy(C_LIZARDMEN, 60, C_SALAMANDER, 70, C_BAIHU3, 99);
};
if (_area_stage == 58){
mSystem.mEnemyParty.setEnemy(C_ANGEL_WARRIOR2, 70, C_ANGEL_WARRIOR4, 80, C_ANGEL_WARRIOR3, 99);
};
if (_area_stage == 60){
mSystem.mEnemyParty.setEnemy(C_BEHEMOTH, 90, C_BEHEMOTH2, 90, C_BEHEMOTH3, 99);
};
mSystem.mEnemyParty.initBattle();
_state = _PLAYER_CHANGE_TURN;
_active = true;
mSystem.mDCam.startBattleCam();
mSystem.setPaused(false);
trace("Battle START");
mSystem.mEffect.startFireFX();
}
public function update(){
var _local1:*;
var _local2:*;
var _local3:*;
if (_active == false){
return;
};
if (mSystem.mPlayerParty.forceQuit){
_local1 = new menu_cover_mc();
_local1.init(mSystem);
_state = 0;
removeBattle();
return;
};
if (_state == _PLAYER_CHANGE_TURN){
mSystem.mPlayerParty.startPhaseTurn();
if (mSystem.mPlayerParty.isPartyDefeated() == false){
mSystem.mPlayerParty.showCommand();
};
if (mSystem.mPlayerParty.isPartyDefeated() == false){
mSystem.mPlayerParty.showAP();
};
_state = _PLAYER_TURN;
trace("PLAYER PHASE TURN ...");
} else {
if (_state == _PLAYER_TURN){
if (mSystem.mPlayerParty.finishTurn){
mSystem.mPlayerParty.hideCommand();
mSystem.mPlayerParty.hideAP();
_state = _ENEMY_CHANGE_TURN;
};
} else {
if (_state == _PLAYER_WIN){
_local2 = new menu_result_mc();
_local2.init(mSystem, _area_stage);
_state = 0;
removeBattle();
return;
};
if (_state == _ENEMY_CHANGE_TURN){
mSystem.mEnemyParty.startPhaseTurn();
if (mSystem.mEnemyParty.isPartyDefeated() == false){
mSystem.mEnemyParty.showAP();
};
_state = _ENEMY_TURN;
trace("ENEMY PHASE TURN ...");
} else {
if (_state == _ENEMY_TURN){
if (mSystem.mEnemyParty.finishTurn){
mSystem.mEnemyParty.hideAP();
_state = _PLAYER_CHANGE_TURN;
};
} else {
if (_state == _ENEMY_WIN){
_local3 = new menu_gameover_mc();
_local3.init(mSystem);
_state = 0;
removeBattle();
return;
};
};
};
};
};
mSystem.mPlayerParty.update();
mSystem.mEnemyParty.update();
if (mSystem.mPlayerParty.partyLose){
_state = _ENEMY_WIN;
};
if (mSystem.mEnemyParty.partyLose){
_state = _PLAYER_WIN;
};
controlTest();
}
public function controlTest(){
}
public function removeBattle(){
mSystem.mPlayerParty.deInitBattle();
mSystem.mEnemyParty.deInitBattle();
mSystem.contBG.removeChild(mBg);
mBg = null;
_active = false;
_state = 0;
trace("Battle REMOVE");
mSystem.mEffect.stopFireFX();
}
}
}//package FZGame.Rpg.Class
Section 27
//ChainComboHit (FZGame.Rpg.Class.ChainComboHit)
package FZGame.Rpg.Class {
public class ChainComboHit {
private var timeOut:int;// = 0
private var _Y:int;// = 0
private var chainHit:int;// = 0
private var dispCont;
public var bestChainHit:int;// = 0
private var _X:int;// = 0
private var mSystem;
private var mClip;// = null
public function ChainComboHit(_arg1, _arg2:int=0, _arg3:int=0){
mSystem = _arg1;
dispCont = mSystem.contMENU2;
_X = _arg2;
_Y = _arg3;
}
public function addComboHit(){
chainHit = Math.min((chainHit + 1), 999);
if (chainHit > bestChainHit){
bestChainHit = chainHit;
};
if ((((mClip == null)) && ((chainHit > 1)))){
mClip = new chain_combo_mc();
dispCont.addChild(mClip);
mClip.x = (_X + 50);
mClip.y = _Y;
};
if (mClip){
mClip.chain.val.htmlText = String(chainHit);
mClip.chain.scaleY = 5;
};
timeOut = 60;
}
public function update(){
if (mClip){
if (mClip.x > _X){
mClip.x = Math.max((mClip.x - ((mClip.x - _X) * 0.05)), _X);
};
if (mClip.chain.scaleY > 1){
mClip.chain.scaleY = Math.max((mClip.chain.scaleY - ((mClip.chain.scaleY - 1) * 0.5)), 1);
};
if (timeOut < 30){
mClip.alpha = Math.max((mClip.alpha - 0.1), 0);
} else {
mClip.alpha = 1;
};
};
timeOut = Math.max((timeOut - 1), 0);
if (timeOut <= 0){
removeComboHit();
chainHit = 0;
};
}
public function reset(){
chainHit = 0;
bestChainHit = 0;
trace("chain reset");
}
public function removeComboHit(){
if (mClip){
dispCont.removeChild(mClip);
mClip = null;
chainHit = 0;
};
}
public function isChain():Boolean{
if (chainHit > 0){
return (true);
};
return (false);
}
public function refresh(){
chainHit = 0;
}
public function getBonusDamage():Number{
if (chainHit > 1){
return ((1 + (chainHit / 100)));
};
return (1);
}
}
}//package FZGame.Rpg.Class
Section 28
//DynamicCamera (FZGame.Rpg.Class.DynamicCamera)
package FZGame.Rpg.Class {
import flash.events.*;
public class DynamicCamera {
private var _shake_y:Number;// = 0
private var _scale_x:Number;// = 1
private var _scale_y:Number;// = 1
private var _speed_scale_x:Number;// = 0.03
private var _speed_scale_y:Number;// = 0.03
private var _pos_x:Number;// = 0
private var _pos_y:Number;// = 0
private var _target_mv_x:Number;// = 0
private var _target_mv_y:Number;// = 0
private var _speed_move_x:Number;// = 0.05
private var _shake_fric:Number;// = 0.98
private var _speed_move_y:Number;// = 0.05
private var _target_scale_x:Number;// = 1
private var _target_scale_y:Number;// = 1
private var _inv_move_x:Number;// = 0
private var mSystem;
private var _inv_scale:Number;// = 0
private var _inv_move_y:Number;// = 0
public function DynamicCamera(_arg1){
mSystem = _arg1;
mSystem.contSCROLL.addEventListener(Event.ENTER_FRAME, screenHandle, false, 0, true);
mSystem.contSCROLLZ.addEventListener(Event.ENTER_FRAME, effectHandle, false, 0, true);
reset();
}
public function defaultCam(){
_target_mv_x = 0;
_target_mv_y = 0;
_target_scale_x = 1;
_target_scale_y = 1;
_speed_move_x = 0.05;
_speed_move_y = 0.05;
_speed_scale_x = 0.03;
_speed_scale_y = 0.03;
}
public function reset(){
_pos_x = 0;
_pos_y = 0;
_target_mv_x = 0;
_target_mv_y = 0;
_target_scale_x = 1;
_target_scale_y = 1;
_shake_y = 0;
mSystem.contSCROLLZ.x = (mSystem.contSCROLLZ.y = 0);
mSystem.contSCROLLZ.scaleX = (mSystem.contSCROLLZ.scaleY = 1);
}
public function startBattleCam(){
reset();
defaultCam();
_pos_y = -100;
_scale_x = 0.2;
_scale_y = 0.2;
_shake_y = 0;
mSystem.contSCROLLZ.x = (mSystem.contSCROLLZ.y = 10.5);
mSystem.contSCROLLZ.scaleX = (mSystem.contSCROLLZ.scaleY = 0.94);
}
private function effectHandle(_arg1:Event):void{
if (_shake_y != 0){
_shake_y = ((_shake_y * 0.9) * -1);
if ((((_shake_y < 1)) && ((_shake_y > -1)))){
_shake_y = 0;
};
};
if (mSystem.contSCROLLZ.x > 10){
_inv_move_x = -((0.2 + (Math.random() * 0.1)));
} else {
if (mSystem.contSCROLLZ.x < -10){
_inv_move_x = (0.2 + (Math.random() * 0.1));
};
};
if (mSystem.contSCROLLZ.y > 10){
_inv_move_y = -((0.1 + (Math.random() * 0.1)));
} else {
if (mSystem.contSCROLLZ.y < -10){
_inv_move_y = (0.1 + (Math.random() * 0.1));
};
};
if (mSystem.contSCROLLZ.scaleX > 1.05){
_inv_scale = -((0.0002 + (Math.random() * 0.0005)));
} else {
if (mSystem.contSCROLLZ.scaleX < 0.95){
_inv_scale = (0.0002 + (Math.random() * 0.0005));
};
};
if (_shake_y != 0){
mSystem.contSCROLLZ.y = (mSystem.contSCROLLZ.y + _shake_y);
} else {
mSystem.contSCROLLZ.scaleX = (mSystem.contSCROLLZ.scaleY = (mSystem.contSCROLLZ.scaleX + _inv_scale));
mSystem.contSCROLLZ.x = ((mSystem.contSCROLLZ.x - (((mSystem.contSCROLLZ.scaleX - 1) * 700) * _inv_scale)) + _inv_move_x);
mSystem.contSCROLLZ.y = ((mSystem.contSCROLLZ.y - (((mSystem.contSCROLLZ.scaleY - 1) * 525) * _inv_scale)) + _inv_move_y);
};
}
public function focusEnemyCam(){
_target_mv_x = -320;
_target_mv_y = -50;
_target_scale_x = 1.5;
_target_scale_y = 1.5;
_speed_move_x = 0.05;
_speed_move_y = 0.05;
_speed_scale_x = 0.03;
_speed_scale_y = 0.03;
}
public function critCam(){
if (_shake_y > 0){
_shake_y = -10;
} else {
_shake_y = 10;
};
}
public function shakeCam(){
_shake_y = 20;
}
public function focusPlayerCam(){
_target_mv_x = 320;
_target_mv_y = -50;
_target_scale_x = 1.5;
_target_scale_y = 1.5;
_speed_move_x = 0.05;
_speed_move_y = 0.05;
_speed_scale_x = 0.03;
_speed_scale_y = 0.03;
}
private function screenHandle(_arg1:Event):void{
var _local2:Number = ((_target_mv_x - _pos_x) * _speed_move_x);
var _local3:Number = ((_target_mv_y - _pos_y) * _speed_move_y);
var _local4:Number = ((_target_scale_x - _scale_x) * _speed_scale_x);
var _local5:Number = ((_target_scale_y - _scale_y) * _speed_scale_y);
if (_pos_x > _target_mv_x){
_pos_x = (_pos_x + _local2);
if (_pos_x < (_target_mv_x + 1)){
_pos_x = _target_mv_x;
};
} else {
if (_pos_x < _target_mv_x){
_pos_x = (_pos_x + _local2);
if (_pos_x > (_target_mv_x - 1)){
_pos_x = _target_mv_x;
};
};
};
if (_pos_y > _target_mv_y){
_pos_y = (_pos_y + _local3);
if (_pos_y < (_target_mv_y + 1)){
_pos_y = _target_mv_y;
};
} else {
if (_pos_y < _target_mv_y){
_pos_y = (_pos_y + _local3);
if (_pos_y > (_target_mv_y - 1)){
_pos_y = _target_mv_y;
};
};
};
if (_scale_x > _target_scale_x){
_scale_x = (_scale_x + _local4);
if (_scale_x < (_target_scale_x + 0.001)){
_scale_x = _target_scale_x;
};
} else {
if (_scale_x < _target_scale_x){
_scale_x = (_scale_x + _local4);
if (_scale_x > (_target_scale_x - 0.001)){
_scale_x = _target_scale_x;
};
};
};
if (_scale_y > _target_scale_y){
_scale_y = (_scale_y + _local5);
if (_scale_y < (_target_scale_y + 0.001)){
_scale_y = _target_scale_y;
};
} else {
if (_scale_y < _target_scale_y){
_scale_y = (_scale_y + _local5);
if (_scale_y > (_target_scale_y - 0.001)){
_scale_y = _target_scale_y;
};
};
};
mSystem.contSCROLL.scaleX = _scale_x;
mSystem.contSCROLL.scaleY = _scale_y;
mSystem.contSCROLL.x = (_pos_x - ((_scale_x - 1) * 350));
mSystem.contSCROLL.y = (_pos_y - ((_scale_y - 1) * 263));
}
}
}//package FZGame.Rpg.Class
Section 29
//EnemyParty (FZGame.Rpg.Class.EnemyParty)
package FZGame.Rpg.Class {
import flash.events.*;
import FZGame.Rpg.Class.Base.*;
public class EnemyParty extends DefClass {
private var _delay:int;// = 0
public var mSlot1;// = null
public var mSlot2;// = null
public var mSlot3;// = null
private var mUnit;
private var dispContUnit;
public var partyLose:Boolean;// = false
public var mChainHit;
private var mTargetParty;
private var _move_x:Number;// = 0
public var finishTurn:Boolean;// = true
public var totalDamage:int;// = 0
private var mSkillSet;
public var totalTurn:int;// = 0
private var delaySet:int;// = 40
public var currentAP:int;// = 0
private var mStat;
private var dispContMenu;
private var mAPUI;
private var _vx:Number;// = 0
private var mSystem;
public function EnemyParty(_arg1){
mSkillSet = new ListCommandSkillSet();
super();
mSystem = _arg1;
dispContUnit = mSystem.contUNIT;
dispContMenu = mSystem.contMENU2;
mChainHit = new ChainComboHit(mSystem, 500, 100);
}
public function hideAP(){
if (mAPUI){
mAPUI.removeEventListener(Event.ENTER_FRAME, showAPHandle);
mAPUI.addEventListener(Event.ENTER_FRAME, hideAPHandle, false, 0, true);
};
}
private function updateClipStatus(){
if (mStat){
if (mSlot1){
mStat.health_1.scaleX = Math.min(Math.max((mSlot1._health / mSlot1._health_max), 0), 1);
mStat.face_1.visible = true;
mStat.face_1.gotoAndStop((mSlot1._ID + 1));
} else {
mStat.health_1.scaleX = 0;
mStat.face_1.visible = false;
};
if (((mSlot2) && (mSlot2._is_active))){
mStat.health_2.scaleX = Math.max((mSlot2._health / mSlot2._health_max), 0);
mStat.face_2.visible = true;
mStat.face_2.gotoAndStop((mSlot2._ID + 1));
} else {
mStat.health_2.scaleX = 0;
mStat.face_2.visible = false;
};
if (((mSlot3) && (mSlot3._is_active))){
mStat.health_3.scaleX = Math.max((mSlot3._health / mSlot3._health_max), 0);
mStat.face_3.visible = true;
mStat.face_3.gotoAndStop((mSlot3._ID + 1));
} else {
mStat.health_3.scaleX = 0;
mStat.face_3.visible = false;
};
if (mChainHit){
mChainHit.update();
if (mChainHit.isChain()){
mStat.tot_damage.visible = true;
mStat.tot_damage.htmlText = String(("Total Damage " + totalDamage));
} else {
mStat.tot_damage.visible = false;
totalDamage = 0;
};
};
};
}
public function isPartyDefeated():Boolean{
if ((((((mSlot1._is_active == false)) && ((mSlot2._is_active == false)))) && ((mSlot3._is_active == false)))){
return (true);
};
return (false);
}
public function removeStatus(){
if (mStat){
mStat.removeEventListener(Event.ENTER_FRAME, showStatusHandle);
dispContMenu.removeChild(mStat);
mStat = null;
};
}
private function koUnit(){
var _local1:*;
if (mUnit){
mSlot1._is_active = false;
mUnit.addEventListener(Event.ENTER_FRAME, koUnitHandle, false, 0, true);
_local1 = new snd_koed();
_local1.playSound(mSystem.mDat.se_volume);
};
}
private function showStatusHandle(_arg1:Event):void{
if (mStat){
mStat.alpha = Math.min((mStat.alpha + 0.02), 1);
if (mStat.alpha >= 1){
mStat.alpha = 1;
mStat.removeEventListener(Event.ENTER_FRAME, showStatusHandle);
};
};
}
public function showUnit(){
if (mUnit == null){
mUnit = new unit_clip_mc();
dispContUnit.addChild(mUnit);
mUnit.x = 900;
mUnit.y = 400;
mUnit.scaleX = 1;
_vx = -20;
mUnit.addEventListener(Event.ENTER_FRAME, showUnitHandle, false, 0, true);
};
}
private function executeCommand(){
if ((((mSlot1._health <= 0)) || ((mSlot1._is_active == false)))){
return;
};
var _local1:int;
if ((mSlot1._health / mSlot1._health_max) < 0.5){
_local1 = 1;
};
var _local2:Number = Math.random();
var _local3:* = new ListCommandSkillSet();
var _local4:* = new ListCommandSkillSet();
var _local5:* = new ListCommandSkillSet();
var _local6:* = new ListCommandSkillSet();
_local3.initialise(mSlot1._SKILL_1);
_local4.initialise(mSlot1._SKILL_2);
_local5.initialise(mSlot1._SKILL_3);
_local6.initialise(mSlot1._SKILL_4);
var _local7:Boolean;
if (mSlot1._SKILL_1 == S_WA_HEAL){
_local7 = true;
};
if (mSlot1._SKILL_2 == S_WA_HEAL){
_local7 = true;
};
if (mSlot1._SKILL_3 == S_WA_HEAL){
_local7 = true;
};
if (mSlot1._SKILL_4 == S_WA_HEAL){
_local7 = true;
};
var _local8:Boolean;
if (mSlot1._SKILL_1 == S_PH_FOCUS){
_local8 = true;
};
if (mSlot1._SKILL_2 == S_PH_FOCUS){
_local8 = true;
};
if (mSlot1._SKILL_3 == S_PH_FOCUS){
_local8 = true;
};
if (mSlot1._SKILL_4 == S_PH_FOCUS){
_local8 = true;
};
var _local9:Boolean;
if (mSlot1._SKILL_1 == S_TH_CONCENTRATE){
_local9 = true;
};
if (mSlot1._SKILL_2 == S_TH_CONCENTRATE){
_local9 = true;
};
if (mSlot1._SKILL_3 == S_TH_CONCENTRATE){
_local9 = true;
};
if (mSlot1._SKILL_4 == S_TH_CONCENTRATE){
_local9 = true;
};
if (((_local7) && ((_local1 == 1)))){
if ((((mSlot1._SKILL_1 == S_WA_HEAL)) && (_local3.isReadyToCast(currentAP)))){
mSystem.mEffect.skillEffect(mSlot1._SKILL_1, this, mTargetParty);
animAttack();
return;
};
if ((((mSlot1._SKILL_2 == S_WA_HEAL)) && (_local4.isReadyToCast(currentAP)))){
mSystem.mEffect.skillEffect(mSlot1._SKILL_2, this, mTargetParty);
animAttack();
return;
};
if ((((mSlot1._SKILL_3 == S_WA_HEAL)) && (_local5.isReadyToCast(currentAP)))){
mSystem.mEffect.skillEffect(mSlot1._SKILL_3, this, mTargetParty);
animAttack();
return;
};
if ((((mSlot1._SKILL_4 == S_WA_HEAL)) && (_local6.isReadyToCast(currentAP)))){
mSystem.mEffect.skillEffect(mSlot1._SKILL_4, this, mTargetParty);
animAttack();
return;
};
};
if (_local2 < 0.5){
if (((_local3.isAvailable()) && (_local3.isReadyToCast(currentAP)))){
costAP(_local3._AP_COST);
mSystem.mEffect.skillEffect(mSlot1._SKILL_1, this, mTargetParty);
animAttack();
return;
};
} else {
if ((((_local2 >= 0.5)) && ((_local2 < 0.9)))){
if (Math.random() < 0.5){
if (((((_local4.isAvailable()) && (_local4.isReadyToCast(currentAP)))) && ((_local4.isSupportType() == false)))){
costAP(_local4._AP_COST);
mSystem.mEffect.skillEffect(mSlot1._SKILL_2, this, mTargetParty);
animAttack();
return;
};
} else {
if (((((_local5.isAvailable()) && (_local5.isReadyToCast(currentAP)))) && ((_local5.isSupportType() == false)))){
costAP(_local5._AP_COST);
mSystem.mEffect.skillEffect(mSlot1._SKILL_3, this, mTargetParty);
animAttack();
return;
};
};
if (((_local3.isAvailable()) && (_local3.isReadyToCast(currentAP)))){
costAP(_local3._AP_COST);
mSystem.mEffect.skillEffect(mSlot1._SKILL_1, this, mTargetParty);
animAttack();
return;
};
} else {
if (currentAP > 3){
if (((_local3.isAvailable()) && (_local3.isReadyToCast(currentAP)))){
costAP(_local3._AP_COST);
mSystem.mEffect.skillEffect(mSlot1._SKILL_1, this, mTargetParty);
animAttack();
return;
};
};
};
};
finishTurn = true;
}
private function hideUnitHandle(_arg1:Event):void{
if (mUnit){
mUnit.x = (mUnit.x + _vx);
_vx = (_vx * 1.02);
if (mUnit.x < 900){
mUnit.x = 900;
mUnit.removeEventListener(Event.ENTER_FRAME, hideUnitHandle);
dispContUnit.removeChild(mUnit);
mUnit = null;
};
};
}
private function removeUnit(){
if (mUnit){
mUnit.removeEventListener(Event.ENTER_FRAME, showUnitHandle);
mUnit.removeEventListener(Event.ENTER_FRAME, hideUnitHandle);
mUnit.removeEventListener(Event.ENTER_FRAME, koUnitHandle);
mUnit.removeEventListener(Event.ENTER_FRAME, koUnitDelayHandle);
dispContUnit.removeChild(mUnit);
mUnit = null;
};
}
public function updateAI(){
if (mTargetParty.isPartyDefeated()){
return;
};
if (finishTurn == false){
delaySet = Math.max((delaySet - 1), 0);
if ((((delaySet <= 0)) && (mTargetParty.isUnitReady()))){
executeCommand();
delaySet = (40 + (Math.random() * 40));
};
};
}
private function hideAPHandle(_arg1:Event):void{
if (mAPUI){
mAPUI.alpha = Math.max((mAPUI.alpha - 0.05), 0);
mAPUI.y = (mAPUI.y + 1);
if (mAPUI.alpha <= 0){
mAPUI.alpha = 0;
mAPUI.removeEventListener(Event.ENTER_FRAME, hideAPHandle);
dispContMenu.removeChild(mAPUI);
mAPUI = null;
};
};
}
private function showAPHandle(_arg1:Event):void{
if (mAPUI){
if (mAPUI.alpha < 1){
mAPUI.alpha = Math.min((mAPUI.alpha + 0.02), 1);
};
if (mAPUI.y < 0){
mAPUI.y = Math.min((mAPUI.y + 5), 0);
};
};
}
public function initialise(_arg1){
mTargetParty = _arg1;
mSlot1 = new ListCharUnitSet();
mSlot1.setBaseUnit(C_DRAGON, 1);
mSlot2 = new ListCharUnitSet();
mSlot2.setBaseUnit(C_ANGEL_WARRIOR, 2);
mSlot3 = new ListCharUnitSet();
mSlot3.setBaseUnit(C_BAIHU, 3);
}
private function showUnitHandle(_arg1:Event):void{
if (mUnit){
mUnit.x = (mUnit.x + _vx);
_vx = (_vx * 0.98);
if (mUnit.x < 550){
mUnit.x = 550;
mUnit.removeEventListener(Event.ENTER_FRAME, showUnitHandle);
};
};
}
private function animAttack(){
mUnit.char.x = -1;
_move_x = (20 + (Math.random() * 10));
}
private function removeAP(){
if (mAPUI){
mAPUI.removeEventListener(Event.ENTER_FRAME, showAPHandle);
mAPUI.removeEventListener(Event.ENTER_FRAME, hideAPHandle);
dispContMenu.removeChild(mAPUI);
mAPUI = null;
};
}
public function damageParty(_arg1, _arg2:Number=1, _arg3:int=0){
var _local9:*;
var _local10:*;
var _local4:int;
var _local5:Boolean;
var _local6 = 550;
var _local7 = 150;
var _local8 = 250;
mSkillSet.initialise(_arg3);
if (((mSkillSet.isHit()) && (mSlot1._is_active))){
if (mSkillSet.isStrengthBased()){
_local4 = (_arg1.mSlot1._strength * (mSkillSet._POWER / 100));
trace(((("caster str = " + _arg1.mSlot1._strength) + " skill pow = ") + mSkillSet._POWER));
if (_arg1.mSlot1._is_focus){
_local4 = (_local4 * 2);
trace("+ FOCUS");
};
} else {
if (mSkillSet.isMagicBased()){
_local4 = (_arg1.mSlot1._magic * (mSkillSet._POWER / 100));
trace(((("caster mgc = " + _arg1.mSlot1._magic) + " skill pow = ") + mSkillSet._POWER));
if (_arg1.mSlot1._is_concentrate){
_local4 = (_local4 * 2);
trace("+ CONCENTRATE");
};
} else {
_local4 = (((_arg1.mSlot1._strength + _arg1.mSlot1._magic) * 0.5) * (mSkillSet._POWER / 100));
trace(((((("caster str = " + _arg1.mSlot1._strength) + " caster mgc = ") + _arg1.mSlot1._magic) + " skill pow = ") + mSkillSet._POWER));
};
};
trace(("raw damage = " + _local4));
_local4 = (_local4 + ((Math.random() * 0.2) * _local4));
_local4 = (_local4 * _arg2);
if (((_arg1.mSlot1._is_rage) && (((_arg1.mSlot1._health / _arg1.mSlot1._health_max) < 0.3)))){
_local4 = (_local4 * 1.5);
trace("RAGE activation !!");
};
mChainHit.addComboHit();
_local4 = (_local4 + (_local4 * mChainHit.getBonusDamage()));
if (mSkillSet.isCritical(_arg1.mSlot1._is_criticalup)){
_local5 = true;
_local4 = (_local4 * 1.5);
trace("critical hit !!");
mSystem.mDCam.critCam();
};
trace(("total raw damage = " + _local4));
if (mSlot1){
if (_arg1.mSlot1._is_pierce){
_local4 = mSlot1.damageHealth(_local4, E_NONE);
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageNormal(_local6, _local8, _local4, _local5);
totalDamage = Math.min((totalDamage + _local4), 999999999999);
animHit(_local5, 0);
if ((((((mSlot1.getElementResistance(mSkillSet._ELEMENT) == 2)) || ((mSlot1.getElementResistance(mSkillSet._ELEMENT) == 3)))) || ((mSlot1.getElementResistance(mSkillSet._ELEMENT) == 4)))){
mSystem.mEffect.pierceEffect(getPosX());
_local9 = new snd_pierce();
_local9.playSound(mSystem.mDat.se_volume);
};
} else {
_local4 = mSlot1.damageHealth(_local4, mSkillSet._ELEMENT);
if (mSlot1.getElementResistance(mSkillSet._ELEMENT) == 0){
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageNormal(_local6, _local8, _local4, _local5);
totalDamage = Math.min((totalDamage + _local4), 999999999999);
animHit(_local5, 0);
} else {
if (mSlot1.getElementResistance(mSkillSet._ELEMENT) == 1){
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageWeak(_local6, _local8, _local4, _local5);
trace("WEAK!!");
totalDamage = Math.min((totalDamage + _local4), 999999999999);
animHit(_local5, 1);
} else {
if (mSlot1.getElementResistance(mSkillSet._ELEMENT) == 2){
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageStrong(_local6, _local8, _local4, _local5);
trace("STRONG!!");
totalDamage = Math.min((totalDamage + _local4), 999999999999);
animHit(_local5, 2);
} else {
if (mSlot1.getElementResistance(mSkillSet._ELEMENT) == 3){
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageNull(_local6, _local8);
trace("NULL!!");
} else {
if (mSlot1.getElementResistance(mSkillSet._ELEMENT) == 4){
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageHeal(_local6, _local8, _local4);
trace("ABSORB!!");
};
};
};
};
};
};
};
if (((mSlot1._is_reflect) && ((_arg1.mSlot1._is_reflect == false)))){
if (Math.random() < 0.5){
_local4 = _arg1.mSlot1.damageHealth(Math.max((_local4 * 0.2), 1), mSkillSet._ELEMENT);
if (_arg1.mSlot1.getElementResistance(mSkillSet._ELEMENT) == 0){
mSystem.mEffect.displayDamageNormal(_local7, _local8, _local4, _local5);
} else {
if (_arg1.mSlot1.getElementResistance(mSkillSet._ELEMENT) == 1){
mSystem.mEffect.displayDamageWeak(_local7, _local8, _local4, _local5);
trace("WEAK!!");
} else {
if (_arg1.mSlot1.getElementResistance(mSkillSet._ELEMENT) == 2){
mSystem.mEffect.displayDamageStrong(_local7, _local8, _local4, _local5);
trace("STRONG!!");
} else {
if (_arg1.mSlot1.getElementResistance(mSkillSet._ELEMENT) == 3){
mSystem.mEffect.displayDamageNull(_local7, _local8);
trace("NULL!!");
} else {
if (_arg1.mSlot1.getElementResistance(mSkillSet._ELEMENT) == 4){
mSystem.mEffect.displayDamageHeal(_local7, _local8, _local4);
trace("ABSORB!!");
};
};
};
};
};
};
};
if (_arg1.mSlot1._is_absorb){
_local4 = _arg1.mSlot1.recoverHealth(Math.max((_local4 * 0.2), 1));
mSystem.mEffect.displayDamageHeal(_local7, _local8, Math.max((_local4 * 0.2), 1));
trace("absorb damage !");
};
if ((((mSlot1._health <= 0)) && (mSlot1._is_endure))){
mSlot1._health = (mSlot1._health_max * 0.3);
mSlot1._is_endure = false;
mSystem.mEffect.endureEffect(getPosX());
_local10 = new snd_endure();
_local10.playSound(mSystem.mDat.se_volume);
trace("ENDURE activated !");
};
} else {
mSystem.mEffect.displayDamageMiss(_local6, _local8);
trace("miss !! ");
};
}
public function costAP(_arg1:int=0){
currentAP = Math.max((currentAP - _arg1), 0);
}
public function setEnemy(_arg1:int=1, _arg2:int=1, _arg3:int=0, _arg4:int=1, _arg5:int=0, _arg6:int=1){
mSlot1.setBaseUnit(_arg1, 0, _arg2);
mSlot2.setBaseUnit(_arg3, 0, _arg4);
mSlot3.setBaseUnit(_arg5, 0, _arg6);
}
private function updateAPStatus(){
if (mAPUI){
mAPUI.val.htmlText = String((currentAP + "/12"));
mAPUI.bar.scaleX = Math.min(Math.max((currentAP / 12), 0), 1);
};
}
public function updateUnitStatus(){
if (mUnit){
if (mUnit.char.currentFrame != mSlot1._ID){
mUnit.char.gotoAndStop(mSlot1._ID);
};
if (((mSlot1._is_active) && ((mSlot1._health <= 0)))){
koUnit();
};
if (mUnit.char.x > 0){
mUnit.char.x = (mUnit.char.x + _move_x);
_move_x = (_move_x - 3);
if (mUnit.char.x < 0){
mUnit.char.x = 0;
};
};
if (mUnit.char.x < 0){
mUnit.char.x = (mUnit.char.x - _move_x);
_move_x = (_move_x - 3);
if (mUnit.char.x > 0){
mUnit.char.x = 0;
};
};
};
}
public function updatePhaseTurn(){
if (((mSystem.mPlayerParty.partyLose) || (mSystem.mEnemyParty.partyLose))){
return;
};
if ((((currentAP <= 0)) && ((mSystem.contEFFECT.numChildren <= 0)))){
finishTurn = true;
};
}
public function healSelf(_arg1:Number=0){
var _local2 = 550;
var _local3 = 250;
mSlot1.recoverHealth(Math.round((mSlot1._health_max * _arg1)));
mSystem.mEffect.displayDamageHeal(_local2, _local3, Math.round((mSlot1._health_max * _arg1)));
}
public function startPhaseTurn(){
refillAP();
totalTurn = Math.min((totalTurn + 1), 999);
finishTurn = false;
mChainHit.refresh();
}
public function deInitBattle(){
removeUnit();
removeStatus();
removeAP();
}
private function animHit(_arg1:Boolean=false, _arg2:int=0){
mUnit.char.x = 1;
if (_arg2 == 0){
_move_x = (4 + (Math.random() * 4));
} else {
if (_arg2 == 2){
_move_x = (2 + (Math.random() * 2));
} else {
if (_arg2 == 1){
_move_x = (6 + (Math.random() * 6));
};
};
};
if (_arg1){
_move_x = (_move_x * 3);
};
}
private function koUnitHandle(_arg1:Event):void{
var _local2:*;
if (mUnit){
mUnit.alpha = Math.max((mUnit.alpha - 0.01), 0);
if (mUnit.alpha <= 0){
mUnit.removeEventListener(Event.ENTER_FRAME, koUnitHandle);
if (((mSlot2) && (mSlot2._is_active))){
_local2 = mSlot1;
mSlot1 = mSlot2;
mSlot2 = _local2;
dispContUnit.removeChild(mUnit);
mUnit = null;
showUnit();
return;
};
if (((mSlot3) && (mSlot3._is_active))){
_local2 = mSlot1;
mSlot1 = mSlot3;
mSlot3 = _local2;
dispContUnit.removeChild(mUnit);
mUnit = null;
showUnit();
return;
};
_delay = 150;
mSystem.mDCam.focusPlayerCam();
mUnit.addEventListener(Event.ENTER_FRAME, koUnitDelayHandle, false, 0, true);
mSystem.mPlayerParty.hideAP();
mSystem.mPlayerParty.hideCommand();
mSystem.mPlayerParty.removeStatus();
mSystem.mEnemyParty.hideAP();
mSystem.mEnemyParty.removeStatus();
};
};
}
private function koUnitDelayHandle(_arg1:Event):void{
_delay = Math.max((_delay - 1), 0);
if (_delay <= 0){
mUnit.removeEventListener(Event.ENTER_FRAME, koUnitDelayHandle);
dispContUnit.removeChild(mUnit);
mUnit = null;
partyLose = true;
};
}
public function refillAP(){
var _local1:int;
if (((mSlot1) && (mSlot1._is_active))){
_local1 = (_local1 + (mSlot1._AP_BOOST + mSlot1._add_ap));
};
if (((mSlot2) && (mSlot2._is_active))){
_local1 = (_local1 + (mSlot2._AP_BOOST + mSlot2._add_ap));
};
if (((mSlot3) && (mSlot3._is_active))){
_local1 = (_local1 + (mSlot3._AP_BOOST + mSlot3._add_ap));
};
if (currentAP < 12){
currentAP = Math.min((currentAP + _local1), 12);
};
mSlot1._is_guard = false;
}
public function initBattle(){
mSlot1.initialise();
mSlot2.initialise();
mSlot3.initialise();
mChainHit.reset();
currentAP = 0;
totalTurn = 0;
finishTurn = true;
partyLose = false;
showStatus();
showUnit();
}
public function update(){
updateUnitStatus();
updateClipStatus();
updateAPStatus();
updatePhaseTurn();
updateAI();
}
public function showAP(){
removeAP();
if (mAPUI == null){
mAPUI = new enemy_ap_mc();
dispContMenu.addChild(mAPUI);
mAPUI.alpha = 0;
mAPUI.y = -200;
mAPUI.addEventListener(Event.ENTER_FRAME, showAPHandle, false, 0, true);
};
}
public function hideUnit(){
if (mUnit){
_vx = 10;
mUnit.addEventListener(Event.ENTER_FRAME, hideUnitHandle, false, 0, true);
};
}
public function showStatus(){
if (mStat == null){
mStat = new enemy_party_mc();
dispContMenu.addChild(mStat);
mStat.alpha = 0;
mStat.addEventListener(Event.ENTER_FRAME, showStatusHandle, false, 0, true);
};
}
public function isUnitReady():Boolean{
if (mUnit){
if ((((mUnit.x == 550)) && ((mUnit.alpha == 1)))){
return (true);
};
};
return (false);
}
public function getPosX():int{
if (mUnit){
return (mUnit.x);
};
return (0);
}
}
}//package FZGame.Rpg.Class
Section 30
//ListCharUnitSet (FZGame.Rpg.Class.ListCharUnitSet)
package FZGame.Rpg.Class {
import FZGame.Rpg.Class.Base.*;
public class ListCharUnitSet extends CharBaseStat {
public function copyFormObj(_arg1){
_ID = _arg1._ID;
_TYPE = _arg1._TYPE;
_RACE = _arg1._RACE;
_NAME = _arg1._NAME;
_LEVEL = _arg1._LEVEL;
_EXP_MULT = _arg1._EXP_MULT;
_TOTAL_EXP = _arg1._TOTAL_EXP;
_SKILL_1 = _arg1._SKILL_1;
_SKILL_2 = _arg1._SKILL_2;
_SKILL_3 = _arg1._SKILL_3;
_SKILL_4 = _arg1._SKILL_4;
_ABILITY = _arg1._ABILITY;
_EQUIPMENT_1 = _arg1._EQUIPMENT_1;
_EQUIPMENT_2 = _arg1._EQUIPMENT_2;
_ELEMENT_PHYS = _arg1._ELEMENT_PHYS;
_ELEMENT_ENERGY = _arg1._ELEMENT_ENERGY;
_ELEMENT_FIRE = _arg1._ELEMENT_FIRE;
_ELEMENT_WATER = _arg1._ELEMENT_WATER;
_ELEMENT_THUNDER = _arg1._ELEMENT_THUNDER;
_ELEMENT_MYSTIC = _arg1._ELEMENT_MYSTIC;
_APTITUDE_HEALTH = _arg1._APTITUDE_HEALTH;
_APTITUDE_STRENGTH = _arg1._APTITUDE_STRENGTH;
_APTITUDE_DEFENSE = _arg1._APTITUDE_DEFENSE;
_APTITUDE_MAGIC = _arg1._APTITUDE_MAGIC;
_APTITUDE_RESISTANCE = _arg1._APTITUDE_RESISTANCE;
_DROP_ITEM = _arg1._DROP_ITEM;
_AP_BOOST = _arg1._AP_BOOST;
_PRICE = _arg1._PRICE;
_MATERIAL_REQ_1 = _arg1._MATERIAL_REQ_1;
_MATERIAL_REQ_2 = _arg1._MATERIAL_REQ_2;
}
public function retrivePlayerUnitData(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0, _arg5:int=0, _arg6:int=0, _arg7:int=0, _arg8:int=0){
setBaseUnit(_arg1, _arg2);
_SKILL_1 = _arg3;
_SKILL_2 = _arg4;
_SKILL_3 = _arg5;
_SKILL_4 = _arg6;
_EQUIPMENT_1 = _arg7;
_EQUIPMENT_2 = _arg8;
trace(((((("ID = " + _arg1) + " EQP1 = ") + _arg7) + " EQP2 = ") + _arg8));
initialise();
}
public function submitPlayerUnitData(_arg1, _arg2:int=0){
_arg1.unit_slot_id[_arg2] = _ID;
_arg1.unit_slot_exp[_arg2] = _TOTAL_EXP;
_arg1.unit_slot_skill1[_arg2] = _SKILL_1;
_arg1.unit_slot_skill2[_arg2] = _SKILL_2;
_arg1.unit_slot_skill3[_arg2] = _SKILL_3;
_arg1.unit_slot_skill4[_arg2] = _SKILL_4;
_arg1.unit_slot_equip1[_arg2] = _EQUIPMENT_1;
_arg1.unit_slot_equip2[_arg2] = _EQUIPMENT_2;
}
public function initialise(){
if (_ID == C_NONE){
_health = 0;
_is_active = false;
return;
};
_LEVEL = Math.min(Math.max((1 + (_TOTAL_EXP / 1000)), 0), 99);
var _local1:* = new ListEquipmentSet(_EQUIPMENT_1);
var _local2:* = new ListEquipmentSet(_EQUIPMENT_2);
_health_max = (_health = ((((_LEVEL * 100) * (_APTITUDE_HEALTH / 100)) + _local1._ADD_HEALTH) + _local2._ADD_HEALTH));
_strength = ((((_LEVEL * 5) * (_APTITUDE_STRENGTH / 100)) + _local1._ADD_STRENGTH) + _local2._ADD_STRENGTH);
_defense = ((((_LEVEL * 5) * (_APTITUDE_DEFENSE / 100)) + _local1._ADD_DEFENSE) + _local2._ADD_DEFENSE);
_magic = ((((_LEVEL * 5) * (_APTITUDE_MAGIC / 100)) + _local1._ADD_MAGIC) + _local2._ADD_MAGIC);
_resistance = ((((_LEVEL * 5) * (_APTITUDE_RESISTANCE / 100)) + _local1._ADD_RESISTANCE) + _local2._ADD_RESISTANCE);
_is_resist_phys = false;
_is_resist_energy = false;
_is_resist_fire = false;
_is_resist_water = false;
_is_resist_thunder = false;
_is_resist_mystic = false;
_is_rage = false;
_is_endure = false;
_is_expplus = false;
_is_pierce = false;
_is_criticalup = false;
_is_absorb = false;
_is_reflect = false;
_add_ap = 0;
if ((((_ABILITY == A_RESIST_PHYS)) || ((_ABILITY == A_RESIST_ALL)))){
_is_resist_phys = true;
};
if ((((_ABILITY == A_RESIST_ENERGY)) || ((_ABILITY == A_RESIST_ALL)))){
_is_resist_energy = true;
};
if ((((_ABILITY == A_RESIST_FIRE)) || ((_ABILITY == A_RESIST_ALL)))){
_is_resist_fire = true;
};
if ((((_ABILITY == A_RESIST_WATER)) || ((_ABILITY == A_RESIST_ALL)))){
_is_resist_water = true;
};
if ((((_ABILITY == A_RESIST_THUNDER)) || ((_ABILITY == A_RESIST_ALL)))){
_is_resist_thunder = true;
};
if ((((_ABILITY == A_RESIST_MYSTIC)) || ((_ABILITY == A_RESIST_ALL)))){
_is_resist_mystic = true;
};
if (_ABILITY == A_RAGE){
_is_rage = true;
};
if (_ABILITY == A_ENDURE){
_is_endure = true;
};
if (_ABILITY == A_EXP_PLUS){
_is_expplus = true;
};
if (_ABILITY == A_PIERCE){
_is_pierce = true;
};
if (_ABILITY == A_CRITICAL_UP){
_is_criticalup = true;
};
if (_ABILITY == A_ABSORB){
_is_absorb = true;
};
if (_ABILITY == A_REFLECT){
_is_reflect = true;
};
if (_ABILITY == A_APBOOST1){
_add_ap = (_add_ap + 1);
};
if (_ABILITY == A_APBOOST2){
_add_ap = (_add_ap + 2);
};
if ((((_local1._EFFECT_ID == A_RESIST_PHYS)) || ((_local1._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_phys = true;
};
if ((((_local1._EFFECT_ID == A_RESIST_ENERGY)) || ((_local1._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_energy = true;
};
if ((((_local1._EFFECT_ID == A_RESIST_FIRE)) || ((_local1._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_fire = true;
};
if ((((_local1._EFFECT_ID == A_RESIST_WATER)) || ((_local1._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_water = true;
};
if ((((_local1._EFFECT_ID == A_RESIST_THUNDER)) || ((_local1._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_thunder = true;
};
if ((((_local1._EFFECT_ID == A_RESIST_MYSTIC)) || ((_local1._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_mystic = true;
};
if (_local1._EFFECT_ID == A_RAGE){
_is_rage = true;
};
if (_local1._EFFECT_ID == A_ENDURE){
_is_endure = true;
};
if (_local1._EFFECT_ID == A_EXP_PLUS){
_is_expplus = true;
};
if (_local1._EFFECT_ID == A_PIERCE){
_is_pierce = true;
};
if (_local1._EFFECT_ID == A_CRITICAL_UP){
_is_criticalup = true;
};
if (_local1._EFFECT_ID == A_ABSORB){
_is_absorb = true;
};
if (_local1._EFFECT_ID == A_REFLECT){
_is_reflect = true;
};
if (_local1._EFFECT_ID == A_APBOOST1){
_add_ap = (_add_ap + 1);
};
if (_local1._EFFECT_ID == A_APBOOST2){
_add_ap = (_add_ap + 2);
};
if ((((_local2._EFFECT_ID == A_RESIST_PHYS)) || ((_local2._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_phys = true;
};
if ((((_local2._EFFECT_ID == A_RESIST_ENERGY)) || ((_local2._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_energy = true;
};
if ((((_local2._EFFECT_ID == A_RESIST_FIRE)) || ((_local2._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_fire = true;
};
if ((((_local2._EFFECT_ID == A_RESIST_WATER)) || ((_local2._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_water = true;
};
if ((((_local2._EFFECT_ID == A_RESIST_THUNDER)) || ((_local2._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_thunder = true;
};
if ((((_local2._EFFECT_ID == A_RESIST_MYSTIC)) || ((_local2._EFFECT_ID == A_RESIST_ALL)))){
_is_resist_mystic = true;
};
if (_local2._EFFECT_ID == A_RAGE){
_is_rage = true;
};
if (_local2._EFFECT_ID == A_ENDURE){
_is_endure = true;
};
if (_local2._EFFECT_ID == A_EXP_PLUS){
_is_expplus = true;
};
if (_local2._EFFECT_ID == A_PIERCE){
_is_pierce = true;
};
if (_local2._EFFECT_ID == A_CRITICAL_UP){
_is_criticalup = true;
};
if (_local2._EFFECT_ID == A_ABSORB){
_is_absorb = true;
};
if (_local2._EFFECT_ID == A_REFLECT){
_is_reflect = true;
};
if (_local2._EFFECT_ID == A_APBOOST1){
_add_ap = (_add_ap + 1);
};
if (_local2._EFFECT_ID == A_APBOOST2){
_add_ap = (_add_ap + 2);
};
_is_focus = false;
_is_concentrate = false;
_is_guard = false;
_is_barrier = false;
_is_active = true;
}
public function setBaseUnit(_arg1:int=0, _arg2:int=0, _arg3:int=0){
_ID = C_NONE;
_NAME = "noname";
_TOTAL_EXP = _arg2;
_EXP_MULT = 1;
_LEVEL = 1;
_SKILL_1 = S_NONE;
_SKILL_2 = S_NONE;
_SKILL_3 = S_NONE;
_SKILL_4 = S_NONE;
_ABILITY = A_NONE;
_EQUIPMENT_1 = Z_NONE;
_EQUIPMENT_2 = Z_NONE;
_ELEMENT_PHYS = 0;
_ELEMENT_ENERGY = 0;
_ELEMENT_FIRE = 0;
_ELEMENT_WATER = 0;
_ELEMENT_THUNDER = 0;
_ELEMENT_MYSTIC = 0;
_APTITUDE_HEALTH = 100;
_APTITUDE_STRENGTH = 100;
_APTITUDE_DEFENSE = 100;
_APTITUDE_MAGIC = 100;
_APTITUDE_RESISTANCE = 100;
_DROP_ITEM = 0;
_AP_BOOST = 1;
_PRICE = 0;
_MATERIAL_REQ_1 = 0;
_MATERIAL_REQ_2 = 0;
if (_arg1 == C_BAPHOMET){
_ID = _arg1;
_NAME = "Baphomet";
_LEVEL = 1;
_EXP_MULT = 0.9;
_SKILL_1 = S_PH_THURST;
_SKILL_2 = S_FI_FLAME;
_SKILL_3 = S_TH_LIGHTING;
_APTITUDE_HEALTH = 95;
_APTITUDE_STRENGTH = 80;
_APTITUDE_DEFENSE = 60;
_APTITUDE_MAGIC = 103;
_APTITUDE_RESISTANCE = 115;
_ELEMENT_ENERGY = 1;
_ELEMENT_FIRE = 2;
} else {
if (_arg1 == C_BASILIK){
_ID = _arg1;
_NAME = "Basilik";
_LEVEL = 1;
_EXP_MULT = 0.7;
_SKILL_1 = S_PH_POWER_HIT;
_SKILL_2 = S_WA_BUBBLE;
_SKILL_3 = S_EN_ENERGY_BALL;
_APTITUDE_HEALTH = 152;
_APTITUDE_STRENGTH = 107;
_APTITUDE_DEFENSE = 112;
_APTITUDE_MAGIC = 60;
_APTITUDE_RESISTANCE = 72;
_ELEMENT_PHYS = 2;
_AP_BOOST = 2;
} else {
if (_arg1 == C_CERBERUS){
_ID = _arg1;
_NAME = "Fire Cerberus";
_LEVEL = 1;
_EXP_MULT = 0.8;
_SKILL_1 = S_PH_SMASH;
_SKILL_2 = S_FI_INFERNO;
_APTITUDE_HEALTH = 105;
_APTITUDE_STRENGTH = 109;
_APTITUDE_DEFENSE = 97;
_APTITUDE_MAGIC = 92;
_APTITUDE_RESISTANCE = 96;
_ELEMENT_FIRE = 2;
_ELEMENT_WATER = 1;
} else {
if (_arg1 == C_CHIMERA){
_ID = _arg1;
_NAME = "Chimera";
_LEVEL = 2;
_EXP_MULT = 0.8;
_SKILL_1 = S_EN_SONIC_BLAST;
_SKILL_2 = S_PH_POWER_HIT;
_SKILL_3 = S_PH_FOCUS;
_APTITUDE_HEALTH = 112;
_APTITUDE_STRENGTH = 103;
_APTITUDE_DEFENSE = 101;
_APTITUDE_MAGIC = 105;
_APTITUDE_RESISTANCE = 102;
_ELEMENT_ENERGY = 2;
_ELEMENT_THUNDER = 1;
_AP_BOOST = 2;
} else {
if (_arg1 == C_DJIN){
_ID = _arg1;
_NAME = "DJinx";
_LEVEL = 1;
_EXP_MULT = 0.8;
_SKILL_1 = S_MI_DARK_FORCE;
_SKILL_2 = S_WA_FROST;
_SKILL_3 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 97;
_APTITUDE_STRENGTH = 103;
_APTITUDE_DEFENSE = 78;
_APTITUDE_MAGIC = 121;
_APTITUDE_RESISTANCE = 112;
_ELEMENT_ENERGY = 1;
_ELEMENT_MYSTIC = 2;
} else {
if (_arg1 == C_DRYAD){
_ID = _arg1;
_NAME = "Dryad";
_LEVEL = 1;
_EXP_MULT = 0.9;
_SKILL_1 = S_WA_FROST;
_SKILL_2 = S_WA_HEAL;
_APTITUDE_HEALTH = 92;
_APTITUDE_STRENGTH = 97;
_APTITUDE_DEFENSE = 100;
_APTITUDE_MAGIC = 117;
_APTITUDE_RESISTANCE = 106;
_ELEMENT_FIRE = 1;
_ELEMENT_WATER = 2;
} else {
if (_arg1 == C_ECHIDNA){
_ID = _arg1;
_NAME = "Echidna";
_LEVEL = 0.7;
_EXP_MULT = 1500;
_SKILL_1 = S_WA_ICESTORM;
_SKILL_2 = S_WA_HEAL;
_APTITUDE_HEALTH = 126;
_APTITUDE_STRENGTH = 113;
_APTITUDE_DEFENSE = 110;
_APTITUDE_MAGIC = 128;
_APTITUDE_RESISTANCE = 119;
_ELEMENT_ENERGY = 3;
_ELEMENT_MYSTIC = 3;
_AP_BOOST = 2;
} else {
if (_arg1 == C_GARUDA){
_ID = _arg1;
_NAME = "Garuda";
_LEVEL = 1;
_EXP_MULT = 0.8;
_SKILL_1 = S_PH_SMASH;
_SKILL_2 = S_FI_BURN;
_SKILL_2 = S_FI_FLAME;
_APTITUDE_HEALTH = 105;
_APTITUDE_STRENGTH = 110;
_APTITUDE_DEFENSE = 85;
_APTITUDE_MAGIC = 105;
_APTITUDE_RESISTANCE = 83;
_ELEMENT_FIRE = 2;
_ELEMENT_THUNDER = 2;
_AP_BOOST = 2;
} else {
if (_arg1 == C_LAMIA){
_ID = _arg1;
_NAME = "Lamia";
_LEVEL = 1;
_EXP_MULT = 0.7;
_SKILL_1 = S_MI_CHAOS_WAVE;
_SKILL_2 = S_TH_THUNDER_BLADE;
_SKILL_3 = S_FI_FLAME;
_APTITUDE_HEALTH = 114;
_APTITUDE_STRENGTH = 106;
_APTITUDE_DEFENSE = 97;
_APTITUDE_MAGIC = 101;
_APTITUDE_RESISTANCE = 82;
_ELEMENT_FIRE = 1;
_ELEMENT_MYSTIC = 2;
_AP_BOOST = 2;
} else {
if (_arg1 == C_MANDRAGORA){
_ID = _arg1;
_NAME = "Mandragora";
_LEVEL = 1;
_EXP_MULT = 0.6;
_SKILL_1 = S_FI_EXPLOSION;
_SKILL_2 = S_TH_LIGHTING;
_APTITUDE_HEALTH = 142;
_APTITUDE_STRENGTH = 119;
_APTITUDE_DEFENSE = 85;
_APTITUDE_MAGIC = 115;
_APTITUDE_RESISTANCE = 90;
_ELEMENT_FIRE = 2;
_AP_BOOST = 2;
} else {
if (_arg1 == C_MINOTOUR){
_ID = _arg1;
_NAME = "Minotour";
_LEVEL = 1;
_EXP_MULT = 0.9;
_SKILL_1 = S_PH_SMASH;
_SKILL_2 = S_PH_MIGHTY_BLOW;
_APTITUDE_HEALTH = 102;
_APTITUDE_STRENGTH = 100;
_APTITUDE_DEFENSE = 110;
_APTITUDE_MAGIC = 76;
_APTITUDE_RESISTANCE = 92;
_ELEMENT_PHYS = 2;
_ELEMENT_ENERGY = 2;
_ELEMENT_WATER = 1;
_ELEMENT_MYSTIC = 1;
} else {
if (_arg1 == C_POCONG){
_ID = _arg1;
_NAME = "Pocong";
_LEVEL = 1;
_EXP_MULT = 1;
_SKILL_1 = S_PH_SMASH;
_SKILL_2 = S_FI_BURN;
_SKILL_3 = S_EN_RAY;
_APTITUDE_HEALTH = 70;
_APTITUDE_STRENGTH = 65;
_APTITUDE_DEFENSE = 71;
_APTITUDE_MAGIC = 101;
_APTITUDE_RESISTANCE = 62;
_ELEMENT_PHYS = 1;
_ELEMENT_FIRE = 2;
_ELEMENT_WATER = 2;
_ELEMENT_THUNDER = 2;
} else {
if (_arg1 == C_RED_KNIGHT){
_ID = _arg1;
_NAME = "Red Knight";
_LEVEL = 1;
_EXP_MULT = 0.7;
_SKILL_1 = S_PH_POWER_HIT;
_SKILL_2 = S_FI_FLAME;
_SKILL_3 = S_TH_THUNDER_BLADE;
_APTITUDE_HEALTH = 125;
_APTITUDE_STRENGTH = 120;
_APTITUDE_DEFENSE = 115;
_APTITUDE_MAGIC = 50;
_APTITUDE_RESISTANCE = 52;
_ELEMENT_PHYS = 2;
_ELEMENT_FIRE = 3;
_ELEMENT_WATER = 1;
_ELEMENT_THUNDER = 3;
_ELEMENT_MYSTIC = 1;
_AP_BOOST = 2;
_ABILITY = A_ENDURE;
} else {
if (_arg1 == C_SEA_SERPENT){
_ID = _arg1;
_NAME = "Sea Serpent";
_LEVEL = 1;
_EXP_MULT = 0.6;
_SKILL_1 = S_WA_BLIZZARD;
_SKILL_2 = S_WA_FROST;
_SKILL_3 = S_WA_HEAL;
_APTITUDE_HEALTH = 165;
_APTITUDE_STRENGTH = 102;
_APTITUDE_DEFENSE = 125;
_APTITUDE_MAGIC = 117;
_APTITUDE_RESISTANCE = 135;
_ELEMENT_PHYS = 2;
_ELEMENT_WATER = 4;
_ELEMENT_THUNDER = 1;
_AP_BOOST = 3;
} else {
if (_arg1 == C_THANATOS){
_ID = _arg1;
_NAME = "Thanatos";
_LEVEL = 1;
_EXP_MULT = 0.7;
_SKILL_1 = S_PH_POWER_HIT;
_SKILL_2 = S_PH_RAMPAGE;
_APTITUDE_HEALTH = 110;
_APTITUDE_STRENGTH = 124;
_APTITUDE_DEFENSE = 95;
_APTITUDE_MAGIC = 102;
_APTITUDE_RESISTANCE = 97;
_ELEMENT_PHYS = 2;
_ELEMENT_ENERGY = 1;
_ELEMENT_MYSTIC = 3;
_AP_BOOST = 2;
} else {
if (_arg1 == C_TUYUL){
_ID = _arg1;
_NAME = "Tuyul";
_LEVEL = 1;
_EXP_MULT = 1;
_SKILL_1 = S_PH_SMASH;
_SKILL_2 = S_WA_BUBBLE;
_SKILL_3 = S_TH_SHOCK;
_APTITUDE_HEALTH = 60;
_APTITUDE_STRENGTH = 55;
_APTITUDE_DEFENSE = 45;
_APTITUDE_MAGIC = 102;
_APTITUDE_RESISTANCE = 40;
_ELEMENT_ENERGY = 2;
_ELEMENT_MYSTIC = 2;
} else {
if (_arg1 == C_UNDEAD){
_ID = _arg1;
_NAME = "Undead";
_LEVEL = 1;
_EXP_MULT = 1;
_SKILL_1 = S_MI_POISON_MIST;
_SKILL_2 = S_WA_BUBBLE;
_APTITUDE_HEALTH = 123;
_APTITUDE_STRENGTH = 72;
_APTITUDE_DEFENSE = 82;
_APTITUDE_MAGIC = 71;
_APTITUDE_RESISTANCE = 80;
_ELEMENT_MYSTIC = 2;
} else {
if (_arg1 == C_YAKSA){
_ID = _arg1;
_NAME = "Yaksa";
_LEVEL = 1;
_EXP_MULT = 0.8;
_SKILL_1 = S_PH_POWER_HIT;
_SKILL_2 = S_FI_FLAME;
_SKILL_3 = S_TH_LIGHTING;
_SKILL_3 = S_EN_SONIC_BLAST;
_APTITUDE_HEALTH = 120;
_APTITUDE_STRENGTH = 106;
_APTITUDE_DEFENSE = 90;
_APTITUDE_MAGIC = 103;
_APTITUDE_RESISTANCE = 90;
_ELEMENT_PHYS = 2;
_ELEMENT_FIRE = 2;
_AP_BOOST = 2;
} else {
if (_arg1 == C_YAKSHINI){
_ID = _arg1;
_NAME = "Yakshini";
_LEVEL = 1;
_EXP_MULT = 0.6;
_SKILL_1 = S_EN_WIND_CUTTER;
_SKILL_2 = S_WA_ICESTORM;
_SKILL_3 = S_PH_RAMPAGE;
_SKILL_4 = S_WA_HEAL;
_APTITUDE_HEALTH = 155;
_APTITUDE_STRENGTH = 120;
_APTITUDE_DEFENSE = 95;
_APTITUDE_MAGIC = 127;
_APTITUDE_RESISTANCE = 105;
_ELEMENT_PHYS = 3;
_ELEMENT_ENERGY = 2;
_ELEMENT_FIRE = 1;
_ELEMENT_WATER = 1;
_ELEMENT_THUNDER = 2;
_AP_BOOST = 3;
_ABILITY = A_ENDURE;
} else {
if (_arg1 == C_ANGEL_WARRIOR){
_ID = _arg1;
_NAME = "Angel Knight";
_LEVEL = 1;
_EXP_MULT = 0.6;
_SKILL_1 = S_WA_ICESTORM;
_SKILL_2 = S_EN_WIND_CUTTER;
_SKILL_3 = S_EN_RADIANT_BLAST;
_SKILL_4 = S_WA_HEAL;
_APTITUDE_HEALTH = 135;
_APTITUDE_STRENGTH = 130;
_APTITUDE_DEFENSE = 102;
_APTITUDE_MAGIC = 134;
_APTITUDE_RESISTANCE = 105;
_ELEMENT_ENERGY = 3;
_ELEMENT_FIRE = 2;
_ELEMENT_WATER = 2;
_ELEMENT_MYSTIC = 2;
_AP_BOOST = 3;
_ABILITY = A_REFLECT;
} else {
if (_arg1 == C_ANUBIS){
_ID = _arg1;
_NAME = "King Anubis";
_LEVEL = 1;
_EXP_MULT = 0.6;
_SKILL_1 = S_PH_POWER_HIT;
_SKILL_2 = S_PH_RAMPAGE;
_SKILL_3 = S_FI_INFERNO;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 167;
_APTITUDE_STRENGTH = 133;
_APTITUDE_DEFENSE = 110;
_APTITUDE_MAGIC = 95;
_APTITUDE_RESISTANCE = 80;
_ELEMENT_PHYS = 2;
_ELEMENT_FIRE = 2;
_ELEMENT_THUNDER = 2;
_AP_BOOST = 3;
} else {
if (_arg1 == C_BAIHU){
_ID = _arg1;
_NAME = "White Tiger";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_PH_RAMPAGE;
_SKILL_2 = S_MI_BLOODY_HOWL;
_SKILL_3 = S_WA_BLIZZARD;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 180;
_APTITUDE_STRENGTH = 160;
_APTITUDE_DEFENSE = 107;
_APTITUDE_MAGIC = 104;
_APTITUDE_RESISTANCE = 85;
_ELEMENT_ENERGY = 2;
_ELEMENT_FIRE = 1;
_ELEMENT_WATER = 4;
_ELEMENT_MYSTIC = 2;
_AP_BOOST = 3;
_ABILITY = A_RAGE;
} else {
if (_arg1 == C_BATTLE_MAIDEN){
_ID = _arg1;
_NAME = "Valkyrie";
_LEVEL = 1;
_EXP_MULT = 0.6;
_SKILL_1 = S_PH_RAMPAGE;
_SKILL_2 = S_EN_WIND_CUTTER;
_SKILL_3 = S_TH_THUNDER_BLADE;
_SKILL_4 = S_WA_HEAL;
_APTITUDE_HEALTH = 127;
_APTITUDE_STRENGTH = 129;
_APTITUDE_DEFENSE = 109;
_APTITUDE_MAGIC = 123;
_APTITUDE_RESISTANCE = 107;
_ELEMENT_PHYS = 2;
_ELEMENT_FIRE = 2;
_ELEMENT_THUNDER = 3;
_AP_BOOST = 2;
_ABILITY = A_ENDURE;
} else {
if (_arg1 == C_DRAGON){
_ID = _arg1;
_NAME = "Dragon";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_PH_RAMPAGE;
_SKILL_2 = S_FI_INFERNO;
_SKILL_3 = S_TH_MJOLLNIR;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 200;
_APTITUDE_STRENGTH = 140;
_APTITUDE_DEFENSE = 150;
_APTITUDE_MAGIC = 110;
_APTITUDE_RESISTANCE = 130;
_ELEMENT_PHYS = 2;
_ELEMENT_FIRE = 3;
_ELEMENT_THUNDER = 2;
_AP_BOOST = 3;
_ABILITY = A_ENDURE;
} else {
if (_arg1 == C_GHOUL){
_ID = _arg1;
_NAME = "Ghoul";
_LEVEL = 1;
_EXP_MULT = 0.7;
_SKILL_1 = S_MI_CHAOS_WAVE;
_SKILL_2 = S_TH_SHOCK;
_SKILL_3 = S_TH_MJOLLNIR;
_SKILL_4 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 121;
_APTITUDE_STRENGTH = 112;
_APTITUDE_DEFENSE = 95;
_APTITUDE_MAGIC = 123;
_APTITUDE_RESISTANCE = 130;
_ELEMENT_ENERGY = 1;
_ELEMENT_WATER = 1;
_ELEMENT_MYSTIC = 3;
_AP_BOOST = 2;
} else {
if (_arg1 == C_GOBLIN){
_ID = _arg1;
_NAME = "Goblin";
_LEVEL = 1;
_EXP_MULT = 0.9;
_SKILL_1 = S_PH_THURST;
_SKILL_2 = S_FI_EXPLOSION;
_SKILL_3 = S_PH_FOCUS;
_SKILL_4 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 100;
_APTITUDE_STRENGTH = 100;
_APTITUDE_DEFENSE = 100;
_APTITUDE_MAGIC = 100;
_APTITUDE_RESISTANCE = 100;
_AP_BOOST = 2;
} else {
if (_arg1 == C_INCUBUS){
_ID = _arg1;
_NAME = "Vampire Lord";
_LEVEL = 1;
_EXP_MULT = 0.6;
_SKILL_1 = S_MI_CHAOS_WAVE;
_SKILL_2 = S_MI_SHADOW_FURY;
_SKILL_3 = S_MI_BLOODY_HOWL;
_SKILL_4 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 124;
_APTITUDE_STRENGTH = 123;
_APTITUDE_DEFENSE = 92;
_APTITUDE_MAGIC = 130;
_APTITUDE_RESISTANCE = 106;
_ELEMENT_ENERGY = 1;
_ELEMENT_WATER = 1;
_ELEMENT_THUNDER = 2;
_ELEMENT_MYSTIC = 4;
_AP_BOOST = 3;
_ABILITY = A_ABSORB;
} else {
if (_arg1 == C_LICH){
_ID = _arg1;
_NAME = "Liche";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_WA_BLIZZARD;
_SKILL_2 = S_PH_RAMPAGE;
_SKILL_3 = S_MI_BLOODY_HOWL;
_SKILL_4 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 190;
_APTITUDE_STRENGTH = 125;
_APTITUDE_DEFENSE = 100;
_APTITUDE_MAGIC = 155;
_APTITUDE_RESISTANCE = 150;
_ELEMENT_PHYS = 1;
_ELEMENT_ENERGY = 1;
_ELEMENT_FIRE = 3;
_ELEMENT_WATER = 2;
_ELEMENT_MYSTIC = 4;
_AP_BOOST = 3;
_ABILITY = A_PIERCE;
} else {
if (_arg1 == C_LIZARDMEN){
_ID = _arg1;
_NAME = "Lizard Warrior";
_LEVEL = 1;
_EXP_MULT = 0.8;
_SKILL_1 = S_PH_MIGHTY_BLOW;
_SKILL_2 = S_TH_LIGHTING;
_SKILL_3 = S_WA_FROST;
_APTITUDE_HEALTH = 132;
_APTITUDE_STRENGTH = 127;
_APTITUDE_DEFENSE = 100;
_APTITUDE_MAGIC = 95;
_APTITUDE_RESISTANCE = 97;
_ELEMENT_FIRE = 1;
_ELEMENT_WATER = 2;
} else {
if (_arg1 == C_SALAMANDER){
_ID = _arg1;
_NAME = "Salamader";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_PH_MIGHTY_BLOW;
_SKILL_2 = S_FI_INFERNO;
_SKILL_3 = S_FI_BURNING_SOUL;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 168;
_APTITUDE_STRENGTH = 132;
_APTITUDE_DEFENSE = 123;
_APTITUDE_MAGIC = 101;
_APTITUDE_RESISTANCE = 104;
_ELEMENT_FIRE = 4;
_ELEMENT_WATER = 1;
_AP_BOOST = 3;
} else {
if (_arg1 == C_SELKIE){
_ID = _arg1;
_NAME = "Selkie";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_WA_FROST;
_SKILL_2 = S_MI_BLOODY_HOWL;
_SKILL_3 = S_PH_RAMPAGE;
_SKILL_4 = S_EN_RADIANT_BLAST;
_APTITUDE_HEALTH = 140;
_APTITUDE_STRENGTH = 130;
_APTITUDE_DEFENSE = 110;
_APTITUDE_MAGIC = 130;
_APTITUDE_RESISTANCE = 110;
_ELEMENT_PHYS = 2;
_ELEMENT_ENERGY = 2;
_ELEMENT_FIRE = 2;
_ELEMENT_WATER = 2;
_ELEMENT_THUNDER = 2;
_ELEMENT_MYSTIC = 2;
_AP_BOOST = 3;
_ABILITY = A_ABSORB;
} else {
if (_arg1 == C_ANGEL_WARRIOR2){
_ID = _arg1;
_NAME = "Angel Knight";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_EN_RAY;
_SKILL_2 = S_WA_ICESTORM;
_SKILL_3 = S_EN_SOARING_LIGHT;
_SKILL_4 = S_WA_HEAL;
_APTITUDE_HEALTH = 800;
_APTITUDE_STRENGTH = 115;
_APTITUDE_DEFENSE = 100;
_APTITUDE_MAGIC = 117;
_APTITUDE_RESISTANCE = 103;
_ELEMENT_ENERGY = 3;
_AP_BOOST = 5;
_ABILITY = A_REFLECT;
} else {
if (_arg1 == C_ANGEL_WARRIOR3){
_ID = _arg1;
_NAME = "Angel Knight EX";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_EN_RADIANT_BLAST;
_SKILL_2 = S_WA_BLIZZARD;
_SKILL_3 = S_EN_SOARING_LIGHT;
_SKILL_4 = S_WA_HEAL;
_APTITUDE_HEALTH = 3000;
_APTITUDE_STRENGTH = 129;
_APTITUDE_DEFENSE = 350;
_APTITUDE_MAGIC = 122;
_APTITUDE_RESISTANCE = 350;
_ELEMENT_PHYS = 2;
_ELEMENT_ENERGY = 4;
_ELEMENT_MYSTIC = 2;
_AP_BOOST = 7;
_ABILITY = A_ENDURE;
} else {
if (_arg1 == C_ANGEL_WARRIOR4){
_ID = _arg1;
_NAME = "Angel Knight";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_EN_SOARING_LIGHT;
_SKILL_2 = S_WA_ICESTORM;
_SKILL_3 = S_EN_RADIANT_BLAST;
_SKILL_4 = S_WA_HEAL;
_APTITUDE_HEALTH = 1200;
_APTITUDE_STRENGTH = 115;
_APTITUDE_DEFENSE = 100;
_APTITUDE_MAGIC = 117;
_APTITUDE_RESISTANCE = 103;
_ELEMENT_ENERGY = 3;
_AP_BOOST = 6;
_ABILITY = A_PIERCE;
} else {
if (_arg1 == C_BAIHU2){
_ID = _arg1;
_NAME = "White Tiger";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_PH_POWER_HIT;
_SKILL_2 = S_MI_BLOODY_HOWL;
_SKILL_3 = S_WA_BLIZZARD;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 600;
_APTITUDE_STRENGTH = 150;
_APTITUDE_DEFENSE = 107;
_APTITUDE_MAGIC = 104;
_APTITUDE_RESISTANCE = 105;
_ELEMENT_PHYS = 2;
_ELEMENT_ENERGY = 2;
_ELEMENT_FIRE = 2;
_ELEMENT_WATER = 2;
_ELEMENT_THUNDER = 2;
_AP_BOOST = 5;
_ABILITY = A_RAGE;
} else {
if (_arg1 == C_BAIHU3){
_ID = _arg1;
_NAME = "White Tiger";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_PH_RAMPAGE;
_SKILL_2 = S_MI_BLOODY_HOWL;
_SKILL_3 = S_WA_BLIZZARD;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 2500;
_APTITUDE_STRENGTH = 999;
_APTITUDE_DEFENSE = 600;
_APTITUDE_MAGIC = 70;
_APTITUDE_RESISTANCE = 100;
_ELEMENT_PHYS = 2;
_ELEMENT_ENERGY = 2;
_ELEMENT_FIRE = 1;
_ELEMENT_WATER = 4;
_ELEMENT_MYSTIC = 3;
_AP_BOOST = 12;
_ABILITY = A_ENDURE;
} else {
if (_arg1 == C_BATTLE_MAIDEN2){
_ID = _arg1;
_NAME = "Valkyrie";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_PH_THURST;
_SKILL_2 = S_EN_WIND_CUTTER;
_SKILL_3 = S_TH_THUNDER_BLADE;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 170;
_APTITUDE_STRENGTH = 100;
_APTITUDE_DEFENSE = 100;
_APTITUDE_MAGIC = 100;
_APTITUDE_RESISTANCE = 100;
_ELEMENT_THUNDER = 2;
_AP_BOOST = 3;
} else {
if (_arg1 == C_BATTLE_MAIDEN3){
_ID = _arg1;
_NAME = "Valkyrie";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_EN_WIND_CUTTER;
_SKILL_2 = S_WA_BLIZZARD;
_SKILL_3 = S_TH_THUNDER_BLADE;
_SKILL_4 = S_WA_HEAL;
_APTITUDE_HEALTH = 200;
_APTITUDE_STRENGTH = 129;
_APTITUDE_DEFENSE = 119;
_APTITUDE_MAGIC = 118;
_APTITUDE_RESISTANCE = 117;
_ELEMENT_PHYS = 2;
_ELEMENT_THUNDER = 2;
_AP_BOOST = 2;
_ABILITY = A_REFLECT;
} else {
if (_arg1 == C_DRAGON2){
_ID = _arg1;
_NAME = "Dragon";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_PH_POWER_HIT;
_SKILL_2 = S_FI_INFERNO;
_SKILL_3 = S_TH_MJOLLNIR;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 500;
_APTITUDE_STRENGTH = 130;
_APTITUDE_DEFENSE = 150;
_APTITUDE_MAGIC = 100;
_APTITUDE_RESISTANCE = 112;
_ELEMENT_FIRE = 2;
_AP_BOOST = 3;
} else {
if (_arg1 == C_DRAGON3){
_ID = _arg1;
_NAME = "Dragon";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_PH_RAMPAGE;
_SKILL_2 = S_FI_INFERNO;
_SKILL_3 = S_TH_MJOLLNIR;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 2000;
_APTITUDE_STRENGTH = 150;
_APTITUDE_DEFENSE = 170;
_APTITUDE_MAGIC = 110;
_APTITUDE_RESISTANCE = 122;
_ELEMENT_FIRE = 2;
_AP_BOOST = 5;
_ABILITY = A_PIERCE;
} else {
if (_arg1 == C_DRAGON4){
_ID = _arg1;
_NAME = "Dragon";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_FI_FLAME;
_SKILL_2 = S_FI_INFERNO;
_SKILL_3 = S_TH_MJOLLNIR;
_SKILL_4 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 700;
_APTITUDE_STRENGTH = 130;
_APTITUDE_DEFENSE = 150;
_APTITUDE_MAGIC = 120;
_APTITUDE_RESISTANCE = 112;
_ELEMENT_FIRE = 2;
_AP_BOOST = 3;
} else {
if (_arg1 == C_INCUBUS2){
_ID = _arg1;
_NAME = "Vampire Lord";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_MI_CHAOS_WAVE;
_SKILL_2 = S_MI_SHADOW_FURY;
_SKILL_3 = S_MI_BLOODY_HOWL;
_SKILL_4 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 300;
_APTITUDE_STRENGTH = 123;
_APTITUDE_DEFENSE = 102;
_APTITUDE_MAGIC = 179;
_APTITUDE_RESISTANCE = 116;
_ELEMENT_ENERGY = 1;
_ELEMENT_MYSTIC = 2;
_AP_BOOST = 3;
_ABILITY = A_ABSORB;
} else {
if (_arg1 == C_INCUBUS3){
_ID = _arg1;
_NAME = "Vampire Lord";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_MI_DARK_FORCE;
_SKILL_2 = S_MI_POISON_MIST;
_SKILL_3 = S_MI_CHAOS_WAVE;
_SKILL_4 = S_MI_SHADOW_FURY;
_APTITUDE_HEALTH = 400;
_APTITUDE_STRENGTH = 113;
_APTITUDE_DEFENSE = 102;
_APTITUDE_MAGIC = 115;
_APTITUDE_RESISTANCE = 116;
_ELEMENT_ENERGY = 1;
_ELEMENT_MYSTIC = 3;
_AP_BOOST = 3;
_ABILITY = A_ABSORB;
} else {
if (_arg1 == C_INCUBUS4){
_ID = _arg1;
_NAME = "Vampire Lord";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_MI_CHAOS_WAVE;
_SKILL_2 = S_MI_SHADOW_FURY;
_SKILL_3 = S_MI_BLOODY_HOWL;
_SKILL_4 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 1200;
_APTITUDE_STRENGTH = 153;
_APTITUDE_DEFENSE = 102;
_APTITUDE_MAGIC = 199;
_APTITUDE_RESISTANCE = 116;
_ELEMENT_MYSTIC = 4;
_AP_BOOST = 3;
_ABILITY = A_ABSORB;
} else {
if (_arg1 == C_LICH2){
_ID = _arg1;
_NAME = "Liche";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_WA_BLIZZARD;
_SKILL_2 = S_PH_RAMPAGE;
_SKILL_3 = S_MI_BLOODY_HOWL;
_SKILL_4 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 650;
_APTITUDE_STRENGTH = 135;
_APTITUDE_DEFENSE = 101;
_APTITUDE_MAGIC = 165;
_APTITUDE_RESISTANCE = 115;
_ELEMENT_THUNDER = 2;
_ELEMENT_MYSTIC = 3;
_AP_BOOST = 3;
_ABILITY = A_PIERCE;
} else {
if (_arg1 == C_LICH3){
_ID = _arg1;
_NAME = "Liche";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_PH_POWER_HIT;
_SKILL_2 = S_FI_BURNING_SOUL;
_SKILL_3 = S_TH_MJOLLNIR;
_SKILL_4 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 2500;
_APTITUDE_STRENGTH = 100;
_APTITUDE_DEFENSE = 100;
_APTITUDE_MAGIC = 250;
_APTITUDE_RESISTANCE = 600;
_ELEMENT_ENERGY = 2;
_ELEMENT_THUNDER = 3;
_ELEMENT_MYSTIC = 4;
_AP_BOOST = 4;
_ABILITY = A_ENDURE;
} else {
if (_arg1 == C_LICH4){
_ID = _arg1;
_NAME = "Liche";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_FI_BURNING_SOUL;
_SKILL_2 = S_PH_RAMPAGE;
_SKILL_3 = S_MI_BLOODY_HOWL;
_SKILL_4 = S_TH_CONCENTRATE;
_APTITUDE_HEALTH = 800;
_APTITUDE_STRENGTH = 145;
_APTITUDE_DEFENSE = 101;
_APTITUDE_MAGIC = 175;
_APTITUDE_RESISTANCE = 115;
_ELEMENT_FIRE = 2;
_ELEMENT_MYSTIC = 3;
_AP_BOOST = 3;
_ABILITY = A_PIERCE;
} else {
if (_arg1 == C_BEHEMOTH){
_ID = _arg1;
_NAME = "Behemoth";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_FI_INFERNO;
_SKILL_2 = S_PH_RAMPAGE;
_SKILL_3 = S_FI_BURNING_SOUL;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 2000;
_APTITUDE_STRENGTH = 170;
_APTITUDE_DEFENSE = 250;
_APTITUDE_MAGIC = 150;
_APTITUDE_RESISTANCE = 250;
_ELEMENT_PHYS = 3;
_ELEMENT_FIRE = 4;
_ELEMENT_THUNDER = 2;
_AP_BOOST = 4;
_ABILITY = A_PIERCE;
} else {
if (_arg1 == C_BEHEMOTH2){
_ID = _arg1;
_NAME = "Behemoth";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_WA_BLIZZARD;
_SKILL_2 = S_EN_RADIANT_BLAST;
_SKILL_3 = S_TH_MJOLLNIR;
_SKILL_4 = S_PH_FOCUS;
_APTITUDE_HEALTH = 3000;
_APTITUDE_STRENGTH = 199;
_APTITUDE_DEFENSE = 350;
_APTITUDE_MAGIC = 199;
_APTITUDE_RESISTANCE = 350;
_ELEMENT_ENERGY = 3;
_ELEMENT_WATER = 2;
_ELEMENT_THUNDER = 4;
_ELEMENT_MYSTIC = 2;
_AP_BOOST = 4;
_ABILITY = A_PIERCE;
} else {
if (_arg1 == C_BEHEMOTH3){
_ID = _arg1;
_NAME = "Behemoth";
_LEVEL = 1;
_EXP_MULT = 0.5;
_SKILL_1 = S_PH_RAMPAGE;
_SKILL_2 = S_FI_BURNING_SOUL;
_SKILL_3 = S_TH_MJOLLNIR;
_SKILL_4 = S_MI_BLOODY_HOWL;
_APTITUDE_HEALTH = 10000;
_APTITUDE_STRENGTH = 266;
_APTITUDE_DEFENSE = 500;
_APTITUDE_MAGIC = 266;
_APTITUDE_RESISTANCE = 500;
_ELEMENT_PHYS = 3;
_ELEMENT_ENERGY = 2;
_ELEMENT_WATER = 2;
_ELEMENT_MYSTIC = 4;
_AP_BOOST = 12;
_ABILITY = A_ENDURE;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (_arg3 > 0){
_TOTAL_EXP = (1000 * (_arg3 - 1));
};
}
}
}//package FZGame.Rpg.Class
Section 31
//ListCommandSkillSet (FZGame.Rpg.Class.ListCommandSkillSet)
package FZGame.Rpg.Class {
import FZGame.Rpg.Class.Base.*;
public class ListCommandSkillSet extends SkillBaseStat {
public function initFlame(){
initNone();
_ID = S_FI_FLAME;
_ELEMENT = E_FIRE;
_NAME = "Flame";
_TARGET = 4;
_PRICE = 2500;
_AP_COST = 1;
_HIT = 80;
_CRITICAL = 10;
_POWER = 135;
}
public function initMightyBlow(){
initNone();
_ID = S_PH_MIGHTY_BLOW;
_ELEMENT = E_PHYS;
_NAME = "Power Hit";
_TARGET = 4;
_PRICE = 4000;
_AP_COST = 2;
_HIT = 60;
_CRITICAL = 30;
_POWER = 250;
}
public function initialise(_arg1:int=0){
if (_arg1 == S_PH_SMASH){
initSmash();
} else {
if (_arg1 == S_PH_THURST){
initThurst();
} else {
if (_arg1 == S_PH_POWER_HIT){
initPowerHit();
} else {
if (_arg1 == S_PH_MIGHTY_BLOW){
initMightyBlow();
} else {
if (_arg1 == S_PH_RAMPAGE){
initRampage();
} else {
if (_arg1 == S_PH_FOCUS){
initFocus();
} else {
if (_arg1 == S_EN_RAY){
initRay();
} else {
if (_arg1 == S_EN_SONIC_BLAST){
initSonicBlast();
} else {
if (_arg1 == S_EN_ENERGY_BALL){
initEnergyBall();
} else {
if (_arg1 == S_EN_WIND_CUTTER){
initWindCutter();
} else {
if (_arg1 == S_EN_SOARING_LIGHT){
initSoaringLight();
} else {
if (_arg1 == S_EN_RADIANT_BLAST){
initRadiantBlast();
} else {
if (_arg1 == S_FI_BURN){
initBurn();
} else {
if (_arg1 == S_FI_FLAME){
initFlame();
} else {
if (_arg1 == S_FI_EXPLOSION){
initExplosion();
} else {
if (_arg1 == S_FI_INFERNO){
initInferno();
} else {
if (_arg1 == S_FI_BURNING_SOUL){
initBurningSoul();
} else {
if (_arg1 == S_WA_BUBBLE){
initBubble();
} else {
if (_arg1 == S_WA_HEAL){
initHeal();
} else {
if (_arg1 == S_WA_FROST){
initFrost();
} else {
if (_arg1 == S_WA_ICESTORM){
initIceStorm();
} else {
if (_arg1 == S_WA_BLIZZARD){
initBlizzard();
} else {
if (_arg1 == S_TH_SHOCK){
initShock();
} else {
if (_arg1 == S_TH_LIGHTING){
initLighting();
} else {
if (_arg1 == S_TH_THUNDER_BLADE){
initThunderBlade();
} else {
if (_arg1 == S_TH_MJOLLNIR){
initMjollnir();
} else {
if (_arg1 == S_TH_CONCENTRATE){
initConcentrate();
} else {
if (_arg1 == S_MI_DARK_FORCE){
initDarkForce();
} else {
if (_arg1 == S_MI_POISON_MIST){
initPoisonMist();
} else {
if (_arg1 == S_MI_CHAOS_WAVE){
initChaosWave();
} else {
if (_arg1 == S_MI_SHADOW_FURY){
initShadowFury();
} else {
if (_arg1 == S_MI_BLOODY_HOWL){
initBloodyHowl();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function initBlizzard(){
initNone();
_ID = S_WA_BLIZZARD;
_ELEMENT = E_WATER;
_NAME = "Blizzard";
_TARGET = 5;
_PRICE = 10000;
_AP_COST = 3;
_HIT = 93;
_CRITICAL = 15;
_POWER = 290;
_EFFECT_ADD = 3;
_EFFECT_ADD_PROC = 25;
}
public function initShadowFury(){
initNone();
_ID = S_MI_SHADOW_FURY;
_ELEMENT = E_MYSTIC;
_NAME = "Shadow Fury";
_TARGET = 4;
_PRICE = 15000;
_AP_COST = 3;
_HIT = 90;
_CRITICAL = 20;
_POWER = 320;
_EFFECT_ADD = 4;
_EFFECT_ADD_PROC = 10;
}
public function initIceStorm(){
initNone();
_ID = S_WA_ICESTORM;
_ELEMENT = E_WATER;
_NAME = "Ice Storm";
_TARGET = 5;
_PRICE = 7500;
_AP_COST = 2;
_HIT = 90;
_CRITICAL = 10;
_POWER = 125;
_EFFECT_ADD = 3;
_EFFECT_ADD_PROC = 25;
}
public function initSoaringLight(){
initNone();
_ID = S_EN_SOARING_LIGHT;
_ELEMENT = E_ENERGY;
_NAME = "Soaring Light";
_TARGET = 5;
_PRICE = 12000;
_AP_COST = 3;
_HIT = 90;
_CRITICAL = 10;
_POWER = 320;
_EFFECT_ADD = 2;
_EFFECT_ADD_PROC = 20;
}
public function initThunderBlade(){
initNone();
_ID = S_TH_THUNDER_BLADE;
_ELEMENT = E_THUNDER;
_NAME = "Thunder Blade";
_TARGET = 4;
_PRICE = 8000;
_AP_COST = 2;
_HIT = 97;
_CRITICAL = 30;
_POWER = 175;
_EFFECT_ADD = 2;
_EFFECT_ADD_PROC = 50;
}
public function initFrost(){
initNone();
_ID = S_WA_FROST;
_ELEMENT = E_WATER;
_NAME = "Frost";
_TARGET = 4;
_PRICE = 2500;
_AP_COST = 1;
_HIT = 90;
_CRITICAL = 10;
_POWER = 80;
_EFFECT_ADD = 3;
_EFFECT_ADD_PROC = 25;
}
public function initMjollnir(){
initNone();
_ID = S_TH_MJOLLNIR;
_ELEMENT = E_THUNDER;
_NAME = "Mjollnir";
_TARGET = 5;
_PRICE = 10000;
_AP_COST = 3;
_HIT = 90;
_CRITICAL = 15;
_POWER = 280;
_EFFECT_ADD = 2;
_EFFECT_ADD_PROC = 20;
}
public function initBurningSoul(){
initNone();
_ID = S_FI_BURNING_SOUL;
_ELEMENT = E_FIRE;
_NAME = "Burning Soul";
_TARGET = 4;
_PRICE = 15000;
_AP_COST = 3;
_HIT = 95;
_CRITICAL = 35;
_POWER = 360;
}
public function initEnergyBall(){
initNone();
_ID = S_EN_ENERGY_BALL;
_ELEMENT = E_ENERGY;
_NAME = "Energy Ball";
_TARGET = 4;
_PRICE = 2500;
_AP_COST = 2;
_HIT = 90;
_CRITICAL = 10;
_POWER = 200;
_EFFECT_ADD = 2;
_EFFECT_ADD_PROC = 20;
}
public function initHeal(){
initNone();
_ID = S_WA_HEAL;
_ELEMENT = E_WATER;
_NAME = "Heal";
_TARGET = 1;
_PRICE = 2000;
_AP_COST = 1;
_HIT = 100;
_HEAL = 30;
}
public function initConcentrate(){
initNone();
_ID = S_TH_CONCENTRATE;
_ELEMENT = E_THUNDER;
_NAME = "Concentrate";
_TARGET = 1;
_PRICE = 8000;
_AP_COST = 1;
_HIT = 100;
}
public function initSonicBlast(){
initNone();
_ID = S_EN_SONIC_BLAST;
_ELEMENT = E_ENERGY;
_NAME = "Sonic Blast";
_TARGET = 4;
_PRICE = 1500;
_AP_COST = 1;
_HIT = 90;
_CRITICAL = 20;
_POWER = 120;
}
public function initLighting(){
initNone();
_ID = S_TH_LIGHTING;
_ELEMENT = E_THUNDER;
_NAME = "Lighting";
_TARGET = 4;
_PRICE = 2500;
_AP_COST = 1;
_HIT = 90;
_CRITICAL = 10;
_POWER = 85;
_EFFECT_ADD = 2;
_EFFECT_ADD_PROC = 25;
}
public function initInferno(){
initNone();
_ID = S_FI_INFERNO;
_ELEMENT = E_FIRE;
_NAME = "Inferno";
_TARGET = 5;
_PRICE = 10000;
_AP_COST = 3;
_HIT = 90;
_CRITICAL = 20;
_POWER = 225;
}
public function initThurst(){
initNone();
_ID = S_PH_THURST;
_ELEMENT = E_PHYS;
_NAME = "Thurst";
_TARGET = 4;
_PRICE = 1000;
_AP_COST = 1;
_HIT = 90;
_CRITICAL = 10;
_POWER = 110;
}
public function initPoisonMist(){
initNone();
_ID = S_MI_POISON_MIST;
_ELEMENT = E_MYSTIC;
_NAME = "Poison Mist";
_TARGET = 4;
_PRICE = 3000;
_AP_COST = 2;
_HIT = 80;
_CRITICAL = 10;
_POWER = 175;
_EFFECT_ADD = 1;
_EFFECT_ADD_PROC = 20;
}
public function initExplosion(){
initNone();
_ID = S_FI_EXPLOSION;
_ELEMENT = E_FIRE;
_NAME = "Explosion";
_TARGET = 5;
_PRICE = 7500;
_AP_COST = 2;
_HIT = 90;
_CRITICAL = 10;
_POWER = 125;
}
private function initNone(){
_ID = S_NONE;
_ELEMENT = E_NONE;
_NAME = "";
_TARGET = 0;
_PRICE = 0;
_MATERIAL_REQ_1 = 0;
_MATERIAL_REQ_2 = 0;
_LEVEL_REQ = 0;
_RACE_REQ = 0;
_AP_COST = 0;
_HIT = 0;
_CRITICAL = 0;
_POWER = 0;
_HEAL = 0;
_EFFECT_ADD = 0;
_EFFECT_ADD_PROC = 0;
_is_revive = false;
_is_refresh = false;
}
public function initChaosWave(){
initNone();
_ID = S_MI_CHAOS_WAVE;
_ELEMENT = E_MYSTIC;
_NAME = "Chaos Wave";
_TARGET = 5;
_PRICE = 9000;
_AP_COST = 2;
_HIT = 98;
_CRITICAL = 10;
_POWER = 185;
}
public function initBloodyHowl(){
initNone();
_ID = S_MI_BLOODY_HOWL;
_ELEMENT = E_MYSTIC;
_NAME = "Bloody Howl";
_TARGET = 4;
_PRICE = 20000;
_AP_COST = 3;
_HIT = 85;
_CRITICAL = 25;
_POWER = 360;
_EFFECT_ADD = 4;
_EFFECT_ADD_PROC = 30;
}
public function initSmash(){
initNone();
_ID = S_PH_SMASH;
_ELEMENT = E_PHYS;
_NAME = "Smash";
_TARGET = 4;
_PRICE = 500;
_AP_COST = 1;
_HIT = 95;
_CRITICAL = 10;
_POWER = 100;
}
public function initFocus(){
initNone();
_ID = S_PH_FOCUS;
_ELEMENT = E_PHYS;
_NAME = "Power Charge";
_TARGET = 1;
_PRICE = 8000;
_AP_COST = 1;
}
public function initShock(){
initNone();
_ID = S_TH_SHOCK;
_ELEMENT = E_THUNDER;
_NAME = "Shock";
_TARGET = 4;
_PRICE = 750;
_AP_COST = 1;
_HIT = 90;
_CRITICAL = 15;
_POWER = 80;
}
public function initDarkForce(){
initNone();
_ID = S_MI_DARK_FORCE;
_ELEMENT = E_MYSTIC;
_NAME = "Dark Force";
_TARGET = 4;
_PRICE = 1500;
_AP_COST = 1;
_HIT = 80;
_CRITICAL = 10;
_POWER = 105;
_EFFECT_ADD = 4;
_EFFECT_ADD_PROC = 10;
}
public function initRadiantBlast(){
initNone();
_ID = S_EN_RADIANT_BLAST;
_ELEMENT = E_ENERGY;
_NAME = "Radiant Blast";
_TARGET = 4;
_PRICE = 20000;
_AP_COST = 3;
_HIT = 97;
_CRITICAL = 20;
_POWER = 270;
_EFFECT_ADD = 2;
_EFFECT_ADD_PROC = 20;
}
public function initWindCutter(){
initNone();
_ID = S_EN_WIND_CUTTER;
_ELEMENT = E_ENERGY;
_NAME = "Wind Cutter";
_TARGET = 5;
_PRICE = 5000;
_AP_COST = 2;
_HIT = 95;
_CRITICAL = 30;
_POWER = 145;
}
public function initRay(){
initNone();
_ID = S_EN_RAY;
_ELEMENT = E_ENERGY;
_NAME = "Ray";
_TARGET = 5;
_PRICE = 750;
_AP_COST = 1;
_HIT = 95;
_CRITICAL = 10;
_POWER = 90;
}
public function initBubble(){
initNone();
_ID = S_WA_BUBBLE;
_ELEMENT = E_WATER;
_NAME = "Water";
_TARGET = 4;
_PRICE = 750;
_AP_COST = 1;
_HIT = 90;
_CRITICAL = 10;
_POWER = 85;
}
public function initRampage(){
initNone();
_ID = S_PH_RAMPAGE;
_ELEMENT = E_PHYS;
_NAME = "Rampage";
_TARGET = 5;
_PRICE = 10000;
_AP_COST = 3;
_HIT = 95;
_CRITICAL = 20;
_POWER = 210;
}
public function initPowerHit(){
initNone();
_ID = S_PH_POWER_HIT;
_ELEMENT = E_PHYS;
_NAME = "Power Hit";
_TARGET = 4;
_PRICE = 2000;
_AP_COST = 2;
_HIT = 90;
_CRITICAL = 15;
_POWER = 170;
}
public function initBurn(){
initNone();
_ID = S_FI_BURN;
_ELEMENT = E_FIRE;
_NAME = "Burn";
_TARGET = 4;
_PRICE = 750;
_AP_COST = 1;
_HIT = 90;
_CRITICAL = 10;
_POWER = 95;
}
}
}//package FZGame.Rpg.Class
Section 32
//ListEquipmentSet (FZGame.Rpg.Class.ListEquipmentSet)
package FZGame.Rpg.Class {
import FZGame.Rpg.Class.Base.*;
public class ListEquipmentSet extends EquipmentBaseStat {
public function ListEquipmentSet(_arg1:int=0){
setEquipment(_arg1);
}
public function setEquipment(_arg1:int=0){
_ID = Z_NONE;
_NAME = "noname";
_PRICE = 0;
_MATERIAL_REQ_1 = M_NONE;
_MATERIAL_REQ_2 = M_NONE;
_ADD_HEALTH = 0;
_ADD_STRENGTH = 0;
_ADD_DEFENSE = 0;
_ADD_MAGIC = 0;
_ADD_RESISTANCE = 0;
_EFFECT_ID = A_NONE;
if (_arg1 == Z_BROKENPIPE){
_NAME = "Broken Pipe";
_PRICE = 500;
_ADD_STRENGTH = 20;
_ADD_DEFENSE = 5;
} else {
if (_arg1 == Z_BOXINGGLOVE){
_NAME = "Boxing Glove";
_PRICE = 1500;
_ADD_HEALTH = 100;
_ADD_STRENGTH = 40;
_ADD_MAGIC = 15;
} else {
if (_arg1 == Z_IRONAXE){
_NAME = "Iron Axe";
_PRICE = 1500;
_ADD_STRENGTH = 50;
_ADD_DEFENSE = 10;
} else {
if (_arg1 == Z_BAYONET){
_NAME = "Bayonet";
_PRICE = 2500;
_ADD_STRENGTH = 40;
_ADD_MAGIC = 30;
} else {
if (_arg1 == Z_METALCLAW){
_NAME = "Metal Claw";
_PRICE = 3000;
_ADD_STRENGTH = 55;
_ADD_DEFENSE = 10;
_ADD_MAGIC = 10;
_ADD_RESISTANCE = 10;
} else {
if (_arg1 == Z_AK47){
_NAME = "Rifle AK47";
_PRICE = 5000;
_ADD_STRENGTH = 85;
_ADD_DEFENSE = 30;
_MATERIAL_REQ_1 = M_IRONORE;
} else {
if (_arg1 == Z_RPGLAUNCHER){
_NAME = "Rpg Launcher";
_PRICE = 12000;
_ADD_STRENGTH = 125;
_ADD_DEFENSE = 40;
_MATERIAL_REQ_1 = M_IRONORE;
_MATERIAL_REQ_2 = M_FIRESTONE;
} else {
if (_arg1 == Z_THORHAMMER){
_NAME = "Thor Hammer";
_PRICE = 15000;
_ADD_STRENGTH = 135;
_ADD_MAGIC = 65;
_MATERIAL_REQ_1 = M_IRONORE;
_MATERIAL_REQ_2 = M_DIAMOND;
} else {
if (_arg1 == Z_HOLYLANCE){
_NAME = "Holy Lance";
_PRICE = 16000;
_ADD_STRENGTH = 100;
_ADD_MAGIC = 150;
_MATERIAL_REQ_1 = M_DIAMOND;
_MATERIAL_REQ_2 = M_FIRESTONE;
} else {
if (_arg1 == Z_LAZERGUN){
_NAME = "Lazer Gun";
_PRICE = 30000;
_ADD_STRENGTH = 200;
_ADD_MAGIC = 200;
_MATERIAL_REQ_1 = M_FIRESTONE;
_MATERIAL_REQ_2 = M_OPART;
_EFFECT_ID = A_APBOOST1;
} else {
if (_arg1 == Z_EXCALIBUR){
_NAME = "Legendary Excalibur";
_PRICE = 60000;
_ADD_STRENGTH = 250;
_ADD_DEFENSE = 100;
_ADD_MAGIC = 150;
_ADD_RESISTANCE = 100;
_MATERIAL_REQ_1 = M_DRAGONHEART;
_MATERIAL_REQ_2 = M_LEVIATHANSCALE;
_EFFECT_ID = A_PIERCE;
} else {
if (_arg1 == Z_SOULEATER){
_NAME = "Soul Eater";
_PRICE = 60000;
_ADD_STRENGTH = 180;
_ADD_DEFENSE = 70;
_ADD_MAGIC = 0xFF;
_ADD_RESISTANCE = 70;
_MATERIAL_REQ_1 = M_EVILGEM;
_MATERIAL_REQ_2 = M_DEVILORB;
_EFFECT_ID = A_ABSORB;
} else {
if (_arg1 == Z_PLAINCLOTH){
_NAME = "Plain Cloth";
_PRICE = 500;
_ADD_DEFENSE = 10;
_ADD_RESISTANCE = 5;
} else {
if (_arg1 == Z_BRACELET){
_NAME = "Plain Cloth";
_PRICE = 750;
_ADD_DEFENSE = 5;
_ADD_RESISTANCE = 15;
} else {
if (_arg1 == Z_GASMASK){
_NAME = "Gas Mask";
_PRICE = 2000;
_ADD_DEFENSE = 10;
_ADD_RESISTANCE = 30;
} else {
if (_arg1 == Z_WINTERJACKET){
_NAME = "Winter Jacket";
_PRICE = 2500;
_ADD_DEFENSE = 10;
_ADD_RESISTANCE = 35;
} else {
if (_arg1 == Z_STUNGUARD){
_NAME = "Stun Guard";
_PRICE = 3000;
_ADD_DEFENSE = 10;
_ADD_RESISTANCE = 40;
} else {
if (_arg1 == Z_FULLARMOR){
_NAME = "Full Body Armor";
_PRICE = 5000;
_ADD_DEFENSE = 60;
_ADD_RESISTANCE = 5;
_MATERIAL_REQ_1 = M_IRONORE;
_EFFECT_ID = A_RESIST_PHYS;
} else {
if (_arg1 == Z_GOLDCLOTH){
_NAME = "Gold Cloth";
_PRICE = 6000;
_ADD_DEFENSE = 70;
_ADD_RESISTANCE = 5;
_MATERIAL_REQ_1 = M_LUCKYCOIN;
_EFFECT_ID = A_RESIST_ENERGY;
} else {
if (_arg1 == Z_FIRERING){
_NAME = "Fire Ring";
_PRICE = 3500;
_ADD_DEFENSE = 10;
_ADD_RESISTANCE = 35;
_MATERIAL_REQ_1 = M_FIRESTONE;
_EFFECT_ID = A_RESIST_FIRE;
} else {
if (_arg1 == Z_WATERRING){
_NAME = "Water Ring";
_PRICE = 3500;
_ADD_DEFENSE = 10;
_ADD_RESISTANCE = 35;
_MATERIAL_REQ_1 = M_LEATHERHIDE;
_EFFECT_ID = A_RESIST_WATER;
} else {
if (_arg1 == Z_THUNDERRING){
_NAME = "Thunder Ring";
_PRICE = 3500;
_ADD_DEFENSE = 10;
_ADD_RESISTANCE = 35;
_MATERIAL_REQ_1 = M_MONSTERCLAW;
_EFFECT_ID = A_RESIST_THUNDER;
} else {
if (_arg1 == Z_MYSTICRING){
_NAME = "Mystic Ring";
_PRICE = 3500;
_ADD_DEFENSE = 10;
_ADD_RESISTANCE = 35;
_MATERIAL_REQ_1 = M_EVILGEM;
_EFFECT_ID = A_RESIST_MYSTIC;
} else {
if (_arg1 == Z_ROBOSUIT){
_NAME = "Robo Suit";
_PRICE = 50000;
_ADD_HEALTH = 2000;
_ADD_DEFENSE = 200;
_ADD_RESISTANCE = 200;
_MATERIAL_REQ_1 = M_LEVIATHANSCALE;
_MATERIAL_REQ_2 = M_OPART;
_EFFECT_ID = A_REFLECT;
} else {
if (_arg1 == Z_KONGBANNER){
_NAME = "Kongregate's Banner";
_PRICE = 100000;
_ADD_HEALTH = 1000;
_ADD_STRENGTH = 100;
_ADD_DEFENSE = 100;
_ADD_MAGIC = 100;
_ADD_RESISTANCE = 100;
_EFFECT_ID = A_EXP_PLUS;
} else {
if (_arg1 == Z_NEWSGROUNDTANK){
_NAME = "Newsground's Tank";
_PRICE = 100000;
_ADD_HEALTH = 1000;
_ADD_STRENGTH = 100;
_ADD_DEFENSE = 100;
_ADD_MAGIC = 100;
_ADD_RESISTANCE = 100;
_EFFECT_ID = A_RAGE;
} else {
if (_arg1 == Z_ARTLOGICAUTOGRAPH){
_NAME = "Artlogicgames's Autograph";
_PRICE = 100000;
_ADD_HEALTH = 1000;
_ADD_STRENGTH = 100;
_ADD_DEFENSE = 100;
_ADD_MAGIC = 100;
_ADD_RESISTANCE = 100;
_EFFECT_ID = A_ENDURE;
} else {
if (_arg1 == Z_LUCKY7){
_NAME = "Lucky 7";
_PRICE = 2000000;
_ADD_HEALTH = 77;
_ADD_STRENGTH = 77;
_ADD_DEFENSE = 77;
_ADD_MAGIC = 77;
_ADD_RESISTANCE = 77;
_EFFECT_ID = A_CRITICAL_UP;
} else {
if (_arg1 == Z_ATXMKXII){
_NAME = "ATX MK-XII";
_PRICE = 5000000;
_ADD_HEALTH = 2500;
_ADD_STRENGTH = 0xFF;
_ADD_DEFENSE = 0xFF;
_ADD_MAGIC = 0xFF;
_ADD_RESISTANCE = 0xFF;
_EFFECT_ID = A_APBOOST2;
} else {
if (_arg1 == Z_GAMESHARK){
_NAME = "Ultimate Cheat";
_PRICE = 9000000;
_ADD_HEALTH = 9999;
_ADD_STRENGTH = 999;
_ADD_DEFENSE = 999;
_ADD_MAGIC = 999;
_ADD_RESISTANCE = 999;
_EFFECT_ID = A_RESIST_ALL;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
}
}//package FZGame.Rpg.Class
Section 33
//PlayerParty (FZGame.Rpg.Class.PlayerParty)
package FZGame.Rpg.Class {
import flash.events.*;
import FZGame.Rpg.Class.Base.*;
import flash.net.*;
public class PlayerParty extends DefClass {
public var partyLose:Boolean;// = false
private var mTargetParty;
private var mItemGive:int;// = 1
private var mSwitchUI;
private var mStat;
public var currentAP:int;// = 0
public var mSlot10;// = null
public var mSlot11;// = null
public var mSlot12;// = null
public var mSlot13;// = null
public var mSlot14;// = null
public var mSlot15;// = null
private var _vx:Number;// = 0
private var dispContMenu;
private var _delay:int;// = 0
public var mSlot1;// = null
public var mSlot2;// = null
public var mSlot3;// = null
public var mSlot4;// = null
public var mSlot5;// = null
public var mSlot6;// = null
public var mSlot7;// = null
public var mSlot8;// = null
public var mSlot9;// = null
private var mUnit;
private var dispContUnit;
public var mChainHit;
private var mGiveItemUI;
private var _move_x:Number;// = 0
public var finishTurn:Boolean;// = true
public var mMaterial:Array;
public var switchState:int;// = 0
public var totalDamage:int;// = 0
private var mSkillSet;
public var totalTurn:int;// = 0
public var forceQuit:Boolean;// = false
private var mCmdUI;
private var mAPUI;
private var mSystem;
public function PlayerParty(_arg1){
mSkillSet = new ListCommandSkillSet();
mMaterial = new Array(32);
super();
mSystem = _arg1;
dispContUnit = mSystem.contUNIT;
dispContMenu = mSystem.contMENU2;
mChainHit = new ChainComboHit(mSystem, 100, 100);
mSlot1 = new ListCharUnitSet();
mSlot2 = new ListCharUnitSet();
mSlot3 = new ListCharUnitSet();
mSlot4 = new ListCharUnitSet();
mSlot5 = new ListCharUnitSet();
mSlot6 = new ListCharUnitSet();
mSlot7 = new ListCharUnitSet();
mSlot8 = new ListCharUnitSet();
mSlot9 = new ListCharUnitSet();
mSlot10 = new ListCharUnitSet();
mSlot11 = new ListCharUnitSet();
mSlot12 = new ListCharUnitSet();
mSlot13 = new ListCharUnitSet();
mSlot14 = new ListCharUnitSet();
mSlot15 = new ListCharUnitSet();
}
private function item3Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
if (mSystem.mDat.item_stock[2] > 0){
costAP(1);
currentAP = Math.min((currentAP + 6), 12);
mSystem.mDat.item_stock[2] = Math.max((mSystem.mDat.item_stock[2] - 1), 0);
mSystem.mEffect.usingItem();
};
updateCommandItemView();
}
private function skill2Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
mSkillSet.initialise(mSlot1._SKILL_2);
if (((mSkillSet.isAvailable()) && (mSkillSet.isReadyToCast(currentAP)))){
costAP(mSkillSet._AP_COST);
mSystem.mEffect.skillEffect(mSlot1._SKILL_2, this, mTargetParty);
animAttack();
} else {
mSystem.mEffect.msgInfo("not enough AP !");
};
}
private function updateClipStatus(){
if (mStat){
if (mSlot1){
mStat.health_1.scaleX = Math.min(Math.max((mSlot1._health / mSlot1._health_max), 0), 1);
mStat.face_1.visible = true;
mStat.face_1.gotoAndStop((mSlot1._ID + 1));
} else {
mStat.health_1.scaleX = 0;
mStat.face_1.visible = false;
};
if (((mSlot2) && (mSlot2._is_active))){
mStat.health_2.scaleX = Math.max((mSlot2._health / mSlot2._health_max), 0);
mStat.face_2.visible = true;
mStat.face_2.gotoAndStop((mSlot2._ID + 1));
} else {
mStat.health_2.scaleX = 0;
mStat.face_2.visible = false;
};
if (((mSlot3) && (mSlot3._is_active))){
mStat.health_3.scaleX = Math.max((mSlot3._health / mSlot3._health_max), 0);
mStat.face_3.visible = true;
mStat.face_3.gotoAndStop((mSlot3._ID + 1));
} else {
mStat.health_2.scaleX = 0;
mStat.face_2.visible = false;
};
if (mChainHit){
mChainHit.update();
if (mChainHit.isChain()){
mStat.tot_damage.visible = true;
mStat.tot_damage.htmlText = String(("Total Damage " + totalDamage));
} else {
mStat.tot_damage.visible = false;
totalDamage = 0;
};
};
};
}
private function koUnit(){
var _local1:*;
if (mUnit){
mSlot1._is_active = false;
mUnit.addEventListener(Event.ENTER_FRAME, koUnitHandle, false, 0, true);
_local1 = new snd_koed();
_local1.playSound(mSystem.mDat.se_volume);
};
}
public function isPartyDefeated():Boolean{
if ((((((mSlot1._is_active == false)) && ((mSlot2._is_active == false)))) && ((mSlot3._is_active == false)))){
return (true);
};
return (false);
}
private function updateSwitchAnim(){
var _local1:*;
var _local2:*;
if (switchState == 0){
return;
};
if (mUnit == null){
if (switchState == 1){
_local1 = mSlot1;
mSlot1 = mSlot2;
mSlot2 = _local1;
costAP(1);
if (currentAP > 0){
showCommand();
};
switchState = 0;
showUnit();
} else {
if (switchState == 2){
_local2 = mSlot1;
mSlot1 = mSlot3;
mSlot3 = _local2;
costAP(1);
if (currentAP > 0){
showCommand();
};
switchState = 0;
showUnit();
};
};
};
}
public function showUnit(){
if (mUnit == null){
mUnit = new unit_clip_mc();
dispContUnit.addChild(mUnit);
mUnit.x = -200;
mUnit.y = 400;
mUnit.scaleX = -1;
_vx = 20;
mUnit.addEventListener(Event.ENTER_FRAME, showUnitHandle, false, 0, true);
};
}
private function item5Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
if (mSystem.mDat.item_stock[4] > 0){
giveItem(4);
};
updateCommandItemView();
}
private function removeCommand(){
if (mCmdUI){
mCmdUI.skill_1.removeEventListener(MouseEvent.CLICK, skill1Click);
mCmdUI.skill_2.removeEventListener(MouseEvent.CLICK, skill1Click);
mCmdUI.skill_3.removeEventListener(MouseEvent.CLICK, skill1Click);
mCmdUI.skill_4.removeEventListener(MouseEvent.CLICK, skill1Click);
mCmdUI.swap.removeEventListener(MouseEvent.CLICK, swapClick);
mCmdUI.guard.removeEventListener(MouseEvent.CLICK, guardClick);
mCmdUI.endturn.removeEventListener(MouseEvent.CLICK, endTurnClick);
mCmdUI.removeEventListener(Event.ENTER_FRAME, showCommandHandle);
mCmdUI.removeEventListener(Event.ENTER_FRAME, hideCommandHandle);
dispContMenu.removeChild(mCmdUI);
mCmdUI = null;
};
}
private function removeUnit(){
if (mUnit){
mUnit.removeEventListener(Event.ENTER_FRAME, showUnitHandle);
mUnit.removeEventListener(Event.ENTER_FRAME, hideUnitHandle);
mUnit.removeEventListener(Event.ENTER_FRAME, koUnitHandle);
mUnit.removeEventListener(Event.ENTER_FRAME, koUnitDelayHandle);
dispContUnit.removeChild(mUnit);
mUnit = null;
};
}
private function hideCommandHandle(_arg1:Event):void{
if (mCmdUI){
mCmdUI.alpha = Math.max((mCmdUI.alpha - 0.05), 0);
if (mCmdUI.alpha <= 0){
mCmdUI.alpha = 0;
mCmdUI.removeEventListener(Event.ENTER_FRAME, hideCommandHandle);
dispContMenu.removeChild(mCmdUI);
mCmdUI = null;
};
};
}
private function showAPHandle(_arg1:Event):void{
if (mAPUI){
if (mAPUI.alpha < 1){
mAPUI.alpha = Math.min((mAPUI.alpha + 0.02), 1);
};
if (mAPUI.y < 0){
mAPUI.y = Math.min((mAPUI.y + 5), 0);
};
};
}
public function updateUnitStatus(){
if (mUnit){
if (mUnit.char.currentFrame != mSlot1._ID){
mUnit.char.gotoAndStop(mSlot1._ID);
};
if (((mSlot1._is_active) && ((mSlot1._health <= 0)))){
koUnit();
};
if (mUnit.char.x > 0){
mUnit.char.x = (mUnit.char.x + _move_x);
_move_x = (_move_x - 3);
if (mUnit.char.x < 0){
mUnit.char.x = 0;
};
};
if (mUnit.char.x < 0){
mUnit.char.x = (mUnit.char.x - _move_x);
_move_x = (_move_x - 3);
if (mUnit.char.x > 0){
mUnit.char.x = 0;
};
};
};
}
private function skill4Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
mSkillSet.initialise(mSlot1._SKILL_4);
if (((mSkillSet.isAvailable()) && (mSkillSet.isReadyToCast(currentAP)))){
costAP(mSkillSet._AP_COST);
mSystem.mEffect.skillEffect(mSlot1._SKILL_4, this, mTargetParty);
animAttack();
} else {
mSystem.mEffect.msgInfo("not enough AP !");
};
}
public function deInitBattle(){
removeSwitch();
removeGive();
removeUnit();
removeStatus();
removeCommand();
removeAP();
}
private function giveUnit1Click(_arg1:MouseEvent):void{
removeGive();
if (mSlot1){
if (mItemGive == 1){
mSlot1._health = Math.min((mSlot1._health + (mSlot1._health_max * 0.25)), mSlot1._health_max);
mSystem.mDat.item_stock[0] = Math.max((mSystem.mDat.item_stock[0] - 1), 0);
costAP(1);
};
if (mItemGive == 2){
mSlot1._health = Math.min((mSlot1._health + (mSlot1._health_max * 0.5)), mSlot1._health_max);
mSystem.mDat.item_stock[1] = Math.max((mSystem.mDat.item_stock[1] - 1), 0);
costAP(1);
};
if (mItemGive == 3){
mSlot1._health = Math.min((mSlot1._health + (mSlot1._health_max * 0.1)), mSlot1._health_max);
mSlot1._is_active = true;
mSystem.mDat.item_stock[3] = Math.max((mSystem.mDat.item_stock[3] - 1), 0);
costAP(1);
};
if (mItemGive == 4){
mSlot1._health = Math.min((mSlot1._health + mSlot1._health_max), mSlot1._health_max);
mSlot1._is_active = true;
mSystem.mDat.item_stock[4] = Math.max((mSystem.mDat.item_stock[4] - 1), 0);
costAP(1);
};
mSystem.mEffect.usingItem();
};
showCommand();
updateCommandItemView();
}
private function switchUnit2Click(_arg1:MouseEvent):void{
removeSwitch();
hideUnit();
switchState = 2;
}
public function showStatus(){
if (mStat == null){
mStat = new player_party_mc();
dispContMenu.addChild(mStat);
mStat.alpha = 0;
mStat.addEventListener(Event.ENTER_FRAME, showStatusHandle, false, 0, true);
};
}
public function healSelf(_arg1:Number=0){
var _local2 = 150;
var _local3 = 250;
mSlot1.recoverHealth(Math.round((mSlot1._health_max * _arg1)));
mSystem.mEffect.displayDamageHeal(_local2, _local3, Math.round((mSlot1._health_max * _arg1)));
}
public function startPhaseTurn(){
refillAP();
totalTurn = Math.min((totalTurn + 1), 999);
finishTurn = false;
mChainHit.refresh();
mSlot1._is_barrier = false;
}
private function koUnitHandle(_arg1:Event):void{
var _local2:*;
if (mUnit){
mUnit.alpha = Math.max((mUnit.alpha - 0.01), 0);
if (mUnit.alpha <= 0){
mUnit.removeEventListener(Event.ENTER_FRAME, koUnitHandle);
if (((mSlot2) && (mSlot2._is_active))){
_local2 = mSlot1;
mSlot1 = mSlot2;
mSlot2 = _local2;
dispContUnit.removeChild(mUnit);
mUnit = null;
showUnit();
if (finishTurn == false){
showCommand();
};
return;
};
if (((mSlot3) && (mSlot3._is_active))){
_local2 = mSlot1;
mSlot1 = mSlot3;
mSlot3 = _local2;
dispContUnit.removeChild(mUnit);
mUnit = null;
showUnit();
if (finishTurn == false){
showCommand();
};
return;
};
_delay = 150;
mSystem.mDCam.focusEnemyCam();
mUnit.addEventListener(Event.ENTER_FRAME, koUnitDelayHandle, false, 0, true);
mSystem.mPlayerParty.hideAP();
mSystem.mPlayerParty.hideCommand();
mSystem.mPlayerParty.removeStatus();
mSystem.mEnemyParty.hideAP();
mSystem.mEnemyParty.removeStatus();
};
};
}
private function item2Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
if (mSystem.mDat.item_stock[1] > 0){
giveItem(2);
};
updateCommandItemView();
}
private function switchCancelClick(_arg1:MouseEvent):void{
removeSwitch();
showCommand();
}
private function showCommandHandle(_arg1:Event):void{
if (mCmdUI){
mCmdUI.alpha = Math.min((mCmdUI.alpha + 0.05), 1);
if (mCmdUI.alpha >= 1){
mCmdUI.alpha = 1;
mCmdUI.removeEventListener(Event.ENTER_FRAME, showCommandHandle);
mCmdUI.skill_1.addEventListener(MouseEvent.CLICK, skill1Click, false, 0, true);
mCmdUI.skill_2.addEventListener(MouseEvent.CLICK, skill2Click, false, 0, true);
mCmdUI.skill_3.addEventListener(MouseEvent.CLICK, skill3Click, false, 0, true);
mCmdUI.skill_4.addEventListener(MouseEvent.CLICK, skill4Click, false, 0, true);
mCmdUI.swap.addEventListener(MouseEvent.CLICK, swapClick, false, 0, true);
mCmdUI.guard.addEventListener(MouseEvent.CLICK, guardClick, false, 0, true);
mCmdUI.endturn.addEventListener(MouseEvent.CLICK, endTurnClick, false, 0, true);
mCmdUI.item_1.addEventListener(MouseEvent.CLICK, item1Click, false, 0, true);
mCmdUI.item_2.addEventListener(MouseEvent.CLICK, item2Click, false, 0, true);
mCmdUI.item_3.addEventListener(MouseEvent.CLICK, item3Click, false, 0, true);
mCmdUI.item_4.addEventListener(MouseEvent.CLICK, item4Click, false, 0, true);
mCmdUI.item_5.addEventListener(MouseEvent.CLICK, item5Click, false, 0, true);
mCmdUI.item_6.addEventListener(MouseEvent.CLICK, item6Click, false, 0, true);
mCmdUI.item_7.addEventListener(MouseEvent.CLICK, item7Click, false, 0, true);
mCmdUI.btn_cmdexit.addEventListener(MouseEvent.CLICK, cmdExitClick, false, 0, true);
mCmdUI.btn_logo.addEventListener(MouseEvent.CLICK, logoClick, false, 0, true);
};
};
}
private function showStatusHandle(_arg1:Event):void{
if (mStat){
mStat.alpha = Math.min((mStat.alpha + 0.02), 1);
if (mStat.alpha >= 1){
mStat.alpha = 1;
mStat.removeEventListener(Event.ENTER_FRAME, showStatusHandle);
};
};
}
private function koUnitDelayHandle(_arg1:Event):void{
_delay = Math.max((_delay - 1), 0);
if (_delay <= 0){
mUnit.removeEventListener(Event.ENTER_FRAME, koUnitDelayHandle);
dispContUnit.removeChild(mUnit);
mUnit = null;
partyLose = true;
};
}
private function item7Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
if (mSystem.mDat.item_stock[6] > 0){
costAP(1);
currentAP = 12;
mSystem.mDat.item_stock[6] = Math.max((mSystem.mDat.item_stock[6] - 1), 0);
mSystem.mEffect.usingItem();
};
updateCommandItemView();
}
public function loadPartyData(){
mSlot1.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[0], mSystem.mDat.unit_slot_exp[0], mSystem.mDat.unit_slot_skill1[0], mSystem.mDat.unit_slot_skill2[0], mSystem.mDat.unit_slot_skill3[0], mSystem.mDat.unit_slot_skill4[0], mSystem.mDat.unit_slot_equip1[0], mSystem.mDat.unit_slot_equip2[0]);
mSlot2.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[1], mSystem.mDat.unit_slot_exp[1], mSystem.mDat.unit_slot_skill1[1], mSystem.mDat.unit_slot_skill2[1], mSystem.mDat.unit_slot_skill3[1], mSystem.mDat.unit_slot_skill4[1], mSystem.mDat.unit_slot_equip1[1], mSystem.mDat.unit_slot_equip2[1]);
mSlot3.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[2], mSystem.mDat.unit_slot_exp[2], mSystem.mDat.unit_slot_skill1[2], mSystem.mDat.unit_slot_skill2[2], mSystem.mDat.unit_slot_skill3[2], mSystem.mDat.unit_slot_skill4[2], mSystem.mDat.unit_slot_equip1[2], mSystem.mDat.unit_slot_equip2[2]);
mSlot4.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[3], mSystem.mDat.unit_slot_exp[3], mSystem.mDat.unit_slot_skill1[3], mSystem.mDat.unit_slot_skill2[3], mSystem.mDat.unit_slot_skill3[3], mSystem.mDat.unit_slot_skill4[3], mSystem.mDat.unit_slot_equip1[3], mSystem.mDat.unit_slot_equip2[3]);
mSlot5.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[4], mSystem.mDat.unit_slot_exp[4], mSystem.mDat.unit_slot_skill1[4], mSystem.mDat.unit_slot_skill2[4], mSystem.mDat.unit_slot_skill3[4], mSystem.mDat.unit_slot_skill4[4], mSystem.mDat.unit_slot_equip1[4], mSystem.mDat.unit_slot_equip2[4]);
mSlot6.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[5], mSystem.mDat.unit_slot_exp[5], mSystem.mDat.unit_slot_skill1[5], mSystem.mDat.unit_slot_skill2[5], mSystem.mDat.unit_slot_skill3[5], mSystem.mDat.unit_slot_skill4[5], mSystem.mDat.unit_slot_equip1[5], mSystem.mDat.unit_slot_equip2[5]);
mSlot7.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[6], mSystem.mDat.unit_slot_exp[6], mSystem.mDat.unit_slot_skill1[6], mSystem.mDat.unit_slot_skill2[6], mSystem.mDat.unit_slot_skill3[6], mSystem.mDat.unit_slot_skill4[6], mSystem.mDat.unit_slot_equip1[6], mSystem.mDat.unit_slot_equip2[6]);
mSlot8.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[7], mSystem.mDat.unit_slot_exp[7], mSystem.mDat.unit_slot_skill1[7], mSystem.mDat.unit_slot_skill2[7], mSystem.mDat.unit_slot_skill3[7], mSystem.mDat.unit_slot_skill4[7], mSystem.mDat.unit_slot_equip1[7], mSystem.mDat.unit_slot_equip2[7]);
mSlot9.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[8], mSystem.mDat.unit_slot_exp[8], mSystem.mDat.unit_slot_skill1[8], mSystem.mDat.unit_slot_skill2[8], mSystem.mDat.unit_slot_skill3[8], mSystem.mDat.unit_slot_skill4[8], mSystem.mDat.unit_slot_equip1[8], mSystem.mDat.unit_slot_equip2[8]);
mSlot10.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[9], mSystem.mDat.unit_slot_exp[9], mSystem.mDat.unit_slot_skill1[9], mSystem.mDat.unit_slot_skill2[9], mSystem.mDat.unit_slot_skill3[9], mSystem.mDat.unit_slot_skill4[9], mSystem.mDat.unit_slot_equip1[9], mSystem.mDat.unit_slot_equip2[9]);
mSlot11.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[10], mSystem.mDat.unit_slot_exp[10], mSystem.mDat.unit_slot_skill1[10], mSystem.mDat.unit_slot_skill2[10], mSystem.mDat.unit_slot_skill3[10], mSystem.mDat.unit_slot_skill4[10], mSystem.mDat.unit_slot_equip1[10], mSystem.mDat.unit_slot_equip2[10]);
mSlot12.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[11], mSystem.mDat.unit_slot_exp[11], mSystem.mDat.unit_slot_skill1[11], mSystem.mDat.unit_slot_skill2[11], mSystem.mDat.unit_slot_skill3[11], mSystem.mDat.unit_slot_skill4[11], mSystem.mDat.unit_slot_equip1[11], mSystem.mDat.unit_slot_equip2[11]);
mSlot13.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[12], mSystem.mDat.unit_slot_exp[12], mSystem.mDat.unit_slot_skill1[12], mSystem.mDat.unit_slot_skill2[12], mSystem.mDat.unit_slot_skill3[12], mSystem.mDat.unit_slot_skill4[12], mSystem.mDat.unit_slot_equip1[12], mSystem.mDat.unit_slot_equip2[12]);
mSlot14.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[13], mSystem.mDat.unit_slot_exp[13], mSystem.mDat.unit_slot_skill1[13], mSystem.mDat.unit_slot_skill2[13], mSystem.mDat.unit_slot_skill3[13], mSystem.mDat.unit_slot_skill4[13], mSystem.mDat.unit_slot_equip1[13], mSystem.mDat.unit_slot_equip2[13]);
mSlot15.retrivePlayerUnitData(mSystem.mDat.unit_slot_id[14], mSystem.mDat.unit_slot_exp[14], mSystem.mDat.unit_slot_skill1[14], mSystem.mDat.unit_slot_skill2[14], mSystem.mDat.unit_slot_skill3[14], mSystem.mDat.unit_slot_skill4[14], mSystem.mDat.unit_slot_equip1[14], mSystem.mDat.unit_slot_equip2[14]);
}
public function setInitParty(_arg1:int=1, _arg2:int=0, _arg3:int=0){
mSlot1.setBaseUnit(_arg1);
mSlot2.setBaseUnit(_arg2);
mSlot3.setBaseUnit(_arg3);
mSlot4.setBaseUnit(0);
mSlot5.setBaseUnit(0);
mSlot6.setBaseUnit(0);
mSlot7.setBaseUnit(0);
mSlot8.setBaseUnit(0);
mSlot9.setBaseUnit(0);
mSlot10.setBaseUnit(0);
mSlot11.setBaseUnit(0);
mSlot12.setBaseUnit(0);
mSlot13.setBaseUnit(0);
mSlot14.setBaseUnit(0);
mSlot15.setBaseUnit(0);
if (_arg1 == 0){
if (_arg2 == 0){
mSlot1.setBaseUnit(_arg3);
mSlot3.setBaseUnit(0);
} else {
mSlot1.setBaseUnit(_arg2);
mSlot2.setBaseUnit(0);
};
};
savePartyData();
}
public function isUnitReady():Boolean{
if (mUnit){
if ((((mUnit.x == 150)) && ((mUnit.alpha == 1)))){
return (true);
};
};
return (false);
}
private function hideAPHandle(_arg1:Event):void{
if (mAPUI){
mAPUI.alpha = Math.max((mAPUI.alpha - 0.05), 0);
mAPUI.y = (mAPUI.y + 1);
if (mAPUI.alpha <= 0){
mAPUI.alpha = 0;
mAPUI.removeEventListener(Event.ENTER_FRAME, hideAPHandle);
dispContMenu.removeChild(mAPUI);
mAPUI = null;
};
};
}
private function endTurnClick(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
finishTurn = true;
}
private function skill1Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
mSkillSet.initialise(mSlot1._SKILL_1);
if (((mSkillSet.isAvailable()) && (mSkillSet.isReadyToCast(currentAP)))){
costAP(mSkillSet._AP_COST);
mSystem.mEffect.skillEffect(mSlot1._SKILL_1, this, mTargetParty);
animAttack();
} else {
mSystem.mEffect.msgInfo("not enough AP !");
};
}
public function showCommand(){
removeCommand();
if (mCmdUI == null){
mCmdUI = new command_input_mc();
dispContMenu.addChild(mCmdUI);
mCmdUI.alpha = 0;
mCmdUI.addEventListener(Event.ENTER_FRAME, showCommandHandle, false, 0, true);
mCmdUI.swap.gotoAndStop(2);
mCmdUI.guard.gotoAndStop(3);
mCmdUI.endturn.gotoAndStop(4);
mCmdUI.item_1.gotoAndStop(5);
mCmdUI.item_2.gotoAndStop(6);
mCmdUI.item_3.gotoAndStop(7);
mCmdUI.item_4.gotoAndStop(8);
mCmdUI.item_5.gotoAndStop(9);
mCmdUI.item_6.gotoAndStop(10);
mCmdUI.item_7.gotoAndStop(11);
mCmdUI.skill_1.gotoAndStop((mSlot1._SKILL_1 + 12));
mCmdUI.skill_2.gotoAndStop((mSlot1._SKILL_2 + 12));
mCmdUI.skill_3.gotoAndStop((mSlot1._SKILL_3 + 12));
mCmdUI.skill_4.gotoAndStop((mSlot1._SKILL_4 + 12));
updateCommandItemView();
};
}
public function removeStatus(){
if (mStat){
mStat.removeEventListener(Event.ENTER_FRAME, showStatusHandle);
dispContMenu.removeChild(mStat);
mStat = null;
};
}
private function giveUnit3Click(_arg1:MouseEvent):void{
removeGive();
if (mSlot3){
if (mItemGive == 1){
mSlot3._health = Math.min((mSlot3._health + (mSlot3._health_max * 0.25)), mSlot3._health_max);
mSystem.mDat.item_stock[0] = Math.max((mSystem.mDat.item_stock[0] - 1), 0);
costAP(1);
};
if (mItemGive == 2){
mSlot3._health = Math.min((mSlot3._health + (mSlot3._health_max * 0.5)), mSlot3._health_max);
mSystem.mDat.item_stock[1] = Math.max((mSystem.mDat.item_stock[1] - 1), 0);
costAP(1);
};
if (mItemGive == 3){
mSlot3._health = Math.min((mSlot3._health + (mSlot3._health_max * 0.1)), mSlot3._health_max);
mSlot3._is_active = true;
mSystem.mDat.item_stock[3] = Math.max((mSystem.mDat.item_stock[3] - 1), 0);
costAP(1);
};
if (mItemGive == 4){
mSlot3._health = Math.min((mSlot3._health + mSlot3._health_max), mSlot3._health_max);
mSlot3._is_active = true;
mSystem.mDat.item_stock[4] = Math.max((mSystem.mDat.item_stock[4] - 1), 0);
costAP(1);
};
};
showCommand();
updateCommandItemView();
}
private function logoClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest(mSystem.mSecurity.sponsorLink);
navigateToURL(_local2, "_blank");
}
private function giveCancelClick(_arg1:MouseEvent):void{
removeGive();
showCommand();
}
private function skill3Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
mSkillSet.initialise(mSlot1._SKILL_3);
if (((mSkillSet.isAvailable()) && (mSkillSet.isReadyToCast(currentAP)))){
costAP(mSkillSet._AP_COST);
mSystem.mEffect.skillEffect(mSlot1._SKILL_3, this, mTargetParty);
animAttack();
} else {
mSystem.mEffect.msgInfo("not enough AP !");
};
}
private function hideUnitHandle(_arg1:Event):void{
if (mUnit){
mUnit.x = (mUnit.x + _vx);
_vx = (_vx * 1.02);
if (mUnit.x < -200){
mUnit.x = -200;
mUnit.removeEventListener(Event.ENTER_FRAME, hideUnitHandle);
dispContUnit.removeChild(mUnit);
mUnit = null;
};
};
}
private function switchUnit1Click(_arg1:MouseEvent):void{
removeSwitch();
hideUnit();
switchState = 1;
}
private function item1Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
if (mSystem.mDat.item_stock[0] > 0){
giveItem(1);
};
updateCommandItemView();
}
public function savePartyData(){
mSlot1.submitPlayerUnitData(mSystem.mDat, 0);
mSlot2.submitPlayerUnitData(mSystem.mDat, 1);
mSlot3.submitPlayerUnitData(mSystem.mDat, 2);
mSlot4.submitPlayerUnitData(mSystem.mDat, 3);
mSlot5.submitPlayerUnitData(mSystem.mDat, 4);
mSlot6.submitPlayerUnitData(mSystem.mDat, 5);
mSlot7.submitPlayerUnitData(mSystem.mDat, 6);
mSlot8.submitPlayerUnitData(mSystem.mDat, 7);
mSlot9.submitPlayerUnitData(mSystem.mDat, 8);
mSlot10.submitPlayerUnitData(mSystem.mDat, 9);
mSlot11.submitPlayerUnitData(mSystem.mDat, 10);
mSlot12.submitPlayerUnitData(mSystem.mDat, 11);
mSlot13.submitPlayerUnitData(mSystem.mDat, 12);
mSlot14.submitPlayerUnitData(mSystem.mDat, 13);
mSlot15.submitPlayerUnitData(mSystem.mDat, 14);
}
private function swapClick(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
switchUnit();
}
public function initialise(_arg1){
mTargetParty = _arg1;
}
private function showUnitHandle(_arg1:Event):void{
if (mUnit){
mUnit.x = (mUnit.x + _vx);
_vx = (_vx * 0.98);
if (mUnit.x > 150){
mUnit.x = 150;
mUnit.removeEventListener(Event.ENTER_FRAME, showUnitHandle);
};
};
}
private function animAttack(){
mUnit.char.x = -1;
_move_x = (20 + (Math.random() * 10));
}
private function updateCommandItemView(){
mCmdUI.item_1.visible = false;
mCmdUI.item_2.visible = false;
mCmdUI.item_3.visible = false;
mCmdUI.item_4.visible = false;
mCmdUI.item_5.visible = false;
mCmdUI.item_6.visible = false;
mCmdUI.item_7.visible = false;
mCmdUI.item_stock_1.visible = false;
mCmdUI.item_stock_2.visible = false;
mCmdUI.item_stock_3.visible = false;
mCmdUI.item_stock_4.visible = false;
mCmdUI.item_stock_5.visible = false;
mCmdUI.item_stock_6.visible = false;
mCmdUI.item_stock_7.visible = false;
if (mSystem.mDat.item_stock[0] > 0){
mCmdUI.item_1.visible = true;
mCmdUI.item_stock_1.visible = true;
mCmdUI.item_stock_1.htmlText = String(mSystem.mDat.item_stock[0]);
};
if (mSystem.mDat.item_stock[1] > 0){
mCmdUI.item_2.visible = true;
mCmdUI.item_stock_2.visible = true;
mCmdUI.item_stock_2.htmlText = String(mSystem.mDat.item_stock[1]);
};
if (mSystem.mDat.item_stock[2] > 0){
mCmdUI.item_3.visible = true;
mCmdUI.item_stock_3.visible = true;
mCmdUI.item_stock_3.htmlText = String(mSystem.mDat.item_stock[2]);
};
if (mSystem.mDat.item_stock[3] > 0){
mCmdUI.item_4.visible = true;
mCmdUI.item_stock_4.visible = true;
mCmdUI.item_stock_4.htmlText = String(mSystem.mDat.item_stock[3]);
};
if (mSystem.mDat.item_stock[4] > 0){
mCmdUI.item_5.visible = true;
mCmdUI.item_stock_5.visible = true;
mCmdUI.item_stock_5.htmlText = String(mSystem.mDat.item_stock[4]);
};
if (mSystem.mDat.item_stock[5] > 0){
mCmdUI.item_6.visible = true;
mCmdUI.item_stock_6.visible = true;
mCmdUI.item_stock_6.htmlText = String(mSystem.mDat.item_stock[5]);
};
if (mSystem.mDat.item_stock[6] > 0){
mCmdUI.item_7.visible = true;
mCmdUI.item_stock_7.visible = true;
mCmdUI.item_stock_7.htmlText = String(mSystem.mDat.item_stock[6]);
};
}
public function damageParty(_arg1, _arg2:Number=1, _arg3:int=0){
var _local9:*;
var _local10:*;
var _local4:int;
var _local5:Boolean;
var _local6 = 150;
var _local7 = 550;
var _local8 = 250;
mSkillSet.initialise(_arg3);
if (((mSkillSet.isHit()) && (mSlot1._is_active))){
if (mSkillSet.isStrengthBased()){
_local4 = (_arg1.mSlot1._strength * (mSkillSet._POWER / 100));
trace(((("caster str = " + _arg1.mSlot1._strength) + " skill pow = ") + mSkillSet._POWER));
if (_arg1.mSlot1._is_focus){
_local4 = (_local4 * 1.5);
trace("+ FOCUS");
};
} else {
if (mSkillSet.isMagicBased()){
_local4 = (_arg1.mSlot1._magic * (mSkillSet._POWER / 100));
trace(((("caster mgc = " + _arg1.mSlot1._magic) + " skill pow = ") + mSkillSet._POWER));
if (_arg1.mSlot1._is_concentrate){
_local4 = (_local4 * 2);
trace("+ CONCENTRATE");
};
} else {
_local4 = (((_arg1.mSlot1._strength + _arg1.mSlot1._magic) * 0.5) * (mSkillSet._POWER / 100));
trace(((((("caster str = " + _arg1.mSlot1._strength) + " caster mgc = ") + _arg1.mSlot1._magic) + " skill pow = ") + mSkillSet._POWER));
};
};
trace(("raw damage = " + _local4));
_local4 = (_local4 + ((Math.random() * 0.2) * _local4));
_local4 = (_local4 * _arg2);
if (((_arg1.mSlot1._is_rage) && (((_arg1.mSlot1._health / _arg1.mSlot1._health_max) < 0.3)))){
_local4 = (_local4 * 1.5);
trace("RAGE activation !!");
};
mChainHit.addComboHit();
_local4 = (_local4 + (_local4 * mChainHit.getBonusDamage()));
if (mSkillSet.isCritical(_arg1.mSlot1._is_criticalup)){
_local5 = true;
_local4 = (_local4 * 2);
trace("critical hit !!");
mSystem.mDCam.critCam();
};
trace(("total raw damage = " + _local4));
if (mSlot1){
if (_arg1.mSlot1._is_pierce){
_local4 = mSlot1.damageHealth(_local4, E_NONE);
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageNormal(_local6, _local8, _local4, _local5);
totalDamage = Math.min((totalDamage + _local4), 999999999999);
animHit(_local5, 0);
if ((((((mSlot1.getElementResistance(mSkillSet._ELEMENT) == 2)) || ((mSlot1.getElementResistance(mSkillSet._ELEMENT) == 3)))) || ((mSlot1.getElementResistance(mSkillSet._ELEMENT) == 4)))){
mSystem.mEffect.pierceEffect(getPosX());
_local9 = new snd_pierce();
_local9.playSound(mSystem.mDat.se_volume);
};
} else {
_local4 = mSlot1.damageHealth(_local4, mSkillSet._ELEMENT);
if (mSlot1.getElementResistance(mSkillSet._ELEMENT) == 0){
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageNormal(_local6, _local8, _local4, _local5);
totalDamage = Math.min((totalDamage + _local4), 999999999999);
animHit(_local5, 0);
} else {
if (mSlot1.getElementResistance(mSkillSet._ELEMENT) == 1){
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageWeak(_local6, _local8, _local4, _local5);
trace("WEAK!!");
totalDamage = Math.min((totalDamage + _local4), 999999999999);
animHit(_local5, 1);
} else {
if (mSlot1.getElementResistance(mSkillSet._ELEMENT) == 2){
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageStrong(_local6, _local8, _local4, _local5);
trace("STRONG!!");
totalDamage = Math.min((totalDamage + _local4), 999999999999);
animHit(_local5, 2);
} else {
if (mSlot1.getElementResistance(mSkillSet._ELEMENT) == 3){
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageNull(_local6, _local8);
trace("NULL!!");
} else {
if (mSlot1.getElementResistance(mSkillSet._ELEMENT) == 4){
mSystem.mEffect.hitSplash(getPosX(), _local5);
mSystem.mEffect.displayDamageHeal(_local6, _local8, _local4);
trace("ABSORB!!");
};
};
};
};
};
};
};
if (((mSlot1._is_reflect) && ((_arg1.mSlot1._is_reflect == false)))){
if (Math.random() < 0.5){
_local4 = _arg1.mSlot1.damageHealth(Math.max((_local4 * 0.2), 1), mSkillSet._ELEMENT);
if (_arg1.mSlot1.getElementResistance(mSkillSet._ELEMENT) == 0){
mSystem.mEffect.displayDamageNormal(_local7, _local8, _local4, _local5);
} else {
if (_arg1.mSlot1.getElementResistance(mSkillSet._ELEMENT) == 1){
mSystem.mEffect.displayDamageWeak(_local7, _local8, _local4, _local5);
trace("WEAK!!");
} else {
if (_arg1.mSlot1.getElementResistance(mSkillSet._ELEMENT) == 2){
mSystem.mEffect.displayDamageStrong(_local7, _local8, _local4, _local5);
trace("STRONG!!");
} else {
if (_arg1.mSlot1.getElementResistance(mSkillSet._ELEMENT) == 3){
mSystem.mEffect.displayDamageNull(_local7, _local8);
trace("NULL!!");
} else {
if (_arg1.mSlot1.getElementResistance(mSkillSet._ELEMENT) == 4){
mSystem.mEffect.displayDamageHeal(_local7, _local8, _local4);
trace("ABSORB!!");
};
};
};
};
};
};
};
if (_arg1.mSlot1._is_absorb){
_local4 = _arg1.mSlot1.recoverHealth(Math.max((_local4 * 0.2), 1));
mSystem.mEffect.displayDamageHeal(_local7, _local8, Math.max((_local4 * 0.2), 1));
trace("absorb damage !");
};
if ((((mSlot1._health <= 0)) && (mSlot1._is_endure))){
mSlot1._health = (mSlot1._health_max * 0.3);
mSlot1._is_endure = false;
mSystem.mEffect.endureEffect(getPosX());
_local10 = new snd_endure();
_local10.playSound(mSystem.mDat.se_volume);
trace("ENDURE activated !");
};
} else {
mSystem.mEffect.displayDamageMiss(_local6, _local8);
trace("miss !! ");
};
}
private function item4Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
if (mSystem.mDat.item_stock[3] > 0){
giveItem(3);
};
updateCommandItemView();
}
public function hideCommand(){
if (mCmdUI){
mCmdUI.skill_1.removeEventListener(MouseEvent.CLICK, skill1Click);
mCmdUI.skill_2.removeEventListener(MouseEvent.CLICK, skill1Click);
mCmdUI.skill_3.removeEventListener(MouseEvent.CLICK, skill1Click);
mCmdUI.skill_4.removeEventListener(MouseEvent.CLICK, skill1Click);
mCmdUI.swap.removeEventListener(MouseEvent.CLICK, swapClick);
mCmdUI.guard.removeEventListener(MouseEvent.CLICK, guardClick);
mCmdUI.endturn.removeEventListener(MouseEvent.CLICK, endTurnClick);
mCmdUI.item_1.removeEventListener(MouseEvent.CLICK, item1Click);
mCmdUI.item_2.removeEventListener(MouseEvent.CLICK, item2Click);
mCmdUI.item_3.removeEventListener(MouseEvent.CLICK, item3Click);
mCmdUI.item_4.removeEventListener(MouseEvent.CLICK, item4Click);
mCmdUI.item_5.removeEventListener(MouseEvent.CLICK, item5Click);
mCmdUI.item_6.removeEventListener(MouseEvent.CLICK, item6Click);
mCmdUI.item_7.removeEventListener(MouseEvent.CLICK, item7Click);
mCmdUI.btn_cmdexit.removeEventListener(MouseEvent.CLICK, cmdExitClick);
mCmdUI.btn_logo.removeEventListener(MouseEvent.CLICK, logoClick);
mCmdUI.addEventListener(Event.ENTER_FRAME, hideCommandHandle, false, 0, true);
};
}
public function costAP(_arg1:int=0){
currentAP = Math.max((currentAP - _arg1), 0);
}
private function giveItem(_arg1:int=1){
hideCommand();
mItemGive = _arg1;
if (mGiveItemUI == null){
mGiveItemUI = new give_item_mc();
dispContMenu.addChild(mGiveItemUI);
if ((((mItemGive == 1)) || ((mItemGive == 2)))){
if (((mSlot1) && (mSlot1._is_active))){
mGiveItemUI.unit_1.gotoAndStop((mSlot1._ID + 1));
mGiveItemUI.unit_1.addEventListener(MouseEvent.CLICK, giveUnit1Click, false, 0, true);
} else {
mGiveItemUI.unit_1.visible = false;
};
if (((mSlot2) && (mSlot2._is_active))){
mGiveItemUI.unit_2.gotoAndStop((mSlot2._ID + 1));
mGiveItemUI.unit_2.addEventListener(MouseEvent.CLICK, giveUnit2Click, false, 0, true);
} else {
mGiveItemUI.unit_2.visible = false;
};
if (((mSlot3) && (mSlot3._is_active))){
mGiveItemUI.unit_3.gotoAndStop((mSlot3._ID + 1));
mGiveItemUI.unit_3.addEventListener(MouseEvent.CLICK, giveUnit3Click, false, 0, true);
} else {
mGiveItemUI.unit_3.visible = false;
};
} else {
if (mSlot1){
mGiveItemUI.unit_1.gotoAndStop((mSlot1._ID + 1));
mGiveItemUI.unit_1.addEventListener(MouseEvent.CLICK, giveUnit1Click, false, 0, true);
} else {
mGiveItemUI.unit_1.visible = false;
};
if (mSlot2){
mGiveItemUI.unit_2.gotoAndStop((mSlot2._ID + 1));
mGiveItemUI.unit_2.addEventListener(MouseEvent.CLICK, giveUnit2Click, false, 0, true);
} else {
mGiveItemUI.unit_2.visible = false;
};
if (mSlot3){
mGiveItemUI.unit_3.gotoAndStop((mSlot3._ID + 1));
mGiveItemUI.unit_3.addEventListener(MouseEvent.CLICK, giveUnit3Click, false, 0, true);
} else {
mGiveItemUI.unit_3.visible = false;
};
};
mGiveItemUI.cancel.addEventListener(MouseEvent.CLICK, giveCancelClick, false, 0, true);
};
}
private function item6Click(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
if (mSystem.mDat.item_stock[5] > 0){
mSlot1._is_barrier = true;
costAP(1);
mSystem.mDat.item_stock[5] = Math.max((mSystem.mDat.item_stock[5] - 1), 0);
mSystem.mEffect.usingItem();
};
updateCommandItemView();
}
private function updateAPStatus(){
if (mAPUI){
mAPUI.val.htmlText = String((currentAP + "/12"));
mAPUI.bar.scaleX = Math.min(Math.max((currentAP / 12), 0), 1);
};
}
private function removeAP(){
if (mAPUI){
mAPUI.removeEventListener(Event.ENTER_FRAME, showAPHandle);
mAPUI.removeEventListener(Event.ENTER_FRAME, hideAPHandle);
dispContMenu.removeChild(mAPUI);
mAPUI = null;
};
}
private function removeGive(){
if (mGiveItemUI){
mGiveItemUI.unit_1.removeEventListener(MouseEvent.CLICK, giveUnit1Click);
mGiveItemUI.unit_2.removeEventListener(MouseEvent.CLICK, giveUnit2Click);
mGiveItemUI.unit_3.removeEventListener(MouseEvent.CLICK, giveUnit3Click);
mGiveItemUI.cancel.removeEventListener(MouseEvent.CLICK, giveCancelClick);
dispContMenu.removeChild(mGiveItemUI);
mGiveItemUI = null;
};
}
public function updatePhaseTurn(){
if (((mSystem.mPlayerParty.partyLose) || (mSystem.mEnemyParty.partyLose))){
return;
};
if ((((currentAP <= 0)) && ((mSystem.contEFFECT.numChildren <= 0)))){
finishTurn = true;
};
}
private function switchUnit(){
hideCommand();
if (mSwitchUI == null){
mSwitchUI = new switch_unit_mc();
dispContMenu.addChild(mSwitchUI);
if (((mSlot2) && (mSlot2._is_active))){
mSwitchUI.unit_1.gotoAndStop((mSlot2._ID + 1));
mSwitchUI.unit_1.addEventListener(MouseEvent.CLICK, switchUnit1Click, false, 0, true);
} else {
mSwitchUI.unit_1.visible = false;
};
if (((mSlot3) && (mSlot3._is_active))){
mSwitchUI.unit_2.gotoAndStop((mSlot3._ID + 1));
mSwitchUI.unit_2.addEventListener(MouseEvent.CLICK, switchUnit2Click, false, 0, true);
} else {
mSwitchUI.unit_2.visible = false;
};
mSwitchUI.cancel.addEventListener(MouseEvent.CLICK, switchCancelClick, false, 0, true);
switchState = 0;
};
}
private function guardClick(_arg1:MouseEvent):void{
if (mSlot1._is_active == false){
return;
};
costAP(1);
mSlot1._is_guard = true;
finishTurn = true;
}
private function removeSwitch(){
if (mSwitchUI){
mSwitchUI.unit_1.removeEventListener(MouseEvent.CLICK, switchUnit1Click);
mSwitchUI.unit_2.removeEventListener(MouseEvent.CLICK, switchUnit2Click);
mSwitchUI.cancel.removeEventListener(MouseEvent.CLICK, switchCancelClick);
dispContMenu.removeChild(mSwitchUI);
mSwitchUI = null;
};
}
public function initBattle(){
mSlot1.initialise();
mSlot2.initialise();
mSlot3.initialise();
mChainHit.reset();
currentAP = 0;
totalTurn = 0;
finishTurn = true;
partyLose = false;
forceQuit = false;
showStatus();
showUnit();
}
private function giveUnit2Click(_arg1:MouseEvent):void{
removeGive();
if (mSlot2){
if (mItemGive == 1){
mSlot2._health = Math.min((mSlot2._health + (mSlot2._health_max * 0.25)), mSlot2._health_max);
mSystem.mDat.item_stock[0] = Math.max((mSystem.mDat.item_stock[0] - 1), 0);
costAP(1);
};
if (mItemGive == 2){
mSlot2._health = Math.min((mSlot2._health + (mSlot2._health_max * 0.5)), mSlot2._health_max);
mSystem.mDat.item_stock[1] = Math.max((mSystem.mDat.item_stock[1] - 1), 0);
costAP(1);
};
if (mItemGive == 3){
mSlot2._health = Math.min((mSlot2._health + (mSlot2._health_max * 0.1)), mSlot2._health_max);
mSlot2._is_active = true;
mSystem.mDat.item_stock[3] = Math.max((mSystem.mDat.item_stock[3] - 1), 0);
costAP(1);
};
if (mItemGive == 4){
mSlot2._health = Math.min((mSlot2._health + mSlot2._health_max), mSlot2._health_max);
mSlot2._is_active = true;
mSystem.mDat.item_stock[4] = Math.max((mSystem.mDat.item_stock[4] - 1), 0);
costAP(1);
};
};
showCommand();
updateCommandItemView();
}
public function refillAP(){
var _local1:int;
if (((mSlot1) && (mSlot1._is_active))){
_local1 = (_local1 + (mSlot1._AP_BOOST + mSlot1._add_ap));
};
if (((mSlot2) && (mSlot2._is_active))){
_local1 = (_local1 + (mSlot2._AP_BOOST + mSlot2._add_ap));
};
if (((mSlot3) && (mSlot3._is_active))){
_local1 = (_local1 + (mSlot3._AP_BOOST + mSlot3._add_ap));
};
if (currentAP < 12){
currentAP = Math.min((currentAP + _local1), 12);
};
mSlot1._is_guard = false;
}
public function hideUnit(){
if (mUnit){
_vx = -10;
mUnit.addEventListener(Event.ENTER_FRAME, hideUnitHandle, false, 0, true);
};
}
private function animHit(_arg1:Boolean=false, _arg2:int=0){
mUnit.char.x = 1;
if (_arg2 == 0){
_move_x = (4 + (Math.random() * 4));
} else {
if (_arg2 == 2){
_move_x = (2 + (Math.random() * 2));
} else {
if (_arg2 == 1){
_move_x = (6 + (Math.random() * 6));
};
};
};
if (_arg1){
_move_x = (_move_x * 3);
};
}
public function hideAP(){
if (mAPUI){
mAPUI.removeEventListener(Event.ENTER_FRAME, showAPHandle);
mAPUI.addEventListener(Event.ENTER_FRAME, hideAPHandle, false, 0, true);
};
}
public function showAP(){
removeAP();
if (mAPUI == null){
mAPUI = new player_ap_mc();
dispContMenu.addChild(mAPUI);
mAPUI.alpha = 0;
mAPUI.y = -200;
mAPUI.addEventListener(Event.ENTER_FRAME, showAPHandle, false, 0, true);
};
}
public function update(){
updateUnitStatus();
updateClipStatus();
updateAPStatus();
updateSwitchAnim();
updatePhaseTurn();
}
public function getPosX():int{
if (mUnit){
return (mUnit.x);
};
return (0);
}
private function cmdExitClick(_arg1:MouseEvent):void{
forceQuit = true;
}
}
}//package FZGame.Rpg.Class
Section 34
//HealthText (FZGame.Rpg.Effect.Info.HealthText)
package FZGame.Rpg.Effect.Info {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class HealthText extends Sprite {
public var val:TextField;
private var vy:Number;// = 5
private var fly_friction:Number;// = 0.99
private var lifeSpan:int;// = 100
private var dispCont;// = null
private var mSystem;// = null
private var alpha_fade:Number;// = 0.1
private function frameHandle(_arg1:Event):void{
if (mSystem.isPaused){
return;
};
this.x = (this.x + 1);
this.y = (this.y - vy);
vy = (vy - 1);
if (lifeSpan < 40){
this.alpha = Math.max((this.alpha - alpha_fade), 0);
};
lifeSpan = Math.max((lifeSpan - 1), 0);
if ((((((this.alpha <= 0)) || ((lifeSpan <= 0)))) || ((this.y > 550)))){
destroy();
};
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2:Number=0, _arg3:Number=0, _arg4:int=1, _arg5:int=0){
var _local6:*;
var _local7:*;
var _local8:*;
mSystem = _arg1;
dispCont = mSystem.contEFFECT2;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = _arg2;
this.y = _arg3;
if (_arg4 == 0){
this.val.htmlText = String(("- " + _arg5));
_local6 = new snd_normal();
_local6.playSound(mSystem.mDat.se_volume);
} else {
if (_arg4 == 1){
this.val.htmlText = String(("- " + _arg5));
this.scaleX = 3;
this.scaleY = 3;
_local7 = new snd_critical();
_local7.playSound(mSystem.mDat.se_volume);
} else {
if (_arg4 == 2){
this.val.htmlText = String(("+ " + _arg5));
_local8 = new snd_absorb();
_local8.playSound(mSystem.mDat.se_volume);
};
};
};
vy = (5 + (Math.random() * 10));
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
}
}//package FZGame.Rpg.Effect.Info
Section 35
//MsgPop (FZGame.Rpg.Effect.Message.MsgPop)
package FZGame.Rpg.Effect.Message {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class MsgPop extends MovieClip {
public var msg:TextField;
private var lifespan:int;// = 40
private var alphaFade:Number;// = 1
private var dispCont;// = null
private var mSystem;// = null
private function frameHandle(_arg1:Event):void{
if (lifespan <= 20){
this.alpha = Math.max((this.alpha - alphaFade), 0);
};
if (lifespan <= 0){
destroy();
return;
};
lifespan = Math.max((lifespan - 1), 0);
}
public function initialise(_arg1, _arg2:String="", _arg3:int=100){
mSystem = _arg1;
dispCont = mSystem.contMENU2;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.msg.htmlText = String(_arg2);
this.alpha = 1;
lifespan = _arg3;
alphaFade = (1 / 20);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
}
}//package FZGame.Rpg.Effect.Message
Section 36
//EndureFX (FZGame.Rpg.Effect.Other.EndureFX)
package FZGame.Rpg.Effect.Other {
import flash.events.*;
import flash.display.*;
public class EndureFX extends MovieClip {
private var dispCont;
private var mSystem;
private function frameHandle(_arg1:Event):void{
if (this.currentFrame >= this.totalFrames){
destroy();
};
}
public function initialise(_arg1, _arg2:int=0){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = _arg2;
this.y = 400;
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
}
}//package FZGame.Rpg.Effect.Other
Section 37
//HitSplash (FZGame.Rpg.Effect.Other.HitSplash)
package FZGame.Rpg.Effect.Other {
import flash.events.*;
import flash.display.*;
public class HitSplash extends MovieClip {
private var dispCont;
private var mSystem;
private function frameHandle(_arg1:Event):void{
if (this.currentFrame >= this.totalFrames){
destroy();
};
}
public function initialise(_arg1, _arg2:int=150, _arg3:Boolean=false){
mSystem = _arg1;
dispCont = mSystem.contUNIT;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = ((_arg2 - 50) + (Math.random() * 100));
this.y = (300 + (Math.random() * 100));
var _local4:Number = (0.5 + (Math.random() * 0.5));
this.scaleX = _local4;
this.scaleY = _local4;
var _local5:Number = Math.random();
if (_arg3){
if (_local5 < 0.35){
this.gotoAndPlay("fx_3");
} else {
if ((((_local5 >= 0.35)) && ((_local5 < 0.7)))){
this.gotoAndPlay("fx_4");
} else {
this.gotoAndPlay("fx_5");
};
};
} else {
if (_local5 < 0.5){
this.gotoAndPlay("fx_1");
} else {
this.gotoAndPlay("fx_2");
this.rotation = ((this.rotation - 30) + (Math.random() * 60));
};
};
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
}
}//package FZGame.Rpg.Effect.Other
Section 38
//PierceFX (FZGame.Rpg.Effect.Other.PierceFX)
package FZGame.Rpg.Effect.Other {
import flash.events.*;
import flash.display.*;
public class PierceFX extends MovieClip {
private var dispCont;
private var mSystem;
private function frameHandle(_arg1:Event):void{
if (this.currentFrame >= this.totalFrames){
destroy();
};
}
public function initialise(_arg1, _arg2:int=0){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = _arg2;
this.y = 400;
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
}
}//package FZGame.Rpg.Effect.Other
Section 39
//UseItem (FZGame.Rpg.Effect.Other.UseItem)
package FZGame.Rpg.Effect.Other {
import flash.events.*;
import flash.display.*;
public class UseItem extends MovieClip {
private var dispCont;
private var mSystem;
private function frameHandle(_arg1:Event):void{
if (this.currentFrame >= this.totalFrames){
destroy();
};
}
public function initialise(_arg1, _arg2:int=150, _arg3:int=400){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = _arg2;
this.y = _arg3;
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
trace("USE ITEM");
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
}
}//package FZGame.Rpg.Effect.Other
Section 40
//EnergyEnergyBall (FZGame.Rpg.Effect.Skill.EnergyEnergyBall)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class EnergyEnergyBall extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function EnergyEnergyBall(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_EN_ENERGY_BALL);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 15){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 41
//EnergyRadiantBlast (FZGame.Rpg.Effect.Skill.EnergyRadiantBlast)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class EnergyRadiantBlast extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function EnergyRadiantBlast(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_EN_RADIANT_BLAST);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 27){
mTargetParty.damageParty(mCastParty, (0.05 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 33){
mTargetParty.damageParty(mCastParty, (0.07 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 39){
mTargetParty.damageParty(mCastParty, (0.09 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 45){
mTargetParty.damageParty(mCastParty, (0.11 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 51){
mTargetParty.damageParty(mCastParty, (0.13 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 57){
mTargetParty.damageParty(mCastParty, (0.15 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 63){
mTargetParty.damageParty(mCastParty, (0.17 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 67){
mTargetParty.damageParty(mCastParty, (0.19 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 73){
mTargetParty.damageParty(mCastParty, (0.21 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 79){
mTargetParty.damageParty(mCastParty, (0.22 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 85){
mTargetParty.damageParty(mCastParty, (0.25 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 91){
mTargetParty.damageParty(mCastParty, (0.27 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 97){
mTargetParty.damageParty(mCastParty, (0.29 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 103){
mTargetParty.damageParty(mCastParty, (0.31 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 109){
mTargetParty.damageParty(mCastParty, (0.35 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 119){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 42
//EnergyRay (FZGame.Rpg.Effect.Skill.EnergyRay)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class EnergyRay extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function EnergyRay(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_EN_RAY);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 10){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 43
//EnergySoaringLight (FZGame.Rpg.Effect.Skill.EnergySoaringLight)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class EnergySoaringLight extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function EnergySoaringLight(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_EN_SOARING_LIGHT);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 30){
mTargetParty.damageParty(mCastParty, (0.3 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 31){
mTargetParty.damageParty(mCastParty, (0.4 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 32){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 33){
mTargetParty.damageParty(mCastParty, (0.5 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 44
//EnergySonicBlast (FZGame.Rpg.Effect.Skill.EnergySonicBlast)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class EnergySonicBlast extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function EnergySonicBlast(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_EN_SONIC_BLAST);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 12){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 45
//EnergyWindCutter (FZGame.Rpg.Effect.Skill.EnergyWindCutter)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class EnergyWindCutter extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function EnergyWindCutter(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_EN_WIND_CUTTER);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 18){
mTargetParty.damageParty(mCastParty, (0.8 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 26){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 46
//FireBurn (FZGame.Rpg.Effect.Skill.FireBurn)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class FireBurn extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function FireBurn(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_FI_BURN);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 13){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 47
//FireBurningSoul (FZGame.Rpg.Effect.Skill.FireBurningSoul)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class FireBurningSoul extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function FireBurningSoul(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_FI_BURNING_SOUL);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 32){
mTargetParty.damageParty(mCastParty, (0.8 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 36){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 48
//FireExplosion (FZGame.Rpg.Effect.Skill.FireExplosion)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class FireExplosion extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function FireExplosion(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_FI_EXPLOSION);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 10){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 14){
mTargetParty.damageParty(mCastParty, (0.9 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 49
//FireFlame (FZGame.Rpg.Effect.Skill.FireFlame)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class FireFlame extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function FireFlame(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_FI_FLAME);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 14){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 50
//FireInferno (FZGame.Rpg.Effect.Skill.FireInferno)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class FireInferno extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function FireInferno(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_FI_INFERNO);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 9){
mTargetParty.damageParty(mCastParty, (0.4 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 15){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 24){
mTargetParty.damageParty(mCastParty, (0.6 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 28){
mTargetParty.damageParty(mCastParty, (0.4 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 51
//MysticBloodyHowl (FZGame.Rpg.Effect.Skill.MysticBloodyHowl)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class MysticBloodyHowl extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function MysticBloodyHowl(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_MI_BLOODY_HOWL);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 23){
mTargetParty.damageParty(mCastParty, (0.3 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 24){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 42){
mTargetParty.damageParty(mCastParty, (0.6 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 43){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 59){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 60){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 52
//MysticChaosWave (FZGame.Rpg.Effect.Skill.MysticChaosWave)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class MysticChaosWave extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function MysticChaosWave(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_MI_CHAOS_WAVE);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 9){
mTargetParty.damageParty(mCastParty, (0.3 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 17){
mTargetParty.damageParty(mCastParty, (0.6 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 26){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 53
//MysticDarkForce (FZGame.Rpg.Effect.Skill.MysticDarkForce)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class MysticDarkForce extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function MysticDarkForce(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_MI_DARK_FORCE);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 15){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 54
//MysticPoisonMist (FZGame.Rpg.Effect.Skill.MysticPoisonMist)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class MysticPoisonMist extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function MysticPoisonMist(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_MI_POISON_MIST);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 14){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 16){
mTargetParty.damageParty(mCastParty, (0.8 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 55
//MysticShadowFury (FZGame.Rpg.Effect.Skill.MysticShadowFury)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class MysticShadowFury extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function MysticShadowFury(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_MI_SHADOW_FURY);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 28){
mTargetParty.damageParty(mCastParty, (0.8 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 29){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 56
//PhysFocus (FZGame.Rpg.Effect.Skill.PhysFocus)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class PhysFocus extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function PhysFocus(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mCastParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_PH_FOCUS);
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 1){
mCastParty.mSlot1._is_focus = true;
};
if (this.currentFrame >= this.totalFrames){
destroy();
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 57
//PhysMightyBlow (FZGame.Rpg.Effect.Skill.PhysMightyBlow)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class PhysMightyBlow extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function PhysMightyBlow(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_PH_MIGHTY_BLOW);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 16){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 18){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 21){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 58
//PhysPowerHit (FZGame.Rpg.Effect.Skill.PhysPowerHit)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class PhysPowerHit extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function PhysPowerHit(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_PH_POWER_HIT);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 12){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 16){
mTargetParty.damageParty(mCastParty, (0.5 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 59
//PhysRampage (FZGame.Rpg.Effect.Skill.PhysRampage)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class PhysRampage extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function PhysRampage(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_PH_RAMPAGE);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 3){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 15){
mTargetParty.damageParty(mCastParty, (0.15 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 27){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 39){
mTargetParty.damageParty(mCastParty, (0.25 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 51){
mTargetParty.damageParty(mCastParty, (0.3 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 68){
mTargetParty.damageParty(mCastParty, (0.4 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 74){
mTargetParty.damageParty(mCastParty, (0.6 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 85){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 60
//PhysSmash (FZGame.Rpg.Effect.Skill.PhysSmash)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class PhysSmash extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function PhysSmash(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_PH_SMASH);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 14){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 61
//PhysThurst (FZGame.Rpg.Effect.Skill.PhysThurst)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class PhysThurst extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function PhysThurst(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_PH_THURST);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 12){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_focus = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 62
//ThunderConcentrate (FZGame.Rpg.Effect.Skill.ThunderConcentrate)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class ThunderConcentrate extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function ThunderConcentrate(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mCastParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_TH_CONCENTRATE);
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 1){
mCastParty.mSlot1._is_concentrate = true;
};
if (this.currentFrame >= this.totalFrames){
destroy();
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 63
//ThunderLighting (FZGame.Rpg.Effect.Skill.ThunderLighting)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class ThunderLighting extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function ThunderLighting(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_TH_LIGHTING);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 8){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 12){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 15){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 64
//ThunderLightingBlade (FZGame.Rpg.Effect.Skill.ThunderLightingBlade)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class ThunderLightingBlade extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function ThunderLightingBlade(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_TH_THUNDER_BLADE);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 14){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 65
//ThunderMjollnir (FZGame.Rpg.Effect.Skill.ThunderMjollnir)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class ThunderMjollnir extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function ThunderMjollnir(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_TH_MJOLLNIR);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 3){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 10){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 16){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 21){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 25){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 32){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 39){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 63){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 65){
mTargetParty.damageParty(mCastParty, (0.5 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 69){
mTargetParty.damageParty(mCastParty, (0.3 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 66
//ThunderShock (FZGame.Rpg.Effect.Skill.ThunderShock)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class ThunderShock extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function ThunderShock(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_TH_SHOCK);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 10){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 12){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 15){
mTargetParty.damageParty(mCastParty, (0.3 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 67
//WaterBlizzard (FZGame.Rpg.Effect.Skill.WaterBlizzard)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class WaterBlizzard extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function WaterBlizzard(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_WA_BLIZZARD);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 14){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 19){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 24){
mTargetParty.damageParty(mCastParty, (0.3 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 29){
mTargetParty.damageParty(mCastParty, (0.4 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 34){
mTargetParty.damageParty(mCastParty, (0.5 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 59){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 68
//WaterBubble (FZGame.Rpg.Effect.Skill.WaterBubble)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class WaterBubble extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function WaterBubble(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_WA_BUBBLE);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 14){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 69
//WaterFrost (FZGame.Rpg.Effect.Skill.WaterFrost)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class WaterFrost extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function WaterFrost(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_WA_FROST);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 30){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 40){
mTargetParty.damageParty(mCastParty, (0.1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 70
//WaterHeal (FZGame.Rpg.Effect.Skill.WaterHeal)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class WaterHeal extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function WaterHeal(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mCastParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_WA_HEAL);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 18){
mCastParty.healSelf(0.3);
};
if (this.currentFrame >= this.totalFrames){
destroy();
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 71
//WaterIceStorm (FZGame.Rpg.Effect.Skill.WaterIceStorm)
package FZGame.Rpg.Effect.Skill {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class WaterIceStorm extends MovieClip {
private var mSystem;
private var mID;
private var dmgMult:Number;// = 1
private var mTargetParty;
private var dispCont;
private var mCastParty;
private var mSkillSet;
public function WaterIceStorm(){
mID = new DefClass();
super();
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
}
public function initialise(_arg1, _arg2, _arg3){
mSystem = _arg1;
dispCont = mSystem.contEFFECT;
mCastParty = _arg2;
mTargetParty = _arg3;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = mTargetParty.getPosX();
this.y = 400;
if (mTargetParty.getPosX() < mCastParty.getPosX()){
this.scaleX = -1;
};
mSkillSet = new ListCommandSkillSet();
mSkillSet.initialise(mID.S_WA_ICESTORM);
if (mSkillSet.isStrengthBased()){
if (mCastParty.mSlot1._is_focus){
dmgMult = 1.5;
trace("FOCUS activated ... !!");
};
} else {
if (mSkillSet.isMagicBased()){
if (mCastParty.mSlot1._is_concentrate){
dmgMult = 1.5;
trace("CONCENTRATE activated ... !!");
};
};
};
if (mTargetParty.mSlot1._is_barrier){
dmgMult = 0;
};
this.gotoAndPlay(1);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
}
private function frameHandle(_arg1:Event):void{
if (this.currentFrame == 11){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 16){
mTargetParty.damageParty(mCastParty, (0.4 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 20){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 24){
mTargetParty.damageParty(mCastParty, (1 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 28){
mTargetParty.damageParty(mCastParty, (0.2 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame == 34){
mTargetParty.damageParty(mCastParty, (0.4 * dmgMult), mSkillSet._ID);
};
if (this.currentFrame >= this.totalFrames){
destroy();
mCastParty.mSlot1._is_concentrate = false;
};
}
}
}//package FZGame.Rpg.Effect.Skill
Section 72
//EffectManager (FZGame.Rpg.Effect.EffectManager)
package FZGame.Rpg.Effect {
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
import FZGame.Rpg.Effect.Info.*;
import FZGame.Rpg.Effect.Skill.*;
public class EffectManager extends DefClass {
private var mSystem;// = null
private var fireFXClip;// = null
public function EffectManager(_arg1){
mSystem = _arg1;
}
public function displayDamageHeal(_arg1:int=0, _arg2:int=0, _arg3:int=0){
var _local4:* = new damage_heal();
_local4.initialise(mSystem, _arg1, _arg2, 2, _arg3);
}
public function displayDamageWeak(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:Boolean=false){
var _local5:* = new damage_weak();
if (_arg4){
_local5.initialise(mSystem, _arg1, _arg2, 1, _arg3);
} else {
_local5.initialise(mSystem, _arg1, _arg2, 0, _arg3);
};
}
public function skillEffect(_arg1:int=0, _arg2=null, _arg3=null){
var _local4:*;
if (_arg1 == S_PH_SMASH){
_local4 = new phys_smash_mc();
} else {
if (_arg1 == S_PH_THURST){
_local4 = new phys_thurst_mc();
} else {
if (_arg1 == S_PH_POWER_HIT){
_local4 = new phys_powerhit_mc();
} else {
if (_arg1 == S_PH_MIGHTY_BLOW){
_local4 = new phys_mightyblow_mc();
} else {
if (_arg1 == S_PH_RAMPAGE){
_local4 = new phys_rampage_mc();
} else {
if (_arg1 == S_PH_FOCUS){
_local4 = new phys_focus_mc();
} else {
if (_arg1 == S_EN_RAY){
_local4 = new energy_ray_mc();
} else {
if (_arg1 == S_EN_SONIC_BLAST){
_local4 = new energy_sonicblast_mc();
} else {
if (_arg1 == S_EN_ENERGY_BALL){
_local4 = new energy_energyball_mc();
} else {
if (_arg1 == S_EN_WIND_CUTTER){
_local4 = new energy_windcutter_mc();
} else {
if (_arg1 == S_EN_SOARING_LIGHT){
_local4 = new energy_soaringlight_mc();
} else {
if (_arg1 == S_EN_RADIANT_BLAST){
_local4 = new energy_radiantblast_mc();
} else {
if (_arg1 == S_FI_BURN){
_local4 = new fire_burn_mc();
} else {
if (_arg1 == S_FI_FLAME){
_local4 = new fire_flame_mc();
} else {
if (_arg1 == S_FI_EXPLOSION){
_local4 = new fire_explosion_mc();
} else {
if (_arg1 == S_FI_INFERNO){
_local4 = new fire_inferno_mc();
} else {
if (_arg1 == S_FI_BURNING_SOUL){
_local4 = new fire_burningsoul_mc();
} else {
if (_arg1 == S_WA_BUBBLE){
_local4 = new water_bubble_mc();
} else {
if (_arg1 == S_WA_HEAL){
_local4 = new water_heal_mc();
} else {
if (_arg1 == S_WA_FROST){
_local4 = new water_frost_mc();
} else {
if (_arg1 == S_WA_ICESTORM){
_local4 = new water_icestorm_mc();
} else {
if (_arg1 == S_WA_BLIZZARD){
_local4 = new water_blizzard_mc();
} else {
if (_arg1 == S_TH_SHOCK){
_local4 = new thunder_shock_mc();
} else {
if (_arg1 == S_TH_LIGHTING){
_local4 = new thunder_lighting_mc();
} else {
if (_arg1 == S_TH_THUNDER_BLADE){
_local4 = new thunder_lightingblade_mc();
} else {
if (_arg1 == S_TH_MJOLLNIR){
_local4 = new thunder_mjollnir_mc();
} else {
if (_arg1 == S_TH_CONCENTRATE){
_local4 = new thunder_concentrate_mc();
} else {
if (_arg1 == S_MI_DARK_FORCE){
_local4 = new mystic_darkforce_mc();
} else {
if (_arg1 == S_MI_POISON_MIST){
_local4 = new mystic_poisonmist_mc();
} else {
if (_arg1 == S_MI_CHAOS_WAVE){
_local4 = new mystic_chaoswave_mc();
} else {
if (_arg1 == S_MI_SHADOW_FURY){
_local4 = new mystic_shadowfury_mc();
} else {
if (_arg1 == S_MI_BLOODY_HOWL){
_local4 = new mystic_bloodyhowl_mc();
} else {
_local4 = new fire_burn_mc();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
_local4.initialise(mSystem, _arg2, _arg3);
}
public function displayDamageNull(_arg1:int=0, _arg2:int=0){
var _local3:* = new damage_null();
_local3.initialise(mSystem, _arg1, _arg2, 3, 0);
var _local4:* = new snd_resist();
_local4.playSound(mSystem.mDat.se_volume);
}
public function displayDamageNormal(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:Boolean=false){
var _local5:* = new damage_normal();
if (_arg4){
_local5.initialise(mSystem, _arg1, _arg2, 1, _arg3);
} else {
_local5.initialise(mSystem, _arg1, _arg2, 0, _arg3);
};
}
public function displayDamageStrong(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:Boolean=false){
var _local5:* = new damage_strong();
if (_arg4){
_local5.initialise(mSystem, _arg1, _arg2, 1, _arg3);
} else {
_local5.initialise(mSystem, _arg1, _arg2, 0, _arg3);
};
}
public function playTransition(){
var _local1:* = new transisi_mc();
_local1.initialise(mSystem);
}
public function stopFireFX(){
if (fireFXClip){
fireFXClip.stopFire();
mSystem.contBG.removeChild(fireFXClip);
fireFXClip = null;
};
}
public function displayDamageMiss(_arg1:int=0, _arg2:int=0){
var _local3:* = new damage_miss();
_local3.initialise(mSystem, _arg1, _arg2, 3, 0);
var _local4:* = new snd_miss();
_local4.playSound(mSystem.mDat.se_volume);
}
public function msgInfo(_arg1:String=""){
var _local2:* = new msg_info_mc();
_local2.initialise(mSystem, _arg1);
}
public function startFireFX(){
if (fireFXClip == null){
fireFXClip = new fire_fx_mc();
mSystem.contBG.addChild(fireFXClip);
fireFXClip.setTargetTo(mSystem.contUNIT);
};
}
public function usingItem(){
var _local1:* = new use_item_mc();
_local1.initialise(mSystem, 150, 400);
}
public function pierceEffect(_arg1:int=0){
var _local2:* = new pierce_fx_mc();
_local2.initialise(mSystem, _arg1);
}
public function hitSplash(_arg1, _arg2){
var _local3:* = new hit_mc();
_local3.initialise(mSystem, _arg1, _arg2);
}
public function endureEffect(_arg1:int=0){
var _local2:* = new endure_fx_mc();
_local2.initialise(mSystem, _arg1);
}
}
}//package FZGame.Rpg.Effect
Section 73
//FireFX (FZGame.Rpg.Effect.FireFX)
package FZGame.Rpg.Effect {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.geom.*;
public class FireFX extends Sprite {
private var perlinValid:Boolean;// = false
private var _flameHeight:Number;// = 0.3
private var perlinBmp:BitmapData;
private var bmpsValid:Boolean;// = false
private var frameSkip:int;// = 3
private var fireCMF:ColorMatrixFilter;
private var scratchBmp:BitmapData;
private var dispMapF:DisplacementMapFilter;
private var _target:DisplayObject;
private var mtx:Matrix;
private var drawColorTransform:ColorTransform;
private var pnt:Point;
private var _distortion:Number;// = 0.5
private var blurF:BlurFilter;
private var filtersValid:Boolean;// = false
private var _flameSpread:Number;// = 0.1
private var _fadeRate:Number;// = 0.8
private var displayBmp:BitmapData;
private var _distortionScale:Number;// = 0.4
private var _smoke:Number;// = 0.4
private var endCount:Number;
private var _blueFlame:Boolean;// = false
public function FireFX(){
var _local1:DisplayObject = getChildAt(0);
_local1.visible = false;
_local1.height = height;
_local1.width = width;
scaleX = (scaleY = 1);
mtx = new Matrix();
pnt = new Point();
startFire();
}
function updateFilters():void{
if (_blueFlame){
fireCMF = new ColorMatrixFilter([(0.8 - (0.55 * _fadeRate)), 0, 0, 0, 0, 0, (0.93 - (0.48 * _fadeRate)), 0, 0, 0, 0, 0.1, (0.96 - (0.35 * _fadeRate)), 0, 0, 0, 0.1, 0, 1, (-25 + (_smoke * 24))]);
drawColorTransform = new ColorTransform(0, 0, 0, 1, 210, 240, 0xFF, 0);
} else {
fireCMF = new ColorMatrixFilter([(0.8 - (0.55 * _fadeRate)), 0, 0, 0, 0, 0, (0.93 - (0.48 * _fadeRate)), 0, 0, 0, 0, 0.1, (0.96 - (0.35 * _fadeRate)), 0, 0, 0, 0.1, 0, 1, (-25 + (_smoke * 24))]);
drawColorTransform = new ColorTransform(0, 0, 0, 1, 30, 30, 30, 0);
};
dispMapF = new DisplacementMapFilter(perlinBmp, pnt, 1, 2, (14 * _distortion), -30, "clamp");
blurF = new BlurFilter((32 * _flameSpread), (32 * _flameSpread), 1);
filtersValid = true;
}
public function set flameHeight(_arg1:Number):void{
perlinValid = ((perlinValid) && ((_arg1 == _flameHeight)));
_flameHeight = _arg1;
}
public function get flameSpread():Number{
return (_flameSpread);
}
public function set targetName(_arg1:String):void{
var value = _arg1;
var targ:DisplayObject = parent.getChildByName(value);
if (targ == null){
try {
targ = (parent[value] as DisplayObject);
} catch(e) {
};
};
target = targ;
}
override public function set width(_arg1:Number):void{
bmpsValid = ((bmpsValid) && ((_arg1 == width)));
super.width = (_arg1 | 0);
}
public function set flameSpread(_arg1:Number):void{
filtersValid = ((filtersValid) && ((_arg1 == _flameSpread)));
_flameSpread = _arg1;
}
public function get target():DisplayObject{
return (_target);
}
private function doFire(_arg1:Event):void{
var _local2:Matrix;
frameSkip = Math.max((frameSkip - 1), 0);
if (frameSkip <= 0){
frameSkip = 6;
} else {
return;
};
if (_target == null){
return;
};
if (!bmpsValid){
updateBitmaps();
};
if (!perlinValid){
updatePerlin();
};
if (!filtersValid){
updateFilters();
};
if (endCount == 0){
_local2 = _target.transform.matrix;
_local2.tx = (_target.x - x);
_local2.ty = (_target.y - y);
scratchBmp.fillRect(scratchBmp.rect, 0);
drawColorTransform.alphaOffset = ((-(Math.random()) * 200) | 0);
scratchBmp.draw(_target, _local2, drawColorTransform, "add");
scratchBmp.applyFilter(scratchBmp, scratchBmp.rect, pnt, blurF);
displayBmp.draw(scratchBmp, mtx, null, "add");
};
dispMapF.mapPoint = new Point(((-(Math.random()) * (perlinBmp.width - displayBmp.width)) | 0), ((-(Math.random()) * (perlinBmp.height - displayBmp.height)) | 0));
displayBmp.applyFilter(displayBmp, displayBmp.rect, pnt, dispMapF);
displayBmp.applyFilter(displayBmp, displayBmp.rect, pnt, fireCMF);
if (((!((endCount == 0))) && ((--endCount == 0)))){
removeEventListener(Event.ENTER_FRAME, doFire);
};
}
private function updateBitmaps():void{
if (displayBmp){
displayBmp.dispose();
displayBmp = null;
scratchBmp.dispose();
scratchBmp = null;
perlinBmp.dispose();
perlinBmp = null;
};
displayBmp = new BitmapData(width, height, true, 0);
scratchBmp = displayBmp.clone();
perlinBmp = new BitmapData((width * 3), (height * 3), false, 0);
while (numChildren) {
removeChildAt(0);
};
addChild(new Bitmap(displayBmp));
updatePerlin();
updateFilters();
bmpsValid = true;
}
public function get distortion():Number{
return (_distortion);
}
override public function get height():Number{
return (super.height);
}
public function set target(_arg1:DisplayObject):void{
_target = _arg1;
clear();
}
public function get distortionScale():Number{
return (_distortionScale);
}
private function startFire():void{
endCount = 0;
addEventListener(Event.ENTER_FRAME, doFire);
}
public function set distortion(_arg1:Number):void{
filtersValid = ((filtersValid) && ((_arg1 == _fadeRate)));
_distortion = _arg1;
}
public function get flameHeight():Number{
return (_flameHeight);
}
override public function get width():Number{
return (super.width);
}
override public function set height(_arg1:Number):void{
bmpsValid = ((bmpsValid) && ((_arg1 == height)));
super.height = (_arg1 | 0);
}
public function clear():void{
if (displayBmp){
displayBmp.fillRect(displayBmp.rect, 0);
};
}
public function set smoke(_arg1:Number):void{
filtersValid = ((filtersValid) && ((_arg1 == _smoke)));
_smoke = _arg1;
}
public function stopFire():void{
if (endCount == 0){
endCount = 20;
};
}
public function set distortionScale(_arg1:Number):void{
perlinValid = ((perlinValid) && ((_arg1 == _distortionScale)));
_distortionScale = _arg1;
}
public function get smoke():Number{
return (_smoke);
}
public function set blueFlame(_arg1:Boolean):void{
filtersValid = ((filtersValid) && ((_arg1 == _blueFlame)));
_blueFlame = _arg1;
}
public function setTargetTo(_arg1):void{
_target = _arg1;
clear();
}
public function set fadeRate(_arg1:Number):void{
filtersValid = ((filtersValid) && ((_arg1 == _fadeRate)));
_fadeRate = _arg1;
}
public function get blueFlame():Boolean{
return (_blueFlame);
}
public function get fadeRate():Number{
return (_fadeRate);
}
private function updatePerlin():void{
perlinBmp.perlinNoise((30 * _distortionScale), (20 * _distortionScale), 1, ((-(Math.random()) * 1000) | 0), false, true, (1 | 2), false);
perlinBmp.colorTransform(perlinBmp.rect, new ColorTransform(1, (1 - (_flameHeight * 0.5)), 1, 1, 0, 0, 0, 0));
perlinValid = true;
}
}
}//package FZGame.Rpg.Effect
Section 74
//TransitionBattle (FZGame.Rpg.Effect.TransitionBattle)
package FZGame.Rpg.Effect {
import flash.events.*;
import flash.display.*;
public class TransitionBattle extends MovieClip {
private var dispCont;
private var mSystem;
private function frameHandle(_arg1:Event):void{
if (this.currentFrame >= this.totalFrames){
destroy();
};
}
public function initialise(_arg1){
mSystem = _arg1;
dispCont = mSystem.contTRANS;
dispCont.addChild(this);
var _local2:Number = Math.random();
if (_local2 <= 0.3){
this.gotoAndPlay("transisi_1");
} else {
if (_local2 > 0.7){
this.gotoAndPlay("transisi_2");
} else {
this.gotoAndPlay("transisi_3");
};
};
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
trace("init transition ... ");
}
public function destroy(){
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("remove transition ... ");
}
}
}//package FZGame.Rpg.Effect
Section 75
//ClipArtlogic (FZGame.Rpg.Interface.ClipArtlogic)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class ClipArtlogic extends MovieClip {
private var dispCont;
private var mSystem;
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.addEventListener(MouseEvent.CLICK, mouseClick, false, 0, true);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
trace("init artlogic ... ok !");
}
private function mouseClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.artlogicgames.com/?gameref=epicquest");
navigateToURL(_local2, "_blank");
}
private function frameHandle(_arg1:Event):void{
var _local2:*;
if (this.currentFrame >= this.totalFrames){
_local2 = new menu_cover_mc();
_local2.init(mSystem);
destroy();
};
}
public function destroy(){
this.removeEventListener(MouseEvent.CLICK, mouseClick);
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
trace("destroy artlogic ... ok !");
}
}
}//package FZGame.Rpg.Interface
Section 76
//ClipBattleTutorial (FZGame.Rpg.Interface.ClipBattleTutorial)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
public class ClipBattleTutorial extends MovieClip {
private var mSystem;
private var dispCont;
public var btn_close:SimpleButton;
public var btn_next:SimpleButton;
private function frameHandle(_arg1:Event):void{
if (this.currentFrame >= this.totalFrames){
destroy();
return;
};
if (this.btn_next){
this.btn_next.addEventListener(MouseEvent.CLICK, nextClick, false, 0, true);
};
if (this.btn_close){
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
};
}
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU2;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.gotoAndPlay("step_1");
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
trace("init battle tut ... ok !");
}
private function closeClick(_arg1:MouseEvent):void{
this.gotoAndPlay("step_finish");
}
public function destroy(){
if (this.btn_next){
this.btn_next.removeEventListener(MouseEvent.CLICK, nextClick);
};
if (this.btn_close){
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
};
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy battle tut ... ok !");
}
private function nextClick(_arg1:MouseEvent):void{
this.play();
}
}
}//package FZGame.Rpg.Interface
Section 77
//ClipBubbleBox (FZGame.Rpg.Interface.ClipBubbleBox)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class ClipBubbleBox extends MovieClip {
public var link:MovieClip;
private var dispCont;
public var play_latest_text:MovieClip;
private var mSystem;
public function destroy(){
this.removeEventListener(MouseEvent.CLICK, mouseClick);
this.removeEventListener(Event.ENTER_FRAME, frameHandle);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy bubble ... ok !");
}
private function mouseClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1583&subid=splash");
navigateToURL(_local2, "_blank");
}
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 350;
this.y = 250;
this.addEventListener(MouseEvent.CLICK, mouseClick, false, 0, true);
this.addEventListener(Event.ENTER_FRAME, frameHandle, false, 0, true);
trace("init bubble ... ok !");
}
private function frameHandle(_arg1:Event):void{
var _local2:*;
if (this.currentFrame >= this.totalFrames){
_local2 = new clip_artlogic_mc();
_local2.init(mSystem);
destroy();
};
}
}
}//package FZGame.Rpg.Interface
Section 78
//ClipEnding (FZGame.Rpg.Interface.ClipEnding)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
public class ClipEnding extends MovieClip {
private var dispCont;
private var mSystem;
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU2;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.gotoAndStop(1);
this.addEventListener(MouseEvent.CLICK, clipClick, false, 0, true);
trace("init ending ... ok !");
}
private function clipClick(_arg1:MouseEvent):void{
this.gotoAndStop((this.currentFrame + 1));
if (this.currentFrame >= this.totalFrames){
destroy();
};
}
public function destroy(){
this.removeEventListener(MouseEvent.CLICK, clipClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy ending ... ok !");
}
}
}//package FZGame.Rpg.Interface
Section 79
//ClipPrologue (FZGame.Rpg.Interface.ClipPrologue)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
public class ClipPrologue extends MovieClip {
private var dispCont;
private var mSystem;
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU2;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.gotoAndStop(1);
this.addEventListener(MouseEvent.CLICK, clipClick, false, 0, true);
trace("init prologue ... ok !");
}
private function clipClick(_arg1:MouseEvent):void{
var _local2:*;
this.gotoAndStop((this.currentFrame + 1));
if (this.currentFrame >= this.totalFrames){
_local2 = new menu_world_mc();
_local2.init(mSystem);
destroy();
};
}
public function destroy(){
this.removeEventListener(MouseEvent.CLICK, clipClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy prologue ... ok !");
}
}
}//package FZGame.Rpg.Interface
Section 80
//MenuAchievement (FZGame.Rpg.Interface.MenuAchievement)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class MenuAchievement extends MovieClip {
public var achv_10:MovieClip;
public var btn_close:SimpleButton;
public var achv_01:MovieClip;
public var achv_02:MovieClip;
public var achv_03:MovieClip;
public var achv_04:MovieClip;
public var achv_05:MovieClip;
public var achv_06:MovieClip;
public var achv_07:MovieClip;
public var achv_08:MovieClip;
private var dispCont;
private var mSystem;
public var achv_09:MovieClip;
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
if (this.btn_close){
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
};
trace("init achievement ... ok !");
this.achv_01.gotoAndStop(1);
this.achv_02.gotoAndStop(1);
this.achv_03.gotoAndStop(1);
this.achv_04.gotoAndStop(1);
this.achv_05.gotoAndStop(1);
this.achv_06.gotoAndStop(1);
this.achv_07.gotoAndStop(1);
this.achv_08.gotoAndStop(1);
this.achv_09.gotoAndStop(1);
this.achv_10.gotoAndStop(1);
if (mSystem.mDat.stat_win >= 50){
this.achv_01.gotoAndStop(2);
};
if (mSystem.mDat.stat_win >= 200){
this.achv_02.gotoAndStop(2);
};
if (mSystem.mDat.stat_maxcombo >= 10){
this.achv_03.gotoAndStop(2);
};
if (mSystem.mDat.stat_maxcombo >= 30){
this.achv_04.gotoAndStop(2);
};
if (mSystem.mDat.stat_maxcombo >= 99){
this.achv_05.gotoAndStop(2);
};
if (mSystem.mDat.stat_map1_completed >= 1){
this.achv_06.gotoAndStop(2);
};
if (mSystem.mDat.stat_map2_completed >= 1){
this.achv_07.gotoAndStop(2);
};
if (mSystem.mDat.stat_map3_completed >= 1){
this.achv_08.gotoAndStop(2);
};
if (mSystem.mDat.stat_map4_completed >= 1){
this.achv_09.gotoAndStop(2);
};
if (mSystem.mDat.stat_highestmoney >= 200000){
this.achv_10.gotoAndStop(2);
};
}
private function closeClick(_arg1:MouseEvent):void{
destroy();
}
public function destroy(){
if (this.btn_close){
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
};
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy achievement ... ok !");
}
}
}//package FZGame.Rpg.Interface
Section 81
//MenuCover (FZGame.Rpg.Interface.MenuCover)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class MenuCover extends MovieClip {
public var btn_developer_logo:SimpleButton;
public var btn_playmore:SimpleButton;
public var btn_continue:SimpleButton;
public var btn_play:SimpleButton;
public var btn_walkthrough:SimpleButton;
public var btn_sponsor_logo:SimpleButton;
private var dispCont;
private var mSystem;
public function destroy(){
if (this.btn_play){
this.btn_play.removeEventListener(MouseEvent.CLICK, playClick);
};
if (this.btn_continue){
this.btn_continue.removeEventListener(MouseEvent.CLICK, continueClick);
};
if (this.btn_playmore){
this.btn_playmore.removeEventListener(MouseEvent.CLICK, playMoreClick);
};
if (this.btn_developer_logo){
this.btn_developer_logo.removeEventListener(MouseEvent.CLICK, developerClick);
};
if (this.btn_sponsor_logo){
this.btn_sponsor_logo.removeEventListener(MouseEvent.CLICK, sponsorClick);
};
if (this.btn_walkthrough){
this.btn_walkthrough.removeEventListener(MouseEvent.CLICK, walkthroughClick);
};
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy cover ... ok !");
}
private function walkthroughClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1583&subid=walkthrough&action=walkthrough_epicquest");
navigateToURL(_local2, "_blank");
}
private function sponsorClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest(mSystem.mSecurity.sponsorLink);
navigateToURL(_local2, "_blank");
}
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
if (this.btn_play){
this.btn_play.addEventListener(MouseEvent.CLICK, playClick, false, 0, true);
};
if (this.btn_continue){
this.btn_continue.addEventListener(MouseEvent.CLICK, continueClick, false, 0, true);
};
if (this.btn_playmore){
this.btn_playmore.addEventListener(MouseEvent.CLICK, playMoreClick, false, 0, true);
};
if (this.btn_developer_logo){
this.btn_developer_logo.addEventListener(MouseEvent.CLICK, developerClick, false, 0, true);
};
if (this.btn_sponsor_logo){
this.btn_sponsor_logo.addEventListener(MouseEvent.CLICK, sponsorClick, false, 0, true);
};
if (this.btn_walkthrough){
this.btn_walkthrough.addEventListener(MouseEvent.CLICK, walkthroughClick, false, 0, true);
};
trace("init cover ... ok !");
mSystem.mSound.playBgmCover();
}
private function developerClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest(mSystem.mSecurity.developerLink);
navigateToURL(_local2, "_blank");
}
private function playMoreClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest(mSystem.mSecurity.sponsorLink);
navigateToURL(_local2, "_blank");
}
private function continueClick(_arg1:MouseEvent):void{
mSystem.mDat.resetGameData();
if (mSystem.mDat.loadData() == false){
mSystem.mEffect.msgInfo("save data does not exist");
return;
};
var _local2:* = new menu_world_mc();
_local2.init(mSystem);
destroy();
}
private function playClick(_arg1:MouseEvent):void{
var _local2:* = new menu_select_mc();
_local2.init(mSystem);
destroy();
}
}
}//package FZGame.Rpg.Interface
Section 82
//MenuCredit (FZGame.Rpg.Interface.MenuCredit)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
public class MenuCredit extends MovieClip {
private var dispCont;
public var btn_close:SimpleButton;
private var mSystem;
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
if (this.btn_close){
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
};
trace("init credit ... ok !");
}
public function destroy(){
if (this.btn_close){
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
};
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy credit ... ok !");
}
private function closeClick(_arg1:MouseEvent):void{
destroy();
}
}
}//package FZGame.Rpg.Interface
Section 83
//MenuEquipment (FZGame.Rpg.Interface.MenuEquipment)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class MenuEquipment extends MovieClip {
public var item_1:MovieClip;
public var item_2:MovieClip;
public var item_3:MovieClip;
public var item_4:MovieClip;
public var item_5:MovieClip;
public var item_7:MovieClip;
public var item_9:MovieClip;
public var item_6:MovieClip;
public var item_8:MovieClip;
public var item_stock_1:TextField;
public var item_stock_2:TextField;
public var item_stock_3:TextField;
public var item_stock_4:TextField;
public var item_stock_5:TextField;
public var item_stock_6:TextField;
public var item_stock_7:TextField;
public var item_stock_8:TextField;
public var item_stock_9:TextField;
public var fire:TextField;
public var resistance:TextField;
public var btn_prev:SimpleButton;
public var strength:TextField;
public var defense:TextField;
public var btn_close:SimpleButton;
public var health:TextField;
public var unit_name:TextField;
public var energy:TextField;
private var clipDrag;
public var unit_ap:TextField;
public var item_10:MovieClip;
public var item_12:MovieClip;
public var unit_next:TextField;
public var item_14:MovieClip;
public var item_15:MovieClip;
public var item_16:MovieClip;
public var item_17:MovieClip;
public var item_18:MovieClip;
public var item_19:MovieClip;
public var item_13:MovieClip;
public var item_11:MovieClip;
public var thunder:TextField;
public var mystic:TextField;
public var item_20:MovieClip;
public var item_21:MovieClip;
public var item_22:MovieClip;
public var item_23:MovieClip;
public var item_24:MovieClip;
public var item_25:MovieClip;
public var item_26:MovieClip;
public var item_27:MovieClip;
public var item_28:MovieClip;
public var item_29:MovieClip;
public var btn_next:SimpleButton;
private var mSystem;
public var unit_level:TextField;
public var phys:TextField;
public var water:TextField;
public var item_30:MovieClip;
private var unitPosID:int;// = 1
public var speciality:TextField;
private var clipDragSlotID:int;// = 0
public var unit:MovieClip;
public var item_stock_11:TextField;
public var item_stock_13:TextField;
public var item_stock_14:TextField;
public var item_stock_15:TextField;
public var item_stock_16:TextField;
public var item_stock_17:TextField;
public var item_stock_18:TextField;
public var item_stock_19:TextField;
public var item_stock_12:TextField;
private var unitSlot;
public var item_stock_10:TextField;
public var magic:TextField;
public var item_stock_20:TextField;
public var item_stock_22:TextField;
public var item_stock_23:TextField;
public var item_stock_24:TextField;
public var item_stock_25:TextField;
public var item_stock_26:TextField;
public var item_stock_27:TextField;
public var item_stock_28:TextField;
public var item_stock_29:TextField;
public var skill_1:MovieClip;
public var skill_3:MovieClip;
public var skill_2:MovieClip;
public var item_stock_21:TextField;
public var skill_4:MovieClip;
public var item_stock_30:TextField;
public var equip_2:MovieClip;
public var equip_1:MovieClip;
private var dispCont;
private function item21Click(_arg1:MouseEvent):void{
startDragClip(21);
}
private function equip1Click(_arg1:MouseEvent):void{
equipDragClip(1);
}
private function item13Click(_arg1:MouseEvent):void{
startDragClip(13);
}
private function item10Click(_arg1:MouseEvent):void{
startDragClip(10);
}
private function nextClick(_arg1:MouseEvent):void{
var _local2 = 1;
_local2 = 1;
while (_local2 <= 15) {
unitPosID = (unitPosID + 1);
if (unitPosID > 15){
unitPosID = 1;
};
unitSlot = getUnitSlot(unitPosID);
if (unitSlot._ID > 0){
break;
};
_local2++;
};
updateInfo();
}
private function item7Click(_arg1:MouseEvent):void{
startDragClip(7);
}
private function item28Click(_arg1:MouseEvent):void{
startDragClip(28);
}
private function closeClick(_arg1:MouseEvent):void{
remove();
}
private function dragHandle(_arg1:Event):void{
clipDrag.x = mSystem.stageRoot.mouseX;
clipDrag.y = mSystem.stageRoot.mouseY;
}
public function remove(){
removeDragClip();
this.equip_1.removeEventListener(MouseEvent.CLICK, equip1Click);
this.equip_2.removeEventListener(MouseEvent.CLICK, equip2Click);
this.item_1.removeEventListener(MouseEvent.CLICK, item1Click);
this.item_2.removeEventListener(MouseEvent.CLICK, item2Click);
this.item_3.removeEventListener(MouseEvent.CLICK, item3Click);
this.item_4.removeEventListener(MouseEvent.CLICK, item4Click);
this.item_5.removeEventListener(MouseEvent.CLICK, item5Click);
this.item_6.removeEventListener(MouseEvent.CLICK, item6Click);
this.item_7.removeEventListener(MouseEvent.CLICK, item7Click);
this.item_8.removeEventListener(MouseEvent.CLICK, item8Click);
this.item_9.removeEventListener(MouseEvent.CLICK, item9Click);
this.item_10.removeEventListener(MouseEvent.CLICK, item10Click);
this.item_11.removeEventListener(MouseEvent.CLICK, item11Click);
this.item_12.removeEventListener(MouseEvent.CLICK, item12Click);
this.item_13.removeEventListener(MouseEvent.CLICK, item13Click);
this.item_14.removeEventListener(MouseEvent.CLICK, item14Click);
this.item_15.removeEventListener(MouseEvent.CLICK, item15Click);
this.item_16.removeEventListener(MouseEvent.CLICK, item16Click);
this.item_17.removeEventListener(MouseEvent.CLICK, item17Click);
this.item_18.removeEventListener(MouseEvent.CLICK, item18Click);
this.item_19.removeEventListener(MouseEvent.CLICK, item19Click);
this.item_20.removeEventListener(MouseEvent.CLICK, item20Click);
this.item_21.removeEventListener(MouseEvent.CLICK, item21Click);
this.item_22.removeEventListener(MouseEvent.CLICK, item22Click);
this.item_23.removeEventListener(MouseEvent.CLICK, item23Click);
this.item_24.removeEventListener(MouseEvent.CLICK, item24Click);
this.item_25.removeEventListener(MouseEvent.CLICK, item25Click);
this.item_26.removeEventListener(MouseEvent.CLICK, item26Click);
this.item_27.removeEventListener(MouseEvent.CLICK, item27Click);
this.item_28.removeEventListener(MouseEvent.CLICK, item28Click);
this.item_29.removeEventListener(MouseEvent.CLICK, item29Click);
this.item_30.removeEventListener(MouseEvent.CLICK, item30Click);
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
this.btn_next.removeEventListener(MouseEvent.CLICK, nextClick);
this.btn_prev.removeEventListener(MouseEvent.CLICK, prevClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy equipment ... ok !");
}
private function item4Click(_arg1:MouseEvent):void{
startDragClip(4);
}
private function item17Click(_arg1:MouseEvent):void{
startDragClip(17);
}
private function item25Click(_arg1:MouseEvent):void{
startDragClip(25);
}
private function equip2Click(_arg1:MouseEvent):void{
equipDragClip(2);
}
private function item14Click(_arg1:MouseEvent):void{
startDragClip(14);
}
private function item22Click(_arg1:MouseEvent):void{
startDragClip(22);
}
private function item1Click(_arg1:MouseEvent):void{
startDragClip(1);
}
private function item30Click(_arg1:MouseEvent):void{
startDragClip(30);
}
private function item11Click(_arg1:MouseEvent):void{
startDragClip(11);
}
private function equipDragClip(_arg1:int=1){
if (_arg1 == 1){
if (unitSlot._EQUIPMENT_1 > 0){
mSystem.mDat.equip_stock[(unitSlot._EQUIPMENT_1 - 1)] = Math.min((mSystem.mDat.equip_stock[(unitSlot._EQUIPMENT_1 - 1)] + 1), 20);
unitSlot._EQUIPMENT_1 = 0;
};
if (((clipDrag) && ((clipDragSlotID > 0)))){
unitSlot._EQUIPMENT_1 = clipDragSlotID;
clipDragSlotID = 0;
};
} else {
if (_arg1 == 2){
if (unitSlot._EQUIPMENT_2 > 0){
mSystem.mDat.equip_stock[(unitSlot._EQUIPMENT_2 - 1)] = Math.min((mSystem.mDat.equip_stock[(unitSlot._EQUIPMENT_2 - 1)] + 1), 20);
unitSlot._EQUIPMENT_2 = 0;
};
if (((clipDrag) && ((clipDragSlotID > 0)))){
unitSlot._EQUIPMENT_2 = clipDragSlotID;
clipDragSlotID = 0;
};
};
};
removeDragClip();
updateInfo();
}
private function item8Click(_arg1:MouseEvent):void{
startDragClip(8);
}
private function item29Click(_arg1:MouseEvent):void{
startDragClip(29);
}
private function prevClick(_arg1:MouseEvent):void{
var _local2 = 1;
_local2 = 1;
while (_local2 <= 15) {
unitPosID = (unitPosID - 1);
if (unitPosID < 1){
unitPosID = 15;
};
unitSlot = getUnitSlot(unitPosID);
if (unitSlot._ID > 0){
break;
};
_local2++;
};
updateInfo();
}
private function getUnitSlot(_arg1):Object{
if (_arg1 == 1){
return (mSystem.mPlayerParty.mSlot1);
};
if (_arg1 == 2){
return (mSystem.mPlayerParty.mSlot2);
};
if (_arg1 == 3){
return (mSystem.mPlayerParty.mSlot3);
};
if (_arg1 == 4){
return (mSystem.mPlayerParty.mSlot4);
};
if (_arg1 == 5){
return (mSystem.mPlayerParty.mSlot5);
};
if (_arg1 == 6){
return (mSystem.mPlayerParty.mSlot6);
};
if (_arg1 == 7){
return (mSystem.mPlayerParty.mSlot7);
};
if (_arg1 == 8){
return (mSystem.mPlayerParty.mSlot8);
};
if (_arg1 == 9){
return (mSystem.mPlayerParty.mSlot9);
};
if (_arg1 == 10){
return (mSystem.mPlayerParty.mSlot10);
};
if (_arg1 == 11){
return (mSystem.mPlayerParty.mSlot11);
};
if (_arg1 == 12){
return (mSystem.mPlayerParty.mSlot12);
};
if (_arg1 == 13){
return (mSystem.mPlayerParty.mSlot13);
};
if (_arg1 == 14){
return (mSystem.mPlayerParty.mSlot14);
};
if (_arg1 == 15){
return (mSystem.mPlayerParty.mSlot15);
};
return (mSystem.mPlayerParty.mSlot1);
}
private function updateInfo(){
unitSlot.initialise();
this.item_1.gotoAndStop(1);
this.item_2.gotoAndStop(1);
this.item_3.gotoAndStop(1);
this.item_4.gotoAndStop(1);
this.item_5.gotoAndStop(1);
this.item_6.gotoAndStop(1);
this.item_7.gotoAndStop(1);
this.item_8.gotoAndStop(1);
this.item_9.gotoAndStop(1);
this.item_10.gotoAndStop(1);
this.item_11.gotoAndStop(1);
this.item_12.gotoAndStop(1);
this.item_13.gotoAndStop(1);
this.item_14.gotoAndStop(1);
this.item_15.gotoAndStop(1);
this.item_16.gotoAndStop(1);
this.item_17.gotoAndStop(1);
this.item_18.gotoAndStop(1);
this.item_19.gotoAndStop(1);
this.item_20.gotoAndStop(1);
this.item_21.gotoAndStop(1);
this.item_22.gotoAndStop(1);
this.item_23.gotoAndStop(1);
this.item_24.gotoAndStop(1);
this.item_25.gotoAndStop(1);
this.item_26.gotoAndStop(1);
this.item_27.gotoAndStop(1);
this.item_28.gotoAndStop(1);
this.item_29.gotoAndStop(1);
this.item_30.gotoAndStop(1);
this.item_stock_1.visible = false;
this.item_stock_2.visible = false;
this.item_stock_3.visible = false;
this.item_stock_4.visible = false;
this.item_stock_5.visible = false;
this.item_stock_6.visible = false;
this.item_stock_7.visible = false;
this.item_stock_8.visible = false;
this.item_stock_9.visible = false;
this.item_stock_10.visible = false;
this.item_stock_11.visible = false;
this.item_stock_12.visible = false;
this.item_stock_13.visible = false;
this.item_stock_14.visible = false;
this.item_stock_15.visible = false;
this.item_stock_16.visible = false;
this.item_stock_17.visible = false;
this.item_stock_18.visible = false;
this.item_stock_19.visible = false;
this.item_stock_20.visible = false;
this.item_stock_21.visible = false;
this.item_stock_22.visible = false;
this.item_stock_23.visible = false;
this.item_stock_24.visible = false;
this.item_stock_25.visible = false;
this.item_stock_26.visible = false;
this.item_stock_27.visible = false;
this.item_stock_28.visible = false;
this.item_stock_29.visible = false;
this.item_stock_30.visible = false;
this.unit_name.htmlText = String("");
this.unit_ap.htmlText = String("");
this.unit_level.htmlText = String("");
this.unit_next.htmlText = String("");
this.health.htmlText = String("");
this.strength.htmlText = String("");
this.defense.htmlText = String("");
this.magic.htmlText = String("");
this.resistance.htmlText = String("");
this.phys.htmlText = String("");
this.energy.htmlText = String("");
this.fire.htmlText = String("");
this.water.htmlText = String("");
this.thunder.htmlText = String("");
this.mystic.htmlText = String("");
this.equip_1.gotoAndStop(1);
this.equip_2.gotoAndStop(1);
this.skill_1.gotoAndStop(1);
this.skill_2.gotoAndStop(1);
this.skill_3.gotoAndStop(1);
this.skill_4.gotoAndStop(1);
if (mSystem.mDat.equip_stock[0] > 0){
this.item_1.gotoAndStop(9);
this.item_stock_1.visible = true;
this.item_stock_1.htmlText = String(mSystem.mDat.equip_stock[0]);
};
if (mSystem.mDat.equip_stock[1] > 0){
this.item_2.gotoAndStop(10);
this.item_stock_2.visible = true;
this.item_stock_2.htmlText = String(mSystem.mDat.equip_stock[1]);
};
if (mSystem.mDat.equip_stock[2] > 0){
this.item_3.gotoAndStop(11);
this.item_stock_3.visible = true;
this.item_stock_3.htmlText = String(mSystem.mDat.equip_stock[2]);
};
if (mSystem.mDat.equip_stock[3] > 0){
this.item_4.gotoAndStop(12);
this.item_stock_4.visible = true;
this.item_stock_4.htmlText = String(mSystem.mDat.equip_stock[3]);
};
if (mSystem.mDat.equip_stock[4] > 0){
this.item_5.gotoAndStop(13);
this.item_stock_5.visible = true;
this.item_stock_5.htmlText = String(mSystem.mDat.equip_stock[4]);
};
if (mSystem.mDat.equip_stock[5] > 0){
this.item_6.gotoAndStop(14);
this.item_stock_6.visible = true;
this.item_stock_6.htmlText = String(mSystem.mDat.equip_stock[5]);
};
if (mSystem.mDat.equip_stock[6] > 0){
this.item_7.gotoAndStop(15);
this.item_stock_7.visible = true;
this.item_stock_7.htmlText = String(mSystem.mDat.equip_stock[6]);
};
if (mSystem.mDat.equip_stock[7] > 0){
this.item_8.gotoAndStop(16);
this.item_stock_8.visible = true;
this.item_stock_8.htmlText = String(mSystem.mDat.equip_stock[7]);
};
if (mSystem.mDat.equip_stock[8] > 0){
this.item_9.gotoAndStop(17);
this.item_stock_9.visible = true;
this.item_stock_9.htmlText = String(mSystem.mDat.equip_stock[8]);
};
if (mSystem.mDat.equip_stock[9] > 0){
this.item_10.gotoAndStop(18);
this.item_stock_10.visible = true;
this.item_stock_10.htmlText = String(mSystem.mDat.equip_stock[9]);
};
if (mSystem.mDat.equip_stock[10] > 0){
this.item_11.gotoAndStop(19);
this.item_stock_11.visible = true;
this.item_stock_11.htmlText = String(mSystem.mDat.equip_stock[10]);
};
if (mSystem.mDat.equip_stock[11] > 0){
this.item_12.gotoAndStop(20);
this.item_stock_12.visible = true;
this.item_stock_12.htmlText = String(mSystem.mDat.equip_stock[11]);
};
if (mSystem.mDat.equip_stock[12] > 0){
this.item_13.gotoAndStop(21);
this.item_stock_13.visible = true;
this.item_stock_13.htmlText = String(mSystem.mDat.equip_stock[12]);
};
if (mSystem.mDat.equip_stock[13] > 0){
this.item_14.gotoAndStop(22);
this.item_stock_14.visible = true;
this.item_stock_14.htmlText = String(mSystem.mDat.equip_stock[13]);
};
if (mSystem.mDat.equip_stock[14] > 0){
this.item_15.gotoAndStop(23);
this.item_stock_15.visible = true;
this.item_stock_15.htmlText = String(mSystem.mDat.equip_stock[14]);
};
if (mSystem.mDat.equip_stock[15] > 0){
this.item_16.gotoAndStop(24);
this.item_stock_16.visible = true;
this.item_stock_16.htmlText = String(mSystem.mDat.equip_stock[15]);
};
if (mSystem.mDat.equip_stock[16] > 0){
this.item_17.gotoAndStop(25);
this.item_stock_17.visible = true;
this.item_stock_17.htmlText = String(mSystem.mDat.equip_stock[16]);
};
if (mSystem.mDat.equip_stock[17] > 0){
this.item_18.gotoAndStop(26);
this.item_stock_18.visible = true;
this.item_stock_18.htmlText = String(mSystem.mDat.equip_stock[17]);
};
if (mSystem.mDat.equip_stock[18] > 0){
this.item_19.gotoAndStop(27);
this.item_stock_19.visible = true;
this.item_stock_19.htmlText = String(mSystem.mDat.equip_stock[18]);
};
if (mSystem.mDat.equip_stock[19] > 0){
this.item_20.gotoAndStop(28);
this.item_stock_20.visible = true;
this.item_stock_20.htmlText = String(mSystem.mDat.equip_stock[19]);
};
if (mSystem.mDat.equip_stock[20] > 0){
this.item_21.gotoAndStop(29);
this.item_stock_21.visible = true;
this.item_stock_21.htmlText = String(mSystem.mDat.equip_stock[20]);
};
if (mSystem.mDat.equip_stock[21] > 0){
this.item_22.gotoAndStop(30);
this.item_stock_22.visible = true;
this.item_stock_22.htmlText = String(mSystem.mDat.equip_stock[21]);
};
if (mSystem.mDat.equip_stock[22] > 0){
this.item_23.gotoAndStop(31);
this.item_stock_23.visible = true;
this.item_stock_23.htmlText = String(mSystem.mDat.equip_stock[22]);
};
if (mSystem.mDat.equip_stock[23] > 0){
this.item_24.gotoAndStop(32);
this.item_stock_24.visible = true;
this.item_stock_24.htmlText = String(mSystem.mDat.equip_stock[23]);
};
if (mSystem.mDat.equip_stock[24] > 0){
this.item_25.gotoAndStop(33);
this.item_stock_25.visible = true;
this.item_stock_25.htmlText = String(mSystem.mDat.equip_stock[24]);
};
if (mSystem.mDat.equip_stock[25] > 0){
this.item_26.gotoAndStop(34);
this.item_stock_26.visible = true;
this.item_stock_26.htmlText = String(mSystem.mDat.equip_stock[25]);
};
if (mSystem.mDat.equip_stock[26] > 0){
this.item_27.gotoAndStop(35);
this.item_stock_27.visible = true;
this.item_stock_27.htmlText = String(mSystem.mDat.equip_stock[26]);
};
if (mSystem.mDat.equip_stock[27] > 0){
this.item_28.gotoAndStop(36);
this.item_stock_28.visible = true;
this.item_stock_28.htmlText = String(mSystem.mDat.equip_stock[27]);
};
if (mSystem.mDat.equip_stock[28] > 0){
this.item_29.gotoAndStop(37);
this.item_stock_29.visible = true;
this.item_stock_29.htmlText = String(mSystem.mDat.equip_stock[28]);
};
if (mSystem.mDat.equip_stock[29] > 0){
this.item_30.gotoAndStop(38);
this.item_stock_30.visible = true;
this.item_stock_30.htmlText = String(mSystem.mDat.equip_stock[29]);
};
this.unit.gotoAndStop(unitSlot._ID);
this.unit_name.htmlText = String(unitSlot._NAME);
this.unit_level.htmlText = String(("Level " + unitSlot._LEVEL));
this.unit_ap.htmlText = String(("AP " + unitSlot._AP_BOOST));
this.unit_next.htmlText = String(("Next Exp " + unitSlot.getReqExperience()));
this.health.htmlText = String(unitSlot._health_max);
this.strength.htmlText = String(unitSlot._strength);
this.defense.htmlText = String(unitSlot._defense);
this.magic.htmlText = String(unitSlot._magic);
this.resistance.htmlText = String(unitSlot._resistance);
this.phys.htmlText = String(getResistanceString(unitSlot._ELEMENT_PHYS));
this.energy.htmlText = String(getResistanceString(unitSlot._ELEMENT_ENERGY));
this.fire.htmlText = String(getResistanceString(unitSlot._ELEMENT_FIRE));
this.water.htmlText = String(getResistanceString(unitSlot._ELEMENT_WATER));
this.thunder.htmlText = String(getResistanceString(unitSlot._ELEMENT_THUNDER));
this.mystic.htmlText = String(getResistanceString(unitSlot._ELEMENT_MYSTIC));
if ((((unitSlot._ELEMENT_PHYS < 2)) && (unitSlot._is_resist_phys))){
this.phys.htmlText = String("Strong");
};
if ((((unitSlot._ELEMENT_ENERGY < 2)) && (unitSlot._is_resist_energy))){
this.energy.htmlText = String("Strong");
};
if ((((unitSlot._ELEMENT_FIRE < 2)) && (unitSlot._is_resist_fire))){
this.fire.htmlText = String("Strong");
};
if ((((unitSlot._ELEMENT_WATER < 2)) && (unitSlot._is_resist_water))){
this.water.htmlText = String("Strong");
};
if ((((unitSlot._ELEMENT_THUNDER < 2)) && (unitSlot._is_resist_thunder))){
this.thunder.htmlText = String("Strong");
};
if ((((unitSlot._ELEMENT_MYSTIC < 2)) && (unitSlot._is_resist_mystic))){
this.mystic.htmlText = String("Strong");
};
if (unitSlot._EQUIPMENT_1 > 0){
this.equip_1.gotoAndStop((unitSlot._EQUIPMENT_1 + 8));
};
if (unitSlot._EQUIPMENT_2 > 0){
this.equip_2.gotoAndStop((unitSlot._EQUIPMENT_2 + 8));
};
if (unitSlot._SKILL_1 > 0){
this.skill_1.gotoAndStop((unitSlot._SKILL_1 + 1));
};
if (unitSlot._SKILL_2 > 0){
this.skill_2.gotoAndStop((unitSlot._SKILL_2 + 1));
};
if (unitSlot._SKILL_3 > 0){
this.skill_3.gotoAndStop((unitSlot._SKILL_3 + 1));
};
if (unitSlot._SKILL_4 > 0){
this.skill_4.gotoAndStop((unitSlot._SKILL_4 + 1));
};
this.speciality.htmlText = getSpecialityString(unitSlot._ABILITY);
}
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
this.btn_next.addEventListener(MouseEvent.CLICK, nextClick, false, 0, true);
this.btn_prev.addEventListener(MouseEvent.CLICK, prevClick, false, 0, true);
trace("init equipment ... ok !");
this.equip_1.addEventListener(MouseEvent.CLICK, equip1Click, false, 0, true);
this.equip_2.addEventListener(MouseEvent.CLICK, equip2Click, false, 0, true);
this.item_1.addEventListener(MouseEvent.CLICK, item1Click, false, 0, true);
this.item_2.addEventListener(MouseEvent.CLICK, item2Click, false, 0, true);
this.item_3.addEventListener(MouseEvent.CLICK, item3Click, false, 0, true);
this.item_4.addEventListener(MouseEvent.CLICK, item4Click, false, 0, true);
this.item_5.addEventListener(MouseEvent.CLICK, item5Click, false, 0, true);
this.item_6.addEventListener(MouseEvent.CLICK, item6Click, false, 0, true);
this.item_7.addEventListener(MouseEvent.CLICK, item7Click, false, 0, true);
this.item_8.addEventListener(MouseEvent.CLICK, item8Click, false, 0, true);
this.item_9.addEventListener(MouseEvent.CLICK, item9Click, false, 0, true);
this.item_10.addEventListener(MouseEvent.CLICK, item10Click, false, 0, true);
this.item_11.addEventListener(MouseEvent.CLICK, item11Click, false, 0, true);
this.item_12.addEventListener(MouseEvent.CLICK, item12Click, false, 0, true);
this.item_13.addEventListener(MouseEvent.CLICK, item13Click, false, 0, true);
this.item_14.addEventListener(MouseEvent.CLICK, item14Click, false, 0, true);
this.item_15.addEventListener(MouseEvent.CLICK, item15Click, false, 0, true);
this.item_16.addEventListener(MouseEvent.CLICK, item16Click, false, 0, true);
this.item_17.addEventListener(MouseEvent.CLICK, item17Click, false, 0, true);
this.item_18.addEventListener(MouseEvent.CLICK, item18Click, false, 0, true);
this.item_19.addEventListener(MouseEvent.CLICK, item19Click, false, 0, true);
this.item_20.addEventListener(MouseEvent.CLICK, item20Click, false, 0, true);
this.item_21.addEventListener(MouseEvent.CLICK, item21Click, false, 0, true);
this.item_22.addEventListener(MouseEvent.CLICK, item22Click, false, 0, true);
this.item_23.addEventListener(MouseEvent.CLICK, item23Click, false, 0, true);
this.item_24.addEventListener(MouseEvent.CLICK, item24Click, false, 0, true);
this.item_25.addEventListener(MouseEvent.CLICK, item25Click, false, 0, true);
this.item_26.addEventListener(MouseEvent.CLICK, item26Click, false, 0, true);
this.item_27.addEventListener(MouseEvent.CLICK, item27Click, false, 0, true);
this.item_28.addEventListener(MouseEvent.CLICK, item28Click, false, 0, true);
this.item_29.addEventListener(MouseEvent.CLICK, item29Click, false, 0, true);
this.item_30.addEventListener(MouseEvent.CLICK, item30Click, false, 0, true);
unitPosID = 1;
unitSlot = mSystem.mPlayerParty.mSlot1;
unitSlot.initialise();
updateInfo();
}
private function getResistanceString(_arg1):String{
if (_arg1 == 1){
return (String("Weak"));
};
if (_arg1 == 2){
return (String("Strong"));
};
if (_arg1 == 3){
return (String("Null"));
};
if (_arg1 == 4){
return (String("Absorb"));
};
return (String("Normal"));
}
private function startDragClip(_arg1:int=1){
if (clipDragSlotID == _arg1){
removeDragClip();
updateInfo();
return;
};
if (mSystem.mDat.equip_stock[(_arg1 - 1)] <= 0){
removeDragClip();
updateInfo();
return;
};
removeDragClip();
if (clipDrag == null){
clipDrag = new item_slot_list_cursor();
dispCont.addChild(clipDrag);
clipDrag.x = mSystem.stageRoot.mouseX;
clipDrag.y = mSystem.stageRoot.mouseY;
clipDrag.addEventListener(Event.ENTER_FRAME, dragHandle, false, 0, true);
clipDragSlotID = _arg1;
clipDrag.gotoAndStop((clipDragSlotID + 8));
mSystem.mDat.equip_stock[(clipDragSlotID - 1)] = Math.max((mSystem.mDat.equip_stock[(clipDragSlotID - 1)] - 1), 0);
updateInfo();
};
}
private function item5Click(_arg1:MouseEvent):void{
startDragClip(5);
}
private function item26Click(_arg1:MouseEvent):void{
startDragClip(26);
}
private function item18Click(_arg1:MouseEvent):void{
startDragClip(18);
}
private function getSpecialityString(_arg1):String{
if (_arg1 == 5){
return (String("Resist Phys Element"));
};
if (_arg1 == 6){
return (String("Resist Energy Element"));
};
if (_arg1 == 7){
return (String("Resist Fire Element"));
};
if (_arg1 == 8){
return (String("Resist Water Element"));
};
if (_arg1 == 9){
return (String("Resist Thunder Element"));
};
if (_arg1 == 10){
return (String("Resist Mystic Element"));
};
if (_arg1 == 11){
return (String("Resist All Element"));
};
if (_arg1 == 12){
return (String("AP Boost + 1"));
};
if (_arg1 == 13){
return (String("AP Boost + 2"));
};
if (_arg1 == 14){
return (String("Rage, 25% health, damage up 50%"));
};
if (_arg1 == 15){
return (String("Exp Plus, Gain 25% more experience"));
};
if (_arg1 == 16){
return (String("Endure, survive from fatal hit 1x "));
};
if (_arg1 == 17){
return (String("Pierce, Penetrate elemental defense"));
};
if (_arg1 == 18){
return (String("Critical Up"));
};
if (_arg1 == 19){
return (String("Drain, absorb 2% damage"));
};
if (_arg1 == 20){
return (String("Barrier, reflect 20% damage receive"));
};
return (String(""));
}
private function item2Click(_arg1:MouseEvent):void{
startDragClip(2);
}
private function removeDragClip(){
if (clipDrag){
clipDrag.removeEventListener(Event.ENTER_FRAME, dragHandle);
dispCont.removeChild(clipDrag);
clipDrag = null;
if (clipDragSlotID > 0){
mSystem.mDat.equip_stock[(clipDragSlotID - 1)] = Math.min((mSystem.mDat.equip_stock[(clipDragSlotID - 1)] + 1), 20);
clipDragSlotID = 0;
};
};
}
private function item15Click(_arg1:MouseEvent):void{
startDragClip(15);
}
private function item23Click(_arg1:MouseEvent):void{
startDragClip(23);
}
private function item20Click(_arg1:MouseEvent):void{
startDragClip(20);
}
private function item12Click(_arg1:MouseEvent):void{
startDragClip(12);
}
private function item9Click(_arg1:MouseEvent):void{
startDragClip(9);
}
private function item27Click(_arg1:MouseEvent):void{
startDragClip(27);
}
private function item6Click(_arg1:MouseEvent):void{
startDragClip(6);
}
private function item19Click(_arg1:MouseEvent):void{
startDragClip(19);
}
private function item3Click(_arg1:MouseEvent):void{
startDragClip(3);
}
private function item16Click(_arg1:MouseEvent):void{
startDragClip(16);
}
private function item24Click(_arg1:MouseEvent):void{
startDragClip(24);
}
}
}//package FZGame.Rpg.Interface
Section 84
//MenuForgeShop (FZGame.Rpg.Interface.MenuForgeShop)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import flash.text.*;
import flash.net.*;
public class MenuForgeShop extends MovieClip {
public var money:TextField;
private var dispCont;
private var level:int;// = 1
private var slot1Price;
public var btn_close:SimpleButton;
public var slot1:MovieClip;
public var slot3:MovieClip;
public var slot2:MovieClip;
private var mSystem;
public function init(_arg1, _arg2:int=1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
level = _arg2;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
this.slot1.btn_create.addEventListener(MouseEvent.CLICK, slot1Click, false, 0, true);
this.slot2.btn_create.addEventListener(MouseEvent.CLICK, slot2Click, false, 0, true);
this.slot3.btn_create.addEventListener(MouseEvent.CLICK, slot3Click, false, 0, true);
updateInfo();
trace("init general shop ... ok !");
}
private function slot3Click(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if (level == 1){
_local2 = 8000;
_local3 = 8;
_local4 = 6;
_local5 = 5;
_local6 = 11;
_local7 = 1;
if ((((mSystem.mDat.player_money >= _local2)) && ((mSystem.mDat.equip_stock[_local3] < 20)))){
if ((((mSystem.mDat.material_stock[_local4] >= _local5)) && ((mSystem.mDat.material_stock[_local6] >= _local7)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.equip_stock[_local3] = Math.min((mSystem.mDat.equip_stock[_local3] + 1), 20);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - _local5), 0);
mSystem.mDat.material_stock[_local6] = Math.max((mSystem.mDat.material_stock[_local6] - _local7), 0);
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 2){
_local2 = 4000;
_local3 = 21;
_local4 = 2;
_local5 = 5;
_local6 = 4;
_local7 = 5;
if ((((mSystem.mDat.player_money >= _local2)) && ((mSystem.mDat.equip_stock[_local3] < 20)))){
if ((((mSystem.mDat.material_stock[_local4] >= _local5)) && ((mSystem.mDat.material_stock[_local6] >= _local7)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.equip_stock[_local3] = Math.min((mSystem.mDat.equip_stock[_local3] + 1), 20);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - _local5), 0);
mSystem.mDat.material_stock[_local6] = Math.max((mSystem.mDat.material_stock[_local6] - _local7), 0);
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 3){
_local2 = 100000;
_local3 = 28;
_local4 = 0;
_local5 = 20;
_local6 = 13;
_local7 = 5;
if ((((mSystem.mDat.player_money >= _local2)) && ((mSystem.mDat.equip_stock[_local3] < 20)))){
if ((((mSystem.mDat.material_stock[_local4] >= _local5)) && ((mSystem.mDat.material_stock[_local6] >= _local7)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.equip_stock[_local3] = Math.min((mSystem.mDat.equip_stock[_local3] + 1), 20);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - _local5), 0);
mSystem.mDat.material_stock[_local6] = Math.max((mSystem.mDat.material_stock[_local6] - _local7), 0);
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
};
};
};
updateInfo();
}
private function slot1Click(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if (level == 1){
_local2 = 6000;
_local3 = 6;
_local4 = 7;
_local5 = 2;
_local6 = 7;
_local7 = 2;
if ((((mSystem.mDat.player_money >= _local2)) && ((mSystem.mDat.equip_stock[_local3] < 20)))){
if ((((mSystem.mDat.material_stock[_local4] >= _local5)) && ((mSystem.mDat.material_stock[_local6] >= _local7)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.equip_stock[_local3] = Math.min((mSystem.mDat.equip_stock[_local3] + 1), 20);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - _local5), 0);
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 2){
_local2 = 4000;
_local3 = 19;
_local4 = 2;
_local5 = 5;
_local6 = 7;
_local7 = 1;
if ((((mSystem.mDat.player_money >= _local2)) && ((mSystem.mDat.equip_stock[_local3] < 20)))){
if ((((mSystem.mDat.material_stock[_local4] >= _local5)) && ((mSystem.mDat.material_stock[_local6] >= _local7)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.equip_stock[_local3] = Math.min((mSystem.mDat.equip_stock[_local3] + 1), 20);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - _local5), 0);
mSystem.mDat.material_stock[_local6] = Math.max((mSystem.mDat.material_stock[_local6] - _local7), 0);
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 3){
_local2 = 20000;
_local3 = 10;
_local4 = 6;
_local5 = 10;
_local6 = 10;
_local7 = 5;
if ((((mSystem.mDat.player_money >= _local2)) && ((mSystem.mDat.equip_stock[_local3] < 20)))){
if ((((mSystem.mDat.material_stock[_local4] >= _local5)) && ((mSystem.mDat.material_stock[_local6] >= _local7)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.equip_stock[_local3] = Math.min((mSystem.mDat.equip_stock[_local3] + 1), 20);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - _local5), 0);
mSystem.mDat.material_stock[_local6] = Math.max((mSystem.mDat.material_stock[_local6] - _local7), 0);
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
};
};
};
updateInfo();
}
private function updateInfo(){
if (level == 1){
this.slot1.item.gotoAndStop(15);
this.slot1.mat1.gotoAndStop(46);
this.slot1.mat1Stock.htmlText = String(("2 / " + String(mSystem.mDat.material_stock[7])));
this.slot1.mat2.visible = false;
this.slot1.mat2Stock.visible = false;
this.slot1.price.htmlText = String("6000");
this.slot1.stock.htmlText = String(mSystem.mDat.equip_stock[6]);
this.slot2.item.gotoAndStop(16);
this.slot2.mat1.gotoAndStop(45);
this.slot2.mat1Stock.htmlText = String(("3 / " + String(mSystem.mDat.material_stock[6])));
this.slot2.mat2.gotoAndStop(44);
this.slot2.mat2Stock.htmlText = String(("10 / " + String(mSystem.mDat.material_stock[5])));
this.slot2.price.htmlText = String("20000");
this.slot2.stock.htmlText = String(mSystem.mDat.equip_stock[7]);
this.slot3.item.gotoAndStop(17);
this.slot3.mat1.gotoAndStop(45);
this.slot3.mat1Stock.htmlText = String(("5 / " + String(mSystem.mDat.material_stock[6])));
this.slot3.mat2.gotoAndStop(50);
this.slot3.mat2Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[11])));
this.slot3.price.htmlText = String("22000");
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[8]);
} else {
if (level == 2){
this.slot1.item.gotoAndStop(28);
this.slot1.mat1.gotoAndStop(41);
this.slot1.mat1Stock.htmlText = String(("5 / " + String(mSystem.mDat.material_stock[2])));
this.slot1.mat2.gotoAndStop(46);
this.slot1.mat2Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[7])));
this.slot1.price.htmlText = String("4000");
this.slot1.stock.htmlText = String(mSystem.mDat.equip_stock[19]);
this.slot2.item.gotoAndStop(29);
this.slot2.mat1.gotoAndStop(41);
this.slot2.mat1Stock.htmlText = String(("5 / " + String(mSystem.mDat.material_stock[2])));
this.slot2.mat2.gotoAndStop(43);
this.slot2.mat2Stock.htmlText = String(("5 / " + String(mSystem.mDat.material_stock[3])));
this.slot2.price.htmlText = String("4000");
this.slot2.stock.htmlText = String(mSystem.mDat.equip_stock[20]);
this.slot3.item.gotoAndStop(30);
this.slot3.mat1.gotoAndStop(41);
this.slot3.mat1Stock.htmlText = String(("5 / " + String(mSystem.mDat.material_stock[2])));
this.slot3.mat2.gotoAndStop(44);
this.slot3.mat2Stock.htmlText = String(("5 / " + String(mSystem.mDat.material_stock[4])));
this.slot3.price.htmlText = String("4000");
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[21]);
} else {
if (level == 3){
this.slot1.item.gotoAndStop(19);
this.slot1.mat1.gotoAndStop(45);
this.slot1.mat1Stock.htmlText = String(("10 / " + String(mSystem.mDat.material_stock[6])));
this.slot1.mat2.gotoAndStop(49);
this.slot1.mat2Stock.htmlText = String(("5 / " + String(mSystem.mDat.material_stock[10])));
this.slot1.price.htmlText = String("20000");
this.slot1.stock.htmlText = String(mSystem.mDat.equip_stock[10]);
this.slot2.item.gotoAndStop(32);
this.slot2.mat1.gotoAndStop(50);
this.slot2.mat1Stock.htmlText = String(("10 / " + String(mSystem.mDat.material_stock[11])));
this.slot2.mat2.gotoAndStop(51);
this.slot2.mat2Stock.htmlText = String(("5 / " + String(mSystem.mDat.material_stock[12])));
this.slot2.price.htmlText = String("30000");
this.slot2.stock.htmlText = String(mSystem.mDat.equip_stock[23]);
this.slot3.item.gotoAndStop(37);
this.slot3.mat1.gotoAndStop(39);
this.slot3.mat1Stock.htmlText = String(("20 / " + String(mSystem.mDat.material_stock[0])));
this.slot3.mat2.gotoAndStop(52);
this.slot3.mat2Stock.htmlText = String(("5 / " + String(mSystem.mDat.material_stock[13])));
this.slot3.price.htmlText = String("100000");
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[28]);
};
};
};
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
}
private function closeClick(_arg1:MouseEvent):void{
destroy();
}
private function slot2Click(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if (level == 1){
_local2 = 7000;
_local3 = 7;
_local4 = 6;
_local5 = 3;
_local6 = 5;
_local7 = 10;
if ((((mSystem.mDat.player_money >= _local2)) && ((mSystem.mDat.equip_stock[_local3] < 20)))){
if ((((mSystem.mDat.material_stock[_local4] >= _local5)) && ((mSystem.mDat.material_stock[_local6] >= _local7)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.equip_stock[_local3] = Math.min((mSystem.mDat.equip_stock[_local3] + 1), 20);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - _local5), 0);
mSystem.mDat.material_stock[_local6] = Math.max((mSystem.mDat.material_stock[_local6] - _local7), 0);
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 2){
_local2 = 4000;
_local3 = 20;
_local4 = 2;
_local5 = 5;
_local6 = 3;
_local7 = 5;
if ((((mSystem.mDat.player_money >= _local2)) && ((mSystem.mDat.equip_stock[_local3] < 20)))){
if ((((mSystem.mDat.material_stock[_local4] >= _local5)) && ((mSystem.mDat.material_stock[_local6] >= _local7)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.equip_stock[_local3] = Math.min((mSystem.mDat.equip_stock[_local3] + 1), 20);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - _local5), 0);
mSystem.mDat.material_stock[_local6] = Math.max((mSystem.mDat.material_stock[_local6] - _local7), 0);
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 3){
_local2 = 20000;
_local3 = 23;
_local4 = 11;
_local5 = 10;
_local6 = 12;
_local7 = 5;
if ((((mSystem.mDat.player_money >= _local2)) && ((mSystem.mDat.equip_stock[_local3] < 20)))){
if ((((mSystem.mDat.material_stock[_local4] >= _local5)) && ((mSystem.mDat.material_stock[_local6] >= _local7)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.equip_stock[_local3] = Math.min((mSystem.mDat.equip_stock[_local3] + 1), 20);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - _local5), 0);
mSystem.mDat.material_stock[_local6] = Math.max((mSystem.mDat.material_stock[_local6] - _local7), 0);
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
};
};
};
updateInfo();
}
public function destroy(){
this.slot1.btn_create.removeEventListener(MouseEvent.CLICK, slot1Click);
this.slot2.btn_create.removeEventListener(MouseEvent.CLICK, slot2Click);
this.slot3.btn_create.removeEventListener(MouseEvent.CLICK, slot3Click);
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy general shop ... ok !");
}
}
}//package FZGame.Rpg.Interface
Section 85
//MenuFormation (FZGame.Rpg.Interface.MenuFormation)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
public class MenuFormation extends MovieClip {
private var mSystem;
private var lastPtrSlot;// = null
private var unitSlot;// = null
private var clipDrag;
public var unit_1:unit_face_slot;
public var unit_2:unit_face_slot;
public var unit_3:unit_face_slot;
public var unit_4:unit_face_slot;
public var unit_5:unit_face_slot;
public var unit_6:unit_face_slot;
public var unit_12:unit_face_slot;
public var unit_13:unit_face_slot;
public var unit_14:unit_face_slot;
public var unit_15:unit_face_slot;
public var unit_11:unit_face_slot;
public var unit_7:unit_face_slot;
public var unit_9:unit_face_slot;
public var unit_10:unit_face_slot;
public var unit_8:unit_face_slot;
public var btn_close:SimpleButton;
private var clipDragSlotID:int;// = 0
private var dispCont;
private function unit13Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot13);
}
private function unit6Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot6);
}
private function dragHandle(_arg1:Event):void{
clipDrag.x = mSystem.stageRoot.mouseX;
clipDrag.y = mSystem.stageRoot.mouseY;
}
private function updateView(){
this.unit_1.gotoAndStop((mSystem.mPlayerParty.mSlot1._ID + 1));
this.unit_2.gotoAndStop((mSystem.mPlayerParty.mSlot2._ID + 1));
this.unit_3.gotoAndStop((mSystem.mPlayerParty.mSlot3._ID + 1));
this.unit_4.gotoAndStop((mSystem.mPlayerParty.mSlot4._ID + 1));
this.unit_5.gotoAndStop((mSystem.mPlayerParty.mSlot5._ID + 1));
this.unit_6.gotoAndStop((mSystem.mPlayerParty.mSlot6._ID + 1));
this.unit_7.gotoAndStop((mSystem.mPlayerParty.mSlot7._ID + 1));
this.unit_8.gotoAndStop((mSystem.mPlayerParty.mSlot8._ID + 1));
this.unit_9.gotoAndStop((mSystem.mPlayerParty.mSlot9._ID + 1));
this.unit_10.gotoAndStop((mSystem.mPlayerParty.mSlot10._ID + 1));
this.unit_11.gotoAndStop((mSystem.mPlayerParty.mSlot11._ID + 1));
this.unit_12.gotoAndStop((mSystem.mPlayerParty.mSlot12._ID + 1));
this.unit_13.gotoAndStop((mSystem.mPlayerParty.mSlot13._ID + 1));
this.unit_14.gotoAndStop((mSystem.mPlayerParty.mSlot14._ID + 1));
this.unit_15.gotoAndStop((mSystem.mPlayerParty.mSlot15._ID + 1));
}
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
this.unit_1.addEventListener(MouseEvent.CLICK, unit1Click, false, 0, true);
this.unit_2.addEventListener(MouseEvent.CLICK, unit2Click, false, 0, true);
this.unit_3.addEventListener(MouseEvent.CLICK, unit3Click, false, 0, true);
this.unit_4.addEventListener(MouseEvent.CLICK, unit4Click, false, 0, true);
this.unit_5.addEventListener(MouseEvent.CLICK, unit5Click, false, 0, true);
this.unit_6.addEventListener(MouseEvent.CLICK, unit6Click, false, 0, true);
this.unit_7.addEventListener(MouseEvent.CLICK, unit7Click, false, 0, true);
this.unit_8.addEventListener(MouseEvent.CLICK, unit8Click, false, 0, true);
this.unit_9.addEventListener(MouseEvent.CLICK, unit9Click, false, 0, true);
this.unit_10.addEventListener(MouseEvent.CLICK, unit10Click, false, 0, true);
this.unit_11.addEventListener(MouseEvent.CLICK, unit11Click, false, 0, true);
this.unit_12.addEventListener(MouseEvent.CLICK, unit12Click, false, 0, true);
this.unit_13.addEventListener(MouseEvent.CLICK, unit13Click, false, 0, true);
this.unit_14.addEventListener(MouseEvent.CLICK, unit14Click, false, 0, true);
this.unit_15.addEventListener(MouseEvent.CLICK, unit15Click, false, 0, true);
trace("init formation ... ok !");
updateView();
unitSlot = new ListCharUnitSet();
unitSlot.setBaseUnit(0, 0);
}
public function destroy(){
removeDragClip();
this.unit_1.removeEventListener(MouseEvent.CLICK, unit1Click);
this.unit_2.removeEventListener(MouseEvent.CLICK, unit2Click);
this.unit_3.removeEventListener(MouseEvent.CLICK, unit3Click);
this.unit_4.removeEventListener(MouseEvent.CLICK, unit4Click);
this.unit_5.removeEventListener(MouseEvent.CLICK, unit5Click);
this.unit_6.removeEventListener(MouseEvent.CLICK, unit6Click);
this.unit_7.removeEventListener(MouseEvent.CLICK, unit7Click);
this.unit_8.removeEventListener(MouseEvent.CLICK, unit8Click);
this.unit_9.removeEventListener(MouseEvent.CLICK, unit9Click);
this.unit_10.removeEventListener(MouseEvent.CLICK, unit10Click);
this.unit_11.removeEventListener(MouseEvent.CLICK, unit11Click);
this.unit_12.removeEventListener(MouseEvent.CLICK, unit12Click);
this.unit_13.removeEventListener(MouseEvent.CLICK, unit13Click);
this.unit_14.removeEventListener(MouseEvent.CLICK, unit14Click);
this.unit_15.removeEventListener(MouseEvent.CLICK, unit15Click);
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy formation ... ok !");
}
private function unit7Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot7);
}
private function unit3Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot3);
}
private function unit2Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot2);
}
private function unit14Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot14);
}
private function unit10Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot10);
}
private function unit8Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot8);
}
private function unit15Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot15);
}
private function unit4Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot4);
}
private function unit11Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot11);
}
private function removeDragClip(){
if (clipDrag){
clipDrag.removeEventListener(Event.ENTER_FRAME, dragHandle);
dispCont.removeChild(clipDrag);
clipDrag = null;
};
}
private function unit9Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot9);
}
private function unit5Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot5);
}
private function unit1Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot1);
}
private function unit12Click(_arg1:MouseEvent):void{
actionDragClip(mSystem.mPlayerParty.mSlot12);
}
private function closeClick(_arg1:MouseEvent):void{
if (clipDrag){
clipDrag.removeEventListener(Event.ENTER_FRAME, dragHandle);
dispCont.removeChild(clipDrag);
clipDrag = null;
if (unitSlot){
lastPtrSlot.copyFormObj(unitSlot);
unitSlot.setBaseUnit(0, 0);
updateView();
};
} else {
if (mSystem.mPlayerParty.mSlot1._ID == 0){
mSystem.mEffect.msgInfo("warning: slot 1 is empty !");
} else {
destroy();
};
};
}
private function actionDragClip(_arg1){
var _local2:* = new ListCharUnitSet();
if (_arg1._ID <= 0){
if (clipDrag){
if (unitSlot){
_local2.copyFormObj(_arg1);
_arg1.copyFormObj(unitSlot);
unitSlot.copyFormObj(_local2);
};
updateView();
removeDragClip();
};
return;
} else {
if (clipDrag){
if (unitSlot){
_local2.copyFormObj(_arg1);
_arg1.copyFormObj(unitSlot);
unitSlot.copyFormObj(_local2);
clipDrag.gotoAndStop((unitSlot._ID + 1));
};
updateView();
return;
};
};
if (clipDrag == null){
clipDrag = new unit_face_slot();
dispCont.addChild(clipDrag);
clipDrag.x = mSystem.stageRoot.mouseX;
clipDrag.y = mSystem.stageRoot.mouseY;
clipDrag.addEventListener(Event.ENTER_FRAME, dragHandle, false, 0, true);
unitSlot.copyFormObj(_arg1);
clipDrag.gotoAndStop((unitSlot._ID + 1));
_arg1.setBaseUnit(0, 0);
lastPtrSlot = _arg1;
updateView();
};
}
}
}//package FZGame.Rpg.Interface
Section 86
//MenuGameOver (FZGame.Rpg.Interface.MenuGameOver)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class MenuGameOver extends MovieClip {
private var dispCont;
public var btn_close:SimpleButton;
public var btn_walkthrough:SimpleButton;
private var mSystem;
private function walkthroughClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1583&subid=walkthrough&action=walkthrough_epicquest");
navigateToURL(_local2, "_blank");
}
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
if (this.btn_close){
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
};
this.btn_walkthrough.addEventListener(MouseEvent.CLICK, walkthroughClick, false, 0, true);
trace("init game over ... ok !");
}
private function closeClick(_arg1:MouseEvent):void{
var _local2:* = new menu_cover_mc();
_local2.init(mSystem);
destroy();
}
public function destroy(){
if (this.btn_close){
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
};
this.btn_walkthrough.removeEventListener(MouseEvent.CLICK, walkthroughClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy game over ... ok !");
}
}
}//package FZGame.Rpg.Interface
Section 87
//MenuGeneralShop (FZGame.Rpg.Interface.MenuGeneralShop)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import flash.text.*;
import flash.net.*;
public class MenuGeneralShop extends MovieClip {
const _price_apboost:int = 12000;
const _price_holywater:int = 1000;
const _price_brokenpipe:int = 500;
const _price_phoenixwing:int = 5000;
const _price_potion:int = 50;
const _price_plaincloth:int = 400;
const _price_winterjacket:int = 2500;
const _price_guerillamask:int = 2000;
const _price_ironore:int = 2000;
const _price_krisknife:int = 3000;
const _price_reflex:int = 3000;
const _price_barrier:int = 10000;
const _price_whiteleaf:int = 6000;
const _price_ironaxe:int = 2500;
const _price_superpotion:int = 200;
const _price_diamond:int = 5000;
const _price_heroglove:int = 1500;
const _price_braclet:int = 750;
const _price_vegaclaw:int = 4000;
public var slot2:MovieClip;
private var level:int;// = 1
public var slot5:MovieClip;
private var slot1Price;
public var money:TextField;
public var btn_close:SimpleButton;
public var slot1:MovieClip;
private var dispCont;
public var slot3:MovieClip;
public var slot4:MovieClip;
private var mSystem;
public function destroy(){
this.slot1.btn_buy.removeEventListener(MouseEvent.CLICK, slot1Click);
this.slot2.btn_buy.removeEventListener(MouseEvent.CLICK, slot2Click);
this.slot3.btn_buy.removeEventListener(MouseEvent.CLICK, slot3Click);
this.slot4.btn_buy.removeEventListener(MouseEvent.CLICK, slot4Click);
this.slot5.btn_buy.removeEventListener(MouseEvent.CLICK, slot5Click);
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy general shop ... ok !");
}
private function slot2Click(_arg1:MouseEvent):void{
if (level == 1){
if ((((mSystem.mDat.player_money >= _price_brokenpipe)) && ((mSystem.mDat.equip_stock[0] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_brokenpipe), 0);
mSystem.mDat.equip_stock[0] = Math.min((mSystem.mDat.equip_stock[0] + 1), 20);
this.slot2.price.htmlText = String(_price_brokenpipe);
this.slot2.stock.htmlText = String(mSystem.mDat.equip_stock[0]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 2){
if ((((mSystem.mDat.player_money >= _price_whiteleaf)) && ((mSystem.mDat.item_stock[2] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_whiteleaf), 0);
mSystem.mDat.item_stock[2] = Math.min((mSystem.mDat.item_stock[2] + 1), 20);
this.slot2.price.htmlText = String(_price_whiteleaf);
this.slot2.stock.htmlText = String(mSystem.mDat.item_stock[2]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 3){
if ((((mSystem.mDat.player_money >= _price_ironaxe)) && ((mSystem.mDat.equip_stock[2] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_ironaxe), 0);
mSystem.mDat.equip_stock[2] = Math.min((mSystem.mDat.equip_stock[2] + 1), 20);
this.slot2.price.htmlText = String(_price_ironaxe);
this.slot2.stock.htmlText = String(mSystem.mDat.equip_stock[2]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 4){
if ((((mSystem.mDat.player_money >= _price_guerillamask)) && ((mSystem.mDat.equip_stock[14] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_guerillamask), 0);
mSystem.mDat.equip_stock[14] = Math.min((mSystem.mDat.equip_stock[14] + 1), 20);
this.slot2.price.htmlText = String(_price_guerillamask);
this.slot2.stock.htmlText = String(mSystem.mDat.equip_stock[14]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 5){
if ((((mSystem.mDat.player_money >= _price_apboost)) && ((mSystem.mDat.item_stock[6] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_apboost), 0);
mSystem.mDat.item_stock[6] = Math.min((mSystem.mDat.item_stock[6] + 1), 20);
this.slot2.price.htmlText = String(_price_apboost);
this.slot2.stock.htmlText = String(mSystem.mDat.item_stock[6]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
};
};
};
};
};
}
public function init(_arg1, _arg2:int=1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
level = _arg2;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
this.slot1.btn_buy.addEventListener(MouseEvent.CLICK, slot1Click, false, 0, true);
this.slot2.btn_buy.addEventListener(MouseEvent.CLICK, slot2Click, false, 0, true);
this.slot3.btn_buy.addEventListener(MouseEvent.CLICK, slot3Click, false, 0, true);
this.slot4.btn_buy.addEventListener(MouseEvent.CLICK, slot4Click, false, 0, true);
this.slot5.btn_buy.addEventListener(MouseEvent.CLICK, slot5Click, false, 0, true);
if (level == 1){
this.slot1.item.gotoAndStop(2);
this.slot1.price.htmlText = String(_price_potion);
this.slot1.stock.htmlText = String(mSystem.mDat.item_stock[0]);
this.slot2.item.gotoAndStop(9);
this.slot2.price.htmlText = String(_price_brokenpipe);
this.slot2.stock.htmlText = String(mSystem.mDat.equip_stock[0]);
this.slot3.item.gotoAndStop(21);
this.slot3.price.htmlText = String(_price_plaincloth);
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[12]);
this.slot4.visible = false;
this.slot5.visible = false;
} else {
if (level == 2){
this.slot1.item.gotoAndStop(3);
this.slot1.price.htmlText = String(_price_superpotion);
this.slot1.stock.htmlText = String(mSystem.mDat.item_stock[1]);
this.slot2.item.gotoAndStop(4);
this.slot2.price.htmlText = String(_price_whiteleaf);
this.slot2.stock.htmlText = String(mSystem.mDat.item_stock[2]);
this.slot3.item.gotoAndStop(10);
this.slot3.price.htmlText = String(_price_heroglove);
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[1]);
this.slot4.item.gotoAndStop(22);
this.slot4.price.htmlText = String(_price_braclet);
this.slot4.stock.htmlText = String(mSystem.mDat.equip_stock[13]);
this.slot5.item.gotoAndStop(41);
this.slot5.price.htmlText = String(_price_ironore);
this.slot5.stock.htmlText = String(mSystem.mDat.material_stock[3]);
} else {
if (level == 3){
this.slot1.item.gotoAndStop(5);
this.slot1.price.htmlText = String(_price_holywater);
this.slot1.stock.htmlText = String(mSystem.mDat.item_stock[3]);
this.slot2.item.gotoAndStop(11);
this.slot2.price.htmlText = String(_price_ironaxe);
this.slot2.stock.htmlText = String(mSystem.mDat.equip_stock[2]);
this.slot3.item.gotoAndStop(12);
this.slot3.price.htmlText = String(_price_krisknife);
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[3]);
this.slot4.item.gotoAndStop(13);
this.slot4.price.htmlText = String(_price_vegaclaw);
this.slot4.stock.htmlText = String(mSystem.mDat.equip_stock[4]);
this.slot5.item.gotoAndStop(45);
this.slot5.price.htmlText = String(_price_diamond);
this.slot5.stock.htmlText = String(mSystem.mDat.material_stock[7]);
} else {
if (level == 4){
this.slot1.item.gotoAndStop(6);
this.slot1.price.htmlText = String(_price_phoenixwing);
this.slot1.stock.htmlText = String(mSystem.mDat.item_stock[4]);
this.slot2.item.gotoAndStop(23);
this.slot2.price.htmlText = String(_price_guerillamask);
this.slot2.stock.htmlText = String(mSystem.mDat.equip_stock[14]);
this.slot3.item.gotoAndStop(24);
this.slot3.price.htmlText = String(_price_winterjacket);
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[15]);
this.slot4.item.gotoAndStop(25);
this.slot4.price.htmlText = String(_price_reflex);
this.slot4.stock.htmlText = String(mSystem.mDat.equip_stock[16]);
this.slot5.visible = false;
} else {
if (level == 5){
this.slot1.item.gotoAndStop(7);
this.slot1.price.htmlText = String(_price_barrier);
this.slot1.stock.htmlText = String(mSystem.mDat.item_stock[5]);
this.slot2.item.gotoAndStop(8);
this.slot2.price.htmlText = String(_price_apboost);
this.slot2.stock.htmlText = String(mSystem.mDat.item_stock[6]);
this.slot3.visible = false;
this.slot4.visible = false;
this.slot5.visible = false;
};
};
};
};
};
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
trace("init general shop ... ok !");
}
private function slot3Click(_arg1:MouseEvent):void{
if (level == 1){
if ((((mSystem.mDat.player_money >= _price_plaincloth)) && ((mSystem.mDat.equip_stock[12] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_plaincloth), 0);
mSystem.mDat.equip_stock[12] = Math.min((mSystem.mDat.equip_stock[12] + 1), 20);
this.slot3.price.htmlText = String(_price_plaincloth);
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[12]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 2){
if ((((mSystem.mDat.player_money >= _price_heroglove)) && ((mSystem.mDat.equip_stock[1] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_heroglove), 0);
mSystem.mDat.equip_stock[1] = Math.min((mSystem.mDat.equip_stock[1] + 1), 20);
this.slot3.price.htmlText = String(_price_heroglove);
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[1]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 3){
if ((((mSystem.mDat.player_money >= _price_krisknife)) && ((mSystem.mDat.equip_stock[3] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_krisknife), 0);
mSystem.mDat.equip_stock[3] = Math.min((mSystem.mDat.equip_stock[3] + 1), 20);
this.slot3.price.htmlText = String(_price_krisknife);
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[3]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 4){
if ((((mSystem.mDat.player_money >= _price_winterjacket)) && ((mSystem.mDat.equip_stock[15] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_winterjacket), 0);
mSystem.mDat.equip_stock[15] = Math.min((mSystem.mDat.equip_stock[15] + 1), 20);
this.slot3.price.htmlText = String(_price_winterjacket);
this.slot3.stock.htmlText = String(mSystem.mDat.equip_stock[15]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
};
};
};
};
}
private function slot4Click(_arg1:MouseEvent):void{
if (level == 2){
if ((((mSystem.mDat.player_money >= _price_braclet)) && ((mSystem.mDat.equip_stock[13] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_braclet), 0);
mSystem.mDat.equip_stock[13] = Math.min((mSystem.mDat.equip_stock[13] + 1), 20);
this.slot4.price.htmlText = String(_price_braclet);
this.slot4.stock.htmlText = String(mSystem.mDat.equip_stock[13]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 3){
if ((((mSystem.mDat.player_money >= _price_vegaclaw)) && ((mSystem.mDat.equip_stock[4] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_vegaclaw), 0);
mSystem.mDat.equip_stock[4] = Math.min((mSystem.mDat.equip_stock[4] + 1), 20);
this.slot4.price.htmlText = String(_price_vegaclaw);
this.slot4.stock.htmlText = String(mSystem.mDat.equip_stock[4]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 4){
if ((((mSystem.mDat.player_money >= _price_reflex)) && ((mSystem.mDat.equip_stock[16] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_reflex), 0);
mSystem.mDat.equip_stock[16] = Math.min((mSystem.mDat.equip_stock[16] + 1), 20);
this.slot4.price.htmlText = String(_price_reflex);
this.slot4.stock.htmlText = String(mSystem.mDat.equip_stock[16]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
};
};
};
}
private function slot1Click(_arg1:MouseEvent):void{
if (level == 1){
if ((((mSystem.mDat.player_money >= _price_potion)) && ((mSystem.mDat.item_stock[0] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_potion), 0);
mSystem.mDat.item_stock[0] = Math.min((mSystem.mDat.item_stock[0] + 1), 20);
this.slot1.price.htmlText = String(_price_potion);
this.slot1.stock.htmlText = String(mSystem.mDat.item_stock[0]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 2){
if ((((mSystem.mDat.player_money >= _price_superpotion)) && ((mSystem.mDat.item_stock[1] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_superpotion), 0);
mSystem.mDat.item_stock[1] = Math.min((mSystem.mDat.item_stock[1] + 1), 20);
this.slot1.price.htmlText = String(_price_superpotion);
this.slot1.stock.htmlText = String(mSystem.mDat.item_stock[1]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 3){
if ((((mSystem.mDat.player_money >= _price_holywater)) && ((mSystem.mDat.item_stock[3] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_holywater), 0);
mSystem.mDat.item_stock[3] = Math.min((mSystem.mDat.item_stock[3] + 1), 20);
this.slot1.price.htmlText = String(_price_holywater);
this.slot1.stock.htmlText = String(mSystem.mDat.item_stock[3]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 4){
if ((((mSystem.mDat.player_money >= _price_phoenixwing)) && ((mSystem.mDat.item_stock[4] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_phoenixwing), 0);
mSystem.mDat.item_stock[4] = Math.min((mSystem.mDat.item_stock[4] + 1), 20);
this.slot1.price.htmlText = String(_price_phoenixwing);
this.slot1.stock.htmlText = String(mSystem.mDat.item_stock[4]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 5){
if ((((mSystem.mDat.player_money >= _price_barrier)) && ((mSystem.mDat.item_stock[5] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_barrier), 0);
mSystem.mDat.item_stock[5] = Math.min((mSystem.mDat.item_stock[5] + 1), 20);
this.slot1.price.htmlText = String(_price_barrier);
this.slot1.stock.htmlText = String(mSystem.mDat.item_stock[5]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
};
};
};
};
};
}
private function slot5Click(_arg1:MouseEvent):void{
if (level == 2){
if ((((mSystem.mDat.player_money >= _price_ironore)) && ((mSystem.mDat.material_stock[2] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_ironore), 0);
mSystem.mDat.material_stock[2] = Math.min((mSystem.mDat.material_stock[2] + 1), 20);
this.slot5.price.htmlText = String(_price_ironore);
this.slot5.stock.htmlText = String(mSystem.mDat.material_stock[2]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
} else {
if (level == 3){
if ((((mSystem.mDat.player_money >= _price_diamond)) && ((mSystem.mDat.material_stock[7] < 20)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _price_diamond), 0);
mSystem.mDat.material_stock[7] = Math.min((mSystem.mDat.material_stock[7] + 1), 20);
this.slot5.price.htmlText = String(_price_diamond);
this.slot5.stock.htmlText = String(mSystem.mDat.material_stock[7]);
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
} else {
mSystem.mEffect.msgInfo("warning: not enough money or stock maxed [20]!");
};
};
};
}
private function closeClick(_arg1:MouseEvent):void{
destroy();
}
}
}//package FZGame.Rpg.Interface
Section 88
//MenuHelp (FZGame.Rpg.Interface.MenuHelp)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
public class MenuHelp extends MovieClip {
private var dispCont;
public var btn_close:SimpleButton;
public var btn_next:SimpleButton;
private var mSystem;
public var btn_prev:SimpleButton;
private function nextClick(_arg1:MouseEvent):void{
this.gotoAndStop(Math.min((this.currentFrame + 1), this.totalFrames));
}
private function prevClick(_arg1:MouseEvent):void{
this.gotoAndStop(Math.max((this.currentFrame - 1), 1));
}
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.btn_next.addEventListener(MouseEvent.CLICK, nextClick, false, 0, true);
this.btn_prev.addEventListener(MouseEvent.CLICK, prevClick, false, 0, true);
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
trace("init credit ... ok !");
}
private function closeClick(_arg1:MouseEvent):void{
destroy();
}
public function destroy(){
this.btn_next.removeEventListener(MouseEvent.CLICK, nextClick);
this.btn_prev.removeEventListener(MouseEvent.CLICK, prevClick);
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy credit ... ok !");
}
}
}//package FZGame.Rpg.Interface
Section 89
//MenuInventory (FZGame.Rpg.Interface.MenuInventory)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import flash.text.*;
import flash.net.*;
public class MenuInventory extends MovieClip {
public var item_1:MovieClip;
public var item_2:MovieClip;
public var item_3:MovieClip;
public var item_4:MovieClip;
public var item_5:MovieClip;
public var item_7:MovieClip;
public var item_6:MovieClip;
public var item_stock_1:TextField;
public var item_stock_2:TextField;
public var item_stock_3:TextField;
public var item_stock_4:TextField;
public var item_stock_5:TextField;
public var item_stock_6:TextField;
public var item_stock_7:TextField;
public var equip_stock_1:TextField;
public var equip_stock_3:TextField;
public var equip_stock_5:TextField;
public var equip_stock_7:TextField;
public var equip_stock_8:TextField;
public var equip_stock_9:TextField;
public var equip_stock_4:TextField;
public var equip_stock_2:TextField;
public var equip_stock_6:TextField;
public var btn_close:SimpleButton;
public var equip_10:MovieClip;
public var equip_11:MovieClip;
public var equip_12:MovieClip;
public var equip_13:MovieClip;
public var equip_14:MovieClip;
public var equip_15:MovieClip;
public var equip_16:MovieClip;
public var equip_17:MovieClip;
public var equip_18:MovieClip;
public var equip_19:MovieClip;
public var equip_20:MovieClip;
public var equip_21:MovieClip;
public var equip_22:MovieClip;
public var equip_23:MovieClip;
public var equip_24:MovieClip;
public var equip_25:MovieClip;
public var equip_26:MovieClip;
public var equip_27:MovieClip;
public var equip_28:MovieClip;
public var equip_29:MovieClip;
public var equip_30:MovieClip;
private var mSystem;
public var mat_1:MovieClip;
public var mat_2:MovieClip;
public var mat_3:MovieClip;
public var mat_4:MovieClip;
public var mat_5:MovieClip;
public var equip_stock_10:TextField;
public var equip_stock_11:TextField;
public var equip_stock_12:TextField;
public var equip_stock_13:TextField;
public var equip_stock_14:TextField;
public var equip_stock_16:TextField;
public var equip_stock_18:TextField;
public var equip_stock_19:TextField;
public var mat_9:MovieClip;
public var equip_stock_15:TextField;
public var equip_stock_17:TextField;
public var mat_6:MovieClip;
public var mat_7:MovieClip;
public var mat_8:MovieClip;
public var equip_stock_20:TextField;
public var equip_stock_21:TextField;
public var equip_stock_22:TextField;
public var equip_stock_23:TextField;
public var equip_stock_24:TextField;
public var equip_stock_25:TextField;
public var equip_stock_26:TextField;
public var equip_stock_27:TextField;
public var equip_stock_28:TextField;
public var equip_stock_29:TextField;
public var equip_stock_30:TextField;
public var mat_11:MovieClip;
public var mat_13:MovieClip;
public var mat_15:MovieClip;
public var mat_10:MovieClip;
public var mat_12:MovieClip;
public var mat_stock_1:TextField;
public var mat_stock_3:TextField;
public var mat_stock_5:TextField;
public var mat_stock_6:TextField;
public var mat_stock_7:TextField;
public var mat_stock_8:TextField;
public var mat_stock_2:TextField;
public var mat_stock_4:TextField;
public var mat_stock_9:TextField;
public var mat_14:MovieClip;
public var equip_1:MovieClip;
public var equip_2:MovieClip;
public var equip_3:MovieClip;
public var equip_4:MovieClip;
public var equip_5:MovieClip;
public var mat_stock_10:TextField;
public var mat_stock_11:TextField;
public var mat_stock_12:TextField;
public var mat_stock_13:TextField;
public var mat_stock_14:TextField;
public var mat_stock_15:TextField;
public var equip_6:MovieClip;
public var equip_7:MovieClip;
public var equip_8:MovieClip;
public var equip_9:MovieClip;
private var dispCont;
private function closeClick(_arg1:MouseEvent):void{
destroy();
}
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
trace("init inventory ... ok !");
this.equip_1.gotoAndStop(1);
this.equip_2.gotoAndStop(1);
this.equip_3.gotoAndStop(1);
this.equip_4.gotoAndStop(1);
this.equip_5.gotoAndStop(1);
this.equip_6.gotoAndStop(1);
this.equip_7.gotoAndStop(1);
this.equip_8.gotoAndStop(1);
this.equip_9.gotoAndStop(1);
this.equip_10.gotoAndStop(1);
this.equip_11.gotoAndStop(1);
this.equip_12.gotoAndStop(1);
this.equip_13.gotoAndStop(1);
this.equip_14.gotoAndStop(1);
this.equip_15.gotoAndStop(1);
this.equip_16.gotoAndStop(1);
this.equip_17.gotoAndStop(1);
this.equip_18.gotoAndStop(1);
this.equip_19.gotoAndStop(1);
this.equip_20.gotoAndStop(1);
this.equip_21.gotoAndStop(1);
this.equip_22.gotoAndStop(1);
this.equip_23.gotoAndStop(1);
this.equip_24.gotoAndStop(1);
this.equip_25.gotoAndStop(1);
this.equip_26.gotoAndStop(1);
this.equip_27.gotoAndStop(1);
this.equip_28.gotoAndStop(1);
this.equip_29.gotoAndStop(1);
this.equip_30.gotoAndStop(1);
this.equip_stock_1.htmlText = String("");
this.equip_stock_2.htmlText = String("");
this.equip_stock_3.htmlText = String("");
this.equip_stock_4.htmlText = String("");
this.equip_stock_5.htmlText = String("");
this.equip_stock_6.htmlText = String("");
this.equip_stock_7.htmlText = String("");
this.equip_stock_8.htmlText = String("");
this.equip_stock_9.htmlText = String("");
this.equip_stock_10.htmlText = String("");
this.equip_stock_11.htmlText = String("");
this.equip_stock_12.htmlText = String("");
this.equip_stock_13.htmlText = String("");
this.equip_stock_14.htmlText = String("");
this.equip_stock_15.htmlText = String("");
this.equip_stock_16.htmlText = String("");
this.equip_stock_17.htmlText = String("");
this.equip_stock_18.htmlText = String("");
this.equip_stock_19.htmlText = String("");
this.equip_stock_20.htmlText = String("");
this.equip_stock_21.htmlText = String("");
this.equip_stock_22.htmlText = String("");
this.equip_stock_23.htmlText = String("");
this.equip_stock_24.htmlText = String("");
this.equip_stock_25.htmlText = String("");
this.equip_stock_26.htmlText = String("");
this.equip_stock_27.htmlText = String("");
this.equip_stock_28.htmlText = String("");
this.equip_stock_29.htmlText = String("");
this.equip_stock_30.htmlText = String("");
this.item_1.gotoAndStop(1);
this.item_2.gotoAndStop(1);
this.item_3.gotoAndStop(1);
this.item_4.gotoAndStop(1);
this.item_5.gotoAndStop(1);
this.item_6.gotoAndStop(1);
this.item_7.gotoAndStop(1);
this.item_stock_1.htmlText = String("");
this.item_stock_2.htmlText = String("");
this.item_stock_3.htmlText = String("");
this.item_stock_4.htmlText = String("");
this.item_stock_5.htmlText = String("");
this.item_stock_6.htmlText = String("");
this.item_stock_7.htmlText = String("");
this.mat_1.gotoAndStop(1);
this.mat_2.gotoAndStop(1);
this.mat_3.gotoAndStop(1);
this.mat_4.gotoAndStop(1);
this.mat_5.gotoAndStop(1);
this.mat_6.gotoAndStop(1);
this.mat_7.gotoAndStop(1);
this.mat_8.gotoAndStop(1);
this.mat_9.gotoAndStop(1);
this.mat_10.gotoAndStop(1);
this.mat_11.gotoAndStop(1);
this.mat_12.gotoAndStop(1);
this.mat_13.gotoAndStop(1);
this.mat_14.gotoAndStop(1);
this.mat_15.gotoAndStop(1);
this.mat_stock_1.htmlText = String("");
this.mat_stock_2.htmlText = String("");
this.mat_stock_3.htmlText = String("");
this.mat_stock_4.htmlText = String("");
this.mat_stock_5.htmlText = String("");
this.mat_stock_6.htmlText = String("");
this.mat_stock_7.htmlText = String("");
this.mat_stock_8.htmlText = String("");
this.mat_stock_9.htmlText = String("");
this.mat_stock_10.htmlText = String("");
this.mat_stock_11.htmlText = String("");
this.mat_stock_12.htmlText = String("");
this.mat_stock_13.htmlText = String("");
this.mat_stock_14.htmlText = String("");
this.mat_stock_15.htmlText = String("");
if (mSystem.mDat.equip_stock[0] > 0){
this.equip_1.gotoAndStop(9);
this.equip_stock_1.htmlText = String(mSystem.mDat.equip_stock[0]);
};
if (mSystem.mDat.equip_stock[1] > 0){
this.equip_2.gotoAndStop(10);
this.equip_stock_2.htmlText = String(mSystem.mDat.equip_stock[1]);
};
if (mSystem.mDat.equip_stock[2] > 0){
this.equip_3.gotoAndStop(11);
this.equip_stock_3.htmlText = String(mSystem.mDat.equip_stock[2]);
};
if (mSystem.mDat.equip_stock[3] > 0){
this.equip_4.gotoAndStop(12);
this.equip_stock_4.htmlText = String(mSystem.mDat.equip_stock[3]);
};
if (mSystem.mDat.equip_stock[4] > 0){
this.equip_5.gotoAndStop(13);
this.equip_stock_5.htmlText = String(mSystem.mDat.equip_stock[4]);
};
if (mSystem.mDat.equip_stock[5] > 0){
this.equip_6.gotoAndStop(14);
this.equip_stock_6.htmlText = String(mSystem.mDat.equip_stock[5]);
};
if (mSystem.mDat.equip_stock[6] > 0){
this.equip_7.gotoAndStop(15);
this.equip_stock_7.htmlText = String(mSystem.mDat.equip_stock[6]);
};
if (mSystem.mDat.equip_stock[7] > 0){
this.equip_8.gotoAndStop(16);
this.equip_stock_8.htmlText = String(mSystem.mDat.equip_stock[7]);
};
if (mSystem.mDat.equip_stock[8] > 0){
this.equip_9.gotoAndStop(17);
this.equip_stock_9.htmlText = String(mSystem.mDat.equip_stock[8]);
};
if (mSystem.mDat.equip_stock[9] > 0){
this.equip_10.gotoAndStop(18);
this.equip_stock_10.htmlText = String(mSystem.mDat.equip_stock[9]);
};
if (mSystem.mDat.equip_stock[10] > 0){
this.equip_11.gotoAndStop(19);
this.equip_stock_11.htmlText = String(mSystem.mDat.equip_stock[10]);
};
if (mSystem.mDat.equip_stock[11] > 0){
this.equip_12.gotoAndStop(20);
this.equip_stock_12.htmlText = String(mSystem.mDat.equip_stock[11]);
};
if (mSystem.mDat.equip_stock[12] > 0){
this.equip_13.gotoAndStop(21);
this.equip_stock_13.htmlText = String(mSystem.mDat.equip_stock[12]);
};
if (mSystem.mDat.equip_stock[13] > 0){
this.equip_14.gotoAndStop(22);
this.equip_stock_14.htmlText = String(mSystem.mDat.equip_stock[13]);
};
if (mSystem.mDat.equip_stock[14] > 0){
this.equip_15.gotoAndStop(23);
this.equip_stock_15.htmlText = String(mSystem.mDat.equip_stock[14]);
};
if (mSystem.mDat.equip_stock[15] > 0){
this.equip_16.gotoAndStop(24);
this.equip_stock_16.htmlText = String(mSystem.mDat.equip_stock[15]);
};
if (mSystem.mDat.equip_stock[16] > 0){
this.equip_17.gotoAndStop(25);
this.equip_stock_17.htmlText = String(mSystem.mDat.equip_stock[16]);
};
if (mSystem.mDat.equip_stock[17] > 0){
this.equip_18.gotoAndStop(26);
this.equip_stock_18.htmlText = String(mSystem.mDat.equip_stock[17]);
};
if (mSystem.mDat.equip_stock[18] > 0){
this.equip_19.gotoAndStop(27);
this.equip_stock_19.htmlText = String(mSystem.mDat.equip_stock[18]);
};
if (mSystem.mDat.equip_stock[19] > 0){
this.equip_20.gotoAndStop(28);
this.equip_stock_20.htmlText = String(mSystem.mDat.equip_stock[19]);
};
if (mSystem.mDat.equip_stock[20] > 0){
this.equip_21.gotoAndStop(29);
this.equip_stock_21.htmlText = String(mSystem.mDat.equip_stock[20]);
};
if (mSystem.mDat.equip_stock[21] > 0){
this.equip_22.gotoAndStop(30);
this.equip_stock_22.htmlText = String(mSystem.mDat.equip_stock[21]);
};
if (mSystem.mDat.equip_stock[22] > 0){
this.equip_23.gotoAndStop(31);
this.equip_stock_23.htmlText = String(mSystem.mDat.equip_stock[22]);
};
if (mSystem.mDat.equip_stock[23] > 0){
this.equip_24.gotoAndStop(32);
this.equip_stock_24.htmlText = String(mSystem.mDat.equip_stock[23]);
};
if (mSystem.mDat.equip_stock[24] > 0){
this.equip_25.gotoAndStop(33);
this.equip_stock_25.htmlText = String(mSystem.mDat.equip_stock[24]);
};
if (mSystem.mDat.equip_stock[25] > 0){
this.equip_26.gotoAndStop(34);
this.equip_stock_26.htmlText = String(mSystem.mDat.equip_stock[25]);
};
if (mSystem.mDat.equip_stock[26] > 0){
this.equip_27.gotoAndStop(35);
this.equip_stock_27.htmlText = String(mSystem.mDat.equip_stock[26]);
};
if (mSystem.mDat.equip_stock[27] > 0){
this.equip_28.gotoAndStop(36);
this.equip_stock_28.htmlText = String(mSystem.mDat.equip_stock[27]);
};
if (mSystem.mDat.equip_stock[28] > 0){
this.equip_29.gotoAndStop(37);
this.equip_stock_29.htmlText = String(mSystem.mDat.equip_stock[28]);
};
if (mSystem.mDat.equip_stock[29] > 0){
this.equip_30.gotoAndStop(38);
this.equip_stock_30.htmlText = String(mSystem.mDat.equip_stock[29]);
};
if (mSystem.mDat.item_stock[0] > 0){
this.item_1.gotoAndStop(2);
this.item_stock_1.htmlText = String(mSystem.mDat.item_stock[0]);
};
if (mSystem.mDat.item_stock[1] > 0){
this.item_2.gotoAndStop(3);
this.item_stock_2.htmlText = String(mSystem.mDat.item_stock[1]);
};
if (mSystem.mDat.item_stock[2] > 0){
this.item_3.gotoAndStop(4);
this.item_stock_3.htmlText = String(mSystem.mDat.item_stock[2]);
};
if (mSystem.mDat.item_stock[3] > 0){
this.item_4.gotoAndStop(5);
this.item_stock_4.htmlText = String(mSystem.mDat.item_stock[3]);
};
if (mSystem.mDat.item_stock[4] > 0){
this.item_5.gotoAndStop(6);
this.item_stock_5.htmlText = String(mSystem.mDat.item_stock[4]);
};
if (mSystem.mDat.item_stock[5] > 0){
this.item_6.gotoAndStop(7);
this.item_stock_6.htmlText = String(mSystem.mDat.item_stock[5]);
};
if (mSystem.mDat.item_stock[6] > 0){
this.item_7.gotoAndStop(8);
this.item_stock_7.htmlText = String(mSystem.mDat.item_stock[6]);
};
if (mSystem.mDat.material_stock[0] > 0){
this.mat_1.gotoAndStop(39);
this.mat_stock_1.htmlText = String(mSystem.mDat.material_stock[0]);
};
if (mSystem.mDat.material_stock[1] > 0){
this.mat_2.gotoAndStop(40);
this.mat_stock_2.htmlText = String(mSystem.mDat.material_stock[1]);
};
if (mSystem.mDat.material_stock[2] > 0){
this.mat_3.gotoAndStop(41);
this.mat_stock_3.htmlText = String(mSystem.mDat.material_stock[2]);
};
if (mSystem.mDat.material_stock[3] > 0){
this.mat_4.gotoAndStop(42);
this.mat_stock_4.htmlText = String(mSystem.mDat.material_stock[3]);
};
if (mSystem.mDat.material_stock[4] > 0){
this.mat_5.gotoAndStop(43);
this.mat_stock_5.htmlText = String(mSystem.mDat.material_stock[4]);
};
if (mSystem.mDat.material_stock[5] > 0){
this.mat_6.gotoAndStop(44);
this.mat_stock_6.htmlText = String(mSystem.mDat.material_stock[5]);
};
if (mSystem.mDat.material_stock[6] > 0){
this.mat_7.gotoAndStop(45);
this.mat_stock_7.htmlText = String(mSystem.mDat.material_stock[6]);
};
if (mSystem.mDat.material_stock[7] > 0){
this.mat_8.gotoAndStop(46);
this.mat_stock_8.htmlText = String(mSystem.mDat.material_stock[7]);
};
if (mSystem.mDat.material_stock[8] > 0){
this.mat_9.gotoAndStop(47);
this.mat_stock_9.htmlText = String(mSystem.mDat.material_stock[8]);
};
if (mSystem.mDat.material_stock[9] > 0){
this.mat_10.gotoAndStop(48);
this.mat_stock_10.htmlText = String(mSystem.mDat.material_stock[9]);
};
if (mSystem.mDat.material_stock[10] > 0){
this.mat_11.gotoAndStop(49);
this.mat_stock_11.htmlText = String(mSystem.mDat.material_stock[10]);
};
if (mSystem.mDat.material_stock[11] > 0){
this.mat_12.gotoAndStop(50);
this.mat_stock_12.htmlText = String(mSystem.mDat.material_stock[11]);
};
if (mSystem.mDat.material_stock[12] > 0){
this.mat_13.gotoAndStop(51);
this.mat_stock_13.htmlText = String(mSystem.mDat.material_stock[12]);
};
if (mSystem.mDat.material_stock[13] > 0){
this.mat_14.gotoAndStop(52);
this.mat_stock_14.htmlText = String(mSystem.mDat.material_stock[13]);
};
if (mSystem.mDat.material_stock[14] > 0){
this.mat_15.gotoAndStop(53);
this.mat_stock_15.htmlText = String(mSystem.mDat.material_stock[14]);
};
}
public function destroy(){
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy inventory ... ok !");
}
}
}//package FZGame.Rpg.Interface
Section 90
//MenuMonsterShop (FZGame.Rpg.Interface.MenuMonsterShop)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
import flash.text.*;
public class MenuMonsterShop extends MovieClip {
public var unit_11_select:MovieClip;
public var unit_level:TextField;
public var phys:TextField;
public var water:TextField;
public var unit_9_select:MovieClip;
public var unit_10_select:MovieClip;
public var btn_buy:SimpleButton;
private var unit_sale_3_price:int;// = 0
public var fire:TextField;
public var unit_4:unit_face_slot;
public var unit_6:unit_face_slot;
public var unit_7:unit_face_slot;
public var btn_prev:SimpleButton;
public var unit_8_select:MovieClip;
public var resistance:TextField;
public var strength:TextField;
private var unit_current_id:int;// = 0
public var unit_8:unit_face_slot;
public var unit_9:unit_face_slot;
public var defense:TextField;
public var unit_5:unit_face_slot;
public var price:TextField;
private var unit_current_pos:int;// = 1
public var pos:TextField;
public var speciality:TextField;
private var unit_sale_3:int;// = 0
private var unit_sale_4:int;// = 0
private var unit_sale_1:int;// = 0
public var health:TextField;
public var unit_7_select:MovieClip;
private var unit_sale_4_price:int;// = 0
public var btn_close:SimpleButton;
public var unit_name:TextField;
private var unit_sale_2:int;// = 0
public var unit_6_select:MovieClip;
public var unit:MovieClip;
public var energy:TextField;
private var level:int;// = 1
private var unit_current_price:int;// = 0
public var unit_14_select:MovieClip;
public var unit_5_select:MovieClip;
private var unit_sale_1_price:int;// = 0
public var unit_15_select:MovieClip;
public var magic:TextField;
public var unit_10:unit_face_slot;
public var unit_11:unit_face_slot;
public var unit_12:unit_face_slot;
public var unit_13:unit_face_slot;
public var unit_15:unit_face_slot;
public var money:TextField;
public var unit_4_select:MovieClip;
public var skill_1:MovieClip;
public var skill_2:MovieClip;
public var unit_13_select:MovieClip;
public var skill_4:MovieClip;
public var skill_3:MovieClip;
public var unit_next:TextField;
public var unit_14:unit_face_slot;
public var unit_12_select:MovieClip;
public var thunder:TextField;
private var unit_sale_2_price:int;// = 0
public var mystic:TextField;
public var btn_delete:SimpleButton;
private var dispCont;
public var btn_next:SimpleButton;
private var mSystem;
private function updateView(){
this.unit_4.gotoAndStop((mSystem.mPlayerParty.mSlot4._ID + 1));
this.unit_5.gotoAndStop((mSystem.mPlayerParty.mSlot5._ID + 1));
this.unit_6.gotoAndStop((mSystem.mPlayerParty.mSlot6._ID + 1));
this.unit_7.gotoAndStop((mSystem.mPlayerParty.mSlot7._ID + 1));
this.unit_8.gotoAndStop((mSystem.mPlayerParty.mSlot8._ID + 1));
this.unit_9.gotoAndStop((mSystem.mPlayerParty.mSlot9._ID + 1));
this.unit_10.gotoAndStop((mSystem.mPlayerParty.mSlot10._ID + 1));
this.unit_11.gotoAndStop((mSystem.mPlayerParty.mSlot11._ID + 1));
this.unit_12.gotoAndStop((mSystem.mPlayerParty.mSlot12._ID + 1));
this.unit_13.gotoAndStop((mSystem.mPlayerParty.mSlot13._ID + 1));
this.unit_14.gotoAndStop((mSystem.mPlayerParty.mSlot14._ID + 1));
this.unit_15.gotoAndStop((mSystem.mPlayerParty.mSlot15._ID + 1));
var _local1:* = new ListCharUnitSet();
_local1.setBaseUnit(unit_current_id);
_local1.initialise();
this.unit.gotoAndStop(_local1._ID);
this.unit_name.htmlText = String(_local1._NAME);
this.unit_level.htmlText = String(("Level " + _local1._LEVEL));
this.unit_next.htmlText = String("Next Exp 1000");
this.health.htmlText = String(_local1._health_max);
this.strength.htmlText = String(_local1._strength);
this.defense.htmlText = String(_local1._defense);
this.magic.htmlText = String(_local1._magic);
this.resistance.htmlText = String(_local1._magic);
this.phys.htmlText = String(getResistanceString(_local1._ELEMENT_PHYS));
this.energy.htmlText = String(getResistanceString(_local1._ELEMENT_ENERGY));
this.fire.htmlText = String(getResistanceString(_local1._ELEMENT_FIRE));
this.water.htmlText = String(getResistanceString(_local1._ELEMENT_WATER));
this.thunder.htmlText = String(getResistanceString(_local1._ELEMENT_THUNDER));
this.mystic.htmlText = String(getResistanceString(_local1._ELEMENT_MYSTIC));
this.skill_1.gotoAndStop(1);
this.skill_2.gotoAndStop(1);
this.skill_3.gotoAndStop(1);
this.skill_4.gotoAndStop(1);
if (_local1._SKILL_1 > 0){
this.skill_1.gotoAndStop((_local1._SKILL_1 + 1));
};
if (_local1._SKILL_2 > 0){
this.skill_2.gotoAndStop((_local1._SKILL_2 + 1));
};
if (_local1._SKILL_3 > 0){
this.skill_3.gotoAndStop((_local1._SKILL_3 + 1));
};
if (_local1._SKILL_4 > 0){
this.skill_4.gotoAndStop((_local1._SKILL_4 + 1));
};
this.speciality.htmlText = getSpecialityString(_local1._ABILITY);
this.price.htmlText = String(unit_current_price);
this.money.htmlText = String(mSystem.mDat.player_money);
this.pos.htmlText = String((unit_current_pos + " / 4"));
}
private function prevClick(_arg1:MouseEvent):void{
unit_current_pos = Math.max((unit_current_pos - 1), 1);
if (unit_current_pos == 1){
unit_current_id = unit_sale_1;
unit_current_price = unit_sale_1_price;
} else {
if (unit_current_pos == 2){
unit_current_id = unit_sale_2;
unit_current_price = unit_sale_2_price;
} else {
if (unit_current_pos == 3){
unit_current_id = unit_sale_3;
unit_current_price = unit_sale_3_price;
} else {
if (unit_current_pos == 4){
unit_current_id = unit_sale_4;
unit_current_price = unit_sale_4_price;
};
};
};
};
updateView();
}
private function unit7Click(_arg1:MouseEvent):void{
if (this.unit_7_select.visible){
this.unit_7_select.visible = false;
} else {
this.unit_7_select.visible = true;
};
}
public function init(_arg1, _arg2:int=1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
level = _arg2;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.btn_delete.addEventListener(MouseEvent.CLICK, deleteClick, false, 0, true);
this.btn_buy.addEventListener(MouseEvent.CLICK, buyClick, false, 0, true);
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
this.unit_4.addEventListener(MouseEvent.CLICK, unit4Click, false, 0, true);
this.unit_5.addEventListener(MouseEvent.CLICK, unit5Click, false, 0, true);
this.unit_6.addEventListener(MouseEvent.CLICK, unit6Click, false, 0, true);
this.unit_7.addEventListener(MouseEvent.CLICK, unit7Click, false, 0, true);
this.unit_8.addEventListener(MouseEvent.CLICK, unit8Click, false, 0, true);
this.unit_9.addEventListener(MouseEvent.CLICK, unit9Click, false, 0, true);
this.unit_10.addEventListener(MouseEvent.CLICK, unit10Click, false, 0, true);
this.unit_11.addEventListener(MouseEvent.CLICK, unit11Click, false, 0, true);
this.unit_12.addEventListener(MouseEvent.CLICK, unit12Click, false, 0, true);
this.unit_13.addEventListener(MouseEvent.CLICK, unit13Click, false, 0, true);
this.unit_14.addEventListener(MouseEvent.CLICK, unit14Click, false, 0, true);
this.unit_15.addEventListener(MouseEvent.CLICK, unit15Click, false, 0, true);
this.btn_next.addEventListener(MouseEvent.CLICK, nextClick, false, 0, true);
this.btn_prev.addEventListener(MouseEvent.CLICK, prevClick, false, 0, true);
this.unit_4_select.visible = false;
this.unit_5_select.visible = false;
this.unit_6_select.visible = false;
this.unit_7_select.visible = false;
this.unit_8_select.visible = false;
this.unit_9_select.visible = false;
this.unit_10_select.visible = false;
this.unit_11_select.visible = false;
this.unit_12_select.visible = false;
this.unit_13_select.visible = false;
this.unit_14_select.visible = false;
this.unit_15_select.visible = false;
unit_sale_1 = 1;
unit_sale_1_price = 2500;
unit_sale_2 = 16;
unit_sale_2_price = 1000;
unit_sale_3 = 12;
unit_sale_3_price = 1500;
unit_sale_4 = 11;
unit_sale_4_price = 3500;
if (level == 2){
unit_sale_1 = 26;
unit_sale_1_price = 4000;
unit_sale_2 = 17;
unit_sale_2_price = 2000;
unit_sale_3 = 3;
unit_sale_3_price = 7500;
unit_sale_4 = 4;
unit_sale_4_price = 7500;
} else {
if (level == 3){
unit_sale_1 = 8;
unit_sale_1_price = 8000;
unit_sale_2 = 9;
unit_sale_2_price = 9000;
unit_sale_3 = 6;
unit_sale_3_price = 5000;
unit_sale_4 = 5;
unit_sale_4_price = 6000;
} else {
if (level == 4){
unit_sale_1 = 29;
unit_sale_1_price = 7500;
unit_sale_2 = 25;
unit_sale_2_price = 9000;
unit_sale_3 = 18;
unit_sale_3_price = 8000;
unit_sale_4 = 13;
unit_sale_4_price = 10000;
} else {
if (level == 5){
unit_sale_1 = 10;
unit_sale_1_price = 15000;
unit_sale_2 = 2;
unit_sale_2_price = 15000;
unit_sale_3 = 14;
unit_sale_3_price = 20000;
unit_sale_4 = 19;
unit_sale_4_price = 20000;
} else {
if (level == 6){
unit_sale_1 = 26;
unit_sale_1_price = 3500;
unit_sale_2 = 15;
unit_sale_2_price = 8000;
unit_sale_3 = 7;
unit_sale_3_price = 10000;
unit_sale_4 = 27;
unit_sale_4_price = 12000;
} else {
if (level == 7){
unit_sale_1 = 23;
unit_sale_1_price = 12000;
unit_sale_2 = 30;
unit_sale_2_price = 15000;
unit_sale_3 = 21;
unit_sale_3_price = 15000;
unit_sale_4 = 24;
unit_sale_4_price = 25000;
} else {
if (level == 8){
unit_sale_1 = 20;
unit_sale_1_price = 15000;
unit_sale_2 = 22;
unit_sale_2_price = 35000;
unit_sale_3 = 28;
unit_sale_3_price = 40000;
unit_sale_4 = 31;
unit_sale_4_price = 50000;
};
};
};
};
};
};
};
unit_current_pos = 1;
unit_current_id = unit_sale_1;
unit_current_price = unit_sale_1_price;
trace("init monster shop ... ok !");
updateView();
}
private function getResistanceString(_arg1):String{
if (_arg1 == 1){
return (String("Weak"));
};
if (_arg1 == 2){
return (String("Strong"));
};
if (_arg1 == 3){
return (String("Null"));
};
if (_arg1 == 4){
return (String("Absorb"));
};
return (String("Normal"));
}
private function unit14Click(_arg1:MouseEvent):void{
if (this.unit_14_select.visible){
this.unit_14_select.visible = false;
} else {
this.unit_14_select.visible = true;
};
}
private function unit4Click(_arg1:MouseEvent):void{
if (this.unit_4_select.visible){
this.unit_4_select.visible = false;
} else {
this.unit_4_select.visible = true;
};
}
private function getSpecialityString(_arg1):String{
if (_arg1 == 5){
return (String("Resist Phys Element"));
};
if (_arg1 == 6){
return (String("Resist Energy Element"));
};
if (_arg1 == 7){
return (String("Resist Fire Element"));
};
if (_arg1 == 8){
return (String("Resist Water Element"));
};
if (_arg1 == 9){
return (String("Resist Thunder Element"));
};
if (_arg1 == 10){
return (String("Resist Mystic Element"));
};
if (_arg1 == 11){
return (String("Resist All Element"));
};
if (_arg1 == 12){
return (String("AP Boost + 1"));
};
if (_arg1 == 13){
return (String("AP Boost + 2"));
};
if (_arg1 == 14){
return (String("Rage, 25% health, damage up 50%"));
};
if (_arg1 == 15){
return (String("Exp Plus, Gain 25% more experience"));
};
if (_arg1 == 16){
return (String("Endure, survive from fatal hit 1x "));
};
if (_arg1 == 17){
return (String("Pierce, Penetrate elemental defense"));
};
if (_arg1 == 18){
return (String("Critical Up"));
};
if (_arg1 == 19){
return (String("Drain, absorb 2% damage"));
};
if (_arg1 == 20){
return (String("Barrier, reflect 20% damage receive"));
};
return (String(""));
}
private function unit9Click(_arg1:MouseEvent):void{
if (this.unit_9_select.visible){
this.unit_9_select.visible = false;
} else {
this.unit_9_select.visible = true;
};
}
private function closeClick(_arg1:MouseEvent):void{
destroy();
}
private function unit11Click(_arg1:MouseEvent):void{
if (this.unit_11_select.visible){
this.unit_11_select.visible = false;
} else {
this.unit_11_select.visible = true;
};
}
private function nextClick(_arg1:MouseEvent):void{
unit_current_pos = Math.min((unit_current_pos + 1), 4);
if (unit_current_pos == 1){
unit_current_id = unit_sale_1;
unit_current_price = unit_sale_1_price;
} else {
if (unit_current_pos == 2){
unit_current_id = unit_sale_2;
unit_current_price = unit_sale_2_price;
} else {
if (unit_current_pos == 3){
unit_current_id = unit_sale_3;
unit_current_price = unit_sale_3_price;
} else {
if (unit_current_pos == 4){
unit_current_id = unit_sale_4;
unit_current_price = unit_sale_4_price;
};
};
};
};
updateView();
}
private function unit6Click(_arg1:MouseEvent):void{
if (this.unit_6_select.visible){
this.unit_6_select.visible = false;
} else {
this.unit_6_select.visible = true;
};
}
private function unit13Click(_arg1:MouseEvent):void{
if (this.unit_13_select.visible){
this.unit_13_select.visible = false;
} else {
this.unit_13_select.visible = true;
};
}
private function buyClick(_arg1:MouseEvent):void{
var _local2:Boolean;
if (mSystem.mPlayerParty.mSlot1._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot2._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot3._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot4._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot5._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot6._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot7._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot8._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot9._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot10._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot11._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot12._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot13._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot14._ID == unit_current_id){
_local2 = true;
};
if (mSystem.mPlayerParty.mSlot15._ID == unit_current_id){
_local2 = true;
};
if (_local2){
mSystem.mEffect.msgInfo("warning: unit already owned, no duplicated unit !!");
return;
};
if ((((((((((((((((((((((((mSystem.mPlayerParty.mSlot4._ID > 0)) && ((mSystem.mPlayerParty.mSlot5._ID > 0)))) && ((mSystem.mPlayerParty.mSlot6._ID > 0)))) && ((mSystem.mPlayerParty.mSlot7._ID > 0)))) && ((mSystem.mPlayerParty.mSlot8._ID > 0)))) && ((mSystem.mPlayerParty.mSlot9._ID > 0)))) && ((mSystem.mPlayerParty.mSlot10._ID > 0)))) && ((mSystem.mPlayerParty.mSlot11._ID > 0)))) && ((mSystem.mPlayerParty.mSlot12._ID > 0)))) && ((mSystem.mPlayerParty.mSlot13._ID > 0)))) && ((mSystem.mPlayerParty.mSlot14._ID > 0)))) && ((mSystem.mPlayerParty.mSlot15._ID > 0)))){
mSystem.mEffect.msgInfo("warning: party slot full !!");
return;
};
if (mSystem.mDat.player_money < unit_current_price){
mSystem.mEffect.msgInfo("warning: money not enough !!");
return;
};
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - unit_current_price), 0);
if (mSystem.mPlayerParty.mSlot4._ID == 0){
mSystem.mPlayerParty.mSlot4.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot4.initialise();
} else {
if (mSystem.mPlayerParty.mSlot5._ID == 0){
mSystem.mPlayerParty.mSlot5.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot5.initialise();
} else {
if (mSystem.mPlayerParty.mSlot6._ID == 0){
mSystem.mPlayerParty.mSlot6.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot6.initialise();
} else {
if (mSystem.mPlayerParty.mSlot7._ID == 0){
mSystem.mPlayerParty.mSlot7.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot7.initialise();
} else {
if (mSystem.mPlayerParty.mSlot8._ID == 0){
mSystem.mPlayerParty.mSlot8.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot8.initialise();
} else {
if (mSystem.mPlayerParty.mSlot9._ID == 0){
mSystem.mPlayerParty.mSlot9.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot9.initialise();
} else {
if (mSystem.mPlayerParty.mSlot10._ID == 0){
mSystem.mPlayerParty.mSlot10.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot10.initialise();
} else {
if (mSystem.mPlayerParty.mSlot11._ID == 0){
mSystem.mPlayerParty.mSlot11.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot11.initialise();
} else {
if (mSystem.mPlayerParty.mSlot12._ID == 0){
mSystem.mPlayerParty.mSlot12.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot12.initialise();
} else {
if (mSystem.mPlayerParty.mSlot13._ID == 0){
mSystem.mPlayerParty.mSlot13.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot13.initialise();
} else {
if (mSystem.mPlayerParty.mSlot14._ID == 0){
mSystem.mPlayerParty.mSlot14.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot14.initialise();
} else {
if (mSystem.mPlayerParty.mSlot15._ID == 0){
mSystem.mPlayerParty.mSlot15.setBaseUnit(unit_current_id);
mSystem.mPlayerParty.mSlot15.initialise();
};
};
};
};
};
};
};
};
};
};
};
};
updateView();
}
private function deleteClick(_arg1:MouseEvent):void{
if (this.unit_4_select.visible){
mSystem.mPlayerParty.mSlot4.setBaseUnit(0);
};
if (this.unit_5_select.visible){
mSystem.mPlayerParty.mSlot5.setBaseUnit(0);
};
if (this.unit_6_select.visible){
mSystem.mPlayerParty.mSlot6.setBaseUnit(0);
};
if (this.unit_7_select.visible){
mSystem.mPlayerParty.mSlot7.setBaseUnit(0);
};
if (this.unit_8_select.visible){
mSystem.mPlayerParty.mSlot8.setBaseUnit(0);
};
if (this.unit_9_select.visible){
mSystem.mPlayerParty.mSlot9.setBaseUnit(0);
};
if (this.unit_10_select.visible){
mSystem.mPlayerParty.mSlot10.setBaseUnit(0);
};
if (this.unit_11_select.visible){
mSystem.mPlayerParty.mSlot11.setBaseUnit(0);
};
if (this.unit_12_select.visible){
mSystem.mPlayerParty.mSlot12.setBaseUnit(0);
};
if (this.unit_13_select.visible){
mSystem.mPlayerParty.mSlot13.setBaseUnit(0);
};
if (this.unit_14_select.visible){
mSystem.mPlayerParty.mSlot14.setBaseUnit(0);
};
if (this.unit_15_select.visible){
mSystem.mPlayerParty.mSlot15.setBaseUnit(0);
};
updateView();
}
private function unit8Click(_arg1:MouseEvent):void{
if (this.unit_8_select.visible){
this.unit_8_select.visible = false;
} else {
this.unit_8_select.visible = true;
};
}
private function unit10Click(_arg1:MouseEvent):void{
if (this.unit_10_select.visible){
this.unit_10_select.visible = false;
} else {
this.unit_10_select.visible = true;
};
}
private function unit15Click(_arg1:MouseEvent):void{
if (this.unit_15_select.visible){
this.unit_15_select.visible = false;
} else {
this.unit_15_select.visible = true;
};
}
private function unit5Click(_arg1:MouseEvent):void{
if (this.unit_5_select.visible){
this.unit_5_select.visible = false;
} else {
this.unit_5_select.visible = true;
};
}
private function unit12Click(_arg1:MouseEvent):void{
if (this.unit_12_select.visible){
this.unit_12_select.visible = false;
} else {
this.unit_12_select.visible = true;
};
}
public function destroy(){
this.btn_delete.removeEventListener(MouseEvent.CLICK, deleteClick);
this.btn_buy.removeEventListener(MouseEvent.CLICK, buyClick);
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
this.unit_4.removeEventListener(MouseEvent.CLICK, unit4Click);
this.unit_5.removeEventListener(MouseEvent.CLICK, unit5Click);
this.unit_6.removeEventListener(MouseEvent.CLICK, unit6Click);
this.unit_7.removeEventListener(MouseEvent.CLICK, unit7Click);
this.unit_8.removeEventListener(MouseEvent.CLICK, unit8Click);
this.unit_9.removeEventListener(MouseEvent.CLICK, unit9Click);
this.unit_10.removeEventListener(MouseEvent.CLICK, unit10Click);
this.unit_11.removeEventListener(MouseEvent.CLICK, unit11Click);
this.unit_12.removeEventListener(MouseEvent.CLICK, unit12Click);
this.unit_13.removeEventListener(MouseEvent.CLICK, unit13Click);
this.unit_14.removeEventListener(MouseEvent.CLICK, unit14Click);
this.unit_15.removeEventListener(MouseEvent.CLICK, unit15Click);
this.btn_next.removeEventListener(MouseEvent.CLICK, nextClick);
this.btn_prev.removeEventListener(MouseEvent.CLICK, prevClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy formation ... ok !");
}
}
}//package FZGame.Rpg.Interface
Section 91
//MenuResult (FZGame.Rpg.Interface.MenuResult)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class MenuResult extends MovieClip {
private var mSystem;
public var exp_1:TextField;
public var exp_2:TextField;
public var exp_3:TextField;
public var unit1_lvUp:MovieClip;
private var _max_chain:int;// = 0
public var loot:TextField;
public var banner:MovieClip;
public var ads:MovieClip;
private var _battle_exp:int;// = 0
public var unit2_lvUp:MovieClip;
public var unit_2:unit_face_slot;
public var unit_3:unit_face_slot;
public var unit_1:unit_face_slot;
public var chain:TextField;
private var _enemy_lv_mod:int;// = 0
private var _loot_item:int;// = 0
public var unit3_lvUp:MovieClip;
public var btn_close:SimpleButton;
public var gold:TextField;
private var _area_stage:int;// = 0
private var dispCont;
private var _gold_earned:int;// = 0
public function init(_arg1, _arg2){
mSystem = _arg1;
dispCont = mSystem.contMENU;
_area_stage = _arg2;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
if (this.btn_close){
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
};
if (this.banner){
this.banner.addEventListener(MouseEvent.CLICK, bannerClick, false, 0, true);
};
trace("init result ... ok !");
mSystem.mSound.playBgmWin();
_enemy_lv_mod = 1;
_battle_exp = 0;
_gold_earned = 0;
_loot_item = 0;
_max_chain = mSystem.mEnemyParty.mChainHit.bestChainHit;
var _local3:Number = Math.random();
if (_area_stage == 0){
_enemy_lv_mod = 1;
_battle_exp = (200 + (_max_chain * 5));
_gold_earned = (50 + (_max_chain * 25));
if (Math.random() < 0.5){
_loot_item = 2;
};
};
if (_area_stage == 2){
_enemy_lv_mod = 2;
_battle_exp = (400 + (_max_chain * 5));
_gold_earned = (100 + (_max_chain * 25));
if (Math.random() < 0.5){
_loot_item = 1;
};
};
if (_area_stage == 3){
_enemy_lv_mod = 3;
_battle_exp = (600 + (_max_chain * 5));
_gold_earned = (125 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 2;
} else {
_loot_item = 9;
};
};
};
if (_area_stage == 5){
_enemy_lv_mod = 4;
_battle_exp = (500 + (_max_chain * 5));
_gold_earned = (150 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 4;
} else {
_loot_item = 3;
};
};
};
if (_area_stage == 6){
_enemy_lv_mod = 6;
_battle_exp = (700 + (_max_chain * 5));
_gold_earned = (150 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 4;
} else {
_loot_item = 3;
};
};
};
if (_area_stage == 7){
_enemy_lv_mod = 10;
_battle_exp = (1200 + (_max_chain * 5));
_gold_earned = (800 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 8;
} else {
_loot_item = 15;
};
};
};
if (_area_stage == 8){
_enemy_lv_mod = 18;
_battle_exp = (600 + (_max_chain * 5));
_gold_earned = (225 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 5;
} else {
_loot_item = 6;
};
};
};
if (_area_stage == 9){
_enemy_lv_mod = 23;
_battle_exp = (800 + (_max_chain * 5));
_gold_earned = (250 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 6;
} else {
_loot_item = 13;
};
};
};
if (_area_stage == 10){
_enemy_lv_mod = 40;
_battle_exp = (1000 + (_max_chain * 5));
_gold_earned = (2000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 8;
} else {
_loot_item = 12;
};
};
};
if (_area_stage == 11){
_enemy_lv_mod = 45;
_battle_exp = (1200 + (_max_chain * 5));
_gold_earned = (5000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 15;
} else {
_loot_item = 7;
};
};
};
if (_area_stage == 14){
_enemy_lv_mod = 60;
_battle_exp = (2000 + (_max_chain * 5));
_gold_earned = (10000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 10;
} else {
_loot_item = 7;
};
};
};
if (_area_stage == 15){
_enemy_lv_mod = 9;
_battle_exp = (500 + (_max_chain * 5));
_gold_earned = (200 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 4;
} else {
_loot_item = 8;
};
};
};
if (_area_stage == 16){
_enemy_lv_mod = 10;
_battle_exp = (500 + (_max_chain * 5));
_gold_earned = (250 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 6;
} else {
_loot_item = 10;
};
};
};
if (_area_stage == 18){
_enemy_lv_mod = 12;
_battle_exp = (700 + (_max_chain * 5));
_gold_earned = (250 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 5;
} else {
_loot_item = 8;
};
};
};
if (_area_stage == 20){
_enemy_lv_mod = 15;
_battle_exp = (600 + (_max_chain * 5));
_gold_earned = (200 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 6;
} else {
_loot_item = 8;
};
};
};
if (_area_stage == 21){
_enemy_lv_mod = 15;
_battle_exp = (500 + (_max_chain * 5));
_gold_earned = (225 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 4;
} else {
_loot_item = 6;
};
};
};
if (_area_stage == 23){
_enemy_lv_mod = 17;
_battle_exp = (600 + (_max_chain * 5));
_gold_earned = (250 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 8;
} else {
_loot_item = 8;
};
};
};
if (_area_stage == 25){
_enemy_lv_mod = 18;
_battle_exp = (600 + (_max_chain * 5));
_gold_earned = (250 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 5;
} else {
_loot_item = 8;
};
};
};
if (_area_stage == 26){
_enemy_lv_mod = 19;
_battle_exp = (600 + (_max_chain * 5));
_gold_earned = (250 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 4;
} else {
_loot_item = 8;
};
};
};
if (_area_stage == 27){
_enemy_lv_mod = 21;
_battle_exp = (700 + (_max_chain * 5));
_gold_earned = (300 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 9;
} else {
_loot_item = 10;
};
};
};
if (_area_stage == 28){
_enemy_lv_mod = 25;
_battle_exp = (1500 + (_max_chain * 5));
_gold_earned = (2000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 10;
} else {
_loot_item = 14;
};
};
};
if (_area_stage == 29){
_enemy_lv_mod = 31;
_battle_exp = (800 + (_max_chain * 5));
_gold_earned = (350 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 9;
} else {
_loot_item = 10;
};
};
};
if (_area_stage == 30){
_enemy_lv_mod = 33;
_battle_exp = (900 + (_max_chain * 5));
_gold_earned = (500 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 12;
} else {
_loot_item = 7;
};
};
};
if (_area_stage == 31){
_enemy_lv_mod = 50;
_battle_exp = (1000 + (_max_chain * 5));
_gold_earned = (5000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 14;
} else {
_loot_item = 15;
};
};
};
if (_area_stage == 34){
_enemy_lv_mod = 65;
_battle_exp = (2500 + (_max_chain * 5));
_gold_earned = (12000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 13;
} else {
_loot_item = 7;
};
};
};
if (_area_stage == 35){
_enemy_lv_mod = 23;
_battle_exp = (800 + (_max_chain * 5));
_gold_earned = (350 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 9;
} else {
_loot_item = 10;
};
};
};
if (_area_stage == 37){
_enemy_lv_mod = 25;
_battle_exp = (800 + (_max_chain * 5));
_gold_earned = (500 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 8;
} else {
_loot_item = 8;
};
};
};
if (_area_stage == 38){
_enemy_lv_mod = 27;
_battle_exp = (900 + (_max_chain * 5));
_gold_earned = (400 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 3;
} else {
_loot_item = 4;
};
};
};
if (_area_stage == 40){
_enemy_lv_mod = 28;
_battle_exp = (900 + (_max_chain * 5));
_gold_earned = (450 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 9;
} else {
_loot_item = 4;
};
};
};
if (_area_stage == 41){
_enemy_lv_mod = 29;
_battle_exp = (900 + (_max_chain * 5));
_gold_earned = (700 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 10;
} else {
_loot_item = 15;
};
};
};
if (_area_stage == 43){
_enemy_lv_mod = 30;
_battle_exp = (900 + (_max_chain * 5));
_gold_earned = (700 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 10;
} else {
_loot_item = 9;
};
};
};
if (_area_stage == 44){
_enemy_lv_mod = 35;
_battle_exp = (2000 + (_max_chain * 5));
_gold_earned = (2500 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 8;
} else {
_loot_item = 7;
};
};
};
if (_area_stage == 45){
_enemy_lv_mod = 39;
_battle_exp = (1000 + (_max_chain * 5));
_gold_earned = (800 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 5;
} else {
_loot_item = 14;
};
};
};
if (_area_stage == 46){
_enemy_lv_mod = 60;
_battle_exp = (1200 + (_max_chain * 5));
_gold_earned = (8000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 12;
} else {
_loot_item = 11;
};
};
};
if (_area_stage == 48){
_enemy_lv_mod = 70;
_battle_exp = (3000 + (_max_chain * 5));
_gold_earned = (15000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 15;
} else {
_loot_item = 14;
};
};
};
if (_area_stage == 50){
_enemy_lv_mod = 29;
_battle_exp = (1000 + (_max_chain * 5));
_gold_earned = (1000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 4;
} else {
_loot_item = 7;
};
};
};
if (_area_stage == 51){
_enemy_lv_mod = 31;
_battle_exp = (1000 + (_max_chain * 5));
_gold_earned = (1500 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 11;
} else {
_loot_item = 11;
};
};
};
if (_area_stage == 53){
_enemy_lv_mod = 33;
_battle_exp = (1000 + (_max_chain * 5));
_gold_earned = (1600 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 12;
} else {
_loot_item = 12;
};
};
};
if (_area_stage == 55){
_enemy_lv_mod = 35;
_battle_exp = (2500 + (_max_chain * 5));
_gold_earned = (5000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 14;
} else {
_loot_item = 14;
};
};
};
if (_area_stage == 56){
_enemy_lv_mod = 65;
_battle_exp = (2000 + (_max_chain * 5));
_gold_earned = (10000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 14;
} else {
_loot_item = 15;
};
};
};
if (_area_stage == 58){
_enemy_lv_mod = 75;
_battle_exp = (3500 + (_max_chain * 5));
_gold_earned = (15000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 11;
} else {
_loot_item = 15;
};
};
};
if (_area_stage == 60){
_enemy_lv_mod = 85;
_battle_exp = (5000 + (_max_chain * 5));
_gold_earned = (20000 + (_max_chain * 25));
if (Math.random() < 0.5){
if (_local3 < 0.7){
_loot_item = 11;
} else {
_loot_item = 11;
};
};
};
_gold_earned = Math.min((_gold_earned + (_gold_earned * 0.15)), 999999);
this.unit_1.gotoAndStop((mSystem.mPlayerParty.mSlot1._ID + 1));
this.unit_2.gotoAndStop((mSystem.mPlayerParty.mSlot2._ID + 1));
this.unit_3.gotoAndStop((mSystem.mPlayerParty.mSlot3._ID + 1));
var _local4:int = mSystem.mPlayerParty.mSlot1._LEVEL;
var _local5:int = mSystem.mPlayerParty.mSlot2._LEVEL;
var _local6:int = mSystem.mPlayerParty.mSlot3._LEVEL;
this.exp_1.htmlText = String(getCalcExp(mSystem.mPlayerParty.mSlot1));
this.exp_2.htmlText = String(getCalcExp(mSystem.mPlayerParty.mSlot2));
this.exp_3.htmlText = String(getCalcExp(mSystem.mPlayerParty.mSlot3));
this.gold.htmlText = String(_gold_earned);
this.chain.htmlText = String(_max_chain);
this.loot.htmlText = String(getLootItemName());
this.unit1_lvUp.visible = false;
this.unit2_lvUp.visible = false;
this.unit3_lvUp.visible = false;
if (_local4 < mSystem.mPlayerParty.mSlot1._LEVEL){
this.unit1_lvUp.visible = true;
};
if (_local5 < mSystem.mPlayerParty.mSlot2._LEVEL){
this.unit2_lvUp.visible = true;
};
if (_local6 < mSystem.mPlayerParty.mSlot3._LEVEL){
this.unit3_lvUp.visible = true;
};
this.banner.visible = false;
mSystem.mSecurity.initAdv(this.ads, "1194Q16DD0831");
}
private function bannerClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest(mSystem.mSecurity.sponsorLink);
navigateToURL(_local2, "_blank");
}
private function getCalcExp(_arg1):int{
if (_arg1._ID == 0){
return (0);
};
if (_arg1._is_active == false){
return (0);
};
if (_arg1._health <= 0){
return (0);
};
var _local2:int = (_enemy_lv_mod - _arg1._LEVEL);
var _local3:int = Math.min(Math.max((_battle_exp + ((_local2 / 8) * _battle_exp)), 10), 9999);
var _local4:* = _arg1.gainExperience(_local3);
return (_local4);
}
private function bonusItem(){
var _local1 = -1;
var _local2 = "";
if (_area_stage == 6){
_local1 = 15;
_local2 = "[Bonus Item : Plain Jacket]";
};
if (_area_stage == 7){
_local1 = 5;
_local2 = "Unlock MAP 2 Area + [Bonus Item : AK-47]";
};
if (_area_stage == 8){
_local1 = 17;
_local2 = "[Bonus Item : Yamato Armor]";
};
if (_area_stage == 9){
_local1 = 22;
_local2 = "[Bonus Item : Ring of Shadow]";
};
if (_area_stage == 10){
_local1 = 27;
_local2 = "[Bonus Item : Lucky Seven]";
};
if (_area_stage == 11){
_local1 = 23;
_local2 = "[Bonus Item : Gundam Suit]";
};
if (_area_stage == 14){
_local1 = 24;
_local2 = "[Bonus Item : The K]";
};
if (_area_stage == 26){
_local1 = 14;
_local2 = "[Bonus Item : Guerilla's Mask]";
};
if (_area_stage == 27){
_local1 = 22;
_local2 = "[Bonus Item : Ring of Shadow]";
};
if (_area_stage == 28){
_local1 = 7;
_local2 = "Unlock MAP 3 Area + [Bonus Item : Old Hammer]";
};
if (_area_stage == 29){
_local1 = 17;
_local2 = "[Bonus Item : Yamato Armor]";
};
if (_area_stage == 30){
_local1 = 20;
_local2 = "[Bonus Item : Ring of Water]";
};
if (_area_stage == 31){
_local1 = 11;
_local2 = "[Bonus Item : Soul Eater]";
};
if (_area_stage == 34){
_local1 = 25;
_local2 = "[Bonus Item : NG Tank]";
};
if (_area_stage == 44){
_local1 = 18;
_local2 = "Unlock MAP 4 Area + [Bonus Item : Mike's Robe]";
};
if (_area_stage == 45){
_local1 = 8;
_local2 = "[Bonus Item : Cupid Arrow]";
};
if (_area_stage == 46){
_local1 = 11;
_local2 = "[Bonus Item : Soul Eater]";
};
if (_area_stage == 48){
_local1 = 26;
_local2 = "[Bonus Item : Artlogicgames Autograph]";
};
if (_area_stage == 53){
_local1 = 21;
_local2 = "[Bonus Item : Ring of Thunder]";
};
if (_area_stage == 55){
_local1 = 9;
_local2 = "[Bonus Item : Pistol P66XZY]";
};
if (_area_stage == 56){
_local1 = 10;
_local2 = "[Bonus Item : Holy Slayer @]";
};
if (_area_stage == 58){
_local1 = 28;
_local2 = "[Bonus Item : P5GDRX8800GT]";
};
if (_area_stage == 60){
_local1 = 29;
_local2 = "[Bonus Item : GameShark v1.0]";
};
if ((((mSystem.mDat.stage_area[_area_stage] < 1)) && ((_local1 >= 0)))){
mSystem.mEffect.msgInfo(_local2);
mSystem.mDat.equip_stock[_local1] = Math.min((mSystem.mDat.equip_stock[_local1] + 1), 20);
};
}
public function destroy(){
mSystem.mSecurity.removeAdv();
if (this.btn_close){
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
};
if (this.banner){
this.banner.removeEventListener(MouseEvent.CLICK, bannerClick);
};
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy result ... ok !");
}
private function getLootItemName():String{
var _local1 = 1;
if (Math.random() > 0.5){
_local1 = (_local1 + 1);
};
if (Math.random() > 0.7){
_local1 = (_local1 + 1);
};
if (_loot_item == 1){
mSystem.mDat.material_stock[0] = Math.min((mSystem.mDat.material_stock[0] + _local1), 20);
return (("Lucky Coin x" + _local1));
};
if (_loot_item == 2){
mSystem.mDat.material_stock[1] = Math.min((mSystem.mDat.material_stock[1] + _local1), 20);
return (("White Cloth x" + _local1));
};
if (_loot_item == 3){
mSystem.mDat.material_stock[2] = Math.min((mSystem.mDat.material_stock[2] + _local1), 20);
return (("Iron Ore x" + _local1));
};
if (_loot_item == 4){
mSystem.mDat.material_stock[3] = Math.min((mSystem.mDat.material_stock[3] + _local1), 20);
return (("Leather Hide x" + _local1));
};
if (_loot_item == 5){
mSystem.mDat.material_stock[4] = Math.min((mSystem.mDat.material_stock[4] + _local1), 20);
return (("Monster Wing x" + _local1));
};
if (_loot_item == 6){
mSystem.mDat.material_stock[5] = Math.min((mSystem.mDat.material_stock[5] + _local1), 20);
return (("Monster Claw x" + _local1));
};
if (_loot_item == 7){
mSystem.mDat.material_stock[6] = Math.min((mSystem.mDat.material_stock[6] + _local1), 20);
return (("Diamond x" + _local1));
};
if (_loot_item == 8){
mSystem.mDat.material_stock[7] = Math.min((mSystem.mDat.material_stock[7] + _local1), 20);
return (("Fire Stone x" + _local1));
};
if (_loot_item == 9){
mSystem.mDat.material_stock[8] = Math.min((mSystem.mDat.material_stock[8] + _local1), 20);
return (("Evil Gem x" + _local1));
};
if (_loot_item == 10){
mSystem.mDat.material_stock[9] = Math.min((mSystem.mDat.material_stock[9] + _local1), 20);
return (("Devil Orb x" + _local1));
};
if (_loot_item == 11){
mSystem.mDat.material_stock[10] = Math.min((mSystem.mDat.material_stock[10] + _local1), 20);
return (("Dragon Heart x" + _local1));
};
if (_loot_item == 12){
mSystem.mDat.material_stock[11] = Math.min((mSystem.mDat.material_stock[11] + _local1), 20);
return (("Leviathan Scale x" + _local1));
};
if (_loot_item == 13){
mSystem.mDat.material_stock[12] = Math.min((mSystem.mDat.material_stock[12] + _local1), 20);
return (("Bahemoth Horn x" + _local1));
};
if (_loot_item == 14){
mSystem.mDat.material_stock[13] = Math.min((mSystem.mDat.material_stock[13] + _local1), 20);
return (("O Part x" + _local1));
};
if (_loot_item == 15){
mSystem.mDat.material_stock[14] = Math.min((mSystem.mDat.material_stock[14] + _local1), 20);
return (("Golden Egg x" + _local1));
};
return ("");
}
private function closeClick(_arg1:MouseEvent):void{
var _local3:*;
mSystem.mDat.player_money = Math.min((mSystem.mDat.player_money + _gold_earned), 999999);
bonusItem();
mSystem.mDat.stage_area[_area_stage] = Math.min((mSystem.mDat.stage_area[_area_stage] + 1), 999);
mSystem.mDat.updateUnlockArea();
mSystem.mDat.stat_win = Math.min((mSystem.mDat.stat_win + 1), 999);
if (mSystem.mDat.stat_win == 50){
mSystem.mEffect.msgInfo("unlocked achievement 1 !! [Win 50x]");
};
if (mSystem.mDat.stat_win == 200){
mSystem.mEffect.msgInfo("unlocked achievement 2 !! [Win 200x]");
};
if (mSystem.mDat.stat_maxcombo < _max_chain){
mSystem.mDat.stat_maxcombo = _max_chain;
if (mSystem.mDat.stat_maxcombo >= 99){
mSystem.mEffect.msgInfo("unlocked achievement 5 !! [99 Chain Combo]");
} else {
if (mSystem.mDat.stat_maxcombo >= 30){
mSystem.mEffect.msgInfo("unlocked achievement 4 !! [30 Chain Combo]");
} else {
if (mSystem.mDat.stat_maxcombo >= 10){
mSystem.mEffect.msgInfo("unlocked achievement 3 !! [10 Chain Combo]");
};
};
};
};
if (mSystem.mDat.stat_highestmoney < (mSystem.mDat.player_money + _gold_earned)){
if (mSystem.mDat.stat_highestmoney < 200000){
if ((mSystem.mDat.player_money + _gold_earned) >= 200000){
mSystem.mEffect.msgInfo("unlocked achievement 10 !! [Earn 200000 Gold]");
};
};
mSystem.mDat.stat_highestmoney = Math.min((mSystem.mDat.player_money + _gold_earned), 999999);
};
if ((((((((((((((((((((((mSystem.mDat.stage_area[0] > 0)) && ((mSystem.mDat.stage_area[2] > 0)))) && ((mSystem.mDat.stage_area[3] > 0)))) && ((mSystem.mDat.stage_area[5] > 0)))) && ((mSystem.mDat.stage_area[6] > 0)))) && ((mSystem.mDat.stage_area[7] > 0)))) && ((mSystem.mDat.stage_area[8] > 0)))) && ((mSystem.mDat.stage_area[9] > 0)))) && ((mSystem.mDat.stage_area[10] > 0)))) && ((mSystem.mDat.stage_area[11] > 0)))) && ((mSystem.mDat.stage_area[14] > 0)))){
if (mSystem.mDat.stat_map1_completed <= 0){
mSystem.mDat.stat_map1_completed = 1;
mSystem.mEffect.msgInfo("unlocked achievement 6 !! [Map 1 Completed]");
};
};
if ((((((((((((((((((((((((((((mSystem.mDat.stage_area[15] > 0)) && ((mSystem.mDat.stage_area[16] > 0)))) && ((mSystem.mDat.stage_area[18] > 0)))) && ((mSystem.mDat.stage_area[20] > 0)))) && ((mSystem.mDat.stage_area[21] > 0)))) && ((mSystem.mDat.stage_area[23] > 0)))) && ((mSystem.mDat.stage_area[25] > 0)))) && ((mSystem.mDat.stage_area[26] > 0)))) && ((mSystem.mDat.stage_area[27] > 0)))) && ((mSystem.mDat.stage_area[28] > 0)))) && ((mSystem.mDat.stage_area[29] > 0)))) && ((mSystem.mDat.stage_area[30] > 0)))) && ((mSystem.mDat.stage_area[31] > 0)))) && ((mSystem.mDat.stage_area[34] > 0)))){
if (mSystem.mDat.stat_map2_completed <= 0){
mSystem.mDat.stat_map2_completed = 1;
mSystem.mEffect.msgInfo("unlocked achievement 7 !! [Map 2 Completed]");
};
};
if ((((((((((((((((((((mSystem.mDat.stage_area[35] > 0)) && ((mSystem.mDat.stage_area[37] > 0)))) && ((mSystem.mDat.stage_area[38] > 0)))) && ((mSystem.mDat.stage_area[40] > 0)))) && ((mSystem.mDat.stage_area[41] > 0)))) && ((mSystem.mDat.stage_area[43] > 0)))) && ((mSystem.mDat.stage_area[44] > 0)))) && ((mSystem.mDat.stage_area[45] > 0)))) && ((mSystem.mDat.stage_area[46] > 0)))) && ((mSystem.mDat.stage_area[48] > 0)))){
if (mSystem.mDat.stat_map3_completed <= 0){
mSystem.mDat.stat_map3_completed = 1;
mSystem.mEffect.msgInfo("unlocked achievement 8 !! [Map 3 Completed]");
};
};
if ((((((((((((((mSystem.mDat.stage_area[50] > 0)) && ((mSystem.mDat.stage_area[51] > 0)))) && ((mSystem.mDat.stage_area[53] > 0)))) && ((mSystem.mDat.stage_area[55] > 0)))) && ((mSystem.mDat.stage_area[56] > 0)))) && ((mSystem.mDat.stage_area[58] > 0)))) && ((mSystem.mDat.stage_area[60] > 0)))){
if (mSystem.mDat.stat_map4_completed <= 0){
mSystem.mDat.stat_map4_completed = 1;
mSystem.mEffect.msgInfo("unlocked achievement 9 !! [Map 4 Completed]");
};
};
trace((((("stage " + _area_stage) + 1) + " = ") + mSystem.mDat.stage_area[_area_stage]));
var _local2:* = new menu_world_mc();
_local2.initAfterBattle(mSystem, _area_stage);
if (_area_stage == 55){
if (mSystem.mDat.stage_area[_area_stage] == 1){
_local3 = new ending_mc();
_local3.init(mSystem);
};
};
destroy();
}
}
}//package FZGame.Rpg.Interface
Section 92
//MenuSelect (FZGame.Rpg.Interface.MenuSelect)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import FZGame.Rpg.Class.*;
import flash.text.*;
public class MenuSelect extends MovieClip {
const _SLOT8 = 4;
const _SLOT1 = 16;
const _SLOT2 = 12;
const _SLOT3 = 5;
const _SLOT4 = 8;
const _SLOT6 = 29;
const _SLOT7 = 18;
const _SLOT5 = 11;
private var dispCont;
private var slot3:int;// = 0
private var slot6:int;// = 0
private var slot8:int;// = 0
private var slot1:int;// = 0
private var slot4:int;// = 0
private var slot5:int;// = 0
public var point:TextField;
private var slot7:int;// = 0
private var slot2:int;// = 0
private var clipDrag;
private var totalPoint:int;// = 0
private var unit1:int;// = 0
private var unit2:int;// = 0
private var unit3:int;// = 0
public var slot_2:unit_face_slot;
public var slot_3:unit_face_slot;
public var slot_4:unit_face_slot;
public var slot_5:unit_face_slot;
public var slot_6:unit_face_slot;
public var slot_7:unit_face_slot;
public var unit_2:unit_face_slot;
public var unit_3:unit_face_slot;
public var unit_1:unit_face_slot;
public var slot_8:unit_face_slot;
public var slot_1:unit_face_slot;
public var btn_start:SimpleButton;
public var price:TextField;
private var unitDrag:int;// = 0
public var btn_back:SimpleButton;
private var mSystem;
private function slot3Click(_arg1:MouseEvent):void{
if (slot3 > 0){
actionDragClip(slot3);
slot3 = 0;
updateView();
};
}
private function dragHandle(_arg1:Event):void{
clipDrag.x = mSystem.stageRoot.mouseX;
clipDrag.y = mSystem.stageRoot.mouseY;
}
public function destroy(){
removeDragClip();
this.unit_1.removeEventListener(MouseEvent.CLICK, unit1Click);
this.unit_2.removeEventListener(MouseEvent.CLICK, unit2Click);
this.unit_3.removeEventListener(MouseEvent.CLICK, unit3Click);
this.slot_1.removeEventListener(MouseEvent.CLICK, slot1Click);
this.slot_2.removeEventListener(MouseEvent.CLICK, slot2Click);
this.slot_3.removeEventListener(MouseEvent.CLICK, slot3Click);
this.slot_4.removeEventListener(MouseEvent.CLICK, slot4Click);
this.slot_5.removeEventListener(MouseEvent.CLICK, slot5Click);
this.slot_6.removeEventListener(MouseEvent.CLICK, slot6Click);
this.slot_7.removeEventListener(MouseEvent.CLICK, slot7Click);
this.slot_8.removeEventListener(MouseEvent.CLICK, slot8Click);
this.btn_back.removeEventListener(MouseEvent.CLICK, backClick);
this.btn_start.removeEventListener(MouseEvent.CLICK, startClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy formation ... ok !");
}
private function slot7Click(_arg1:MouseEvent):void{
if (slot7 > 0){
actionDragClip(slot7);
slot7 = 0;
updateView();
};
}
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.btn_back.addEventListener(MouseEvent.CLICK, backClick, false, 0, true);
this.btn_start.addEventListener(MouseEvent.CLICK, startClick, false, 0, true);
this.unit_1.addEventListener(MouseEvent.CLICK, unit1Click, false, 0, true);
this.unit_2.addEventListener(MouseEvent.CLICK, unit2Click, false, 0, true);
this.unit_3.addEventListener(MouseEvent.CLICK, unit3Click, false, 0, true);
this.slot_1.addEventListener(MouseEvent.CLICK, slot1Click, false, 0, true);
this.slot_2.addEventListener(MouseEvent.CLICK, slot2Click, false, 0, true);
this.slot_3.addEventListener(MouseEvent.CLICK, slot3Click, false, 0, true);
this.slot_4.addEventListener(MouseEvent.CLICK, slot4Click, false, 0, true);
this.slot_5.addEventListener(MouseEvent.CLICK, slot5Click, false, 0, true);
this.slot_6.addEventListener(MouseEvent.CLICK, slot6Click, false, 0, true);
this.slot_7.addEventListener(MouseEvent.CLICK, slot7Click, false, 0, true);
this.slot_8.addEventListener(MouseEvent.CLICK, slot8Click, false, 0, true);
unit1 = 0;
unit2 = 0;
unit3 = 0;
slot1 = _SLOT1;
slot2 = _SLOT2;
slot3 = _SLOT3;
slot4 = _SLOT4;
slot5 = _SLOT5;
slot6 = _SLOT6;
slot7 = _SLOT7;
slot8 = _SLOT8;
totalPoint = 0;
trace("init formation ... ok !");
updateView();
}
private function updateView(){
this.unit_1.gotoAndStop((unit1 + 1));
this.unit_2.gotoAndStop((unit2 + 1));
this.unit_3.gotoAndStop((unit3 + 1));
this.slot_1.gotoAndStop((slot1 + 1));
this.slot_2.gotoAndStop((slot2 + 1));
this.slot_3.gotoAndStop((slot3 + 1));
this.slot_4.gotoAndStop((slot4 + 1));
this.slot_5.gotoAndStop((slot5 + 1));
this.slot_6.gotoAndStop((slot6 + 1));
this.slot_7.gotoAndStop((slot7 + 1));
this.slot_8.gotoAndStop((slot8 + 1));
totalPoint = ((getUnitPoint(unit1) + getUnitPoint(unit2)) + getUnitPoint(unit3));
this.point.htmlText = String((totalPoint + " / 1000"));
}
private function actionDragClip(_arg1:int=0){
if (unitDrag){
returnUnit(unitDrag);
removeDragClip();
};
if (clipDrag == null){
clipDrag = new unit_face_slot();
dispCont.addChild(clipDrag);
clipDrag.x = mSystem.stageRoot.mouseX;
clipDrag.y = mSystem.stageRoot.mouseY;
clipDrag.addEventListener(Event.ENTER_FRAME, dragHandle, false, 0, true);
unitDrag = _arg1;
clipDrag.gotoAndStop((unitDrag + 1));
};
}
private function unit3Click(_arg1:MouseEvent):void{
if (unit3 > 0){
returnUnit(unit3);
unit3 = 0;
};
if (clipDrag){
unit3 = unitDrag;
removeDragClip();
};
updateView();
}
private function slot6Click(_arg1:MouseEvent):void{
if (slot6 > 0){
actionDragClip(slot6);
slot6 = 0;
updateView();
};
}
private function slot4Click(_arg1:MouseEvent):void{
if (slot4 > 0){
actionDragClip(slot4);
slot4 = 0;
updateView();
};
}
private function slot2Click(_arg1:MouseEvent):void{
if (slot2 > 0){
actionDragClip(slot2);
slot2 = 0;
updateView();
};
}
private function unit2Click(_arg1:MouseEvent):void{
if (unit2 > 0){
returnUnit(unit2);
unit2 = 0;
};
if (clipDrag){
unit2 = unitDrag;
removeDragClip();
};
updateView();
}
private function getUnitPoint(_arg1:int=0):int{
if (_arg1 == _SLOT1){
return (150);
};
if (_arg1 == _SLOT2){
return (200);
};
if (_arg1 == _SLOT3){
return (400);
};
if (_arg1 == _SLOT4){
return (450);
};
if (_arg1 == _SLOT5){
return (350);
};
if (_arg1 == _SLOT6){
return (400);
};
if (_arg1 == _SLOT7){
return (450);
};
if (_arg1 == _SLOT8){
return (400);
};
return (0);
}
private function startClick(_arg1:MouseEvent):void{
var _local2:*;
updateView();
if (clipDrag){
clipDrag.removeEventListener(Event.ENTER_FRAME, dragHandle);
dispCont.removeChild(clipDrag);
clipDrag = null;
} else {
if (totalPoint == 0){
mSystem.mEffect.msgInfo("choose unit for battle !");
} else {
if (totalPoint > 1000){
mSystem.mEffect.msgInfo("point overload !");
} else {
mSystem.mDat.resetGameData();
mSystem.mPlayerParty.setInitParty(unit1, unit2, unit3);
mSystem.mPlayerParty.loadPartyData();
_local2 = new intro_mc();
_local2.init(mSystem);
destroy();
};
};
};
}
private function unit1Click(_arg1:MouseEvent):void{
if (unit1 > 0){
returnUnit(unit1);
unit1 = 0;
};
if (clipDrag){
unit1 = unitDrag;
removeDragClip();
};
updateView();
}
private function removeDragClip(){
if (clipDrag){
clipDrag.removeEventListener(Event.ENTER_FRAME, dragHandle);
dispCont.removeChild(clipDrag);
clipDrag = null;
unitDrag = 0;
};
}
private function slot8Click(_arg1:MouseEvent):void{
if (slot8 > 0){
actionDragClip(slot8);
slot8 = 0;
updateView();
};
}
private function slot5Click(_arg1:MouseEvent):void{
if (slot5 > 0){
actionDragClip(slot5);
slot5 = 0;
updateView();
};
}
private function slot1Click(_arg1:MouseEvent):void{
if (slot1 > 0){
actionDragClip(slot1);
slot1 = 0;
updateView();
};
}
private function returnUnit(_arg1:int=0){
if (_arg1 == _SLOT1){
slot1 = _SLOT1;
};
if (_arg1 == _SLOT2){
slot2 = _SLOT2;
};
if (_arg1 == _SLOT3){
slot3 = _SLOT3;
};
if (_arg1 == _SLOT4){
slot4 = _SLOT4;
};
if (_arg1 == _SLOT5){
slot5 = _SLOT5;
};
if (_arg1 == _SLOT6){
slot6 = _SLOT6;
};
if (_arg1 == _SLOT7){
slot7 = _SLOT7;
};
if (_arg1 == _SLOT8){
slot8 = _SLOT8;
};
}
private function backClick(_arg1:MouseEvent):void{
var _local2:* = new menu_cover_mc();
_local2.init(mSystem);
destroy();
}
}
}//package FZGame.Rpg.Interface
Section 93
//MenuSkillShop (FZGame.Rpg.Interface.MenuSkillShop)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import FZGame.Rpg.Class.Base.*;
import flash.text.*;
import flash.net.*;
public class MenuSkillShop extends MovieClip {
public var unit_skill_select_4:MovieClip;
public var slot1:MovieClip;
public var slot2:MovieClip;
public var unit:MovieClip;
public var unit_skill_2:MovieClip;
public var unit_skill_3:MovieClip;
public var unit_skill_4:MovieClip;
public var unit_skill_1:MovieClip;
private var level:int;// = 1
private var slot1Price;
private var unitSkillID:int;// = 1
private var unitSlot;
public var btn_prev:SimpleButton;
public var money:TextField;
private var unitPosID:int;// = 1
public var btn_close:SimpleButton;
public var unit_name:TextField;
private var dispCont;
public var slot3:MovieClip;
public var btn_next:SimpleButton;
public var unit_skill_select_1:MovieClip;
public var unit_skill_select_2:MovieClip;
public var unit_skill_select_3:MovieClip;
private var mSystem;
private function unitSkill3Click(_arg1:MouseEvent):void{
unitSkillID = 3;
updateInfo();
}
private function prevClick(_arg1:MouseEvent):void{
var _local2 = 1;
_local2 = 1;
while (_local2 <= 15) {
unitPosID = (unitPosID - 1);
if (unitPosID < 1){
unitPosID = 15;
};
unitSlot = getUnitSlot(unitPosID);
if (unitSlot._ID > 0){
break;
};
_local2++;
};
updateInfo();
}
private function getUnitSlot(_arg1):Object{
if (_arg1 == 1){
return (mSystem.mPlayerParty.mSlot1);
};
if (_arg1 == 2){
return (mSystem.mPlayerParty.mSlot2);
};
if (_arg1 == 3){
return (mSystem.mPlayerParty.mSlot3);
};
if (_arg1 == 4){
return (mSystem.mPlayerParty.mSlot4);
};
if (_arg1 == 5){
return (mSystem.mPlayerParty.mSlot5);
};
if (_arg1 == 6){
return (mSystem.mPlayerParty.mSlot6);
};
if (_arg1 == 7){
return (mSystem.mPlayerParty.mSlot7);
};
if (_arg1 == 8){
return (mSystem.mPlayerParty.mSlot8);
};
if (_arg1 == 9){
return (mSystem.mPlayerParty.mSlot9);
};
if (_arg1 == 10){
return (mSystem.mPlayerParty.mSlot10);
};
if (_arg1 == 11){
return (mSystem.mPlayerParty.mSlot11);
};
if (_arg1 == 12){
return (mSystem.mPlayerParty.mSlot12);
};
if (_arg1 == 13){
return (mSystem.mPlayerParty.mSlot13);
};
if (_arg1 == 14){
return (mSystem.mPlayerParty.mSlot14);
};
if (_arg1 == 15){
return (mSystem.mPlayerParty.mSlot15);
};
return (mSystem.mPlayerParty.mSlot1);
}
private function learn1Click(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
var _local4:int;
if (level == 1){
_local2 = 1000;
_local3 = 0;
_local4 = 0;
if (mSystem.mDat.player_money >= _local2){
if ((((mSystem.mDat.material_stock[_local3] >= 1)) && ((mSystem.mDat.material_stock[_local4] >= 1)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.material_stock[_local3] = Math.max((mSystem.mDat.material_stock[_local3] - 1), 0);
if (unitSkillID == 1){
unitSlot._SKILL_1 = 19;
};
if (unitSkillID == 2){
unitSlot._SKILL_2 = 19;
};
if (unitSkillID == 3){
unitSlot._SKILL_3 = 19;
};
if (unitSkillID == 4){
unitSlot._SKILL_4 = 19;
};
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money !");
};
} else {
if (level == 2){
_local2 = 2500;
_local3 = 2;
_local4 = 8;
if (mSystem.mDat.player_money >= _local2){
if ((((mSystem.mDat.material_stock[_local3] >= 1)) && ((mSystem.mDat.material_stock[_local4] >= 1)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.material_stock[_local3] = Math.max((mSystem.mDat.material_stock[_local3] - 1), 0);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - 1), 0);
if (unitSkillID == 1){
unitSlot._SKILL_1 = 25;
};
if (unitSkillID == 2){
unitSlot._SKILL_2 = 25;
};
if (unitSkillID == 3){
unitSlot._SKILL_3 = 25;
};
if (unitSkillID == 4){
unitSlot._SKILL_4 = 25;
};
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money !");
};
} else {
if (level == 3){
_local2 = 5000;
_local3 = 3;
_local4 = 5;
if (mSystem.mDat.player_money >= _local2){
if ((((mSystem.mDat.material_stock[_local3] >= 1)) && ((mSystem.mDat.material_stock[_local4] >= 1)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.material_stock[_local3] = Math.max((mSystem.mDat.material_stock[_local3] - 1), 0);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - 1), 0);
if (unitSkillID == 1){
unitSlot._SKILL_1 = 6;
};
if (unitSkillID == 2){
unitSlot._SKILL_2 = 6;
};
if (unitSkillID == 3){
unitSlot._SKILL_3 = 6;
};
if (unitSkillID == 4){
unitSlot._SKILL_4 = 6;
};
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money !");
};
};
};
};
updateInfo();
}
private function updateInfo(){
this.unit.gotoAndStop(unitSlot._ID);
this.unit_name.htmlText = String(unitSlot._NAME);
this.unit_skill_1.gotoAndStop(1);
this.unit_skill_2.gotoAndStop(1);
this.unit_skill_3.gotoAndStop(1);
this.unit_skill_4.gotoAndStop(1);
if (unitSlot._SKILL_1 > 0){
this.unit_skill_1.gotoAndStop((unitSlot._SKILL_1 + 1));
};
if (unitSlot._SKILL_2 > 0){
this.unit_skill_2.gotoAndStop((unitSlot._SKILL_2 + 1));
};
if (unitSlot._SKILL_3 > 0){
this.unit_skill_3.gotoAndStop((unitSlot._SKILL_3 + 1));
};
if (unitSlot._SKILL_4 > 0){
this.unit_skill_4.gotoAndStop((unitSlot._SKILL_4 + 1));
};
this.unit_skill_select_1.visible = false;
this.unit_skill_select_2.visible = false;
this.unit_skill_select_3.visible = false;
this.unit_skill_select_4.visible = false;
if (unitSkillID == 1){
this.unit_skill_select_1.visible = true;
};
if (unitSkillID == 2){
this.unit_skill_select_2.visible = true;
};
if (unitSkillID == 3){
this.unit_skill_select_3.visible = true;
};
if (unitSkillID == 4){
this.unit_skill_select_4.visible = true;
};
if (level == 1){
this.slot1.skill.gotoAndStop(20);
this.slot1.mat1.gotoAndStop(39);
this.slot1.mat1Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[0])));
this.slot1.mat2.visible = false;
this.slot1.mat2Stock.visible = false;
this.slot1.price.htmlText = String("1000");
this.slot2.skill.gotoAndStop(5);
this.slot2.mat1.gotoAndStop(41);
this.slot2.mat1Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[2])));
this.slot2.mat2.gotoAndStop(44);
this.slot2.mat2Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[5])));
this.slot2.price.htmlText = String("2000");
this.slot3.skill.gotoAndStop(16);
this.slot3.mat1.gotoAndStop(40);
this.slot3.mat1Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[1])));
this.slot3.mat2.gotoAndStop(46);
this.slot3.mat2Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[7])));
this.slot3.price.htmlText = String("5000");
} else {
if (level == 2){
this.slot1.skill.gotoAndStop(26);
this.slot1.mat1.gotoAndStop(41);
this.slot1.mat1Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[2])));
this.slot1.mat2.gotoAndStop(47);
this.slot1.mat2Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[8])));
this.slot1.price.htmlText = String("2500");
this.slot2.skill.gotoAndStop(31);
this.slot2.mat1.gotoAndStop(47);
this.slot2.mat1Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[8])));
this.slot2.mat2.gotoAndStop(48);
this.slot2.mat2Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[9])));
this.slot2.price.htmlText = String("4000");
this.slot3.skill.gotoAndStop(12);
this.slot3.mat1.gotoAndStop(49);
this.slot3.mat1Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[10])));
this.slot3.mat2.gotoAndStop(53);
this.slot3.mat2Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[14])));
this.slot3.price.htmlText = String("10000");
} else {
if (level == 3){
this.slot1.skill.gotoAndStop(7);
this.slot1.mat1.gotoAndStop(42);
this.slot2.mat1Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[3])));
this.slot1.mat2.gotoAndStop(44);
this.slot1.mat2Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[5])));
this.slot1.price.htmlText = String("5000");
this.slot2.skill.gotoAndStop(28);
this.slot2.mat1.gotoAndStop(42);
this.slot2.mat1Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[3])));
this.slot2.mat2.gotoAndStop(43);
this.slot2.mat2Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[4])));
this.slot2.price.htmlText = String("5000");
this.slot3.skill.gotoAndStop(6);
this.slot3.mat1.gotoAndStop(52);
this.slot3.mat1Stock.htmlText = String(("1 / " + String(mSystem.mDat.material_stock[13])));
this.slot3.mat2.gotoAndStop(53);
this.slot3.mat2Stock.htmlText = String(("5 / " + String(mSystem.mDat.material_stock[14])));
this.slot3.price.htmlText = String("20000");
};
};
};
this.money.htmlText = String((mSystem.mDat.player_money + " gold"));
}
private function unitSkill4Click(_arg1:MouseEvent):void{
unitSkillID = 4;
updateInfo();
}
public function init(_arg1, _arg2:int=1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
level = _arg2;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
this.btn_close.addEventListener(MouseEvent.CLICK, closeClick, false, 0, true);
this.btn_next.addEventListener(MouseEvent.CLICK, nextClick, false, 0, true);
this.btn_prev.addEventListener(MouseEvent.CLICK, prevClick, false, 0, true);
this.unit_skill_1.addEventListener(MouseEvent.CLICK, unitSkill1Click, false, 0, true);
this.unit_skill_2.addEventListener(MouseEvent.CLICK, unitSkill2Click, false, 0, true);
this.unit_skill_3.addEventListener(MouseEvent.CLICK, unitSkill3Click, false, 0, true);
this.unit_skill_4.addEventListener(MouseEvent.CLICK, unitSkill4Click, false, 0, true);
this.slot1.btn_learn.addEventListener(MouseEvent.CLICK, learn1Click, false, 0, true);
this.slot2.btn_learn.addEventListener(MouseEvent.CLICK, learn2Click, false, 0, true);
this.slot3.btn_learn.addEventListener(MouseEvent.CLICK, learn3Click, false, 0, true);
unitPosID = 1;
unitSkillID = 1;
unitSlot = mSystem.mPlayerParty.mSlot1;
unitSlot.initialise();
updateInfo();
trace("init general shop ... ok !");
}
private function closeClick(_arg1:MouseEvent):void{
destroy();
}
private function learn2Click(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
var _local4:int;
if (level == 1){
_local2 = 2000;
_local3 = 2;
_local4 = 5;
if (mSystem.mDat.player_money >= _local2){
if ((((mSystem.mDat.material_stock[_local3] >= 1)) && ((mSystem.mDat.material_stock[_local4] >= 1)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.material_stock[_local3] = Math.max((mSystem.mDat.material_stock[_local3] - 1), 0);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - 1), 0);
if (unitSkillID == 1){
unitSlot._SKILL_1 = 4;
};
if (unitSkillID == 2){
unitSlot._SKILL_2 = 4;
};
if (unitSkillID == 3){
unitSlot._SKILL_3 = 4;
};
if (unitSkillID == 4){
unitSlot._SKILL_4 = 4;
};
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money !");
};
} else {
if (level == 2){
_local2 = 4000;
_local3 = 8;
_local4 = 9;
if (mSystem.mDat.player_money >= _local2){
if ((((mSystem.mDat.material_stock[_local3] >= 1)) && ((mSystem.mDat.material_stock[_local4] >= 1)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.material_stock[_local3] = Math.max((mSystem.mDat.material_stock[_local3] - 1), 0);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - 1), 0);
if (unitSkillID == 1){
unitSlot._SKILL_1 = 30;
};
if (unitSkillID == 2){
unitSlot._SKILL_2 = 30;
};
if (unitSkillID == 3){
unitSlot._SKILL_3 = 30;
};
if (unitSkillID == 4){
unitSlot._SKILL_4 = 30;
};
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money !");
};
} else {
if (level == 3){
_local2 = 5000;
_local3 = 3;
_local4 = 4;
if (mSystem.mDat.player_money >= _local2){
if ((((mSystem.mDat.material_stock[_local3] >= 1)) && ((mSystem.mDat.material_stock[_local4] >= 1)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.material_stock[_local3] = Math.max((mSystem.mDat.material_stock[_local3] - 1), 0);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - 1), 0);
if (unitSkillID == 1){
unitSlot._SKILL_1 = 27;
};
if (unitSkillID == 2){
unitSlot._SKILL_2 = 27;
};
if (unitSkillID == 3){
unitSlot._SKILL_3 = 27;
};
if (unitSkillID == 4){
unitSlot._SKILL_4 = 27;
};
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money !");
};
};
};
};
updateInfo();
}
private function unitSkill1Click(_arg1:MouseEvent):void{
unitSkillID = 1;
updateInfo();
}
private function learn3Click(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
var _local4:int;
if (level == 1){
_local2 = 5000;
_local3 = 1;
_local4 = 7;
if (mSystem.mDat.player_money >= _local2){
if ((((mSystem.mDat.material_stock[_local3] >= 1)) && ((mSystem.mDat.material_stock[_local4] >= 1)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.material_stock[_local3] = Math.max((mSystem.mDat.material_stock[_local3] - 1), 0);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - 1), 0);
if (unitSkillID == 1){
unitSlot._SKILL_1 = 15;
};
if (unitSkillID == 2){
unitSlot._SKILL_2 = 15;
};
if (unitSkillID == 3){
unitSlot._SKILL_3 = 15;
};
if (unitSkillID == 4){
unitSlot._SKILL_4 = 15;
};
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money !");
};
} else {
if (level == 2){
_local2 = 10000;
_local3 = 10;
_local4 = 14;
if (mSystem.mDat.player_money >= _local2){
if ((((mSystem.mDat.material_stock[_local3] >= 1)) && ((mSystem.mDat.material_stock[_local4] >= 1)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.material_stock[_local3] = Math.max((mSystem.mDat.material_stock[_local3] - 1), 0);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - 1), 0);
if (unitSkillID == 1){
unitSlot._SKILL_1 = 11;
};
if (unitSkillID == 2){
unitSlot._SKILL_2 = 11;
};
if (unitSkillID == 3){
unitSlot._SKILL_3 = 11;
};
if (unitSkillID == 4){
unitSlot._SKILL_4 = 11;
};
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money !");
};
} else {
if (level == 3){
_local2 = 20000;
_local3 = 13;
_local4 = 14;
if (mSystem.mDat.player_money >= _local2){
if ((((mSystem.mDat.material_stock[_local3] >= 1)) && ((mSystem.mDat.material_stock[_local4] >= 1)))){
mSystem.mDat.player_money = Math.max((mSystem.mDat.player_money - _local2), 0);
mSystem.mDat.material_stock[_local3] = Math.max((mSystem.mDat.material_stock[_local3] - 1), 0);
mSystem.mDat.material_stock[_local4] = Math.max((mSystem.mDat.material_stock[_local4] - 1), 0);
if (unitSkillID == 1){
unitSlot._SKILL_1 = 5;
};
if (unitSkillID == 2){
unitSlot._SKILL_2 = 5;
};
if (unitSkillID == 3){
unitSlot._SKILL_3 = 5;
};
if (unitSkillID == 4){
unitSlot._SKILL_4 = 5;
};
} else {
mSystem.mEffect.msgInfo("warning: not enough material !");
};
} else {
mSystem.mEffect.msgInfo("warning: not enough money !");
};
};
};
};
updateInfo();
}
private function nextClick(_arg1:MouseEvent):void{
var _local2 = 1;
_local2 = 1;
while (_local2 <= 15) {
unitPosID = (unitPosID + 1);
if (unitPosID > 15){
unitPosID = 1;
};
unitSlot = getUnitSlot(unitPosID);
if (unitSlot._ID > 0){
break;
};
_local2++;
};
updateInfo();
}
private function unitSkill2Click(_arg1:MouseEvent):void{
unitSkillID = 2;
updateInfo();
}
public function destroy(){
this.slot1.btn_learn.removeEventListener(MouseEvent.CLICK, learn1Click);
this.slot2.btn_learn.removeEventListener(MouseEvent.CLICK, learn2Click);
this.slot3.btn_learn.removeEventListener(MouseEvent.CLICK, learn3Click);
this.btn_close.removeEventListener(MouseEvent.CLICK, closeClick);
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy general shop ... ok !");
}
}
}//package FZGame.Rpg.Interface
Section 94
//MenuWorld (FZGame.Rpg.Interface.MenuWorld)
package FZGame.Rpg.Interface {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class MenuWorld extends MovieClip {
public var btn_playmore:SimpleButton;
public var btn_exit:SimpleButton;
public var btn_inventory:SimpleButton;
public var btn_credit:SimpleButton;
public var btn_party:SimpleButton;
public var btn_help:SimpleButton;
public var map:MovieClip;
private var optionClip;
public var btn_walkthrough:SimpleButton;
public var btn_save:SimpleButton;
public var btn_formation:SimpleButton;
public var btn_option:SimpleButton;
public var btn_achievement:SimpleButton;
private var dispCont;
public var btn_map:SimpleButton;
private var mSystem;
private function area54Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(53);
destroy();
}
private function area46Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(45);
destroy();
}
private function exitClick(_arg1:MouseEvent):void{
var _local2:* = new menu_cover_mc();
_local2.init(mSystem);
destroy();
}
private function saveClick(_arg1:MouseEvent):void{
mSystem.mDat.saveData();
mSystem.mEffect.msgInfo("saving data ... completed !");
}
private function walkthroughClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1583&subid=walkthrough&action=walkthrough_epicquest");
navigateToURL(_local2, "_blank");
}
private function creditClick(_arg1:MouseEvent):void{
var _local2:* = new menu_credit_mc();
_local2.init(mSystem);
}
public function init(_arg1){
mSystem = _arg1;
dispCont = mSystem.contMENU;
dispCont.addChild(this);
this.cacheAsBitmap = true;
this.x = 0;
this.y = 0;
if (this.btn_save){
this.btn_save.addEventListener(MouseEvent.CLICK, saveClick, false, 0, true);
};
if (this.btn_party){
this.btn_party.addEventListener(MouseEvent.CLICK, partyClick, false, 0, true);
};
if (this.btn_formation){
this.btn_formation.addEventListener(MouseEvent.CLICK, formationClick, false, 0, true);
};
if (this.btn_inventory){
this.btn_inventory.addEventListener(MouseEvent.CLICK, inventoryClick, false, 0, true);
};
if (this.btn_achievement){
this.btn_achievement.addEventListener(MouseEvent.CLICK, achieveClick, false, 0, true);
};
if (this.btn_credit){
this.btn_credit.addEventListener(MouseEvent.CLICK, creditClick, false, 0, true);
};
if (this.btn_help){
this.btn_help.addEventListener(MouseEvent.CLICK, helpClick, false, 0, true);
};
if (this.btn_option){
this.btn_option.addEventListener(MouseEvent.CLICK, optionClick, false, 0, true);
};
if (this.btn_playmore){
this.btn_playmore.addEventListener(MouseEvent.CLICK, playMoreClick, false, 0, true);
};
if (this.btn_walkthrough){
this.btn_walkthrough.addEventListener(MouseEvent.CLICK, walkthroughClick, false, 0, true);
};
if (this.btn_exit){
this.btn_exit.addEventListener(MouseEvent.CLICK, exitClick, false, 0, true);
};
if (this.btn_map){
this.btn_map.addEventListener(MouseEvent.CLICK, mapClick, false, 0, true);
};
if (this.map.zone_1){
this.map.zone_1.addEventListener(MouseEvent.CLICK, zone1Click, false, 0, true);
};
if (this.map.zone_2){
this.map.zone_2.addEventListener(MouseEvent.CLICK, zone2Click, false, 0, true);
};
if (this.map.zone_3){
this.map.zone_3.addEventListener(MouseEvent.CLICK, zone3Click, false, 0, true);
};
if (this.map.zone_4){
this.map.zone_4.addEventListener(MouseEvent.CLICK, zone4Click, false, 0, true);
};
this.map.zone_2.visible = false;
this.map.zone_3.visible = false;
this.map.zone_4.visible = false;
if (mSystem.mDat.stage_area[15] >= 0){
this.map.zone_2.visible = true;
};
if (mSystem.mDat.stage_area[35] >= 0){
this.map.zone_3.visible = true;
};
if (mSystem.mDat.stage_area[50] >= 0){
this.map.zone_4.visible = true;
};
mSystem.mDat.updateUnlockArea();
this.map.area01.gotoAndStop(Math.min((mSystem.mDat.stage_area[0] + 2), 3));
this.map.area02.gotoAndStop(Math.min((mSystem.mDat.stage_area[1] + 2), 3));
this.map.area03.gotoAndStop(Math.min((mSystem.mDat.stage_area[2] + 2), 3));
this.map.area04.gotoAndStop(Math.min((mSystem.mDat.stage_area[3] + 2), 3));
this.map.area05.gotoAndStop(Math.min((mSystem.mDat.stage_area[4] + 2), 3));
this.map.area06.gotoAndStop(Math.min((mSystem.mDat.stage_area[5] + 2), 3));
this.map.area07.gotoAndStop(Math.min((mSystem.mDat.stage_area[6] + 2), 3));
this.map.area08.gotoAndStop(Math.min((mSystem.mDat.stage_area[7] + 2), 3));
this.map.area09.gotoAndStop(Math.min((mSystem.mDat.stage_area[8] + 2), 3));
this.map.area10.gotoAndStop(Math.min((mSystem.mDat.stage_area[9] + 2), 3));
this.map.area11.gotoAndStop(Math.min((mSystem.mDat.stage_area[10] + 2), 3));
this.map.area12.gotoAndStop(Math.min((mSystem.mDat.stage_area[11] + 2), 3));
this.map.area13.gotoAndStop(Math.min((mSystem.mDat.stage_area[12] + 2), 3));
this.map.area14.gotoAndStop(Math.min((mSystem.mDat.stage_area[13] + 2), 3));
this.map.area15.gotoAndStop(Math.min((mSystem.mDat.stage_area[14] + 2), 3));
this.map.area16.gotoAndStop(Math.min((mSystem.mDat.stage_area[15] + 2), 3));
this.map.area17.gotoAndStop(Math.min((mSystem.mDat.stage_area[16] + 2), 3));
this.map.area18.gotoAndStop(Math.min((mSystem.mDat.stage_area[17] + 2), 3));
this.map.area19.gotoAndStop(Math.min((mSystem.mDat.stage_area[18] + 2), 3));
this.map.area20.gotoAndStop(Math.min((mSystem.mDat.stage_area[19] + 2), 3));
this.map.area21.gotoAndStop(Math.min((mSystem.mDat.stage_area[20] + 2), 3));
this.map.area22.gotoAndStop(Math.min((mSystem.mDat.stage_area[21] + 2), 3));
this.map.area23.gotoAndStop(Math.min((mSystem.mDat.stage_area[22] + 2), 3));
this.map.area24.gotoAndStop(Math.min((mSystem.mDat.stage_area[23] + 2), 3));
this.map.area25.gotoAndStop(Math.min((mSystem.mDat.stage_area[24] + 2), 3));
this.map.area26.gotoAndStop(Math.min((mSystem.mDat.stage_area[25] + 2), 3));
this.map.area27.gotoAndStop(Math.min((mSystem.mDat.stage_area[26] + 2), 3));
this.map.area28.gotoAndStop(Math.min((mSystem.mDat.stage_area[27] + 2), 3));
this.map.area29.gotoAndStop(Math.min((mSystem.mDat.stage_area[28] + 2), 3));
this.map.area30.gotoAndStop(Math.min((mSystem.mDat.stage_area[29] + 2), 3));
this.map.area31.gotoAndStop(Math.min((mSystem.mDat.stage_area[30] + 2), 3));
this.map.area32.gotoAndStop(Math.min((mSystem.mDat.stage_area[31] + 2), 3));
this.map.area33.gotoAndStop(Math.min((mSystem.mDat.stage_area[32] + 2), 3));
this.map.area34.gotoAndStop(Math.min((mSystem.mDat.stage_area[33] + 2), 3));
this.map.area35.gotoAndStop(Math.min((mSystem.mDat.stage_area[34] + 2), 3));
this.map.area36.gotoAndStop(Math.min((mSystem.mDat.stage_area[35] + 2), 3));
this.map.area37.gotoAndStop(Math.min((mSystem.mDat.stage_area[36] + 2), 3));
this.map.area38.gotoAndStop(Math.min((mSystem.mDat.stage_area[37] + 2), 3));
this.map.area39.gotoAndStop(Math.min((mSystem.mDat.stage_area[38] + 2), 3));
this.map.area40.gotoAndStop(Math.min((mSystem.mDat.stage_area[39] + 2), 3));
this.map.area41.gotoAndStop(Math.min((mSystem.mDat.stage_area[40] + 2), 3));
this.map.area42.gotoAndStop(Math.min((mSystem.mDat.stage_area[41] + 2), 3));
this.map.area43.gotoAndStop(Math.min((mSystem.mDat.stage_area[42] + 2), 3));
this.map.area44.gotoAndStop(Math.min((mSystem.mDat.stage_area[43] + 2), 3));
this.map.area45.gotoAndStop(Math.min((mSystem.mDat.stage_area[44] + 2), 3));
this.map.area46.gotoAndStop(Math.min((mSystem.mDat.stage_area[45] + 2), 3));
this.map.area47.gotoAndStop(Math.min((mSystem.mDat.stage_area[46] + 2), 3));
this.map.area48.gotoAndStop(Math.min((mSystem.mDat.stage_area[47] + 2), 3));
this.map.area49.gotoAndStop(Math.min((mSystem.mDat.stage_area[48] + 2), 3));
this.map.area50.gotoAndStop(Math.min((mSystem.mDat.stage_area[49] + 2), 3));
this.map.area51.gotoAndStop(Math.min((mSystem.mDat.stage_area[50] + 2), 3));
this.map.area52.gotoAndStop(Math.min((mSystem.mDat.stage_area[51] + 2), 3));
this.map.area53.gotoAndStop(Math.min((mSystem.mDat.stage_area[52] + 2), 3));
this.map.area54.gotoAndStop(Math.min((mSystem.mDat.stage_area[53] + 2), 3));
this.map.area55.gotoAndStop(Math.min((mSystem.mDat.stage_area[54] + 2), 3));
this.map.area56.gotoAndStop(Math.min((mSystem.mDat.stage_area[55] + 2), 3));
this.map.area57.gotoAndStop(Math.min((mSystem.mDat.stage_area[56] + 2), 3));
this.map.area58.gotoAndStop(Math.min((mSystem.mDat.stage_area[57] + 2), 3));
this.map.area59.gotoAndStop(Math.min((mSystem.mDat.stage_area[58] + 2), 3));
this.map.area60.gotoAndStop(Math.min((mSystem.mDat.stage_area[59] + 2), 3));
this.map.area61.gotoAndStop(Math.min((mSystem.mDat.stage_area[60] + 2), 3));
if (mSystem.mDat.stage_area[0] >= 0){
this.map.area01.addEventListener(MouseEvent.CLICK, area01Click, false, 0, true);
this.map.area01.buttonMode = true;
};
if (mSystem.mDat.stage_area[1] >= 0){
this.map.area02.addEventListener(MouseEvent.CLICK, area02Click, false, 0, true);
this.map.area02.buttonMode = true;
};
if (mSystem.mDat.stage_area[2] >= 0){
this.map.area03.addEventListener(MouseEvent.CLICK, area03Click, false, 0, true);
this.map.area03.buttonMode = true;
};
if (mSystem.mDat.stage_area[3] >= 0){
this.map.area04.addEventListener(MouseEvent.CLICK, area04Click, false, 0, true);
this.map.area04.buttonMode = true;
};
if (mSystem.mDat.stage_area[4] >= 0){
this.map.area05.addEventListener(MouseEvent.CLICK, area05Click, false, 0, true);
this.map.area05.buttonMode = true;
};
if (mSystem.mDat.stage_area[5] >= 0){
this.map.area06.addEventListener(MouseEvent.CLICK, area06Click, false, 0, true);
this.map.area06.buttonMode = true;
};
if (mSystem.mDat.stage_area[6] >= 0){
this.map.area07.addEventListener(MouseEvent.CLICK, area07Click, false, 0, true);
this.map.area07.buttonMode = true;
};
if (mSystem.mDat.stage_area[7] >= 0){
this.map.area08.addEventListener(MouseEvent.CLICK, area08Click, false, 0, true);
this.map.area08.buttonMode = true;
};
if (mSystem.mDat.stage_area[8] >= 0){
this.map.area09.addEventListener(MouseEvent.CLICK, area09Click, false, 0, true);
this.map.area09.buttonMode = true;
};
if (mSystem.mDat.stage_area[9] >= 0){
this.map.area10.addEventListener(MouseEvent.CLICK, area10Click, false, 0, true);
this.map.area10.buttonMode = true;
};
if (mSystem.mDat.stage_area[10] >= 0){
this.map.area11.addEventListener(MouseEvent.CLICK, area11Click, false, 0, true);
this.map.area11.buttonMode = true;
};
if (mSystem.mDat.stage_area[11] >= 0){
this.map.area12.addEventListener(MouseEvent.CLICK, area12Click, false, 0, true);
this.map.area12.buttonMode = true;
};
if (mSystem.mDat.stage_area[12] >= 0){
this.map.area13.addEventListener(MouseEvent.CLICK, area13Click, false, 0, true);
this.map.area13.buttonMode = true;
};
if (mSystem.mDat.stage_area[13] >= 0){
this.map.area14.addEventListener(MouseEvent.CLICK, area14Click, false, 0, true);
this.map.area14.buttonMode = true;
};
if (mSystem.mDat.stage_area[14] >= 0){
this.map.area15.addEventListener(MouseEvent.CLICK, area15Click, false, 0, true);
this.map.area15.buttonMode = true;
};
if (mSystem.mDat.stage_area[15] >= 0){
this.map.area16.addEventListener(MouseEvent.CLICK, area16Click, false, 0, true);
this.map.area16.buttonMode = true;
};
if (mSystem.mDat.stage_area[16] >= 0){
this.map.area17.addEventListener(MouseEvent.CLICK, area17Click, false, 0, true);
this.map.area17.buttonMode = true;
};
if (mSystem.mDat.stage_area[17] >= 0){
this.map.area18.addEventListener(MouseEvent.CLICK, area18Click, false, 0, true);
this.map.area18.buttonMode = true;
};
if (mSystem.mDat.stage_area[18] >= 0){
this.map.area19.addEventListener(MouseEvent.CLICK, area19Click, false, 0, true);
this.map.area19.buttonMode = true;
};
if (mSystem.mDat.stage_area[19] >= 0){
this.map.area20.addEventListener(MouseEvent.CLICK, area20Click, false, 0, true);
this.map.area20.buttonMode = true;
};
if (mSystem.mDat.stage_area[20] >= 0){
this.map.area21.addEventListener(MouseEvent.CLICK, area21Click, false, 0, true);
this.map.area21.buttonMode = true;
};
if (mSystem.mDat.stage_area[21] >= 0){
this.map.area22.addEventListener(MouseEvent.CLICK, area22Click, false, 0, true);
this.map.area22.buttonMode = true;
};
if (mSystem.mDat.stage_area[22] >= 0){
this.map.area23.addEventListener(MouseEvent.CLICK, area23Click, false, 0, true);
this.map.area23.buttonMode = true;
};
if (mSystem.mDat.stage_area[23] >= 0){
this.map.area24.addEventListener(MouseEvent.CLICK, area24Click, false, 0, true);
this.map.area24.buttonMode = true;
};
if (mSystem.mDat.stage_area[24] >= 0){
this.map.area25.addEventListener(MouseEvent.CLICK, area25Click, false, 0, true);
this.map.area25.buttonMode = true;
};
if (mSystem.mDat.stage_area[25] >= 0){
this.map.area26.addEventListener(MouseEvent.CLICK, area26Click, false, 0, true);
this.map.area26.buttonMode = true;
};
if (mSystem.mDat.stage_area[26] >= 0){
this.map.area27.addEventListener(MouseEvent.CLICK, area27Click, false, 0, true);
this.map.area27.buttonMode = true;
};
if (mSystem.mDat.stage_area[27] >= 0){
this.map.area28.addEventListener(MouseEvent.CLICK, area28Click, false, 0, true);
this.map.area28.buttonMode = true;
};
if (mSystem.mDat.stage_area[28] >= 0){
this.map.area29.addEventListener(MouseEvent.CLICK, area29Click, false, 0, true);
this.map.area29.buttonMode = true;
};
if (mSystem.mDat.stage_area[29] >= 0){
this.map.area30.addEventListener(MouseEvent.CLICK, area30Click, false, 0, true);
this.map.area30.buttonMode = true;
};
if (mSystem.mDat.stage_area[30] >= 0){
this.map.area31.addEventListener(MouseEvent.CLICK, area31Click, false, 0, true);
this.map.area31.buttonMode = true;
};
if (mSystem.mDat.stage_area[31] >= 0){
this.map.area32.addEventListener(MouseEvent.CLICK, area32Click, false, 0, true);
this.map.area32.buttonMode = true;
};
if (mSystem.mDat.stage_area[32] >= 0){
this.map.area33.addEventListener(MouseEvent.CLICK, area33Click, false, 0, true);
this.map.area33.buttonMode = true;
};
if (mSystem.mDat.stage_area[33] >= 0){
this.map.area34.addEventListener(MouseEvent.CLICK, area34Click, false, 0, true);
this.map.area34.buttonMode = true;
};
if (mSystem.mDat.stage_area[34] >= 0){
this.map.area35.addEventListener(MouseEvent.CLICK, area35Click, false, 0, true);
this.map.area35.buttonMode = true;
};
if (mSystem.mDat.stage_area[35] >= 0){
this.map.area36.addEventListener(MouseEvent.CLICK, area36Click, false, 0, true);
this.map.area36.buttonMode = true;
};
if (mSystem.mDat.stage_area[36] >= 0){
this.map.area37.addEventListener(MouseEvent.CLICK, area37Click, false, 0, true);
this.map.area37.buttonMode = true;
};
if (mSystem.mDat.stage_area[37] >= 0){
this.map.area38.addEventListener(MouseEvent.CLICK, area38Click, false, 0, true);
this.map.area38.buttonMode = true;
};
if (mSystem.mDat.stage_area[38] >= 0){
this.map.area39.addEventListener(MouseEvent.CLICK, area39Click, false, 0, true);
this.map.area39.buttonMode = true;
};
if (mSystem.mDat.stage_area[39] >= 0){
this.map.area40.addEventListener(MouseEvent.CLICK, area40Click, false, 0, true);
this.map.area40.buttonMode = true;
};
if (mSystem.mDat.stage_area[40] >= 0){
this.map.area41.addEventListener(MouseEvent.CLICK, area41Click, false, 0, true);
this.map.area41.buttonMode = true;
};
if (mSystem.mDat.stage_area[41] >= 0){
this.map.area42.addEventListener(MouseEvent.CLICK, area42Click, false, 0, true);
this.map.area42.buttonMode = true;
};
if (mSystem.mDat.stage_area[42] >= 0){
this.map.area43.addEventListener(MouseEvent.CLICK, area43Click, false, 0, true);
this.map.area43.buttonMode = true;
};
if (mSystem.mDat.stage_area[43] >= 0){
this.map.area44.addEventListener(MouseEvent.CLICK, area44Click, false, 0, true);
this.map.area44.buttonMode = true;
};
if (mSystem.mDat.stage_area[44] >= 0){
this.map.area45.addEventListener(MouseEvent.CLICK, area45Click, false, 0, true);
this.map.area45.buttonMode = true;
};
if (mSystem.mDat.stage_area[45] >= 0){
this.map.area46.addEventListener(MouseEvent.CLICK, area46Click, false, 0, true);
this.map.area46.buttonMode = true;
};
if (mSystem.mDat.stage_area[46] >= 0){
this.map.area47.addEventListener(MouseEvent.CLICK, area47Click, false, 0, true);
this.map.area47.buttonMode = true;
};
if (mSystem.mDat.stage_area[47] >= 0){
this.map.area48.addEventListener(MouseEvent.CLICK, area48Click, false, 0, true);
this.map.area48.buttonMode = true;
};
if (mSystem.mDat.stage_area[48] >= 0){
this.map.area49.addEventListener(MouseEvent.CLICK, area49Click, false, 0, true);
this.map.area49.buttonMode = true;
};
if (mSystem.mDat.stage_area[49] >= 0){
this.map.area50.addEventListener(MouseEvent.CLICK, area50Click, false, 0, true);
this.map.area50.buttonMode = true;
};
if (mSystem.mDat.stage_area[50] >= 0){
this.map.area51.addEventListener(MouseEvent.CLICK, area51Click, false, 0, true);
this.map.area51.buttonMode = true;
};
if (mSystem.mDat.stage_area[51] >= 0){
this.map.area52.addEventListener(MouseEvent.CLICK, area52Click, false, 0, true);
this.map.area52.buttonMode = true;
};
if (mSystem.mDat.stage_area[52] >= 0){
this.map.area53.addEventListener(MouseEvent.CLICK, area53Click, false, 0, true);
this.map.area53.buttonMode = true;
};
if (mSystem.mDat.stage_area[53] >= 0){
this.map.area54.addEventListener(MouseEvent.CLICK, area54Click, false, 0, true);
this.map.area54.buttonMode = true;
};
if (mSystem.mDat.stage_area[54] >= 0){
this.map.area55.addEventListener(MouseEvent.CLICK, area55Click, false, 0, true);
this.map.area55.buttonMode = true;
};
if (mSystem.mDat.stage_area[55] >= 0){
this.map.area56.addEventListener(MouseEvent.CLICK, area56Click, false, 0, true);
this.map.area56.buttonMode = true;
};
if (mSystem.mDat.stage_area[56] >= 0){
this.map.area57.addEventListener(MouseEvent.CLICK, area57Click, false, 0, true);
this.map.area57.buttonMode = true;
};
if (mSystem.mDat.stage_area[57] >= 0){
this.map.area58.addEventListener(MouseEvent.CLICK, area58Click, false, 0, true);
this.map.area58.buttonMode = true;
};
if (mSystem.mDat.stage_area[58] >= 0){
this.map.area59.addEventListener(MouseEvent.CLICK, area59Click, false, 0, true);
this.map.area59.buttonMode = true;
};
if (mSystem.mDat.stage_area[59] >= 0){
this.map.area60.addEventListener(MouseEvent.CLICK, area60Click, false, 0, true);
this.map.area60.buttonMode = true;
};
if (mSystem.mDat.stage_area[60] >= 0){
this.map.area61.addEventListener(MouseEvent.CLICK, area61Click, false, 0, true);
this.map.area61.buttonMode = true;
};
trace("init world map ... ok !");
mSystem.mSound.playBgmWorld();
}
private function area27Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(26);
destroy();
}
private function area59Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(58);
destroy();
}
private function area35Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(34);
destroy();
}
private function optionClick(_arg1:MouseEvent):void{
initOptionMenu();
}
private function area11Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(10);
destroy();
}
private function removeOptionMenu(){
if (optionClip){
optionClip.btn_bgm_add.removeEventListener(MouseEvent.CLICK, bgmAddClick);
optionClip.btn_bgm_min.removeEventListener(MouseEvent.CLICK, bgmMinClick);
optionClip.btn_se_add.removeEventListener(MouseEvent.CLICK, seAddClick);
optionClip.btn_se_min.removeEventListener(MouseEvent.CLICK, seMinClick);
optionClip.btn_close.removeEventListener(MouseEvent.CLICK, optionCloseClick);
dispCont.removeChild(optionClip);
optionClip = null;
};
}
private function zone2Click(_arg1:MouseEvent):void{
this.map.x = 0;
this.map.y = 525;
}
private function area43Click(_arg1:MouseEvent):void{
var _local2:* = new menu_monstershop_mc();
_local2.init(mSystem, 3);
}
private function area51Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(50);
destroy();
}
private function area03Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(2);
destroy();
}
private function area19Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(18);
destroy();
}
private function area08Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(7);
destroy();
}
private function area16Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(15);
destroy();
}
private function area48Click(_arg1:MouseEvent):void{
var _local2:* = new menu_generalshop_mc();
_local2.init(mSystem, 5);
}
private function area56Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(55);
destroy();
}
private function bgmMinClick(_arg1:MouseEvent):void{
optionClip.bgm_vol.gotoAndStop(Math.max((optionClip.bgm_vol.currentFrame - 1), 0));
mSystem.mSound.setBgmVolume((optionClip.bgm_vol.currentFrame - 1));
}
private function area40Click(_arg1:MouseEvent):void{
var _local2:* = new menu_skillshop_mc();
_local2.init(mSystem, 2);
}
private function area24Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(23);
destroy();
}
private function partyClick(_arg1:MouseEvent):void{
var _local2:* = new menu_equipment_mc();
_local2.init(mSystem);
}
private function area32Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(31);
destroy();
}
private function bgmAddClick(_arg1:MouseEvent):void{
optionClip.bgm_vol.gotoAndStop(Math.min((optionClip.bgm_vol.currentFrame + 1), optionClip.bgm_vol.totalFrames));
mSystem.mSound.setBgmVolume((optionClip.bgm_vol.currentFrame - 1));
}
private function area29Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(28);
destroy();
}
private function area05Click(_arg1:MouseEvent):void{
var _local2:* = new menu_monstershop_mc();
_local2.init(mSystem, 1);
}
private function formationClick(_arg1:MouseEvent):void{
var _local2:* = new menu_formation_mc();
_local2.init(mSystem);
}
private function area13Click(_arg1:MouseEvent):void{
var _local2:* = new menu_forgeshop_mc();
_local2.init(mSystem, 3);
}
private function area45Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(44);
destroy();
}
private function area53Click(_arg1:MouseEvent):void{
var _local2:* = new menu_monstershop_mc();
_local2.init(mSystem, 4);
}
private function area37Click(_arg1:MouseEvent):void{
var _local2:* = new menu_forgeshop_mc();
_local2.init(mSystem, 2);
}
private function playMoreClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest(mSystem.mSecurity.sponsorLink);
navigateToURL(_local2, "_blank");
}
private function zone4Click(_arg1:MouseEvent):void{
this.map.x = 700;
this.map.y = 0;
}
private function area21Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(20);
destroy();
}
private function area61Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(60);
destroy();
}
private function area18Click(_arg1:MouseEvent):void{
var _local2:* = new menu_generalshop_mc();
_local2.init(mSystem, 2);
}
private function area26Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(25);
destroy();
}
private function area34Click(_arg1:MouseEvent):void{
var _local2:* = new menu_monstershop_mc();
_local2.init(mSystem, 6);
}
private function area10Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(9);
destroy();
}
private function area42Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(41);
destroy();
}
private function area58Click(_arg1:MouseEvent):void{
var _local2:* = new menu_skillshop_mc();
_local2.init(mSystem, 3);
}
private function zone1Click(_arg1:MouseEvent):void{
this.map.x = -700;
this.map.y = 0;
}
public function initAfterBattle(_arg1, _arg2:int=0){
init(_arg1);
if ((((_arg2 >= 0)) && ((_arg2 < 15)))){
this.map.x = -700;
this.map.y = 0;
} else {
if ((((_arg2 >= 15)) && ((_arg2 < 35)))){
this.map.x = 0;
this.map.y = 525;
} else {
if ((((_arg2 >= 35)) && ((_arg2 < 50)))){
this.map.x = -700;
this.map.y = 525;
} else {
if ((((_arg2 >= 50)) && ((_arg2 <= 61)))){
this.map.x = 700;
this.map.y = 0;
};
};
};
};
}
private function area50Click(_arg1:MouseEvent):void{
var _local2:* = new menu_monstershop_mc();
_local2.init(mSystem, 7);
}
private function inventoryClick(_arg1:MouseEvent):void{
var _local2:* = new menu_inventory_mc();
_local2.init(mSystem);
}
private function area02Click(_arg1:MouseEvent):void{
var _local2:* = new menu_generalshop_mc();
_local2.init(mSystem, 1);
}
private function mapClick(_arg1:MouseEvent):void{
this.map.x = 0;
this.map.y = 0;
}
private function area07Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(6);
destroy();
}
private function area39Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(38);
destroy();
}
private function area15Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(14);
destroy();
}
private function area23Click(_arg1:MouseEvent):void{
var _local2:* = new menu_forgeshop_mc();
_local2.init(mSystem, 1);
}
private function area55Click(_arg1:MouseEvent):void{
var _local2:* = new menu_generalshop_mc();
_local2.init(mSystem, 3);
}
private function area31Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(30);
destroy();
}
private function area47Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(46);
destroy();
}
private function initOptionMenu(){
if (optionClip == null){
optionClip = new menu_option_mc();
dispCont.addChild(optionClip);
optionClip.btn_close.addEventListener(MouseEvent.CLICK, optionCloseClick, false, 0, true);
optionClip.btn_bgm_add.addEventListener(MouseEvent.CLICK, bgmAddClick, false, 0, true);
optionClip.btn_bgm_min.addEventListener(MouseEvent.CLICK, bgmMinClick, false, 0, true);
optionClip.btn_se_add.addEventListener(MouseEvent.CLICK, seAddClick, false, 0, true);
optionClip.btn_se_min.addEventListener(MouseEvent.CLICK, seMinClick, false, 0, true);
optionClip.bgm_vol.gotoAndStop((mSystem.mSound.getBgmVolume() + 1));
optionClip.se_vol.gotoAndStop((mSystem.mSound.getSeVolume() + 1));
};
}
private function area28Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(27);
destroy();
}
private function achieveClick(_arg1:MouseEvent):void{
var _local2:* = new menu_achievement_mc();
_local2.init(mSystem);
}
private function area12Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(11);
destroy();
}
private function area44Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(43);
destroy();
}
private function area20Click(_arg1:MouseEvent):void{
var _local2:* = new menu_skillshop_mc();
_local2.init(mSystem, 1);
}
private function area04Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(3);
destroy();
}
private function zone3Click(_arg1:MouseEvent):void{
this.map.x = -700;
this.map.y = 525;
}
private function optionCloseClick(_arg1:MouseEvent):void{
removeOptionMenu();
}
private function helpClick(_arg1:MouseEvent):void{
var _local2:* = new menu_help_mc();
_local2.init(mSystem);
}
private function seMinClick(_arg1:MouseEvent):void{
optionClip.se_vol.gotoAndStop(Math.max((optionClip.se_vol.currentFrame - 1), 0));
mSystem.mSound.setSeVolume((optionClip.se_vol.currentFrame - 1));
}
private function area52Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(51);
destroy();
}
private function area36Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(35);
destroy();
}
private function area09Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(8);
destroy();
}
private function area17Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(16);
destroy();
}
private function area49Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(48);
destroy();
}
private function area25Click(_arg1:MouseEvent):void{
var _local2:* = new menu_monstershop_mc();
_local2.init(mSystem, 2);
}
private function seAddClick(_arg1:MouseEvent):void{
optionClip.se_vol.gotoAndStop(Math.min((optionClip.se_vol.currentFrame + 1), optionClip.se_vol.totalFrames));
mSystem.mSound.setSeVolume((optionClip.se_vol.currentFrame - 1));
}
private function area01Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(0);
destroy();
}
private function area33Click(_arg1:MouseEvent):void{
var _local2:* = new menu_generalshop_mc();
_local2.init(mSystem, 4);
}
private function area41Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(40);
destroy();
}
private function area57Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(56);
destroy();
}
private function area60Click(_arg1:MouseEvent):void{
var _local2:* = new menu_monstershop_mc();
_local2.init(mSystem, 8);
}
private function area06Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(5);
destroy();
}
private function area38Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(37);
destroy();
}
private function area14Click(_arg1:MouseEvent):void{
var _local2:* = new menu_monstershop_mc();
_local2.init(mSystem, 5);
}
public function destroy(){
removeOptionMenu();
this.map.area01.removeEventListener(MouseEvent.CLICK, area01Click);
this.map.area02.removeEventListener(MouseEvent.CLICK, area02Click);
this.map.area03.removeEventListener(MouseEvent.CLICK, area03Click);
this.map.area04.removeEventListener(MouseEvent.CLICK, area04Click);
this.map.area05.removeEventListener(MouseEvent.CLICK, area05Click);
this.map.area06.removeEventListener(MouseEvent.CLICK, area06Click);
this.map.area07.removeEventListener(MouseEvent.CLICK, area07Click);
this.map.area08.removeEventListener(MouseEvent.CLICK, area08Click);
this.map.area09.removeEventListener(MouseEvent.CLICK, area09Click);
this.map.area10.removeEventListener(MouseEvent.CLICK, area10Click);
this.map.area11.removeEventListener(MouseEvent.CLICK, area11Click);
this.map.area12.removeEventListener(MouseEvent.CLICK, area12Click);
this.map.area13.removeEventListener(MouseEvent.CLICK, area13Click);
this.map.area14.removeEventListener(MouseEvent.CLICK, area14Click);
this.map.area15.removeEventListener(MouseEvent.CLICK, area15Click);
this.map.area16.removeEventListener(MouseEvent.CLICK, area16Click);
this.map.area17.removeEventListener(MouseEvent.CLICK, area17Click);
this.map.area18.removeEventListener(MouseEvent.CLICK, area18Click);
this.map.area19.removeEventListener(MouseEvent.CLICK, area19Click);
this.map.area20.removeEventListener(MouseEvent.CLICK, area20Click);
this.map.area21.removeEventListener(MouseEvent.CLICK, area21Click);
this.map.area22.removeEventListener(MouseEvent.CLICK, area22Click);
this.map.area23.removeEventListener(MouseEvent.CLICK, area23Click);
this.map.area24.removeEventListener(MouseEvent.CLICK, area24Click);
this.map.area25.removeEventListener(MouseEvent.CLICK, area25Click);
this.map.area26.removeEventListener(MouseEvent.CLICK, area26Click);
this.map.area27.removeEventListener(MouseEvent.CLICK, area27Click);
this.map.area28.removeEventListener(MouseEvent.CLICK, area28Click);
this.map.area29.removeEventListener(MouseEvent.CLICK, area29Click);
this.map.area30.removeEventListener(MouseEvent.CLICK, area30Click);
this.map.area31.removeEventListener(MouseEvent.CLICK, area31Click);
this.map.area32.removeEventListener(MouseEvent.CLICK, area32Click);
this.map.area33.removeEventListener(MouseEvent.CLICK, area33Click);
this.map.area34.removeEventListener(MouseEvent.CLICK, area34Click);
this.map.area35.removeEventListener(MouseEvent.CLICK, area35Click);
this.map.area36.removeEventListener(MouseEvent.CLICK, area36Click);
this.map.area37.removeEventListener(MouseEvent.CLICK, area37Click);
this.map.area38.removeEventListener(MouseEvent.CLICK, area38Click);
this.map.area39.removeEventListener(MouseEvent.CLICK, area39Click);
this.map.area40.removeEventListener(MouseEvent.CLICK, area40Click);
this.map.area41.removeEventListener(MouseEvent.CLICK, area41Click);
this.map.area42.removeEventListener(MouseEvent.CLICK, area42Click);
this.map.area43.removeEventListener(MouseEvent.CLICK, area43Click);
this.map.area44.removeEventListener(MouseEvent.CLICK, area44Click);
this.map.area45.removeEventListener(MouseEvent.CLICK, area45Click);
this.map.area46.removeEventListener(MouseEvent.CLICK, area46Click);
this.map.area47.removeEventListener(MouseEvent.CLICK, area47Click);
this.map.area48.removeEventListener(MouseEvent.CLICK, area48Click);
this.map.area49.removeEventListener(MouseEvent.CLICK, area49Click);
this.map.area50.removeEventListener(MouseEvent.CLICK, area50Click);
this.map.area51.removeEventListener(MouseEvent.CLICK, area51Click);
this.map.area52.removeEventListener(MouseEvent.CLICK, area52Click);
this.map.area53.removeEventListener(MouseEvent.CLICK, area53Click);
this.map.area54.removeEventListener(MouseEvent.CLICK, area54Click);
this.map.area55.removeEventListener(MouseEvent.CLICK, area55Click);
this.map.area56.removeEventListener(MouseEvent.CLICK, area56Click);
this.map.area57.removeEventListener(MouseEvent.CLICK, area57Click);
this.map.area58.removeEventListener(MouseEvent.CLICK, area58Click);
this.map.area59.removeEventListener(MouseEvent.CLICK, area59Click);
this.map.area60.removeEventListener(MouseEvent.CLICK, area60Click);
this.map.area61.removeEventListener(MouseEvent.CLICK, area61Click);
if (this.btn_map){
this.btn_map.removeEventListener(MouseEvent.CLICK, mapClick);
};
if (this.map.zone_1){
this.map.zone_1.removeEventListener(MouseEvent.CLICK, zone1Click);
};
if (this.map.zone_2){
this.map.zone_2.removeEventListener(MouseEvent.CLICK, zone2Click);
};
if (this.map.zone_3){
this.map.zone_3.removeEventListener(MouseEvent.CLICK, zone3Click);
};
if (this.map.zone_4){
this.map.zone_4.removeEventListener(MouseEvent.CLICK, zone4Click);
};
if (this.btn_save){
this.btn_save.removeEventListener(MouseEvent.CLICK, saveClick);
};
if (this.btn_party){
this.btn_party.removeEventListener(MouseEvent.CLICK, partyClick);
};
if (this.btn_formation){
this.btn_formation.removeEventListener(MouseEvent.CLICK, formationClick);
};
if (this.btn_inventory){
this.btn_inventory.removeEventListener(MouseEvent.CLICK, inventoryClick);
};
if (this.btn_achievement){
this.btn_achievement.removeEventListener(MouseEvent.CLICK, achieveClick);
};
if (this.btn_credit){
this.btn_credit.removeEventListener(MouseEvent.CLICK, creditClick);
};
if (this.btn_option){
this.btn_option.removeEventListener(MouseEvent.CLICK, optionClick);
};
if (this.btn_help){
this.btn_help.removeEventListener(MouseEvent.CLICK, helpClick);
};
if (this.btn_playmore){
this.btn_playmore.removeEventListener(MouseEvent.CLICK, playMoreClick);
};
if (this.btn_walkthrough){
this.btn_walkthrough.removeEventListener(MouseEvent.CLICK, walkthroughClick);
};
if (this.btn_exit){
this.btn_exit.removeEventListener(MouseEvent.CLICK, exitClick);
};
dispCont.removeChild(this);
dispCont = null;
mSystem = null;
trace("destroy world map ... ok !");
}
private function area22Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(21);
destroy();
}
private function area30Click(_arg1:MouseEvent):void{
mSystem.mBattle.startBattle(29);
destroy();
}
}
}//package FZGame.Rpg.Interface
Section 95
//CoreSystem (FZGame.Rpg.System.CoreSystem)
package FZGame.Rpg.System {
import flash.display.*;
import FZBase.System.*;
import FZBase.Control.*;
import FZGame.Rpg.Class.*;
import FZGame.Rpg.Effect.*;
public class CoreSystem {
public var stageRoot;
public var mBattle;
public var mEnemyParty;
public var contMENU:Sprite;
public var contTRANS:Sprite;
public var mSound;
public var mState;
public var mKey;
public var contUNIT:Sprite;
public var contSCROLLZ:Sprite;
public var contMENU2:Sprite;
public var contEFFECT:Sprite;
public var stageHeight:int;// = 525
public var mSecurity;
public var contEFFECT2:Sprite;
public var mDCam;
public var mEffect;
public var mPlayerParty;
public var stageWidth:int;// = 700
public var mDat;
public var contBG:Sprite;
public var isPaused:Boolean;// = false
public var contSCROLL:Sprite;
public function setPaused(_arg1:Boolean){
isPaused = _arg1;
}
public function initialise(_arg1){
stageRoot = _arg1;
contSCROLLZ = new Sprite();
stageRoot.addChild(contSCROLLZ);
contSCROLL = new Sprite();
contSCROLLZ.addChild(contSCROLL);
contBG = new Sprite();
contSCROLL.addChild(contBG);
contUNIT = new Sprite();
contSCROLL.addChild(contUNIT);
contEFFECT = new Sprite();
contSCROLL.addChild(contEFFECT);
contEFFECT2 = new Sprite();
contSCROLL.addChild(contEFFECT2);
contMENU = new Sprite();
stageRoot.addChild(contMENU);
contMENU2 = new Sprite();
stageRoot.addChild(contMENU2);
contTRANS = new Sprite();
stageRoot.addChild(contTRANS);
mState = new GameState();
mState.setState(mState.ST_NONE);
mKey = new ControlKey();
mKey.initialise(stageRoot);
mDat = new GameData(this);
mDat.resetGameData();
mSecurity = new GameSecurity(stageRoot);
mSound = new SoundLibrary(this);
mBattle = new BattleSystem(this);
mEffect = new EffectManager(this);
mPlayerParty = new PlayerParty(this);
mEnemyParty = new EnemyParty(this);
mPlayerParty.initialise(mEnemyParty);
mEnemyParty.initialise(mPlayerParty);
mDCam = new DynamicCamera(this);
}
public function update(){
if (mBattle){
mBattle.update();
};
}
public function destroyObjectInContainer(_arg1){
var _local2:int = _arg1.numChildren;
var _local3:Array = new Array(_local2);
var _local4:int;
_local4 = 0;
while (_local4 < _local2) {
_local3[_local4] = _arg1.getChildAt(_local4);
_local4++;
};
_local4 = 0;
while (_local4 < _local2) {
_local3[_local4].destroy();
_local4++;
};
}
public function reset(){
isPaused = false;
}
}
}//package FZGame.Rpg.System
Section 96
//GameData (FZGame.Rpg.System.GameData)
package FZGame.Rpg.System {
import flash.net.*;
public class GameData {
private var mSystem;
public var unit_slot_skill1:Array;
public var unit_slot_skill2:Array;
public var unit_slot_equip2:Array;
public var unit_slot_skill4:Array;
public var stat_map1_completed:int;// = 0
public var unit_slot_equip1:Array;
public var unit_slot_skill3:Array;
public var _DAT_NAME:String;// = "RPG2D_SAVE"
public var stage_area:Array;
public var se_volume:Number;// = 1
public var unit_slot_exp:Array;
public var stat_maxcombo:int;// = 0
public var stat_map3_completed:int;// = 0
public var game_completed:int;// = 0
public var stat_highestmoney:int;// = 0
public var unit_slot_id:Array;
public var equip_stock:Array;
public var game_save_counter:int;// = 0
public var player_money:int;// = 0
public var stat_map2_completed:int;// = 0
public var stat_map4_completed:int;// = 0
public var stat_win:int;// = 0
public var bgm_volume:Number;// = 1
public var item_stock:Array;
public var material_stock:Array;
public function GameData(_arg1){
unit_slot_id = new Array(15);
unit_slot_exp = new Array(15);
unit_slot_skill1 = new Array(15);
unit_slot_skill2 = new Array(15);
unit_slot_skill3 = new Array(15);
unit_slot_skill4 = new Array(15);
unit_slot_equip1 = new Array(15);
unit_slot_equip2 = new Array(15);
item_stock = new Array(7);
equip_stock = new Array(30);
material_stock = new Array(15);
stage_area = new Array(61);
super();
mSystem = _arg1;
}
public function cheatMode(){
player_money = 5000000;
var _local1:int;
_local1 = 0;
while (_local1 < 7) {
item_stock[_local1] = 10;
_local1++;
};
_local1 = 0;
while (_local1 < 30) {
equip_stock[_local1] = 10;
_local1++;
};
_local1 = 0;
while (_local1 < 15) {
material_stock[_local1] = 10;
_local1++;
};
_local1 = 0;
while (_local1 <= 60) {
stage_area[_local1] = 1;
_local1++;
};
}
public function updateUnlockArea(){
if (stage_area[0] > 0){
if (stage_area[1] == -1){
stage_area[1] = 0;
};
if (stage_area[2] == -1){
stage_area[2] = 0;
};
};
if (stage_area[2] > 0){
if (stage_area[3] == -1){
stage_area[3] = 0;
};
if (stage_area[4] == -1){
stage_area[4] = 0;
};
};
if (stage_area[3] > 0){
if (stage_area[5] == -1){
stage_area[5] = 0;
};
};
if (stage_area[5] > 0){
if (stage_area[6] == -1){
stage_area[6] = 0;
};
};
if (stage_area[6] > 0){
if (stage_area[7] == -1){
stage_area[7] = 0;
};
};
if (stage_area[7] > 0){
if (stage_area[8] == -1){
stage_area[8] = 0;
};
if (stage_area[15] == -1){
stage_area[15] = 0;
};
};
if (stage_area[8] > 0){
if (stage_area[9] == -1){
stage_area[9] = 0;
};
};
if (stage_area[10] > 0){
if (stage_area[11] == -1){
stage_area[11] = 0;
};
};
if (stage_area[11] > 0){
if (stage_area[12] == -1){
stage_area[12] = 0;
};
if (stage_area[13] == -1){
stage_area[13] = 0;
};
if (stage_area[14] == -1){
stage_area[14] = 0;
};
};
if (stage_area[15] > 0){
if (stage_area[16] == -1){
stage_area[16] = 0;
};
};
if (stage_area[16] > 0){
if (stage_area[17] == -1){
stage_area[17] = 0;
};
if (stage_area[18] == -1){
stage_area[18] = 0;
};
};
if (stage_area[18] > 0){
if (stage_area[19] == -1){
stage_area[19] = 0;
};
if (stage_area[20] == -1){
stage_area[20] = 0;
};
};
if (stage_area[20] > 0){
if (stage_area[21] == -1){
stage_area[21] = 0;
};
};
if (stage_area[21] > 0){
if (stage_area[22] == -1){
stage_area[22] = 0;
};
if (stage_area[23] == -1){
stage_area[23] = 0;
};
};
if (stage_area[23] > 0){
if (stage_area[24] == -1){
stage_area[24] = 0;
};
if (stage_area[25] == -1){
stage_area[25] = 0;
};
};
if (stage_area[25] > 0){
if (stage_area[26] == -1){
stage_area[26] = 0;
};
};
if (stage_area[26] > 0){
if (stage_area[27] == -1){
stage_area[27] = 0;
};
};
if (stage_area[27] > 0){
if (stage_area[28] == -1){
stage_area[28] = 0;
};
if (stage_area[35] == -1){
stage_area[35] = 0;
};
};
if (stage_area[28] > 0){
if (stage_area[29] == -1){
stage_area[29] = 0;
};
};
if (stage_area[29] > 0){
if (stage_area[30] == -1){
stage_area[30] = 0;
};
};
if (stage_area[31] > 0){
if (stage_area[32] == -1){
stage_area[32] = 0;
};
if (stage_area[33] == -1){
stage_area[33] = 0;
};
if (stage_area[34] == -1){
stage_area[34] = 0;
};
};
if (stage_area[35] > 0){
if (stage_area[36] == -1){
stage_area[36] = 0;
};
if (stage_area[37] == -1){
stage_area[37] = 0;
};
};
if (stage_area[37] > 0){
if (stage_area[38] == -1){
stage_area[38] = 0;
};
};
if (stage_area[38] > 0){
if (stage_area[39] == -1){
stage_area[39] = 0;
};
if (stage_area[40] == -1){
stage_area[40] = 0;
};
};
if (stage_area[40] > 0){
if (stage_area[41] == -1){
stage_area[41] = 0;
};
};
if (stage_area[41] > 0){
if (stage_area[42] == -1){
stage_area[42] = 0;
};
if (stage_area[43] == -1){
stage_area[43] = 0;
};
};
if (stage_area[43] > 0){
if (stage_area[44] == -1){
stage_area[44] = 0;
};
};
if (stage_area[44] > 0){
if (stage_area[45] == -1){
stage_area[45] = 0;
};
if (stage_area[50] == -1){
stage_area[50] = 0;
};
};
if (stage_area[46] > 0){
if (stage_area[47] == -1){
stage_area[47] = 0;
};
if (stage_area[48] == -1){
stage_area[48] = 0;
};
};
if (stage_area[48] > 0){
if (stage_area[49] == -1){
stage_area[49] = 0;
};
};
if (stage_area[50] > 0){
if (stage_area[51] == -1){
stage_area[51] = 0;
};
};
if (stage_area[51] > 0){
if (stage_area[52] == -1){
stage_area[52] = 0;
};
if (stage_area[53] == -1){
stage_area[53] = 0;
};
};
if (stage_area[53] > 0){
if (stage_area[54] == -1){
stage_area[54] = 0;
};
if (stage_area[55] == -1){
stage_area[55] = 0;
};
};
if (stage_area[55] > 0){
if (stage_area[10] == -1){
stage_area[10] = 0;
};
if (stage_area[31] == -1){
stage_area[31] = 0;
};
if (stage_area[46] == -1){
stage_area[46] = 0;
};
if (stage_area[56] == -1){
stage_area[56] = 0;
};
};
if (stage_area[56] > 0){
if (stage_area[57] == -1){
stage_area[57] = 0;
};
if (stage_area[58] == -1){
stage_area[58] = 0;
};
};
if (stage_area[58] > 0){
if (stage_area[59] == -1){
stage_area[59] = 0;
};
if (stage_area[60] == -1){
stage_area[60] = 0;
};
};
}
public function resetGameData(){
bgm_volume = 1;
se_volume = 1;
game_completed = 0;
game_save_counter = 0;
player_money = 1000;
stat_win = 0;
stat_maxcombo = 0;
stat_highestmoney = 0;
var _local1:int;
_local1 = 0;
while (_local1 < 16) {
unit_slot_id[_local1] = 0;
unit_slot_exp[_local1] = 0;
unit_slot_skill1[_local1] = 0;
unit_slot_skill2[_local1] = 0;
unit_slot_skill3[_local1] = 0;
unit_slot_skill4[_local1] = 0;
unit_slot_equip1[_local1] = 0;
unit_slot_equip2[_local1] = 0;
_local1++;
};
_local1 = 0;
while (_local1 < 7) {
item_stock[_local1] = 0;
_local1++;
};
_local1 = 0;
while (_local1 < 30) {
equip_stock[_local1] = 0;
_local1++;
};
_local1 = 0;
while (_local1 < 15) {
material_stock[_local1] = 0;
_local1++;
};
_local1 = 0;
while (_local1 <= 60) {
stage_area[_local1] = -1;
_local1++;
};
stage_area[0] = 0;
}
public function loadData():Boolean{
var _local1:SharedObject = SharedObject.getLocal(_DAT_NAME);
game_save_counter = _local1.data.game_save_counter;
if (game_save_counter <= 0){
trace("load data .... failed !!");
return (false);
};
game_completed = _local1.data.game_completed;
bgm_volume = _local1.data.bgm_volume;
se_volume = _local1.data.se_volume;
player_money = _local1.data.player_money;
stat_win = _local1.data.stat_win;
stat_maxcombo = _local1.data.stat_maxcombo;
stat_highestmoney = _local1.data.stat_highestmoney;
stat_map1_completed = _local1.data.stat_map1_completed;
stat_map2_completed = _local1.data.stat_map2_completed;
stat_map3_completed = _local1.data.stat_map3_completed;
stat_map4_completed = _local1.data.stat_map4_completed;
unit_slot_id[0] = _local1.data.unit_slot_id_0;
unit_slot_exp[0] = _local1.data.unit_slot_exp_0;
unit_slot_skill1[0] = _local1.data.unit_slot_skill1_0;
unit_slot_skill2[0] = _local1.data.unit_slot_skill2_0;
unit_slot_skill3[0] = _local1.data.unit_slot_skill3_0;
unit_slot_skill4[0] = _local1.data.unit_slot_skill4_0;
unit_slot_equip1[0] = _local1.data.unit_slot_equip1_0;
unit_slot_equip2[0] = _local1.data.unit_slot_equip2_0;
unit_slot_id[1] = _local1.data.unit_slot_id_1;
unit_slot_exp[1] = _local1.data.unit_slot_exp_1;
unit_slot_skill1[1] = _local1.data.unit_slot_skill1_1;
unit_slot_skill2[1] = _local1.data.unit_slot_skill2_1;
unit_slot_skill3[1] = _local1.data.unit_slot_skill3_1;
unit_slot_skill4[1] = _local1.data.unit_slot_skill4_1;
unit_slot_equip1[1] = _local1.data.unit_slot_equip1_1;
unit_slot_equip2[1] = _local1.data.unit_slot_equip2_1;
unit_slot_id[2] = _local1.data.unit_slot_id_2;
unit_slot_exp[2] = _local1.data.unit_slot_exp_2;
unit_slot_skill1[2] = _local1.data.unit_slot_skill1_2;
unit_slot_skill2[2] = _local1.data.unit_slot_skill2_2;
unit_slot_skill3[2] = _local1.data.unit_slot_skill3_2;
unit_slot_skill4[2] = _local1.data.unit_slot_skill4_2;
unit_slot_equip1[2] = _local1.data.unit_slot_equip1_2;
unit_slot_equip2[2] = _local1.data.unit_slot_equip2_2;
unit_slot_id[3] = _local1.data.unit_slot_id_3;
unit_slot_exp[3] = _local1.data.unit_slot_exp_3;
unit_slot_skill1[3] = _local1.data.unit_slot_skill1_3;
unit_slot_skill2[3] = _local1.data.unit_slot_skill2_3;
unit_slot_skill3[3] = _local1.data.unit_slot_skill3_3;
unit_slot_skill4[3] = _local1.data.unit_slot_skill4_3;
unit_slot_equip1[3] = _local1.data.unit_slot_equip1_3;
unit_slot_equip2[3] = _local1.data.unit_slot_equip2_3;
unit_slot_id[4] = _local1.data.unit_slot_id_4;
unit_slot_exp[4] = _local1.data.unit_slot_exp_4;
unit_slot_skill1[4] = _local1.data.unit_slot_skill1_4;
unit_slot_skill2[4] = _local1.data.unit_slot_skill2_4;
unit_slot_skill3[4] = _local1.data.unit_slot_skill3_4;
unit_slot_skill4[4] = _local1.data.unit_slot_skill4_4;
unit_slot_equip1[4] = _local1.data.unit_slot_equip1_4;
unit_slot_equip2[4] = _local1.data.unit_slot_equip2_4;
unit_slot_id[5] = _local1.data.unit_slot_id_5;
unit_slot_exp[5] = _local1.data.unit_slot_exp_5;
unit_slot_skill1[5] = _local1.data.unit_slot_skill1_5;
unit_slot_skill2[5] = _local1.data.unit_slot_skill2_5;
unit_slot_skill3[5] = _local1.data.unit_slot_skill3_5;
unit_slot_skill4[5] = _local1.data.unit_slot_skill4_5;
unit_slot_equip1[5] = _local1.data.unit_slot_equip1_5;
unit_slot_equip2[5] = _local1.data.unit_slot_equip2_5;
unit_slot_id[6] = _local1.data.unit_slot_id_6;
unit_slot_exp[6] = _local1.data.unit_slot_exp_6;
unit_slot_skill1[6] = _local1.data.unit_slot_skill1_6;
unit_slot_skill2[6] = _local1.data.unit_slot_skill2_6;
unit_slot_skill3[6] = _local1.data.unit_slot_skill3_6;
unit_slot_skill4[6] = _local1.data.unit_slot_skill4_6;
unit_slot_equip1[6] = _local1.data.unit_slot_equip1_6;
unit_slot_equip2[6] = _local1.data.unit_slot_equip2_6;
unit_slot_id[7] = _local1.data.unit_slot_id_7;
unit_slot_exp[7] = _local1.data.unit_slot_exp_7;
unit_slot_skill1[7] = _local1.data.unit_slot_skill1_7;
unit_slot_skill2[7] = _local1.data.unit_slot_skill2_7;
unit_slot_skill3[7] = _local1.data.unit_slot_skill3_7;
unit_slot_skill4[7] = _local1.data.unit_slot_skill4_7;
unit_slot_equip1[7] = _local1.data.unit_slot_equip1_7;
unit_slot_equip2[7] = _local1.data.unit_slot_equip2_7;
unit_slot_id[8] = _local1.data.unit_slot_id_8;
unit_slot_exp[8] = _local1.data.unit_slot_exp_8;
unit_slot_skill1[8] = _local1.data.unit_slot_skill1_8;
unit_slot_skill2[8] = _local1.data.unit_slot_skill2_8;
unit_slot_skill3[8] = _local1.data.unit_slot_skill3_8;
unit_slot_skill4[8] = _local1.data.unit_slot_skill4_8;
unit_slot_equip1[8] = _local1.data.unit_slot_equip1_8;
unit_slot_equip2[8] = _local1.data.unit_slot_equip2_8;
unit_slot_id[9] = _local1.data.unit_slot_id_9;
unit_slot_exp[9] = _local1.data.unit_slot_exp_9;
unit_slot_skill1[9] = _local1.data.unit_slot_skill1_9;
unit_slot_skill2[9] = _local1.data.unit_slot_skill2_9;
unit_slot_skill3[9] = _local1.data.unit_slot_skill3_9;
unit_slot_skill4[9] = _local1.data.unit_slot_skill4_9;
unit_slot_equip1[9] = _local1.data.unit_slot_equip1_9;
unit_slot_equip2[9] = _local1.data.unit_slot_equip2_9;
unit_slot_id[10] = _local1.data.unit_slot_id_10;
unit_slot_exp[10] = _local1.data.unit_slot_exp_10;
unit_slot_skill1[10] = _local1.data.unit_slot_skill1_10;
unit_slot_skill2[10] = _local1.data.unit_slot_skill2_10;
unit_slot_skill3[10] = _local1.data.unit_slot_skill3_10;
unit_slot_skill4[10] = _local1.data.unit_slot_skill4_10;
unit_slot_equip1[10] = _local1.data.unit_slot_equip1_10;
unit_slot_equip2[10] = _local1.data.unit_slot_equip2_10;
unit_slot_id[11] = _local1.data.unit_slot_id_11;
unit_slot_exp[11] = _local1.data.unit_slot_exp_11;
unit_slot_skill1[11] = _local1.data.unit_slot_skill1_11;
unit_slot_skill2[11] = _local1.data.unit_slot_skill2_11;
unit_slot_skill3[11] = _local1.data.unit_slot_skill3_11;
unit_slot_skill4[11] = _local1.data.unit_slot_skill4_11;
unit_slot_equip1[11] = _local1.data.unit_slot_equip1_11;
unit_slot_equip2[11] = _local1.data.unit_slot_equip2_11;
unit_slot_id[12] = _local1.data.unit_slot_id_12;
unit_slot_exp[12] = _local1.data.unit_slot_exp_12;
unit_slot_skill1[12] = _local1.data.unit_slot_skill1_12;
unit_slot_skill2[12] = _local1.data.unit_slot_skill2_12;
unit_slot_skill3[12] = _local1.data.unit_slot_skill3_12;
unit_slot_skill4[12] = _local1.data.unit_slot_skill4_12;
unit_slot_equip1[12] = _local1.data.unit_slot_equip1_12;
unit_slot_equip2[12] = _local1.data.unit_slot_equip2_12;
unit_slot_id[13] = _local1.data.unit_slot_id_13;
unit_slot_exp[13] = _local1.data.unit_slot_exp_13;
unit_slot_skill1[13] = _local1.data.unit_slot_skill1_13;
unit_slot_skill2[13] = _local1.data.unit_slot_skill2_13;
unit_slot_skill3[13] = _local1.data.unit_slot_skill3_13;
unit_slot_skill4[13] = _local1.data.unit_slot_skill4_13;
unit_slot_equip1[13] = _local1.data.unit_slot_equip1_13;
unit_slot_equip2[13] = _local1.data.unit_slot_equip2_13;
unit_slot_id[14] = _local1.data.unit_slot_id_14;
unit_slot_exp[14] = _local1.data.unit_slot_exp_14;
unit_slot_skill1[14] = _local1.data.unit_slot_skill1_14;
unit_slot_skill2[14] = _local1.data.unit_slot_skill2_14;
unit_slot_skill3[14] = _local1.data.unit_slot_skill3_14;
unit_slot_skill4[14] = _local1.data.unit_slot_skill4_14;
unit_slot_equip1[14] = _local1.data.unit_slot_equip1_14;
unit_slot_equip2[14] = _local1.data.unit_slot_equip2_14;
item_stock[0] = _local1.data.item_stock0;
item_stock[1] = _local1.data.item_stock1;
item_stock[2] = _local1.data.item_stock2;
item_stock[3] = _local1.data.item_stock3;
item_stock[4] = _local1.data.item_stock4;
item_stock[5] = _local1.data.item_stock5;
item_stock[6] = _local1.data.item_stock6;
equip_stock[0] = _local1.data.equip_stock0;
equip_stock[1] = _local1.data.equip_stock1;
equip_stock[2] = _local1.data.equip_stock2;
equip_stock[3] = _local1.data.equip_stock3;
equip_stock[4] = _local1.data.equip_stock4;
equip_stock[5] = _local1.data.equip_stock5;
equip_stock[6] = _local1.data.equip_stock6;
equip_stock[7] = _local1.data.equip_stock7;
equip_stock[8] = _local1.data.equip_stock8;
equip_stock[9] = _local1.data.equip_stock9;
equip_stock[10] = _local1.data.equip_stock10;
equip_stock[11] = _local1.data.equip_stock11;
equip_stock[12] = _local1.data.equip_stock12;
equip_stock[13] = _local1.data.equip_stock13;
equip_stock[14] = _local1.data.equip_stock15;
equip_stock[16] = _local1.data.equip_stock16;
equip_stock[17] = _local1.data.equip_stock17;
equip_stock[18] = _local1.data.equip_stock18;
equip_stock[19] = _local1.data.equip_stock19;
equip_stock[20] = _local1.data.equip_stock20;
equip_stock[21] = _local1.data.equip_stock21;
equip_stock[22] = _local1.data.equip_stock22;
equip_stock[23] = _local1.data.equip_stock23;
equip_stock[24] = _local1.data.equip_stock24;
equip_stock[25] = _local1.data.equip_stock25;
equip_stock[26] = _local1.data.equip_stock26;
equip_stock[27] = _local1.data.equip_stock27;
equip_stock[28] = _local1.data.equip_stock28;
equip_stock[29] = _local1.data.equip_stock29;
material_stock[0] = _local1.data.material_stock0;
material_stock[1] = _local1.data.material_stock1;
material_stock[2] = _local1.data.material_stock2;
material_stock[3] = _local1.data.material_stock3;
material_stock[4] = _local1.data.material_stock4;
material_stock[5] = _local1.data.material_stock5;
material_stock[6] = _local1.data.material_stock6;
material_stock[7] = _local1.data.material_stock7;
material_stock[8] = _local1.data.material_stock8;
material_stock[9] = _local1.data.material_stock9;
material_stock[10] = _local1.data.material_stock10;
material_stock[11] = _local1.data.material_stock11;
material_stock[12] = _local1.data.material_stock12;
material_stock[13] = _local1.data.material_stock13;
material_stock[14] = _local1.data.material_stock14;
stage_area[0] = _local1.data.stage_area0;
stage_area[1] = _local1.data.stage_area1;
stage_area[2] = _local1.data.stage_area2;
stage_area[3] = _local1.data.stage_area3;
stage_area[4] = _local1.data.stage_area4;
stage_area[5] = _local1.data.stage_area5;
stage_area[6] = _local1.data.stage_area6;
stage_area[7] = _local1.data.stage_area7;
stage_area[8] = _local1.data.stage_area8;
stage_area[9] = _local1.data.stage_area9;
stage_area[10] = _local1.data.stage_area10;
stage_area[11] = _local1.data.stage_area11;
stage_area[12] = _local1.data.stage_area12;
stage_area[13] = _local1.data.stage_area13;
stage_area[14] = _local1.data.stage_area14;
stage_area[15] = _local1.data.stage_area15;
stage_area[16] = _local1.data.stage_area16;
stage_area[17] = _local1.data.stage_area17;
stage_area[18] = _local1.data.stage_area18;
stage_area[19] = _local1.data.stage_area19;
stage_area[20] = _local1.data.stage_area20;
stage_area[21] = _local1.data.stage_area21;
stage_area[22] = _local1.data.stage_area22;
stage_area[23] = _local1.data.stage_area23;
stage_area[24] = _local1.data.stage_area24;
stage_area[25] = _local1.data.stage_area25;
stage_area[26] = _local1.data.stage_area26;
stage_area[27] = _local1.data.stage_area27;
stage_area[28] = _local1.data.stage_area28;
stage_area[29] = _local1.data.stage_area29;
stage_area[30] = _local1.data.stage_area30;
stage_area[31] = _local1.data.stage_area31;
stage_area[32] = _local1.data.stage_area32;
stage_area[33] = _local1.data.stage_area33;
stage_area[34] = _local1.data.stage_area34;
stage_area[35] = _local1.data.stage_area35;
stage_area[36] = _local1.data.stage_area36;
stage_area[37] = _local1.data.stage_area37;
stage_area[38] = _local1.data.stage_area38;
stage_area[39] = _local1.data.stage_area39;
stage_area[40] = _local1.data.stage_area40;
stage_area[41] = _local1.data.stage_area41;
stage_area[42] = _local1.data.stage_area42;
stage_area[43] = _local1.data.stage_area43;
stage_area[44] = _local1.data.stage_area44;
stage_area[45] = _local1.data.stage_area45;
stage_area[46] = _local1.data.stage_area46;
stage_area[47] = _local1.data.stage_area47;
stage_area[48] = _local1.data.stage_area48;
stage_area[49] = _local1.data.stage_area49;
stage_area[50] = _local1.data.stage_area50;
stage_area[51] = _local1.data.stage_area51;
stage_area[52] = _local1.data.stage_area52;
stage_area[53] = _local1.data.stage_area53;
stage_area[54] = _local1.data.stage_area54;
stage_area[55] = _local1.data.stage_area55;
stage_area[56] = _local1.data.stage_area56;
stage_area[57] = _local1.data.stage_area57;
stage_area[58] = _local1.data.stage_area58;
stage_area[59] = _local1.data.stage_area59;
stage_area[60] = _local1.data.stage_area60;
mSystem.mPlayerParty.loadPartyData();
trace("load data ..... ok");
return (true);
}
public function startGameData(_arg1:int=0){
resetGameData();
}
public function saveData(){
mSystem.mPlayerParty.savePartyData();
var _local1:SharedObject = SharedObject.getLocal(_DAT_NAME);
_local1.data.game_save_counter = new int(Math.min((game_save_counter + 1), 99));
_local1.data.game_completed = new int(game_completed);
_local1.data.bgm_volume = new Number(bgm_volume);
_local1.data.se_volume = new Number(se_volume);
_local1.data.player_money = new int(player_money);
_local1.data.stat_win = new int(stat_win);
_local1.data.stat_maxcombo = new int(stat_maxcombo);
_local1.data.stat_highestmoney = new int(stat_highestmoney);
_local1.data.stat_map1_completed = stat_map1_completed;
_local1.data.stat_map2_completed = stat_map2_completed;
_local1.data.stat_map3_completed = stat_map3_completed;
_local1.data.stat_map4_completed = stat_map4_completed;
_local1.data.unit_slot_id_0 = unit_slot_id[0];
_local1.data.unit_slot_exp_0 = unit_slot_exp[0];
_local1.data.unit_slot_skill1_0 = unit_slot_skill1[0];
_local1.data.unit_slot_skill2_0 = unit_slot_skill2[0];
_local1.data.unit_slot_skill3_0 = unit_slot_skill3[0];
_local1.data.unit_slot_skill4_0 = unit_slot_skill4[0];
_local1.data.unit_slot_equip1_0 = unit_slot_equip1[0];
_local1.data.unit_slot_equip2_0 = unit_slot_equip2[0];
_local1.data.unit_slot_id_1 = unit_slot_id[1];
_local1.data.unit_slot_exp_1 = unit_slot_exp[1];
_local1.data.unit_slot_skill1_1 = unit_slot_skill1[1];
_local1.data.unit_slot_skill2_1 = unit_slot_skill2[1];
_local1.data.unit_slot_skill3_1 = unit_slot_skill3[1];
_local1.data.unit_slot_skill4_1 = unit_slot_skill4[1];
_local1.data.unit_slot_equip1_1 = unit_slot_equip1[1];
_local1.data.unit_slot_equip2_1 = unit_slot_equip2[1];
_local1.data.unit_slot_id_2 = unit_slot_id[2];
_local1.data.unit_slot_exp_2 = unit_slot_exp[2];
_local1.data.unit_slot_skill1_2 = unit_slot_skill1[2];
_local1.data.unit_slot_skill2_2 = unit_slot_skill2[2];
_local1.data.unit_slot_skill3_2 = unit_slot_skill3[2];
_local1.data.unit_slot_skill4_2 = unit_slot_skill4[2];
_local1.data.unit_slot_equip1_2 = unit_slot_equip1[2];
_local1.data.unit_slot_equip2_2 = unit_slot_equip2[2];
_local1.data.unit_slot_id_3 = unit_slot_id[3];
_local1.data.unit_slot_exp_3 = unit_slot_exp[3];
_local1.data.unit_slot_skill1_3 = unit_slot_skill1[3];
_local1.data.unit_slot_skill2_3 = unit_slot_skill2[3];
_local1.data.unit_slot_skill3_3 = unit_slot_skill3[3];
_local1.data.unit_slot_skill4_3 = unit_slot_skill4[3];
_local1.data.unit_slot_equip1_3 = unit_slot_equip1[3];
_local1.data.unit_slot_equip2_3 = unit_slot_equip2[3];
_local1.data.unit_slot_id_4 = unit_slot_id[4];
_local1.data.unit_slot_exp_4 = unit_slot_exp[4];
_local1.data.unit_slot_skill1_4 = unit_slot_skill1[4];
_local1.data.unit_slot_skill2_4 = unit_slot_skill2[4];
_local1.data.unit_slot_skill3_4 = unit_slot_skill3[4];
_local1.data.unit_slot_skill4_4 = unit_slot_skill4[4];
_local1.data.unit_slot_equip1_4 = unit_slot_equip1[4];
_local1.data.unit_slot_equip2_4 = unit_slot_equip2[4];
_local1.data.unit_slot_id_5 = unit_slot_id[5];
_local1.data.unit_slot_exp_5 = unit_slot_exp[5];
_local1.data.unit_slot_skill1_5 = unit_slot_skill1[5];
_local1.data.unit_slot_skill2_5 = unit_slot_skill2[5];
_local1.data.unit_slot_skill3_5 = unit_slot_skill3[5];
_local1.data.unit_slot_skill4_5 = unit_slot_skill4[5];
_local1.data.unit_slot_equip1_5 = unit_slot_equip1[5];
_local1.data.unit_slot_equip2_5 = unit_slot_equip2[5];
_local1.data.unit_slot_id_6 = unit_slot_id[6];
_local1.data.unit_slot_exp_6 = unit_slot_exp[6];
_local1.data.unit_slot_skill1_6 = unit_slot_skill1[6];
_local1.data.unit_slot_skill2_6 = unit_slot_skill2[6];
_local1.data.unit_slot_skill3_6 = unit_slot_skill3[6];
_local1.data.unit_slot_skill4_6 = unit_slot_skill4[6];
_local1.data.unit_slot_equip1_6 = unit_slot_equip1[6];
_local1.data.unit_slot_equip2_6 = unit_slot_equip2[6];
_local1.data.unit_slot_id_7 = unit_slot_id[7];
_local1.data.unit_slot_exp_7 = unit_slot_exp[7];
_local1.data.unit_slot_skill1_7 = unit_slot_skill1[7];
_local1.data.unit_slot_skill2_7 = unit_slot_skill2[7];
_local1.data.unit_slot_skill3_7 = unit_slot_skill3[7];
_local1.data.unit_slot_skill4_7 = unit_slot_skill4[7];
_local1.data.unit_slot_equip1_7 = unit_slot_equip1[7];
_local1.data.unit_slot_equip2_7 = unit_slot_equip2[7];
_local1.data.unit_slot_id_8 = unit_slot_id[8];
_local1.data.unit_slot_exp_8 = unit_slot_exp[8];
_local1.data.unit_slot_skill1_8 = unit_slot_skill1[8];
_local1.data.unit_slot_skill2_8 = unit_slot_skill2[8];
_local1.data.unit_slot_skill3_8 = unit_slot_skill3[8];
_local1.data.unit_slot_skill4_8 = unit_slot_skill4[8];
_local1.data.unit_slot_equip1_8 = unit_slot_equip1[8];
_local1.data.unit_slot_equip2_8 = unit_slot_equip2[8];
_local1.data.unit_slot_id_9 = unit_slot_id[9];
_local1.data.unit_slot_exp_9 = unit_slot_exp[9];
_local1.data.unit_slot_skill1_9 = unit_slot_skill1[9];
_local1.data.unit_slot_skill2_9 = unit_slot_skill2[9];
_local1.data.unit_slot_skill3_9 = unit_slot_skill3[9];
_local1.data.unit_slot_skill4_9 = unit_slot_skill4[9];
_local1.data.unit_slot_equip1_9 = unit_slot_equip1[9];
_local1.data.unit_slot_equip2_9 = unit_slot_equip2[9];
_local1.data.unit_slot_id_10 = unit_slot_id[10];
_local1.data.unit_slot_exp_10 = unit_slot_exp[10];
_local1.data.unit_slot_skill1_10 = unit_slot_skill1[10];
_local1.data.unit_slot_skill2_10 = unit_slot_skill2[10];
_local1.data.unit_slot_skill3_10 = unit_slot_skill3[10];
_local1.data.unit_slot_skill4_10 = unit_slot_skill4[10];
_local1.data.unit_slot_equip1_10 = unit_slot_equip1[10];
_local1.data.unit_slot_equip2_10 = unit_slot_equip2[10];
_local1.data.unit_slot_id_11 = unit_slot_id[11];
_local1.data.unit_slot_exp_11 = unit_slot_exp[11];
_local1.data.unit_slot_skill1_11 = unit_slot_skill1[11];
_local1.data.unit_slot_skill2_11 = unit_slot_skill2[11];
_local1.data.unit_slot_skill3_11 = unit_slot_skill3[11];
_local1.data.unit_slot_skill4_11 = unit_slot_skill4[11];
_local1.data.unit_slot_equip1_11 = unit_slot_equip1[11];
_local1.data.unit_slot_equip2_11 = unit_slot_equip2[11];
_local1.data.unit_slot_id_12 = unit_slot_id[12];
_local1.data.unit_slot_exp_12 = unit_slot_exp[12];
_local1.data.unit_slot_skill1_12 = unit_slot_skill1[12];
_local1.data.unit_slot_skill2_12 = unit_slot_skill2[12];
_local1.data.unit_slot_skill3_12 = unit_slot_skill3[12];
_local1.data.unit_slot_skill4_12 = unit_slot_skill4[12];
_local1.data.unit_slot_equip1_12 = unit_slot_equip1[12];
_local1.data.unit_slot_equip2_12 = unit_slot_equip2[12];
_local1.data.unit_slot_id_13 = unit_slot_id[13];
_local1.data.unit_slot_exp_13 = unit_slot_exp[13];
_local1.data.unit_slot_skill1_13 = unit_slot_skill1[13];
_local1.data.unit_slot_skill2_13 = unit_slot_skill2[13];
_local1.data.unit_slot_skill3_13 = unit_slot_skill3[13];
_local1.data.unit_slot_skill4_13 = unit_slot_skill4[13];
_local1.data.unit_slot_equip1_13 = unit_slot_equip1[13];
_local1.data.unit_slot_equip2_13 = unit_slot_equip2[13];
_local1.data.unit_slot_id_14 = unit_slot_id[14];
_local1.data.unit_slot_exp_14 = unit_slot_exp[14];
_local1.data.unit_slot_skill1_14 = unit_slot_skill1[14];
_local1.data.unit_slot_skill2_14 = unit_slot_skill2[14];
_local1.data.unit_slot_skill3_14 = unit_slot_skill3[14];
_local1.data.unit_slot_skill4_14 = unit_slot_skill4[14];
_local1.data.unit_slot_equip1_14 = unit_slot_equip1[14];
_local1.data.unit_slot_equip2_14 = unit_slot_equip2[14];
_local1.data.item_stock0 = item_stock[0];
_local1.data.item_stock1 = item_stock[1];
_local1.data.item_stock2 = item_stock[2];
_local1.data.item_stock3 = item_stock[3];
_local1.data.item_stock4 = item_stock[4];
_local1.data.item_stock5 = item_stock[5];
_local1.data.item_stock6 = item_stock[6];
_local1.data.equip_stock0 = equip_stock[0];
_local1.data.equip_stock1 = equip_stock[1];
_local1.data.equip_stock2 = equip_stock[2];
_local1.data.equip_stock3 = equip_stock[3];
_local1.data.equip_stock4 = equip_stock[4];
_local1.data.equip_stock5 = equip_stock[5];
_local1.data.equip_stock6 = equip_stock[6];
_local1.data.equip_stock7 = equip_stock[7];
_local1.data.equip_stock8 = equip_stock[8];
_local1.data.equip_stock9 = equip_stock[9];
_local1.data.equip_stock10 = equip_stock[10];
_local1.data.equip_stock11 = equip_stock[11];
_local1.data.equip_stock12 = equip_stock[12];
_local1.data.equip_stock13 = equip_stock[13];
_local1.data.equip_stock14 = equip_stock[14];
_local1.data.equip_stock15 = equip_stock[15];
_local1.data.equip_stock16 = equip_stock[16];
_local1.data.equip_stock17 = equip_stock[17];
_local1.data.equip_stock18 = equip_stock[18];
_local1.data.equip_stock19 = equip_stock[19];
_local1.data.equip_stock20 = equip_stock[20];
_local1.data.equip_stock21 = equip_stock[21];
_local1.data.equip_stock22 = equip_stock[22];
_local1.data.equip_stock23 = equip_stock[23];
_local1.data.equip_stock24 = equip_stock[24];
_local1.data.equip_stock25 = equip_stock[25];
_local1.data.equip_stock26 = equip_stock[26];
_local1.data.equip_stock27 = equip_stock[27];
_local1.data.equip_stock28 = equip_stock[28];
_local1.data.equip_stock29 = equip_stock[29];
_local1.data.material_stock0 = material_stock[0];
_local1.data.material_stock1 = material_stock[1];
_local1.data.material_stock2 = material_stock[2];
_local1.data.material_stock3 = material_stock[3];
_local1.data.material_stock4 = material_stock[4];
_local1.data.material_stock5 = material_stock[5];
_local1.data.material_stock6 = material_stock[6];
_local1.data.material_stock7 = material_stock[7];
_local1.data.material_stock8 = material_stock[8];
_local1.data.material_stock9 = material_stock[9];
_local1.data.material_stock10 = material_stock[10];
_local1.data.material_stock11 = material_stock[11];
_local1.data.material_stock12 = material_stock[12];
_local1.data.material_stock13 = material_stock[13];
_local1.data.material_stock14 = material_stock[14];
_local1.data.stage_area0 = stage_area[0];
_local1.data.stage_area1 = stage_area[1];
_local1.data.stage_area2 = stage_area[2];
_local1.data.stage_area3 = stage_area[3];
_local1.data.stage_area4 = stage_area[4];
_local1.data.stage_area5 = stage_area[5];
_local1.data.stage_area6 = stage_area[6];
_local1.data.stage_area7 = stage_area[7];
_local1.data.stage_area8 = stage_area[8];
_local1.data.stage_area9 = stage_area[9];
_local1.data.stage_area10 = stage_area[10];
_local1.data.stage_area11 = stage_area[11];
_local1.data.stage_area12 = stage_area[12];
_local1.data.stage_area13 = stage_area[13];
_local1.data.stage_area14 = stage_area[14];
_local1.data.stage_area15 = stage_area[15];
_local1.data.stage_area16 = stage_area[16];
_local1.data.stage_area17 = stage_area[17];
_local1.data.stage_area18 = stage_area[18];
_local1.data.stage_area19 = stage_area[19];
_local1.data.stage_area20 = stage_area[20];
_local1.data.stage_area21 = stage_area[21];
_local1.data.stage_area22 = stage_area[22];
_local1.data.stage_area23 = stage_area[23];
_local1.data.stage_area24 = stage_area[24];
_local1.data.stage_area25 = stage_area[25];
_local1.data.stage_area26 = stage_area[26];
_local1.data.stage_area27 = stage_area[27];
_local1.data.stage_area28 = stage_area[28];
_local1.data.stage_area29 = stage_area[29];
_local1.data.stage_area30 = stage_area[30];
_local1.data.stage_area31 = stage_area[31];
_local1.data.stage_area32 = stage_area[32];
_local1.data.stage_area33 = stage_area[33];
_local1.data.stage_area34 = stage_area[34];
_local1.data.stage_area35 = stage_area[35];
_local1.data.stage_area36 = stage_area[36];
_local1.data.stage_area37 = stage_area[37];
_local1.data.stage_area38 = stage_area[38];
_local1.data.stage_area39 = stage_area[39];
_local1.data.stage_area40 = stage_area[40];
_local1.data.stage_area41 = stage_area[41];
_local1.data.stage_area42 = stage_area[42];
_local1.data.stage_area43 = stage_area[43];
_local1.data.stage_area44 = stage_area[44];
_local1.data.stage_area45 = stage_area[45];
_local1.data.stage_area46 = stage_area[46];
_local1.data.stage_area47 = stage_area[47];
_local1.data.stage_area48 = stage_area[48];
_local1.data.stage_area49 = stage_area[49];
_local1.data.stage_area50 = stage_area[50];
_local1.data.stage_area51 = stage_area[51];
_local1.data.stage_area52 = stage_area[52];
_local1.data.stage_area53 = stage_area[53];
_local1.data.stage_area54 = stage_area[54];
_local1.data.stage_area55 = stage_area[55];
_local1.data.stage_area56 = stage_area[56];
_local1.data.stage_area57 = stage_area[57];
_local1.data.stage_area58 = stage_area[58];
_local1.data.stage_area59 = stage_area[59];
_local1.data.stage_area60 = stage_area[60];
_local1.flush();
trace("save data ..... ok");
}
}
}//package FZGame.Rpg.System
Section 97
//GameSecurity (FZGame.Rpg.System.GameSecurity)
package FZGame.Rpg.System {
import FZBase.System.*;
public class GameSecurity {
private var stageRoot;
public var mDomainName:String;// = ""
private var domain;
private var ad_clip;
public var mKongAPI;
private var ad_type:int;// = 0
private var currentDomain:String;// = ""
public var mCpmStar;
public var developerLink;// = "http://www.artlogicgames.com/?gameref=epicquest"
public var mMochiBot;
public var sponsorLink;// = "http://www.bubblebox.com/clickreg.php?type=gamestats&id=1583&subid=game"
public var sponsorLink2;// = "http://www.bubblebox.com/clickreg.php?type=gamestats&id=1583&subid=splash"
public function GameSecurity(_arg1){
stageRoot = _arg1;
mDomainName = stageRoot.loaderInfo.loaderURL;
mKongAPI = new KongAPI(stageRoot);
mKongAPI.initKongregateAPI();
MochiBot.track(stageRoot, "c0621d52");
mCpmStar = new CPMStar();
}
public function isArmorGamesSite(){
var _local1 = "armorgames.com";
if (mDomainName.lastIndexOf(_local1) == -1){
return (false);
};
return (true);
}
public function isNewgroundSite(){
var _local1 = "newgrounds.com";
if (mDomainName.lastIndexOf(_local1) == -1){
return (false);
};
return (true);
}
public function isKongregateSite(){
var _local1 = "kongregate.com";
if (mDomainName.lastIndexOf(_local1) == -1){
return (false);
};
return (true);
}
public function initAdv(_arg1, _arg2, _arg3:int=1){
ad_clip = _arg1;
ad_type = _arg3;
if (ad_type == 1){
if (mCpmStar){
mCpmStar.initCPMStar(ad_clip, _arg2);
};
} else {
if (ad_type == 2){
MochiAd.showClickAwayAd({id:"3f9bbb7837a4a1c6", clip:ad_clip});
};
};
}
public function isAndkonSite(){
var _local1 = "andkon.com";
if (mDomainName.lastIndexOf(_local1) == -1){
return (false);
};
return (true);
}
public function isBubbleBoxSite(){
var _local1 = "bubblebox.com";
if (mDomainName.lastIndexOf(_local1) == -1){
return (false);
};
return (true);
}
public function removeAdv(){
if (ad_type == 1){
if (mCpmStar){
mCpmStar.removeCPMStar();
};
} else {
if (ad_type == 2){
if (ad_clip){
MochiAd.unload(ad_clip);
};
};
};
ad_clip = null;
ad_type = 0;
}
public function isEnableAdv():Boolean{
var _local1:Boolean;
if (isBubbleBoxSite()){
_local1 = false;
};
return (_local1);
}
public function isLocalHost():Boolean{
var _local1 = "localhost";
if (mDomainName.lastIndexOf(_local1) == -1){
return (false);
};
return (true);
}
public function isArtLogicSite():Boolean{
var _local1 = "artlogicgames.com";
if (mDomainName.lastIndexOf(_local1) == -1){
return (false);
};
return (true);
}
public function isExclusiveEnable():Boolean{
var _local1:Boolean;
if (isBubbleBoxSite()){
_local1 = true;
};
return (_local1);
}
public function securityTest():Boolean{
return (true);
}
}
}//package FZGame.Rpg.System
Section 98
//GameState (FZGame.Rpg.System.GameState)
package FZGame.Rpg.System {
public class GameState {
public var ST_MENU_WORLD_ACHIEVEMENT;// = 34
public var ST_MENU_WORLD_PROLOQUE;// = 40
private var _state:int;// = 0
public var ST_INTRO_DEVELOPER;// = 11
public var ST_BATTLE_FINISH;// = 62
public var ST_BATTLE_START;// = 61
public var ST_MENU_COVER_SELECT;// = 21
public var ST_INTRO_SPONSOR;// = 10
public var ST_BATTLE_PAUSE;// = 63
public var ST_MENU_WORLD_EPILOQUE;// = 41
public var ST_MENU_WORLD;// = 30
public var ST_BATTLE_ENEMY_CHANGE_TURN;// = 67
public var ST_BATTLE_PLAYER_TURN;// = 65
public var ST_BATTLE_ENEMY_WIN;// = 69
public var ST_MENU_WORLD_EQUIP;// = 32
public var ST_SITE_LOCK;// = 99
public var ST_MENU_COVER_SELECT2;// = 22
public var ST_MENU_COVER;// = 20
public var ST_NONE;// = 0
public var ST_BATTLE_PLAYER_CHANGE_TURN;// = 64
public var ST_BATTLE_INIT;// = 60
public var ST_MENU_WORLD_STATUS;// = 33
public var ST_MENU_WORLD_CREDIT;// = 39
public var ST_MENU_WORLD_UPGRADE;// = 31
public var ST_BATTLE_PLAYER_WIN;// = 66
public var ST_MENU_WORLD_HELP;// = 38
public var ST_BATTLE_ENEMY_TURN;// = 68
public function isState(_arg1:int=0):Boolean{
if (_arg1 == _state){
return (true);
};
return (false);
}
public function setState(_arg1:int=0){
_state = _arg1;
}
public function getState():int{
return (_state);
}
}
}//package FZGame.Rpg.System
Section 99
//SoundLibrary (FZGame.Rpg.System.SoundLibrary)
package FZGame.Rpg.System {
public class SoundLibrary {
private var mSystem;
private var sndBgm;// = null
public function SoundLibrary(_arg1){
mSystem = _arg1;
}
public function setBgmVolume(_arg1:int){
mSystem.mDat.bgm_volume = 0;
if (_arg1 == 1){
mSystem.mDat.bgm_volume = 0.1;
} else {
if (_arg1 == 2){
mSystem.mDat.bgm_volume = 0.2;
} else {
if (_arg1 == 3){
mSystem.mDat.bgm_volume = 0.3;
} else {
if (_arg1 == 4){
mSystem.mDat.bgm_volume = 0.4;
} else {
if (_arg1 == 5){
mSystem.mDat.bgm_volume = 0.5;
} else {
if (_arg1 == 6){
mSystem.mDat.bgm_volume = 0.6;
} else {
if (_arg1 == 7){
mSystem.mDat.bgm_volume = 0.7;
} else {
if (_arg1 == 8){
mSystem.mDat.bgm_volume = 0.8;
} else {
if (_arg1 == 9){
mSystem.mDat.bgm_volume = 0.9;
} else {
if (_arg1 == 10){
mSystem.mDat.bgm_volume = 1;
};
};
};
};
};
};
};
};
};
};
if (sndBgm){
sndBgm.setVolume(mSystem.mDat.bgm_volume);
};
}
public function getSeVolume():int{
if (mSystem.mDat.se_volume == 0.1){
return (1);
};
if (mSystem.mDat.se_volume == 0.2){
return (2);
};
if (mSystem.mDat.se_volume == 0.3){
return (3);
};
if (mSystem.mDat.se_volume == 0.4){
return (4);
};
if (mSystem.mDat.se_volume == 0.5){
return (5);
};
if (mSystem.mDat.se_volume == 0.6){
return (6);
};
if (mSystem.mDat.se_volume == 0.7){
return (7);
};
if (mSystem.mDat.se_volume == 0.8){
return (8);
};
if (mSystem.mDat.se_volume == 0.9){
return (9);
};
if (mSystem.mDat.se_volume == 1){
return (10);
};
return (0);
}
public function playBgmCover(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_cover();
sndBgm.playSoundLoop();
sndBgm.setVolume(mSystem.mDat.bgm_volume);
}
public function playSoundEffect(_arg1:String="", _arg2:Number=1){
}
public function playBgmBattle2(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_battle2();
sndBgm.playSoundLoop();
sndBgm.setVolume(mSystem.mDat.bgm_volume);
}
public function playBgmWin(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_win();
sndBgm.playSound();
sndBgm.setVolume(mSystem.mDat.bgm_volume);
}
public function getBgmVolume():int{
if (mSystem.mDat.bgm_volume == 0.1){
return (1);
};
if (mSystem.mDat.bgm_volume == 0.2){
return (2);
};
if (mSystem.mDat.bgm_volume == 0.3){
return (3);
};
if (mSystem.mDat.bgm_volume == 0.4){
return (4);
};
if (mSystem.mDat.bgm_volume == 0.5){
return (5);
};
if (mSystem.mDat.bgm_volume == 0.6){
return (6);
};
if (mSystem.mDat.bgm_volume == 0.7){
return (7);
};
if (mSystem.mDat.bgm_volume == 0.8){
return (8);
};
if (mSystem.mDat.bgm_volume == 0.9){
return (9);
};
if (mSystem.mDat.bgm_volume == 1){
return (10);
};
return (0);
}
public function setSeVolume(_arg1:int){
mSystem.mDat.se_volume = 0;
if (_arg1 == 1){
mSystem.mDat.se_volume = 0.1;
} else {
if (_arg1 == 2){
mSystem.mDat.se_volume = 0.2;
} else {
if (_arg1 == 3){
mSystem.mDat.se_volume = 0.3;
} else {
if (_arg1 == 4){
mSystem.mDat.se_volume = 0.4;
} else {
if (_arg1 == 5){
mSystem.mDat.se_volume = 0.5;
} else {
if (_arg1 == 6){
mSystem.mDat.se_volume = 0.6;
} else {
if (_arg1 == 7){
mSystem.mDat.se_volume = 0.7;
} else {
if (_arg1 == 8){
mSystem.mDat.se_volume = 0.8;
} else {
if (_arg1 == 9){
mSystem.mDat.se_volume = 0.9;
} else {
if (_arg1 == 10){
mSystem.mDat.se_volume = 1;
};
};
};
};
};
};
};
};
};
};
}
public function playBgmBattle(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_battle();
sndBgm.playSoundLoop();
sndBgm.setVolume(mSystem.mDat.bgm_volume);
}
public function playBgmWorld(){
if (sndBgm){
sndBgm.stopSound();
};
sndBgm = new bgm_world();
sndBgm.playSoundLoop();
sndBgm.setVolume(mSystem.mDat.bgm_volume);
}
}
}//package FZGame.Rpg.System
Section 100
//RpgClass (FZGame.Rpg.RpgClass)
package FZGame.Rpg {
import flash.events.*;
import FZGame.Rpg.System.*;
public class RpgClass {
private var stageRoot;// = null
private var mSystem;// = null
public function initialise(_arg1){
var _local2:*;
var _local3:*;
stageRoot = _arg1;
mSystem = new CoreSystem();
mSystem.initialise(_arg1);
if (mSystem.mSecurity.securityTest()){
_local2 = new BubbleBoxSplash();
_local2.init(mSystem);
stageRoot.addEventListener(Event.ENTER_FRAME, gameHandle, false, 0, true);
} else {
mSystem.mState.setState(mSystem.mState.ST_SITE_LOCK);
_local3 = new SiteLock();
stageRoot.addChild(_local3);
_local3.domain_name.htmlText = String(("Domain Name : " + mSystem.mSecurity.mDomainName));
};
}
private function gameHandle(_arg1:Event):void{
if (mSystem){
mSystem.update();
};
}
}
}//package FZGame.Rpg
Section 101
//achv_01_167 (RPG_fla.achv_01_167)
package RPG_fla {
import flash.display.*;
public dynamic class achv_01_167 extends MovieClip {
public function achv_01_167(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 102
//achv_02_168 (RPG_fla.achv_02_168)
package RPG_fla {
import flash.display.*;
public dynamic class achv_02_168 extends MovieClip {
public function achv_02_168(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 103
//achv_03_169 (RPG_fla.achv_03_169)
package RPG_fla {
import flash.display.*;
public dynamic class achv_03_169 extends MovieClip {
public function achv_03_169(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 104
//achv_04_170 (RPG_fla.achv_04_170)
package RPG_fla {
import flash.display.*;
public dynamic class achv_04_170 extends MovieClip {
public function achv_04_170(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 105
//achv_05_171 (RPG_fla.achv_05_171)
package RPG_fla {
import flash.display.*;
public dynamic class achv_05_171 extends MovieClip {
public function achv_05_171(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 106
//achv_06_172 (RPG_fla.achv_06_172)
package RPG_fla {
import flash.display.*;
public dynamic class achv_06_172 extends MovieClip {
public function achv_06_172(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 107
//achv_07_173 (RPG_fla.achv_07_173)
package RPG_fla {
import flash.display.*;
public dynamic class achv_07_173 extends MovieClip {
public function achv_07_173(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 108
//achv_08_174 (RPG_fla.achv_08_174)
package RPG_fla {
import flash.display.*;
public dynamic class achv_08_174 extends MovieClip {
public function achv_08_174(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 109
//achv_09_175 (RPG_fla.achv_09_175)
package RPG_fla {
import flash.display.*;
public dynamic class achv_09_175 extends MovieClip {
public function achv_09_175(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 110
//achv_10_176 (RPG_fla.achv_10_176)
package RPG_fla {
import flash.display.*;
public dynamic class achv_10_176 extends MovieClip {
public function achv_10_176(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 111
//affinity_dark_247 (RPG_fla.affinity_dark_247)
package RPG_fla {
import flash.display.*;
public dynamic class affinity_dark_247 extends MovieClip {
public function affinity_dark_247(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 112
//affinity_energy_248 (RPG_fla.affinity_energy_248)
package RPG_fla {
import flash.display.*;
public dynamic class affinity_energy_248 extends MovieClip {
public function affinity_energy_248(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 113
//affinity_fire_244 (RPG_fla.affinity_fire_244)
package RPG_fla {
import flash.display.*;
public dynamic class affinity_fire_244 extends MovieClip {
public function affinity_fire_244(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 114
//affinity_phys_243 (RPG_fla.affinity_phys_243)
package RPG_fla {
import flash.display.*;
public dynamic class affinity_phys_243 extends MovieClip {
public function affinity_phys_243(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 115
//affinity_thunder_246 (RPG_fla.affinity_thunder_246)
package RPG_fla {
import flash.display.*;
public dynamic class affinity_thunder_246 extends MovieClip {
public function affinity_thunder_246(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 116
//affinity_water_245 (RPG_fla.affinity_water_245)
package RPG_fla {
import flash.display.*;
public dynamic class affinity_water_245 extends MovieClip {
public function affinity_water_245(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 117
//area_battle_137 (RPG_fla.area_battle_137)
package RPG_fla {
import flash.display.*;
public dynamic class area_battle_137 extends MovieClip {
public function area_battle_137(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 118
//area_battle2_146 (RPG_fla.area_battle2_146)
package RPG_fla {
import flash.display.*;
public dynamic class area_battle2_146 extends MovieClip {
public function area_battle2_146(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 119
//area_blacksmith_149 (RPG_fla.area_blacksmith_149)
package RPG_fla {
import flash.display.*;
public dynamic class area_blacksmith_149 extends MovieClip {
public function area_blacksmith_149(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 120
//area_generalshop_140 (RPG_fla.area_generalshop_140)
package RPG_fla {
import flash.display.*;
public dynamic class area_generalshop_140 extends MovieClip {
public function area_generalshop_140(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 121
//area_monstershop_143 (RPG_fla.area_monstershop_143)
package RPG_fla {
import flash.display.*;
public dynamic class area_monstershop_143 extends MovieClip {
public function area_monstershop_143(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 122
//area_skillshop_152 (RPG_fla.area_skillshop_152)
package RPG_fla {
import flash.display.*;
public dynamic class area_skillshop_152 extends MovieClip {
public function area_skillshop_152(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package RPG_fla
Section 123
//area_zone_128 (RPG_fla.area_zone_128)
package RPG_fla {
import flash.display.*;
public dynamic class area_zone_128 extends MovieClip {
public function area_zone_128(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RPG_fla
Section 124
//area_zone2_131 (RPG_fla.area_zone2_131)
package RPG_fla {
import flash.display.*;
public dynamic class area_zone2_131 extends MovieClip {
public function area_zone2_131(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RPG_fla
Section 125
//area_zone3_133 (RPG_fla.area_zone3_133)
package RPG_fla {
import flash.display.*;
public dynamic class area_zone3_133 extends MovieClip {
public function area_zone3_133(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RPG_fla
Section 126
//area_zone4_135 (RPG_fla.area_zone4_135)
package RPG_fla {
import flash.display.*;
public dynamic class area_zone4_135 extends MovieClip {
public function area_zone4_135(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RPG_fla
Section 127
//bubble_logo3_14 (RPG_fla.bubble_logo3_14)
package RPG_fla {
import flash.display.*;
public dynamic class bubble_logo3_14 extends MovieClip {
public function bubble_logo3_14(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package RPG_fla
Section 128
//cmd_list_252 (RPG_fla.cmd_list_252)
package RPG_fla {
import flash.display.*;
public dynamic class cmd_list_252 extends MovieClip {
public function cmd_list_252(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44);
}
function frame41(){
stop();
}
function frame42(){
stop();
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame37(){
stop();
}
function frame38(){
stop();
}
function frame39(){
stop();
}
function frame32(){
stop();
}
function frame33(){
stop();
}
function frame34(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame40(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
}
}//package RPG_fla
Section 129
//command_btn_anim_254 (RPG_fla.command_btn_anim_254)
package RPG_fla {
import flash.display.*;
public dynamic class command_btn_anim_254 extends MovieClip {
public function command_btn_anim_254(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 130
//energy_btn_anim_273 (RPG_fla.energy_btn_anim_273)
package RPG_fla {
import flash.display.*;
public dynamic class energy_btn_anim_273 extends MovieClip {
public function energy_btn_anim_273(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 131
//energy_btn_anim_93 (RPG_fla.energy_btn_anim_93)
package RPG_fla {
import flash.display.*;
public dynamic class energy_btn_anim_93 extends MovieClip {
public function energy_btn_anim_93(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 132
//equip_btn_anim_38 (RPG_fla.equip_btn_anim_38)
package RPG_fla {
import flash.display.*;
public dynamic class equip_btn_anim_38 extends MovieClip {
public function equip_btn_anim_38(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 133
//fire_btn_anim_100 (RPG_fla.fire_btn_anim_100)
package RPG_fla {
import flash.display.*;
public dynamic class fire_btn_anim_100 extends MovieClip {
public function fire_btn_anim_100(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 134
//fire_btn_anim_280 (RPG_fla.fire_btn_anim_280)
package RPG_fla {
import flash.display.*;
public dynamic class fire_btn_anim_280 extends MovieClip {
public function fire_btn_anim_280(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 135
//health_party_bar_306 (RPG_fla.health_party_bar_306)
package RPG_fla {
import flash.display.*;
public dynamic class health_party_bar_306 extends MovieClip {
public function health_party_bar_306(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RPG_fla
Section 136
//health_party_bar_small_307 (RPG_fla.health_party_bar_small_307)
package RPG_fla {
import flash.display.*;
public dynamic class health_party_bar_small_307 extends MovieClip {
public function health_party_bar_small_307(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RPG_fla
Section 137
//item_btn_anim_258 (RPG_fla.item_btn_anim_258)
package RPG_fla {
import flash.display.*;
public dynamic class item_btn_anim_258 extends MovieClip {
public function item_btn_anim_258(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 138
//item_btn_anim_30 (RPG_fla.item_btn_anim_30)
package RPG_fla {
import flash.display.*;
public dynamic class item_btn_anim_30 extends MovieClip {
public function item_btn_anim_30(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 139
//item_slot_list_388 (RPG_fla.item_slot_list_388)
package RPG_fla {
import flash.display.*;
public dynamic class item_slot_list_388 extends MovieClip {
public function item_slot_list_388(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53);
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame32(){
stop();
}
function frame33(){
stop();
}
function frame34(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame37(){
stop();
}
function frame38(){
stop();
}
function frame39(){
stop();
}
function frame40(){
stop();
}
function frame41(){
stop();
}
function frame42(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame50(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
}
}//package RPG_fla
Section 140
//item_slot_list_anim_26 (RPG_fla.item_slot_list_anim_26)
package RPG_fla {
import flash.display.*;
public dynamic class item_slot_list_anim_26 extends MovieClip {
public function item_slot_list_anim_26(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53);
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame32(){
stop();
}
function frame33(){
stop();
}
function frame34(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame37(){
stop();
}
function frame38(){
stop();
}
function frame39(){
stop();
}
function frame40(){
stop();
}
function frame41(){
stop();
}
function frame42(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame50(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
}
}//package RPG_fla
Section 141
//LOADER_9 (RPG_fla.LOADER_9)
package RPG_fla {
import flash.display.*;
public dynamic class LOADER_9 extends MovieClip {
public function LOADER_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RPG_fla
Section 142
//MainTimeline (RPG_fla.MainTimeline)
package RPG_fla {
import flash.events.*;
import flash.display.*;
import FZBase.System.*;
import flash.media.*;
import flash.utils.*;
import flash.system.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.errors.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var mCpmStar;
public var percent:int;
public var ads:MovieClip;
public var test;
public var preloader:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 4, frame5);
}
public function showProgress(_arg1:Event):void{
percent = Math.round(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100));
preloader.loading_bar.scaleX = (percent / 100);
preloader.progress_info.htmlText = String((((String(Math.round((this.loaderInfo.bytesLoaded / 0x0400))) + " kb / ") + String(Math.round((this.loaderInfo.bytesTotal / 0x0400)))) + " kb"));
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
trace("Done loading");
preloader.removeEventListener(Event.ENTER_FRAME, showProgress);
preloader.btn_preloader_play.visible = true;
preloader.progress_info.visible = false;
};
}
function frame5(){
stop();
test = new DocumentClass();
test.initialise(this);
}
function frame1(){
stop();
stage.scaleMode = StageScaleMode.NO_SCALE;
preloader.addEventListener(Event.ENTER_FRAME, showProgress);
preloader.btn_sponsor.addEventListener(MouseEvent.CLICK, sponsorClick);
preloader.btn_developer.addEventListener(MouseEvent.CLICK, developerClick);
preloader.btn_preloader_play.addEventListener(MouseEvent.CLICK, playClick);
preloader.btn_preloader_promo.addEventListener(MouseEvent.CLICK, promoClick);
preloader.btn_preloader_play.visible = false;
preloader.progress_info.visible = true;
mCpmStar = new CPMStar();
if (Math.random() < 0.5){
ads.visible = false;
} else {
mCpmStar.initCPMStar(ads, "1193QB8498079");
};
}
public function sponsorClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1583&subid=splash");
navigateToURL(_local2, "_blank");
}
public function playClick(_arg1:MouseEvent):void{
preloader.btn_sponsor.removeEventListener(MouseEvent.CLICK, sponsorClick);
preloader.btn_developer.removeEventListener(MouseEvent.CLICK, developerClick);
preloader.btn_preloader_play.removeEventListener(MouseEvent.CLICK, playClick);
preloader.btn_preloader_promo.removeEventListener(MouseEvent.CLICK, promoClick);
if (isSiteLocked()){
gotoAndStop(10);
} else {
mCpmStar.removeCPMStar();
gotoAndPlay(2);
};
}
public function promoClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1583&subid=playCoverOrange&action=play_1541");
navigateToURL(_local2, "_blank");
}
public function isSiteLocked():Boolean{
trace(this.loaderInfo.loaderURL);
var _local1:* = this.loaderInfo.loaderURL.split("://");
var _local2:* = _local1[1].split("/");
var _local3:* = _local2[0];
if ((((((((((((((((((_local3 == "artlogicgames.com")) || ((_local3 == "www.artlogicgames.com")))) || ((_local3 == "bubblebox.com")))) || ((_local3 == "www.bubblebox.com")))) || ((_local3 == "a.kongregate.com")))) || ((_local3 == "chat.kongregate.com")))) || ((_local3 == "kongregate.com")))) || ((_local3 == "www.kongregate.com")))) || ((this.loaderInfo.loaderURL == "file:///F|/ferry%20FLASH%20GAME%20DEV/10%2DDefender2/defender2.swf")))){
return (false);
};
return (false);
}
public function developerClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.artlogicgames.com/?gameref=epicquest");
navigateToURL(_local2, "_blank");
}
}
}//package RPG_fla
Section 143
//material_btn_anim_69 (RPG_fla.material_btn_anim_69)
package RPG_fla {
import flash.display.*;
public dynamic class material_btn_anim_69 extends MovieClip {
public function material_btn_anim_69(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 144
//mystic_btn_anim_118 (RPG_fla.mystic_btn_anim_118)
package RPG_fla {
import flash.display.*;
public dynamic class mystic_btn_anim_118 extends MovieClip {
public function mystic_btn_anim_118(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 145
//mystic_btn_anim_298 (RPG_fla.mystic_btn_anim_298)
package RPG_fla {
import flash.display.*;
public dynamic class mystic_btn_anim_298 extends MovieClip {
public function mystic_btn_anim_298(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 146
//phys_btn_anim_266 (RPG_fla.phys_btn_anim_266)
package RPG_fla {
import flash.display.*;
public dynamic class phys_btn_anim_266 extends MovieClip {
public function phys_btn_anim_266(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 147
//phys_btn_anim_86 (RPG_fla.phys_btn_anim_86)
package RPG_fla {
import flash.display.*;
public dynamic class phys_btn_anim_86 extends MovieClip {
public function phys_btn_anim_86(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 148
//rectangle_transisi_mc_232 (RPG_fla.rectangle_transisi_mc_232)
package RPG_fla {
import flash.display.*;
public dynamic class rectangle_transisi_mc_232 extends MovieClip {
public function rectangle_transisi_mc_232(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package RPG_fla
Section 149
//skill_slot_list_84 (RPG_fla.skill_slot_list_84)
package RPG_fla {
import flash.display.*;
public dynamic class skill_slot_list_84 extends MovieClip {
public function skill_slot_list_84(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33);
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame32(){
stop();
}
function frame33(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
}
}//package RPG_fla
Section 150
//skill_slot_list_cursor_226 (RPG_fla.skill_slot_list_cursor_226)
package RPG_fla {
import flash.display.*;
public dynamic class skill_slot_list_cursor_226 extends MovieClip {
public function skill_slot_list_cursor_226(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33);
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame32(){
stop();
}
function frame33(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
}
}//package RPG_fla
Section 151
//slot_btn_anim_28 (RPG_fla.slot_btn_anim_28)
package RPG_fla {
import flash.display.*;
public dynamic class slot_btn_anim_28 extends MovieClip {
public function slot_btn_anim_28(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 152
//thunder_btn_anim_112 (RPG_fla.thunder_btn_anim_112)
package RPG_fla {
import flash.display.*;
public dynamic class thunder_btn_anim_112 extends MovieClip {
public function thunder_btn_anim_112(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 153
//thunder_btn_anim_292 (RPG_fla.thunder_btn_anim_292)
package RPG_fla {
import flash.display.*;
public dynamic class thunder_btn_anim_292 extends MovieClip {
public function thunder_btn_anim_292(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 154
//transisi_1_mc_231 (RPG_fla.transisi_1_mc_231)
package RPG_fla {
import flash.display.*;
public dynamic class transisi_1_mc_231 extends MovieClip {
public function transisi_1_mc_231(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package RPG_fla
Section 155
//unit_all_25 (RPG_fla.unit_all_25)
package RPG_fla {
import flash.display.*;
public dynamic class unit_all_25 extends MovieClip {
public function unit_all_25(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50);
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame32(){
stop();
}
function frame33(){
stop();
}
function frame34(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame37(){
stop();
}
function frame38(){
stop();
}
function frame39(){
stop();
}
function frame40(){
stop();
}
function frame41(){
stop();
}
function frame42(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame50(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
}
}//package RPG_fla
Section 156
//water_btn_anim_106 (RPG_fla.water_btn_anim_106)
package RPG_fla {
import flash.display.*;
public dynamic class water_btn_anim_106 extends MovieClip {
public function water_btn_anim_106(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 157
//water_btn_anim_286 (RPG_fla.water_btn_anim_286)
package RPG_fla {
import flash.display.*;
public dynamic class water_btn_anim_286 extends MovieClip {
public function water_btn_anim_286(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package RPG_fla
Section 158
//volume_bar_186 (RPG_fla.volume_bar_186)
package RPG_fla {
import flash.display.*;
public dynamic class volume_bar_186 extends MovieClip {
public function volume_bar_186(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
}
}//package RPG_fla
Section 159
//battle_tutorial (battle_tutorial)
package {
import FZGame.Rpg.Interface.*;
public dynamic class battle_tutorial extends ClipBattleTutorial {
public function battle_tutorial(){
addFrameScript(15, frame16, 22, frame23, 29, frame30, 36, frame37, 39, frame40);
}
function frame37(){
stop();
}
function frame16(){
stop();
}
function frame40(){
stop();
}
function frame30(){
stop();
}
function frame23(){
stop();
}
}
}//package
Section 160
//bg_mc (bg_mc)
package {
import flash.display.*;
public dynamic class bg_mc extends MovieClip {
public function bg_mc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package
Section 161
//bgm_battle (bgm_battle)
package {
import FZBase.Sound.*;
public dynamic class bgm_battle extends BGM {
}
}//package
Section 162
//bgm_battle2 (bgm_battle2)
package {
import FZBase.Sound.*;
public dynamic class bgm_battle2 extends BGM {
}
}//package
Section 163
//bgm_cover (bgm_cover)
package {
import FZBase.Sound.*;
public dynamic class bgm_cover extends BGM {
}
}//package
Section 164
//BGM_TEST (BGM_TEST)
package {
import FZBase.Sound.*;
public dynamic class BGM_TEST extends BGM {
}
}//package
Section 165
//bgm_win (bgm_win)
package {
import FZBase.Sound.*;
public dynamic class bgm_win extends BGM {
}
}//package
Section 166
//bgm_world (bgm_world)
package {
import FZBase.Sound.*;
public dynamic class bgm_world extends BGM {
}
}//package
Section 167
//BubbleBoxSplash (BubbleBoxSplash)
package {
import FZGame.Rpg.Interface.*;
public dynamic class BubbleBoxSplash extends ClipBubbleBox {
public function BubbleBoxSplash(){
addFrameScript(160, frame161);
}
function frame161(){
stop();
}
}
}//package
Section 168
//chain_combo_mc (chain_combo_mc)
package {
import flash.display.*;
public dynamic class chain_combo_mc extends MovieClip {
public var chain:MovieClip;
}
}//package
Section 169
//clip_artlogic_mc (clip_artlogic_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class clip_artlogic_mc extends ClipArtlogic {
public function clip_artlogic_mc(){
addFrameScript(234, frame235);
}
function frame235(){
stop();
}
}
}//package
Section 170
//command_input_mc (command_input_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class command_input_mc extends MovieClip {
public var skill_1:MovieClip;
public var skill_2:MovieClip;
public var item_1:MovieClip;
public var item_2:MovieClip;
public var item_3:MovieClip;
public var item_5:MovieClip;
public var item_4:MovieClip;
public var skill_3:MovieClip;
public var skill_4:MovieClip;
public var endturn:MovieClip;
public var item_6:MovieClip;
public var item_7:MovieClip;
public var item_stock_1:TextField;
public var item_stock_2:TextField;
public var item_stock_3:TextField;
public var item_stock_4:TextField;
public var item_stock_5:TextField;
public var item_stock_6:TextField;
public var item_stock_7:TextField;
public var guard:MovieClip;
public var swap:MovieClip;
public var btn_logo:SimpleButton;
public var btn_cmdexit:SimpleButton;
}
}//package
Section 171
//damage_heal (damage_heal)
package {
import FZGame.Rpg.Effect.Info.*;
public dynamic class damage_heal extends HealthText {
}
}//package
Section 172
//damage_miss (damage_miss)
package {
import FZGame.Rpg.Effect.Info.*;
public dynamic class damage_miss extends HealthText {
}
}//package
Section 173
//damage_normal (damage_normal)
package {
import FZGame.Rpg.Effect.Info.*;
public dynamic class damage_normal extends HealthText {
}
}//package
Section 174
//damage_null (damage_null)
package {
import FZGame.Rpg.Effect.Info.*;
public dynamic class damage_null extends HealthText {
}
}//package
Section 175
//damage_strong (damage_strong)
package {
import FZGame.Rpg.Effect.Info.*;
public dynamic class damage_strong extends HealthText {
}
}//package
Section 176
//damage_weak (damage_weak)
package {
import FZGame.Rpg.Effect.Info.*;
public dynamic class damage_weak extends HealthText {
}
}//package
Section 177
//DocumentClass (DocumentClass)
package {
import FZBase.System.*;
import FZGame.Rpg.*;
public class DocumentClass {
private var stageRoot;// = null
private var gameModule;// = null
public function initialise(_arg1){
stageRoot = _arg1;
gameModule = new RpgClass();
gameModule.initialise(stageRoot);
}
}
}//package
Section 178
//ending_mc (ending_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class ending_mc extends ClipEnding {
public function ending_mc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package
Section 179
//endure_fx_mc (endure_fx_mc)
package {
import FZGame.Rpg.Effect.Other.*;
public dynamic class endure_fx_mc extends EndureFX {
public function endure_fx_mc(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package
Section 180
//enemy_ap_mc (enemy_ap_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class enemy_ap_mc extends MovieClip {
public var val:TextField;
public var bar:MovieClip;
}
}//package
Section 181
//enemy_party_mc (enemy_party_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class enemy_party_mc extends MovieClip {
public var health_1:MovieClip;
public var health_2:MovieClip;
public var health_3:MovieClip;
public var face_3:unit_face_slot;
public var tot_damage:TextField;
public var face_1:unit_face_slot;
public var face_2:unit_face_slot;
}
}//package
Section 182
//energy_energyball_mc (energy_energyball_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class energy_energyball_mc extends EnergyEnergyBall {
public function energy_energyball_mc(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 183
//energy_radiantblast_mc (energy_radiantblast_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class energy_radiantblast_mc extends EnergyRadiantBlast {
public function energy_radiantblast_mc(){
addFrameScript(125, frame126);
}
function frame126(){
stop();
}
}
}//package
Section 184
//energy_ray_mc (energy_ray_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class energy_ray_mc extends EnergyRay {
public function energy_ray_mc(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 185
//energy_soaringlight_mc (energy_soaringlight_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class energy_soaringlight_mc extends EnergySoaringLight {
public function energy_soaringlight_mc(){
addFrameScript(37, frame38);
}
function frame38(){
stop();
}
}
}//package
Section 186
//energy_sonicblast_mc (energy_sonicblast_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class energy_sonicblast_mc extends EnergySonicBlast {
public function energy_sonicblast_mc(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 187
//energy_windcutter_mc (energy_windcutter_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class energy_windcutter_mc extends EnergyWindCutter {
public function energy_windcutter_mc(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package
Section 188
//fire_burn_mc (fire_burn_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class fire_burn_mc extends FireBurn {
public function fire_burn_mc(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 189
//fire_burningsoul_mc (fire_burningsoul_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class fire_burningsoul_mc extends FireBurningSoul {
public function fire_burningsoul_mc(){
addFrameScript(73, frame74);
}
function frame74(){
stop();
}
}
}//package
Section 190
//fire_explosion_mc (fire_explosion_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class fire_explosion_mc extends FireExplosion {
public function fire_explosion_mc(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package
Section 191
//fire_flame_mc (fire_flame_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class fire_flame_mc extends FireFlame {
public function fire_flame_mc(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 192
//fire_fx_mc (fire_fx_mc)
package {
import FZGame.Rpg.Effect.*;
public dynamic class fire_fx_mc extends FireFX {
}
}//package
Section 193
//fire_inferno_mc (fire_inferno_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class fire_inferno_mc extends FireInferno {
public function fire_inferno_mc(){
addFrameScript(38, frame39);
}
function frame39(){
stop();
}
}
}//package
Section 194
//give_item_mc (give_item_mc)
package {
import flash.display.*;
public dynamic class give_item_mc extends MovieClip {
public var unit_1:unit_face_slot;
public var unit_2:unit_face_slot;
public var unit_3:unit_face_slot;
public var cancel:MovieClip;
}
}//package
Section 195
//hit_mc (hit_mc)
package {
import FZGame.Rpg.Effect.Other.*;
public dynamic class hit_mc extends HitSplash {
public function hit_mc(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 28, frame29, 37, frame38, 49, frame50);
}
function frame38(){
gotoAndPlay("end");
}
function frame29(){
gotoAndPlay("end");
}
function frame1(){
stop();
}
function frame50(){
stop();
}
function frame20(){
gotoAndPlay("end");
}
function frame10(){
gotoAndPlay("end");
}
}
}//package
Section 196
//intro_mc (intro_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class intro_mc extends ClipPrologue {
public function intro_mc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
}
}//package
Section 197
//item_slot_list_cursor (item_slot_list_cursor)
package {
import flash.display.*;
public dynamic class item_slot_list_cursor extends MovieClip {
public function item_slot_list_cursor(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53);
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame32(){
stop();
}
function frame33(){
stop();
}
function frame34(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame37(){
stop();
}
function frame38(){
stop();
}
function frame39(){
stop();
}
function frame40(){
stop();
}
function frame41(){
stop();
}
function frame42(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame50(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
}
}//package
Section 198
//menu_achievement_mc (menu_achievement_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_achievement_mc extends MenuAchievement {
}
}//package
Section 199
//menu_cover_mc (menu_cover_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_cover_mc extends MenuCover {
}
}//package
Section 200
//menu_credit_mc (menu_credit_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_credit_mc extends MenuCredit {
}
}//package
Section 201
//menu_equipment_mc (menu_equipment_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_equipment_mc extends MenuEquipment {
}
}//package
Section 202
//menu_forgeshop_mc (menu_forgeshop_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_forgeshop_mc extends MenuForgeShop {
}
}//package
Section 203
//menu_formation_mc (menu_formation_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_formation_mc extends MenuFormation {
}
}//package
Section 204
//menu_gameover_mc (menu_gameover_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_gameover_mc extends MenuGameOver {
}
}//package
Section 205
//menu_generalshop_mc (menu_generalshop_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_generalshop_mc extends MenuGeneralShop {
}
}//package
Section 206
//menu_help_mc (menu_help_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_help_mc extends MenuHelp {
public function menu_help_mc(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package
Section 207
//menu_inventory_mc (menu_inventory_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_inventory_mc extends MenuInventory {
}
}//package
Section 208
//menu_monstershop_mc (menu_monstershop_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_monstershop_mc extends MenuMonsterShop {
}
}//package
Section 209
//menu_option_mc (menu_option_mc)
package {
import flash.display.*;
public dynamic class menu_option_mc extends MovieClip {
public var se_vol:MovieClip;
public var btn_bgm_add:SimpleButton;
public var btn_se_min:SimpleButton;
public var btn_close:SimpleButton;
public var btn_se_add:SimpleButton;
public var bgm_vol:MovieClip;
public var btn_bgm_min:SimpleButton;
}
}//package
Section 210
//menu_result_mc (menu_result_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_result_mc extends MenuResult {
}
}//package
Section 211
//menu_select_mc (menu_select_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_select_mc extends MenuSelect {
}
}//package
Section 212
//menu_skillshop_mc (menu_skillshop_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_skillshop_mc extends MenuSkillShop {
}
}//package
Section 213
//menu_status_mc (menu_status_mc)
package {
import flash.display.*;
public dynamic class menu_status_mc extends MovieClip {
public var btn_close:SimpleButton;
}
}//package
Section 214
//menu_world_mc (menu_world_mc)
package {
import FZGame.Rpg.Interface.*;
public dynamic class menu_world_mc extends MenuWorld {
}
}//package
Section 215
//msg_info_mc (msg_info_mc)
package {
import FZGame.Rpg.Effect.Message.*;
public dynamic class msg_info_mc extends MsgPop {
}
}//package
Section 216
//mystic_bloodyhowl_mc (mystic_bloodyhowl_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class mystic_bloodyhowl_mc extends MysticBloodyHowl {
public function mystic_bloodyhowl_mc(){
addFrameScript(70, frame71);
}
function frame71(){
stop();
}
}
}//package
Section 217
//mystic_chaoswave_mc (mystic_chaoswave_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class mystic_chaoswave_mc extends MysticChaosWave {
public function mystic_chaoswave_mc(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package
Section 218
//mystic_darkforce_mc (mystic_darkforce_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class mystic_darkforce_mc extends MysticDarkForce {
public function mystic_darkforce_mc(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 219
//mystic_poisonmist_mc (mystic_poisonmist_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class mystic_poisonmist_mc extends MysticPoisonMist {
public function mystic_poisonmist_mc(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
}
}
}//package
Section 220
//mystic_shadowfury_mc (mystic_shadowfury_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class mystic_shadowfury_mc extends MysticShadowFury {
public function mystic_shadowfury_mc(){
addFrameScript(31, frame32);
}
function frame32(){
stop();
}
}
}//package
Section 221
//phys_focus_mc (phys_focus_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class phys_focus_mc extends PhysFocus {
public function phys_focus_mc(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package
Section 222
//phys_mightyblow_mc (phys_mightyblow_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class phys_mightyblow_mc extends PhysMightyBlow {
public function phys_mightyblow_mc(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package
Section 223
//phys_powerhit_mc (phys_powerhit_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class phys_powerhit_mc extends PhysPowerHit {
public function phys_powerhit_mc(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
}
}
}//package
Section 224
//phys_rampage_mc (phys_rampage_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class phys_rampage_mc extends PhysRampage {
public function phys_rampage_mc(){
addFrameScript(100, frame101);
}
function frame101(){
stop();
}
}
}//package
Section 225
//phys_smash_mc (phys_smash_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class phys_smash_mc extends PhysSmash {
public function phys_smash_mc(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 226
//phys_thurst_mc (phys_thurst_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class phys_thurst_mc extends PhysThurst {
public function phys_thurst_mc(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 227
//pierce_fx_mc (pierce_fx_mc)
package {
import FZGame.Rpg.Effect.Other.*;
public dynamic class pierce_fx_mc extends PierceFX {
public function pierce_fx_mc(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package
Section 228
//player_ap_mc (player_ap_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class player_ap_mc extends MovieClip {
public var val:TextField;
public var bar:MovieClip;
}
}//package
Section 229
//player_party_mc (player_party_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class player_party_mc extends MovieClip {
public var health_1:MovieClip;
public var health_2:MovieClip;
public var health_3:MovieClip;
public var face_3:unit_face_slot;
public var tot_damage:TextField;
public var face_1:unit_face_slot;
public var face_2:unit_face_slot;
}
}//package
Section 230
//SiteLock (SiteLock)
package {
import flash.display.*;
import flash.text.*;
public dynamic class SiteLock extends MovieClip {
public var domain_name:TextField;
}
}//package
Section 231
//snd_absorb (snd_absorb)
package {
import FZBase.Sound.*;
public dynamic class snd_absorb extends SE {
}
}//package
Section 232
//snd_critical (snd_critical)
package {
import FZBase.Sound.*;
public dynamic class snd_critical extends SE {
}
}//package
Section 233
//snd_endure (snd_endure)
package {
import FZBase.Sound.*;
public dynamic class snd_endure extends SE {
}
}//package
Section 234
//snd_koed (snd_koed)
package {
import FZBase.Sound.*;
public dynamic class snd_koed extends SE {
}
}//package
Section 235
//snd_miss (snd_miss)
package {
import FZBase.Sound.*;
public dynamic class snd_miss extends SE {
}
}//package
Section 236
//snd_normal (snd_normal)
package {
import FZBase.Sound.*;
public dynamic class snd_normal extends SE {
}
}//package
Section 237
//snd_pierce (snd_pierce)
package {
import FZBase.Sound.*;
public dynamic class snd_pierce extends SE {
}
}//package
Section 238
//snd_resist (snd_resist)
package {
import FZBase.Sound.*;
public dynamic class snd_resist extends SE {
}
}//package
Section 239
//switch_unit_mc (switch_unit_mc)
package {
import flash.display.*;
public dynamic class switch_unit_mc extends MovieClip {
public var unit_1:unit_face_slot;
public var unit_2:unit_face_slot;
public var cancel:MovieClip;
}
}//package
Section 240
//thunder_concentrate_mc (thunder_concentrate_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class thunder_concentrate_mc extends ThunderConcentrate {
public function thunder_concentrate_mc(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package
Section 241
//thunder_lighting_mc (thunder_lighting_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class thunder_lighting_mc extends ThunderLighting {
public function thunder_lighting_mc(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 242
//thunder_lightingblade_mc (thunder_lightingblade_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class thunder_lightingblade_mc extends ThunderLightingBlade {
public function thunder_lightingblade_mc(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package
Section 243
//thunder_mjollnir_mc (thunder_mjollnir_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class thunder_mjollnir_mc extends ThunderMjollnir {
public function thunder_mjollnir_mc(){
addFrameScript(86, frame87);
}
function frame87(){
stop();
}
}
}//package
Section 244
//thunder_shock_mc (thunder_shock_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class thunder_shock_mc extends ThunderShock {
public function thunder_shock_mc(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 245
//transisi_mc (transisi_mc)
package {
import FZGame.Rpg.Effect.*;
public dynamic class transisi_mc extends TransitionBattle {
public function transisi_mc(){
addFrameScript(0, frame1, 95, frame96, 190, frame191, 302, frame303);
}
function frame303(){
stop();
}
function frame96(){
gotoAndStop(303);
}
function frame191(){
gotoAndStop(303);
}
function frame1(){
stop();
}
}
}//package
Section 246
//unit_clip_mc (unit_clip_mc)
package {
import flash.display.*;
public dynamic class unit_clip_mc extends MovieClip {
public var char:MovieClip;
public function unit_clip_mc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 247
//unit_face_slot (unit_face_slot)
package {
import flash.display.*;
public dynamic class unit_face_slot extends MovieClip {
public function unit_face_slot(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51);
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame32(){
stop();
}
function frame33(){
stop();
}
function frame34(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame37(){
stop();
}
function frame38(){
stop();
}
function frame39(){
stop();
}
function frame40(){
stop();
}
function frame41(){
stop();
}
function frame42(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame50(){
stop();
}
function frame51(){
stop();
}
function frame10(){
stop();
}
function frame11(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame22(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame28(){
stop();
}
}
}//package
Section 248
//unit_stat (unit_stat)
package {
import flash.display.*;
import flash.text.*;
public dynamic class unit_stat extends MovieClip {
public var res_val:TextField;
public var aff_mystic:MovieClip;
public var aff_thunder:MovieClip;
public var life_bar:MovieClip;
public var str_val:TextField;
public var aff_fire:MovieClip;
public var life_val:TextField;
public var def_val:TextField;
public var mgc_val:TextField;
public var aff_phys:MovieClip;
public var name_unit:TextField;
public var aff_water:MovieClip;
}
}//package
Section 249
//use_item_mc (use_item_mc)
package {
import FZGame.Rpg.Effect.Other.*;
public dynamic class use_item_mc extends UseItem {
public function use_item_mc(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package
Section 250
//water_blizzard_mc (water_blizzard_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class water_blizzard_mc extends WaterBlizzard {
public function water_blizzard_mc(){
addFrameScript(71, frame72);
}
function frame72(){
stop();
}
}
}//package
Section 251
//water_bubble_mc (water_bubble_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class water_bubble_mc extends WaterBubble {
public function water_bubble_mc(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 252
//water_frost_mc (water_frost_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class water_frost_mc extends WaterFrost {
public function water_frost_mc(){
addFrameScript(44, frame45);
}
function frame45(){
stop();
}
}
}//package
Section 253
//water_heal_mc (water_heal_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class water_heal_mc extends WaterHeal {
public function water_heal_mc(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package
Section 254
//water_icestorm_mc (water_icestorm_mc)
package {
import FZGame.Rpg.Effect.Skill.*;
public dynamic class water_icestorm_mc extends WaterIceStorm {
public function water_icestorm_mc(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package