Section 1
//MD5 (com.gsolo.encryption.MD5)
package com.gsolo.encryption {
public class MD5 {
public static const HEX_FORMAT_LOWERCASE:uint = 0;
public static const HEX_FORMAT_UPPERCASE:uint = 1;
public static const BASE64_PAD_CHARACTER_DEFAULT_COMPLIANCE:String = "";
public static const BASE64_PAD_CHARACTER_RFC_COMPLIANCE:String = "=";
public static var hexcase:uint = 0;
public static var b64pad:String = "";
public static function encrypt(_arg1:String):String{
return (hex_md5(_arg1));
}
public static function hex_md5(_arg1:String):String{
return (rstr2hex(rstr_md5(str2rstr_utf8(_arg1))));
}
public static function b64_md5(_arg1:String):String{
return (rstr2b64(rstr_md5(str2rstr_utf8(_arg1))));
}
public static function any_md5(_arg1:String, _arg2:String):String{
return (rstr2any(rstr_md5(str2rstr_utf8(_arg1)), _arg2));
}
public static function hex_hmac_md5(_arg1:String, _arg2:String):String{
return (rstr2hex(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2))));
}
public static function b64_hmac_md5(_arg1:String, _arg2:String):String{
return (rstr2b64(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2))));
}
public static function any_hmac_md5(_arg1:String, _arg2:String, _arg3:String):String{
return (rstr2any(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2)), _arg3));
}
public static function md5_vm_test():Boolean{
return ((hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72"));
}
public static function rstr_md5(_arg1:String):String{
return (binl2rstr(binl_md5(rstr2binl(_arg1), (_arg1.length * 8))));
}
public static function rstr_hmac_md5(_arg1:String, _arg2:String):String{
var _local3:Array = rstr2binl(_arg1);
if (_local3.length > 16){
_local3 = binl_md5(_local3, (_arg1.length * 8));
};
var _local4:Array = new Array(16);
var _local5:Array = new Array(16);
var _local6:Number = 0;
while (_local6 < 16) {
_local4[_local6] = (_local3[_local6] ^ 909522486);
_local5[_local6] = (_local3[_local6] ^ 1549556828);
_local6++;
};
var _local7:Array = binl_md5(_local4.concat(rstr2binl(_arg2)), (0x0200 + (_arg2.length * 8)));
return (binl2rstr(binl_md5(_local5.concat(_local7), (0x0200 + 128))));
}
public static function rstr2hex(_arg1:String):String{
var _local4:Number;
var _local2:String = (hexcase) ? "0123456789ABCDEF" : "0123456789abcdef";
var _local3 = "";
var _local5:Number = 0;
while (_local5 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local5);
_local3 = (_local3 + (_local2.charAt(((_local4 >>> 4) & 15)) + _local2.charAt((_local4 & 15))));
_local5++;
};
return (_local3);
}
public static function rstr2b64(_arg1:String):String{
var _local6:Number;
var _local7:Number;
var _local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local3 = "";
var _local4:Number = _arg1.length;
var _local5:Number = 0;
while (_local5 < _local4) {
_local6 = (((_arg1.charCodeAt(_local5) << 16) | (((_local5 + 1) < _local4)) ? (_arg1.charCodeAt((_local5 + 1)) << 8) : 0) | (((_local5 + 2) < _local4)) ? _arg1.charCodeAt((_local5 + 2)) : 0);
_local7 = 0;
while (_local7 < 4) {
if (((_local5 * 8) + (_local7 * 6)) > (_arg1.length * 8)){
_local3 = (_local3 + b64pad);
} else {
_local3 = (_local3 + _local2.charAt(((_local6 >>> (6 * (3 - _local7))) & 63)));
};
_local7++;
};
_local5 = (_local5 + 3);
};
return (_local3);
}
public static function rstr2any(_arg1:String, _arg2:String):String{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
var _local3:Number = _arg2.length;
var _local4:Array = [];
var _local9:Array = new Array((_arg1.length / 2));
_local5 = 0;
while (_local5 < _local9.length) {
_local9[_local5] = ((_arg1.charCodeAt((_local5 * 2)) << 8) | _arg1.charCodeAt(((_local5 * 2) + 1)));
_local5++;
};
while (_local9.length > 0) {
_local8 = [];
_local7 = 0;
_local5 = 0;
while (_local5 < _local9.length) {
_local7 = ((_local7 << 16) + _local9[_local5]);
_local6 = Math.floor((_local7 / _local3));
_local7 = (_local7 - (_local6 * _local3));
if ((((_local8.length > 0)) || ((_local6 > 0)))){
_local8[_local8.length] = _local6;
};
_local5++;
};
_local4[_local4.length] = _local7;
_local9 = _local8;
};
var _local10 = "";
_local5 = (_local4.length - 1);
while (_local5 >= 0) {
_local10 = (_local10 + _arg2.charAt(_local4[_local5]));
_local5--;
};
return (_local10);
}
public static function str2rstr_utf8(_arg1:String):String{
var _local4:Number;
var _local5:Number;
var _local2 = "";
var _local3:Number = -1;
while (++_local3 < _arg1.length) {
_local4 = _arg1.charCodeAt(_local3);
_local5 = (((_local3 + 1) < _arg1.length)) ? _arg1.charCodeAt((_local3 + 1)) : 0;
if ((((((((0xD800 <= _local4)) && ((_local4 <= 56319)))) && ((0xDC00 <= _local5)))) && ((_local5 <= 57343)))){
_local4 = ((65536 + ((_local4 & 1023) << 10)) + (_local5 & 1023));
_local3++;
};
if (_local4 <= 127){
_local2 = (_local2 + String.fromCharCode(_local4));
} else {
if (_local4 <= 2047){
_local2 = (_local2 + String.fromCharCode((192 | ((_local4 >>> 6) & 31)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 0xFFFF){
_local2 = (_local2 + String.fromCharCode((224 | ((_local4 >>> 12) & 15)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
} else {
if (_local4 <= 2097151){
_local2 = (_local2 + String.fromCharCode((240 | ((_local4 >>> 18) & 7)), (128 | ((_local4 >>> 12) & 63)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63))));
};
};
};
};
};
return (_local2);
}
public static function str2rstr_utf16le(_arg1:String):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode((_arg1.charCodeAt(_local3) & 0xFF), ((_arg1.charCodeAt(_local3) >>> 8) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function str2rstr_utf16be(_arg1:String):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < _arg1.length) {
_local2 = (_local2 + String.fromCharCode(((_arg1.charCodeAt(_local3) >>> 8) & 0xFF), (_arg1.charCodeAt(_local3) & 0xFF)));
_local3++;
};
return (_local2);
}
public static function rstr2binl(_arg1:String):Array{
var _local2:Array = new Array((_arg1.length >> 2));
var _local3:Number = 0;
while (_local3 < _local2.length) {
_local2[_local3] = 0;
_local3++;
};
var _local4:Number = 0;
while (_local4 < (_arg1.length * 8)) {
_local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / 8)) & 0xFF) << (_local4 % 32)));
_local4 = (_local4 + 8);
};
return (_local2);
}
public static function binl2rstr(_arg1:Array):String{
var _local2 = "";
var _local3:Number = 0;
while (_local3 < (_arg1.length * 32)) {
_local2 = (_local2 + String.fromCharCode(((_arg1[(_local3 >> 5)] >>> (_local3 % 32)) & 0xFF)));
_local3 = (_local3 + 8);
};
return (_local2);
}
public static function binl_md5(_arg1:Array, _arg2:Number):Array{
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32)));
_arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2;
var _local3:Number = 1732584193;
var _local4:Number = -271733879;
var _local5:Number = -1732584194;
var _local6:Number = 271733878;
var _local7:Number = 0;
while (_local7 < _arg1.length) {
_local8 = _local3;
_local9 = _local4;
_local10 = _local5;
_local11 = _local6;
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, -680876936);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, -389564586);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, -1044525330);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, -176418897);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, -1473231341);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, -45705983);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, -1958414417);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, -42063);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, -1990404162);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, -40341101);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, -1502002290);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, -165796510);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, -1069501632);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, -373897302);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, -701558691);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, -660478335);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, -405537848);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, -1019803690);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, -187363961);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, -1444681467);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, -51403784);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, -1926607734);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, -378558);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, -2022574463);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, -35309556);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, -1530992060);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, -155497632);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, -1094730640);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, -358537222);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, -722521979);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, -640364487);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, -421815835);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, -995338651);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, -198630844);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, -1416354905);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, -57434055);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, -1894986606);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, -1051523);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, -2054922799);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, -30611744);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, -1560198380);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, -145523070);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, -1120210379);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, -343485551);
_local3 = safe_add(_local3, _local8);
_local4 = safe_add(_local4, _local9);
_local5 = safe_add(_local5, _local10);
_local6 = safe_add(_local6, _local11);
_local7 = (_local7 + 16);
};
return ([_local3, _local4, _local5, _local6]);
}
public static function md5_cmn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
return (safe_add(bit_rol(safe_add(safe_add(_arg2, _arg1), safe_add(_arg4, _arg6)), _arg5), _arg3));
}
public static function md5_ff(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function md5_gg(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function md5_hh(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function md5_ii(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{
return (md5_cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:Number = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
var _local4:Number = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
public static function bit_rol(_arg1:Number, _arg2:Number):Number{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package com.gsolo.encryption
Section 2
//Color (fl.motion.Color)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Color extends ColorTransform {
private var _tintColor:Number;// = 0
private var _tintMultiplier:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
public function set brightness(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
var _local2:Number = (1 - Math.abs(_arg1));
var _local3:Number = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function setTint(_arg1:uint, _arg2:Number):void{
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
var _local3:uint = ((_arg1 >> 16) & 0xFF);
var _local4:uint = ((_arg1 >> 8) & 0xFF);
var _local5:uint = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
private function deriveTintColor():uint{
var _local1:Number = (1 / this.tintMultiplier);
var _local2:uint = Math.round((this.redOffset * _local1));
var _local3:uint = Math.round((this.greenOffset * _local1));
var _local4:uint = Math.round((this.blueOffset * _local1));
var _local5:uint = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
var _local2:XML = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number = (1 - _arg3);
var _local5:ColorTransform = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number = (1 - _arg3);
var _local5:uint = ((_arg1 >> 24) & 0xFF);
var _local6:uint = ((_arg1 >> 16) & 0xFF);
var _local7:uint = ((_arg1 >> 8) & 0xFF);
var _local8:uint = (_arg1 & 0xFF);
var _local9:uint = ((_arg2 >> 24) & 0xFF);
var _local10:uint = ((_arg2 >> 16) & 0xFF);
var _local11:uint = ((_arg2 >> 8) & 0xFF);
var _local12:uint = (_arg2 & 0xFF);
var _local13:uint = ((_local5 * _local4) + (_local9 * _arg3));
var _local14:uint = ((_local6 * _local4) + (_local10 * _arg3));
var _local15:uint = ((_local7 * _local4) + (_local11 * _arg3));
var _local16:uint = ((_local8 * _local4) + (_local12 * _arg3));
var _local17:uint = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
}
}//package fl.motion
Section 3
//achievantiLoss_397 (Zommart1_fla.achievantiLoss_397)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievantiLoss_397 extends MovieClip {
public function achievantiLoss_397(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 4
//achievbestservice_398 (Zommart1_fla.achievbestservice_398)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievbestservice_398 extends MovieClip {
public function achievbestservice_398(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 5
//achievbravomedic_399 (Zommart1_fla.achievbravomedic_399)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievbravomedic_399 extends MovieClip {
public function achievbravomedic_399(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 6
//achievdecorator_400 (Zommart1_fla.achievdecorator_400)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievdecorator_400 extends MovieClip {
public function achievdecorator_400(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 7
//achievfamousmart_401 (Zommart1_fla.achievfamousmart_401)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievfamousmart_401 extends MovieClip {
public function achievfamousmart_401(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 8
//achievheroorvictim_402 (Zommart1_fla.achievheroorvictim_402)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievheroorvictim_402 extends MovieClip {
public function achievheroorvictim_402(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 9
//achievhugehumanresources_403 (Zommart1_fla.achievhugehumanresources_403)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievhugehumanresources_403 extends MovieClip {
public function achievhugehumanresources_403(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 10
//achievhugemarket_404 (Zommart1_fla.achievhugemarket_404)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievhugemarket_404 extends MovieClip {
public function achievhugemarket_404(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 11
//achievsafemart_405 (Zommart1_fla.achievsafemart_405)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievsafemart_405 extends MovieClip {
public function achievsafemart_405(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 12
//achievscientist_406 (Zommart1_fla.achievscientist_406)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievscientist_406 extends MovieClip {
public function achievscientist_406(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 13
//achievspender_407 (Zommart1_fla.achievspender_407)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievspender_407 extends MovieClip {
public function achievspender_407(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 14
//achievsuperinnovative_408 (Zommart1_fla.achievsuperinnovative_408)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievsuperinnovative_408 extends MovieClip {
public function achievsuperinnovative_408(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 15
//achievwealthyorstingy_409 (Zommart1_fla.achievwealthyorstingy_409)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievwealthyorstingy_409 extends MovieClip {
public function achievwealthyorstingy_409(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 16
//achievzombiehunter_411 (Zommart1_fla.achievzombiehunter_411)
package Zommart1_fla {
import flash.display.*;
public dynamic class achievzombiehunter_411 extends MovieClip {
public function achievzombiehunter_411(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 17
//ADDITIONALGRASS_472 (Zommart1_fla.ADDITIONALGRASS_472)
package Zommart1_fla {
import flash.display.*;
public dynamic class ADDITIONALGRASS_472 extends MovieClip {
public function ADDITIONALGRASS_472(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 18
//bomb_smoker4_427 (Zommart1_fla.bomb_smoker4_427)
package Zommart1_fla {
import flash.display.*;
public dynamic class bomb_smoker4_427 extends MovieClip {
public var sm:MovieClip;
public function bomb_smoker4_427(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package Zommart1_fla
Section 19
//boothbuttonblinking_526 (Zommart1_fla.boothbuttonblinking_526)
package Zommart1_fla {
import flash.display.*;
public dynamic class boothbuttonblinking_526 extends MovieClip {
public function boothbuttonblinking_526(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = true;
}
}
}//package Zommart1_fla
Section 20
//bxcbgvn_311 (Zommart1_fla.bxcbgvn_311)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class bxcbgvn_311 extends MovieClip {
public var txt1:TextField;
public function bxcbgvn_311(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 21
//employeestunnedtime_117 (Zommart1_fla.employeestunnedtime_117)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class employeestunnedtime_117 extends MovieClip {
public var mc1:MovieClip;
public var txt1:TextField;
public function employeestunnedtime_117(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.visible = false;
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package Zommart1_fla
Section 22
//environtmentzombiehouse1_150 (Zommart1_fla.environtmentzombiehouse1_150)
package Zommart1_fla {
import flash.display.*;
public dynamic class environtmentzombiehouse1_150 extends MovieClip {
public function environtmentzombiehouse1_150(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 23
//environtmentzombiehouse2_151 (Zommart1_fla.environtmentzombiehouse2_151)
package Zommart1_fla {
import flash.display.*;
public dynamic class environtmentzombiehouse2_151 extends MovieClip {
public function environtmentzombiehouse2_151(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 24
//environtmentzombiehouse3_152 (Zommart1_fla.environtmentzombiehouse3_152)
package Zommart1_fla {
import flash.display.*;
public dynamic class environtmentzombiehouse3_152 extends MovieClip {
public function environtmentzombiehouse3_152(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 25
//equipglovearmy_84 (Zommart1_fla.equipglovearmy_84)
package Zommart1_fla {
import flash.display.*;
public dynamic class equipglovearmy_84 extends MovieClip {
public function equipglovearmy_84(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 26
//equipgloveBane_85 (Zommart1_fla.equipgloveBane_85)
package Zommart1_fla {
import flash.display.*;
public dynamic class equipgloveBane_85 extends MovieClip {
public function equipgloveBane_85(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 27
//equipgloveboxing_83 (Zommart1_fla.equipgloveboxing_83)
package Zommart1_fla {
import flash.display.*;
public dynamic class equipgloveboxing_83 extends MovieClip {
public function equipgloveboxing_83(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 28
//equipglovefancy_82 (Zommart1_fla.equipglovefancy_82)
package Zommart1_fla {
import flash.display.*;
public dynamic class equipglovefancy_82 extends MovieClip {
public function equipglovefancy_82(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 29
//equipglovegardener_81 (Zommart1_fla.equipglovegardener_81)
package Zommart1_fla {
import flash.display.*;
public dynamic class equipglovegardener_81 extends MovieClip {
public function equipglovegardener_81(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 30
//equipglovePaper_80 (Zommart1_fla.equipglovePaper_80)
package Zommart1_fla {
import flash.display.*;
public dynamic class equipglovePaper_80 extends MovieClip {
public function equipglovePaper_80(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 31
//equipglovepurple_88 (Zommart1_fla.equipglovepurple_88)
package Zommart1_fla {
import flash.display.*;
public dynamic class equipglovepurple_88 extends MovieClip {
public function equipglovepurple_88(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 32
//equipgloveSeiya_87 (Zommart1_fla.equipgloveSeiya_87)
package Zommart1_fla {
import flash.display.*;
public dynamic class equipgloveSeiya_87 extends MovieClip {
public function equipgloveSeiya_87(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 33
//equipgloveSWAT_86 (Zommart1_fla.equipgloveSWAT_86)
package Zommart1_fla {
import flash.display.*;
public dynamic class equipgloveSWAT_86 extends MovieClip {
public function equipgloveSWAT_86(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 34
//EquipheadBikehelmet_100 (Zommart1_fla.EquipheadBikehelmet_100)
package Zommart1_fla {
import flash.display.*;
public dynamic class EquipheadBikehelmet_100 extends MovieClip {
public function EquipheadBikehelmet_100(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 35
//Equipheadbook_96 (Zommart1_fla.Equipheadbook_96)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadbook_96 extends MovieClip {
public function Equipheadbook_96(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 36
//Equipheadbucket_94 (Zommart1_fla.Equipheadbucket_94)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadbucket_94 extends MovieClip {
public function Equipheadbucket_94(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 37
//Equipheadflyinghelmet_110 (Zommart1_fla.Equipheadflyinghelmet_110)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadflyinghelmet_110 extends MovieClip {
public function Equipheadflyinghelmet_110(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 38
//Equipheadgundam_104 (Zommart1_fla.Equipheadgundam_104)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadgundam_104 extends MovieClip {
public function Equipheadgundam_104(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 39
//Equipheadhelmet_106 (Zommart1_fla.Equipheadhelmet_106)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadhelmet_106 extends MovieClip {
public function Equipheadhelmet_106(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 40
//Equipheadpanci_98 (Zommart1_fla.Equipheadpanci_98)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadpanci_98 extends MovieClip {
public function Equipheadpanci_98(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 41
//Equipheadpaper_92 (Zommart1_fla.Equipheadpaper_92)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadpaper_92 extends MovieClip {
public function Equipheadpaper_92(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 42
//Equipheadpedobear_112 (Zommart1_fla.Equipheadpedobear_112)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadpedobear_112 extends MovieClip {
public function Equipheadpedobear_112(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 43
//Equipheadpoopyhead_102 (Zommart1_fla.Equipheadpoopyhead_102)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadpoopyhead_102 extends MovieClip {
public function Equipheadpoopyhead_102(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 44
//Equipheadseiya_114 (Zommart1_fla.Equipheadseiya_114)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadseiya_114 extends MovieClip {
public function Equipheadseiya_114(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 45
//Equipheadshopbag_90 (Zommart1_fla.Equipheadshopbag_90)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadshopbag_90 extends MovieClip {
public function Equipheadshopbag_90(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 46
//Equipheadwatermelon_108 (Zommart1_fla.Equipheadwatermelon_108)
package Zommart1_fla {
import flash.display.*;
public dynamic class Equipheadwatermelon_108 extends MovieClip {
public function Equipheadwatermelon_108(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 47
//EquipVestarmy_74 (Zommart1_fla.EquipVestarmy_74)
package Zommart1_fla {
import flash.display.*;
public dynamic class EquipVestarmy_74 extends MovieClip {
public function EquipVestarmy_74(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 48
//EquipVestBane_76 (Zommart1_fla.EquipVestBane_76)
package Zommart1_fla {
import flash.display.*;
public dynamic class EquipVestBane_76 extends MovieClip {
public function EquipVestBane_76(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 49
//EquipVestJacket_73 (Zommart1_fla.EquipVestJacket_73)
package Zommart1_fla {
import flash.display.*;
public dynamic class EquipVestJacket_73 extends MovieClip {
public function EquipVestJacket_73(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 50
//EquipVestlifevest_75 (Zommart1_fla.EquipVestlifevest_75)
package Zommart1_fla {
import flash.display.*;
public dynamic class EquipVestlifevest_75 extends MovieClip {
public function EquipVestlifevest_75(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 51
//EquipVestPaper_71 (Zommart1_fla.EquipVestPaper_71)
package Zommart1_fla {
import flash.display.*;
public dynamic class EquipVestPaper_71 extends MovieClip {
public function EquipVestPaper_71(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 52
//EquipVestPurple_72 (Zommart1_fla.EquipVestPurple_72)
package Zommart1_fla {
import flash.display.*;
public dynamic class EquipVestPurple_72 extends MovieClip {
public function EquipVestPurple_72(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 53
//EquipVestSeiya_78 (Zommart1_fla.EquipVestSeiya_78)
package Zommart1_fla {
import flash.display.*;
public dynamic class EquipVestSeiya_78 extends MovieClip {
public function EquipVestSeiya_78(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 54
//EquipVestSWAT_77 (Zommart1_fla.EquipVestSWAT_77)
package Zommart1_fla {
import flash.display.*;
public dynamic class EquipVestSWAT_77 extends MovieClip {
public function EquipVestSWAT_77(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 104, frame105, 112, frame113);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("attack1");
}
function frame68(){
gotoAndPlay("attack2");
}
function frame75(){
stop();
}
function frame91(){
stop();
}
function frame97(){
stop();
}
function frame105(){
gotoAndPlay("stocking1");
}
function frame113(){
gotoAndPlay("stocking2");
}
}
}//package Zommart1_fla
Section 55
//INGAME_11 (Zommart1_fla.INGAME_11)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_11 extends MovieClip {
public function INGAME_11(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package Zommart1_fla
Section 56
//INGAME_12 (Zommart1_fla.INGAME_12)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_12 extends MovieClip {
public var mcmouse:MovieClip;
public function INGAME_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 57
//INGAME_13 (Zommart1_fla.INGAME_13)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_13 extends MovieClip {
public function INGAME_13(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package Zommart1_fla
Section 58
//INGAME_20 (Zommart1_fla.INGAME_20)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_20 extends MovieClip {
public function INGAME_20(){
addFrameScript(0, frame1, 1, frame2, 20, frame21, 21, frame22, 40, frame41, 41, frame42, 60, frame61, 61, frame62, 80, frame81, 81, frame82, 100, frame101, 101, frame102, 120, frame121, 121, frame122, 142, frame143, 143, frame144, 144, frame145, 163, frame164, 164, frame165, 177, frame178);
}
function frame1(){
this.visible = false;
stop();
}
function frame2(){
this.visible = true;
}
function frame21(){
gotoAndStop(1);
}
function frame22(){
this.visible = true;
}
function frame41(){
gotoAndStop(1);
}
function frame42(){
this.visible = true;
}
function frame61(){
gotoAndStop(1);
}
function frame62(){
this.visible = true;
}
function frame81(){
gotoAndStop(1);
}
function frame82(){
this.visible = true;
}
function frame101(){
gotoAndStop(1);
}
function frame102(){
this.visible = true;
}
function frame121(){
gotoAndStop(1);
}
function frame122(){
this.visible = true;
}
function frame143(){
gotoAndStop(1);
}
function frame144(){
stop();
this.visible = true;
}
function frame145(){
this.visible = true;
}
function frame164(){
gotoAndStop(1);
}
function frame165(){
this.visible = true;
}
function frame178(){
gotoAndPlay("growl");
}
}
}//package Zommart1_fla
Section 59
//INGAME_288 (Zommart1_fla.INGAME_288)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_288 extends MovieClip {
public function INGAME_288(){
addFrameScript(11, frame12, 19, frame20);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame20(){
gotoAndPlay("stocking1");
}
}
}//package Zommart1_fla
Section 60
//INGAME_367 (Zommart1_fla.INGAME_367)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_367 extends MovieClip {
public function INGAME_367(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 61
//INGAME_368 (Zommart1_fla.INGAME_368)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_368 extends MovieClip {
public function INGAME_368(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 62
//INGAME_369 (Zommart1_fla.INGAME_369)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_369 extends MovieClip {
public function INGAME_369(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 63
//INGAME_474 (Zommart1_fla.INGAME_474)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_474 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_474(){
addFrameScript(0, frame1, 1, frame2, 199, frame200, 200, frame201, 400, frame401, 401, frame402, 599, frame600);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame200(){
gotoAndStop(1);
}
function frame201(){
this.visible = true;
}
function frame401(){
gotoAndStop(1);
}
function frame402(){
this.visible = true;
}
function frame600(){
gotoAndStop(1);
}
}
}//package Zommart1_fla
Section 64
//INGAME_497 (Zommart1_fla.INGAME_497)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_497 extends MovieClip {
public function INGAME_497(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package Zommart1_fla
Section 65
//INGAME_499 (Zommart1_fla.INGAME_499)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_499 extends MovieClip {
public function INGAME_499(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 66
//INGAME_506 (Zommart1_fla.INGAME_506)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_506 extends MovieClip {
public function INGAME_506(){
addFrameScript(0, frame1);
}
function frame1(){
this.alpha = 0;
}
}
}//package Zommart1_fla
Section 67
//INGAME_572 (Zommart1_fla.INGAME_572)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_572 extends MovieClip {
public var btnnew5:MovieClip;
public var btnnew6:MovieClip;
public var btnnew7:MovieClip;
public var btnnew8:MovieClip;
public var mctitle:MovieClip;
public var mcslider:MovieClip;
public var mctab1:MovieClip;
public var mctab2:MovieClip;
public var mctab3:MovieClip;
public var btnclose:SimpleButton;
public var mcicon1:MovieClip;
public var mctab4:MovieClip;
public var mcicon2:MovieClip;
public var mctab5:MovieClip;
public var mcicon3:MovieClip;
public var mctab6:MovieClip;
public var mcicon4:MovieClip;
public var mctab7:MovieClip;
public var mcicon5:MovieClip;
public var mctab8:MovieClip;
public var mcicon6:MovieClip;
public var btnnew1:MovieClip;
public var mcicon7:MovieClip;
public var btnnew2:MovieClip;
public var mcicon8:MovieClip;
public var btnnew3:MovieClip;
public var btnnew4:MovieClip;
public function INGAME_572(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 68
//INGAME_574 (Zommart1_fla.INGAME_574)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_574 extends MovieClip {
public function INGAME_574(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 69
//INGAME_587 (Zommart1_fla.INGAME_587)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_587 extends MovieClip {
public var btnnew5:MovieClip;
public var mctitle:MovieClip;
public var mcslider:MovieClip;
public var mctab1:MovieClip;
public var mctab2:MovieClip;
public var mctab3:MovieClip;
public var btnclose:SimpleButton;
public var mcicon1:MovieClip;
public var mctab4:MovieClip;
public var mcicon2:MovieClip;
public var mctab5:MovieClip;
public var mcicon3:MovieClip;
public var mcicon4:MovieClip;
public var mcicon5:MovieClip;
public var btnnew1:MovieClip;
public var btnnew2:MovieClip;
public var btnnew3:MovieClip;
public var btnnew4:MovieClip;
public function INGAME_587(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 70
//INGAME_590 (Zommart1_fla.INGAME_590)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_590 extends MovieClip {
public var mctitle:MovieClip;
public var mcslider:MovieClip;
public var mctab1:MovieClip;
public var mctab2:MovieClip;
public var mctab3:MovieClip;
public var btnclose:SimpleButton;
public var mcicon1:MovieClip;
public var mctab4:MovieClip;
public var mcicon2:MovieClip;
public var mctab5:MovieClip;
public var mcicon3:MovieClip;
public var mctab6:MovieClip;
public var mcicon4:MovieClip;
public var mcicon5:MovieClip;
public var mcicon6:MovieClip;
public function INGAME_590(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 71
//INGAME_597 (Zommart1_fla.INGAME_597)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_597 extends MovieClip {
public var mctitle:MovieClip;
public var mcapplicantbg:MovieClip;
public var mcslider:MovieClip;
public var mctab1:MovieClip;
public var mctab2:MovieClip;
public var mctab3:MovieClip;
public var btnclose:SimpleButton;
public var mcicon1:MovieClip;
public var mctab4:MovieClip;
public var mcicon2:MovieClip;
public var mcicon3:MovieClip;
public var mcicon4:MovieClip;
public function INGAME_597(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 72
//INGAME_601 (Zommart1_fla.INGAME_601)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_601 extends MovieClip {
public var mctitle:MovieClip;
public var mcslider:MovieClip;
public var btnclose:SimpleButton;
public function INGAME_601(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Zommart1_fla
Section 73
//INGAME_603 (Zommart1_fla.INGAME_603)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_603 extends MovieClip {
public var mctitle:MovieClip;
public var mcslider:MovieClip;
public var mctab1:MovieClip;
public var mctab2:MovieClip;
public var mctab3:MovieClip;
public var btnclose:SimpleButton;
public var mcicon1:MovieClip;
public var mctab4:MovieClip;
public var mcicon2:MovieClip;
public var mcicon3:MovieClip;
public var mcicon4:MovieClip;
public var btnnew1:MovieClip;
public function INGAME_603(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 74
//INGAME_606 (Zommart1_fla.INGAME_606)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class INGAME_606 extends MovieClip {
public var mctitle:MovieClip;
public var mcslider:MovieClip;
public var mctab1:MovieClip;
public var mctab2:MovieClip;
public var mctab3:MovieClip;
public var btnclose:SimpleButton;
public var mcicon1:MovieClip;
public var mcicon2:MovieClip;
public var mcicon3:MovieClip;
public var btnnew1:MovieClip;
public var txtrp:TextField;
public function INGAME_606(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 75
//INGAME_612 (Zommart1_fla.INGAME_612)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_612 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_612(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
}
}//package Zommart1_fla
Section 76
//INGAME_62 (Zommart1_fla.INGAME_62)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_62 extends MovieClip {
public function INGAME_62(){
addFrameScript(0, frame1, 1, frame2, 17, frame18);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame18(){
gotoAndPlay(2);
}
}
}//package Zommart1_fla
Section 77
//INGAME_625 (Zommart1_fla.INGAME_625)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_625 extends MovieClip {
public function INGAME_625(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 78
//INGAME_649 (Zommart1_fla.INGAME_649)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_649 extends MovieClip {
public var mc1:MovieClip;
public var btnclose:SimpleButton;
public function INGAME_649(){
addFrameScript(0, frame1, 1, frame2, 6, frame7);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame7(){
stop();
}
}
}//package Zommart1_fla
Section 79
//INGAME_654 (Zommart1_fla.INGAME_654)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_654 extends MovieClip {
public var mc1:MovieClip;
public var btnclose:SimpleButton;
public function INGAME_654(){
addFrameScript(0, frame1, 1, frame2, 6, frame7);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame7(){
stop();
}
}
}//package Zommart1_fla
Section 80
//INGAME_656 (Zommart1_fla.INGAME_656)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_656 extends MovieClip {
public var mcgrace:MovieClip;
public var mc1:MovieClip;
public var btnclose:SimpleButton;
public function INGAME_656(){
addFrameScript(0, frame1, 1, frame2, 8, frame9);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame9(){
stop();
}
}
}//package Zommart1_fla
Section 81
//INGAME_658 (Zommart1_fla.INGAME_658)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_658 extends MovieClip {
public var btnskip:SimpleButton;
public var mc1:MovieClip;
public function INGAME_658(){
addFrameScript(0, frame1, 1, frame2, 9, frame10);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame10(){
stop();
}
}
}//package Zommart1_fla
Section 82
//INGAME_667 (Zommart1_fla.INGAME_667)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_667 extends MovieClip {
public var mcpositionobject:MovieClip;
public function INGAME_667(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 83
//INGAME_698 (Zommart1_fla.INGAME_698)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_698 extends MovieClip {
public function INGAME_698(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package Zommart1_fla
Section 84
//INGAME_70 (Zommart1_fla.INGAME_70)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_70 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_70(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 85
//INGAME_79 (Zommart1_fla.INGAME_79)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_79 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 86
//INGAME_89 (Zommart1_fla.INGAME_89)
package Zommart1_fla {
import flash.display.*;
public dynamic class INGAME_89 extends MovieClip {
public var mc1:MovieClip;
public function INGAME_89(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 87
//MainMenubuttons_445 (Zommart1_fla.MainMenubuttons_445)
package Zommart1_fla {
import flash.display.*;
public dynamic class MainMenubuttons_445 extends MovieClip {
public var btncontinuedisabled:SimpleButton;
public var btnmoregames:SimpleButton;
public var btnnewgame:SimpleButton;
public var btncredits:SimpleButton;
public var btncontinue:SimpleButton;
public function MainMenubuttons_445(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package Zommart1_fla
Section 88
//MainTimeline (Zommart1_fla.MainTimeline)
package Zommart1_fla {
import fl.motion.*;
import flash.geom.*;
import flash.events.*;
import com.gsolo.encryption.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var mcuibuild6:MovieClip;
public var btnab:SimpleButton;
public var btnskip:SimpleButton;
public var mcsplash:MovieClip;
public var txtdebug3:TextField;
public var mchitleft:MovieClip;
public var mcquestcomplete:MovieClip;
public var mcpopupemploye:MovieClip;
public var mcuibuild5:MovieClip;
public var txtdebug2:TextField;
public var mcuibuild4:MovieClip;
public var mcsellbooth:MovieClip;
public var mcmainmenu:MovieClip;
public var mcstory1:MovieClip;
public var txtdebug1:TextField;
public var mcitemexp:MovieClip;
public var mczombieexp:MovieClip;
public var mcstockoption:MovieClip;
public var mcoption:MovieClip;
public var mctutorial1:MovieClip;
public var mcpressesc:MovieClip;
public var mccredits:MovieClip;
public var mcmouse:MovieClip;
public var mclock:MovieClip;
public var mcnotifposition:MovieClip;
public var btnfb:SimpleButton;
public var mclevelupbooth:MovieClip;
public var mckotaker:MovieClip;
public var mcuibuild8:MovieClip;
public var btnabeh:SimpleButton;
public var mcinfo:MovieClip;
public var mclastwishemployee:MovieClip;
public var mchittop:MovieClip;
public var mcprotips:MovieClip;
public var mcinputname:MovieClip;
public var mcgaia:MovieClip;
public var mcnotif:MovieClip;
public var btndemo:SimpleButton;
public var mcnotifdisabled:MovieClip;
public var mcpremiumover:MovieClip;
public var mcuibuild3:MovieClip;
public var mcuitool:MovieClip;
public var mcui1:MovieClip;
public var mchelp:MovieClip;
public var btnyt:SimpleButton;
public var mcfollow:MovieClip;
public var mctutorialcursor:MovieClip;
public var mcuibuild2:MovieClip;
public var mcui2:MovieClip;
public var btnaddthis:SimpleButton;
public var btnlink:SimpleButton;
public var mchitright:MovieClip;
public var mctutorial:MovieClip;
public var mcuilevelup:MovieClip;
public var mcuibuild1:MovieClip;
public var mchitbottom:MovieClip;
public var txtnumchildren:TextField;
public var mcpopupgift:MovieClip;
public var mcpositionshop:MovieClip;
public var mcuibuild7:MovieClip;
public var mczombiesidequestexp:MovieClip;
public var btncontinue:MovieClip;
public var mcpreloader:MovieClip;
public var variables2:URLVariables;
public var request2:URLRequest;
public var loader2:URLLoader;
public var islocked;
public var urls_allowed;
public var volumesfx;
public var volumemusic;
public var so:SharedObject;
public var sizemartmax;
public var equipamount;
public var researchname;
public var decorname;
public var boothlock;
public var decorlock;
public var zombiejob;
public var questlevel;
public var questlist;
public var questthumb;
public var questlistdata;
public var questprizemoney;
public var achiev;
public var soundmoney:Sound;
public var soundzombieclick1:Sound;
public var soundzombieclick2:Sound;
public var soundzombieclick3:Sound;
public var soundzombieclick4:Sound;
public var soundbuild:Sound;
public var soundtab:Sound;
public var soundklik:Sound;
public var soundstocking:Sound;
public var soundnaeklevel:Sound;
public var soundapplause:Sound;
public var soundtab2:Sound;
public var soundklik2:Sound;
public var soundclose:Sound;
public var soundmale1huh:Sound;
public var soundmale2huh:Sound;
public var soundmale1activity:Sound;
public var soundmale2activity:Sound;
public var soundfemale1huh:Sound;
public var soundfemale1activity:Sound;
public var soundfemale2activity:Sound;
public var soundstocking2:Sound;
public var soundeditbooth:Sound;
public var soundpremium:Sound;
public var soundcannotplace:Sound;
public var soundhonktol:Sound;
public var soundmainmenu:Sound;
public var soundquestdone:Sound;
public var soundingame1:Sound;
public var soundingame2:Sound;
public var soundingame3:Sound;
public var soundpunch1:Sound;
public var soundthief:Sound;
public var soundzombiemarah:Sound;
public var soundnotifquest:Sound;
public var soundchoppa:Sound;
public var soundintro:Sound;
public var soundintro1:Sound;
public var soundzoom:Sound;
public var soundcar:Sound;
public var soundtire:Sound;
public var soundbling:Sound;
public var soundchannelstocking:SoundChannel;
public var soundchannelingame:SoundChannel;
public var soundchannelchopa:SoundChannel;
public var continuekah;
public var morning;
public var tutorialtexte;
public var tutorcontinue;
public var soundbgm;
public var soundbgmindex;
public var silencetime;
public var silencetimetemp;
public var useitemimage;
public var movexstandart;
public var moveystandart;
public var riotmode;
public var riotamount;
public var bonusmsonriotmode;
public var bonusmsonriotmodetemp;
public var pausegame;
public var posmouse;
public var movearoundupdater;
public var movearoundupdatertemp;
public var widthemap;
public var heightemap;
public var balancerposition;
public var indexcenteredatasx;
public var indexcenteredatasy;
public var indexcenteredbawahx;
public var indexcenteredbawahy;
public var widthemart;
public var heightemart;
public var firsttile;
public var tileimage;
public var decorimage;
public var houseimage;
public var wallimage;
public var employeeimage;
public var zombieimage;
public var doorimage;
public var effectimage;
public var lootimage;
public var pospintu;
public var pospintu2;
public var map:AStarMap;
public var starttilemartx;
public var starttilemarty;
public var createemployeebool;
public var createboothbool;
public var achivenumba;
public var achievtext;
public var itemname;
public var itemdesc;
public var itemeffect;
public var researchdesc;
public var researchunlock;
public var researchtime;
public var researchqty;
public var researchrepeatable;
public var researcheffect;
public var researchpointneeded;
public var employeelinkage;
public var boothstockingpremium;
public var boothlinkage;
public var boothname;
public var boothprice;
public var boothstockingamount;
public var boothstockingprice;
public var boothstockingtime;
public var boothsizex;
public var boothsizey;
public var boothmaxstock;
public var boothunlocked;
public var boothjumitem;
public var boothpricemoney;
public var itempricepremimum;
public var jumdecor;
public var decorunlocked;
public var decorstarcontribute;
public var decorlinkage;
public var decorprice;
public var decorsizex;
public var decorsizey;
public var equipname;
public var equipdesc;
public var equipunlock;
public var equipprice;
public var equipstatusatk;
public var equipstatushp;
public var equipstatusdef;
public var equipstatusspd;
public var indexbuild;
public var indexiteminbuild;
public var shopitemimage;
public var indexdecor;
public var shopitemreducertime;
public var shopitemreducertimetemp;
public var zombielinkage;
public var zombiename;
public var zombieunlocked;
public var zombiereq;
public var zombiespeed;
public var zombiehealth;
public var zombieattack;
public var cooldownbuy;
public var servingspeed;
public var randzombieposition;
public var randzombitarget;
public var zombiespawn;
public var stockingtime;
public var zombiespawnertime;
public var sellinganimationtimetemp;
public var sliderindex;
public var jumlahitemslider;
public var imagearea;
public var celltypetemp;
public var zoomvalue;
public var zoombool;
public var rumuszoom;
public var zoomingvalue;
public var maxzoomvalue;
public var clickstocktipe;
public var clickstocknomor;
public var levelupboothcollection;
public var indexboothcollection;
public var toolcommand;
public var toolcommandadaemployee;
public var editdecortemp;
public var minspawn;
public var maxspawn;
public var randname;
public var zombieexpinstant;
public var statmax;
public var starstandart;
public var stockingimage;
public var onhittime;
public var ke1;
public var martclose;
public var levelminforattack;
public var levelminformaling;
public var sidequesttimer;
public var sidequesttimertemp;
public var sidequesttitle;
public var sidequestbool;
public var sidequestcariini;
public var sidequestzombie;
public var equipemployeestatus;
public var onusepotion;
public var tuberegistered;
public var oncloning;
public var assignagainemployee;
public var timeperdaymin;
public var timeperhour;
public var timepermin;
public var timepermintemp;
public var wishcost;
public var randwish;
public var widthgaia;
public var heightgaia;
public var yangdicuri;
public var lagicuri;
public var adamaling;
public var cdformaling;
public var cdformalingtemp;
public var buscomein;
public var buscomeintemp;
public var busimage;
public var organimage;
public var splatterimage;
public var tipeview;
public var acakmin;
public var acakmax;
public var adaquestcomplete;
public var boothinikosong;
public var notifimage;
public var notifvisibler;
public var thresholdkosong;
public var lagiswapnotif;
public var cekwaktuduh;
public var cekwaktuindex;
public var indexnotif;
public var indexshop;
public var clonetime;
public var clonetimetemp;
public var explevelreq;
public var tempnamee;
public var temphealth;
public var tempdefense;
public var tempspeed;
public var templastwish;
public var tempsalary;
public var temptypee;
public var templevele;
public var tempkepala;
public var tempareane;
public var tempattack;
public var temphead;
public var temparmor;
public var tempglove;
public var second;
public var tempspecial;
public var tempmoney;
public var tempshoptipeitem;
public var tempshopnomoritem;
public var tempshopprice;
public var tempplacementx;
public var tempplacementy;
public var tempplacementbool;
public var tempinsertintocourt;
public var temprotate;
public var tempstock;
public var tempwallke;
public var tempsaveke;
public var prebuyimage;
public var onstagedown;
public var alreadysavedown;
public var miniquestsoundtime;
public var miniquestsoundtimetemp;
public var minmati;
public var secmati;
public var patiencesummary;
public var patienceminimal;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
public function clikSF(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
}
public function sitelock(_arg1){
var _local5:*;
var _local2:* = true;
var _local3:* = loaderInfo.url.split("://");
var _local4:* = _local3[1].split("/");
while (_local4[0] == "") {
_local3[1] = _local3[1].substr(1, _local3[1].length);
_local4 = _local3[1].split("/");
};
for (_local5 in _arg1) {
if (_arg1[_local5] == _local4[0]){
_local2 = false;
};
};
_local2 = false;
if (_local2){
islocked = true;
mclock.visible = true;
} else {
mclock.visible = false;
};
}
public function preloader(_arg1:Event):void{
var _local2:Number = this.loaderInfo.bytesTotal;
var _local3:Number = this.loaderInfo.bytesLoaded;
var _local4:Number = ((_local3 / _local2) * 100);
mcpreloader.txtloading.text = (int(_local4) + "%");
mcpreloader.mctext.gotoAndStop(int((_local4 / 10)));
mcpreloader.mcbar.mcbar1.width = ((_local4 / 100) * 300);
mcpreloader.mcbar.mcbar2.width = ((_local4 / 100) * 300);
if ((((_local3 == _local2)) && ((islocked == false)))){
gotoAndPlay("preloader2");
stage.removeEventListener(Event.ENTER_FRAME, preloader);
};
}
public function isiquestbaru(){
var _local2:*;
var _local1:* = 1;
while (_local1 < questlist.length) {
if (questlevel[_local1] == so.data.levele){
so.data.adaquestbaru = true;
so.data.mainquest[so.data.mainquest.length] = [];
so.data.mainquestdata[so.data.mainquestdata.length] = [];
_local2 = 0;
while (_local2 < questlist[_local1].length) {
trace(((("masukin ini ke : " + int((so.data.mainquest.length - 1))) + " ") + questlist[_local1][_local2]));
so.data.mainquest[(so.data.mainquest.length - 1)][_local2] = questlist[_local1][_local2];
so.data.mainquestdata[(so.data.mainquestdata.length - 1)][_local2] = [0, questlistdata[_local1][_local2], false, true, questprizemoney[_local1], questlevel[_local1], questthumb[_local1][_local2]];
_local2++;
};
};
_local1++;
};
}
public function createnewso(){
var _local1:*;
var _local2:*;
var _local3:*;
if (so.size == 0){
so.data.follow = [];
_local1 = 1;
while (_local1 <= 2) {
so.data.follow[_local1] = 0;
_local1++;
};
so.data.achiev = [];
so.data.achievprog = [];
_local1 = 0;
while (_local1 < achiev.length) {
so.data.achiev[_local1] = 0;
so.data.achievprog[_local1] = 0;
_local1++;
};
so.data.notifnew = 1;
so.data.notiftext = [];
so.data.adaquestbaru = false;
so.data.zombieunlocked = [];
_local1 = 0;
while (_local1 < zombiejob.length) {
so.data.zombieunlocked[_local1] = false;
_local1++;
};
so.data.mainquest = [];
so.data.mainquestdata = [];
trace(("ISI : " + so.data.mainquest));
so.data.unfulfillwish = [];
so.data.decoronstock = [];
_local1 = 1;
while (_local1 < decorname.length) {
so.data.decoronstock[_local1] = [];
_local3 = 1;
while (_local3 < decorname[_local1].length) {
so.data.decoronstock[_local1][_local3] = 0;
_local3++;
};
_local1++;
};
so.data.employeeonstock = [];
so.data.inventorytube = [];
so.data.clonetablock = true;
so.data.superheroapplicantlock = true;
so.data.advanceequiplock = true;
so.data.foodcourtlock = true;
so.data.boothlock = [];
_local1 = 1;
while (_local1 < boothlock.length) {
if (boothlock[_local1] != undefined){
so.data.boothlock[_local1] = [];
_local3 = 0;
while (_local3 < boothlock[_local1].length) {
if (boothlock[_local1][_local3] != 1){
so.data.boothlock[_local1][_local3] = 0;
} else {
so.data.boothlock[_local1][_local3] = 1;
};
_local3++;
};
};
_local1++;
};
so.data.decorlock = [];
_local1 = 1;
while (_local1 < decorlock.length) {
so.data.decorlock[_local1] = [];
_local3 = 0;
while (_local3 < decorlock[_local1].length) {
if (decorlock[_local1][_local3] != 1){
so.data.decorlock[_local1][_local3] = 0;
} else {
so.data.decorlock[_local1][_local3] = 1;
};
_local3++;
};
_local1++;
};
trace("2");
so.data.inventorypotion = [];
so.data.inventorypotionamount = [];
so.data.researchbool = [];
so.data.researchtime = [];
_local1 = 0;
while (_local1 < researchname.length) {
so.data.researchbool[_local1] = false;
so.data.researchtime[_local1] = [0, 0, 0];
_local1++;
};
so.data.equipstocktemp = [];
so.data.equipstock = [];
_local1 = 0;
while (_local1 < equipamount.length) {
so.data.equipstock[_local1] = [];
so.data.equipstocktemp[_local1] = [];
_local3 = 0;
while (_local3 < equipamount[_local1]) {
so.data.equipstocktemp[_local1][_local3] = 0;
so.data.equipstock[_local1][_local3] = 0;
_local3++;
};
_local1++;
};
so.data.newitem = [undefined, 1, 1, 0, 1, 1, 0, 0, 0];
so.data.newitemtipe = [undefined, [undefined, 1, 0, 0, 0, 0, 0, 0, 0], [undefined, 1, 1, 1, 1, 0], [undefined, 0, 0, 0, 0], [undefined, 1], [undefined, 1, 0, 0, 0], [], []];
so.data.newitemnomor = [undefined, [undefined, [0, 1], [], [], [], [], [], [], []], [undefined, [0, 1], [0, 1], [0, 1], [0, 1], []], [], [undefined, [0, 1, 2]], [undefined, [0, 1]], [], []];
so.data.star = 0;
so.data.widthemart = 7;
so.data.heightemart = so.data.widthemart;
so.data.tilenumba = [];
so.data.boothrotate = [];
so.data.boothreferto = [];
so.data.boothapa = [];
so.data.boothtipe = [];
so.data.boothnomor = [];
so.data.boothstock = [];
so.data.walltipe = [];
so.data.wallbool = [];
so.data.doortipe = 1;
so.data.decorationwall = [];
so.data.decorationwallnomor = [];
_local1 = 0;
while (_local1 <= sizemartmax) {
so.data.tilenumba[_local1] = [];
so.data.boothrotate[_local1] = [];
so.data.boothreferto[_local1] = [];
so.data.boothapa[_local1] = [];
so.data.boothtipe[_local1] = [];
so.data.boothnomor[_local1] = [];
so.data.boothstock[_local1] = [];
_local3 = 0;
while (_local3 <= sizemartmax) {
so.data.tilenumba[_local1][_local3] = 1;
so.data.boothreferto[_local1][_local3] = [];
so.data.boothrotate[_local1][_local3] = false;
so.data.boothapa[_local1][_local3] = "";
so.data.boothtipe[_local1][_local3] = "";
so.data.boothnomor[_local1][_local3] = 0;
so.data.boothstock[_local1][_local3] = 0;
_local3++;
};
_local1++;
};
_local2 = true;
_local1 = 0;
while (_local1 < ((sizemartmax * 2) + 1)) {
so.data.walltipe[_local1] = 1;
so.data.wallbool[_local1] = false;
so.data.decorationwall[_local1] = false;
so.data.decorationwallnomor[_local1] = 0;
if (_local2 == false){
_local2 = true;
so.data.decorationwall[_local1] = true;
so.data.decorationwallnomor[_local1] = 2;
} else {
_local2 = false;
};
_local1++;
};
so.data.namee = "Bandol mart";
so.data.morning = true;
so.data.timehour = 0;
so.data.timeminute = 0;
so.data.star = 0;
so.data.expe = 0;
so.data.expneeded = 15;
so.data.levele = 1;
so.data.researchpoint = 0;
so.data.money = 5000;
so.data.premiummoney = 2;
so.data.tutorialstep = 1;
so.data.tutorialcomplete = false;
so.data.build2stock = [undefined, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
so.data.build1stock = [undefined, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0], [0, 0, 0, 0, 0], [], [0, 0, 0, 0, 0, 0, 0]];
so.data.build1stockwarehouse = [undefined, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0], [0, 0, 0, 0, 0], undefined, [0, 0, 0, 0, 0, 0, 0]];
so.data.build1stocktime = [undefined, [[], [], [], [], [], [], [], [], [], [], [], [], [], []], [[], [], [], []], [[], [], [], [], [], [], []], [[], [], [], [], [], [], [], []], [[], [], []], [[], [], [], [], []], [], [[], [], [], [], [], [], []]];
so.data.build1stocktimetemp = [undefined, [[], [], [], [], [], [], [], [], [], [], [], [], [], []], [[], [], [], []], [[], [], [], [], [], [], []], [[], [], [], [], [], [], [], []], [[], [], []], [[], [], [], [], []], [], [[], [], [], [], [], [], []]];
so.data.build1stocktocum = [undefined, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0], [0, 0, 0, 0, 0], undefined, [0, 0, 0, 0, 0, 0, 0]];
so.data.employeeaplicantsaver = [];
so.data.employeeaplicantstatussaver = [];
so.data.employeelist = [];
so.data.employeeliststatus = [];
so.data.featurelocked = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 1];
isiquestbaru();
};
}
public function accesslink(_arg1:MouseEvent):void{
var _local2:URLRequest;
if (mcsplash.currentLabel == "ab"){
_local2 = new URLRequest("http://www.arcadebomb.com");
navigateToURL(_local2);
} else {
if (mcsplash.currentLabel == "lg"){
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
};
};
}
public function skipsplash(_arg1:Event):void{
if (mcsplash.currentFrame == mcsplash.totalFrames){
gotoAndStop("story");
stage.removeEventListener(Event.ENTER_FRAME, skipsplash);
};
}
public function loadstory(){
stage.addEventListener(Event.ENTER_FRAME, waitstory);
}
public function waitstory(_arg1:Event):void{
if (mcstory1.currentFrame == mcstory1.totalFrames){
soundchannelingame.stop();
soundchannelingame = null;
stage.removeEventListener(Event.ENTER_FRAME, waitstory);
gotoAndStop("main menu");
};
}
public function skipstory(_arg1:MouseEvent):void{
soundchannelingame.stop();
soundchannelingame = null;
stage.removeEventListener(Event.ENTER_FRAME, waitstory);
gotoAndStop("main menu");
}
public function stagemutemusic(_arg1:MouseEvent){
if (volumemusic == 0){
volumemusic = 1;
} else {
if (volumemusic == 1){
volumemusic = 0;
};
};
soundchannelingame.soundTransform = new SoundTransform(volumemusic);
}
public function stagemutesfx(_arg1:MouseEvent){
if (volumesfx == 0){
volumesfx = 1;
} else {
if (volumesfx == 1){
volumesfx = 0;
};
};
if (soundchannelstocking != null){
soundchannelstocking.soundTransform = new SoundTransform(volumesfx);
};
}
public function startgame(_arg1:MouseEvent):void{
soundklik.play(0, 1, new SoundTransform(volumesfx));
so.clear();
createnewso();
gotoAndStop("ingame");
}
public function continuegame(_arg1:MouseEvent):void{
continuekah = true;
soundklik.play(0, 1, new SoundTransform(volumesfx));
gotoAndStop("ingame");
}
public function creditsgame(_arg1:MouseEvent):void{
soundklik.play(0, 1, new SoundTransform(volumesfx));
gotoAndStop("credits");
}
public function moregamesgame(_arg1:MouseEvent):void{
soundklik.play(0, 1, new SoundTransform(volumesfx));
var _local2:URLRequest = new URLRequest("http://www.arcadebomb.com");
navigateToURL(_local2);
}
public function waitmm(_arg1:Event):void{
if (mcmainmenu.mc1.currentFrame == mcmainmenu.mc1.totalFrames){
if (so.size != 0){
if (so.data.tutorialcomplete == false){
mcmainmenu.mc1.btncontinuedisabled.visible = true;
} else {
mcmainmenu.mc1.btncontinuedisabled.visible = false;
};
} else {
mcmainmenu.mc1.btncontinuedisabled.visible = true;
};
stage.removeEventListener(Event.ENTER_FRAME, waitmm);
};
}
public function creditsok(_arg1:Event):void{
if (mccredits.currentFrame == mccredits.totalFrames){
stage.removeEventListener(MouseEvent.CLICK, skipcredits);
stage.removeEventListener(Event.ENTER_FRAME, creditsok);
gotoAndStop("main menu");
};
}
public function skipcredits(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.CLICK, skipcredits);
stage.removeEventListener(Event.ENTER_FRAME, creditsok);
gotoAndStop("main menu");
}
public function soundBGMAbisAwal(_arg1:Event):void{
stage.addEventListener(Event.ENTER_FRAME, silencetimee);
}
public function silencetimee(_arg1:Event):void{
silencetime--;
if (silencetime < 0){
stage.removeEventListener(Event.ENTER_FRAME, silencetimee);
silencetime = silencetimetemp;
soundbgmindex++;
if (soundbgmindex > (soundbgm.length - 1)){
soundbgmindex = 0;
};
soundchannelingame = soundbgm[soundbgmindex].play(0, 1, new SoundTransform(volumemusic));
soundchannelingame.addEventListener(Event.SOUND_COMPLETE, soundBGMAbisAwal, false, 0, true);
};
}
public function anykeyup(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 65)) || ((_arg1.keyCode == 37)))){
stage.removeEventListener(Event.ENTER_FRAME, movemapmanual);
} else {
if ((((_arg1.keyCode == 83)) || ((_arg1.keyCode == 40)))){
stage.removeEventListener(Event.ENTER_FRAME, movemapmanual);
} else {
if ((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 39)))){
stage.removeEventListener(Event.ENTER_FRAME, movemapmanual);
} else {
if ((((_arg1.keyCode == 87)) || ((_arg1.keyCode == 38)))){
stage.removeEventListener(Event.ENTER_FRAME, movemapmanual);
};
};
};
};
}
public function anykey(_arg1:KeyboardEvent):void{
var _local2:int;
var _local3:int;
var _local4:*;
var _local5:*;
if (so.data.tutorialcomplete == true){
if (_arg1.keyCode == 106){
cheatlevelup();
} else {
if (_arg1.keyCode == 102){
cheatmoneyresearch();
};
};
if ((((_arg1.keyCode == 65)) || ((_arg1.keyCode == 37)))){
mcgaia.x = (mcgaia.x + 4);
stage.addEventListener(Event.ENTER_FRAME, movemapmanual);
} else {
if ((((_arg1.keyCode == 83)) || ((_arg1.keyCode == 40)))){
mcgaia.y = (mcgaia.y - 4);
stage.addEventListener(Event.ENTER_FRAME, movemapmanual);
} else {
if ((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 39)))){
mcgaia.x = (mcgaia.x - 4);
stage.addEventListener(Event.ENTER_FRAME, movemapmanual);
} else {
if ((((_arg1.keyCode == 87)) || ((_arg1.keyCode == 38)))){
mcgaia.y = (mcgaia.y + 4);
stage.addEventListener(Event.ENTER_FRAME, movemapmanual);
};
};
};
};
if ((((_arg1.keyCode == 111)) || ((_arg1.keyCode == 144)))){
_local2 = 0;
while (_local2 <= map.gridWidth) {
_local3 = 0;
while (_local3 <= map.gridHeight) {
if (_arg1.keyCode == 111){
tileimage[_local2][_local3].txt1.text = tileimage[_local2][_local3].bobotie;
};
if (_arg1.keyCode == 144){
tileimage[_local2][_local3].txt1.text = ((_local2 + ",") + _local3);
};
if (tileimage[_local2][_local3].txt1.visible == false){
tileimage[_local2][_local3].txt1.visible = true;
} else {
tileimage[_local2][_local3].txt1.visible = false;
};
_local3++;
};
_local2++;
};
};
if (_arg1.keyCode == 27){
mcpressesc.visible = false;
trace(("a " + toolcommand));
if (toolcommand != ""){
trace(("yo masuk tool : " + editdecortemp));
if (editdecortemp.length > 0){
if (createemployeebool == true){
so.data.boothtipe[editdecortemp[0]][editdecortemp[0]] = "emp";
so.data.boothnomor[editdecortemp[0]][editdecortemp[1]] = 0;
so.data.boothstock[editdecortemp[0]][editdecortemp[1]] = 0;
so.data.employeelist[so.data.employeelist.length] = [temptypee];
so.data.employeeliststatus[so.data.employeeliststatus.length] = [tempnamee, temphealth, tempdefense, tempspeed, templastwish, tempsalary, temptypee, templevele, tempkepala, 0, explevelreq, editdecortemp[0], editdecortemp[1], tempareane, tempattack, false, temphead, temparmor, tempglove, tempspecial];
bwatemployee();
bwatsuararespondemployee(tempkepala);
} else {
if (temprotate == true){
so.data.boothreferto[editdecortemp[0][0]][editdecortemp[0][1]] = [editdecortemp[0][0], editdecortemp[0][1]];
} else {
so.data.boothreferto[editdecortemp[0][0]][editdecortemp[0][1]] = [editdecortemp[0][0], editdecortemp[0][1]];
};
so.data.boothtipe[editdecortemp[0][0]][editdecortemp[0][1]] = tempshoptipeitem;
so.data.boothnomor[editdecortemp[0][0]][editdecortemp[0][1]] = tempshopnomoritem;
so.data.boothstock[editdecortemp[0][0]][editdecortemp[0][1]] = tempstock;
bwatdecor();
};
};
toolcommand = "";
mcmouse.gotoAndStop(1);
Mouse.show();
};
trace(("ha : " + prebuyimage.length));
if (prebuyimage.length > 0){
assignagainemployee = -1;
pausegame = false;
cleanupprebuyfollowmouse();
resettilesallow();
};
if (onusepotion == true){
onusepotion = false;
useitemimage[0].removeEventListener(Event.ENTER_FRAME, useitemfollowe);
mcgaia.removeChild(useitemimage[0]);
};
} else {
if (_arg1.keyCode == 186){
bwatzombie();
} else {
if (_arg1.keyCode == 222){
_local4 = firsttile[0];
while (_local4 < (firsttile[0] + widthemart)) {
_local5 = firsttile[1];
while (_local5 < (firsttile[1] + heightemart)) {
trace(((((("tile ke : " + _local4) + " ") + _local5) + " adl : ") + map.getCell(_local4, _local5).cellType));
_local5++;
};
_local4++;
};
_local4 = 1;
while (_local4 < so.data.build1stocktime.length) {
_local5 = 0;
while (_local5 < so.data.build1stocktime[_local4].length) {
if (so.data.build1stocktime[_local4][_local5] != ""){
trace(((((("tipe ke : " + _local4) + " nomor ke : ") + _local5) + " yaitu : ") + so.data.build1stocktime[_local4][_local5]));
};
_local5++;
};
_local4++;
};
};
};
};
};
}
public function movemapmanual(_arg1:Event){
cekpositioninggaia();
}
public function numchildrener(_arg1:Event){
mcmouse.x = mouseX;
mcmouse.y = mouseY;
txtnumchildren.text = String(mcgaia.numChildren);
txtdebug1.text = cdformaling;
txtdebug2.text = starstandart;
txtdebug3.text = sidequesttitle;
txtdebug1.mouseEnabled = false;
txtdebug2.mouseEnabled = false;
txtdebug3.mouseEnabled = false;
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
public function loadstandart(){
trace(("CEK RESEARCH : " + so.data.boothlock[1][6]));
trace(("CEK RESEARCH : " + so.data.boothlock[1][8]));
trace(("CEK RESEARCH : " + so.data.boothlock[1][7]));
so.data.notiftext = [];
mckotaker.visible = false;
mcpressesc.visible = false;
mcinfo.visible = false;
mcui1.gotoAndPlay(2);
mcui2.gotoAndPlay(2);
mcuitool.gotoAndPlay(2);
mcinputname.visible = false;
mctutorial.visible = false;
mcui2.mc1.btnfreegames.addEventListener(MouseEvent.CLICK, moregamesgame);
mcui2.mc1.btnnotif.addEventListener(MouseEvent.CLICK, notifpopup);
mcui1.mc1.btnchangename.addEventListener(MouseEvent.CLICK, uichangename);
bwattool();
bwatui2();
bwatoption();
bwattiles();
bwatwalls();
bwatdecor();
bwathouse();
itungstar();
cektutorial();
ceknew();
plzcenterdamap();
bwatemployee();
cekcontinue();
updatenotifnumba();
bwatbus();
stage.addEventListener(Event.ENTER_FRAME, stagemovearound);
stage.addEventListener(MouseEvent.MOUSE_DOWN, stagemovearounddown);
stage.addEventListener(MouseEvent.MOUSE_UP, stagemovearoundup);
stage.addEventListener(Event.ENTER_FRAME, stockingtimereducer);
stage.addEventListener(Event.ENTER_FRAME, zombiespawner);
if (so.data.morning == true){
mcui1.mc1.mcdaysymbol.gotoAndStop("day");
} else {
if (so.data.morning == false){
mcui1.mc1.mcdaysymbol.gotoAndStop("night");
};
};
updatetext();
trace(((("W + H : " + mcgaia.width) + " ") + mcgaia.height));
fixallwrong();
}
public function fixallwrong(){
var _local2:*;
var _local3:*;
var _local4:*;
var _local1:* = 0;
while (_local1 < so.data.widthemart) {
_local2 = 0;
while (_local2 < so.data.heightemart) {
if (((!((so.data.boothreferto[_local1][_local2] == undefined))) && (!((so.data.boothreferto[_local1][_local2] == ""))))){
if ((((so.data.boothapa[_local1][_local2] == "")) && ((so.data.boothtipe[_local1][_local2] == "")))){
so.data.boothreferto[_local1][_local2] = "";
} else {
_local3 = so.data.boothreferto[_local1][_local2][0];
_local4 = so.data.boothreferto[_local1][_local2][1];
if ((((decorimage[_local3][_local4] == null)) && ((((so.data.boothapa[_local3][_local4] == "booth")) || ((so.data.boothapa[_local3][_local4] == "decor")))))){
} else {
if ((((employeeimage[_local3][_local4] == null)) && ((so.data.boothtipe[_local3][_local4] == "emp")))){
};
};
};
};
_local2++;
};
_local1++;
};
}
public function plzcenterdamap(){
mcgaia.y = 151;
}
public function ceknew(){
var _local2:*;
var _local3:*;
var _local1:* = 1;
while (_local1 <= 8) {
_local2 = mcui2.mc1.getChildByName(("btnnew" + _local1));
_local3 = mcui2.mc1.getChildByName(("btn" + _local1));
if ((((((so.data.newitem[_local1] == 1)) && ((_local3.visible == true)))) && ((so.data.tutorialcomplete == true)))){
_local2.visible = true;
} else {
_local2.visible = false;
};
_local1++;
};
if ((((so.data.adaquestbaru == true)) && ((so.data.tutorialcomplete == true)))){
mcui2.mc1.btnnew7.visible = true;
};
}
public function bwattool(){
var _local2:*;
mcuitool.mc1.btnzoomin.addEventListener(MouseEvent.CLICK, stagezoomin);
mcuitool.mc1.btnzoomout.addEventListener(MouseEvent.CLICK, stagezoomout);
mcuitool.mc1.btnboothview.addEventListener(MouseEvent.CLICK, stageviewboothonly);
mcuitool.mc1.btnemployee.addEventListener(MouseEvent.CLICK, stageviewemponly);
mcuitool.mc1.btnhelp.addEventListener(MouseEvent.CLICK, helpplz);
var _local1:* = 1;
while (_local1 <= 7) {
_local2 = mcuitool.mc1.getChildByName(("btn" + _local1));
_local2.addEventListener(MouseEvent.CLICK, selecttool);
_local1++;
};
}
public function stageviewemponly(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (prebuyimage.length == 0){
if ((((tipeview == "")) || ((tipeview == "booth")))){
tipeview = "emp";
} else {
if (tipeview == "emp"){
tipeview = "";
};
};
_local2 = 1;
if (tipeview == "emp"){
_local2 = 0.3;
};
_local3 = 0;
while (_local3 <= widthemart) {
_local4 = 0;
while (_local4 <= widthemart) {
if (employeeimage[_local3][_local4] != null){
employeeimage[_local3][_local4].alpha = 1;
};
if (decorimage[_local3][_local4] != null){
decorimage[_local3][_local4].alpha = _local2;
};
_local4++;
};
_local3++;
};
_local3 = 0;
while (_local3 <= zombieimage.length) {
if (zombieimage[_local3] != null){
if (zombieimage[_local3].insidemarket == true){
zombieimage[_local3].alpha = _local2;
};
};
_local3++;
};
_local3 = 0;
while (_local3 < wallimage.length) {
if (wallimage[_local3] != null){
wallimage[_local3].mcdecorwall.alpha = _local2;
};
_local3++;
};
};
}
public function stageviewboothonly(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (prebuyimage.length == 0){
if ((((tipeview == "")) || ((tipeview == "emp")))){
tipeview = "booth";
} else {
if (tipeview == "booth"){
tipeview = "";
};
};
_local2 = 1;
if (tipeview == "booth"){
_local2 = 0.3;
};
_local3 = 0;
while (_local3 <= widthemart) {
_local4 = 0;
while (_local4 <= widthemart) {
if (employeeimage[_local3][_local4] != null){
employeeimage[_local3][_local4].alpha = _local2;
};
if (decorimage[_local3][_local4] != null){
if (decorimage[_local3][_local4].decor == true){
decorimage[_local3][_local4].alpha = _local2;
} else {
decorimage[_local3][_local4].alpha = 1;
};
};
_local4++;
};
_local3++;
};
_local3 = 0;
while (_local3 <= zombieimage.length) {
if (zombieimage[_local3] != null){
if (zombieimage[_local3].insidemarket == true){
zombieimage[_local3].alpha = _local2;
};
};
_local3++;
};
_local3 = 0;
while (_local3 < wallimage.length) {
if (wallimage[_local3] != null){
wallimage[_local3].mcdecorwall.alpha = _local2;
};
_local3++;
};
};
}
public function helpplz(_arg1:MouseEvent){
mchelp.gotoAndPlay(2);
mchelp.btnclose.removeEventListener(MouseEvent.CLICK, closehelp);
mchelp.btnclose.addEventListener(MouseEvent.CLICK, closehelp);
}
public function closehelp(_arg1:MouseEvent){
mchelp.gotoAndStop(1);
}
public function selecttool(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
if ((((riotmode == false)) && ((prebuyimage.length == 0)))){
soundklik2.play(0, 1, new SoundTransform(volumesfx));
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
_local3 = [undefined, "", "drag", "move", "rotate", "stock", "sell"];
if (_local2 != 1){
Mouse.hide();
} else {
Mouse.show();
};
mcmouse.gotoAndStop(_local2);
editdecortemp = [];
toolcommandadaemployee = false;
toolcommand = _local3[_local2];
trace(("TOOL COMAND GANTI JADI : " + toolcommand));
};
}
public function bwatoption(){
mcui1.mc1.btnmutemusic.removeEventListener(MouseEvent.CLICK, stagemutemusic);
mcui1.mc1.btnmutefx.removeEventListener(MouseEvent.CLICK, stagemutesfx);
mcui1.mc1.btnmutemusic.addEventListener(MouseEvent.CLICK, stagemutemusic);
mcui1.mc1.btnmutefx.addEventListener(MouseEvent.CLICK, stagemutesfx);
mcui1.mc1.btnoption.removeEventListener(MouseEvent.CLICK, stageoption);
mcui1.mc1.btnoption.addEventListener(MouseEvent.CLICK, stageoption);
mcui1.mc1.btnfreegift.removeEventListener(MouseEvent.CLICK, stagefreegift);
mcui1.mc1.btnfreegift.addEventListener(MouseEvent.CLICK, stagefreegift);
}
public function stagefreegift(_arg1:MouseEvent){
pausegame = true;
loadfollow();
mcfollow.gotoAndPlay(2);
}
public function stageoption(_arg1:MouseEvent){
pausegame = true;
mcoption.gotoAndPlay(2);
mcoption.mc1.btnfollow.addEventListener(MouseEvent.CLICK, optionfollow);
createoption();
}
public function optionfollow(_arg1:MouseEvent){
mcoption.gotoAndStop(1);
loadfollow();
mcfollow.gotoAndPlay(2);
}
public function loadfollow(){
var _local2:*;
var _local3:*;
mcfollow.btnclose.removeEventListener(MouseEvent.CLICK, followclose);
mcfollow.btnclose.addEventListener(MouseEvent.CLICK, followclose);
var _local1:* = 1;
while (_local1 <= 2) {
_local2 = mcfollow.getChildByName(("mc" + _local1));
_local3 = mcfollow.getChildByName(("btn" + _local1));
_local3.addEventListener(MouseEvent.CLICK, clicklink);
if (so.data.follow[_local1] == 1){
_local2.gotoAndStop(2);
};
_local1++;
};
}
public function followclose(_arg1:MouseEvent){
pausegame = false;
mcfollow.gotoAndStop(1);
}
public function clicklink(_arg1:MouseEvent){
var _local3:URLRequest;
var _local2:* = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
if (so.data.follow[_local2] == 0){
so.data.follow[_local2] = 1;
so.data.premiummoney = (so.data.premiummoney + 5);
updatetext();
};
if (_local2 == 1){
_local3 = new URLRequest("https://www.facebook.com/Littlegiantworld");
navigateToURL(_local3);
} else {
_local3 = new URLRequest("https://www.facebook.com/ArcadeBomb");
navigateToURL(_local3);
};
loadfollow();
}
public function createoption(){
mcoption.mc1.btnzombictionary.addEventListener(MouseEvent.CLICK, openzombictionary);
mcoption.btnclose.addEventListener(MouseEvent.CLICK, optionclose);
mcoption.mc1.btnmainmenu.addEventListener(MouseEvent.CLICK, optionmainmenu);
loadqualitybutton();
}
public function openzombictionary(_arg1:MouseEvent){
mcoption.gotoAndStop(1);
closeuiwindow();
indexshop = 8;
createanimasibuild(getChildByName(("mcuibuild" + 8)));
so.data.newitem[8] = 0;
pausegame = true;
}
public function loadqualitybutton(){
var _local3:*;
var _local1:* = [undefined, "HIGH", "MEDIUM", "LOW"];
var _local2:* = 1;
while (_local2 <= 3) {
_local3 = mcoption.mc1.getChildByName(("btnquality" + _local2));
_local3.gotoAndStop(1);
_local3.buttonMode = true;
_local3.removeEventListener(MouseEvent.CLICK, qualitychoose);
_local3.addEventListener(MouseEvent.CLICK, qualitychoose);
if (stage.quality == _local1[_local2]){
_local3.gotoAndStop(2);
};
_local2++;
};
}
public function optionmainmenu(_arg1:MouseEvent){
var _local2:*;
var _local4:*;
var _local5:int;
var _local6:*;
stage.removeEventListener(MouseEvent.MOUSE_DOWN, stagemovearounddown);
stage.removeEventListener(Event.ENTER_FRAME, stagemovearound);
stage.removeEventListener(MouseEvent.MOUSE_UP, stagemovearoundup);
trace("1");
_local2 = 1;
while (_local2 <= 8) {
_local4 = getChildByName(("mcuibuild" + _local2));
_local4.removeEventListener(Event.ENTER_FRAME, uianimationtime);
_local2++;
};
trace("2");
if (prebuyimage[0] != null){
prebuyimage[0].removeEventListener(Event.ENTER_FRAME, prebuyfollowmouse);
removeChild(prebuyimage[0]);
prebuyimage[0] = null;
};
stage.removeEventListener(MouseEvent.CLICK, prebuyclickmouse);
trace("3");
_local2 = 0;
while (_local2 < shopitemimage.length) {
if (shopitemimage[_local2] != null){
shopitemimage[_local2].removeEventListener(Event.ENTER_FRAME, employeelistframer);
removeChild(shopitemimage[_local2]);
shopitemimage[_local2] = null;
};
_local2++;
};
trace("4");
var _local3:int;
while (_local3 <= map.gridWidth) {
_local5 = 0;
while (_local5 <= map.gridHeight) {
mcgaia.removeChild(tileimage[_local3][_local5]);
tileimage[_local3][_local5] = null;
_local5++;
};
_local3++;
};
trace("4");
_local2 = 0;
while (_local2 < so.data.widthemart) {
_local6 = 0;
while (_local6 < so.data.heightemart) {
if (decorimage[_local2][_local6] != null){
decorimage[_local2][_local6].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
decorimage[_local2][_local6].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
decorimage[_local2][_local6].removeEventListener(MouseEvent.CLICK, clickdecor);
mcgaia.removeChild(decorimage[_local2][_local6]);
decorimage[_local2][_local6] = null;
};
if (employeeimage[_local2][_local6] != null){
employeeimage[_local2][_local6].removeEventListener(Event.ENTER_FRAME, securitybehavior);
employeeimage[_local2][_local6].removeEventListener(Event.ENTER_FRAME, employeebehavior);
mcgaia.removeChild(employeeimage[_local2][_local6]);
employeeimage[_local2][_local6] = null;
};
_local6++;
};
_local2++;
};
trace("5");
_local2 = 0;
while (_local2 < houseimage.length) {
if (houseimage[_local2] != null){
mcgaia.removeChild(houseimage[_local2]);
houseimage[_local2] = null;
};
_local2++;
};
trace("6");
_local2 = 0;
while (_local2 < wallimage.length) {
if (wallimage[_local2] != null){
mcgaia.removeChild(wallimage[_local2]);
wallimage[_local2] = null;
};
_local2++;
};
trace("7");
if (doorimage[0] != null){
mcgaia.removeChild(doorimage[0]);
doorimage[0] = null;
};
trace("8");
_local2 = 0;
while (_local2 < zombieimage.length) {
if (zombieimage[_local2] != null){
zombieimage[_local2].removeEventListener(Event.ENTER_FRAME, zombieexpinstantframer);
zombieimage[_local2].removeEventListener(Event.ENTER_FRAME, zombiemovement);
mcgaia.removeChild(zombieimage[_local2]);
zombieimage[_local2] = null;
};
_local2++;
};
trace("9");
_local2 = 0;
while (_local2 < lootimage.length) {
if (lootimage[_local2] != null){
mcgaia.removeChild(lootimage[_local2]);
lootimage[_local2] = null;
};
_local2++;
};
trace("10");
stage.removeEventListener(Event.ENTER_FRAME, stockingtimereducer);
stage.removeEventListener(Event.ENTER_FRAME, nexttutorialtimer);
stage.removeEventListener(Event.ENTER_FRAME, zombiespawner);
trace("11");
_local2 = 0;
while (_local2 < effectimage.length) {
if (effectimage[_local2] != null){
effectimage[_local2].removeEventListener(Event.ENTER_FRAME, effectremover);
mcgaia.removeChild(effectimage[_local2]);
effectimage[_local2] = null;
};
_local2++;
};
cleanupareastocking();
trace("12");
stage.removeEventListener(Event.ENTER_FRAME, stagezoomerframe);
_local2 = 0;
while (_local2 < stockingimage.length) {
if (stockingimage[_local2] != null){
stockingimage[_local2].removeEventListener(Event.ENTER_FRAME, stockingboxreducer);
mcgaia.removeChild(stockingimage[_local2]);
stockingimage[_local2] = null;
};
_local2++;
};
trace("13");
mcgaia.mcchoppa.removeEventListener(Event.ENTER_FRAME, choppatime);
if (useitemimage[0] != null){
useitemimage[0].removeEventListener(Event.ENTER_FRAME, useitemfollowe);
removeChild(useitemimage[0]);
useitemimage[0] = null;
};
stage.removeEventListener(Event.ENTER_FRAME, clonebartime);
trace("14");
if (busimage[0] != null){
busimage[0].removeEventListener(Event.ENTER_FRAME, busride);
mcgaia.removeChild(busimage[0]);
busimage[0] = null;
};
trace("15");
_local2 = 0;
while (_local2 < splatterimage.length) {
if (splatterimage[_local2] != null){
splatterimage[_local2].removeEventListener(Event.ENTER_FRAME, splatterremover);
mcgaia.removeChild(splatterimage[_local2]);
splatterimage[_local2] = null;
};
_local2++;
};
trace("16");
_local2 = 0;
while (_local2 < organimage.length) {
if (organimage[_local2] != null){
organimage[_local2].removeEventListener(MouseEvent.CLICK, droplootclick);
mcgaia.removeChild(organimage[_local2]);
organimage[_local2] = null;
};
_local2++;
};
trace("17");
stage.removeEventListener(Event.ENTER_FRAME, waitmm);
stage.removeEventListener(Event.ENTER_FRAME, preloader);
soundchannelingame.removeEventListener(Event.SOUND_COMPLETE, soundBGMAbisAwal);
stage.removeEventListener(Event.ENTER_FRAME, movemapmanual);
trace("18");
stage.removeEventListener(KeyboardEvent.KEY_UP, anykeyup);
stage.removeEventListener(Event.ENTER_FRAME, effectremover2);
stage.removeEventListener(Event.ENTER_FRAME, miniquestsound);
stage.removeEventListener(Event.ENTER_FRAME, scrollmovementframer);
trace("19");
_local2 = 0;
while (_local2 < notifimage.length) {
if (notifimage[_local2] != null){
notifimage[_local2].removeEventListener(Event.ENTER_FRAME, notifscroller);
removeChild(notifimage[_local2]);
notifimage[_local2] = null;
};
_local2++;
};
gotoAndStop("main menu");
}
public function optionclose(_arg1:MouseEvent){
pausegame = false;
mcoption.gotoAndStop(1);
}
public function qualitychoose(_arg1:MouseEvent){
var _local2:* = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
var _local3:* = [undefined, "HIGH", "MEDIUM", "LOW"];
stage.quality = _local3[_local2];
loadqualitybutton();
}
public function stagezoomcancel(_arg1:MouseEvent){
stage.removeEventListener(Event.ENTER_FRAME, stagezoomerframe);
}
public function stagezoomin(_arg1:MouseEvent){
soundklik2.play(0, 1, new SoundTransform(volumesfx));
zoombool = true;
zoommanual();
}
public function stagezoomout(_arg1:MouseEvent){
soundklik2.play(0, 1, new SoundTransform(volumesfx));
zoombool = false;
zoommanual();
}
public function stagezoomerframe(_arg1:Event){
zoommanual();
}
public function zoommanual(){
if (zoombool == true){
if (zoomvalue < maxzoomvalue){
trace("ZOOM IN");
zoomvalue++;
mcgaia.width = (mcgaia.width + ((mcgaia.width / mcgaia.height) * zoomingvalue));
mcgaia.height = (mcgaia.height + zoomingvalue);
};
} else {
if (zoomvalue > 0){
trace("ZOOM OUT");
zoomvalue--;
mcgaia.width = (mcgaia.width - ((mcgaia.width / mcgaia.height) * zoomingvalue));
mcgaia.height = (mcgaia.height - zoomingvalue);
};
};
Mouse.show();
mcmouse.gotoAndStop(1);
editdecortemp = [];
toolcommandadaemployee = false;
toolcommand = "";
}
public function cekcontinue(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
if (continuekah == true){
_local1 = [];
_local4 = 0;
while (_local4 < map.gridWidth) {
_local5 = 0;
while (_local5 < map.gridHeight) {
if (((((!((map.getCell(_local4, _local5).cellType == map.CELL_FILLED))) && ((((_local4 < firsttile[0])) || ((_local4 > (firsttile[0] + widthemart))))))) && ((((_local5 < firsttile[0])) || ((_local5 > (firsttile[0] + widthemart))))))){
_local1[_local1.length] = [_local4, _local5];
};
_local5++;
};
_local4++;
};
trace(("tampungendek : " + _local1));
_local2 = randRange(acakmin[int(so.data.star)], acakmax[int(so.data.star)]);
_local3 = 0;
while (_local3 <= _local2) {
_local6 = randRange(0, 1);
_local6 = 1;
_local7 = [];
_local8 = 0;
while (_local8 < 1) {
_local12 = 0;
while (_local12 < zombielinkage.length) {
if (zombieunlocked[_local12] <= so.data.levele){
if (zombiejob[_local12] != "inmate"){
if (zombiereq[_local12] != 0){
_local4 = 0;
while (_local4 < so.data.widthemart) {
_local5 = 0;
while (_local5 < so.data.heightemart) {
if (((!((so.data.boothtipe[_local4][_local5] == ""))) && (!((so.data.boothtipe[_local4][_local5] == undefined))))){
if ((((so.data.boothtipe[_local4][_local5] == zombiereq[_local12][0])) && ((so.data.boothnomor[_local4][_local5] == zombiereq[_local12][1])))){
_local7[_local7.length] = _local12;
};
};
_local5++;
};
_local4++;
};
} else {
_local7[_local7.length] = _local12;
};
};
};
_local12++;
};
_local8++;
};
_local9 = randRange(0, (_local7.length - 1));
_local9 = _local7[_local9];
so.data.zombieunlocked[_local9] = true;
cekboothdecortotal();
zombieimage[zombieimage.length] = new (zombielinkage[_local9]);
mcgaia.addChildAt(zombieimage[(zombieimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
zombieimage[(zombieimage.length - 1)].zombieno = _local9;
_local10 = randRange(0, (randzombieposition.length - 1));
zombieimage[(zombieimage.length - 1)].onsidequest = false;
zombieimage[(zombieimage.length - 1)].sidequest = false;
zombieimage[(zombieimage.length - 1)].sidequesttipe = "";
zombieimage[(zombieimage.length - 1)].statdirection = "right";
zombieimage[(zombieimage.length - 1)].stathead = "front";
zombieimage[(zombieimage.length - 1)].speedx = movexstandart;
zombieimage[(zombieimage.length - 1)].speedy = moveystandart;
zombieimage[(zombieimage.length - 1)].tilefirst = firsttile;
zombieimage[(zombieimage.length - 1)].sizemart = widthemart;
zombieimage[(zombieimage.length - 1)].insidemarket = false;
zombieimage[(zombieimage.length - 1)].zombie = true;
zombieimage[(zombieimage.length - 1)].phase = 1;
zombieimage[(zombieimage.length - 1)].miliktilex = randzombieposition[_local10][0];
zombieimage[(zombieimage.length - 1)].miliktiley = randzombieposition[_local10][1];
zombieimage[(zombieimage.length - 1)].special = false;
zombieimage[(zombieimage.length - 1)].asalespawnx = randzombieposition[_local10][0];
if (zombiename[_local9] == ""){
zombieimage[(zombieimage.length - 1)].namee = randname[randRange(0, (randname.length - 1))];
} else {
zombieimage[(zombieimage.length - 1)].namee = zombiename[_local9];
zombieimage[(zombieimage.length - 1)].special = true;
};
zombieimage[(zombieimage.length - 1)].targetx = randzombitarget[_local10][0];
zombieimage[(zombieimage.length - 1)].targety = randzombitarget[_local10][1];
zombieimage[(zombieimage.length - 1)].x = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].x;
zombieimage[(zombieimage.length - 1)].y = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].y;
zombieimage[(zombieimage.length - 1)].boothtipetemp = [];
zombieimage[(zombieimage.length - 1)].boothnomortemp = [];
zombieimage[(zombieimage.length - 1)].boothtipe = [];
zombieimage[(zombieimage.length - 1)].boothnomor = [];
cariboothuntukzombieini(zombieimage[(zombieimage.length - 1)]);
zombieimage[(zombieimage.length - 1)].attackmode = false;
zombieimage[(zombieimage.length - 1)].msspeed = zombiespeed[_local9];
zombieimage[(zombieimage.length - 1)].health = zombiehealth[_local9];
zombieimage[(zombieimage.length - 1)].attack = zombieattack[_local9];
zombieimage[(zombieimage.length - 1)].attackspeed = itungaszombie(zombiespeed[_local9]);
zombieimage[(zombieimage.length - 1)].attackspeedtemp = zombieimage[(zombieimage.length - 1)].attackspeed;
zombieimage[(zombieimage.length - 1)].patience = 100;
zombieimage[(zombieimage.length - 1)].patiencereducer = ((zombieimage[(zombieimage.length - 1)].patience / zombieimage[(zombieimage.length - 1)].boothtipe.length) - 1);
zombieimage[(zombieimage.length - 1)].job = zombiejob[_local9];
zombieimage[(zombieimage.length - 1)].findcashieryes = false;
zombieimage[(zombieimage.length - 1)].findcashier = false;
zombieimage[(zombieimage.length - 1)].confusingwalk = false;
zombieimage[(zombieimage.length - 1)].confusingidle = false;
zombieimage[(zombieimage.length - 1)].confusingtime = 50;
zombieimage[(zombieimage.length - 1)].confusingtimetemp = zombieimage[(zombieimage.length - 1)].confusingtime;
zombieimage[(zombieimage.length - 1)].cashiertemp = [];
zombieimage[(zombieimage.length - 1)].consumingmoney = 0;
zombieimage[(zombieimage.length - 1)].hasilarrayjalan = [];
zombieimage[(zombieimage.length - 1)].cooldownbuy = cooldownbuy;
zombieimage[(zombieimage.length - 1)].boothtarget = 0;
zombieimage[(zombieimage.length - 1)].indexke = (zombieimage.length - 1);
zombieimage[(zombieimage.length - 1)].onmove = true;
zombieimage[(zombieimage.length - 1)].masukmart = false;
zombieimage[(zombieimage.length - 1)].onmelubangi = false;
if (_local6 == 0){
zombieimage[(zombieimage.length - 1)].masukmart = true;
_local13 = [];
_local4 = 0;
while (_local4 < so.data.widthemart) {
_local5 = 0;
while (_local5 < so.data.heightemart) {
if ((((((((so.data.boothtipe[_local4][_local5] == "")) || ((so.data.boothtipe[_local4][_local5] == undefined)))) && (!((map.getCell((firsttile[0] + _local4), (firsttile[1] + _local5)).cellType == map.CELL_FILLED))))) && ((((so.data.boothreferto[_local4][_local5] == undefined)) || ((so.data.boothreferto[_local4][_local5] == "")))))){
_local13[_local13.length] = [_local4, _local5];
};
_local5++;
};
_local4++;
};
_local13 = [];
_local13[0] = [0, 0];
_local14 = randRange(0, (_local13.length - 1));
trace(("hasil taruh underground : " + _local13.length));
trace(("TARUH ZOMBIE DI : " + _local13[_local14]));
if (tipeview != ""){
zombieimage[(zombieimage.length - 1)].alpha = 0.3;
};
zombieimage[(zombieimage.length - 1)].insidemarket = true;
zombieimage[(zombieimage.length - 1)].masukmart = true;
zombieimage[(zombieimage.length - 1)].miliktilex = int((int(_local13[_local14][0]) + int(firsttile[0])));
zombieimage[(zombieimage.length - 1)].miliktiley = int((int(_local13[_local14][1]) + int(firsttile[1])));
zombieimage[(zombieimage.length - 1)].x = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].x;
zombieimage[(zombieimage.length - 1)].y = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].y;
zombieimage[(zombieimage.length - 1)].phase = 3;
} else {
_local15 = randRange(0, (_local1.length - 1));
zombieimage[(zombieimage.length - 1)].miliktilex = _local1[_local15][0];
zombieimage[(zombieimage.length - 1)].miliktiley = _local1[_local15][1];
zombieimage[(zombieimage.length - 1)].x = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].x;
zombieimage[(zombieimage.length - 1)].y = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].y;
trace(("TARUH CONTINUE DI : " + _local1[_local15]));
};
_local11 = itungstar();
if (_local11 == true){
zombieimage[(zombieimage.length - 1)].masukmart = true;
};
caritargetarrayklik(zombieimage[(zombieimage.length - 1)]);
zombieimage[(zombieimage.length - 1)].addEventListener(MouseEvent.CLICK, zombiepopup);
_local3++;
};
};
}
public function zombiespawner(_arg1:Event){
var _local2:*;
var _local3:*;
if ((((pausegame == false)) && ((so.data.tutorialcomplete == true)))){
if (zombiespawnertime <= 0){
_local2 = [200, 180, 160, 140, 120, 100];
_local3 = [250, 245, 240, 225, 210, 190];
zombiespawnertime = randRange(_local2[int(so.data.star)], _local3[int(so.data.star)]);
bwatzombie();
} else {
zombiespawnertime--;
};
};
}
public function itungstar():Boolean{
var _local1:* = [5, 6, 7, 8, 9, 10];
var _local2:* = randRange(0, 10);
if (_local2 <= _local1[int(so.data.star)]){
_local2 = true;
} else {
_local2 = false;
};
return (_local2);
}
public function bwatzombie(){
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local1:* = 1;
var _local2:* = [];
var _local3:* = false;
if (cdformaling <= 0){
if (so.data.levele >= 5){
_local2 = [15, 27];
} else {
if (so.data.levele >= levelminformaling){
_local2 = [15];
} else {
_local3 = true;
};
};
} else {
_local3 = true;
};
if (_local3 == true){
_local9 = 0;
while (_local9 < _local1) {
_local10 = 0;
while (_local10 < zombielinkage.length) {
if (zombieunlocked[_local10] <= so.data.levele){
if (zombiejob[_local10] != "inmate"){
if (zombiereq[_local10] != 0){
_local11 = 0;
while (_local11 < so.data.widthemart) {
_local12 = 0;
while (_local12 < so.data.heightemart) {
if (((!((so.data.boothtipe[_local11][_local12] == ""))) && (!((so.data.boothtipe[_local11][_local12] == undefined))))){
if ((((so.data.boothtipe[_local11][_local12] == zombiereq[_local10][0])) && ((so.data.boothnomor[_local11][_local12] == zombiereq[_local10][1])))){
_local2[_local2.length] = _local10;
};
};
_local12++;
};
_local11++;
};
} else {
_local2[_local2.length] = _local10;
};
};
};
_local10++;
};
_local9++;
};
};
var _local4:* = randRange(0, (_local2.length - 1));
_local4 = _local2[_local4];
so.data.zombieunlocked[_local4] = true;
cekboothdecortotal();
zombieimage[zombieimage.length] = new (zombielinkage[_local4]);
mcgaia.addChildAt(zombieimage[(zombieimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
zombieimage[(zombieimage.length - 1)].zombieno = _local4;
var _local5:* = randRange(0, (randzombieposition.length - 1));
zombieimage[(zombieimage.length - 1)].onsidequest = false;
zombieimage[(zombieimage.length - 1)].sidequest = false;
zombieimage[(zombieimage.length - 1)].sidequesttipe = "";
if (sidequestbool == true){
if (sidequestzombie == ""){
if (sidequesttitle == "booth direction"){
_local5 = 1;
} else {
if (sidequesttitle == "brainy"){
trace("ISI BRAINY");
_local5 = randRange(1, 3);
} else {
if (sidequesttitle == "landmark"){
trace("ISI LANDMARK");
_local5 = randRange(1, 3);
};
};
};
sidequestzombie = zombieimage[(zombieimage.length - 1)];
zombieimage[(zombieimage.length - 1)].sidequest = true;
zombieimage[(zombieimage.length - 1)].sidequesttipe = sidequesttitle;
};
};
zombieimage[(zombieimage.length - 1)].statdirection = "right";
zombieimage[(zombieimage.length - 1)].stathead = "front";
zombieimage[(zombieimage.length - 1)].speedx = movexstandart;
zombieimage[(zombieimage.length - 1)].speedy = moveystandart;
zombieimage[(zombieimage.length - 1)].tilefirst = firsttile;
zombieimage[(zombieimage.length - 1)].sizemart = widthemart;
zombieimage[(zombieimage.length - 1)].insidemarket = false;
zombieimage[(zombieimage.length - 1)].zombie = true;
zombieimage[(zombieimage.length - 1)].phase = 1;
zombieimage[(zombieimage.length - 1)].miliktilex = randzombieposition[_local5][0];
zombieimage[(zombieimage.length - 1)].miliktiley = randzombieposition[_local5][1];
zombieimage[(zombieimage.length - 1)].special = false;
zombieimage[(zombieimage.length - 1)].asalespawnx = randzombieposition[_local5][0];
if (zombiename[_local4] == ""){
zombieimage[(zombieimage.length - 1)].namee = randname[randRange(0, (randname.length - 1))];
} else {
zombieimage[(zombieimage.length - 1)].namee = zombiename[_local4];
zombieimage[(zombieimage.length - 1)].special = true;
};
zombieimage[(zombieimage.length - 1)].targetx = randzombitarget[_local5][0];
zombieimage[(zombieimage.length - 1)].targety = randzombitarget[_local5][1];
var _local6:* = ((movexstandart * 20) * -1);
var _local7:* = ((moveystandart * 20) * -1);
if ((((_local5 == 0)) || ((_local5 == 2)))){
_local6 = ((movexstandart * 20) * -1);
_local7 = (moveystandart * 20);
} else {
_local6 = (movexstandart * 20);
_local7 = (moveystandart * 20);
};
zombieimage[(zombieimage.length - 1)].x = (tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].x + _local6);
zombieimage[(zombieimage.length - 1)].y = (tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].y + _local7);
zombieimage[(zombieimage.length - 1)].boothtipetemp = [];
zombieimage[(zombieimage.length - 1)].boothnomortemp = [];
zombieimage[(zombieimage.length - 1)].boothtipe = [];
zombieimage[(zombieimage.length - 1)].boothnomor = [];
cariboothuntukzombieini(zombieimage[(zombieimage.length - 1)]);
zombieimage[(zombieimage.length - 1)].attackmode = false;
zombieimage[(zombieimage.length - 1)].msspeed = zombiespeed[_local4];
zombieimage[(zombieimage.length - 1)].health = zombiehealth[_local4];
zombieimage[(zombieimage.length - 1)].attack = zombieattack[_local4];
zombieimage[(zombieimage.length - 1)].attackspeed = itungaszombie(zombiespeed[_local4]);
zombieimage[(zombieimage.length - 1)].attackspeedtemp = zombieimage[(zombieimage.length - 1)].attackspeed;
zombieimage[(zombieimage.length - 1)].patience = 100;
zombieimage[(zombieimage.length - 1)].patiencereducer = ((zombieimage[(zombieimage.length - 1)].patience / zombieimage[(zombieimage.length - 1)].boothtipe.length) - 1);
zombieimage[(zombieimage.length - 1)].job = zombiejob[_local4];
zombieimage[(zombieimage.length - 1)].findcashieryes = false;
zombieimage[(zombieimage.length - 1)].findcashier = false;
zombieimage[(zombieimage.length - 1)].confusingwalk = false;
zombieimage[(zombieimage.length - 1)].confusingidle = false;
zombieimage[(zombieimage.length - 1)].confusingtime = 50;
zombieimage[(zombieimage.length - 1)].confusingtimetemp = zombieimage[(zombieimage.length - 1)].confusingtime;
zombieimage[(zombieimage.length - 1)].cashiertemp = [];
zombieimage[(zombieimage.length - 1)].consumingmoney = 0;
zombieimage[(zombieimage.length - 1)].hasilarrayjalan = [];
zombieimage[(zombieimage.length - 1)].cooldownbuy = cooldownbuy;
zombieimage[(zombieimage.length - 1)].boothtarget = 0;
zombieimage[(zombieimage.length - 1)].indexke = (zombieimage.length - 1);
zombieimage[(zombieimage.length - 1)].onmove = true;
zombieimage[(zombieimage.length - 1)].masukmart = false;
zombieimage[(zombieimage.length - 1)].onmelubangi = false;
var _local8:* = itungstar();
if (_local8 == true){
zombieimage[(zombieimage.length - 1)].masukmart = true;
};
if (zombieimage[(zombieimage.length - 1)].job == "inmate"){
soundthief.play(0, 1, new SoundTransform(volumesfx));
cdformaling = cdformalingtemp;
adamaling = true;
zombieimage[(zombieimage.length - 1)].masukmart = true;
if (_local4 == 27){
_local13 = [];
_local11 = 0;
while (_local11 < so.data.widthemart) {
_local12 = 0;
while (_local12 < so.data.heightemart) {
if ((((((((so.data.boothtipe[_local11][_local12] == "")) || ((so.data.boothtipe[_local11][_local12] == undefined)))) && (!((map.getCell((firsttile[0] + _local11), (firsttile[1] + _local12)).cellType == map.CELL_FILLED))))) && ((((so.data.boothreferto[_local11][_local12] == undefined)) || ((so.data.boothreferto[_local11][_local12] == "")))))){
_local13[_local13.length] = [_local11, _local12];
};
_local12++;
};
_local11++;
};
_local13 = [];
_local13[0] = [0, 0];
_local14 = randRange(0, (_local13.length - 1));
trace(("hasil taruh underground : " + _local13.length));
trace(("TARUH ZOMBIE DI : " + _local13[_local14]));
if (tipeview != ""){
zombieimage[(zombieimage.length - 1)].alpha = 0.3;
};
zombieimage[(zombieimage.length - 1)].insidemarket = true;
zombieimage[(zombieimage.length - 1)].masukmart = true;
zombieimage[(zombieimage.length - 1)].onmelubangi = true;
zombieimage[(zombieimage.length - 1)].gotoAndPlay("melubangilantai");
zombieimage[(zombieimage.length - 1)].miliktilex = int((int(_local13[_local14][0]) + int(firsttile[0])));
zombieimage[(zombieimage.length - 1)].miliktiley = int((int(_local13[_local14][1]) + int(firsttile[1])));
zombieimage[(zombieimage.length - 1)].x = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].x;
zombieimage[(zombieimage.length - 1)].y = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].y;
zombieimage[(zombieimage.length - 1)].phase = 3;
};
};
caritargetarrayklik(zombieimage[(zombieimage.length - 1)]);
zombieimage[(zombieimage.length - 1)].addEventListener(MouseEvent.CLICK, zombiepopup);
}
public function itungaszombie(_arg1:Number){
var _local2:* = 15;
var _local3:* = ((20 - _arg1) * 5);
if (_local3 < _local2){
_local3 = _local2;
};
return (int(_local3));
}
public function zombiepopup(_arg1:MouseEvent){
if (_arg1.currentTarget.onsidequest == true){
if (_arg1.currentTarget.sidequesttipe == "booth direction"){
loadsidequestboothdirection(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.sidequesttipe == "landmark"){
loadsidequestlandmark(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.sidequesttipe == "brainy"){
createrandomloot(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.sidequesttipe == "thief"){
createsepyur("", 1, 1, 1, sidequestzombie);
createbucks(1, _arg1.currentTarget);
sidequestzombie.mcemoti.gotoAndPlay("happy");
cancelsidequestzombie();
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, zombiemovement);
_arg1.currentTarget.gotoAndPlay("idle1");
mcgaia.removeChild(zombieimage[_arg1.currentTarget.indexke]);
zombieimage[_arg1.currentTarget.indexke] = null;
};
};
};
};
} else {
cleanupzombiepopup();
mczombieexp.gotoAndPlay(2);
loadinfothiszombie(_arg1.currentTarget);
};
}
public function loadsidequestlandmark(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (sidequestcariini.length == 0){
_local2 = ["crashed site", "haunted location", "statue", "wrecked car"];
_local3 = randRange(0, (_local2.length - 1));
sidequestcariini = [];
sidequestcariini[0] = _local2[_local3];
mczombiesidequestexp.btncancel.addEventListener(MouseEvent.CLICK, cancelzombiesidequest);
trace(("yang dicari : " + sidequestcariini[0]));
mczombiesidequestexp.txt1.text = ((_arg1.namee + " is looking for ") + _local2[_local3]);
trace("4");
mczombiesidequestexp.mczombiesummary.gotoAndStop(int((int(_arg1.zombieno) + int(1))));
trace("1");
_local4 = 1;
while (_local4 <= 8) {
_local6 = mczombiesidequestexp.getChildByName(("mc" + _local4));
if (_local6 != null){
_local6.visible = false;
};
_local4++;
};
trace("3");
mczombiesidequestexp.gotoAndPlay(2);
_local5 = 0;
while (_local5 < houseimage.length) {
if (houseimage[_local5].tipe == _local2[_local3]){
houseimage[_local5].removeEventListener(MouseEvent.CLICK, clicklandmark);
houseimage[_local5].addEventListener(MouseEvent.CLICK, clicklandmark);
};
_local5++;
};
};
}
public function clicklandmark(_arg1:MouseEvent){
isinotif("A zombie thank you for your help and gave amount of $ in return");
cekmainquest("help zombie find landmark 10 times", 1);
cekmainquest("help zombi find landmark 3 time", 1);
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK, clicklandmark);
createsepyur("", 1, 1, 1, sidequestzombie);
createbucks(1, _arg1.currentTarget);
sidequestzombie.mcemoti.gotoAndPlay("happy");
cancelsidequestzombie();
}
public function createrandomloot(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (((!((_arg1 == ""))) && ((lootimage.length == 0)))){
_local2 = [undefined, "brain", "liver", "heart"];
_local2 = _local2[randRange(1, (_local2.length - 1))];
mczombiesidequestexp.btncancel.addEventListener(MouseEvent.CLICK, cancelzombiesidequest);
mczombiesidequestexp.txt1.text = ((_arg1.namee + " is looking for missing ") + _local2);
mczombiesidequestexp.mczombiesummary.gotoAndStop(int((int(_arg1.zombieno) + int(1))));
_local3 = 1;
while (_local3 <= 8) {
_local6 = mczombiesidequestexp.getChildByName(("mc" + _local3));
if (_local6 != null){
_local6.visible = false;
};
_local3++;
};
mczombiesidequestexp.gotoAndPlay(2);
do {
_local4 = randRange((firsttile[0] - 10), (firsttile[0] + 10));
_local5 = randRange((firsttile[0] - 10), (firsttile[0] + 10));
} while ((((((_local4 >= firsttile[0])) && ((_local4 <= (firsttile[0] + widthemart))))) && ((((_local5 >= firsttile[1])) && ((_local5 <= (firsttile[1] + widthemart)))))));
lootimage[lootimage.length] = new (ingameloots);
mcgaia.addChildAt(lootimage[(lootimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionfx));
lootimage[(lootimage.length - 1)].indexke = (lootimage.length - 1);
lootimage[(lootimage.length - 1)].sidequest = true;
lootimage[(lootimage.length - 1)].x = tileimage[_local4][_local5].x;
lootimage[(lootimage.length - 1)].y = tileimage[_local4][_local5].y;
lootimage[(lootimage.length - 1)].buttonMode = true;
lootimage[(lootimage.length - 1)].addEventListener(MouseEvent.CLICK, lootimageclick);
lootimage[(lootimage.length - 1)].gotoAndStop(_local2);
};
}
public function lootimageclick(_arg1:Event){
var _local2:*;
if (_arg1.currentTarget.sidequest == true){
_local2 = _arg1.currentTarget.indexke;
mcgaia.removeChild(lootimage[_local2]);
lootimage[_local2] = null;
createsepyur("", 1, 1, 1, mcmouse);
createbucks(1, _arg1.currentTarget);
if (sidequesttitle == "brainy"){
sidequestzombie.mcemoti.gotoAndPlay("happy");
cancelsidequestzombie();
};
};
}
public function loadsidequestboothdirection(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (sidequestcariini.length == 0){
sidequestzombie = _arg1;
_local2 = carirandombooth();
if (_local2.length > 0){
sidequestcariini = [];
sidequestcariini[0] = [_local2[0][0], _local2[0][1]];
};
if (sidequestcariini.length == 0){
cancelsidequestzombie();
} else {
mczombiesidequestexp.btncancel.addEventListener(MouseEvent.CLICK, cancelzombiesidequest);
trace(("yang dicari : " + sidequestcariini[0]));
mczombiesidequestexp.txt1.text = ((_arg1.namee + " is looking for ") + boothname[sidequestcariini[0][0]][sidequestcariini[0][1]]);
trace("4");
mczombiesidequestexp.mczombiesummary.gotoAndStop(int((int(_arg1.zombieno) + int(1))));
trace("1");
_local3 = 1;
while (_local3 <= 8) {
_local5 = mczombiesidequestexp.getChildByName(("mc" + _local3));
if (_local5 != null){
_local5.visible = false;
};
_local3++;
};
trace("2");
_local4 = mczombiesidequestexp.getChildByName(("mc" + sidequestcariini[0][0]));
_local4.visible = true;
_local4.gotoAndStop((sidequestcariini[0][1] + 1));
trace("3");
mczombiesidequestexp.gotoAndPlay(2);
};
};
}
public function cancelzombiesidequest(_arg1:MouseEvent):void{
cancelsidequestzombie();
}
public function cancelsidequestzombie(){
var _local1:*;
stage.removeEventListener(Event.ENTER_FRAME, miniquestsound);
if (lootimage.length > 0){
_local1 = 0;
while (_local1 < lootimage.length) {
if (lootimage[_local1] != null){
mcgaia.removeChild(lootimage[_local1]);
lootimage[_local1] = null;
};
_local1++;
};
};
lootimage = [];
_local1 = 0;
while (_local1 < houseimage.length) {
houseimage[_local1].removeEventListener(MouseEvent.CLICK, clicklandmark);
_local1++;
};
trace("OK RESET SIDE QUEST");
sidequesttimer = sidequesttimertemp;
if (sidequestzombie != ""){
sidequestzombie.onsidequest = false;
sidequestzombie.sidequest = false;
sidequestzombie.mcemoti.gotoAndStop(1);
};
mczombiesidequestexp.gotoAndStop(1);
sidequesttimer = sidequesttimertemp;
sidequesttitle = "";
sidequestbool = false;
sidequestcariini = [];
sidequestzombie = "";
}
public function carirandombooth():Array{
var _local4:*;
var _local5:*;
var _local1:* = [];
var _local2:* = [];
var _local3:* = 0;
while (_local3 < so.data.widthemart) {
_local4 = 0;
while (_local4 < so.data.heightemart) {
if (((((!((so.data.boothtipe[_local3][_local4] == ""))) && (!((so.data.boothtipe[_local3][_local4] == undefined))))) && (!((so.data.boothtipe[_local3][_local4] == "emp"))))){
if ((((so.data.boothapa[_local3][_local4] == "booth")) && (!((so.data.boothtipe[_local3][_local4] == 6))))){
_local1[_local1.length] = [so.data.boothtipe[_local3][_local4], so.data.boothnomor[_local3][_local4]];
};
};
_local4++;
};
_local3++;
};
if (_local1.length > 0){
_local5 = randRange(0, (_local1.length - 1));
_local2[0] = [_local1[_local5][0], _local1[_local5][1]];
};
return (_local2);
}
public function zombiepopupclose(_arg1:MouseEvent){
soundclose.play(0, 1, new SoundTransform(volumesfx));
cleanupzombiepopup();
}
public function cleanupzombiepopup(){
mczombieexp.gotoAndStop(1);
if (zombieexpinstant.length > 0){
zombieexpinstant[0].removeEventListener(Event.ENTER_FRAME, zombieexpinstantframer);
removeChild(zombieexpinstant[0]);
zombieexpinstant[0] = null;
zombieexpinstant = [];
};
}
public function zombieexpinstantframer(_arg1:Event):void{
if (zombieimage[_arg1.currentTarget.ikutke] != null){
_arg1.currentTarget.gotoAndStop(zombieimage[_arg1.currentTarget.ikutke].currentFrame);
if (_arg1.currentTarget.statdirection != zombieimage[_arg1.currentTarget.ikutke].statdirection){
_arg1.currentTarget.statdirection = zombieimage[_arg1.currentTarget.ikutke].statdirection;
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
};
} else {
cleanupzombiepopup();
};
}
public function loadinfothiszombie(_arg1:Object){
var _local4:*;
var _local7:*;
var _local8:*;
trace(("ZOMBIE NO : " + _arg1.zombieno));
var _local2:* = [soundzombieclick1, soundzombieclick2, soundzombieclick3, soundzombieclick4];
var _local3:* = randRange(0, (_local2.length - 1));
_local2[_local3].play(0, 1, new SoundTransform(volumesfx));
mczombieexp.mczombiesummary.gotoAndStop(int((int(_arg1.zombieno) + int(1))));
mczombieexp.btnclose.removeEventListener(MouseEvent.CLICK, zombiepopupclose);
mczombieexp.btnclose.addEventListener(MouseEvent.CLICK, zombiepopupclose);
mczombieexp.mc1.txtname.text = _arg1.namee.toUpperCase();
mczombieexp.mc1.txthealth.text = _arg1.health;
mczombieexp.mc1.txtspeed.text = ((_arg1.msspeed / 2) * 10);
mczombieexp.mc1.txtattack.text = _arg1.attack;
mczombieexp.mc1.txtjob.text = ("JOB : " + _arg1.job.toUpperCase());
trace("2");
_local4 = 1;
while (_local4 <= 8) {
_local7 = mczombieexp.mc1.getChildByName(("mc" + _local4));
if (_local7 != null){
_local7.visible = false;
};
_local4++;
};
var _local5:* = 1;
trace("3");
var _local6:* = 0;
while (_local6 < _arg1.boothtipetemp.length) {
_local8 = mczombieexp.mc1.getChildByName(("mc" + _local5));
_local8.visible = true;
_local4 = 1;
while (_local4 <= 7) {
_local7 = _local8.getChildByName(("mc" + _local4));
if (_local7 != null){
_local7.visible = false;
};
_local4++;
};
_local7 = _local8.getChildByName(("mc" + _arg1.boothtipetemp[_local6]));
_local7.visible = true;
_local8.buttonMode = true;
_local8.tipe = _arg1.boothtipetemp[_local6];
_local8.nomor = _arg1.boothnomortemp[_local6];
_local8.txt1.visible = false;
_local8.txt1.text = boothname[_arg1.boothtipetemp[_local6]][_arg1.boothnomortemp[_local6]];
_local8.removeEventListener(MouseEvent.MOUSE_OVER, overthisitem);
_local8.addEventListener(MouseEvent.MOUSE_OVER, overthisitem);
_local8.removeEventListener(MouseEvent.MOUSE_OUT, outthisitem);
_local8.addEventListener(MouseEvent.MOUSE_OUT, outthisitem);
_local7.gotoAndStop((_arg1.boothnomortemp[_local6] + 1));
_local5++;
_local6++;
};
}
public function overthisitem(_arg1:MouseEvent){
_arg1.currentTarget.txt1.visible = true;
_arg1.currentTarget.gotoAndStop(2);
}
public function outthisitem(_arg1:MouseEvent){
_arg1.currentTarget.txt1.visible = false;
_arg1.currentTarget.gotoAndStop(1);
}
public function cariboothuntukzombieini(_arg1:Object){
var _local5:*;
var _local6:*;
var _local7:*;
var _local2:* = [];
var _local3:* = [];
var _local4:* = 1;
while (_local4 < boothunlocked.length) {
if (_local4 != 8){
_local5 = 0;
while (_local5 <= boothunlocked[_local4].length) {
if (boothunlocked[_local4][_local5] != undefined){
if (boothunlocked[_local4][_local5] != 0){
if (boothunlocked[_local4][_local5] <= so.data.levele){
_local2[_local2.length] = _local4;
_local3[_local3.length] = _local5;
};
};
};
_local5++;
};
};
_local4++;
};
if (_local2.length > 0){
_local6 = randRange(1, (_local2.length - 1));
if (_local6 > 7){
_local6 = 7;
};
do {
_local7 = randRange(0, (_local2.length - 1));
_arg1.boothtipe[_arg1.boothtipe.length] = _local2[_local7];
_arg1.boothnomor[_arg1.boothnomor.length] = _local3[_local7];
_arg1.boothtipetemp[_arg1.boothtipetemp.length] = _local2[_local7];
_arg1.boothnomortemp[_arg1.boothnomortemp.length] = _local3[_local7];
_local2.splice(_local7, 1);
_local3.splice(_local7, 1);
--_local6;
} while (_local6 >= 0);
};
}
public function cekstockempty(){
var _local2:*;
var _local1:* = 0;
while (_local1 < so.data.widthemart) {
_local2 = 0;
while (_local2 < so.data.heightemart) {
if (((((!((so.data.boothtipe[_local1][_local2] == ""))) && (!((so.data.boothtipe[_local1][_local2] == undefined))))) && (!((so.data.boothtipe[_local1][_local2] == "emp"))))){
trace("a");
if (((!((decorimage[_local1][_local2] == undefined))) && (!((decorimage[_local1][_local2] == null))))){
trace("b");
if ((((so.data.boothapa[_local1][_local2] == "booth")) && (!((so.data.boothtipe[_local1][_local2] == 6))))){
trace("c");
if (so.data.boothstock[_local1][_local2] <= 0){
trace("d");
var _local3 = boothinikosong[_local1];
var _local4 = _local2;
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
if (boothinikosong[_local1][_local2] > thresholdkosong){
trace("e");
boothinikosong[_local1][_local2] = 0;
so.data.notiftext[so.data.notiftext.length] = [0, "rack empty!", boothname[so.data.boothtipe[_local1][_local2]][so.data.boothnomor[_local1][_local2]], 2];
createnotif((so.data.notiftext.length - 1));
};
};
};
};
};
_local2++;
};
_local1++;
};
}
public function stockingtimereducer(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (pausegame == false){
cekstockempty();
if (adaquestcomplete == true){
mcui2.mc1.mcquestcomplete.visible = true;
if (mcui2.mc1.mcquestcomplete.currentFrame == 1){
mcui2.mc1.mcquestcomplete.gotoAndPlay(2);
};
} else {
mcui2.mc1.mcquestcomplete.visible = false;
};
stage.focus = stage;
sidequesttimer--;
if (sidequesttimer < 0){
sidequesttimer = sidequesttimertemp;
makesidequest();
};
cekwaktuduh--;
if (cekwaktuduh < 0){
cekwaktuduh = 25;
cekwaktuindex++;
};
timepermin--;
so.data.timeminute = int((((timepermintemp - timepermin) / timepermintemp) * 60));
if (timepermin < 0){
timepermin = timepermintemp;
so.data.timeminute++;
if (so.data.timeminute > 60){
so.data.timeminute = 0;
so.data.timehour++;
if (so.data.timehour > 24){
cdformaling--;
so.data.timehour = 0;
buscomein--;
if (buscomein <= 0){
buscomein = buscomeintemp;
bwatbus();
};
};
_local2 = false;
if ((((so.data.timehour >= 0)) && ((so.data.timehour <= 18)))){
trace(("YA JAM PAGI " + morning));
if (morning == false){
maketips();
changemorning(true);
so.data.morning = true;
morning = true;
_local2 = true;
};
} else {
if ((((so.data.timehour >= 18)) && ((so.data.timehour <= 24)))){
trace(("YA JAM MALEM " + morning));
if (morning == true){
trace("okie rubah malem");
maketips();
changemorning(false);
so.data.morning = false;
morning = false;
_local2 = true;
};
};
};
if ((((_local2 == true)) && ((so.data.morning == true)))){
mcui1.mc1.mcdaysymbol.gotoAndPlay("nighttoday");
} else {
if ((((_local2 == true)) && ((so.data.morning == false)))){
mcui1.mc1.mcdaysymbol.gotoAndPlay("daytonight");
};
};
};
};
updatejam();
shopitemreducertime = (shopitemreducertime - 1);
if (shopitemreducertime < 0){
_local3 = 0;
while (_local3 < so.data.researchtime.length) {
if ((((((so.data.researchtime[_local3][0] > 0)) || ((so.data.researchtime[_local3][1] > 0)))) || ((so.data.researchtime[_local3][2] > 0)))){
var _local9 = so.data.researchtime[_local3];
var _local10 = 2;
var _local11 = (_local9[_local10] - 1);
_local9[_local10] = _local11;
if (so.data.researchtime[_local3][2] <= 0){
if (so.data.researchtime[_local3][1] > 0){
_local9 = so.data.researchtime[_local3];
_local10 = 1;
_local11 = (_local9[_local10] - 1);
_local9[_local10] = _local11;
so.data.researchtime[_local3][2] = 59;
} else {
if (so.data.researchtime[_local3][0] > 0){
_local9 = so.data.researchtime[_local3];
_local10 = 0;
_local11 = (_local9[_local10] - 1);
_local9[_local10] = _local11;
so.data.researchtime[_local3][1] = 59;
};
};
};
if ((((indexshop == 5)) && ((indexbuild == 1)))){
_local4 = "";
_local5 = 0;
while (_local5 < shopitemimage.length) {
if (shopitemimage[_local5].nomor == _local3){
_local4 = shopitemimage[_local5];
break;
};
_local5++;
};
if (_local4 != ""){
_local6 = ((0 + (researchtime[_local4.nomor] * 60)) + (0 * 360));
_local7 = ((0 + (so.data.researchtime[_local3][1] * 60)) + so.data.researchtime[_local3][2]);
_local4.mctime.mc1.width = ((1 - (_local7 / _local6)) * 52);
textthistime(_local4.mctime.txt1, so.data.researchtime[_local3]);
if ((((((so.data.researchtime[_local3][0] <= 0)) && ((so.data.researchtime[_local3][1] <= 0)))) && ((so.data.researchtime[_local3][2] <= 0)))){
donethisresearch(_local3);
cleanupshopitemimage();
loaditemshop5();
};
};
} else {
if ((((((so.data.researchtime[_local3][0] <= 0)) && ((so.data.researchtime[_local3][1] <= 0)))) && ((so.data.researchtime[_local3][2] <= 0)))){
donethisresearch(_local3);
};
};
};
_local3++;
};
sortingall();
shopitemreducertime = shopitemreducertimetemp;
_local3 = 1;
while (_local3 < so.data.build1stocktime.length) {
_local8 = 0;
while (_local8 < so.data.build1stocktime[_local3].length) {
if (so.data.build1stocktime[_local3][_local8].length > 0){
if ((((((so.data.build1stocktime[_local3][_local8][0] > 0)) || ((so.data.build1stocktime[_local3][_local8][1] > 0)))) || ((so.data.build1stocktime[_local3][_local8][2] > 0)))){
_local9 = so.data.build1stocktime[_local3][_local8];
_local10 = 2;
_local11 = (_local9[_local10] - 1);
_local9[_local10] = _local11;
if (so.data.build1stocktime[_local3][_local8][2] <= 0){
if (so.data.build1stocktime[_local3][_local8][1] > 0){
_local9 = so.data.build1stocktime[_local3][_local8];
_local10 = 1;
_local11 = (_local9[_local10] - 1);
_local9[_local10] = _local11;
so.data.build1stocktime[_local3][_local8][2] = 59;
} else {
if (so.data.build1stocktime[_local3][_local8][0] > 0){
_local9 = so.data.build1stocktime[_local3][_local8];
_local10 = 0;
_local11 = (_local9[_local10] - 1);
_local9[_local10] = _local11;
so.data.build1stocktime[_local3][_local8][1] = 59;
};
};
};
};
if (indexshop == 6){
_local4 = "";
_local5 = 0;
while (_local5 < shopitemimage.length) {
if ((((shopitemimage[_local5].tipe == _local3)) && ((shopitemimage[_local5].nomor == _local8)))){
_local4 = shopitemimage[_local5];
break;
};
_local5++;
};
if (_local4 != ""){
_local6 = ((so.data.build1stocktimetemp[_local3][_local8][2] + (so.data.build1stocktimetemp[_local3][_local8][1] * 60)) + (so.data.build1stocktimetemp[_local3][_local8][0] * 360));
_local7 = ((so.data.build1stocktime[_local3][_local8][2] + (so.data.build1stocktime[_local3][_local8][1] * 60)) + (so.data.build1stocktime[_local3][_local8][0] * 360));
_local4.mcstocktime.mcmask.width = ((1 - (_local7 / _local6)) * 55);
textthistime(_local4.mcstocktime.txt2, so.data.build1stocktime[_local3][_local8]);
if ((((((so.data.build1stocktime[_local3][_local8][0] <= 0)) && ((so.data.build1stocktime[_local3][_local8][1] <= 0)))) && ((so.data.build1stocktime[_local3][_local8][2] <= 0)))){
if (so.data.tutorialcomplete == true){
createdonethisstockingtime(_local4);
};
};
};
} else {
if ((((((so.data.build1stocktime[_local3][_local8][0] <= 0)) && ((so.data.build1stocktime[_local3][_local8][1] <= 0)))) && ((so.data.build1stocktime[_local3][_local8][2] <= 0)))){
if (so.data.tutorialcomplete == true){
so.data.build1stocktime[_local3][_local8] = [];
so.data.build1stocktimetemp[_local3][_local8] = [];
so.data.notiftext[so.data.notiftext.length] = [0, (boothname[_local3][_local8] + " order:"), (so.data.build1stocktocum[_local3][_local8] + " new units arrived"), 0];
createnotif((so.data.notiftext.length - 1));
so.data.build1stockwarehouse[_local3][_local8] = (so.data.build1stockwarehouse[_local3][_local8] + so.data.build1stocktocum[_local3][_local8]);
so.data.build1stocktocum[_local3][_local8] = 0;
};
};
};
};
_local8++;
};
_local3++;
};
};
};
}
public function maketips(){
mcprotips.gotoAndPlay(2);
mcprotips.mc1.gotoAndStop(randRange(1, mcprotips.mc1.totalFrames));
}
public function bwatbus(){
trace("BWAT BUS");
var _local1:* = [buskillaimage, buskillbimage, buskillcimage];
var _local2:* = [5, 2, 2];
var _local3:* = randRange(0, (_local1.length - 1));
busimage[0] = new (_local1[_local3]);
mcgaia.addChildAt(busimage[0], mcgaia.getChildIndex(mcgaia.mcpositionobject));
busimage[0].x = tileimage[(firsttile[0] - 5)][widthemap].x;
busimage[0].y = tileimage[(firsttile[0] - 5)][widthemap].y;
busimage[0].miliktilex = widthemap;
busimage[0].miliktiley = heightemap;
busimage[0].speedx = (movexstandart * 3);
busimage[0].speedy = (moveystandart * 3);
busimage[0].sizee = _local2[_local3];
busimage[0].addEventListener(Event.ENTER_FRAME, busride);
busimage[0].phase = 1;
busimage[0].honktol = 75;
busimage[0].honktoltemp = busimage[0].honktol;
trace(("LENGTH BUS : " + busimage.length));
}
public function busride(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:int;
var _local6:int;
if (pausegame == false){
_arg1.currentTarget.honktol--;
if (_arg1.currentTarget.honktol < 0){
_arg1.currentTarget.honktol = _arg1.currentTarget.honktoltemp;
soundhonktol.play(0, 1, new SoundTransform(volumesfx));
};
_local2 = 2;
_local3 = 3;
_local4 = 0;
while (_local4 < zombieimage.length) {
if (zombieimage[_local4] != null){
if (zombieimage[_local4].insidemarket == false){
if (_arg1.currentTarget.currentFrame == 1){
if ((((zombieimage[_local4].miliktilex == (_arg1.currentTarget.miliktilex + 1))) && ((((((zombieimage[_local4].miliktiley == (_arg1.currentTarget.miliktiley - 1))) || ((zombieimage[_local4].miliktiley == (_arg1.currentTarget.miliktiley - 2))))) || ((zombieimage[_local4].miliktiley == (_arg1.currentTarget.miliktiley - 3))))))){
isinotif("there's a hit & run accident");
createsplatterhere(zombieimage[_local4]);
zombieimage[_local4].removeEventListener(Event.ENTER_FRAME, zombiemovement);
mcgaia.removeChild(zombieimage[zombieimage[_local4].indexke]);
zombieimage[_local4] = null;
break;
};
} else {
if ((((((((zombieimage[_local4].miliktilex == (_arg1.currentTarget.miliktilex + 1))) || ((zombieimage[_local4].miliktilex == (_arg1.currentTarget.miliktilex + 2))))) || ((zombieimage[_local4].miliktilex == (_arg1.currentTarget.miliktilex + 3))))) && ((zombieimage[_local4].miliktiley == (_arg1.currentTarget.miliktiley + 1))))){
isinotif("there's a hit & run accident");
createsplatterhere(zombieimage[_local4]);
zombieimage[_local4].removeEventListener(Event.ENTER_FRAME, zombiemovement);
mcgaia.removeChild(zombieimage[zombieimage[_local4].indexke]);
zombieimage[_local4] = null;
break;
};
};
};
};
_local4++;
};
_local5 = 0;
while (_local5 <= map.gridWidth) {
_local6 = 0;
while (_local6 <= map.gridHeight) {
if (_arg1.currentTarget.mcfoot.hitTestObject(tileimage[_local5][_local6]) == true){
_arg1.currentTarget.miliktilex = _local5;
_arg1.currentTarget.miliktiley = _local6;
break;
};
_local6++;
};
_local5++;
};
if (_arg1.currentTarget.phase == 1){
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speedx);
_arg1.currentTarget.y = (_arg1.currentTarget.y - _arg1.currentTarget.speedy);
if (_arg1.currentTarget.miliktiley == (firsttile[0] - _arg1.currentTarget.sizee)){
_arg1.currentTarget.x = tileimage[(firsttile[0] - 5)][(firsttile[0] - 6)].x;
_arg1.currentTarget.y = tileimage[(firsttile[0] - 5)][(firsttile[0] - 3)].y;
_arg1.currentTarget.phase = 2;
_arg1.currentTarget.gotoAndStop(2);
};
} else {
_arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.speedx);
_arg1.currentTarget.y = (_arg1.currentTarget.y + _arg1.currentTarget.speedy);
if (_arg1.currentTarget.miliktilex == widthemap){
trace(("done" + busimage.length));
busimage[0].removeEventListener(Event.ENTER_FRAME, busride);
trace("1");
mcgaia.removeChild(busimage[0]);
trace("2");
busimage[0] = null;
busimage = [];
};
};
};
}
public function createsplatterhere(_arg1:Object){
splatterimage[splatterimage.length] = new (splatterblood);
mcgaia.addChildAt(splatterimage[(splatterimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositiontile));
splatterimage[(splatterimage.length - 1)].x = _arg1.x;
splatterimage[(splatterimage.length - 1)].y = _arg1.y;
splatterimage[(splatterimage.length - 1)].addEventListener(Event.ENTER_FRAME, splatterremover);
splatterimage[(splatterimage.length - 1)].indexke = (splatterimage.length - 1);
var _local2:* = randRange(1, 3);
var _local3:* = 0;
while (_local3 <= _local2) {
organimage[organimage.length] = new (droplootimage);
mcgaia.addChildAt(organimage[(organimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionfx));
organimage[(organimage.length - 1)].indexke = (organimage.length - 1);
organimage[(organimage.length - 1)].x = (_arg1.x + randRange(-30, 30));
organimage[(organimage.length - 1)].y = (_arg1.y + randRange(-30, 30));
organimage[(organimage.length - 1)].addEventListener(MouseEvent.CLICK, droplootclick);
organimage[(organimage.length - 1)].gotoAndStop(randRange(1, organimage[(organimage.length - 1)].totalFrames));
_local3++;
};
}
public function droplootclick(_arg1:MouseEvent){
cekmainquest("Collect 5 hit & run victim's organ", 1);
var _local2:* = _arg1.currentTarget.indexke;
mcgaia.removeChild(organimage[_local2]);
organimage[_local2] = null;
createsepyur("", 1, 1, 1, mcmouse);
}
public function splatterremover(_arg1:Event){
var _local2:*;
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_local2 = _arg1.currentTarget.indexke;
splatterimage[_local2].removeEventListener(Event.ENTER_FRAME, splatterremover);
mcgaia.removeChild(splatterimage[_local2]);
splatterimage[_local2] = null;
};
}
public function changemorning(_arg1:Boolean){
var _local3:*;
var _local5:*;
var _local6:*;
var _local7:int;
var _local2:* = 1;
if (_arg1 == false){
_local2 = 2;
};
_local3 = 1;
while (_local3 <= 4) {
_local5 = mcgaia.getChildByName(("mcadditionalgrass" + _local3));
_local5.gotoAndStop(_local2);
_local3++;
};
if (_local2 == 1){
_local6 = 0;
_local3 = 0;
while (_local3 < so.data.employeelist.length) {
if (so.data.employeelist[_local3] != undefined){
_local6 = int((int(_local6) + int(so.data.employeeliststatus[_local3][5])));
};
_local3++;
};
so.data.money = (so.data.money - _local6);
updatetextonly();
so.data.notiftext[so.data.notiftext.length] = [0, "maintenance daily cost : ", (_local6 + " $"), 0];
createnotif((so.data.notiftext.length - 1));
};
_local3 = 0;
while (_local3 < houseimage.length) {
if ((((((houseimage[_local3].tipe == "tree")) || ((houseimage[_local3].tipe == "lamp")))) || ((houseimage[_local3].tipe == "house")))){
if (houseimage[_local3].tipe == "lamp"){
if (houseimage[_local3].currentFrame != 3){
houseimage[_local3].gotoAndStop(_local2);
};
} else {
if (houseimage[_local3].tipe == "house"){
houseimage[_local3].mc1.gotoAndStop(_local2);
} else {
houseimage[_local3].gotoAndStop(_local2);
};
};
};
_local3++;
};
var _local4:int;
while (_local4 <= map.gridWidth) {
_local7 = 0;
while (_local7 <= map.gridHeight) {
if (_local2 == 2){
if (tileimage[_local4][_local7].currentLabel == "daylightgrass"){
tileimage[_local4][_local7].gotoAndStop("darkgrass");
} else {
if (tileimage[_local4][_local7].currentLabel == "dayasphalt"){
tileimage[_local4][_local7].gotoAndStop("asphalt");
} else {
if (tileimage[_local4][_local7].currentLabel == "daygraystone"){
tileimage[_local4][_local7].gotoAndStop("graystone");
} else {
if (tileimage[_local4][_local7].currentLabel == "graystonesewerday"){
tileimage[_local4][_local7].gotoAndStop("graystonesewer");
};
};
};
};
} else {
if (tileimage[_local4][_local7].currentLabel == "graystonesewer"){
tileimage[_local4][_local7].gotoAndStop("graystonesewerday");
} else {
if (tileimage[_local4][_local7].currentLabel == "darkgrass"){
tileimage[_local4][_local7].gotoAndStop("daylightgrass");
} else {
if (tileimage[_local4][_local7].currentLabel == "asphalt"){
tileimage[_local4][_local7].gotoAndStop("dayasphalt");
} else {
if (tileimage[_local4][_local7].currentLabel == "graystone"){
tileimage[_local4][_local7].gotoAndStop("daygraystone");
};
};
};
};
};
_local7++;
};
_local4++;
};
}
public function donethisresearch(_arg1:int){
var _local3:*;
if (researchrepeatable[_arg1] == 0){
so.data.researchbool[_arg1] = true;
};
so.data.researchtime[_arg1] = [0, 0, 0];
var _local2:* = 0;
_local3 = 0;
while (_local3 < researchrepeatable.length) {
if (researchrepeatable[_local3] == 1){
_local2++;
if (_local3 == _arg1){
break;
};
};
_local3++;
};
var _local4:* = -1;
_local3 = 0;
while (_local3 < so.data.inventorypotion.length) {
if (so.data.inventorypotion[_local3] == _local2){
_local4 = _local3;
break;
};
_local3++;
};
if (_local4 != -1){
so.data.inventorypotionamount[_local4] = int((int(so.data.inventorypotionamount[_local4]) + int(researchqty[_arg1])));
} else {
so.data.inventorypotion[so.data.inventorypotion.length] = _local2;
so.data.inventorypotionamount[so.data.inventorypotionamount.length] = researchqty[_arg1];
};
if (researcheffect[_arg1] == "unlock booth innard, and bodypart"){
so.data.boothlock[1][6] = 0;
so.data.boothlock[1][8] = 0;
} else {
if (researcheffect[_arg1] == "unlock foodcourt tab menu"){
so.data.foodcourtlock = false;
} else {
if (researcheffect[_arg1] == "unlock booth apparel boys and girls"){
so.data.boothlock[3][1] = 0;
so.data.boothlock[3][2] = 0;
} else {
if (researcheffect[_arg1] == "unlock apparel booth girodano, zoro"){
so.data.boothlock[3][5] = 0;
so.data.boothlock[3][6] = 0;
} else {
if (researcheffect[_arg1] == "unlock advanced equip"){
so.data.advanceequiplock = false;
} else {
if (researcheffect[_arg1] == "unlock booth brain"){
so.data.boothlock[1][7] = 0;
} else {
if (researcheffect[_arg1] == "Opportunities superheroes applicant"){
so.data.superheroapplicantlock = false;
} else {
if (researcheffect[_arg1] == "unlock beauty divider and wig booth"){
so.data.boothlock[4][5] = 0;
so.data.decorlock[3][21] = 0;
} else {
if (researcheffect[_arg1] == "unlock booth DIY Tools"){
so.data.boothlock[4][7] = 0;
} else {
if (researcheffect[_arg1] == "unlock IT booth and IT decoration"){
so.data.boothlock[4][6] = 0;
so.data.decorlock[3][29] = 0;
} else {
if (researcheffect[_arg1] == "unlock clone tab menu"){
so.data.clonetablock = false;
} else {
if (researcheffect[_arg1] == "get medicine room"){
};
};
};
};
};
};
};
};
};
};
};
};
isinotif((("you have finished research (" + researchname[_arg1]) + ")"));
cekboothdecortotal();
}
public function makesidequest(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if ((((sidequestbool == false)) && ((sidequesttitle == "")))){
trace("YO MONGGO");
_local1 = ["booth direction", "thief", "brainy", "choppa", "blackout", "landmark"];
_local2 = randRange(0, (_local1.length - 1));
sidequestbool = true;
sidequesttitle = _local1[_local2];
trace(("SIDE QUEST : " + _local2));
if (sidequesttitle == "blackout"){
_local3 = [];
_local4 = 0;
while (_local4 < houseimage.length) {
if (houseimage[_local4].tipe == "lamp"){
_local3[_local3.length] = _local4;
};
_local4++;
};
miniquestsoundcreator();
_local2 = randRange(0, (_local3.length - 1));
houseimage[_local3[_local2]].gotoAndStop(3);
houseimage[_local3[_local2]].mcsign.visible = true;
houseimage[_local3[_local2]].buttonMode = true;
houseimage[_local3[_local2]].removeEventListener(MouseEvent.CLICK, fixblackout);
houseimage[_local3[_local2]].addEventListener(MouseEvent.CLICK, fixblackout);
} else {
if (sidequesttitle == "choppa"){
_local5 = randRange(1, 3);
mcgaia.mcchoppa.gotoAndPlay(("go" + _local5));
mcgaia.mcchoppa.removeEventListener(MouseEvent.CLICK, choppaclick);
mcgaia.mcchoppa.addEventListener(MouseEvent.CLICK, choppaclick);
mcgaia.mcchoppa.removeEventListener(Event.ENTER_FRAME, choppatime);
mcgaia.mcchoppa.addEventListener(Event.ENTER_FRAME, choppatime);
soundchannelchopa = soundchoppa.play(0, 999, new SoundTransform(volumesfx));
mcgaia.mcchoppa.health = 3;
mcgaia.mcchoppa.healthtemp = mcgaia.mcchoppa.health;
mcgaia.mcchoppa.life = 3;
} else {
if (sidequesttitle == "thief"){
zombieimage[zombieimage.length] = new (ingamezombie16);
mcgaia.addChildAt(zombieimage[(zombieimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
sidequestzombie = zombieimage[(zombieimage.length - 1)];
zombieimage[(zombieimage.length - 1)].zombie = true;
zombieimage[(zombieimage.length - 1)].onsidequest = true;
zombieimage[(zombieimage.length - 1)].sidequest = true;
zombieimage[(zombieimage.length - 1)].sidequesttipe = "thief";
zombieimage[(zombieimage.length - 1)].mcemoti.gotoAndStop("quest");
zombieimage[(zombieimage.length - 1)].statdirection = "right";
zombieimage[(zombieimage.length - 1)].stathead = "front";
zombieimage[(zombieimage.length - 1)].speedx = movexstandart;
zombieimage[(zombieimage.length - 1)].speedy = moveystandart;
_local6 = randRange(0, 1);
zombieimage[(zombieimage.length - 1)].miliktilex = randzombieposition[_local6][0];
zombieimage[(zombieimage.length - 1)].miliktiley = randzombieposition[_local6][1];
zombieimage[(zombieimage.length - 1)].phase = 1;
zombieimage[(zombieimage.length - 1)].targetx = 14;
zombieimage[(zombieimage.length - 1)].targety = 14;
zombieimage[(zombieimage.length - 1)].x = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].x;
zombieimage[(zombieimage.length - 1)].y = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].y;
zombieimage[(zombieimage.length - 1)].msspeed = 2;
zombieimage[(zombieimage.length - 1)].hasilarrayjalan = [];
zombieimage[(zombieimage.length - 1)].indexke = (zombieimage.length - 1);
zombieimage[(zombieimage.length - 1)].onmove = true;
caritargetarrayklik(zombieimage[(zombieimage.length - 1)]);
zombieimage[(zombieimage.length - 1)].addEventListener(MouseEvent.CLICK, zombiepopup);
};
};
};
};
}
public function fixblackout(_arg1:MouseEvent):void{
_arg1.currentTarget.mcsign.visible = false;
if (so.data.morning == false){
_arg1.currentTarget.gotoAndStop(2);
} else {
_arg1.currentTarget.gotoAndStop(1);
};
_arg1.currentTarget.buttonMode = false;
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK, fixblackout);
createsepyur("", 1, 1, 1, mcmouse);
createbucks(1, _arg1.currentTarget);
cancelsidequestzombie();
}
public function choppatime(_arg1:Event):void{
if (_arg1.currentTarget.currentFrame == 1){
if (soundchannelchopa != null){
soundchannelchopa.stop();
soundchannelchopa = null;
};
mcgaia.mcchoppa.removeEventListener(Event.ENTER_FRAME, choppatime);
cancelsidequestzombie();
};
}
public function choppaclick(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
_arg1.currentTarget.health--;
if ((((_arg1.currentTarget.health < 0)) && ((_arg1.currentTarget.life > 0)))){
if (_arg1.currentTarget.life == 3){
isinotif("You've successfully send S.O.S to a passed by helicopter");
};
_arg1.currentTarget.health = _arg1.currentTarget.healthtemp;
_arg1.currentTarget.life--;
trace(("BWAT, LIFE : " + _arg1.currentTarget.life));
do {
_local2 = randRange((firsttile[0] - 10), (firsttile[0] + 10));
_local3 = randRange((firsttile[0] - 10), (firsttile[0] + 10));
} while ((((((_local2 >= firsttile[0])) && ((_local2 <= (firsttile[0] + widthemart))))) && ((((_local3 >= firsttile[1])) && ((_local3 <= (firsttile[1] + widthemart)))))));
lootimage[lootimage.length] = new (ingamechoppaprize);
mcgaia.addChildAt(lootimage[(lootimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionfx));
lootimage[(lootimage.length - 1)].indexke = (lootimage.length - 1);
lootimage[(lootimage.length - 1)].sidequest = true;
lootimage[(lootimage.length - 1)].x = tileimage[_local2][_local3].x;
lootimage[(lootimage.length - 1)].y = tileimage[_local2][_local3].y;
lootimage[(lootimage.length - 1)].addEventListener(MouseEvent.CLICK, lootimageclick);
};
}
public function bwatui2(){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
mcui2.mc1.btn1blinking.addEventListener(MouseEvent.CLICK, open1tutor);
mcui2.mc1.btn6blinking.addEventListener(MouseEvent.CLICK, open6tutor);
mcui2.mc1.btn3blinking.addEventListener(MouseEvent.CLICK, open3tutor);
mcui2.mcnotif.addEventListener(MouseEvent.CLICK, notifopen);
var _local1:* = 1;
while (_local1 <= 8) {
_local2 = mcui2.mc1.getChildByName(("btnnew" + _local1));
_local2.mouseChildren = false;
_local2.mouseEnabled = false;
_local3 = mcui2.mc1.getChildByName(("btn" + _local1));
_local3.removeEventListener(MouseEvent.CLICK, uiopenbuild);
_local3.addEventListener(MouseEvent.CLICK, uiopenbuild);
_local4 = mcui2.mc1.getChildByName(("mcdisabled" + _local1));
if (so.data.tutorialcomplete == true){
_local3.visible = true;
_local4.visible = false;
};
_local5 = getChildByName(("mcuibuild" + _local1));
if (_local5 != null){
_local5.visible = false;
};
_local1++;
};
if ((((((so.data.tutorialcomplete == false)) && ((so.data.tutorialstep == 0)))) || ((so.data.tutorialcomplete == true)))){
mcui2.mc1.btn1blinking.visible = false;
mcui2.mc1.btn6blinking.visible = false;
mcui2.mc1.btn3blinking.visible = false;
};
if (so.data.tutorialcomplete == false){
mcui2.mc1.btn1.visible = false;
mcui2.mc1.btn6.visible = false;
mcui2.mc1.btn3.visible = false;
};
}
public function open1tutor(_arg1:MouseEvent):void{
mcuibuild1.visible = true;
mcuibuild1.gotoAndPlay(2);
sliderindex = 1;
jumlahitemslider = 0;
indexshop = 1;
createbuild1();
}
public function open3tutor(_arg1:MouseEvent):void{
sliderindex = 1;
jumlahitemslider = 0;
indexshop = 3;
createbuild3();
mcuibuild3.visible = true;
mcuibuild3.gotoAndPlay(2);
}
public function open6tutor(_arg1:MouseEvent):void{
mcuibuild6.visible = true;
mcuibuild6.gotoAndPlay(2);
sliderindex = 1;
jumlahitemslider = 0;
indexshop = 6;
createbuild6();
}
public function notifopen(_arg1:MouseEvent):void{
so.data.notifnew = 0;
mcnotif.btnscroll.y = 49;
mcnotif.btnscroll.removeEventListener(MouseEvent.MOUSE_DOWN, scrolldown);
mcnotif.btnscroll.addEventListener(MouseEvent.MOUSE_DOWN, scrolldown);
mcnotif.arrowup.removeEventListener(MouseEvent.CLICK, uponenotif);
mcnotif.arrowup.addEventListener(MouseEvent.CLICK, uponenotif);
mcnotif.arrowdown.removeEventListener(MouseEvent.CLICK, downonenotif);
mcnotif.arrowdown.addEventListener(MouseEvent.CLICK, downonenotif);
mcnotif.btnclose.removeEventListener(MouseEvent.CLICK, notifclose);
mcnotif.btnclose.addEventListener(MouseEvent.CLICK, notifclose);
mcnotif.gotoAndPlay(2);
loadnotiftext();
}
public function scrolldown(_arg1:MouseEvent){
stage.addEventListener(Event.ENTER_FRAME, scrollmovementframer);
mcnotif.btnscroll.removeEventListener(MouseEvent.MOUSE_UP, scrollup);
mcnotif.btnscroll.addEventListener(MouseEvent.MOUSE_UP, scrollup);
}
public function scrollup(_arg1:MouseEvent){
mcnotif.btnscroll.removeEventListener(MouseEvent.MOUSE_UP, scrollup);
stage.removeEventListener(Event.ENTER_FRAME, scrollmovementframer);
}
public function scrollmovementframer(_arg1:Event){
var _local2:* = (185 - 49);
var _local3:Point = new Point(mouseX, mouseY);
_local3 = mcnotif.globalToLocal(_local3);
mcnotif.btnscroll.y = _local3.y;
if (mcnotif.btnscroll.y < 49){
mcnotif.btnscroll.removeEventListener(MouseEvent.MOUSE_UP, scrollup);
stage.removeEventListener(Event.ENTER_FRAME, scrollmovementframer);
mcnotif.btnscroll.y = 51;
} else {
if (mcnotif.btnscroll.y > 185){
mcnotif.btnscroll.removeEventListener(MouseEvent.MOUSE_UP, scrollup);
stage.removeEventListener(Event.ENTER_FRAME, scrollmovementframer);
mcnotif.btnscroll.y = 180;
};
};
var _local4:* = (mcnotif.btnscroll.y - 49);
_local4 = (_local4 / _local2);
indexnotif = int((so.data.notiftext.length * _local4));
loadnotiftext();
}
public function uponenotif(_arg1:MouseEvent){
if (indexnotif > 0){
indexnotif--;
};
}
public function downonenotif(_arg1:MouseEvent){
loadnotiftext();
if ((indexnotif + 4) < so.data.notiftext.length){
indexnotif++;
};
loadnotiftext();
}
public function notifclose(_arg1:MouseEvent){
mcnotif.gotoAndStop(1);
}
public function loadnotiftext(){
var _local3:*;
mcui2.mcnotif.mc1.visible = false;
var _local1:* = 1;
var _local2:* = indexnotif;
while (_local2 < (indexnotif + 4)) {
_local3 = mcnotif.getChildByName(("txt" + _local1));
if (so.data.notiftext[_local2] != undefined){
_local3.text = so.data.notiftext[_local2];
} else {
_local3.text = "";
};
_local1++;
_local2++;
};
}
public function isinotif(_arg1:String){
}
public function updatenotifnumba(){
mcui2.mcnotif.mc1.txt1.text = so.data.notifnew;
}
public function uiopenbuild(_arg1:MouseEvent):void{
soundtab.play(0, 1, new SoundTransform(volumesfx));
var _local2:* = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
trace(((("ha : " + indexshop) + " ") + _local2));
if (indexshop != _local2){
closeuiwindow();
indexshop = _local2;
trace(("ha 2 : " + so.data.tutorialcomplete));
if ((((((((((so.data.tutorialcomplete == true)) || ((((so.data.tutorialcomplete == false)) && ((indexshop == 1)))))) || ((((so.data.tutorialcomplete == false)) && ((indexshop == 6)))))) || ((((so.data.tutorialcomplete == false)) && ((indexshop == 3)))))) || ((((so.data.tutorialcomplete == false)) && ((indexshop == 1)))))){
createanimasibuild(getChildByName(("mcuibuild" + _local2)));
so.data.newitem[_local2] = 0;
};
} else {
if (so.data.tutorialcomplete == true){
closeuiwindow();
};
};
}
public function createanimasibuild(_arg1:Object){
_arg1.visible = true;
_arg1.gotoAndPlay(2);
_arg1.addEventListener(Event.ENTER_FRAME, uianimationtime);
}
public function uianimationtime(_arg1:Event):void{
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, uianimationtime);
sliderindex = 1;
jumlahitemslider = 0;
trace(((("cek build : " + indexshop) + " ") + so.data.tutorialstep));
if ((((((((indexshop == 1)) && ((so.data.tutorialcomplete == true)))) || ((((indexshop == 1)) && ((so.data.tutorialcomplete == false)))))) || ((((indexshop == 1)) && ((so.data.tutorialcomplete == false)))))){
so.data.newitem[indexshop] = 0;
createbuild1();
} else {
if (indexshop == 2){
createbuild2();
} else {
if (indexshop == 3){
createbuild3();
} else {
if (indexshop == 4){
createbuild4();
} else {
if (indexshop == 5){
createbuild5();
} else {
if (indexshop == 6){
createbuild6();
} else {
if (indexshop == 7){
createbuild7();
} else {
if (indexshop == 8){
createbuild8();
};
};
};
};
};
};
};
};
};
}
public function loaditemshop7(){
var _local6:*;
var _local7:*;
var _local8:*;
var _local1:* = ((sliderindex - 1) * 3);
var _local2:* = 0;
var _local3:* = 0;
var _local4:* = 0;
var _local5:* = 0;
trace(("DIPASS SEBANYAK : " + _local1));
if (indexbuild == 2){
so.data.achievprog[1] = so.data.money;
cekachiev(1);
_local6 = 0;
while (_local6 < achiev.length) {
_local3++;
_local1--;
if (_local1 < 0){
if (_local2 < 3){
_local4++;
_local2++;
shopitemimage[shopitemimage.length] = new (achievimage);
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
shopitemimage[(shopitemimage.length - 1)].x = 112;
shopitemimage[(shopitemimage.length - 1)].y = (154 + (_local4 * 49));
shopitemimage[(shopitemimage.length - 1)].mcthumb.gotoAndStop(_local6);
shopitemimage[(shopitemimage.length - 1)].txtname.text = achiev[_local6];
shopitemimage[(shopitemimage.length - 1)].txtdesc.text = ((achievtext[_local6] + " : ") + achivenumba[_local6][so.data.achiev[_local6]]);
shopitemimage[(shopitemimage.length - 1)].txtprog.text = ((so.data.achievprog[_local6] + " / ") + achivenumba[_local6][so.data.achiev[_local6]]);
shopitemimage[(shopitemimage.length - 1)].mcbar.mc1.width = ((so.data.achievprog[_local6] / achivenumba[_local6][so.data.achiev[_local6]]) * 106);
_local7 = 1;
while (_local7 <= 5) {
_local8 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local7));
_local8.gotoAndStop(1);
if (_local7 <= so.data.achiev[_local6]){
_local8.gotoAndStop(2);
};
_local7++;
};
};
};
_local6++;
};
} else {
if (indexbuild == 1){
adaquestcomplete = false;
_local6 = 0;
while (_local6 < so.data.mainquest.length) {
_local7 = 0;
while (_local7 < so.data.mainquest[_local6].length) {
if (so.data.mainquestdata[_local6][_local7][2] == true){
adaquestcomplete = true;
};
_local3++;
_local1--;
if (_local1 < 0){
trace(((((("QUEST INI TULIS : " + so.data.mainquest[_local6][_local7]) + " data : ") + _local6) + " ") + _local7));
if (_local2 < 3){
_local2++;
shopitemimage[shopitemimage.length] = new (buildtab71);
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
shopitemimage[(shopitemimage.length - 1)].x = 315;
shopitemimage[(shopitemimage.length - 1)].y = (180 + (_local4 * 89));
shopitemimage[(shopitemimage.length - 1)].tipe = _local6;
shopitemimage[(shopitemimage.length - 1)].nomor = _local7;
shopitemimage[(shopitemimage.length - 1)].txtdesc.text = so.data.mainquest[_local6][_local7];
if (so.data.mainquestdata[_local6][_local7][3] == true){
so.data.mainquestdata[_local6][_local7][3] = false;
} else {
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = false;
};
shopitemimage[(shopitemimage.length - 1)].mcthumb.gotoAndStop(so.data.mainquestdata[_local6][_local7][6]);
shopitemimage[(shopitemimage.length - 1)].btndone.addEventListener(MouseEvent.CLICK, donemissionspliceplz);
shopitemimage[(shopitemimage.length - 1)].mcreward.txt1.text = so.data.mainquestdata[_local6][_local7][4];
if (so.data.mainquestdata[_local6][_local7][2] == true){
shopitemimage[(shopitemimage.length - 1)].btndone.visible = true;
shopitemimage[(shopitemimage.length - 1)].mcdone.gotoAndPlay(2);
} else {
shopitemimage[(shopitemimage.length - 1)].btndone.visible = false;
shopitemimage[(shopitemimage.length - 1)].mcdone.visible = false;
shopitemimage[(shopitemimage.length - 1)].mcdone.gotoAndStop(1);
};
shopitemimage[(shopitemimage.length - 1)].mcprogress.txtprog.text = ((so.data.mainquestdata[_local6][_local7][0] + "/") + so.data.mainquestdata[_local6][_local7][1]);
shopitemimage[(shopitemimage.length - 1)].mcprogress.mcbar.mc1.width = ((so.data.mainquestdata[_local6][_local7][0] / so.data.mainquestdata[_local6][_local7][1]) * 178);
shopitemimage[(shopitemimage.length - 1)].mcprogress.txtbar.text = (((so.data.mainquestdata[_local6][_local7][0] / so.data.mainquestdata[_local6][_local7][1]) * 100).toFixed(0) + "%");
_local4++;
if (so.data.mainquestdata[_local6][_local7][2] == false){
break;
};
} else {
if (so.data.mainquestdata[_local6][_local7][2] == false){
break;
};
};
} else {
if (so.data.mainquestdata[_local6][_local7][2] == false){
break;
};
};
_local7++;
};
_local6++;
};
};
};
trace(("JUMLAGE " + _local3));
jumlahitemslider = _local3;
loadslider();
}
public function donemissionspliceplz(_arg1:MouseEvent):void{
var _local2:* = _arg1.currentTarget.parent;
so.data.money = (so.data.money + so.data.mainquestdata[_local2.tipe][_local2.nomor][4]);
updatetextonly();
soundbling.play(0, 1, new SoundTransform(volumesfx));
effectimage[effectimage.length] = new (questcompleteeffect);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(mcnotifdisabled));
effectimage[(effectimage.length - 1)].x = mouseX;
effectimage[(effectimage.length - 1)].y = mouseY;
effectimage[(effectimage.length - 1)].gotoAndPlay(2);
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].mouseChildren = false;
effectimage[(effectimage.length - 1)].mouseEnabled = false;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover2);
soundtab.play(0, 1, new SoundTransform(volumesfx));
so.data.mainquest[_local2.tipe].splice(_local2.nomor, 1);
so.data.mainquestdata[_local2.tipe].splice(_local2.nomor, 1);
cleanupshopitemimage();
loaditemshop7();
}
public function createbuild7(){
var _local2:*;
indexbuild = 1;
mcuibuild7.mctitle.gotoAndStop(indexbuild);
mcuibuild7.mctab1.gotoAndStop(2);
mcuibuild7.btnclose.removeEventListener(MouseEvent.CLICK, closeallwindow);
mcuibuild7.btnclose.addEventListener(MouseEvent.CLICK, closeallwindow);
loaditemshop7();
var _local1:* = 1;
while (_local1 <= 2) {
_local2 = mcuibuild7.getChildByName(("mcicon" + _local1));
_local2.gotoAndStop(_local1);
_local2.mouseChildren = false;
_local2.mouseEnabled = false;
_local2 = mcuibuild7.getChildByName(("mctab" + _local1));
_local2.gotoAndStop(1);
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.CLICK, selectbuild7tipe);
_local1++;
};
mcuibuild7.mctab1.gotoAndStop(2);
mcuibuild7.mctitle.gotoAndStop(1);
}
public function selectbuild7tipe(_arg1:MouseEvent):void{
var _local3:*;
var _local4:*;
var _local2:* = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
soundklik2.play(0, 1, new SoundTransform(volumesfx));
if (so.data.tutorialcomplete == true){
sliderindex = 1;
cleanupshopitemimage();
mcuibuild7.mctitle.gotoAndStop(_local2);
_local3 = 1;
while (_local3 <= 2) {
_local4 = mcuibuild7.getChildByName(("mctab" + _local3));
_local4.gotoAndStop(1);
_local3++;
};
_local4 = mcuibuild7.getChildByName(("mctab" + _local2));
_local4.gotoAndStop(2);
indexbuild = _local2;
indexiteminbuild = 0;
loaditemshop7();
};
}
public function createbuild8(){
indexbuild = 1;
mcuibuild8.mctitle.gotoAndStop(indexbuild);
mcuibuild8.btnclose.removeEventListener(MouseEvent.CLICK, closeallwindow);
mcuibuild8.btnclose.addEventListener(MouseEvent.CLICK, closeallwindow);
loaditemshop8();
mcuibuild8.mctitle.gotoAndStop(1);
}
public function notifpopup(_arg1:MouseEvent){
if (notifvisibler == false){
notifvisibler = true;
} else {
notifvisibler = false;
};
}
public function createnotif(_arg1){
trace(("notif image : " + notifimage.length));
_arg1 = 0;
while (_arg1 < notifimage.length) {
if (notifimage[_arg1] != null){
notifimage[_arg1].bariske++;
};
_arg1++;
};
notifimage[notifimage.length] = new (notifnewimage);
addChildAt(notifimage[(notifimage.length - 1)], getChildIndex(mcnotifposition));
notifimage[(notifimage.length - 1)].x = 561;
notifimage[(notifimage.length - 1)].bariske = 0;
notifimage[(notifimage.length - 1)].indexke = (notifimage.length - 1);
notifimage[(notifimage.length - 1)].mouseChildren = false;
notifimage[(notifimage.length - 1)].mouseEnabled = false;
notifimage[(notifimage.length - 1)].y = 51;
notifimage[(notifimage.length - 1)].visible = true;
if (so.data.notiftext[_arg1][0] < (60 * 25)){
notifimage[(notifimage.length - 1)].mc1.mc1.txttime.text = "now";
} else {
notifimage[(notifimage.length - 1)].mc1.mc1.txttime.text = (int((so.data.notiftext[_arg1][0] / (60 * 25))) + "m. ago");
};
notifimage[(notifimage.length - 1)].mc1.mc1.txthead.text = so.data.notiftext[_arg1][1];
if (so.data.notiftext[_arg1][3] == 0){
notifimage[(notifimage.length - 1)].mc1.mc1.txthead.textColor = uint(0xFFFFFF);
} else {
if (so.data.notiftext[_arg1][3] == 1){
notifimage[(notifimage.length - 1)].mc1.mc1.txthead.textColor = uint(0xFFFF00);
} else {
if (so.data.notiftext[_arg1][3] == 2){
notifimage[(notifimage.length - 1)].mc1.mc1.txthead.textColor = uint(0x99FF00);
};
};
};
notifimage[(notifimage.length - 1)].mc1.mc1.txtdesc.text = so.data.notiftext[_arg1][2];
notifimage[(notifimage.length - 1)].addEventListener(Event.ENTER_FRAME, notifscroller);
}
public function notifscroller(_arg1:Event):void{
var _local2:*;
if (pausegame == false){
_arg1.currentTarget.visible = notifvisibler;
if (_arg1.currentTarget.y < (93 + (_arg1.currentTarget.bariske * 49))){
if ((((_arg1.currentTarget.bariske >= 5)) && (!((_arg1.currentTarget.currentLabel == "bye"))))){
_arg1.currentTarget.gotoAndPlay("bye");
};
_arg1.currentTarget.y = (_arg1.currentTarget.y + 2);
} else {
if (_arg1.currentTarget.bariske >= 5){
_local2 = _arg1.currentTarget.indexke;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, notifscroller);
removeChild(notifimage[_local2]);
notifimage[_local2] = null;
};
};
};
}
public function ubahtextini(_arg1:Object, _arg2:int){
trace(((("ISI : " + _arg2) + " ") + so.data.notiftext[_arg2]));
_arg1.visible = true;
if (so.data.notiftext[_arg2][0] < (60 * 25)){
_arg1.txttime.text = "now";
} else {
_arg1.txttime.text = (int((so.data.notiftext[_arg2][0] / (60 * 25))) + "m. ago");
};
_arg1.txthead.text = so.data.notiftext[_arg2][1];
if (so.data.notiftext[_arg2][3] == 0){
_arg1.txthead.textColor = uint(0xFFFFFF);
} else {
if (so.data.notiftext[_arg2][3] == 1){
_arg1.txthead.textColor = uint(0xFFFF00);
} else {
if (so.data.notiftext[_arg2][3] == 2){
_arg1.txthead.textColor = uint(0xFF6600);
};
};
};
_arg1.txtdesc.text = so.data.notiftext[_arg2][2];
}
public function loaditemshop8(){
var _local1:* = ((sliderindex - 1) * 4);
var _local2:* = 0;
var _local3:* = 0;
var _local4:* = 0;
var _local5:* = 0;
var _local6:* = 0;
while (_local6 < zombiename.length) {
_local3++;
if (_local1 <= 0){
if (_local2 < 4){
_local2++;
shopitemimage[shopitemimage.length] = new (buildtab8);
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
shopitemimage[(shopitemimage.length - 1)].x = (212 + (_local5 * 264));
shopitemimage[(shopitemimage.length - 1)].y = (197 + (_local4 * 105));
shopitemimage[(shopitemimage.length - 1)].mczombie.mc1.gotoAndStop(int((int(_local6) + int(1))));
if (so.data.zombieunlocked[_local6] == false){
shopitemimage[(shopitemimage.length - 1)].mczombie.gotoAndStop(2);
shopitemimage[(shopitemimage.length - 1)].mcdesc.visible = false;
shopitemimage[(shopitemimage.length - 1)].mclocked.txt1.text = (("Reach Lv." + zombieunlocked[_local6]) + " to unlock");
if (zombiereq[_local6] != 0){
shopitemimage[(shopitemimage.length - 1)].mclocked.txt1.text = (shopitemimage[(shopitemimage.length - 1)].mclocked.txt1.text + (("\nHave " + boothname[zombiereq[_local6][0]][zombiereq[_local6][1]]) + " booth"));
};
shopitemimage[(shopitemimage.length - 1)].mcbg.gotoAndStop(2);
} else {
shopitemimage[(shopitemimage.length - 1)].mclocked.visible = false;
shopitemimage[(shopitemimage.length - 1)].mcdesc.txtname.text = zombiename[_local6];
shopitemimage[(shopitemimage.length - 1)].mcdesc.txtjob.text = zombiejob[_local6];
shopitemimage[(shopitemimage.length - 1)].mcdesc.txtdesc.text = "-coming soon-";
shopitemimage[(shopitemimage.length - 1)].mcdesc.txthealth.text = zombiehealth[_local6];
shopitemimage[(shopitemimage.length - 1)].mcdesc.txtspeed.text = zombiespeed[_local6];
shopitemimage[(shopitemimage.length - 1)].mcdesc.txtattack.text = zombieattack[_local6];
};
++_local5;
if (_local5 > 1){
_local5 = 0;
_local4++;
};
};
};
_local1--;
_local6++;
};
jumlahitemslider = _local3;
loadslider();
}
public function createbuild5(){
var _local2:*;
indexbuild = 1;
mcuibuild5.txtrp.text = so.data.researchpoint;
mcuibuild5.mctitle.gotoAndStop(indexbuild);
mcuibuild5.mctab1.gotoAndStop(2);
mcuibuild5.btnclose.removeEventListener(MouseEvent.CLICK, closeallwindow);
mcuibuild5.btnclose.addEventListener(MouseEvent.CLICK, closeallwindow);
loaditemshop5();
var _local1:* = 1;
while (_local1 <= 3) {
_local2 = mcuibuild5.getChildByName(("mcicon" + _local1));
_local2.gotoAndStop(_local1);
_local2.mouseChildren = false;
_local2.mouseEnabled = false;
_local2 = mcuibuild5.getChildByName(("mctab" + _local1));
_local2.gotoAndStop(1);
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.CLICK, selectbuild5tipe);
_local2 = mcuibuild5.getChildByName(("btnnew" + _local1));
if (_local2 != null){
if (so.data.newitemtipe[5][_local1] == 1){
_local2.visible = true;
} else {
_local2.visible = false;
};
};
_local1++;
};
mcuibuild5.mctab1.gotoAndStop(2);
mcuibuild5.mctitle.gotoAndStop(1);
}
public function selectbuild5tipe(_arg1:MouseEvent):void{
var _local3:*;
var _local4:*;
soundklik2.play(0, 1, new SoundTransform(volumesfx));
var _local2:* = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
if ((((((so.data.clonetablock == false)) && ((_local2 == 2)))) || (!((_local2 == 2))))){
sliderindex = 1;
cleanupshopitemimage();
mcuibuild5.mctitle.gotoAndStop(_local2);
_local3 = 1;
while (_local3 <= 3) {
_local4 = mcuibuild5.getChildByName(("mctab" + _local3));
_local4.gotoAndStop(1);
_local3++;
};
_local4 = mcuibuild5.getChildByName(("mctab" + _local2));
_local4.gotoAndStop(2);
indexbuild = _local2;
loaditemshop5();
};
}
public function loaditemshop5(){
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
mcuibuild5.txtrp.text = so.data.researchpoint;
var _local1:* = 1;
var _local2:* = 0;
var _local3:* = 0;
var _local4:* = 0;
var _local5:* = ((sliderindex - 1) * 6);
trace(("index ke : " + indexbuild));
if (indexbuild == 3){
_local6 = 0;
while (_local6 < so.data.inventorypotion.length) {
_local5--;
_local4++;
if (_local5 <= 0){
shopitemimage[shopitemimage.length] = new (buildtab53);
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
shopitemimage[(shopitemimage.length - 1)].x = (502 + (263 * (_local1 - 1)));
shopitemimage[(shopitemimage.length - 1)].y = (270 + (75 * _local2));
shopitemimage[(shopitemimage.length - 1)].txtname.text = itemname[so.data.inventorypotion[_local6]];
shopitemimage[(shopitemimage.length - 1)].txtdesc.text = itemdesc[so.data.inventorypotion[_local6]];
shopitemimage[(shopitemimage.length - 1)].txtname.mouseEnabled = false;
shopitemimage[(shopitemimage.length - 1)].txtdesc.mouseEnabled = false;
shopitemimage[(shopitemimage.length - 1)].txtamount.text = so.data.inventorypotionamount[_local6];
shopitemimage[(shopitemimage.length - 1)].mc1.gotoAndStop(so.data.inventorypotion[_local6]);
shopitemimage[(shopitemimage.length - 1)].buttonMode = true;
shopitemimage[(shopitemimage.length - 1)].nomor = so.data.inventorypotion[_local6];
trace(("POT INI NOMOR KE : " + shopitemimage[(shopitemimage.length - 1)].nomor));
shopitemimage[(shopitemimage.length - 1)].addEventListener(MouseEvent.CLICK, useitem);
_local1++;
if (_local1 > 2){
trace("enter");
_local1 = 1;
_local2++;
};
};
_local6++;
};
} else {
if (indexbuild == 2){
_local4++;
trace(("POT KE : " + so.data.inventorytube[_local6]));
shopitemimage[shopitemimage.length] = new (buildtab52);
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
shopitemimage[(shopitemimage.length - 1)].x = 198;
shopitemimage[(shopitemimage.length - 1)].y = 303;
shopitemimage[(shopitemimage.length - 1)].btnlever2.visible = false;
shopitemimage[(shopitemimage.length - 1)].txtname.text = "";
shopitemimage[(shopitemimage.length - 1)].txtlvl.text = "";
shopitemimage[(shopitemimage.length - 1)].txttype.text = "";
shopitemimage[(shopitemimage.length - 1)].txthealth.text = "";
shopitemimage[(shopitemimage.length - 1)].txtdef.text = "";
shopitemimage[(shopitemimage.length - 1)].txtspd.text = "";
shopitemimage[(shopitemimage.length - 1)].txtatk.text = "";
shopitemimage[(shopitemimage.length - 1)].txtcost.text = "";
shopitemimage[(shopitemimage.length - 1)].mcbar.mc1.width = 0;
loadtubeinventory();
_local1++;
if (_local1 > 2){
trace("enter");
_local1 = 1;
_local2++;
};
} else {
if (indexbuild == 1){
_local7 = 1;
_local6 = 0;
while (_local6 < researchname.length) {
_local5--;
if (researchunlock[_local6] <= so.data.levele){
_local4++;
if (_local5 < 0){
if (_local3 < 6){
_local3++;
shopitemimage[shopitemimage.length] = new (buildtab5);
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
if ((((so.data.newitemnomor[indexshop][indexbuild].length > 0)) && ((so.data.newitemtipe[indexshop][indexbuild] == 1)))){
_local8 = false;
_local9 = 0;
while (_local9 < so.data.newitemnomor[indexshop][indexbuild].length) {
if (_local6 == so.data.newitemnomor[indexshop][indexbuild][_local9]){
_local8 = true;
};
_local9++;
};
if (_local8 == true){
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = true;
} else {
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = false;
};
} else {
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = false;
};
trace(("bwat kolom : " + _local1));
trace(("bwat baris : " + _local2));
shopitemimage[(shopitemimage.length - 1)].x = (502 + (263 * (_local1 - 1)));
shopitemimage[(shopitemimage.length - 1)].y = (270 + (75 * _local2));
shopitemimage[(shopitemimage.length - 1)].mc1.gotoAndStop(int((int(_local6) + int(1))));
shopitemimage[(shopitemimage.length - 1)].btnbuck.addEventListener(MouseEvent.MOUSE_OUT, outresearch);
shopitemimage[(shopitemimage.length - 1)].btnbuck.addEventListener(MouseEvent.MOUSE_OVER, overresearch);
shopitemimage[(shopitemimage.length - 1)].btnbuck.addEventListener(MouseEvent.CLICK, clickresearchpremium);
if (so.data.researchbool[_local6] == true){
trace("RESEARCH DONE");
shopitemimage[(shopitemimage.length - 1)].btnbuck.visible = false;
shopitemimage[(shopitemimage.length - 1)].mctime.visible = false;
shopitemimage[(shopitemimage.length - 1)].btnstart.visible = false;
shopitemimage[(shopitemimage.length - 1)].mcdone.gotoAndPlay(2);
} else {
trace("RESEARCH NOT DONE");
if ((((((so.data.researchtime[_local6][0] == 0)) && ((so.data.researchtime[_local6][1] == 0)))) && ((so.data.researchtime[_local6][2] == 0)))){
trace("a");
shopitemimage[(shopitemimage.length - 1)].btnbuck.visible = false;
shopitemimage[(shopitemimage.length - 1)].mcdone.gotoAndStop(1);
shopitemimage[(shopitemimage.length - 1)].mcdone.visible = false;
shopitemimage[(shopitemimage.length - 1)].mctime.txt1.text = (researchtime[_local6] + "min");
} else {
trace("b");
shopitemimage[(shopitemimage.length - 1)].btnbuck.visible = true;
shopitemimage[(shopitemimage.length - 1)].mcdone.gotoAndStop(1);
shopitemimage[(shopitemimage.length - 1)].btnstart.visible = false;
shopitemimage[(shopitemimage.length - 1)].mcdone.visible = false;
};
};
shopitemimage[(shopitemimage.length - 1)].txtjudul.text = researchname[_local6];
shopitemimage[(shopitemimage.length - 1)].txtdesc.text = researchdesc[_local6];
shopitemimage[(shopitemimage.length - 1)].txtrp.text = researchpointneeded[_local6];
shopitemimage[(shopitemimage.length - 1)].nomor = _local6;
shopitemimage[(shopitemimage.length - 1)].btnstart.addEventListener(MouseEvent.CLICK, startresearch);
_local1++;
if (_local1 > 2){
trace("enter");
_local1 = 1;
_local2++;
};
};
};
};
_local6++;
};
};
};
};
jumlahitemslider = _local4;
loadslider();
}
public function overresearch(_arg1:MouseEvent){
var _local2:* = _arg1.currentTarget.parent;
mcpremiumover.visible = true;
mcpremiumover.x = mouseX;
mcpremiumover.y = mouseY;
var _local3:* = int((researchtime[_local2.nomor] / 5));
if (_local3 <= 0){
_local3 = 1;
};
mcpremiumover.txt1.text = _local3;
}
public function outresearch(_arg1:MouseEvent){
mcpremiumover.visible = false;
}
public function clickresearchpremium(_arg1:MouseEvent){
var _local2:* = _arg1.currentTarget.parent;
var _local3:* = int((researchtime[_local2.nomor] / 5));
if (_local3 <= 0){
_local3 = 1;
};
if (so.data.premiummoney >= _local3){
so.data.premiummoney = (so.data.premiummoney - _local3);
updatetext();
donethisresearch(_local2.nomor);
cleanupshopitemimage();
loaditemshop5();
};
}
public function loadtubeinventory(){
var _local1:*;
var _local4:*;
_local1 = 1;
while (_local1 <= 10) {
_local4 = shopitemimage[0].getChildByName(("mctube" + _local1));
shopitemimage[0].getChildByName(("mctube" + _local1)).posx = _local4.x;
_local4.posy = _local4.y;
_local4.visible = false;
_local1++;
};
shopitemimage[0].mcbar.mc1.width = 1;
shopitemimage[0].btnlever1.visible = true;
shopitemimage[0].btnlever1.removeEventListener(MouseEvent.CLICK, lever1clog);
shopitemimage[0].btnlever1.addEventListener(MouseEvent.CLICK, lever1clog);
shopitemimage[0].btnlever2.visible = false;
shopitemimage[0].btnlever2.removeEventListener(MouseEvent.CLICK, lever2clog);
shopitemimage[0].btnlever2.addEventListener(MouseEvent.CLICK, lever2clog);
shopitemimage[0].mctuberesult.visible = false;
shopitemimage[0].mcemployeeresult.visible = false;
shopitemimage[0].mc1.visible = false;
shopitemimage[0].mc2.visible = false;
trace("1");
var _local2:* = 1;
var _local3:* = 1;
_local1 = 0;
while (_local1 < so.data.inventorytube.length) {
if (so.data.inventorytube[_local1][7] == true){
trace("2");
_local4 = shopitemimage[0].getChildByName(("mctube" + int((int(6) + int(_local1)))));
_local4.visible = true;
_local4.mc1.gotoAndStop(2);
_local4.tubeke = _local1;
_local4.buttonMode = true;
_local4.removeEventListener(MouseEvent.MOUSE_OVER, choosetube);
_local4.addEventListener(MouseEvent.MOUSE_OVER, choosetube);
_local4.removeEventListener(MouseEvent.MOUSE_OUT, outtube);
_local4.addEventListener(MouseEvent.MOUSE_OUT, outtube);
_local4.removeEventListener(MouseEvent.MOUSE_UP, draguptube);
_local4.addEventListener(MouseEvent.MOUSE_UP, draguptube);
_local4.removeEventListener(MouseEvent.MOUSE_DOWN, dragdowntube);
_local4.addEventListener(MouseEvent.MOUSE_DOWN, dragdowntube);
} else {
trace("3");
_local4 = shopitemimage[0].getChildByName(("mctube" + int((int(1) + int(_local1)))));
_local4.visible = true;
_local4.tubeke = _local1;
_local4.buttonMode = true;
_local4.removeEventListener(MouseEvent.MOUSE_OVER, choosetube);
_local4.addEventListener(MouseEvent.MOUSE_OVER, choosetube);
_local4.removeEventListener(MouseEvent.MOUSE_OUT, outtube);
_local4.addEventListener(MouseEvent.MOUSE_OUT, outtube);
_local4.removeEventListener(MouseEvent.MOUSE_UP, draguptube);
_local4.addEventListener(MouseEvent.MOUSE_UP, draguptube);
_local4.removeEventListener(MouseEvent.MOUSE_DOWN, dragdowntube);
_local4.addEventListener(MouseEvent.MOUSE_DOWN, dragdowntube);
};
_local1++;
};
}
public function lever1clog(_arg1:MouseEvent):void{
if (tuberegistered == true){
oncloning = true;
clonetime = clonetimetemp;
shopitemimage[0].btnlever2.visible = true;
shopitemimage[0].btnlever1.visible = false;
stage.addEventListener(Event.ENTER_FRAME, clonebartime);
};
}
public function lever2clog(_arg1:MouseEvent):void{
if (oncloning == true){
stage.removeEventListener(Event.ENTER_FRAME, clonebartime);
tuberegistered = false;
loadtubeinventory();
};
}
public function clonebartime(_arg1:Event):void{
var _local2:*;
if (pausegame == false){
clonetime--;
shopitemimage[0].mcbar.mc1.width = ((1 - (clonetime / clonetimetemp)) * 117);
if (clonetime < 0){
so.data.achievprog[7] = (so.data.achievprog[7] + 1);
cekachiev(7);
_local2 = shopitemimage[0].mctuberesult.tubeke;
if (so.data.inventorytube[_local2][1] == 1){
cekmainquest("clone a stocker", 1);
};
so.data.employeeonstock[so.data.employeeonstock.length] = [so.data.inventorytube[_local2][0], so.data.inventorytube[_local2][1], so.data.inventorytube[_local2][2], so.data.inventorytube[_local2][3], so.data.inventorytube[_local2][4], so.data.inventorytube[_local2][5], so.data.inventorytube[_local2][6], so.data.inventorytube[_local2][7], so.data.inventorytube[_local2][8], so.data.inventorytube[_local2][9], so.data.inventorytube[_local2][10], so.data.inventorytube[_local2][11], so.data.inventorytube[_local2][12], so.data.inventorytube[_local2][13], so.data.inventorytube[_local2][14], so.data.inventorytube[_local2][15], so.data.inventorytube[_local2][16]];
so.data.inventorytube.splice(shopitemimage[0].mctuberesult.tubeke, 1);
stage.removeEventListener(Event.ENTER_FRAME, clonebartime);
tuberegistered = false;
oncloning = false;
loadtubeinventory();
};
};
}
public function outtube(_arg1:MouseEvent):void{
_arg1.currentTarget.mc2.gotoAndStop(1);
shopitemimage[0].txtname.text = "";
shopitemimage[0].txtlvl.text = "";
shopitemimage[0].txttype.text = "";
shopitemimage[0].txthealth.text = "";
shopitemimage[0].txtdef.text = "";
shopitemimage[0].txtspd.text = "";
shopitemimage[0].txtatk.text = "";
shopitemimage[0].txtcost.text = "";
shopitemimage[0].mc1.visible = false;
shopitemimage[0].mc2.visible = false;
if (tuberegistered == false){
shopitemimage[0].mctuberesult.visible = false;
shopitemimage[0].mcemployeeresult.visible = false;
};
}
public function draguptube(_arg1:MouseEvent):void{
_arg1.currentTarget.x = _arg1.currentTarget.posx;
_arg1.currentTarget.y = _arg1.currentTarget.posy;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, dragtubefollower);
}
public function dragdowntube(_arg1:MouseEvent):void{
if (oncloning == false){
_arg1.currentTarget.addEventListener(Event.ENTER_FRAME, dragtubefollower);
};
}
public function dragtubefollower(_arg1:Event):void{
var _local2:Point = new Point(mouseX, mouseY);
_local2 = shopitemimage[0].globalToLocal(_local2);
_arg1.currentTarget.x = _local2.x;
_arg1.currentTarget.y = _local2.y;
if (_arg1.currentTarget.hitTestObject(shopitemimage[0].mchit) == true){
_arg1.currentTarget.visible = false;
tuberegistered = true;
_arg1.currentTarget.x = _arg1.currentTarget.posx;
_arg1.currentTarget.y = _arg1.currentTarget.posy;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, dragtubefollower);
shopitemimage[0].mctuberesult.tubeke = _arg1.currentTarget.tubeke;
shopitemimage[0].mctuberesult.visible = true;
shopitemimage[0].mctuberesult.gotoAndStop(so.data.inventorytube[_arg1.currentTarget.tubeke][1]);
shopitemimage[0].mcemployeeresult.visible = true;
shopitemimage[0].mcemployeeresult.typee = so.data.inventorytube[_arg1.currentTarget.tubeke][1];
shopitemimage[0].mcemployeeresult.head = 0;
shopitemimage[0].mcemployeeresult.armor = 0;
shopitemimage[0].mcemployeeresult.glove = 0;
if (so.data.inventorytube[_arg1.currentTarget.tubeke][1] == 1){
shopitemimage[0].mcemployeeresult.mc2.visible = false;
shopitemimage[0].mcemployeeresult.mc1.visible = true;
shopitemimage[0].mcemployeeresult.mc1.gotoAndStop(so.data.inventorytube[_arg1.currentTarget.tubeke][8]);
} else {
shopitemimage[0].mcemployeeresult.mc1.visible = false;
shopitemimage[0].mcemployeeresult.mc2.visible = true;
shopitemimage[0].mcemployeeresult.mc2.gotoAndStop(so.data.inventorytube[_arg1.currentTarget.tubeke][8]);
};
shopitemimage[0].mcemployeeresult.addEventListener(Event.ENTER_FRAME, employeelistframer);
};
}
public function choosetube(_arg1:MouseEvent):void{
var _local4:*;
trace("CHOOSE TUBE");
var _local2:* = 1;
while (_local2 <= 10) {
_local4 = shopitemimage[0].getChildByName(("mctube" + _local2));
_local4.mc2.gotoAndStop(1);
_local2++;
};
_arg1.currentTarget.mc2.gotoAndStop(2);
var _local3:* = [undefined, "stocker employee", "security employee"];
trace(("ha nomor : " + _arg1.currentTarget.tubeke));
trace(("ha apa se : " + so.data.inventorytube[_arg1.currentTarget.tubeke]));
shopitemimage[0].txtname.text = so.data.inventorytube[_arg1.currentTarget.tubeke][0];
shopitemimage[0].txtlvl.text = so.data.inventorytube[_arg1.currentTarget.tubeke][2];
shopitemimage[0].txttype.text = _local3[so.data.inventorytube[_arg1.currentTarget.tubeke][1]];
shopitemimage[0].txthealth.text = so.data.inventorytube[_arg1.currentTarget.tubeke][3];
shopitemimage[0].txtdef.text = so.data.inventorytube[_arg1.currentTarget.tubeke][6];
shopitemimage[0].txtspd.text = so.data.inventorytube[_arg1.currentTarget.tubeke][4];
shopitemimage[0].txtatk.text = so.data.inventorytube[_arg1.currentTarget.tubeke][5];
shopitemimage[0].txtcost.text = 2000;
shopitemimage[0].typee = so.data.inventorytube[_arg1.currentTarget.tubeke][1];
shopitemimage[0].head = 0;
shopitemimage[0].armor = 0;
shopitemimage[0].glove = 0;
trace(("GOTO HAIR : " + so.data.inventorytube[_arg1.currentTarget.tubeke][8]));
if (so.data.inventorytube[_arg1.currentTarget.tubeke][1] == 1){
shopitemimage[0].mc2.visible = false;
shopitemimage[0].mc1.visible = true;
shopitemimage[0].mc1.gotoAndStop(so.data.inventorytube[_arg1.currentTarget.tubeke][8]);
} else {
shopitemimage[0].mc1.visible = false;
shopitemimage[0].mc2.visible = true;
shopitemimage[0].mc2.gotoAndStop(so.data.inventorytube[_arg1.currentTarget.tubeke][8]);
};
shopitemimage[0].addEventListener(Event.ENTER_FRAME, employeelistframer);
}
public function useitem(_arg1:MouseEvent):void{
onusepotion = true;
var _local2:* = _arg1.currentTarget;
useitemimage[0] = new (itemimage);
mcgaia.addChildAt(useitemimage[0], mcgaia.getChildIndex(mcgaia.mcpositionshop));
trace(("NOMOR : " + _local2.nomor));
useitemimage[0].nomor = _local2.nomor;
useitemimage[0].gotoAndStop(_local2.nomor);
useitemimage[0].addEventListener(Event.ENTER_FRAME, useitemfollowe);
}
public function useitemfollowe(_arg1:Event):void{
closeuiwindow();
var _local2:Point = new Point(mouseX, mouseY);
_local2 = mcgaia.globalToLocal(_local2);
_arg1.currentTarget.x = _local2.x;
_arg1.currentTarget.y = _local2.y;
}
public function startresearch(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget.parent;
if (so.data.researchpoint >= researchpointneeded[_local2.nomor]){
so.data.achievprog[10] = (so.data.achievprog[10] + 1);
cekachiev(10);
if (_local2.nomor == 4){
cekmainquest("research synthetic food", 1);
};
if (_local2.nomor == 16){
cekmainquest("research clone", 1);
};
if (_local2.nomor == 11){
cekmainquest("research cryforhelp megaphonetower", 1);
};
if (_local2.nomor == 12){
cekmainquest("research beauty class", 1);
} else {
if (_local2.nomor == 3){
cekmainquest("research medium dew", 1);
} else {
if (_local2.nomor == 2){
cekmainquest("research food suplement", 1);
} else {
if (_local2.nomor == 5){
cekmainquest("research synthetic fast food", 1);
};
};
};
};
if ((((so.data.newitemnomor[indexshop][1].length > 0)) && ((so.data.newitemtipe[indexshop][1] == 1)))){
_local3 = 0;
while (_local3 < so.data.newitemnomor[indexshop][1].length) {
if (_local2.nomor == so.data.newitemnomor[indexshop][1][_local3]){
so.data.newitemnomor[indexshop][1].splice(_local3, 1);
break;
};
_local3++;
};
};
so.data.researchpoint = (so.data.researchpoint - researchpointneeded[_local2.nomor]);
trace(((("res ke ini : " + _local2.nomor) + " jd : ") + (researchtime[_local2.nomor] * 25)));
so.data.researchtime[_local2.nomor] = [0, researchtime[_local2.nomor], 0];
cleanupshopitemimage();
loaditemshop5();
} else {
bwatmcinfo("need more research point");
};
}
public function createbuild2(){
var _local1:*;
var _local2:*;
mcuibuild2.mctitle.gotoAndStop(indexbuild);
mcuibuild2.mctab1.gotoAndStop(2);
mcuibuild2.btnclose.removeEventListener(MouseEvent.CLICK, closeallwindow);
mcuibuild2.btnclose.addEventListener(MouseEvent.CLICK, closeallwindow);
indexdecor = 1;
loaditemshop2();
_local1 = 1;
while (_local1 <= 5) {
_local2 = mcuibuild2.getChildByName(("mcicon" + _local1));
_local2.gotoAndStop(_local1);
_local2.mouseChildren = false;
_local2.mouseEnabled = false;
_local2 = mcuibuild2.getChildByName(("mctab" + _local1));
_local2.gotoAndStop(1);
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.CLICK, selectbuild2tipe);
_local2 = mcuibuild2.getChildByName(("btnnew" + _local1));
if (so.data.newitemtipe[2][_local1] == 1){
_local2.visible = true;
} else {
_local2.visible = false;
};
_local1++;
};
mcuibuild2.mctab1.gotoAndStop(2);
mcuibuild2.mctitle.gotoAndStop(1);
}
public function createbuild4(){
var _local1:*;
var _local2:*;
mcuibuild4.btnclose.removeEventListener(MouseEvent.CLICK, closeallwindow);
mcuibuild4.btnclose.addEventListener(MouseEvent.CLICK, closeallwindow);
if (indexbuild == 0){
indexbuild = 1;
};
loaditemshop4();
mcuibuild4.mctitle.gotoAndStop(indexbuild);
_local1 = 1;
while (_local1 <= 4) {
_local2 = mcuibuild4.getChildByName(("mcicon" + _local1));
_local2.gotoAndStop(_local1);
_local2.mouseChildren = false;
_local2.mouseEnabled = false;
_local2 = mcuibuild4.getChildByName(("mctab" + _local1));
if (indexbuild == _local1){
_local2.gotoAndStop(2);
} else {
_local2.gotoAndStop(1);
};
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.CLICK, selectbuild4tipe);
_local2 = mcuibuild4.getChildByName(("btnnew" + _local1));
if (_local2 != null){
if (so.data.newitemtipe[4][_local1] == 1){
_local2.visible = true;
} else {
_local2.visible = false;
};
};
_local1++;
};
}
public function selectbuild4tipe(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
equipemployeestatus = [];
soundklik2.play(0, 1, new SoundTransform(volumesfx));
sliderindex = 1;
cleanupshopitemimage();
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
mcuibuild4.mctitle.gotoAndStop(_local2);
_local3 = 1;
while (_local3 <= 4) {
_local4 = mcuibuild4.getChildByName(("mctab" + _local3));
_local4.gotoAndStop(1);
_local3++;
};
_local4 = mcuibuild4.getChildByName(("mctab" + _local2));
_local4.gotoAndStop(2);
indexbuild = _local2;
loaditemshop4();
}
public function loaditemshop4(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
_local1 = 1;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = ((sliderindex - 1) * 6);
if ((((indexbuild == 3)) || ((indexbuild == 4)))){
trace("LOAD EINI");
_local6 = 0;
while (_local6 < so.data.employeelist.length) {
if (so.data.employeelist[_local6] != undefined){
if ((((((((so.data.employeelist[_local6] == 1)) && ((indexbuild == 3)))) && (((((!((so.data.employeeliststatus[_local6][16] == 0))) || (!((so.data.employeeliststatus[_local6][17] == 0))))) || (!((so.data.employeeliststatus[_local6][18] == 0))))))) || ((((((so.data.employeelist[_local6] == 2)) && ((indexbuild == 4)))) && (((((!((so.data.employeeliststatus[_local6][16] == 0))) || (!((so.data.employeeliststatus[_local6][17] == 0))))) || (!((so.data.employeeliststatus[_local6][18] == 0))))))))){
_local4++;
if (_local5 <= 0){
if (_local3 < 4){
trace(("HAHO : " + so.data.employeeliststatus[_local6]));
_local3++;
shopitemimage[_local6] = new (ingameemployeeexist);
addChildAt(shopitemimage[_local6], getChildIndex(mcpositionshop));
shopitemimage[_local6].x = (208 + ((_local1 - 1) * 280));
shopitemimage[_local6].y = (213 + (_local2 * 129));
trace("1");
shopitemimage[_local6].txtname.text = so.data.employeeliststatus[_local6][0];
shopitemimage[_local6].txthealth.text = so.data.employeeliststatus[_local6][1];
shopitemimage[_local6].txtatk.text = so.data.employeeliststatus[_local6][14];
shopitemimage[_local6].txtdef.text = so.data.employeeliststatus[_local6][2];
shopitemimage[_local6].txtspeed.text = so.data.employeeliststatus[_local6][3];
trace("2");
shopitemimage[_local6].txtlevel.text = ("Lv." + so.data.employeeliststatus[_local6][7]);
shopitemimage[_local6].mcbarexp.mc1.width = ((so.data.employeeliststatus[_local6][9] / so.data.employeeliststatus[_local6][10]) * 48);
shopitemimage[_local6].head = so.data.employeeliststatus[_local6][16];
shopitemimage[_local6].armor = so.data.employeeliststatus[_local6][17];
shopitemimage[_local6].glove = so.data.employeeliststatus[_local6][18];
shopitemimage[_local6].btnassign.visible = false;
shopitemimage[_local6].employeeke = _local6;
shopitemimage[_local6].employeene = employeeimage[so.data.employeeliststatus[_local6][11]][so.data.employeeliststatus[_local6][12]];
shopitemimage[_local6].btnfire.addEventListener(MouseEvent.CLICK, fireemployeelist);
loadequipbuttonforthis(shopitemimage[_local6].employeene, shopitemimage[_local6]);
shopitemimage[_local6].typee = so.data.employeelist[_local6];
trace("3");
if (so.data.employeelist[_local6] == 1){
shopitemimage[_local6].mc2.visible = false;
shopitemimage[_local6].mc1.gotoAndStop(so.data.employeeliststatus[_local6][8]);
shopitemimage[_local6].addEventListener(Event.ENTER_FRAME, employeelistframer);
if (so.data.employeeliststatus[_local6][15] == true){
shopitemimage[_local6].mctipejob.gotoAndStop(2);
} else {
shopitemimage[_local6].mctipejob.gotoAndStop(1);
};
} else {
shopitemimage[_local6].mc1.visible = false;
shopitemimage[_local6].mc2.gotoAndStop(so.data.employeeliststatus[_local6][8]);
shopitemimage[_local6].addEventListener(Event.ENTER_FRAME, employeelistframer);
shopitemimage[_local6].mctipejob.visible = false;
};
shopitemimage[_local6].txtsalary.text = so.data.employeeliststatus[_local6][5];
trace("4");
_local1++;
if (_local1 > 1){
_local1 = 0;
_local2++;
};
};
};
_local5--;
};
};
_local6++;
};
};
if ((((indexbuild == 1)) || ((indexbuild == 2)))){
_local6 = 0;
while (_local6 < equipamount.length) {
trace(("EQUIP KE : " + _local6));
_local7 = 0;
while (_local7 < equipamount[_local6]) {
_local5--;
_local8 = false;
if (indexbuild == 1){
if ((((((equipunlock[_local6][_local7] <= so.data.levele)) && ((equipunlock[_local6][_local7] < 12)))) || ((((((equipunlock[_local6][_local7] <= so.data.levele)) && ((equipunlock[_local6][_local7] >= 12)))) && ((so.data.advanceequiplock == false)))))){
trace(((("ini level : " + equipunlock[_local6][_local7]) + " unlock? ") + so.data.advanceequiplock));
_local4++;
if (_local5 <= 0){
if (_local3 < 6){
_local8 = true;
};
};
} else {
_local8 = false;
};
} else {
if (indexbuild == 2){
if (equipemployeestatus.length == 0){
if (so.data.equipstock[_local6][_local7] > 0){
if (_local5 <= 0){
if (_local3 < 6){
_local8 = true;
};
};
};
} else {
if (_local6 == (equipemployeestatus[0] - 1)){
if (so.data.equipstock[_local6][_local7] > 0){
if (_local5 <= 0){
if (_local3 < 6){
_local8 = true;
};
};
};
};
};
};
};
if (_local8 == true){
_local3++;
shopitemimage[shopitemimage.length] = new (buildtab4);
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
shopitemimage[(shopitemimage.length - 1)].x = ((164 * _local1) + (15 * (_local1 - 1)));
shopitemimage[(shopitemimage.length - 1)].y = (213 + (129 * _local2));
trace(("untuk j ke : " + _local7));
if (indexbuild == 1){
trace(((("apa se isine : " + so.data.newitemnomor[indexshop][indexbuild]) + " ") + so.data.newitemtipe[indexshop][indexbuild]));
if ((((so.data.newitemnomor[indexshop][indexbuild].length > 0)) && ((so.data.newitemtipe[indexshop][indexbuild] == 1)))){
_local11 = false;
_local12 = 0;
while (_local12 < so.data.newitemnomor[indexshop][indexbuild].length) {
trace(((("bandingin : " + _local6) + " mbe : ") + so.data.newitemnomor[indexshop][indexbuild][_local12]));
if (_local7 == so.data.newitemnomor[indexshop][indexbuild][_local12]){
_local11 = true;
};
_local12++;
};
if (_local11 == true){
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = true;
} else {
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = false;
};
} else {
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = false;
};
} else {
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = false;
};
shopitemimage[(shopitemimage.length - 1)].tipe = _local6;
shopitemimage[(shopitemimage.length - 1)].nomor = int((int(_local7) + int(1)));
_local9 = 1;
while (_local9 <= 3) {
_local13 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mcequip" + _local9));
_local13.visible = false;
_local9++;
};
_local10 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mcequip" + int((int(_local6) + int(1)))));
_local10.visible = true;
_local10.gotoAndStop(shopitemimage[(shopitemimage.length - 1)].nomor);
trace(("cek hiyy : " + _local10.mc1));
shopitemimage[(shopitemimage.length - 1)].txtname.text = equipname[_local6][_local7];
shopitemimage[(shopitemimage.length - 1)].txthealth.text = equipstatushp[_local6][_local7];
shopitemimage[(shopitemimage.length - 1)].txtspeed.text = equipstatusspd[_local6][_local7];
shopitemimage[(shopitemimage.length - 1)].txtdef.text = equipstatusdef[_local6][_local7];
shopitemimage[(shopitemimage.length - 1)].txtattack.text = equipstatusatk[_local6][_local7];
shopitemimage[(shopitemimage.length - 1)].txtprice.text = equipprice[_local6][_local7];
shopitemimage[(shopitemimage.length - 1)].txtdesc.text = equipdesc[_local6][_local7];
if (indexbuild == 1){
shopitemimage[(shopitemimage.length - 1)].txtinv.text = (so.data.equipstocktemp[_local6][_local7] + "/99");
} else {
if (indexbuild == 2){
shopitemimage[(shopitemimage.length - 1)].txtinv.text = (so.data.equipstock[_local6][_local7] + "/99");
};
};
shopitemimage[(shopitemimage.length - 1)].mcsymbol.gotoAndStop(int((int(_local6) + int(1))));
if (equipemployeestatus.length > 0){
shopitemimage[(shopitemimage.length - 1)].btnsell.visible = false;
shopitemimage[(shopitemimage.length - 1)].btnbuy.visible = false;
shopitemimage[(shopitemimage.length - 1)].btnequip.addEventListener(MouseEvent.CLICK, equipthisequip);
} else {
trace(("UINDEX : " + indexbuild));
if (indexbuild == 1){
shopitemimage[(shopitemimage.length - 1)].btnequip.visible = false;
shopitemimage[(shopitemimage.length - 1)].btnsell.visible = false;
shopitemimage[(shopitemimage.length - 1)].btnbuy.addEventListener(MouseEvent.CLICK, buythisequip);
} else {
if (indexbuild == 2){
shopitemimage[(shopitemimage.length - 1)].btnequip.visible = false;
shopitemimage[(shopitemimage.length - 1)].btnbuy.visible = false;
shopitemimage[(shopitemimage.length - 1)].btnsell.addEventListener(MouseEvent.CLICK, sellthisequip);
};
};
};
_local1++;
if (_local1 > 3){
_local1 = 1;
_local2++;
};
};
_local7++;
};
_local6++;
};
};
trace(("jum slider :" + _local4));
jumlahitemslider = _local4;
loadslider();
}
public function equipthisequip(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget.parent;
_local3 = 0;
while (_local3 < so.data.employeelist.length) {
if ((((so.data.employeeliststatus[_local3][11] == equipemployeestatus[1])) && ((so.data.employeeliststatus[_local3][12] == equipemployeestatus[2])))){
trace(("sama update " + equipemployeestatus[0]));
if (so.data.employeeliststatus[_local3][6] == 1){
cekmainquest("equip stocker with armory", 1);
} else {
if (so.data.employeeliststatus[_local3][19] != 0){
cekmainquest("buy and equip for superhero security", 1);
};
cekmainquest("equip security with armory", 1);
};
if (equipemployeestatus[0] == 1){
trace(("update yg ini : " + employeeimage[equipemployeestatus[1]][equipemployeestatus[2]]));
trace(("update yg ini : " + employeeimage[equipemployeestatus[1]][equipemployeestatus[2]].head));
employeeimage[equipemployeestatus[1]][equipemployeestatus[2]].head = _local2.nomor;
} else {
if (equipemployeestatus[0] == 2){
employeeimage[equipemployeestatus[1]][equipemployeestatus[2]].armor = _local2.nomor;
} else {
employeeimage[equipemployeestatus[1]][equipemployeestatus[2]].glove = _local2.nomor;
};
};
cekequipvisiblerforthis(employeeimage[equipemployeestatus[1]][equipemployeestatus[2]]);
so.data.employeeliststatus[_local3][int((int(15) + int(equipemployeestatus[0])))] = _local2.nomor;
break;
};
_local3++;
};
var _local4 = so.data.equipstock[_local2.tipe];
var _local5 = (_local2.nomor - 1);
var _local6 = (_local4[_local5] - 1);
_local4[_local5] = _local6;
closeuiwindow();
}
public function buythisequip(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget.parent;
if (so.data.money >= int(_local2.txtprice.text)){
so.data.achievprog[13] = (so.data.achievprog[13] + 1);
cekachiev(13);
soundmoney.play(0, 1, new SoundTransform(volumesfx));
so.data.money = (so.data.money - int(_local2.txtprice.text));
cekmainquest("Spent 6000 gold", int(_local2.txtprice.text));
updatetext();
if ((((so.data.newitemnomor[indexshop][1].length > 0)) && ((so.data.newitemtipe[indexshop][1] == 1)))){
_local3 = 0;
while (_local3 < so.data.newitemnomor[indexshop][1].length) {
if ((_local2.nomor - 1) == so.data.newitemnomor[indexshop][1][_local3]){
trace(("potong ke : " + _local3));
so.data.newitemnomor[indexshop][1].splice(_local3, 1);
trace(("jade : " + so.data.newitemnomor[indexshop][1]));
break;
};
_local3++;
};
};
var _local4 = so.data.equipstocktemp[_local2.tipe];
var _local5 = (_local2.nomor - 1);
var _local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
_local4 = so.data.equipstock[_local2.tipe];
_local5 = (_local2.nomor - 1);
_local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
cleanupshopitemimage();
loaditemshop4();
};
}
public function sellthisequip(_arg1:MouseEvent){
var _local2:*;
_local2 = _arg1.currentTarget.parent;
soundmoney.play(0, 1, new SoundTransform(volumesfx));
so.data.money = (so.data.money + (int(_local2.txtprice.text) / 2));
updatetext();
var _local3 = so.data.equipstock[_local2.tipe];
var _local4 = _local2.nomor;
var _local5 = (_local3[_local4] - 1);
_local3[_local4] = _local5;
cleanupshopitemimage();
loaditemshop4();
}
public function loaditemshop2(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
tempmoney = 0;
tempshoptipeitem = 0;
tempshopnomoritem = 0;
tempshopprice = 0;
tempplacementx = 0;
tempplacementy = 0;
tempplacementbool = false;
temprotate = false;
tempstock = 0;
tempwallke = 0;
_local1 = ((sliderindex - 1) * 6);
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = 0;
if (indexdecor == 5){
_local6 = 1;
while (_local6 < so.data.build2stock.length) {
if (so.data.build2stock[_local6].length > 0){
_local7 = 0;
while (_local7 < so.data.build2stock[_local6].length) {
if (so.data.build2stock[_local6][_local7] > 0){
shopitemimage[shopitemimage.length] = new (ingamedecorstock);
shopitemimage[(shopitemimage.length - 1)].txtstock.text = so.data.build2stock[_local6][_local7];
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
shopitemimage[(shopitemimage.length - 1)].x = ((185 + (_local5 * shopitemimage[(shopitemimage.length - 1)].width)) + (_local5 * 8));
shopitemimage[(shopitemimage.length - 1)].y = ((210 + (_local4 * shopitemimage[(shopitemimage.length - 1)].height)) + (_local4 * 5));
_local8 = 1;
while (_local8 <= 8) {
_local9 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local8));
if (_local9 != null){
_local9.visible = false;
};
_local8++;
};
_local9 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local6));
_local9.visible = true;
shopitemimage[(shopitemimage.length - 1)].txtname.text = decorname[_local6][_local7];
shopitemimage[(shopitemimage.length - 1)].txtmoney.text = 0;
shopitemimage[(shopitemimage.length - 1)].tipeitem = _local6;
shopitemimage[(shopitemimage.length - 1)].nomoritem = _local7;
shopitemimage[(shopitemimage.length - 1)].buttonMode = true;
shopitemimage[(shopitemimage.length - 1)].addEventListener(MouseEvent.CLICK, buythis);
_local10 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local6));
_local10.gotoAndStop((_local7 + 1));
_local10.mouseChildren = false;
_local10.mouseEnabled = false;
++_local5;
if (_local5 >= 3){
_local4++;
_local5 = 0;
};
indexiteminbuild++;
};
_local7++;
};
};
_local6++;
};
} else {
trace(((("INDEX : " + indexdecor) + " ") + decorunlocked[indexdecor].length));
_local6 = 0;
while (_local6 < jumdecor[indexdecor]) {
if (so.data.levele >= decorunlocked[indexdecor][_local6]){
_local3++;
if (_local1 <= 0){
_local11 = false;
if (_local2 < 6){
shopitemimage[shopitemimage.length] = new (build2tab);
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
trace(("cok : " + so.data.newitemnomor[indexshop]));
trace(("cok 2: " + so.data.newitemnomor[indexshop][indexdecor]));
if ((((so.data.newitemnomor[indexshop][indexdecor].length > 0)) && ((so.data.newitemtipe[indexshop][indexdecor] == 1)))){
_local12 = false;
_local13 = 0;
while (_local13 < so.data.newitemnomor[indexshop][indexdecor].length) {
if (_local6 == so.data.newitemnomor[indexshop][indexdecor][_local13]){
_local12 = true;
};
_local13++;
};
if (_local12 == true){
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = true;
} else {
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = false;
};
} else {
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = false;
};
shopitemimage[(shopitemimage.length - 1)].x = ((185 + (_local5 * shopitemimage[(shopitemimage.length - 1)].width)) + (_local5 * 8));
shopitemimage[(shopitemimage.length - 1)].y = ((210 + (_local4 * shopitemimage[(shopitemimage.length - 1)].height)) + (_local4 * 5));
_local7 = 1;
while (_local7 <= 5) {
_local9 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local7));
if (_local9 != null){
_local9.visible = false;
};
_local7++;
};
if (indexdecor == 1){
shopitemimage[(shopitemimage.length - 1)].mc1.gotoAndStop(_local6);
} else {
if (indexdecor == 3){
shopitemimage[(shopitemimage.length - 1)].gotoAndStop(_local6);
};
};
_local9 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + indexdecor));
_local9.visible = true;
trace("1");
shopitemimage[(shopitemimage.length - 1)].txtname.text = decorname[indexdecor][_local6];
shopitemimage[(shopitemimage.length - 1)].txtmoney.text = decorprice[indexdecor][_local6];
trace(((("2 " + _local6) + " ") + so.data.build2stock[indexdecor][_local6]));
shopitemimage[(shopitemimage.length - 1)].txtstock.text = so.data.build2stock[indexdecor][_local6];
trace(((("UWEK : " + so.data.money) + " pricey : ") + decorprice[indexdecor][_local6]));
if (so.data.money < decorprice[indexdecor][(shopitemimage.length - 1)]){
shopitemimage[(shopitemimage.length - 1)].txtmoney.textColor = uint(0xFF0000);
};
shopitemimage[(shopitemimage.length - 1)].namee = decorname[indexdecor][_local6];
shopitemimage[(shopitemimage.length - 1)].tipeitem = indexdecor;
shopitemimage[(shopitemimage.length - 1)].nomoritem = _local6;
shopitemimage[(shopitemimage.length - 1)].buttonMode = true;
shopitemimage[(shopitemimage.length - 1)].addEventListener(MouseEvent.CLICK, buythis);
_local10 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + indexdecor));
_local10.gotoAndStop((_local6 + 1));
_local10.mouseChildren = false;
_local10.mouseEnabled = false;
++_local5;
if (_local5 >= 3){
_local4++;
_local5 = 0;
};
_local2++;
};
};
_local1--;
};
_local6++;
};
};
jumlahitemslider = _local3;
loadslider();
}
public function selectbuild2tipe(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
soundklik2.play(0, 1, new SoundTransform(volumesfx));
sliderindex = 1;
cleanupshopitemimage();
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
mcuibuild2.mctitle.gotoAndStop(_local2);
_local3 = 1;
while (_local3 <= 5) {
_local4 = mcuibuild2.getChildByName(("mctab" + _local3));
_local4.gotoAndStop(1);
_local3++;
};
_local4 = mcuibuild2.getChildByName(("mctab" + _local2));
_local4.gotoAndStop(2);
indexdecor = _local2;
loaditemshop2();
}
public function createbuild3(){
var _local1:*;
var _local2:*;
indexbuild = 1;
mcuibuild3.mctitle.gotoAndStop(indexbuild);
if (so.data.tutorialstep == 12){
so.data.tutorialstep++;
cektutorchangement();
};
indexiteminbuild = 0;
loaditemshop3();
mcuibuild3.btnclose.removeEventListener(MouseEvent.CLICK, closeallwindow);
mcuibuild3.btnclose.addEventListener(MouseEvent.CLICK, closeallwindow);
_local1 = 1;
while (_local1 <= 4) {
_local2 = mcuibuild3.getChildByName(("mcicon" + _local1));
_local2.gotoAndStop(_local1);
_local2.mouseChildren = false;
_local2.mouseEnabled = false;
_local2 = mcuibuild3.getChildByName(("mctab" + _local1));
if (indexbuild == _local1){
_local2.gotoAndStop(2);
} else {
_local2.gotoAndStop(1);
};
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.CLICK, selectbuild3tipe);
_local1++;
};
}
public function selectbuild3tipe(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
soundklik2.play(0, 1, new SoundTransform(volumesfx));
if (so.data.tutorialcomplete == true){
sliderindex = 1;
cleanupshopitemimage();
mcuibuild3.mctitle.gotoAndStop(_local2);
_local3 = 1;
while (_local3 <= 4) {
_local4 = mcuibuild3.getChildByName(("mctab" + _local3));
_local4.gotoAndStop(1);
_local3++;
};
_local4 = mcuibuild3.getChildByName(("mctab" + _local2));
_local4.gotoAndStop(2);
indexbuild = _local2;
indexiteminbuild = 0;
loaditemshop3();
};
}
public function loaditemshop3(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
mcuibuild3.mcapplicantbg.visible = false;
if (indexbuild == 1){
mcuibuild3.mcapplicantbg.visible = true;
};
tempspecial = 0;
tempmoney = 0;
tempshoptipeitem = 0;
tempshopnomoritem = 0;
tempshopprice = 0;
tempplacementx = 0;
tempplacementy = 0;
tempplacementbool = false;
temprotate = false;
tempstock = 0;
if (so.data.tutorialcomplete == false){
so.data.employeeaplicantsaver = [1];
so.data.employeeaplicantstatussaver = [[randRange(90, 120), randRange(4, 7), 0.7, randRange(20, 45), randRange(1, 4), 2, 0, 0]];
} else {
so.data.employeeaplicantsaver = [1, 1, 2, 2];
so.data.employeeaplicantstatussaver = [[randRange(90, 120), randRange(4, 7), 0.7, randRange(20, 45), randRange(1, 4), 2, 0, 0], [randRange(90, 120), randRange(4, 7), 0.7, randRange(20, 45), randRange(1, 4), 2, 0, 0], [randRange(170, 220), randRange(7, 10), 1, randRange(45, 75), randRange(1, 4), 2, 30, 0], [randRange(170, 220), randRange(7, 10), 1, randRange(45, 75), randRange(1, 4), 2, 30, 0]];
trace(("cek super applicant: " + so.data.superheroapplicantlock));
if (so.data.superheroapplicantlock == false){
_local7 = [undefined, 1100, 1250, 1600, 1500, 1800];
_local8 = [undefined, 40, 35, 52, 55, 60];
_local9 = [undefined, 55, 48, 65, 57, 42];
_local10 = [undefined, 50, 48, 65, 70, 80];
_local11 = randRange(1, (_local7.length - 1));
so.data.employeeaplicantsaver[so.data.employeeaplicantsaver.length] = 2;
so.data.employeeaplicantstatussaver[so.data.employeeaplicantstatussaver.length] = [_local7[_local11], _local8[_local11], _local9[_local11], 8, 1, 2, _local10[_local11], _local11];
};
};
_local1 = 0;
_local2 = 0;
trace("-2");
_local3 = [undefined, "Stock stocker", "Security"];
tempplacementbool = false;
tempinsertintocourt = false;
_local4 = ((sliderindex - 1) * 3);
_local5 = 0;
_local6 = 0;
trace(("INDE BUILD : " + indexbuild));
if ((((indexbuild == 2)) || ((indexbuild == 3)))){
trace("LOAD EINI");
_local12 = 0;
while (_local12 < so.data.employeelist.length) {
if (so.data.employeelist[_local12] != undefined){
if ((((((so.data.employeelist[_local12] == 1)) && ((indexbuild == 2)))) || ((((so.data.employeelist[_local12] == 2)) && ((indexbuild == 3)))))){
_local6++;
if (_local4 <= 0){
if (_local5 < 3){
trace(("HAHO : " + so.data.employeeliststatus[_local12]));
_local5++;
shopitemimage[_local12] = new (ingameemployeeexist);
addChildAt(shopitemimage[_local12], getChildIndex(mcpositionshop));
shopitemimage[_local12].x = (211 + (_local2 * 184));
shopitemimage[_local12].y = (250 + (_local1 * 0));
trace("1");
shopitemimage[_local12].txtname.text = so.data.employeeliststatus[_local12][0];
shopitemimage[_local12].txthealth.text = so.data.employeeliststatus[_local12][1];
shopitemimage[_local12].txtatk.text = so.data.employeeliststatus[_local12][14];
shopitemimage[_local12].txtdef.text = so.data.employeeliststatus[_local12][2];
shopitemimage[_local12].txtspeed.text = so.data.employeeliststatus[_local12][3];
trace("2");
shopitemimage[_local12].txtlevel.text = ("Lv." + so.data.employeeliststatus[_local12][7]);
shopitemimage[_local12].mcbarexp.mc1.width = ((so.data.employeeliststatus[_local12][9] / so.data.employeeliststatus[_local12][10]) * 48);
shopitemimage[_local12].head = so.data.employeeliststatus[_local12][16];
shopitemimage[_local12].armor = so.data.employeeliststatus[_local12][17];
shopitemimage[_local12].glove = so.data.employeeliststatus[_local12][18];
shopitemimage[_local12].thisx = so.data.employeeliststatus[_local12][11];
shopitemimage[_local12].thisy = so.data.employeeliststatus[_local12][12];
shopitemimage[_local12].btnassign.visible = false;
shopitemimage[_local12].employeeke = _local12;
shopitemimage[_local12].btnmove.addEventListener(MouseEvent.CLICK, movethisemployeefromtabber);
shopitemimage[_local12].employeene = employeeimage[so.data.employeeliststatus[_local12][11]][so.data.employeeliststatus[_local12][12]];
loadequipbuttonforthis(shopitemimage[_local12].employeene, shopitemimage[_local12]);
shopitemimage[_local12].btnfire.addEventListener(MouseEvent.CLICK, fireemployeelist);
shopitemimage[_local12].typee = so.data.employeelist[_local12];
trace("3");
if (so.data.employeelist[_local12] == 1){
shopitemimage[_local12].mc2.visible = false;
shopitemimage[_local12].mc1.gotoAndStop(so.data.employeeliststatus[_local12][8]);
shopitemimage[_local12].addEventListener(Event.ENTER_FRAME, employeelistframer);
if (so.data.employeeliststatus[_local12][15] == true){
shopitemimage[_local12].mctipejob.gotoAndStop(2);
} else {
shopitemimage[_local12].mctipejob.gotoAndStop(1);
};
} else {
shopitemimage[_local12].mc1.visible = false;
shopitemimage[_local12].mc2.gotoAndStop(so.data.employeeliststatus[_local12][8]);
shopitemimage[_local12].addEventListener(Event.ENTER_FRAME, employeelistframer);
shopitemimage[_local12].mctipejob.visible = false;
};
shopitemimage[_local12].txtsalary.text = so.data.employeeliststatus[_local12][5];
trace("4");
_local2++;
};
};
_local4--;
};
};
_local12++;
};
} else {
if (indexbuild == 5){
_local12 = 0;
while (_local12 < so.data.employeeonstock.length) {
trace(("LOAD ISI : " + so.data.employeeonstock[_local12]));
shopitemimage[_local12] = new (ingameemployeeexist);
addChildAt(shopitemimage[_local12], getChildIndex(mcpositionshop));
shopitemimage[_local12].saveke = _local12;
shopitemimage[_local12].namee = so.data.employeeonstock[_local12][0];
shopitemimage[_local12].typee = so.data.employeeonstock[_local12][1];
shopitemimage[_local12].levele = so.data.employeeonstock[_local12][2];
shopitemimage[_local12].health = so.data.employeeonstock[_local12][3];
shopitemimage[_local12].speed = so.data.employeeonstock[_local12][4];
shopitemimage[_local12].attack = so.data.employeeonstock[_local12][5];
shopitemimage[_local12].defense = so.data.employeeonstock[_local12][6];
shopitemimage[_local12].special = so.data.employeeonstock[_local12][7];
shopitemimage[_local12].kepalane = so.data.employeeonstock[_local12][8];
shopitemimage[_local12].expe = so.data.employeeonstock[_local12][9];
shopitemimage[_local12].expneeded = so.data.employeeonstock[_local12][10];
shopitemimage[_local12].head = so.data.employeeonstock[_local12][11];
shopitemimage[_local12].glove = so.data.employeeonstock[_local12][12];
shopitemimage[_local12].armor = so.data.employeeonstock[_local12][13];
shopitemimage[_local12].salary = so.data.employeeonstock[_local12][14];
shopitemimage[_local12].lastwish = so.data.employeeonstock[_local12][15];
shopitemimage[_local12].area = so.data.employeeonstock[_local12][16];
shopitemimage[_local12].x = (208 + (_local2 * 280));
shopitemimage[_local12].y = (213 + (_local1 * 129));
shopitemimage[_local12].kepalane = so.data.employeeonstock[_local12][8];
shopitemimage[_local12].txtname.text = so.data.employeeonstock[_local12][0];
shopitemimage[_local12].txthealth.text = so.data.employeeonstock[_local12][3];
shopitemimage[_local12].txtdef.text = so.data.employeeonstock[_local12][6];
shopitemimage[_local12].txtspeed.text = so.data.employeeonstock[_local12][4];
shopitemimage[_local12].txtatk.text = so.data.employeeonstock[_local12][5];
shopitemimage[_local12].txtlevel.text = ("Lv." + so.data.employeeonstock[_local12][2]);
shopitemimage[_local12].mcbarexp.mc1.width = ((so.data.employeeonstock[_local12][9] / so.data.employeeonstock[_local12][10]) * 48);
shopitemimage[_local12].head = so.data.employeeonstock[_local12][11];
shopitemimage[_local12].armor = so.data.employeeonstock[_local12][12];
shopitemimage[_local12].glove = so.data.employeeonstock[_local12][13];
shopitemimage[_local12].typee = so.data.employeeonstock[_local12][1];
shopitemimage[_local12].btnfire.visible = false;
shopitemimage[_local12].btnassign.addEventListener(MouseEvent.CLICK, assignemployeagain);
if (shopitemimage[_local12].typee == 1){
shopitemimage[_local12].mc2.visible = false;
shopitemimage[_local12].mc1.gotoAndStop(so.data.employeeonstock[_local12][8]);
shopitemimage[_local12].addEventListener(Event.ENTER_FRAME, employeelistframer);
if (so.data.employeeonstock[_local12][15] == true){
shopitemimage[_local12].mctipejob.gotoAndStop(2);
} else {
shopitemimage[_local12].mctipejob.gotoAndStop(1);
};
} else {
shopitemimage[_local12].mc1.visible = false;
shopitemimage[_local12].mc2.gotoAndStop(so.data.employeeonstock[_local12][8]);
shopitemimage[_local12].addEventListener(Event.ENTER_FRAME, employeelistframer);
shopitemimage[_local12].mctipejob.visible = false;
};
shopitemimage[_local12].txtsalary.text = so.data.employeeonstock[_local12][14];
trace("4");
_local2++;
if (_local2 > 1){
_local2 = 0;
_local1++;
};
_local12++;
};
} else {
if (indexbuild == 4){
_local3 = [undefined, "Stock stocker", "Security"];
_local12 = 0;
while (_local12 < so.data.unfulfillwish.length) {
_local6++;
if (_local5 < 6){
_local5++;
shopitemimage[_local12] = new (build34tab);
addChildAt(shopitemimage[_local12], getChildIndex(mcpositionshop));
shopitemimage[_local12].x = (208 + (_local2 * 280));
shopitemimage[_local12].y = (213 + (_local1 * 129));
shopitemimage[_local12].txtname.text = so.data.unfulfillwish[_local12][0];
shopitemimage[_local12].txtlastwish.text = so.data.unfulfillwish[_local12][1];
shopitemimage[_local12].txtlvl.text = ("Lv." + so.data.unfulfillwish[_local12][2]);
shopitemimage[_local12].txttipe.text = _local3[so.data.unfulfillwish[_local12][3]];
shopitemimage[_local12].cost = so.data.unfulfillwish[_local12][5];
shopitemimage[_local12].indexke = _local12;
shopitemimage[_local12].btnfulfill.addEventListener(MouseEvent.CLICK, fulfillwish);
if (so.data.unfulfillwish[_local12][4] == true){
shopitemimage[_local12].mcdone.gotoAndPlay(2);
shopitemimage[_local12].btnfulfill.visible = false;
} else {
shopitemimage[_local12].mcdone.gotoAndStop(1);
};
trace("5");
_local2++;
if (_local2 > 1){
_local2 = 0;
_local1++;
};
};
_local12++;
};
} else {
if (indexbuild == 1){
_local13 = 0;
_local12 = 0;
while (_local12 < so.data.employeeaplicantsaver.length) {
_local6++;
shopitemimage[_local12] = new (build3tab);
addChildAt(shopitemimage[_local12], getChildIndex(mcpositionshop));
shopitemimage[_local12].x = (236 + (_local2 * 166));
shopitemimage[_local12].y = (251 + (_local1 * 98));
trace(("TUTOR COMPLETE CEK : " + so.data.tutorialstep));
if ((((so.data.tutorialcomplete == false)) && ((so.data.tutorialstep == 13)))){
if (_local12 < 2){
shopitemimage[(shopitemimage.length - 1)].mchighlighter.gotoAndPlay(2);
} else {
shopitemimage[(shopitemimage.length - 1)].mchighlighter.gotoAndStop(1);
};
} else {
shopitemimage[(shopitemimage.length - 1)].mchighlighter.gotoAndStop(1);
};
shopitemimage[_local12].txtname.text = randname[randRange(0, (randname.length - 1))];
shopitemimage[_local12].txthealth.text = so.data.employeeaplicantstatussaver[_local12][0];
shopitemimage[_local12].txtdefense.text = so.data.employeeaplicantstatussaver[_local12][1];
shopitemimage[_local12].txtspeed.text = so.data.employeeaplicantstatussaver[_local12][2];
shopitemimage[_local12].txtattack.text = so.data.employeeaplicantstatussaver[_local12][6];
shopitemimage[_local12].txtlastwish.text = randwish[randRange(0, (randwish.length - 1))];
shopitemimage[_local12].txtsalary.text = so.data.employeeaplicantstatussaver[_local12][3];
shopitemimage[_local12].txttype.text = _local3[so.data.employeeaplicantsaver[_local12]];
shopitemimage[_local12].txtlvl.text = ("Lv." + so.data.employeeaplicantstatussaver[_local12][4]);
shopitemimage[_local12].btnhire.addEventListener(MouseEvent.CLICK, hirethisemployee);
shopitemimage[_local12].head = 0;
shopitemimage[_local12].armor = 0;
shopitemimage[_local12].glove = 0;
shopitemimage[_local12].namee = shopitemimage[_local12].txtname.text;
shopitemimage[_local12].attack = so.data.employeeaplicantstatussaver[_local12][6];
shopitemimage[_local12].health = shopitemimage[_local12].txthealth.text;
shopitemimage[_local12].defense = shopitemimage[_local12].txtdefense.text;
shopitemimage[_local12].speed = shopitemimage[_local12].txtspeed.text;
shopitemimage[_local12].lastwish = shopitemimage[_local12].txtlastwish.text;
shopitemimage[_local12].salary = shopitemimage[_local12].txtsalary.text;
shopitemimage[_local12].typee = so.data.employeeaplicantsaver[_local12];
shopitemimage[_local12].levele = so.data.employeeaplicantstatussaver[_local12][4];
shopitemimage[_local12].areane = so.data.employeeaplicantstatussaver[_local12][5];
shopitemimage[_local12].special = so.data.employeeaplicantstatussaver[_local12][7];
if (so.data.employeeaplicantsaver[_local12] == 1){
shopitemimage[_local12].mc2.visible = false;
shopitemimage[_local12].mcjobtype.visible = false;
shopitemimage[_local12].mc1.gotoAndStop(randRange(1, shopitemimage[_local12].mc1.totalFrames));
shopitemimage[_local12].kepalake = shopitemimage[_local12].mc1.currentFrame;
shopitemimage[_local12].addEventListener(Event.ENTER_FRAME, employeelistframer);
} else {
shopitemimage[_local12].mc1.visible = false;
shopitemimage[_local12].mcjobtype.visible = false;
if (so.data.employeeaplicantstatussaver[_local12][7] != 0){
shopitemimage[_local12].mc2.gotoAndStop(int((int(5) + int(so.data.employeeaplicantstatussaver[_local12][7]))));
shopitemimage[_local12].kepalake = shopitemimage[_local12].mc2.currentFrame;
} else {
shopitemimage[_local12].mc2.gotoAndStop(randRange(1, 5));
shopitemimage[_local12].kepalake = shopitemimage[_local12].mc2.currentFrame;
};
shopitemimage[_local12].addEventListener(Event.ENTER_FRAME, employeelistframer);
};
_local1++;
if (_local1 > 1){
_local1 = 0;
_local2++;
};
_local12++;
};
};
};
};
};
jumlahitemslider = _local6;
loadslider();
}
public function movethisemployeefromtabber(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = _arg1.currentTarget.parent;
_local3 = so.data.employeeliststatus[_local2.employeeke][11];
_local4 = so.data.employeeliststatus[_local2.employeeke][12];
trace(("outside : " + so.data.employeeliststatus[_local2.employeeke][15]));
if (so.data.employeeliststatus[_local2.employeeke][15] == false){
if (employeeimage[_local3][_local4].currentLabel == "idle1"){
cleanupshopitemimage();
closeuiwindow();
toolcommand = "move";
mcpressesc.visible = true;
movethisemployee(employeeimage[_local3][_local4]);
};
} else {
if (so.data.employeeliststatus[_local2.employeeke][15] == true){
_local5 = decorimage[so.data.boothreferto[_local3][_local4][0]][so.data.boothreferto[_local3][_local4][1]];
_local5.adaemployee = false;
so.data.boothtipe[_local3][_local4] = "booth";
so.data.employeelist.splice(_local2.employeeke, 1);
so.data.employeeliststatus.splice(_local2.employeeke, 1);
employeeimage[_local3][_local4].removeEventListener(Event.ENTER_FRAME, employeebehavior);
trace("0");
employeeimage[_local3][_local4].removeEventListener(Event.ENTER_FRAME, securitybehavior);
bwatsuararespondemployee(employeeimage[_local3][_local4].kepalane);
tempmoney = 0;
createemployeebool = true;
trace("a");
tempshoptipeitem = 3;
tempnamee = employeeimage[_local3][_local4].namee;
temphealth = employeeimage[_local3][_local4].health;
tempdefense = employeeimage[_local3][_local4].defense;
tempspeed = employeeimage[_local3][_local4].speed;
templastwish = employeeimage[_local3][_local4].lastwish;
tempsalary = employeeimage[_local3][_local4].salary;
temptypee = employeeimage[_local3][_local4].typee;
templevele = employeeimage[_local3][_local4].levele;
tempkepala = employeeimage[_local3][_local4].kepalane;
tempareane = employeeimage[_local3][_local4].area;
tempattack = employeeimage[_local3][_local4].attack;
temphead = employeeimage[_local3][_local4].head;
temparmor = employeeimage[_local3][_local4].armor;
tempglove = employeeimage[_local3][_local4].glove;
trace("b");
editdecortemp = [(employeeimage[_local3][_local4].miliktilex - firsttile[0]), (employeeimage[_local3][_local4].miliktiley - firsttile[1])];
trace("c");
cleanupareastocking();
employeeimage[(employeeimage[_local3][_local4].miliktilex - firsttile[0])][(employeeimage[_local3][_local4].miliktiley - firsttile[1])].removeEventListener(Event.ENTER_FRAME, employeebehavior);
employeeimage[(employeeimage[_local3][_local4].miliktilex - firsttile[0])][(employeeimage[_local3][_local4].miliktiley - firsttile[1])].removeEventListener(Event.ENTER_FRAME, securitybehavior);
employeeimage[(employeeimage[_local3][_local4].miliktilex - firsttile[0])][(employeeimage[_local3][_local4].miliktiley - firsttile[1])].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
employeeimage[(employeeimage[_local3][_local4].miliktilex - firsttile[0])][(employeeimage[_local3][_local4].miliktiley - firsttile[1])].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
employeeimage[(employeeimage[_local3][_local4].miliktilex - firsttile[0])][(employeeimage[_local3][_local4].miliktiley - firsttile[1])].removeEventListener(MouseEvent.CLICK, clickdecor);
trace("d");
_local5.removeChild(employeeimage[_local3][_local4]);
employeeimage[_local3][_local4] = null;
cleanupshopitemimage();
closeuiwindow();
bwatprebuybuild3();
};
};
}
public function fireemployeelist(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.currentTarget.parent;
_local2 = _local2.employeeke;
trace(("employee ke : " + _local2));
_local3 = so.data.employeeliststatus[_local2][11];
_local4 = so.data.employeeliststatus[_local2][12];
trace(((("c " + _local3) + " ") + _local4));
so.data.boothreferto[_local3][_local4] = "";
so.data.boothtipe[_local3][_local4] = "";
so.data.boothnomor[_local3][_local4] = "";
so.data.boothstock[_local3][_local4] = "";
so.data.boothreferto[_local3][_local4] = "";
trace("a");
cleanupareastocking();
employeeimage[_local3][_local4].removeEventListener(Event.ENTER_FRAME, employeebehavior);
employeeimage[_local3][_local4].removeEventListener(Event.ENTER_FRAME, securitybehavior);
employeeimage[_local3][_local4].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
employeeimage[_local3][_local4].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
employeeimage[_local3][_local4].removeEventListener(MouseEvent.CLICK, clickdecor);
mcgaia.removeChild(employeeimage[_local3][_local4]);
employeeimage[_local3][_local4] = null;
trace("b");
so.data.employeelist.splice(_local2, 1);
so.data.employeeliststatus.splice(_local2, 1);
cleanupshopitemimage();
loaditemshop3();
}
public function fulfillwish(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget.parent;
if (so.data.money >= _local2.cost){
so.data.money = (so.data.money - _local2.cost);
cekmainquest("Spent 6000 gold", _local2.cost);
so.data.unfulfillwish[_local2.indexke][4] = true;
updatetext();
};
cleanupshopitemimage();
loaditemshop3();
}
public function assignemployeagain(_arg1:MouseEvent){
var _local2:*;
_local2 = _arg1.currentTarget.parent;
bwatsuararespondemployee(_local2.kepalane);
tempmoney = 0;
createemployeebool = true;
tempshoptipeitem = 3;
tempnamee = _local2.namee;
temphealth = _local2.health;
tempdefense = _local2.defense;
tempspeed = _local2.speed;
templastwish = _local2.lastwish;
tempsalary = _local2.salary;
temptypee = _local2.typee;
templevele = _local2.levele;
tempkepala = _local2.kepalane;
tempareane = _local2.area;
tempattack = _local2.attack;
temphead = _local2.head;
temparmor = _local2.armor;
tempglove = _local2.glove;
assignagainemployee = _local2.saveke;
cleanupshopitemimage();
closeuiwindow();
bwatprebuybuild3();
}
public function employeelistframer(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = false;
_local3 = _arg1.currentTarget;
trace(("typee : " + _local3.typee));
_local4 = _arg1.currentTarget.getChildByName(("mc" + _local3.typee));
_local4 = _local4.getChildAt(0);
if (_local4 != null){
if (_local3.head == 0){
_local4.mchead.visible = false;
} else {
_local4.mchead.gotoAndStop(_local3.head);
};
if (_local3.armor == 0){
_local4.mcarmor.visible = false;
} else {
_local4.mcarmor.gotoAndStop(_local3.armor);
};
if (_local3.glove == 0){
_local4.mcglove.visible = false;
} else {
_local4.mcglove.gotoAndStop(_local3.glove);
};
_local2 = true;
};
if (_local2 == true){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, employeelistframer);
};
}
public function hirethisemployee(_arg1:Event){
var _local2:*;
if (so.data.tutorialstep == 13){
so.data.tutorialstep++;
cektutorial();
cektutorchangement();
};
soundklik.play(0, 1, new SoundTransform(volumesfx));
_local2 = _arg1.currentTarget.parent;
tempmoney = _local2.salary;
tempspecial = _local2.special;
tempshoptipeitem = indexbuild;
tempnamee = _local2.namee;
temphealth = _local2.health;
tempdefense = _local2.defense;
tempspeed = _local2.speed;
templastwish = _local2.lastwish;
tempsalary = _local2.salary;
temptypee = _local2.typee;
templevele = _local2.levele;
tempkepala = _local2.kepalake;
tempareane = _local2.areane;
tempattack = _local2.attack;
temphead = _local2.head;
temparmor = _local2.armor;
tempglove = _local2.glove;
cleanupshopitemimage();
closeuiwindow();
bwatprebuybuild3();
}
public function removetutorialplacement(){
var _local2:*;
var _local3:*;
var _local1:* = "";
_local2 = 0;
while (_local2 < so.data.widthemart) {
_local3 = 0;
while (_local3 < so.data.heightemart) {
tileimage[(_local2 + firsttile[0])][(_local3 + firsttile[1])].mcblinking.gotoAndStop(1);
_local3++;
};
_local2++;
};
}
public function createtutorialplacement(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = "";
_local2 = 0;
while (_local2 < so.data.widthemart) {
_local3 = 0;
while (_local3 < so.data.heightemart) {
if (((((!((so.data.boothtipe[_local2][_local3] == ""))) && (!((so.data.boothtipe[_local2][_local3] == undefined))))) && (!((so.data.boothtipe[_local2][_local3] == "emp"))))){
if (so.data.boothtipe[_local2][_local3] == 1){
trace(((so.data.boothtipe[_local2][_local3] + " ") + so.data.boothnomor[_local2][_local3]));
_local1 = decorimage[_local2][_local3];
trace(("HA TUTORIAL PLACEMENT: " + _local1));
//unresolved jump
};
};
_local3++;
};
_local2++;
};
_local2 = (0 - 2);
while (_local2 <= 2) {
_local3 = (0 - 2);
while (_local3 <= 2) {
_local4 = 0;
_local5 = 0;
_local4 = int(((int(_local1.miliktilex) - int(firsttile[0])) + int(_local2)));
_local5 = int(((int(_local1.miliktiley) - int(firsttile[1])) + int(_local3)));
if ((((((((_local4 >= 0)) && ((_local5 >= 0)))) && ((_local4 < widthemart)))) && ((_local5 < heightemart)))){
tileimage[(_local1.miliktilex + _local2)][(_local1.miliktiley + _local3)].mcblinking.gotoAndPlay(2);
};
_local3++;
};
_local2++;
};
}
public function bwatprebuybuild3(){
createemployeebool = true;
trace(((("TYPE : " + temptypee) + " ") + tempkepala));
prebuyimage[0] = new (employeelinkage[temptypee][tempkepala]);
mcgaia.addChildAt(prebuyimage[0], mcgaia.getChildIndex(mcgaia.mcpositionshop));
prebuyimage[0].sizex = 0;
prebuyimage[0].sizey = 0;
trace(("TEMP AREA : " + tempareane));
prebuyimage[0].mcareastocking.width = (prebuyimage[0].mcareastocking.width + (prebuyimage[0].mcareastocking.width * (tempareane * 2)));
prebuyimage[0].mcareastocking.height = (prebuyimage[0].mcareastocking.height + (prebuyimage[0].mcareastocking.height * (tempareane * 2)));
if (temphead == 0){
prebuyimage[0].mchead.visible = false;
} else {
prebuyimage[0].mchead.gotoAndStop(temphead);
};
if (temparmor == 0){
prebuyimage[0].mcarmor.visible = false;
} else {
prebuyimage[0].mcarmor.gotoAndStop(temparmor);
};
if (tempglove == 0){
prebuyimage[0].mcglove.visible = false;
} else {
prebuyimage[0].mcglove.gotoAndStop(tempglove);
};
prebuyimage[0].mcarrow.visible = true;
prebuyimage[0].stickto = [];
prebuyimage[0].x = mouseX;
prebuyimage[0].y = mouseY;
pausegame = true;
makeallalpha(0.5);
prebuyimage[0].addEventListener(Event.ENTER_FRAME, prebuyfollowmouse);
stage.removeEventListener(MouseEvent.MOUSE_UP, prebuyclickmouse);
stage.addEventListener(MouseEvent.MOUSE_UP, prebuyclickmouse);
}
public function createbuild1(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
indexbuild = 1;
if ((((so.data.tutorialcomplete == false)) && ((((so.data.tutorialstep == 2)) || ((so.data.tutorialstep == 17)))))){
if (so.data.tutorialstep == 17){
indexbuild = 6;
};
so.data.tutorialstep++;
cektutorchangement();
};
mcuibuild1.mctitle.gotoAndStop(indexbuild);
mcuibuild1.mctab1.gotoAndStop(2);
mcuibuild1.btnclose.removeEventListener(MouseEvent.CLICK, closeallwindow);
mcuibuild1.btnclose.addEventListener(MouseEvent.CLICK, closeallwindow);
_local1 = 1;
while (_local1 <= 8) {
_local3 = mcuibuild1.getChildByName(("mcicon" + _local1));
_local4 = mcuibuild1.getChildByName(("mctab" + _local1));
_local5 = mcuibuild1.getChildByName(("btnnew" + _local1));
_local3.visible = false;
_local4.visible = false;
_local5.visible = false;
_local1++;
};
_local2 = 1;
_local1 = 1;
while (_local1 <= 8) {
_local6 = false;
_local7 = 0;
while (_local7 <= boothunlocked[_local1].length) {
if ((((((boothunlocked[_local1][_local7] <= so.data.levele)) || ((_local1 == 6)))) || ((_local1 == 7)))){
_local6 = true;
};
_local7++;
};
_local3 = mcuibuild1.getChildByName(("mcicon" + _local2));
_local4 = mcuibuild1.getChildByName(("mctab" + _local2));
_local5 = mcuibuild1.getChildByName(("btnnew" + _local2));
if (_local6 == true){
_local3.visible = true;
_local4.visible = true;
_local3.gotoAndStop(_local1);
_local3.mouseChildren = false;
_local3.mouseEnabled = false;
_local4.gotoAndStop(1);
_local4.buttonMode = true;
_local4.addEventListener(MouseEvent.CLICK, selectbuild1tipe);
_local4.tipeshop = _local1;
if (so.data.newitemtipe[indexshop][_local1] == 1){
_local5.visible = true;
} else {
_local5.visible = false;
};
_local2++;
};
_local1++;
};
mcuibuild1.mctab1.gotoAndStop(2);
mcuibuild1.mctitle.gotoAndStop(1);
indexiteminbuild = 0;
loaditemshop1();
}
public function createbuild6(){
var _local1:*;
var _local2:*;
if (so.data.tutorialstep == 6){
so.data.tutorialstep++;
cektutorchangement();
};
mcuibuild6.btnclose.removeEventListener(MouseEvent.CLICK, closeallwindow);
mcuibuild6.btnclose.addEventListener(MouseEvent.CLICK, closeallwindow);
mcuibuild6.mctitle.gotoAndStop(indexbuild);
mcuibuild6.mctab1.gotoAndStop(2);
indexbuild = 1;
indexiteminbuild = 0;
loaditemshop6();
_local1 = 1;
while (_local1 <= 6) {
_local2 = mcuibuild6.getChildByName(("mcicon" + _local1));
_local2.gotoAndStop(_local1);
_local2.mouseChildren = false;
_local2.mouseEnabled = false;
_local2 = mcuibuild6.getChildByName(("mctab" + _local1));
_local2.gotoAndStop(1);
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.CLICK, selectbuild6tipe);
_local1++;
};
mcuibuild6.mctab1.gotoAndStop(2);
mcuibuild6.mctitle.gotoAndStop(1);
}
public function selectbuild6tipe(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
soundklik2.play(0, 1, new SoundTransform(volumesfx));
if (so.data.tutorialcomplete == true){
sliderindex = 1;
cleanupshopitemimage();
mcuibuild6.mctitle.gotoAndStop(_local2);
_local3 = 1;
while (_local3 <= 4) {
_local4 = mcuibuild6.getChildByName(("mctab" + _local3));
_local4.gotoAndStop(1);
_local3++;
};
_local4 = mcuibuild6.getChildByName(("mctab" + _local2));
_local4.gotoAndStop(2);
indexbuild = _local2;
indexiteminbuild = 0;
loaditemshop6();
};
}
public function closeallwindow(_arg1:MouseEvent):void{
pausegame = false;
soundclose.play(0, 1, new SoundTransform(volumesfx));
if ((((oncloning == false)) && ((so.data.tutorialcomplete == true)))){
closeuiwindow();
};
}
public function closeuiwindow(){
var _local1:*;
var _local2:*;
var _local3:*;
toolcommand = "";
mcmouse.gotoAndStop(1);
Mouse.show();
mcstockoption.gotoAndStop(1);
mcitemexp.visible = false;
cleanupprebuyfollowmouse();
resettilesallow();
cleanupshopitemimage();
_local1 = 1;
while (_local1 <= 8) {
_local2 = getChildByName(("mcuibuild" + _local1));
if (_local2 != null){
_local2.removeEventListener(Event.ENTER_FRAME, uianimationtime);
};
_local1++;
};
_local1 = 1;
while (_local1 < so.data.newitemtipe.length) {
if (so.data.newitem[_local1] == 0){
trace(("length : " + so.data.newitemnomor[_local1].length));
if (so.data.newitemnomor[_local1].length > 0){
_local3 = 1;
while (_local3 < so.data.newitemtipe[_local1].length) {
so.data.newitemtipe[_local1][_local3] = 0;
so.data.newitemnomor[_local1][_local3] = [];
_local3++;
};
};
};
trace(("HASIL ITEM NOMOR : " + so.data.newitemnomor[_local1]));
_local1++;
};
ceknew();
bwatui2();
indexbuild = 0;
indexshop = 0;
tuberegistered = false;
oncloning = false;
equipemployeestatus = [];
clickstocktipe = -1;
clickstocknomor = -1;
}
public function selectbuild1tipe(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.currentTarget.tipeshop;
soundklik2.play(0, 1, new SoundTransform(volumesfx));
if (so.data.tutorialcomplete == true){
if ((((_local2 == 2)) && ((so.data.foodcourtlock == true)))){
bwatmcinfo("you need to research synthetic food first to unlock foodcourt tab");
} else {
if ((((((_local2 == 2)) && ((so.data.foodcourtlock == false)))) || (!((_local2 == 2))))){
sliderindex = 1;
cleanupshopitemimage();
mcuibuild1.mctitle.gotoAndStop(_local2);
_local3 = 1;
while (_local3 <= 7) {
_local4 = mcuibuild1.getChildByName(("mctab" + _local3));
_local4.gotoAndStop(1);
_local3++;
};
_arg1.currentTarget.gotoAndStop(2);
indexbuild = _local2;
indexiteminbuild = 0;
loaditemshop1();
};
};
};
}
public function bwatmcinfo(_arg1:String){
mcinfo.visible = true;
mcinfo.txt1.text = _arg1;
mcinfo.btncontinue.removeEventListener(MouseEvent.CLICK, continuenews);
mcinfo.btncontinue.addEventListener(MouseEvent.CLICK, continuenews);
}
public function continuenews(_arg1:MouseEvent):void{
mcinfo.visible = false;
}
public function cleanupshopitemimage(){
var _local1:*;
_local1 = 0;
while (_local1 < shopitemimage.length) {
if (shopitemimage[_local1] != null){
shopitemimage[_local1].removeEventListener(Event.ENTER_FRAME, employeelistframer);
removeChild(shopitemimage[_local1]);
shopitemimage[_local1] = null;
};
_local1++;
};
shopitemimage = [];
}
public function loaditemshop6(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
_local1 = [];
_local2 = [];
_local3 = -1;
_local4 = 1;
while (_local4 < boothjumitem.length) {
_local1[_local4] = [];
_local2[_local4] = [];
_local10 = 0;
while (_local10 < boothjumitem[_local4]) {
_local1[_local4][_local10] = 0;
_local2[_local4][_local10] = 0;
_local10++;
};
_local4++;
};
trace(("INDEX BUILD : " + indexbuild));
_local5 = [undefined, undefined, 1, 2, 3, 4, 5, 6];
_local4 = 0;
while (_local4 < so.data.widthemart) {
_local10 = 0;
while (_local10 < so.data.heightemart) {
_local11 = false;
if (indexbuild == 1){
_local11 = true;
} else {
if (_local5[indexbuild] == so.data.boothtipe[_local4][_local10]){
_local11 = true;
};
};
if (_local11 == true){
if (((((((!((so.data.boothapa[_local4][_local10] == "decor"))) && (!((so.data.boothtipe[_local4][_local10] == ""))))) && (!((so.data.boothtipe[_local4][_local10] == 6))))) && (!((so.data.boothtipe[_local4][_local10] == "emp"))))){
var _local16 = _local1[so.data.boothtipe[_local4][_local10]];
var _local17 = so.data.boothnomor[_local4][_local10];
var _local18 = (_local16[_local17] + 1);
_local16[_local17] = _local18;
_local2[so.data.boothtipe[_local4][_local10]][so.data.boothnomor[_local4][_local10]] = (_local2[so.data.boothtipe[_local4][_local10]][so.data.boothnomor[_local4][_local10]] + so.data.boothstock[_local4][_local10]);
};
};
_local10++;
};
_local4++;
};
if (clickstocktipe != -1){
_local12 = 0;
_local13 = 0;
_local4 = 1;
while (_local4 < boothjumitem.length) {
_local10 = 0;
while (_local10 < boothjumitem[_local4]) {
if (_local1[_local4][_local10] > 0){
++_local12;
if (_local12 > 3){
_local12 = 1;
_local13++;
};
if ((((_local4 == clickstocktipe)) && ((_local10 == clickstocknomor)))){
_local3 = _local13;
};
};
_local10++;
};
_local4++;
};
};
_local6 = ((sliderindex - 1) * 3);
_local7 = 0;
_local8 = 0;
_local9 = 0;
_local4 = 1;
while (_local4 < boothjumitem.length) {
_local10 = 0;
while (_local10 < boothjumitem[_local4]) {
if (_local1[_local4][_local10] > 0){
_local7++;
if ((((_local9 <= 2)) && ((_local6 <= 0)))){
shopitemimage[shopitemimage.length] = new (build6tab);
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
if (so.data.tutorialstep == 7){
shopitemimage[(shopitemimage.length - 1)].mcblink.gotoAndPlay(2);
shopitemimage[(shopitemimage.length - 1)].mcblink.mouseChildren = false;
shopitemimage[(shopitemimage.length - 1)].mcblink.mouseEnabled = false;
} else {
shopitemimage[(shopitemimage.length - 1)].mcblink.gotoAndStop(1);
};
shopitemimage[(shopitemimage.length - 1)].x = (182 + (179 * _local9));
shopitemimage[(shopitemimage.length - 1)].y = (273 + (130 * _local8));
_local14 = 1;
while (_local14 <= 7) {
_local15 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local14));
if (_local15 != null){
_local15.visible = false;
};
_local14++;
};
_local15 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local4));
_local15.visible = true;
_local15.gotoAndStop((_local10 + 1));
shopitemimage[(shopitemimage.length - 1)].txtname.text = (((boothname[_local4][_local10] + "(") + _local1[_local4][_local10]) + ")");
shopitemimage[(shopitemimage.length - 1)].txt1.text = _local1[_local4][_local10];
shopitemimage[(shopitemimage.length - 1)].txt2.text = ((_local2[_local4][_local10] + "/") + (boothmaxstock[_local4][_local10] * _local1[_local4][_local10]));
shopitemimage[(shopitemimage.length - 1)].txt3.text = so.data.build1stockwarehouse[_local4][_local10];
shopitemimage[(shopitemimage.length - 1)].txt4.text = boothprice[_local4][_local10];
shopitemimage[(shopitemimage.length - 1)].tipe = _local4;
shopitemimage[(shopitemimage.length - 1)].nomor = _local10;
if (((!((so.data.build1stockwarehouse[_local4][_local10] == 0))) || (!((_local2[_local4][_local10] == 0))))){
shopitemimage[(shopitemimage.length - 1)].mcoutofstock.visible = false;
};
shopitemimage[(shopitemimage.length - 1)].btnstock.addEventListener(MouseEvent.CLICK, openstocktime);
shopitemimage[(shopitemimage.length - 1)].mcstocktime.btninstance.addEventListener(MouseEvent.MOUSE_OUT, instancestocktimeout);
shopitemimage[(shopitemimage.length - 1)].mcstocktime.btninstance.addEventListener(MouseEvent.MOUSE_OVER, instancestocktimeover);
shopitemimage[(shopitemimage.length - 1)].mcstocktime.btninstance.addEventListener(MouseEvent.CLICK, instancestocktimeclick);
if (so.data.build1stocktime[_local4][_local10] == 0){
shopitemimage[(shopitemimage.length - 1)].btnstock.visible = true;
shopitemimage[(shopitemimage.length - 1)].mcstocktime.visible = false;
} else {
shopitemimage[(shopitemimage.length - 1)].btnstock.visible = false;
shopitemimage[(shopitemimage.length - 1)].mcstocktime.visible = true;
shopitemimage[(shopitemimage.length - 1)].mcstocktime.txt1.text = so.data.build1stocktocum[_local4][_local10];
shopitemimage[(shopitemimage.length - 1)].mcstocktime.mcmask.width = ((1 - (so.data.build1stocktime[_local4][_local10] / so.data.build1stocktimetemp[_local4][_local10])) * 55);
textthistime(shopitemimage[(shopitemimage.length - 1)].mcstocktime.txt2, so.data.build1stocktime[_local4][_local10]);
};
_local9++;
};
_local6--;
};
_local10++;
};
_local4++;
};
jumlahitemslider = _local7;
loadslider();
if (_local3 != -1){
bwatlompatkestocktertentu(_local3);
};
}
public function bwatlompatkestocktertentu(_arg1:int){
clickstocktipe = -1;
while (_arg1 > 0) {
trace("LOMPATT");
_arg1--;
sliderindex++;
loadslider();
cleanupshopitemimage();
loaditemshop6();
};
}
public function loadslider(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
_local1 = getChildByName(("mcuibuild" + indexshop));
_local1.mcslider.btnnext.removeEventListener(MouseEvent.CLICK, slidertabbernext);
_local1.mcslider.btnpre.removeEventListener(MouseEvent.CLICK, slidertabberpre);
_local1.mcslider.btnnext.addEventListener(MouseEvent.CLICK, slidertabbernext);
_local1.mcslider.btnpre.addEventListener(MouseEvent.CLICK, slidertabberpre);
if (jumlahitemslider != 0){
_local1.mcslider.visible = true;
if ((((((indexshop == 6)) || ((indexshop == 7)))) || ((indexshop == 3)))){
trace(("INDEX 7 " + jumlahitemslider));
_local2 = Math.ceil((jumlahitemslider / 3));
} else {
if (indexshop == 8){
_local2 = Math.ceil((jumlahitemslider / 4));
} else {
if ((((((((indexshop == 1)) || ((indexshop == 2)))) || ((indexshop == 4)))) || ((indexshop == 5)))){
_local2 = Math.ceil((jumlahitemslider / 6));
};
};
};
trace(("JUM SLIDER : " + _local2));
_local3 = 1;
while (_local3 <= 13) {
_local4 = _local1.mcslider.getChildByName(("btntabselect" + _local3));
_local4.visible = false;
_local4 = _local1.mcslider.getChildByName(("btntab" + _local3));
if (_local3 > _local2){
_local4.visible = false;
} else {
_local4.visible = true;
};
_local4.removeEventListener(MouseEvent.CLICK, slidertabber);
_local4.addEventListener(MouseEvent.CLICK, slidertabber);
_local3++;
};
_local4 = _local1.mcslider.getChildByName(("btntabselect" + sliderindex));
_local4.visible = true;
} else {
_local1.mcslider.visible = false;
};
}
public function slidertabbernext(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
soundklik.play(0, 1, new SoundTransform(volumesfx));
_local2 = getChildByName(("mcuibuild" + indexshop));
_local3 = _local2.mcslider.getChildByName(("btntab" + int((int(sliderindex) + int(1)))));
if (_local3 != null){
if (_local3.visible == true){
trace("tambai");
sliderindex++;
loadslider();
};
};
cleanupshopitemimage();
trace(("INDEX SHOP : " + indexshop));
if (indexshop == 6){
loaditemshop6();
} else {
if (indexshop == 3){
loaditemshop3();
} else {
if (indexshop == 4){
loaditemshop4();
} else {
if (indexshop == 5){
loaditemshop5();
} else {
if (indexshop == 1){
loaditemshop1();
} else {
if (indexshop == 2){
loaditemshop2();
} else {
if (indexshop == 7){
loaditemshop7();
} else {
if (indexshop == 8){
loaditemshop8();
};
};
};
};
};
};
};
};
}
public function slidertabberpre(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
soundklik.play(0, 1, new SoundTransform(volumesfx));
if ((sliderindex - 1) > 0){
_local2 = getChildByName(("mcuibuild" + indexshop));
_local3 = _local2.mcslider.getChildByName(("btntab" + int((int(sliderindex) - int(1)))));
sliderindex--;
loadslider();
cleanupshopitemimage();
if (indexshop == 6){
loaditemshop6();
} else {
if (indexshop == 3){
loaditemshop3();
} else {
if (indexshop == 4){
loaditemshop4();
} else {
if (indexshop == 5){
loaditemshop5();
} else {
if (indexshop == 1){
loaditemshop1();
} else {
if (indexshop == 2){
loaditemshop2();
} else {
if (indexshop == 7){
loaditemshop7();
} else {
if (indexshop == 8){
loaditemshop8();
};
};
};
};
};
};
};
};
};
}
public function slidertabber(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
soundklik.play(0, 1, new SoundTransform(volumesfx));
_local2 = _arg1.currentTarget.name;
_local3 = "";
trace(("NAMA : " + _local2));
_local4 = 6;
while (_local4 < _local2.length) {
_local3 = (_local3 + _local2.charAt(_local4));
_local4++;
};
trace(((("HASIL NAMAE : " + _local3) + " SLIDER : ") + sliderindex));
_local5 = getChildByName(("mcuibuild" + indexshop));
if (_local3 > sliderindex){
_local7 = (_local3 - sliderindex);
trace(("dimajuin sbynk : " + _local7));
_local6 = _local5.mcslider.getChildByName(("btntab" + int((int(sliderindex) + int(1)))));
if (_local6 != null){
if (_local6.visible == true){
do {
_local7--;
trace(("slider jd : " + sliderindex));
sliderindex++;
} while (_local7 > 0);
loadslider();
};
};
} else {
if ((((_local3 < sliderindex)) && ((_local3 >= 0)))){
_local7 = (sliderindex - _local3);
_local6 = _local5.mcslider.getChildByName(("btntab" + int((int(sliderindex) - int(1)))));
do {
_local7--;
sliderindex--;
} while (_local7 > 0);
loadslider();
};
};
cleanupshopitemimage();
if (indexshop == 6){
loaditemshop6();
} else {
if (indexshop == 3){
loaditemshop3();
} else {
if (indexshop == 4){
loaditemshop4();
} else {
if (indexshop == 5){
loaditemshop5();
} else {
if (indexshop == 1){
loaditemshop1();
} else {
if (indexshop == 2){
loaditemshop2();
} else {
if (indexshop == 7){
loaditemshop7();
} else {
if (indexshop == 8){
loaditemshop8();
};
};
};
};
};
};
};
};
}
public function instancestocktimeclick(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
soundklik.play(0, 1, new SoundTransform(volumesfx));
_local2 = cekpremiumcost(_arg1.currentTarget);
soundpremium.play(0, 1, new SoundTransform(volumesfx));
if (so.data.premiummoney >= _local2){
so.data.premiummoney = (so.data.premiummoney - _local2);
updatetext();
_local3 = _arg1.currentTarget.parent.parent;
createdonethisstockingtime(_local3);
};
if (so.data.tutorialstep == 10){
so.data.tutorialstep++;
cektutorial();
cektutorchangement();
cleanupshopitemimage();
closeuiwindow();
};
}
public function nexttutorialtimer(_arg1:Event){
second--;
if (second < 0){
stage.removeEventListener(Event.ENTER_FRAME, nexttutorialtimer);
so.data.tutorialstep++;
mcui2.mc1.mcdisabled1.visible = false;
bwattutorial();
};
}
public function createdonethisstockingtime(_arg1:Object){
trace("CREATE DONE");
so.data.build1stocktime[_arg1.tipe][_arg1.nomor] = [];
so.data.build1stocktimetemp[_arg1.tipe][_arg1.nomor] = [];
so.data.notiftext[so.data.notiftext.length] = [0, (boothname[_arg1.tipe][_arg1.nomor] + " order:"), (so.data.build1stocktocum[_arg1.tipe][_arg1.nomor] + " new units arrived"), 0];
createnotif((so.data.notiftext.length - 1));
trace(((((("Stock ke : " + _arg1.tipe) + " ") + _arg1.nomor) + " ditambai : ") + so.data.build1stocktocum[_arg1.tipe][_arg1.nomor]));
so.data.build1stockwarehouse[_arg1.tipe][_arg1.nomor] = (so.data.build1stockwarehouse[_arg1.tipe][_arg1.nomor] + so.data.build1stocktocum[_arg1.tipe][_arg1.nomor]);
so.data.build1stocktocum[_arg1.tipe][_arg1.nomor] = 0;
cleanupshopitemimage();
loaditemshop6();
}
public function instancestocktimeout(_arg1:MouseEvent){
mcpremiumover.visible = false;
}
public function instancestocktimeover(_arg1:MouseEvent){
var _local2:*;
mcpremiumover.visible = true;
_local2 = cekpremiumcost(_arg1.currentTarget);
mcpremiumover.txt1.text = _local2;
}
public function cekpremiumcost(_arg1:Object):int{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.parent.parent;
mcpremiumover.x = mouseX;
mcpremiumover.y = mouseY;
_local3 = 0;
_local4 = 0;
while (_local4 < 3) {
if (so.data.build1stocktimetemp[_local2.tipe][_local2.nomor] == boothstockingtime[_local2.tipe][_local2.nomor][_local4]){
_local3 = _local4;
break;
};
_local4++;
};
return (boothstockingpremium[_local2.tipe][_local2.nomor][_local3]);
}
public function openstocktime(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:*;
if (so.data.tutorialstep == 7){
so.data.tutorialstep++;
cektutorchangement();
};
soundklik.play(0, 1, new SoundTransform(volumesfx));
mcstockoption.btnclose.removeEventListener(MouseEvent.CLICK, stockoptionclose);
mcstockoption.btnclose.addEventListener(MouseEvent.CLICK, stockoptionclose);
_local2 = _arg1.currentTarget.parent;
trace("2");
_local3 = 0;
while (_local3 < 3) {
_local4 = mcstockoption.getChildByName(("txtstock" + int((_local3 + 1))));
_local4.text = boothstockingamount[_local2.tipe][_local2.nomor][_local3];
_local4 = mcstockoption.getChildByName(("txtmoney" + int((_local3 + 1))));
_local4.text = boothstockingprice[_local2.tipe][_local2.nomor][_local3];
if (so.data.money < boothstockingprice[_local2.tipe][_local2.nomor][_local3]){
_local4.textColor = uint(0xFF0000);
_local4 = mcstockoption.getChildByName(("btnorderdisabled" + int((_local3 + 1))));
_local4.visible = true;
} else {
_local4.textColor = uint(0x6600);
_local4 = mcstockoption.getChildByName(("btnorderdisabled" + int((_local3 + 1))));
_local4.visible = false;
};
_local4 = mcstockoption.getChildByName(("txttime" + int((_local3 + 1))));
textthistime(_local4, boothstockingtime[_local2.tipe][_local2.nomor][_local3]);
_local4 = mcstockoption.getChildByName(("btnorder" + int((_local3 + 1))));
_local4.addEventListener(MouseEvent.CLICK, stocknow);
if (((!((_local3 == 0))) && ((so.data.tutorialcomplete == false)))){
_local4 = mcstockoption.getChildByName(("btnorderdisabled" + int((_local3 + 1))));
_local4.visible = true;
};
_local3++;
};
mcstockoption.nyambungke = _local2;
mcstockoption.gotoAndStop(2);
mcstockoption.visible = true;
trace("3");
}
public function stockoptionclose(_arg1:MouseEvent){
if (so.data.tutorialcomplete == true){
soundclose.play(0, 1, new SoundTransform(volumesfx));
mcstockoption.visible = false;
};
}
public function stocknow(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:*;
soundklik.play(0, 1, new SoundTransform(volumesfx));
_local2 = _arg1.currentTarget.parent.nyambungke;
_local3 = _arg1.currentTarget.name;
_local3 = _local3.charAt((_local3.length - 1));
trace(((so.data.money + " lbh besar dr: ") + boothstockingprice[_local2.tipe][_local2.nomor][(_local3 - 1)]));
if (so.data.money >= boothstockingprice[_local2.tipe][_local2.nomor][(_local3 - 1)]){
if (so.data.tutorialstep == 8){
shopitemimage[0].mcblink.gotoAndStop(1);
so.data.tutorialstep++;
cektutorial();
cektutorchangement();
};
cekmainquest("simultaneously order 15 stocks", 1);
cekmainquest("order booth's stock 5 times", 1);
cekmainquest("order booth's stock", 1);
if ((((((_local2.tipe == 4)) && ((_local2.nomor == 6)))) && ((_local3 == 2)))){
cekmainquest("stock IT booth 2x", 1);
};
if ((((((_local2.tipe == 1)) && ((_local2.nomor == 10)))) && ((_local3 == 2)))){
cekmainquest("stock rottenbear candy", 1);
};
if ((((((_local2.tipe == 3)) && ((_local2.nomor == 0)))) && ((_local3 == 2)))){
cekmainquest("order geez medium stock order", 1);
};
if ((((((_local2.tipe == 1)) && ((_local2.nomor == 7)))) && ((_local3 == 2)))){
cekmainquest("order medium stock brain", 1);
};
if ((((((_local2.tipe == 1)) && ((_local2.nomor == 8)))) && ((_local3 == 2)))){
cekmainquest("build bodypart booth", 1);
};
so.data.money = (so.data.money - boothstockingprice[_local2.tipe][_local2.nomor][(_local3 - 1)]);
cekmainquest("Spent 6000 gold", boothstockingprice[_local2.tipe][_local2.nomor][(_local3 - 1)]);
updatetext();
trace(((((_local2.tipe + " ") + _local2.nomor) + " ") + _local3));
so.data.build1stocktime[_local2.tipe][_local2.nomor] = [];
so.data.build1stocktimetemp[_local2.tipe][_local2.nomor] = [];
_local4 = 0;
while (_local4 < 3) {
so.data.build1stocktime[_local2.tipe][_local2.nomor][_local4] = boothstockingtime[_local2.tipe][_local2.nomor][(_local3 - 1)][_local4];
so.data.build1stocktimetemp[_local2.tipe][_local2.nomor][_local4] = boothstockingtime[_local2.tipe][_local2.nomor][(_local3 - 1)][_local4];
_local4++;
};
so.data.build1stocktocum[_local2.tipe][_local2.nomor] = boothstockingamount[_local2.tipe][_local2.nomor][(_local3 - 1)];
trace(((("update time untuk : " + _local2.tipe) + " ") + _local2.nomor));
trace(("lamane : " + so.data.build1stocktime[_local2.tipe][_local2.nomor]));
cleanupshopitemimage();
loaditemshop6();
mcstockoption.visible = false;
};
}
public function textthistime(_arg1:Object, _arg2:Array){
_arg1.text = ((((_arg2[0] + ":") + _arg2[1]) + ":") + _arg2[2]);
}
public function loaditemshop1(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
trace(("YA INDEX KE : " + indexbuild));
tempmoney = 0;
tempshoptipeitem = 0;
tempshopnomoritem = 0;
tempshopprice = 0;
tempplacementx = 0;
tempplacementy = 0;
tempplacementbool = false;
temprotate = false;
tempstock = 0;
indexiteminbuild = 0;
_local1 = ((sliderindex - 1) * 6);
_local2 = 0;
_local3 = 0;
_local4 = 0;
if (indexbuild == 7){
_local5 = 1;
while (_local5 < so.data.build1stock.length) {
if (so.data.build1stock[_local5].length > 0){
_local6 = 0;
while (_local6 < so.data.build1stock[_local5].length) {
if (so.data.build1stock[_local5][_local6] > 0){
shopitemimage[shopitemimage.length] = new (ingameboothstock);
shopitemimage[(shopitemimage.length - 1)].txtstock.text = so.data.build1stock[_local5][_local6];
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
shopitemimage[(shopitemimage.length - 1)].x = ((185 + (_local4 * shopitemimage[(shopitemimage.length - 1)].width)) + (_local4 * 8));
shopitemimage[(shopitemimage.length - 1)].y = ((210 + (_local3 * shopitemimage[(shopitemimage.length - 1)].height)) + (_local3 * 5));
_local7 = 1;
while (_local7 <= 8) {
_local8 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local7));
if (_local8 != null){
_local8.visible = false;
};
_local7++;
};
_local8 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local5));
_local8.visible = true;
shopitemimage[(shopitemimage.length - 1)].txtname.text = boothname[_local5][_local6];
shopitemimage[(shopitemimage.length - 1)].txtmoney.text = 0;
shopitemimage[(shopitemimage.length - 1)].tipeitem = _local5;
shopitemimage[(shopitemimage.length - 1)].nomoritem = _local6;
shopitemimage[(shopitemimage.length - 1)].buttonMode = true;
shopitemimage[(shopitemimage.length - 1)].addEventListener(MouseEvent.CLICK, buythis);
_local9 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local5));
_local9.gotoAndStop((_local6 + 1));
_local9.mouseChildren = false;
_local9.mouseEnabled = false;
++_local4;
if (_local4 >= 3){
_local3++;
_local4 = 0;
};
indexiteminbuild++;
};
_local6++;
};
};
_local5++;
};
} else {
_local5 = 0;
while (_local5 < boothjumitem[indexbuild]) {
if (so.data.levele >= boothunlocked[indexbuild][_local5]){
if (_local1 <= 0){
_local10 = false;
if (indexbuild != 8){
trace(("BWAT BOOTH" + _local1));
_local10 = true;
if (so.data.boothlock[indexbuild][_local5] == 0){
_local2++;
_local10 = true;
} else {
_local10 = false;
};
} else {
if (int((so.data.widthemart - 7)) < int((int(_local5) + int(1)))){
_local2++;
_local10 = true;
};
};
if ((((_local10 == true)) && ((indexiteminbuild < 6)))){
if (indexbuild != 8){
shopitemimage[shopitemimage.length] = new (build1tab);
shopitemimage[(shopitemimage.length - 1)].txtstock.text = so.data.build1stock[indexbuild][_local5];
} else {
shopitemimage[shopitemimage.length] = new (build1tabexpand);
};
addChildAt(shopitemimage[(shopitemimage.length - 1)], getChildIndex(mcpositionshop));
if ((((so.data.tutorialcomplete == false)) && ((((so.data.tutorialstep == 3)) || ((so.data.tutorialstep == 18)))))){
if ((((((indexbuild == 1)) || ((indexbuild == 6)))) && ((_local5 == 0)))){
shopitemimage[(shopitemimage.length - 1)].mchighlighter.gotoAndPlay(2);
} else {
shopitemimage[(shopitemimage.length - 1)].mchighlighter.gotoAndStop(1);
};
} else {
shopitemimage[(shopitemimage.length - 1)].mchighlighter.gotoAndStop(1);
};
if ((((so.data.newitemnomor[indexshop][indexbuild].length > 0)) && ((so.data.newitemtipe[indexshop][indexbuild] == 1)))){
_local11 = false;
trace(("isine item new : " + so.data.newitemnomor[indexshop][indexbuild]));
_local12 = 0;
while (_local12 < so.data.newitemnomor[indexshop][indexbuild].length) {
if (_local5 == so.data.newitemnomor[indexshop][indexbuild][_local12]){
_local11 = true;
};
_local12++;
};
if (_local11 == true){
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = true;
} else {
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = false;
};
} else {
shopitemimage[(shopitemimage.length - 1)].mcnew.visible = false;
};
shopitemimage[(shopitemimage.length - 1)].x = ((185 + (_local4 * shopitemimage[(shopitemimage.length - 1)].width)) + (_local4 * 8));
shopitemimage[(shopitemimage.length - 1)].y = ((210 + (_local3 * shopitemimage[(shopitemimage.length - 1)].height)) + (_local3 * 5));
_local6 = 1;
while (_local6 <= 8) {
_local8 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + _local6));
if (_local8 != null){
_local8.visible = false;
};
_local6++;
};
_local8 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + indexbuild));
_local8.visible = true;
shopitemimage[(shopitemimage.length - 1)].txtname.text = boothname[indexbuild][_local5];
shopitemimage[(shopitemimage.length - 1)].txtmoney.text = boothpricemoney[indexbuild][_local5];
trace(((("UWEK : " + so.data.money) + " pricey : ") + boothpricemoney[indexbuild][_local5]));
if (so.data.money < boothpricemoney[indexbuild][(shopitemimage.length - 1)]){
shopitemimage[(shopitemimage.length - 1)].txtmoney.textColor = uint(0xFF0000);
};
shopitemimage[(shopitemimage.length - 1)].tipeitem = indexbuild;
shopitemimage[(shopitemimage.length - 1)].nomoritem = _local5;
shopitemimage[(shopitemimage.length - 1)].buttonMode = true;
shopitemimage[(shopitemimage.length - 1)].addEventListener(MouseEvent.CLICK, buythis);
_local9 = shopitemimage[(shopitemimage.length - 1)].getChildByName(("mc" + indexbuild));
_local9.gotoAndStop((_local5 + 1));
_local9.mouseChildren = false;
_local9.mouseEnabled = false;
++_local4;
if (_local4 >= 3){
_local3++;
_local4 = 0;
};
indexiteminbuild++;
};
};
_local1--;
};
_local5++;
};
};
jumlahitemslider = _local2;
loadslider();
}
public function buythis(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
soundklik.play(0, 1, new SoundTransform(volumesfx));
_local2 = _arg1.currentTarget;
trace(((((("TIPE : " + _local2.tipeitem) + " INDEX : ") + indexshop) + " ") + indexbuild));
if ((((((so.data.money >= _local2.txtmoney.text)) && ((so.data.tutorialcomplete == true)))) || ((((((so.data.money >= _local2.txtmoney.text)) && ((so.data.tutorialcomplete == false)))) && ((((((so.data.tutorialstep == 3)) && ((_local2.nomoritem == 0)))) || ((((so.data.tutorialstep == 18)) && ((_local2.nomoritem == 0)))))))))){
if ((((so.data.tutorialstep == 3)) || ((so.data.tutorialstep == 18)))){
so.data.tutorialstep++;
cektutorchangement();
};
mckotaker.visible = false;
_local3 = false;
_local4 = false;
tempshoptipeitem = _local2.tipeitem;
tempshopnomoritem = _local2.nomoritem;
tempshopprice = _local2.txtmoney.text;
if (indexshop == 2){
trace(((("namee : " + _local2.txtname.text) + " ") + _local2.namee));
if ((((((((((((((_local2.namee == "broken door")) || ((_local2.namee == "small glass door")))) || ((_local2.namee == "mossy door")))) || ((_local2.namee == "wooden door")))) || ((_local2.namee == "rolling door")))) || ((_local2.namee == "large glass door")))) || ((_local2.namee == "creepy door")))){
cekmainquest("change entrance door", 1);
_local5 = [undefined, "broken door", "small glass door", "mossy door", "wooden door", "rolling door", "large glass door", "creepy door"];
_local6 = 1;
while (_local6 < _local5.length) {
if (_local2.namee == _local5[_local6]){
so.data.doortipe = _local6;
break;
};
_local6++;
};
so.data.money = (so.data.money - _local2.txtmoney.text);
updatetext();
tempmoney = _local2.txtmoney.text;
_local4 = true;
cleanwalls();
bwatwalls();
cleanupshopitemimage();
closeuiwindow();
} else {
if (so.data.build2stock[tempshoptipeitem][tempshopnomoritem] <= 0){
tempmoney = _local2.txtmoney.text;
} else {
tempmoney = 0;
};
};
} else {
tempmoney = _local2.txtmoney.text;
};
if ((((tempshoptipeitem == 8)) && ((indexshop == 1)))){
if (((so.data.widthemart - 7) + 1) == (tempshopnomoritem + 1)){
_local3 = true;
soundmoney.play(0, 1, new SoundTransform(volumesfx));
soundbuild.play(0, 1, new SoundTransform(volumesfx));
so.data.money = (so.data.money - _local2.txtmoney.text);
cekmainquest("Spent 6000 gold", _local2.txtmoney.text);
expandsizemart();
cleanupshopitemimage();
closeuiwindow();
updatetext();
};
} else {
_local7 = false;
if ((((indexshop == 1)) && ((indexbuild == 1)))){
trace(("ya cek booth lock : " + so.data.boothlock[indexbuild][_local2.nomoritem]));
if (so.data.boothlock[indexbuild][_local2.nomoritem] == 1){
bwatmcinfo("you need to research the booth first");
} else {
_local7 = true;
};
} else {
_local7 = true;
};
if (indexshop == 1){
if (_local7 == true){
_local3 = true;
if (indexshop == 1){
if ((((so.data.newitemnomor[indexshop][indexbuild].length > 0)) && ((so.data.newitemtipe[indexshop][indexbuild] == 1)))){
_local8 = 0;
while (_local8 < so.data.newitemnomor[indexshop][indexbuild].length) {
if (tempshopnomoritem == so.data.newitemnomor[indexshop][indexbuild][_local8]){
so.data.newitemnomor[indexshop][indexbuild].splice(_local8, 1);
break;
};
_local8++;
};
};
};
};
};
if (indexshop == 2){
if (_local7 == true){
_local3 = true;
if (indexshop == 2){
if ((((so.data.newitemnomor[indexshop][indexdecor].length > 0)) && ((so.data.newitemtipe[indexshop][indexdecor] == 1)))){
_local8 = 0;
while (_local8 < so.data.newitemnomor[indexshop][indexdecor].length) {
if (tempshopnomoritem == so.data.newitemnomor[indexshop][indexdecor][_local8]){
so.data.newitemnomor[indexshop][indexdecor].splice(_local8, 1);
break;
};
_local8++;
};
};
};
};
} else {
_local3 = true;
};
if ((((indexbuild == 7)) && ((indexshop == 1)))){
_local3 = true;
so.data.build1stock[tempshoptipeitem][tempshopnomoritem] = (so.data.build1stock[tempshoptipeitem][tempshopnomoritem] - 1);
} else {
if ((((indexdecor == 5)) && ((indexshop == 2)))){
_local3 = true;
so.data.build2stock[tempshoptipeitem][tempshopnomoritem] = (so.data.build2stock[tempshoptipeitem][tempshopnomoritem] - 1);
};
};
if ((((_local3 == true)) && ((_local4 == false)))){
_local9 = indexshop;
cleanupshopitemimage();
closeuiwindow();
trace(("INDEX SHOP : " + indexshop));
if (_local9 == 1){
bwatprebuybuild1();
} else {
if (_local9 == 2){
bwatprebuybuild2();
};
};
} else {
tempmoney = 0;
tempshoptipeitem = 0;
tempshopnomoritem = 0;
tempshopprice = 0;
};
};
};
}
public function expandsizemart(){
var _local1:*;
var _local2:*;
var _local3:int;
var _local4:int;
so.data.achievprog[6] = (so.data.achievprog[6] + 1);
cekachiev(6);
_local1 = int((int(int((int(7) + int(tempshopnomoritem)))) + int(1)));
trace(("JADI : " + _local1));
so.data.widthemart = _local1;
so.data.heightemart = _local1;
if (so.data.widthemart >= 8){
cekmainquest("expand market", 1);
} else {
if (so.data.widthemart >= 10){
cekmainquest("expand market lv 3", 1);
} else {
if (so.data.widthemart >= 11){
cekmainquest("expand market lv 4", 1);
} else {
if (so.data.widthemart >= 12){
cekmainquest("expand market lv 5", 1);
};
};
};
};
widthemart = so.data.widthemart;
heightemart = so.data.heightemart;
_local2 = firsttile[0];
while (_local2 < (firsttile[0] + widthemart)) {
tileimage[_local2][((firsttile[1] + heightemart) - 1)].gotoAndStop("stainedtile");
map.setCell(_local2, ((firsttile[1] + heightemart) - 1), map.CELL_FREE);
_local2++;
};
_local2 = firsttile[1];
while (_local2 < (firsttile[1] + heightemart)) {
tileimage[((firsttile[0] + widthemart) - 1)][_local2].gotoAndStop("stainedtile");
map.setCell(((firsttile[0] + widthemart) - 1), _local2, map.CELL_FREE);
_local2++;
};
_local3 = 0;
while (_local3 <= map.gridWidth) {
_local4 = 0;
while (_local4 <= map.gridHeight) {
if ((((tileimage[_local3][_local4].currentLabel == "darkgrass")) || ((tileimage[_local3][_local4].currentLabel == "asphalt")))){
map.setCell(_local3, _local4, map.CELL_FILLED);
};
_local4++;
};
_local3++;
};
cleanwalls();
bwatwalls();
}
public function cleanwalls(){
var _local1:*;
_local1 = 0;
while (_local1 < wallimage.length) {
mcgaia.removeChild(wallimage[_local1]);
wallimage[_local1] = null;
_local1++;
};
wallimage = [];
_local1 = 0;
while (_local1 < doorimage.length) {
mcgaia.removeChild(doorimage[_local1]);
doorimage[_local1] = null;
_local1++;
};
doorimage = [];
}
public function bwatprebuybuild1(){
createemployeebool = false;
createboothbool = true;
prebuyimage[0] = new (boothlinkage[tempshoptipeitem][tempshopnomoritem]);
mcgaia.addChildAt(prebuyimage[0], mcgaia.getChildIndex(mcgaia.mcpositionshop));
if (temprotate == false){
prebuyimage[0].sizex = boothsizex[tempshoptipeitem][tempshopnomoritem];
prebuyimage[0].sizey = boothsizey[tempshoptipeitem][tempshopnomoritem];
} else {
if (temprotate == true){
prebuyimage[0].scaleX = (prebuyimage[0].scaleX * -1);
prebuyimage[0].sizex = boothsizey[tempshoptipeitem][tempshopnomoritem];
prebuyimage[0].sizey = boothsizex[tempshoptipeitem][tempshopnomoritem];
};
};
prebuyimage[0].mcarrow.visible = true;
prebuyimage[0].stickto = [];
prebuyimage[0].x = mouseX;
prebuyimage[0].y = mouseY;
if (prebuyimage[0].mcsoldout != null){
prebuyimage[0].mcsoldout.visible = false;
};
pausegame = true;
makeallalpha(0.5);
prebuyimage[0].addEventListener(Event.ENTER_FRAME, prebuyfollowmouse);
stage.removeEventListener(MouseEvent.MOUSE_UP, prebuyclickmouse);
stage.addEventListener(MouseEvent.MOUSE_UP, prebuyclickmouse);
}
public function bwatprebuybuild2(){
createemployeebool = false;
createboothbool = false;
prebuyimage[0] = new (decorlinkage[tempshoptipeitem][tempshopnomoritem]);
mcgaia.addChildAt(prebuyimage[0], mcgaia.getChildIndex(mcgaia.mcpositionshop));
trace(((("TEMP SHOP TIPE : " + tempshoptipeitem) + " ") + tempshopnomoritem));
if (tempshoptipeitem == 1){
prebuyimage[0].gotoAndStop(int((int(tempshopnomoritem) + int(1))));
prebuyimage[0].txt1.visible = false;
} else {
if (tempshoptipeitem == 3){
prebuyimage[0].positione = "left";
prebuyimage[0].gotoAndStop(int((int(tempshopnomoritem) + int(1))));
prebuyimage[0].mcdecorwall.visible = false;
} else {
if (tempshoptipeitem == 4){
prebuyimage[0].positione = "left";
prebuyimage[0].gotoAndStop(int((int(tempshopnomoritem) + int(1))));
};
};
};
trace(("ratata : " + temprotate));
if (temprotate == false){
prebuyimage[0].sizex = decorsizex[tempshoptipeitem][tempshopnomoritem];
prebuyimage[0].sizey = decorsizey[tempshoptipeitem][tempshopnomoritem];
} else {
if (temprotate == true){
prebuyimage[0].scaleX = (prebuyimage[0].scaleX * -1);
prebuyimage[0].sizex = decorsizey[tempshoptipeitem][tempshopnomoritem];
prebuyimage[0].sizey = decorsizex[tempshoptipeitem][tempshopnomoritem];
};
};
if (prebuyimage[0].mcarrow != null){
prebuyimage[0].mcarrow.visible = true;
};
prebuyimage[0].stickto = [];
prebuyimage[0].x = mouseX;
prebuyimage[0].y = mouseY;
if (prebuyimage[0].mcsoldout != null){
prebuyimage[0].mcsoldout.visible = false;
};
pausegame = true;
makeallalpha(0.5);
prebuyimage[0].addEventListener(Event.ENTER_FRAME, prebuyfollowmouse);
stage.removeEventListener(MouseEvent.MOUSE_UP, prebuyclickmouse);
stage.addEventListener(MouseEvent.MOUSE_UP, prebuyclickmouse);
}
public function makeallalpha(_arg1:Number){
var _local2:*;
var _local3:*;
_local2 = 0;
while (_local2 <= map.gridWidth) {
_local3 = 0;
while (_local3 <= map.gridHeight) {
if (decorimage[_local2][_local3] != null){
decorimage[_local2][_local3].alpha = _arg1;
if (_arg1 == 0.5){
decorimage[_local2][_local3].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
decorimage[_local2][_local3].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
decorimage[_local2][_local3].removeEventListener(MouseEvent.CLICK, clickdecor);
} else {
decorimage[_local2][_local3].addEventListener(MouseEvent.MOUSE_OVER, overdecor);
decorimage[_local2][_local3].addEventListener(MouseEvent.MOUSE_OUT, outdecor);
decorimage[_local2][_local3].addEventListener(MouseEvent.CLICK, clickdecor);
};
};
if (employeeimage[_local2][_local3] != null){
employeeimage[_local2][_local3].alpha = _arg1;
if (_arg1 == 0.5){
employeeimage[_local2][_local3].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
employeeimage[_local2][_local3].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
employeeimage[_local2][_local3].removeEventListener(MouseEvent.CLICK, clickdecor);
} else {
employeeimage[_local2][_local3].addEventListener(MouseEvent.MOUSE_OVER, overdecor);
employeeimage[_local2][_local3].addEventListener(MouseEvent.MOUSE_OUT, outdecor);
employeeimage[_local2][_local3].addEventListener(MouseEvent.CLICK, clickdecor);
};
};
_local3++;
};
_local2++;
};
_local2 = 0;
while (_local2 < zombieimage.length) {
if (zombieimage[_local2] != null){
if (zombieimage[_local2].insidemarket == true){
zombieimage[_local2].alpha = _arg1;
if (_arg1 == 0.5){
zombieimage[_local2].removeEventListener(MouseEvent.CLICK, zombiepopup);
} else {
zombieimage[_local2].addEventListener(MouseEvent.CLICK, zombiepopup);
};
};
};
_local2++;
};
}
public function prebuyclickmouse(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
mcpressesc.visible = false;
_local2 = true;
if (tempplacementbool == false){
soundcannotplace.play(0, 1, new SoundTransform(volumesfx));
} else {
if ((((tempplacementbool == true)) && ((so.data.money >= tempmoney)))){
so.data.money = (so.data.money - tempmoney);
cekmainquest("Spent 6000 gold", tempmoney);
updatetext();
if (createemployeebool == false){
_local3 = false;
if ((((createboothbool == false)) && (!((tempshoptipeitem == 2))))){
so.data.achievprog[3] = (so.data.achievprog[3] + tempmoney);
cekachiev(3);
cekmainquest("buy 3 decorations", 1);
cekmainquest("buy a decoration", 1);
if (tempshoptipeitem == 1){
cekmainquest("buy 5 floor tile", 1);
_local2 = false;
_local4 = int((int(tempshopnomoritem) + int(1)));
if (so.data.tilenumba[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] != _local4){
so.data.build2stock[tempshoptipeitem][(so.data.tilenumba[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] - 1)] = int((int(so.data.build2stock[tempshoptipeitem][(so.data.tilenumba[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] - 1)]) + int(1)));
if (so.data.build2stock[tempshoptipeitem][(_local4 - 1)] > 0){
var _local7 = so.data.build2stock[tempshoptipeitem];
var _local8 = (_local4 - 1);
var _local9 = (_local7[_local8] - 1);
_local7[_local8] = _local9;
};
createsepyur("", 0, 1, 1, mcmouse);
soundeditbooth.play(0, 1, new SoundTransform(volumesfx));
soundmoney.play(0, 1, new SoundTransform(volumesfx));
so.data.tilenumba[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] = _local4;
tileimage[tempplacementx][tempplacementy].gotoAndStop(_local4);
};
} else {
if (tempshoptipeitem == 3){
cekmainquest("buy 5 wall decorations", 1);
_local2 = false;
_local4 = int((int(tempshopnomoritem) + int(1)));
trace(((((("NOMORE : " + so.data.walltipe[wallimage[tempwallke].milikwallke]) + " ") + _local4) + " wall ke : ") + wallimage[tempwallke].milikwallke));
if (so.data.walltipe[wallimage[tempwallke].milikwallke] != _local4){
so.data.build2stock[tempshoptipeitem][(so.data.walltipe[wallimage[tempwallke].milikwallke] - 1)] = int((int(so.data.build2stock[tempshoptipeitem][(so.data.walltipe[wallimage[tempwallke].milikwallke] - 1)]) + int(1)));
if (so.data.build2stock[tempshoptipeitem][(_local4 - 1)] > 0){
_local7 = so.data.build2stock[tempshoptipeitem];
_local8 = (_local4 - 1);
_local9 = (_local7[_local8] - 1);
_local7[_local8] = _local9;
};
soundeditbooth.play(0, 1, new SoundTransform(volumesfx));
soundmoney.play(0, 1, new SoundTransform(volumesfx));
trace((("wall ke : " + wallimage[tempwallke].milikwallke) + " dirubah"));
so.data.walltipe[tempsaveke] = _local4;
wallimage[tempwallke].gotoAndStop(_local4);
createsepyur("", 0, 1, 1, mcmouse);
};
trace(("wall tipe : " + int((so.data.walltipe[wallimage[tempwallke].milikwallke] - 1))));
} else {
if (tempshoptipeitem == 4){
if (tempmoney != 0){
_local2 = false;
createsepyur("", 0, 1, 1, mcmouse);
} else {
_local2 = true;
};
_local4 = int((int(tempshopnomoritem) + int(1)));
_local5 = decorsizex[tempshoptipeitem][tempshopnomoritem];
_local6 = 0;
while (_local6 <= _local5) {
so.data.decorationwall[(wallimage[tempwallke].milikwallke - _local6)] = true;
if (_local6 == 0){
so.data.decorationwallnomor[(wallimage[tempwallke].milikwallke - _local6)] = _local4;
};
soundeditbooth.play(0, 1, new SoundTransform(volumesfx));
soundmoney.play(0, 1, new SoundTransform(volumesfx));
_local6++;
};
cleanwalls();
bwatwalls();
makeallalpha(0.5);
} else {
_local3 = true;
};
};
};
} else {
so.data.achievprog[5] = (so.data.achievprog[5] + 1);
cekachiev(5);
if (tempshopprice > 0){
createsepyur("", 0, 1, 1, mcmouse);
soundeditbooth.play(0, 1, new SoundTransform(volumesfx));
soundmoney.play(0, 1, new SoundTransform(volumesfx));
if (createboothbool == true){
isinotif((("Brand New booth has been added to your market for " + tempmoney) + "$"));
};
} else {
soundeditbooth.play(0, 1, new SoundTransform(volumesfx));
};
if (createboothbool == true){
so.data.boothapa[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] = "booth";
cekmainquest("build a booth", 1);
if (tempshoptipeitem == 6){
cekmainquest("build a cashier", 1);
};
if (tempshoptipeitem == 2){
cekmainquest("build foodcourt booth", 1);
};
if (so.data.tutorialstep == 4){
so.data.tutorialstep++;
cektutorial();
cektutorchangement();
};
if (so.data.tutorialstep == 19){
so.data.tutorialstep++;
};
} else {
if ((((tempshoptipeitem == 2)) && ((tempshopnomoritem == 39)))){
cekmainquest("have fishtank", 1);
};
if ((((tempshoptipeitem == 4)) && ((tempshopnomoritem == 15)))){
cekmainquest("display sexy zombie poster", 1);
};
if ((((tempshoptipeitem == 2)) && ((tempshopnomoritem == 15)))){
cekmainquest("build wooden panel decoration", 1);
};
if ((((tempshoptipeitem == 2)) && ((tempshopnomoritem == 37)))){
cekmainquest("have pitcher plant", 1);
};
if ((((tempshoptipeitem == 2)) && ((tempshopnomoritem == 29)))){
cekmainquest("build electropromo decoration", 1);
};
if ((((tempshoptipeitem == 2)) && ((tempshopnomoritem == 18)))){
cekmainquest("have fitting room decoration", 1);
};
cekmainquest("buy 3 decorations", 1);
cekmainquest("buy a decoration", 1);
so.data.boothapa[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] = "decor";
};
so.data.boothrotate[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] = temprotate;
so.data.boothtipe[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] = tempshoptipeitem;
so.data.boothnomor[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] = tempshopnomoritem;
so.data.boothstock[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] = tempstock;
if ((((tempshoptipeitem == 4)) && ((tempshopnomoritem == 6)))){
cekmainquest("build IT booth", 1);
};
if ((((tempshoptipeitem == 1)) && ((tempshopnomoritem == 10)))){
cekmainquest("build rottenbear candy", 1);
};
if ((((tempshoptipeitem == 4)) && ((tempshopnomoritem == 7)))){
cekmainquest("have DIY booth", 1);
};
if ((((tempshoptipeitem == 1)) && ((tempshopnomoritem == 3)))){
cekmainquest("build thumb candy booth", 1);
};
if ((((tempshoptipeitem == 1)) && ((tempshopnomoritem == 7)))){
cekmainquest("build brain booth", 1);
};
if ((((tempshoptipeitem == 1)) && ((tempshopnomoritem == 8)))){
cekmainquest("build bodypart booth", 1);
};
if ((((tempshoptipeitem == 4)) && ((tempshopnomoritem == 2)))){
cekmainquest("build sport booth", 1);
};
if ((((tempshoptipeitem == 3)) && ((tempshopnomoritem == 0)))){
cekmainquest("build geez booth", 1);
};
if (tempshopprice > 0){
cekboothdecortotal();
};
bwatdecor();
if (toolcommandadaemployee == true){
so.data.employeelist[so.data.employeelist.length] = [temptypee];
so.data.employeeliststatus[so.data.employeeliststatus.length] = [tempnamee, temphealth, tempdefense, tempspeed, templastwish, tempsalary, temptypee, templevele, tempkepala, 0, explevelreq, [((tempplacementx - firsttile[0]) - 1)], [((tempplacementy - firsttile[1]) - 1)], tempareane, tempattack, true, temphead, temparmor, tempglove, 0, 0, 0, false];
bwatemployee();
};
};
} else {
if ((((toolcommand == "")) && ((assignagainemployee == -1)))){
createsepyur("", 0, 1, 1, mcmouse);
if (tempmoney > 0){
so.data.achievprog[9] = (so.data.achievprog[9] + 1);
cekachiev(9);
if (temptypee == 1){
isinotif((("You've hired a promising stocker for " + tempmoney) + "$"));
} else {
isinotif((("You've hired a dedicated security for " + tempmoney) + "$"));
};
};
};
if (assignagainemployee != -1){
so.data.employeeonstock.splice(assignagainemployee, 1);
assignagainemployee = -1;
};
trace(((("YA INI EMPLOYEE " + tempplacementx) + " ") + tempplacementy));
if (temptypee == 1){
cekmainquest("hire a stok stocker", 1);
} else {
if (tempspecial != 0){
cekmainquest("hire superhero security", 1);
};
cekmainquest("hire a security", 1);
cekmainquest("Have 2 securities", 1);
};
so.data.boothtipe[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] = "emp";
so.data.boothnomor[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] = 0;
so.data.boothstock[(tempplacementx - firsttile[0])][(tempplacementy - firsttile[1])] = 0;
so.data.employeelist[so.data.employeelist.length] = [temptypee];
so.data.employeeliststatus[so.data.employeeliststatus.length] = [tempnamee, temphealth, tempdefense, tempspeed, templastwish, tempsalary, temptypee, templevele, tempkepala, 0, explevelreq, [(tempplacementx - firsttile[0])], [(tempplacementy - firsttile[1])], tempareane, tempattack, false, temphead, temparmor, tempglove, tempspecial, 0, 0, false];
bwatemployee();
bwatsuararespondemployee(tempkepala);
};
if (_local2 == true){
indexshop = 0;
toolcommand = "";
mcmouse.gotoAndStop(1);
Mouse.show();
toolcommandadaemployee = false;
cleanupprebuyfollowmouse();
resettilesallow();
};
} else {
soundcannotplace.play(0, 1, new SoundTransform(volumesfx));
};
};
}
public function cekboothdecortotal(){
var _local1:*;
var _local2:*;
var _local6:*;
var _local9:*;
var _local12:*;
var _local13:*;
var _local14:*;
resetmainquestdata("Save 5 employee's dna");
_local1 = 0;
while (_local1 < so.data.inventorytube.length) {
cekmainquest("Save 5 employee's dna", 1);
_local1++;
};
resetmainquestdata("have 3 special customers in market");
_local1 = 0;
while (_local1 < zombieimage.length) {
if (zombieimage[_local1] != null){
if (zombieimage[_local1].insidemarket == true){
if (zombieimage[_local1].special == true){
cekmainquest("have 3 special customers in market", 1);
};
};
};
_local1++;
};
resetmainquestdata("Have 8 bottles of any dew");
_local2 = 0;
_local1 = 0;
while (_local1 < so.data.inventorypotion.length) {
_local2 = (_local2 + so.data.inventorypotionamount[_local1]);
cekmainquest("Have 8 bottles of any dew", 1);
_local1++;
};
if (so.data.star >= 4){
cekmainquest("reach 4 star popularity", 1);
cekmainquest("Have 4 stars popularity", 1);
};
if (so.data.star >= 5){
cekmainquest("reach 5 stars popularity", 1);
};
if (so.data.money >= 2500){
cekmainquest("Save 2500 gold", 1);
};
if (so.data.money > 6000){
cekmainquest("Save 6000 gold", 1);
};
if (so.data.money >= 750){
cekmainquest("Save 750 gold", 1);
};
if (so.data.money >= 1500){
cekmainquest("save 1500 gold", 1);
};
if (so.data.money >= 2500){
cekmainquest("Save 2500 gold", 1);
};
if (so.data.money >= 10000){
cekmainquest("Save 10000 gold", 1);
};
if (so.data.money >= 15000){
cekmainquest("Save 15000 gold", 1);
};
resetmainquestdata("Have 2 type zombie in zombictionary");
resetmainquestdata("Have 3 employees");
resetmainquestdata("Have 2 securities");
resetmainquestdata("have 5 types of zombie in zombictionary");
resetmainquestdata("Have 11 zombies unlocked in zombictionary");
resetmainquestdata("Unlock 4 special customers on zombictionary");
resetmainquestdata("Unlock 7 special customers on zombictionary");
resetmainquestdata("Have 10 types of zombie in zombictionary");
var _local3:* = 0;
var _local4:* = 0;
var _local5:* = 0;
_local6 = true;
var _local7:* = 0;
var _local8:* = 0;
_local1 = 0;
while (_local1 < so.data.zombieunlocked.length) {
if (so.data.zombieunlocked[_local1] == true){
if (zombiename[_local1] != ""){
_local8++;
cekmainquest("Unlock 4 special customers on zombictionary", 1);
cekmainquest("Unlock 7 special customers on zombictionary", 1);
cekmainquest("Have 10 types of zombie in zombictionary", 1);
};
_local7++;
cekmainquest("Have 2 type zombie in zombictionary", 1);
cekmainquest("have 5 types of zombie in zombictionary", 1);
cekmainquest("Have 11 zombies unlocked in zombictionary", 1);
};
_local1++;
};
resetmainquestdata("Have 2 superhero securities");
_local1 = 0;
while (_local1 < so.data.employeelist.length) {
if (so.data.employeelist[_local1] != undefined){
if ((((((so.data.employeeliststatus[_local1][16] == 0)) && ((so.data.employeeliststatus[_local1][16] == 0)))) && ((so.data.employeeliststatus[_local1][16] == 0)))){
_local6 = false;
};
_local5++;
cekmainquest("Have 3 employees", 1);
if (so.data.employeeliststatus[_local1][7] >= 3){
cekmainquest("have level 3 employee", 1);
};
if (so.data.employeeliststatus[_local1][7] >= 15){
cekmainquest("have level 15 employee", 1);
};
if (so.data.employeeliststatus[_local1][7] >= 5){
cekmainquest("have level 5 employee", 1);
};
if (so.data.employeeliststatus[_local1][7] >= 12){
cekmainquest("have level 12 employee", 1);
};
if (so.data.employeeliststatus[_local1][7] >= 7){
cekmainquest("have lv 7 employee", 1);
};
if (so.data.employeeliststatus[_local1][6] == 1){
cekmainquest("hire a stok stocker", 1);
_local4++;
} else {
if (so.data.employeeliststatus[_local1][19] != 0){
cekmainquest("Have 2 superhero securities", 1);
};
cekmainquest("hire a security", 1);
_local3++;
cekmainquest("Have 2 securities", 1);
};
};
_local1++;
};
if (_local6 == true){
cekmainquest("all employees equiped by armor", 1);
};
resetmainquestdata("have 3 type of booth");
resetmainquestdata("have 10 type of booth");
resetmainquestdata("Have 25 decorations");
_local9 = [];
var _local10:* = 0;
_local1 = 0;
while (_local1 < so.data.widthemart) {
_local12 = 0;
while (_local12 < so.data.heightemart) {
if (((((!((so.data.boothtipe[_local1][_local12] == ""))) && (!((so.data.boothtipe[_local1][_local12] == undefined))))) && (!((so.data.boothtipe[_local1][_local12] == "emp"))))){
if (so.data.boothapa[_local1][_local12] == "decor"){
cekmainquest("Have 25 decorations", 1);
cekmainquest("buy a decoration", 1);
_local10++;
};
if (so.data.boothapa[_local1][_local12] == "booth"){
if (so.data.boothtipe[_local1][_local12] == 2){
cekmainquest("build foodcourt booth", 1);
};
if ((((so.data.boothtipe[_local1][_local12] == 2)) && ((so.data.boothnomor[_local1][_local12] == 3)))){
cekmainquest("have skin kebab", 1);
};
if ((((so.data.boothtipe[_local1][_local12] == 1)) && ((so.data.boothnomor[_local1][_local12] == 3)))){
cekmainquest("build thumb candy booth", 1);
};
if ((((so.data.boothtipe[_local1][_local12] == 5)) && ((so.data.boothnomor[_local1][_local12] == 2)))){
cekmainquest("build poison vending machine", 1);
};
if (so.data.boothtipe[_local1][_local12] == 6){
cekmainquest("build a cashier", 1);
};
cekmainquest("build a booth", 1);
_local13 = false;
_local14 = 0;
while (_local14 < _local9.length) {
if ((((_local9[_local14][0] == so.data.boothtipe[_local1][_local12])) && ((_local9[_local14][1] == so.data.boothnomor[_local1][_local12])))){
_local13 = true;
break;
};
_local14++;
};
if (_local13 == false){
cekmainquest("Have 16 various booths", 1);
cekmainquest("have 3 type of booth", 1);
cekmainquest("have 10 type of booth", 1);
_local9[_local9.length] = [so.data.boothtipe[_local1][_local12], so.data.boothnomor[_local1][_local12]];
};
};
};
_local12++;
};
_local1++;
};
var _local11:* = 0;
resetmainquestdata("Have 10 windows");
_local1 = 0;
while (_local1 < ((sizemartmax * 2) + 1)) {
if (so.data.decorationwall[_local1] == true){
if ((((((((((((((((decorname[4][so.data.decorationwallnomor[_local1]] == "broken window")) || ((decorname[4][so.data.decorationwallnomor[_local1]] == "brown window")))) || ((decorname[4][so.data.decorationwallnomor[_local1]] == "dual window")))) || ((decorname[4][so.data.decorationwallnomor[_local1]] == "blue window")))) || ((decorname[4][so.data.decorationwallnomor[_local1]] == "gray window")))) || ((decorname[4][so.data.decorationwallnomor[_local1]] == "small window")))) || ((decorname[4][so.data.decorationwallnomor[_local1]] == "noborder window")))) || ((decorname[4][so.data.decorationwallnomor[_local1]] == "haunted window")))){
_local11++;
cekmainquest("Have 10 windows", 1);
};
};
_local1++;
};
}
public function cekmainquest(_arg1:String, _arg2:int){
var _local3:*;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < so.data.mainquest.length) {
_local4 = true;
_local5 = 0;
while (_local5 < so.data.mainquest[_local3].length) {
if (so.data.mainquest[_local3][_local5] == _arg1){
if ((((so.data.mainquestdata[_local3][_local5][2] == false)) && ((_local4 == true)))){
so.data.mainquestdata[_local3][_local5][0] = int((int(so.data.mainquestdata[_local3][_local5][0]) + int(_arg2)));
};
if ((((so.data.mainquestdata[_local3][_local5][0] >= so.data.mainquestdata[_local3][_local5][1])) && ((so.data.mainquestdata[_local3][_local5][2] == false)))){
adaquestcomplete = true;
so.data.mainquestdata[_local3][_local5][0] = so.data.mainquestdata[_local3][_local5][1];
so.data.mainquestdata[_local3][_local5][3] = false;
so.data.mainquestdata[_local3][_local5][2] = true;
if (_local5 < so.data.mainquest[_local3].length){
so.data.adaquestbaru = true;
ceknew();
};
};
};
if (so.data.mainquestdata[_local3][_local5][2] == false){
_local4 = false;
};
_local5++;
};
_local3++;
};
}
public function closequestcomplete(_arg1:MouseEvent){
mcquestcomplete.gotoAndStop(1);
}
public function resetmainquestdata(_arg1:String){
var _local2:*;
var _local3:*;
_local2 = 0;
while (_local2 < so.data.mainquest.length) {
_local3 = 0;
while (_local3 < so.data.mainquest[_local2].length) {
if (so.data.mainquest[_local2][_local3] == _arg1){
so.data.mainquestdata[_local2][_local3][0] = 0;
};
break;
_local3++;
};
_local2++;
};
}
public function bwatsuararespondemployee(_arg1:int){
var _local2:*;
var _local3:*;
if (_arg1 < 4){
_local2 = [soundmale1activity, soundmale2activity];
_local3 = randRange(0, (_local2.length - 1));
_local2[_local3].play(0, 1, new SoundTransform(volumesfx));
} else {
_local2 = [soundfemale1activity];
_local3 = randRange(0, (_local2.length - 1));
_local2[_local3].play(0, 1, new SoundTransform(volumesfx));
};
}
public function createsepyur(_arg1:Object, _arg2:int, _arg3:int, _arg4:int, _arg5:Object){
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:Point;
var _local12:*;
_local6 = Object;
if (_arg5 == mcmouse){
_local11 = new Point(_arg5.x, _arg5.y);
_local11 = mcgaia.globalToLocal(_local11);
_local6 = _local11;
} else {
_local6.x = _arg5.x;
_local6.y = _arg5.y;
};
_local7 = 4;
_local8 = 4;
_local9 = 4;
if (_arg1 != ""){
_local12 = (_arg1.consumingmoney * 0.1);
if (_local12 < 1){
_local12 = 1;
};
soundmoney.play(0, 1, new SoundTransform(volumesfx));
_local7 = int((_local12 / 10));
if (_local12 > 10){
_local12 = 10;
};
if (_local7 < 1){
_local7 = 1;
};
_local8 = int(_local12);
_local9 = int(_local12);
} else {
if (_arg2 != 0){
soundmoney.play(0, 1, new SoundTransform(volumesfx));
_local7 = randRange(1, so.data.levele);
} else {
_local7 = 0;
};
if (_arg3 != 0){
_local8 = randRange(1, so.data.levele);
} else {
_local8 = 0;
};
if (_arg4 != 0){
_local9 = randRange(1, so.data.levele);
} else {
_local9 = 0;
};
};
so.data.money = (so.data.money + (_local7 * 3));
so.data.expe = (so.data.expe + _local8);
so.data.researchpoint = (so.data.researchpoint + _local9);
updatetext();
if (_local8 > 0){
creategainfxui(1, _local8);
};
if (_local7 > 0){
creategainfxui(2, (_local7 * 3));
};
_local10 = 1;
while (_local10 <= _local7) {
createfx("gold", _local7, _local6);
_local10++;
};
_local10 = 1;
while (_local10 <= _local8) {
createfx("exp", _local8, _local6);
_local10++;
};
_local10 = 1;
while (_local10 <= _local9) {
createfx("rp", _local9, _local6);
_local10++;
};
}
public function creategainfxui(_arg1:int, _arg2:int){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
effectimage[effectimage.length] = new (goldxpgained);
addChildAt(effectimage[(effectimage.length - 1)], getChildIndex(mcpositionshop));
_local3 = [undefined, "xp", "$", ""];
_local4 = [undefined, 41, 347, 478];
_local5 = [undefined, 40, 40, 40];
_local6 = [undefined, "0XFFFF00", "0X8CF241", "0X8CF241"];
trace(((("CREATE : " + _local3[_arg1]) + " ") + _arg2));
effectimage[(effectimage.length - 1)].stop();
effectimage[(effectimage.length - 1)].mc1.txt1.textColor = _local6[_arg1];
effectimage[(effectimage.length - 1)].mc1.txt1.text = (("+" + _arg2) + _local3[_arg1]);
effectimage[(effectimage.length - 1)].x = _local4[_arg1];
effectimage[(effectimage.length - 1)].y = _local5[_arg1];
effectimage[(effectimage.length - 1)].gotoAndPlay(2);
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].mouseChildren = false;
effectimage[(effectimage.length - 1)].mouseEnabled = false;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover2);
}
public function createfx(_arg1:String, _arg2:int, _arg3:Object){
var _local4:Point;
var _local5:*;
if (_arg2 != 0){
if (_arg1 == "gold"){
effectimage[effectimage.length] = new (ingamedropcoin);
} else {
if (_arg1 == "exp"){
effectimage[effectimage.length] = new (ingamedropexp);
} else {
if (_arg1 == "rp"){
effectimage[effectimage.length] = new (ingamedroprp);
} else {
if (_arg1 == "buck"){
effectimage[effectimage.length] = new (ingamedropbucks);
};
};
};
};
mcgaia.addChildAt(effectimage[(effectimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionfx));
effectimage[(effectimage.length - 1)].tipe = _arg1;
effectimage[(effectimage.length - 1)].timee = 75;
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = (_arg3.x + randRange(-20, 20));
effectimage[(effectimage.length - 1)].y = (_arg3.y + randRange(-20, 20));
effectimage[(effectimage.length - 1)].mouseChildren = false;
effectimage[(effectimage.length - 1)].mouseEnabled = false;
if (_arg1 == "gold"){
effectimage[(effectimage.length - 1)].targetx = 367;
effectimage[(effectimage.length - 1)].targety = 31;
} else {
if (_arg1 == "exp"){
effectimage[(effectimage.length - 1)].targetx = 261;
effectimage[(effectimage.length - 1)].targety = 31;
} else {
if (_arg1 == "rp"){
effectimage[(effectimage.length - 1)].targetx = 0;
effectimage[(effectimage.length - 1)].targety = 0;
};
};
};
_local4 = new Point(effectimage[(effectimage.length - 1)].x, effectimage[(effectimage.length - 1)].y);
_local4 = mcgaia.localToGlobal(_local4);
effectimage[(effectimage.length - 1)].posisix = _local4.x;
effectimage[(effectimage.length - 1)].posisiy = _local4.y;
_local5 = randRange(0, 1);
if (_local5 == 1){
effectimage[(effectimage.length - 1)].scaleX = (effectimage[(effectimage.length - 1)].scaleX * -1);
};
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
};
}
public function effectremover2(_arg1:Event){
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, effectremover2);
removeChild(effectimage[_arg1.currentTarget.indexke]);
effectimage[_arg1.currentTarget.indexke] = null;
};
}
public function effectremover(_arg1:Event){
var _local3:*;
var _local4:Point;
var _local5:Point;
var _local6:Point;
var _local2:* = false;
if (_arg1.currentTarget.going == undefined){
if (_arg1.currentTarget.tipe == ""){
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_arg1.currentTarget.going = true;
};
} else {
_local3 = _arg1.currentTarget;
if (mcmouse.hitTestObject(_local3)){
_arg1.currentTarget.going = true;
};
_arg1.currentTarget.timee--;
if (_arg1.currentTarget.timee < 0){
_arg1.currentTarget.going = true;
};
};
} else {
if (_arg1.currentTarget.tipe == ""){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, effectremover);
mcgaia.removeChild(effectimage[_arg1.currentTarget.indexke]);
effectimage[_arg1.currentTarget.indexke] = null;
} else {
if (_arg1.currentTarget.tipe != ""){
_local4 = new Point(_arg1.currentTarget.posisix, _arg1.currentTarget.posisiy);
_local4 = mcgaia.localToGlobal(_local4);
_local5 = new Point(_arg1.currentTarget.targetx, _arg1.currentTarget.targety);
_local5 = mcgaia.localToGlobal(_local5);
_arg1.currentTarget.x = (_arg1.currentTarget.x - ((_local4.x - _local5.x) / 15));
_arg1.currentTarget.y = (_arg1.currentTarget.y - ((_local4.y - _local5.y) / 15));
_local6 = new Point(_arg1.currentTarget.x, _arg1.currentTarget.y);
_local6 = mcgaia.localToGlobal(_local6);
if (_local6.y < 0){
_arg1.currentTarget.tipe = "";
};
};
};
};
}
public function bwatemployee(){
var _local1:*;
var _local2:*;
var _local3:*;
tempinsertintocourt = false;
_local1 = 0;
while (_local1 < so.data.employeelist.length) {
trace(("ha emp : " + so.data.employeelist[_local1]));
if (so.data.employeelist[_local1] != undefined){
trace(((("cek pos : " + so.data.employeeliststatus[_local1][11]) + " ") + so.data.employeeliststatus[_local1][12]));
if (employeeimage[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]] == undefined){
if (so.data.boothreferto[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]] == ""){
so.data.boothreferto[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]] = [];
};
_local2 = so.data.boothreferto[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]][0];
_local3 = so.data.boothreferto[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]][1];
trace(((("Refer : " + _local2) + " ") + _local3));
if (((!((_local2 == undefined))) && (!((_local3 == undefined))))){
trace(("ada booth ta ke 1 : " + so.data.boothtipe[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]]));
trace(("ada booth ta ke 2 : " + so.data.boothreferto[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]]));
trace(("ada booth ta ke 3 : " + decorimage[_local2][_local3]));
if (((((((((((!((so.data.boothtipe[_local2][_local3] == undefined))) && (!((so.data.boothtipe[_local2][_local3] == ""))))) && (!((so.data.boothreferto[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]] == undefined))))) && (!((so.data.boothreferto[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]] == ""))))) && (!((decorimage[_local2][_local3] == undefined))))) && (!((decorimage[_local2][_local3] == ""))))){
trace("bwatt");
so.data.boothtipe[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]] = "emp";
so.data.boothnomor[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]] = 0;
so.data.boothstock[so.data.employeeliststatus[_local1][11]][so.data.employeeliststatus[_local1][12]] = 0;
so.data.employeeliststatus[_local1][15] = true;
tempinsertintocourt = true;
};
} else {
so.data.employeeliststatus[_local1][15] = false;
tempinsertintocourt = false;
};
if (so.data.employeeliststatus[_local1][22] == undefined){
so.data.employeeliststatus[_local1][22] = false;
};
trace(("CEK KEMATIAN EMP INI : " + so.data.employeeliststatus[_local1][22]));
createthisemployee(so.data.employeeliststatus[_local1]);
};
};
_local1++;
};
cekboothdecortotal();
}
public function createthisemployee(_arg1:Array){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (tempinsertintocourt == true){
cekmainquest("hire booth stocker (assign to foodcourt booth)", 1);
_arg1[11] = so.data.boothreferto[_arg1[11]][_arg1[12]][0];
_arg1[12] = so.data.boothreferto[_arg1[11]][_arg1[12]][1];
};
trace(((("BWAT EMPLOYEE DI : " + _arg1[11]) + " ") + _arg1[12]));
employeeimage[_arg1[11]][_arg1[12]] = new (employeelinkage[_arg1[6]][_arg1[8]]);
trace(("1 " + tempinsertintocourt));
if (tempinsertintocourt == true){
tempinsertintocourt = false;
_local3 = so.data.boothreferto[_arg1[11]][_arg1[12]][0];
_local4 = so.data.boothreferto[_arg1[11]][_arg1[12]][1];
_local5 = decorimage[_local3][_local4];
_local5.adaemployee = true;
_local5.addChildAt(employeeimage[_arg1[11]][_arg1[12]], _local5.getChildIndex(_local5.mclocator));
employeeimage[_arg1[11]][_arg1[12]].outside = false;
employeeimage[_arg1[11]][_arg1[12]].x = _local5.mclocator.x;
employeeimage[_arg1[11]][_arg1[12]].y = _local5.mclocator.y;
employeeimage[_arg1[11]][_arg1[12]].mouseChildren = false;
employeeimage[_arg1[11]][_arg1[12]].mouseEnabled = false;
} else {
trace("a");
mcgaia.addChildAt(employeeimage[_arg1[11]][_arg1[12]], mcgaia.getChildIndex(mcgaia.mcpositionobject));
employeeimage[_arg1[11]][_arg1[12]].outside = true;
trace("b");
employeeimage[_arg1[11]][_arg1[12]].x = tileimage[int((int(firsttile[0]) + int(_arg1[11])))][int((int(firsttile[1]) + int(_arg1[12])))].x;
employeeimage[_arg1[11]][_arg1[12]].y = tileimage[int((int(firsttile[0]) + int(_arg1[11])))][int((int(firsttile[1]) + int(_arg1[12])))].y;
};
trace("2");
if (_arg1[19] != 0){
employeeimage[_arg1[11]][_arg1[12]].special = true;
} else {
employeeimage[_arg1[11]][_arg1[12]].special = false;
};
trace("3");
employeeimage[_arg1[11]][_arg1[12]].minutemati = _arg1[20];
employeeimage[_arg1[11]][_arg1[12]].secondmati = _arg1[21];
employeeimage[_arg1[11]][_arg1[12]].dead = _arg1[22];
if (employeeimage[_arg1[11]][_arg1[12]].dead == undefined){
employeeimage[_arg1[11]][_arg1[12]].dead = false;
};
employeeimage[_arg1[11]][_arg1[12]].tilefirst = firsttile;
employeeimage[_arg1[11]][_arg1[12]].sizemart = widthemart;
employeeimage[_arg1[11]][_arg1[12]].insidemarket = true;
employeeimage[_arg1[11]][_arg1[12]].sellinganimation = false;
employeeimage[_arg1[11]][_arg1[12]].sellinganimationtime = 0;
employeeimage[_arg1[11]][_arg1[12]].onhit = false;
employeeimage[_arg1[11]][_arg1[12]].onhittime = onhittime;
employeeimage[_arg1[11]][_arg1[12]].onhittimetemp = onhittime;
trace("4");
employeeimage[_arg1[11]][_arg1[12]].namee = _arg1[0];
employeeimage[_arg1[11]][_arg1[12]].health = _arg1[1];
employeeimage[_arg1[11]][_arg1[12]].healthtemp = _arg1[1];
employeeimage[_arg1[11]][_arg1[12]].defense = _arg1[2];
employeeimage[_arg1[11]][_arg1[12]].msspeed = _arg1[3];
employeeimage[_arg1[11]][_arg1[12]].msspeedtemp = employeeimage[_arg1[11]][_arg1[12]].msspeed;
employeeimage[_arg1[11]][_arg1[12]].speed = _arg1[3];
employeeimage[_arg1[11]][_arg1[12]].lastwish = _arg1[4];
employeeimage[_arg1[11]][_arg1[12]].attack = _arg1[14];
employeeimage[_arg1[11]][_arg1[12]].attackspeed = itungaszombie(employeeimage[_arg1[11]][_arg1[12]].speed);
employeeimage[_arg1[11]][_arg1[12]].attackspeedtemp = employeeimage[_arg1[11]][_arg1[12]].attackspeed;
trace("5");
employeeimage[_arg1[11]][_arg1[12]].salary = _arg1[5];
employeeimage[_arg1[11]][_arg1[12]].typee = _arg1[6];
employeeimage[_arg1[11]][_arg1[12]].levele = _arg1[7];
employeeimage[_arg1[11]][_arg1[12]].kepalane = _arg1[8];
employeeimage[_arg1[11]][_arg1[12]].expe = _arg1[9];
employeeimage[_arg1[11]][_arg1[12]].expneeded = _arg1[10];
employeeimage[_arg1[11]][_arg1[12]].posx = _arg1[11];
employeeimage[_arg1[11]][_arg1[12]].posy = _arg1[12];
trace("6");
employeeimage[_arg1[11]][_arg1[12]].area = _arg1[13];
employeeimage[_arg1[11]][_arg1[12]].miliktilex = int((int(firsttile[0]) + int(_arg1[11])));
employeeimage[_arg1[11]][_arg1[12]].miliktiley = int((int(firsttile[0]) + int(_arg1[12])));
employeeimage[_arg1[11]][_arg1[12]].speedx = movexstandart;
employeeimage[_arg1[11]][_arg1[12]].speedy = moveystandart;
employeeimage[_arg1[11]][_arg1[12]].posawalx = employeeimage[_arg1[11]][_arg1[12]].miliktilex;
employeeimage[_arg1[11]][_arg1[12]].posawaly = employeeimage[_arg1[11]][_arg1[12]].miliktiley;
trace(((("pos awal : " + employeeimage[_arg1[11]][_arg1[12]].posawalx) + " ") + employeeimage[_arg1[11]][_arg1[12]].posawaly));
employeeimage[_arg1[11]][_arg1[12]].mcarrow.visible = false;
employeeimage[_arg1[11]][_arg1[12]].mcareastocking.visible = false;
employeeimage[_arg1[11]][_arg1[12]].zombie = false;
employeeimage[_arg1[11]][_arg1[12]].decor = false;
employeeimage[_arg1[11]][_arg1[12]].booth = false;
employeeimage[_arg1[11]][_arg1[12]].beha = "idle";
employeeimage[_arg1[11]][_arg1[12]].statdirection = "right";
employeeimage[_arg1[11]][_arg1[12]].stathead = "front";
_local2 = itungstockingtime(employeeimage[_arg1[11]][_arg1[12]]);
employeeimage[_arg1[11]][_arg1[12]].stockingtime = _local2;
employeeimage[_arg1[11]][_arg1[12]].stockingtimetemp = _local2;
trace(("STOCK TIME : " + (employeeimage[_arg1[11]][_arg1[12]].stockingtimetemp / 25)));
trace(("HEAD : " + _arg1[16]));
trace(("ARMOR : " + _arg1[17]));
trace(("GLOVE : " + _arg1[18]));
employeeimage[_arg1[11]][_arg1[12]].head = _arg1[16];
employeeimage[_arg1[11]][_arg1[12]].armor = _arg1[17];
employeeimage[_arg1[11]][_arg1[12]].glove = _arg1[18];
cekequipvisiblerforthis(employeeimage[_arg1[11]][_arg1[12]]);
employeeimage[_arg1[11]][_arg1[12]].stockboxappear = false;
if (employeeimage[_arg1[11]][_arg1[12]].typee == 1){
employeeimage[_arg1[11]][_arg1[12]].addEventListener(Event.ENTER_FRAME, employeebehavior);
} else {
employeeimage[_arg1[11]][_arg1[12]].addEventListener(Event.ENTER_FRAME, securitybehavior);
};
so.data.boothreferto[_arg1[11]][_arg1[12]] = [_arg1[11], _arg1[12]];
trace(((((("bwat employee di : " + _arg1[11]) + " ") + _arg1[12]) + " area : ") + employeeimage[_arg1[11]][_arg1[12]].area));
employeeimage[_arg1[11]][_arg1[12]].addEventListener(MouseEvent.MOUSE_OVER, overdecor);
employeeimage[_arg1[11]][_arg1[12]].addEventListener(MouseEvent.MOUSE_OUT, outdecor);
employeeimage[_arg1[11]][_arg1[12]].addEventListener(MouseEvent.CLICK, clickdecor);
}
public function cekequipvisiblerforthis(_arg1:Object){
if (_arg1.head != 0){
_arg1.mchead.visible = true;
_arg1.mchead.gotoAndStop(_arg1.head);
} else {
_arg1.mchead.visible = false;
};
if (_arg1.armor != 0){
_arg1.mcarmor.visible = true;
_arg1.mcarmor.gotoAndStop(_arg1.armor);
} else {
_arg1.mcarmor.visible = false;
};
if (_arg1.glove != 0){
_arg1.mcglove.visible = true;
_arg1.mcglove.gotoAndStop(_arg1.glove);
} else {
_arg1.mcglove.visible = false;
};
}
public function itungstockingtime(_arg1:Object):int{
var _local2:*;
var _local3:*;
_local2 = 4;
_local3 = (_arg1.speed / statmax);
_local3 = (_local3 * _local2);
_local3 = (_local2 - _local3);
if (_local3 < 1){
_local3 = 1;
};
return ((_local3 * 25));
}
public function securitybehavior(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
if (pausegame == false){
if (_arg1.currentTarget.dead == true){
if (_arg1.currentTarget.reloader == undefined){
_arg1.currentTarget.reloader = 25;
};
_arg1.currentTarget.mcrecovery.visible = true;
_arg1.currentTarget.mcrecovery.txt1.text = ((_arg1.currentTarget.minutemati + " : ") + _arg1.currentTarget.secondmati);
_arg1.currentTarget.mcrecovery.mc1.width = ((((_arg1.currentTarget.minutemati * 60) + _arg1.currentTarget.secondmati) / ((minmati * 60) + secmati)) * 58);
_arg1.currentTarget.reloader--;
if (_arg1.currentTarget.reloader < 0){
simpansoemployeeini(_arg1.currentTarget);
_arg1.currentTarget.reloader = 25;
_arg1.currentTarget.secondmati--;
if (_arg1.currentTarget.secondmati < 0){
_arg1.currentTarget.minutemati--;
if (_arg1.currentTarget.minutemati < 0){
_arg1.currentTarget.health = _arg1.currentTarget.healthtemp;
_arg1.currentTarget.dead = false;
_arg1.currentTarget.mcrecovery.visible = false;
} else {
_arg1.currentTarget.secondmati = 59;
};
};
};
} else {
if (_arg1.currentTarget.dead == false){
if ((((_arg1.currentTarget.beha == "movetoattack")) || ((_arg1.currentTarget.beha == "walkback")))){
_local2 = tileimage[_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].x][_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].y].nox;
_local3 = tileimage[_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].x][_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].y].noy;
_local4 = tileimage[_local2][_local3];
_local5 = {miliktilex:_local2, miliktiley:_local3};
cekfacing(_arg1.currentTarget, _local5, false);
cekmovingbehavior(_arg1.currentTarget);
if (_arg1.currentTarget.mcfoot.hitTestObject(_local4.mchit) == true){
_arg1.currentTarget.x = _local4.x;
_arg1.currentTarget.y = _local4.y;
_arg1.currentTarget.miliktilex = _local4.nox;
_arg1.currentTarget.miliktiley = _local4.noy;
_arg1.currentTarget.waypointindex++;
if (_arg1.currentTarget.waypointindex > (_arg1.currentTarget.hasilarrayjalan.length - 1)){
trace("DONE NYAMPE");
if (_arg1.currentTarget.beha == "movetoattack"){
_arg1.currentTarget.beha = "attack";
} else {
if (_arg1.currentTarget.beha == "walkback"){
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
};
};
};
};
} else {
if (_arg1.currentTarget.beha == "attack"){
if (_arg1.currentTarget.attackspeed >= 0){
_arg1.currentTarget.attackspeed--;
if (((!((_arg1.currentTarget.currentLabel == "attack1"))) && (!((_arg1.currentTarget.currentLabel == "attack2"))))){
cekidlingposition(_arg1.currentTarget);
};
} else {
if (_arg1.currentTarget.attackspeed < 0){
_arg1.currentTarget.attackspeed = _arg1.currentTarget.attackspeedtemp;
_local6 = [-1, 1, 0, 0];
_local7 = [0, 0, -1, 1];
_local8 = false;
_local9 = 0;
_local10 = 0;
while (_local10 < _local6.length) {
_local11 = int((int(_arg1.currentTarget.miliktilex) + int(_local6[_local10])));
_local12 = int((int(_arg1.currentTarget.miliktiley) + int(_local7[_local10])));
_local13 = 0;
while (_local13 < zombieimage.length) {
if (zombieimage[_local13] != null){
if (riotmode == true){
trace(("Ada combi : " + zombieimage[_local13].attackmode));
if (zombieimage[_local13].attackmode == true){
if ((((zombieimage[_local13].miliktilex == _local11)) && ((zombieimage[_local13].miliktiley == _local12)))){
_local8 = true;
_arg1.currentTarget.zombietarget = zombieimage[_local13];
zombieimage[_local13].onwaiting = false;
//unresolved jump
};
};
} else {
if (lagicuri == true){
trace(("Ada combi : " + zombieimage[_local13].attackmode));
if (zombieimage[_local13].job == "inmate"){
if ((((zombieimage[_local13].miliktilex == _local11)) && ((zombieimage[_local13].miliktiley == _local12)))){
_local8 = true;
_arg1.currentTarget.zombietarget = zombieimage[_local13];
zombieimage[_local13].onwaiting = false;
//unresolved jump
};
};
};
};
};
_local13++;
};
_local10++;
};
if (riotmode == true){
trace("RIOT MODE");
if (_local8 == true){
_arg1.currentTarget.zombietarget.health = (_arg1.currentTarget.zombietarget.health - _arg1.currentTarget.attack);
cekfacing(_arg1.currentTarget, _arg1.currentTarget.zombietarget, true);
cekzombiemati(_arg1.currentTarget.zombietarget);
suarapunch();
} else {
_arg1.currentTarget.beha = "walkback";
_arg1.currentTarget.targetx = _arg1.currentTarget.posawalx;
_arg1.currentTarget.targety = _arg1.currentTarget.posawaly;
caritargetarrayklik(_arg1.currentTarget);
};
} else {
if (lagicuri == true){
trace("LAGI CURI MODE");
if (_local8 == true){
trace("ADA");
if (_arg1.currentTarget.zombietarget.zombieno == 27){
cekmainquest("Catch 5 underground thieves", 1);
};
so.data.achievprog[2] = (so.data.achievprog[2] + 1);
cekachiev(2);
cekmainquest("catch first thief", 1);
cekmainquest("catch 3 thief", 1);
cekmainquest("catch 5 thieves", 1);
adamaling = false;
lagicuri = false;
_arg1.currentTarget.zombietarget.health = (_arg1.currentTarget.zombietarget.health - _arg1.currentTarget.zombietarget.health);
cekfacing(_arg1.currentTarget, _arg1.currentTarget.zombietarget, true);
_arg1.currentTarget.zombietarget.gotoAndPlay("caught");
suarapunch();
} else {
trace("ORA");
adamaling = false;
lagicuri = false;
if ((((_arg1.currentTarget.miliktilex == int((int(_arg1.currentTarget.posawalx) + int(firsttile[0]))))) && ((_arg1.currentTarget.miliktiley == int((int(_arg1.currentTarget.posy) + int(firsttile[1]))))))){
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
} else {
_arg1.currentTarget.beha = "walkback";
_arg1.currentTarget.targetx = _arg1.currentTarget.posawalx;
_arg1.currentTarget.targety = _arg1.currentTarget.posawaly;
caritargetarrayklik(_arg1.currentTarget);
};
};
} else {
trace("RESET");
adamaling = false;
lagicuri = false;
trace(((("cek 1 " + _arg1.currentTarget.miliktilex) + " ") + _arg1.currentTarget.posawalx));
trace(((("cek 1 " + _arg1.currentTarget.miliktiley) + " ") + _arg1.currentTarget.posawaly));
if ((((_arg1.currentTarget.miliktilex == _arg1.currentTarget.posawalx)) && ((_arg1.currentTarget.miliktiley == _arg1.currentTarget.posawaly)))){
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
} else {
_arg1.currentTarget.beha = "walkback";
_arg1.currentTarget.targetx = _arg1.currentTarget.posawalx;
_arg1.currentTarget.targety = _arg1.currentTarget.posawaly;
caritargetarrayklik(_arg1.currentTarget);
};
};
};
};
};
} else {
if (_arg1.currentTarget.beha == "idle"){
_local14 = [];
if (lagicuri == true){
trace(("LAGI CURI : " + lagicuri));
_local13 = 0;
while (_local13 < zombieimage.length) {
if (zombieimage[_local13] != null){
if (zombieimage[_local13].job == "inmate"){
_local14[_local14.length] = [_local13, zombieimage[_local13].miliktilex, zombieimage[_local13].miliktiley];
};
};
_local13++;
};
} else {
if (riotmode == true){
_local13 = 0;
while (_local13 < zombieimage.length) {
if (zombieimage[_local13] != null){
if (zombieimage[_local13].attackmode == true){
_local14[_local14.length] = [_local13, zombieimage[_local13].miliktilex, zombieimage[_local13].miliktiley];
};
};
_local13++;
};
};
};
if (_local14.length > 0){
trace("ada malengg");
_local15 = false;
_local9 = 0;
_local13 = (0 - _arg1.currentTarget.area);
while (_local13 <= _arg1.currentTarget.area) {
_local16 = (0 - _arg1.currentTarget.area);
while (_local16 <= _arg1.currentTarget.area) {
_local17 = 0;
_local18 = 0;
_local17 = int((int(_arg1.currentTarget.posawalx) + int(_local13)));
_local18 = int((int(_arg1.currentTarget.posawaly) + int(_local16)));
if ((((((((_local17 >= firsttile[0])) && ((_local18 >= firsttile[1])))) && ((_local17 <= (firsttile[0] + widthemart))))) && ((_local18 <= (firsttile[1] + heightemart))))){
_local10 = 0;
while (_local10 < _local14.length) {
if ((((_local14[_local10][1] == _local17)) && ((_local14[_local10][2] == _local18)))){
_local9 = _local14[_local10][0];
zombieimage[_local14[_local10][0]].onwaiting = true;
_local15 = true;
//unresolved jump
};
_local10++;
};
};
_local16++;
};
_local13++;
};
if (_local15 == true){
_local6 = [-1, 1, 0, 0];
_local7 = [0, 0, -1, 1];
_local19 = [];
_local20 = 0;
_local10 = 0;
while (_local10 < _local6.length) {
_local11 = int((int(zombieimage[_local9].miliktilex) + int(_local6[_local10])));
_local12 = int((int(zombieimage[_local9].miliktiley) + int(_local7[_local10])));
if ((((((((_local11 >= 0)) && ((_local11 <= map.gridWidth)))) && ((((_local12 >= 0)) && ((_local12 <= map.gridHeight)))))) && ((((_local11 >= firsttile[0])) && ((_local12 >= firsttile[1])))))){
if (map.getCell(_local11, _local12).cellType != map.CELL_FILLED){
trace(((((((("security ke : " + _local11) + " ") + _local12) + " asal : ") + int((int(_arg1.currentTarget.posx) + int(firsttile[0])))) + " ") + int((int(_arg1.currentTarget.posy) + int(firsttile[1])))));
if ((((_local11 == int((int(_arg1.currentTarget.posx) + int(firsttile[0]))))) && ((_local12 == int((int(_arg1.currentTarget.posy) + int(firsttile[1]))))))){
_arg1.currentTarget.beha = "attack";
} else {
_arg1.currentTarget.beha = "movetoattack";
_arg1.currentTarget.targetx = _local11;
_arg1.currentTarget.targety = _local12;
caritargetarrayklik(_arg1.currentTarget);
};
break;
};
};
_local10++;
};
};
};
};
};
};
};
};
};
}
public function suarapunch(){
var _local1:*;
var _local2:*;
_local1 = [soundpunch1];
_local2 = randRange(0, (_local1.length - 1));
_local1[_local2].play(0, 1, new SoundTransform(volumesfx));
}
public function employeebehavior(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
if (pausegame == false){
if (_arg1.currentTarget.dead == true){
if (_arg1.currentTarget.reloader == undefined){
_arg1.currentTarget.reloader = 25;
};
_arg1.currentTarget.mcrecovery.visible = true;
_arg1.currentTarget.mcrecovery.txt1.text = ((_arg1.currentTarget.minutemati + " : ") + _arg1.currentTarget.secondmati);
_arg1.currentTarget.mcrecovery.mc1.width = ((((_arg1.currentTarget.minutemati * 60) + _arg1.currentTarget.secondmati) / ((minmati * 60) + secmati)) * 58);
_arg1.currentTarget.reloader--;
if (_arg1.currentTarget.reloader < 0){
simpansoemployeeini(_arg1.currentTarget);
_arg1.currentTarget.reloader = 25;
_arg1.currentTarget.secondmati--;
if (_arg1.currentTarget.secondmati < 0){
_arg1.currentTarget.minutemati--;
if (_arg1.currentTarget.minutemati < 0){
_arg1.currentTarget.health = _arg1.currentTarget.healthtemp;
_arg1.currentTarget.dead = false;
_arg1.currentTarget.mcrecovery.visible = false;
} else {
_arg1.currentTarget.secondmati = 59;
};
};
};
} else {
if (_arg1.currentTarget.dead == false){
if ((((_arg1.currentTarget.beha == "walkstock")) || ((_arg1.currentTarget.beha == "walkback")))){
_local2 = tileimage[_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].x][_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].y].nox;
_local3 = tileimage[_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].x][_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].y].noy;
_local4 = tileimage[_local2][_local3];
_local5 = {miliktilex:_local2, miliktiley:_local3};
cekfacing(_arg1.currentTarget, _local5, false);
cekmovingbehavior(_arg1.currentTarget);
if (_arg1.currentTarget.mcfoot.hitTestObject(_local4.mchit) == true){
_arg1.currentTarget.x = _local4.x;
_arg1.currentTarget.y = _local4.y;
_arg1.currentTarget.miliktilex = _local4.nox;
_arg1.currentTarget.miliktiley = _local4.noy;
_arg1.currentTarget.waypointindex++;
if (_arg1.currentTarget.waypointindex > (_arg1.currentTarget.hasilarrayjalan.length - 1)){
if (_arg1.currentTarget.onhit == true){
_arg1.currentTarget.onhit = false;
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.beha == "walkstock"){
cekfacing(_arg1.currentTarget, _arg1.currentTarget.boothtarget, false);
_arg1.currentTarget.beha = "stock";
} else {
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
};
};
};
};
} else {
if (_arg1.currentTarget.onhit == true){
if (_arg1.currentTarget.onhittime < 0){
if (_arg1.currentTarget.outside == false){
_arg1.currentTarget.onhit = false;
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
} else {
_local6 = [];
_local7 = (0 - _arg1.currentTarget.area);
while (_local7 <= _arg1.currentTarget.area) {
_local8 = (0 - _arg1.currentTarget.area);
while (_local8 <= _arg1.currentTarget.area) {
_local9 = 0;
_local10 = 0;
_local9 = int((int(_arg1.currentTarget.posawalx) + int(_local7)));
_local10 = int((int(_arg1.currentTarget.posawalx) + int(_local8)));
if ((((((((((((_local9 >= firsttile[0])) && ((_local10 >= firsttile[1])))) && ((_local9 <= (firsttile[0] + widthemart))))) && ((_local10 <= (firsttile[1] + heightemart))))) && (!((_local9 == _arg1.currentTarget.miliktilex))))) && (!((_local10 == _arg1.currentTarget.miliktiley))))){
if (map.getCell(_local9, _local10).cellType != map.CELL_FILLED){
_local6[_local6.length] = [_local9, _local10];
};
};
_local8++;
};
_local7++;
};
trace(("HASIL JALAN : " + _local6));
if (_local6.length > 0){
_local11 = randRange(0, (_local6.length - 1));
_arg1.currentTarget.beha = "walkstock";
_arg1.currentTarget.targetx = _local6[_local11][0];
_arg1.currentTarget.targety = _local6[_local11][1];
caritargetarrayklik(_arg1.currentTarget);
} else {
_arg1.currentTarget.onhit = false;
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
};
};
} else {
_arg1.currentTarget.onhittime--;
};
} else {
if (_arg1.currentTarget.sellinganimation == true){
_arg1.currentTarget.sellinganimationtime--;
if (_arg1.currentTarget.sellinganimationtime < 0){
_arg1.currentTarget.sellinganimation = false;
cekidlingposition(_arg1.currentTarget);
};
} else {
if (_arg1.currentTarget.beha == "idle"){
if (_arg1.currentTarget.outside == true){
_local7 = (0 - _arg1.currentTarget.area);
while (_local7 <= _arg1.currentTarget.area) {
_local8 = (0 - _arg1.currentTarget.area);
while (_local8 <= _arg1.currentTarget.area) {
_local9 = 0;
_local10 = 0;
_local9 = int(((int(_arg1.currentTarget.miliktilex) - int(firsttile[0])) + int(_local7)));
_local10 = int(((int(_arg1.currentTarget.miliktiley) - int(firsttile[1])) + int(_local8)));
if ((((((((_local9 >= 0)) && ((_local10 >= 0)))) && ((_local9 <= widthemart)))) && ((_local10 <= heightemart)))){
if (((!((so.data.boothreferto[_local9][_local10] == ""))) && (!((so.data.boothreferto[_local9][_local10] == undefined))))){
if (((((!((so.data.boothtipe[_local9][_local10] == "emp"))) && (!((so.data.boothtipe[_local9][_local10] == undefined))))) && (!((so.data.boothtipe[_local9][_local10] == ""))))){
if (so.data.boothapa[so.data.boothreferto[_local9][_local10][0]][so.data.boothreferto[_local9][_local10][1]] == "booth"){
_local9 = so.data.boothreferto[_local9][_local10][0];
_local10 = so.data.boothreferto[_local9][_local10][1];
if (decorimage[_local9][_local10] == null){
} else {
if ((((((((decorimage[_local9][_local10].tipe == 1)) || ((decorimage[_local9][_local10].tipe == 3)))) || ((decorimage[_local9][_local10].tipe == 4)))) || ((decorimage[_local9][_local10].tipe == 5)))){
if (so.data.boothstock[_local9][_local10] <= 0){
if (so.data.build1stockwarehouse[decorimage[_local9][_local10].tipe][decorimage[_local9][_local10].nomor] > 0){
_local12 = carijalankeitem(decorimage[_local9][_local10], _arg1.currentTarget);
if (_local12.length > 0){
_arg1.currentTarget.waypointindex = 0;
_local13 = 0;
do {
_arg1.currentTarget.targetx = _local12[_local13][0];
_arg1.currentTarget.targety = _local12[_local13][1];
if ((((_arg1.currentTarget.miliktilex == _arg1.currentTarget.targetx)) && ((_arg1.currentTarget.miliktiley == _arg1.currentTarget.targety)))){
_arg1.currentTarget.beha = "stock";
_arg1.currentTarget.hasilarrayjalan = [];
_arg1.currentTarget.boothtarget = decorimage[_local9][_local10];
cekfacing(_arg1.currentTarget, _arg1.currentTarget.boothtarget, false);
_local13 = _local12.length;
} else {
caritargetarrayklik(_arg1.currentTarget);
if (_arg1.currentTarget.hasilarrayjalan.length > 0){
_local13 = _local12.length;
} else {
_local13++;
};
};
} while (_local13 < _local12.length);
if (_arg1.currentTarget.hasilarrayjalan.length <= 0){
} else {
_arg1.currentTarget.beha = "walkstock";
_arg1.currentTarget.boothtarget = decorimage[_local9][_local10];
};
};
//unresolved jump
};
};
};
};
};
};
};
};
_local8++;
};
_local7++;
};
} else {
_local9 = so.data.boothreferto[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])][0];
_local10 = so.data.boothreferto[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])][1];
if (so.data.boothstock[_local9][_local10] <= 0){
if (so.data.build1stockwarehouse[decorimage[_local9][_local10].tipe][decorimage[_local9][_local10].nomor] > 0){
_arg1.currentTarget.beha = "stock";
_arg1.currentTarget.boothtarget = decorimage[_local9][_local10];
};
};
};
} else {
if (_arg1.currentTarget.beha == "stock"){
_local14 = false;
_local15 = _arg1.currentTarget.boothtarget;
if (((!((so.data.boothtipe[(_local15.miliktilex - firsttile[0])][(_local15.miliktiley - firsttile[1])] == _local15.tipe))) || (!((so.data.boothnomor[(_local15.miliktilex - firsttile[0])][(_local15.miliktiley - firsttile[1])] == _local15.nomor))))){
_local14 = true;
} else {
if (_arg1.currentTarget.stockboxappear == false){
_arg1.currentTarget.stockboxappear = true;
createstockbox(_arg1.currentTarget);
};
if (_arg1.currentTarget.stathead == "front"){
if (_arg1.currentTarget.currentLabel != "stocking1"){
_arg1.currentTarget.gotoAndPlay("stocking1");
samainequipini(_arg1.currentTarget, "stocking1");
};
} else {
if (_arg1.currentTarget.stathead == "back"){
if (_arg1.currentTarget.currentLabel != "stocking2"){
_arg1.currentTarget.gotoAndPlay("stocking2");
samainequipini(_arg1.currentTarget, "stocking2");
};
};
};
if (soundchannelstocking == null){
_local16 = [soundstocking2, soundstocking];
_local11 = randRange(0, (_local16.length - 1));
soundchannelstocking = _local16[_local11].play(0, 999, new SoundTransform(volumesfx));
};
_arg1.currentTarget.stockingtime--;
if (_arg1.currentTarget.stockingtime < 0){
if (so.data.tutorialstep == 15){
so.data.tutorialstep++;
cektutorial();
cektutorchangement();
removetutorialplacement();
};
soundchannelstocking.stop();
soundchannelstocking = null;
tambaiexpemployeeini(_arg1.currentTarget);
_arg1.currentTarget.stockboxappear = false;
_local17 = boothmaxstock[_local15.tipe][_local15.nomor];
_local18 = 0;
if (so.data.boothstock[(_local15.miliktilex - firsttile[0])][(_local15.miliktiley - firsttile[1])] <= 0){
if (so.data.build1stockwarehouse[_local15.tipe][_local15.nomor] > 0){
trace(("ISI DI WAREHOUSE : " + so.data.build1stockwarehouse[_local15.tipe][_local15.nomor]));
if ((so.data.build1stockwarehouse[_local15.tipe][_local15.nomor] - _local17) >= 0){
_local18 = _local17;
so.data.build1stockwarehouse[_local15.tipe][_local15.nomor] = (so.data.build1stockwarehouse[_local15.tipe][_local15.nomor] - _local17);
} else {
_local18 = so.data.build1stockwarehouse[_local15.tipe][_local15.nomor];
so.data.build1stockwarehouse[_local15.tipe][_local15.nomor] = 0;
};
};
_local15.stock = (_local15.stock + _local18);
so.data.boothstock[(_local15.miliktilex - firsttile[0])][(_local15.miliktiley - firsttile[1])] = (so.data.boothstock[(_local15.miliktilex - firsttile[0])][(_local15.miliktiley - firsttile[1])] + _local18);
if (mcitemexp.visible == true){
if ((((mcitemexp.tipeku == _arg1.currentTarget.boothtarget.tipe)) && ((mcitemexp.nomorku == _arg1.currentTarget.boothtarget.nomor)))){
mcitemexp.txtexp.text = ((((boothprice[mcitemexp.tipeku][mcitemexp.nomorku] + "\n") + so.data.boothstock[(_local15.miliktilex - firsttile[0])][(_local15.miliktiley - firsttile[1])]) + "\n") + so.data.build1stockwarehouse[mcitemexp.tipeku][mcitemexp.nomorku]);
};
};
updatethisboothstock(_arg1.currentTarget.boothtarget);
trace(((((("BOOTH DI TILE " + String((_local15.miliktilex - firsttile[0]))) + " ") + String((_local15.miliktiley - firsttile[1]))) + " TAMBAI SEBANYAK : ") + _local18));
_arg1.currentTarget.stockingtime = _arg1.currentTarget.stockingtimetemp;
if (_arg1.currentTarget.outside == false){
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
} else {
if ((((_arg1.currentTarget.miliktilex == _arg1.currentTarget.posawalx)) && ((_arg1.currentTarget.miliktiley == _arg1.currentTarget.posawaly)))){
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
} else {
_arg1.currentTarget.beha = "walkback";
_arg1.currentTarget.targetx = _arg1.currentTarget.posawalx;
_arg1.currentTarget.targety = _arg1.currentTarget.posawaly;
caritargetarrayklik(_arg1.currentTarget);
if (_arg1.currentTarget.hasilarrayjalan.length <= 0){
_local4 = tileimage[_arg1.currentTarget.posawalx][_arg1.currentTarget.posawaly];
_arg1.currentTarget.x = _local4.x;
_arg1.currentTarget.y = _local4.y;
_arg1.currentTarget.miliktilex = _local4.nox;
_arg1.currentTarget.miliktiley = _local4.noy;
};
};
};
_local14 = true;
} else {
_local14 = true;
};
};
};
if (_local14 == true){
_arg1.currentTarget.stockingtime = _arg1.currentTarget.stockingtimetemp;
if (_arg1.currentTarget.outside == false){
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
} else {
if ((((_arg1.currentTarget.miliktilex == _arg1.currentTarget.posawalx)) && ((_arg1.currentTarget.miliktiley == _arg1.currentTarget.posawaly)))){
_arg1.currentTarget.beha = "idle";
cekidlingposition(_arg1.currentTarget);
} else {
_arg1.currentTarget.beha = "walkback";
_arg1.currentTarget.targetx = _arg1.currentTarget.posawalx;
_arg1.currentTarget.targety = _arg1.currentTarget.posawaly;
caritargetarrayklik(_arg1.currentTarget);
};
};
};
};
};
};
};
};
};
};
};
}
public function tambaiexpemployeeini(_arg1:Object){
_arg1.expe = (_arg1.expe + 1);
if (_arg1.expe >= _arg1.expneeded){
effectimage[effectimage.length] = new (employeelvlupfx);
mcgaia.addChildAt(effectimage[(effectimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionfx));
effectimage[(effectimage.length - 1)].tipe = "";
effectimage[(effectimage.length - 1)].indexke = (effectimage.length - 1);
effectimage[(effectimage.length - 1)].x = _arg1.x;
effectimage[(effectimage.length - 1)].y = _arg1.y;
effectimage[(effectimage.length - 1)].mouseChildren = false;
effectimage[(effectimage.length - 1)].mouseEnabled = false;
effectimage[(effectimage.length - 1)].addEventListener(Event.ENTER_FRAME, effectremover);
_arg1.levele++;
_arg1.expe = 0;
_arg1.expneeded = (_arg1.expneeded + (_arg1.expneeded / 2));
_arg1.speed = int((int(_arg1.speed) + int(1)));
trace(("SPEED JADI : " + _arg1.speed));
};
simpansoemployeeini(_arg1);
}
public function simpansoemployeeini(_arg1:Object){
var _local2:*;
_local2 = 0;
while (_local2 < so.data.employeelist.length) {
if (so.data.employeelist[_local2] != undefined){
if (employeeimage[so.data.employeeliststatus[_local2][11]][so.data.employeeliststatus[_local2][12]] == _arg1){
so.data.employeeliststatus[_local2][1] = _arg1.health;
so.data.employeeliststatus[_local2][2] = _arg1.defense;
so.data.employeeliststatus[_local2][3] = _arg1.speed;
so.data.employeeliststatus[_local2][7] = _arg1.levele;
so.data.employeeliststatus[_local2][9] = _arg1.expe;
so.data.employeeliststatus[_local2][10] = _arg1.expneeded;
so.data.employeeliststatus[_local2][20] = _arg1.minutemati;
so.data.employeeliststatus[_local2][21] = _arg1.secondmati;
so.data.employeeliststatus[_local2][22] = _arg1.dead;
};
};
_local2++;
};
}
public function createstockbox(_arg1:Object){
stockingimage[stockingimage.length] = new (ingamestockingbox);
mcgaia.addChildAt(stockingimage[(stockingimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionfx));
stockingimage[(stockingimage.length - 1)].x = _arg1.boothtarget.x;
stockingimage[(stockingimage.length - 1)].y = _arg1.boothtarget.y;
stockingimage[(stockingimage.length - 1)].timee = 0;
stockingimage[(stockingimage.length - 1)].indexke = (stockingimage.length - 1);
stockingimage[(stockingimage.length - 1)].timeetemp = _arg1.stockingtimetemp;
stockingimage[(stockingimage.length - 1)].addEventListener(Event.ENTER_FRAME, stockingboxreducer);
}
public function stockingboxreducer(_arg1:Event):void{
if (pausegame == false){
_arg1.currentTarget.timee++;
_arg1.currentTarget.mc1.width = ((_arg1.currentTarget.timee / _arg1.currentTarget.timeetemp) * 62);
if (_arg1.currentTarget.timee >= _arg1.currentTarget.timeetemp){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, stockingboxreducer);
mcgaia.removeChild(stockingimage[_arg1.currentTarget.indexke]);
stockingimage[_arg1.currentTarget.indexke] = null;
};
};
}
public function bwatdecor(){
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < so.data.widthemart) {
_local2 = 0;
while (_local2 < so.data.heightemart) {
if (((((!((so.data.boothtipe[_local1][_local2] == ""))) && (!((so.data.boothtipe[_local1][_local2] == undefined))))) && (!((so.data.boothtipe[_local1][_local2] == "emp"))))){
trace(((("DEKOR KE INI ADA : " + _local1) + " ") + _local2));
if (decorimage[_local1][_local2] == undefined){
if (so.data.boothapa[_local1][_local2] == "booth"){
createthisbooth(_local1, _local2);
} else {
if (so.data.boothapa[_local1][_local2] == "decor"){
createthisdecor(_local1, _local2);
};
};
};
};
_local2++;
};
_local1++;
};
}
public function createthisbooth(_arg1:int, _arg2:int){
var _local3:*;
var _local4:*;
var _local5:*;
decorimage[_arg1][_arg2] = new (boothlinkage[so.data.boothtipe[_arg1][_arg2]][so.data.boothnomor[_arg1][_arg2]]);
mcgaia.addChildAt(decorimage[_arg1][_arg2], mcgaia.getChildIndex(mcgaia.mcpositionobject));
decorimage[_arg1][_arg2].tipe = so.data.boothtipe[_arg1][_arg2];
decorimage[_arg1][_arg2].nomor = so.data.boothnomor[_arg1][_arg2];
decorimage[_arg1][_arg2].stock = so.data.boothstock[_arg1][_arg2];
decorimage[_arg1][_arg2].online = 0;
decorimage[_arg1][_arg2].onlinemax = 1;
decorimage[_arg1][_arg2].servingspeed = servingspeed;
decorimage[_arg1][_arg2].servingspeedtemp = servingspeed;
decorimage[_arg1][_arg2].mcarrow.visible = false;
trace(("decor tipe : " + decorimage[_arg1][_arg2].tipe));
trace(((("tambai : " + _arg1) + " ") + _arg2));
decorimage[_arg1][_arg2].miliktilex = (firsttile[0] + _arg1);
decorimage[_arg1][_arg2].miliktiley = (firsttile[1] + _arg2);
decorimage[_arg1][_arg2].x = tileimage[(firsttile[0] + _arg1)][(firsttile[1] + _arg2)].x;
decorimage[_arg1][_arg2].y = tileimage[(firsttile[0] + _arg1)][(firsttile[1] + _arg2)].y;
if ((((((((((so.data.boothtipe[_arg1][_arg2] == 1)) || ((so.data.boothtipe[_arg1][_arg2] == 2)))) || ((so.data.boothtipe[_arg1][_arg2] == 3)))) || ((so.data.boothtipe[_arg1][_arg2] == 4)))) || ((so.data.boothtipe[_arg1][_arg2] == 5)))){
updatethisboothstock(decorimage[_arg1][_arg2]);
};
decorimage[_arg1][_arg2].rotatee = so.data.boothrotate[_arg1][_arg2];
decorimage[_arg1][_arg2].adaemployee = false;
decorimage[_arg1][_arg2].decor = false;
decorimage[_arg1][_arg2].booth = true;
if (decorimage[_arg1][_arg2].rotatee == false){
so.data.boothreferto[_arg1][_arg2] = [_arg1, _arg2];
decorimage[_arg1][_arg2].sizex = boothsizex[decorimage[_arg1][_arg2].tipe][decorimage[_arg1][_arg2].nomor];
decorimage[_arg1][_arg2].sizey = boothsizey[decorimage[_arg1][_arg2].tipe][decorimage[_arg1][_arg2].nomor];
} else {
so.data.boothreferto[_arg1][_arg2] = [_arg1, _arg2];
decorimage[_arg1][_arg2].scaleX = (decorimage[_arg1][_arg2].scaleX * -1);
decorimage[_arg1][_arg2].sizex = boothsizey[decorimage[_arg1][_arg2].tipe][decorimage[_arg1][_arg2].nomor];
decorimage[_arg1][_arg2].sizey = boothsizex[decorimage[_arg1][_arg2].tipe][decorimage[_arg1][_arg2].nomor];
};
_local3 = 0;
while (_local3 <= decorimage[_arg1][_arg2].sizex) {
_local4 = 0;
while (_local4 <= decorimage[_arg1][_arg2].sizey) {
_local5 = false;
if (decorimage[_arg1][_arg2].tipe == 6){
if (((((!((_local4 == 0))) && ((decorimage[_arg1][_arg2].rotatee == false)))) || (((!((_local3 == 0))) && ((decorimage[_arg1][_arg2].rotatee == true)))))){
_local5 = true;
};
} else {
_local5 = true;
};
so.data.boothreferto[(_arg1 - _local3)][(_arg2 - _local4)] = [_arg1, _arg2];
if (_local5 == true){
map.setCell(int(((int(firsttile[0]) + int(_arg1)) - int(_local3))), int((int(firsttile[1]) + int((_arg2 - int(_local4))))), map.CELL_FILLED);
};
_local4++;
};
_local3++;
};
decorimage[_arg1][_arg2].addEventListener(MouseEvent.MOUSE_OVER, overdecor);
decorimage[_arg1][_arg2].addEventListener(MouseEvent.MOUSE_OUT, outdecor);
decorimage[_arg1][_arg2].addEventListener(MouseEvent.CLICK, clickdecor);
}
public function createthisdecor(_arg1:int, _arg2:int){
var _local3:*;
var _local4:*;
var _local5:*;
decorimage[_arg1][_arg2] = new (decorlinkage[so.data.boothtipe[_arg1][_arg2]][so.data.boothnomor[_arg1][_arg2]]);
mcgaia.addChildAt(decorimage[_arg1][_arg2], mcgaia.getChildIndex(mcgaia.mcpositionobject));
decorimage[_arg1][_arg2].tipe = so.data.boothtipe[_arg1][_arg2];
decorimage[_arg1][_arg2].nomor = so.data.boothnomor[_arg1][_arg2];
decorimage[_arg1][_arg2].stock = so.data.boothstock[_arg1][_arg2];
decorimage[_arg1][_arg2].online = 0;
decorimage[_arg1][_arg2].onlinemax = 1;
decorimage[_arg1][_arg2].servingspeed = servingspeed;
decorimage[_arg1][_arg2].servingspeedtemp = servingspeed;
decorimage[_arg1][_arg2].mcarrow.visible = false;
trace(("decor tipe : " + decorimage[_arg1][_arg2].tipe));
trace(((("tambai : " + _arg1) + " ") + _arg2));
decorimage[_arg1][_arg2].miliktilex = (firsttile[0] + _arg1);
decorimage[_arg1][_arg2].miliktiley = (firsttile[1] + _arg2);
decorimage[_arg1][_arg2].x = tileimage[(firsttile[0] + _arg1)][(firsttile[1] + _arg2)].x;
decorimage[_arg1][_arg2].y = tileimage[(firsttile[0] + _arg1)][(firsttile[1] + _arg2)].y;
decorimage[_arg1][_arg2].rotatee = so.data.boothrotate[_arg1][_arg2];
decorimage[_arg1][_arg2].adaemployee = false;
decorimage[_arg1][_arg2].decor = true;
decorimage[_arg1][_arg2].booth = false;
if (decorimage[_arg1][_arg2].rotatee == false){
so.data.boothrotate[_arg1][_arg2] = false;
decorimage[_arg1][_arg2].sizex = decorsizex[decorimage[_arg1][_arg2].tipe][decorimage[_arg1][_arg2].nomor];
decorimage[_arg1][_arg2].sizey = decorsizey[decorimage[_arg1][_arg2].tipe][decorimage[_arg1][_arg2].nomor];
} else {
so.data.boothrotate[_arg1][_arg2] = true;
decorimage[_arg1][_arg2].scaleX = (decorimage[_arg1][_arg2].scaleX * -1);
decorimage[_arg1][_arg2].sizex = decorsizey[decorimage[_arg1][_arg2].tipe][decorimage[_arg1][_arg2].nomor];
decorimage[_arg1][_arg2].sizey = decorsizex[decorimage[_arg1][_arg2].tipe][decorimage[_arg1][_arg2].nomor];
};
starstandart = (starstandart + decorstarcontribute[decorimage[_arg1][_arg2].tipe][decorimage[_arg1][_arg2].nomor]);
trace(("JADI MIN : " + starstandart));
_local3 = 0;
while (_local3 <= decorimage[_arg1][_arg2].sizex) {
_local4 = 0;
while (_local4 <= decorimage[_arg1][_arg2].sizey) {
_local5 = false;
if (decorimage[_arg1][_arg2].tipe == 6){
if (_local4 != 0){
_local5 = true;
};
} else {
_local5 = true;
};
so.data.boothreferto[(_arg1 - _local3)][(_arg2 - _local4)] = [_arg1, _arg2];
if (_local5 == true){
map.setCell(int(((int(firsttile[0]) + int(_arg1)) - int(_local3))), int((int(firsttile[1]) + int((_arg2 - int(_local4))))), map.CELL_FILLED);
};
trace(((("NOMOR INI : " + int(((int(firsttile[0]) + int(_arg1)) - int(_local3)))) + " MBE : ") + int((int(firsttile[1]) + int((_arg2 - int(_local4)))))));
trace(((("REFER TO : " + int((_arg1 - _local3))) + " MBE : ") + int((_arg2 - _local4))));
_local4++;
};
_local3++;
};
decorimage[_arg1][_arg2].addEventListener(MouseEvent.MOUSE_OVER, overdecor);
decorimage[_arg1][_arg2].addEventListener(MouseEvent.MOUSE_OUT, outdecor);
decorimage[_arg1][_arg2].addEventListener(MouseEvent.CLICK, clickdecor);
}
public function overdecor(_arg1:MouseEvent):void{
var _local2:Color;
_local2 = new Color();
_local2.setTint(uint(3394764), 100);
_arg1.currentTarget.transform.colorTransform = _local2;
if ((((_arg1.currentTarget.decor == false)) && ((_arg1.currentTarget.booth == false)))){
createareastocking(_arg1.currentTarget);
};
}
public function createareastocking(_arg1:Object){
imagearea[imagearea.length] = new (ingamestockingarea);
mcgaia.addChildAt(imagearea[(imagearea.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositiontile));
imagearea[(imagearea.length - 1)].x = tileimage[_arg1.posawalx][_arg1.posawaly].x;
imagearea[(imagearea.length - 1)].y = tileimage[_arg1.posawalx][_arg1.posawaly].y;
trace(("AREA : " + _arg1.area));
imagearea[(imagearea.length - 1)].width = (imagearea[(imagearea.length - 1)].width + (imagearea[(imagearea.length - 1)].width * (_arg1.area * 2)));
imagearea[(imagearea.length - 1)].height = (imagearea[(imagearea.length - 1)].height + (imagearea[(imagearea.length - 1)].height * (_arg1.area * 2)));
}
public function cleanupareastocking(){
var _local1:*;
_local1 = 0;
while (_local1 < imagearea.length) {
if (imagearea[_local1] != null){
mcgaia.removeChild(imagearea[_local1]);
imagearea[_local1] = null;
};
_local1++;
};
}
public function outdecor(_arg1:MouseEvent):void{
var _local2:*;
_local2 = new ColorTransform();
_arg1.currentTarget.transform.colorTransform = _local2;
cleanupareastocking();
}
public function clickdecor(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
trace(("TOOL COMMAND : " + toolcommand));
soundklik.play(0, 1, new SoundTransform(volumesfx));
if (onusepotion == true){
if ((((_arg1.currentTarget.zombie == false)) && ((_arg1.currentTarget.decor == false)))){
if (_arg1.currentTarget.beha == "idle"){
_local2 = false;
bwatsuararespondemployee(_arg1.currentTarget.kepalane);
if (useitemimage[0].nomor == 1){
_local2 = true;
if (_arg1.currentTarget.typee == 1){
cekmainquest("research hand sanitizer and use it on stocker", 1);
};
_arg1.currentTarget.exp = (_arg1.currentTarget.exp + 2);
tambaiexpemployeeini(_arg1.currentTarget);
} else {
if (useitemimage[0].nomor == 2){
_local2 = true;
if (_arg1.currentTarget.typee == 1){
cekmainquest("research small dew and use it on stocker", 1);
};
_arg1.currentTarget.health = (_arg1.currentTarget.health + (_arg1.currentTarget.healthtemp * 0.1));
so.data.achievprog[8] = (so.data.achievprog[8] + 1);
cekachiev(8);
} else {
if (useitemimage[0].nomor == 3){
_local2 = true;
_arg1.currentTarget.exp = (_arg1.currentTarget.exp + 5);
tambaiexpemployeeini(_arg1.currentTarget);
} else {
if (useitemimage[0].nomor == 4){
_local2 = true;
_arg1.currentTarget.health = (_arg1.currentTarget.health + (_arg1.currentTarget.healthtemp * 0.5));
so.data.achievprog[8] = (so.data.achievprog[8] + 1);
cekachiev(8);
} else {
if (useitemimage[0].nomor == 5){
_local2 = true;
_arg1.currentTarget.health = (_arg1.currentTarget.health + (_arg1.currentTarget.healthtemp * 0.8));
so.data.achievprog[8] = (so.data.achievprog[8] + 1);
cekachiev(8);
} else {
if (useitemimage[0].nomor == 6){
if (so.data.inventorytube.length < 10){
_local3 = 0;
_local4 = 0;
if (so.data.inventorytube.length > 0){
_local5 = 0;
while (_local5 < so.data.inventorytube.length) {
if (so.data.inventorytube[_local5][7] == false){
_local3++;
} else {
_local4++;
};
_local5++;
};
};
if ((((((_arg1.currentTarget.special == false)) && ((_local3 < 5)))) || ((((_arg1.currentTarget.special == true)) && ((_local4 < 5)))))){
if (_arg1.currentTarget.special == true){
cekmainquest("clone a superhero", 1);
};
_local2 = true;
so.data.inventorytube[so.data.inventorytube.length] = [_arg1.currentTarget.namee, _arg1.currentTarget.typee, _arg1.currentTarget.levele, _arg1.currentTarget.health, _arg1.currentTarget.speed, _arg1.currentTarget.attack, _arg1.currentTarget.defense, _arg1.currentTarget.special, _arg1.currentTarget.kepalane, _arg1.currentTarget.expe, _arg1.currentTarget.expneeded, 0, 0, 0, _arg1.currentTarget.salary, _arg1.currentTarget.lastwish, _arg1.currentTarget.area];
};
};
};
};
};
};
};
};
if (_local2 == true){
cekboothdecortotal();
_local5 = 0;
while (_local5 < so.data.inventorypotion.length) {
if (so.data.inventorypotion[_local5] == useitemimage[0].nomor){
so.data.inventorypotionamount[_local5] = (so.data.inventorypotionamount[_local5] - 1);
if (so.data.inventorypotionamount[_local5] == 0){
so.data.inventorypotion.splice(_local5, 1);
so.data.inventorypotionamount.splice(_local5, 1);
break;
};
};
_local5++;
};
onusepotion = false;
useitemimage[0].removeEventListener(Event.ENTER_FRAME, useitemfollowe);
mcgaia.removeChild(useitemimage[0]);
useitemimage[0] = null;
};
};
};
} else {
if ((((onusepotion == false)) && ((so.data.tutorialcomplete == true)))){
if (toolcommand != ""){
if ((((_arg1.currentTarget is ingamewall)) || ((_arg1.currentTarget is ingamewall2)))){
if (toolcommand == "sell"){
_local6 = (_arg1.currentTarget.nomordecor - 1);
so.data.money = (so.data.money + int((decorprice[4][_local6] / 2)));
updatetext();
so.data.decorationwall[_arg1.currentTarget.milikwallke] = false;
so.data.decorationwallnomor[_arg1.currentTarget.milikwallke] = 0;
cleanwalls();
bwatwalls();
toolcommand = "";
mcmouse.gotoAndStop(1);
Mouse.show();
} else {
if (toolcommand == "stock"){
_local6 = (_arg1.currentTarget.nomordecor - 1);
so.data.build2stock[4][_local6] = (so.data.build2stock[4][_local6] + 1);
so.data.decorationwall[_arg1.currentTarget.milikwallke] = false;
so.data.decorationwallnomor[_arg1.currentTarget.milikwallke] = 0;
cleanwalls();
bwatwalls();
trace("2");
starstandart = (starstandart - decorstarcontribute[4][_local6]);
toolcommand = "";
mcmouse.gotoAndStop(1);
Mouse.show();
} else {
if (toolcommand == "move"){
mcpressesc.visible = true;
if (so.data.decorationwall[_arg1.currentTarget.milikwallke] == true){
so.data.achievprog[14] = (so.data.achievprog[14] + 1);
cekachiev(14);
trace("masuk wall");
temprotate = false;
tempmoney = 0;
tempshoptipeitem = 4;
trace(("ha : " + _arg1.currentTarget.nomordecor));
tempshopnomoritem = (_arg1.currentTarget.nomordecor - 1);
tempshopprice = 0;
trace("0");
cleanupshopitemimage();
closeuiwindow();
trace("1");
so.data.decorationwall[_arg1.currentTarget.milikwallke] = false;
so.data.decorationwallnomor[_arg1.currentTarget.milikwallke] = 0;
cleanwalls();
bwatwalls();
trace("2");
starstandart = (starstandart - decorstarcontribute[4][(_arg1.currentTarget.nomordecor - 1)]);
bwatprebuybuild2();
};
};
};
};
} else {
if ((((_arg1.currentTarget.zombie == false)) && ((_arg1.currentTarget.decor == false)))){
trace(((("HA CLICK CEK : " + _arg1.currentTarget.beha) + " ") + _arg1.currentTarget.dead));
if ((((_arg1.currentTarget.beha == "idle")) && ((_arg1.currentTarget.dead == false)))){
if (toolcommand == "stock"){
so.data.employeeonstock[so.data.employeeonstock.length] = [_arg1.currentTarget.namee, _arg1.currentTarget.typee, _arg1.currentTarget.levele, _arg1.currentTarget.health, _arg1.currentTarget.speed, _arg1.currentTarget.attack, _arg1.currentTarget.defense, _arg1.currentTarget.special, _arg1.currentTarget.kepalane, _arg1.currentTarget.expe, _arg1.currentTarget.expneeded, _arg1.currentTarget.head, _arg1.currentTarget.glove, _arg1.currentTarget.armor, _arg1.currentTarget.salary, _arg1.currentTarget.lastwish, _arg1.currentTarget.area];
_local5 = 0;
while (_local5 < so.data.employeelist.length) {
if ((((so.data.employeeliststatus[_local5][11] == (_arg1.currentTarget.miliktilex - firsttile[0]))) && ((so.data.employeeliststatus[_local5][12] == (_arg1.currentTarget.miliktiley - firsttile[1]))))){
trace(("potong emp ke : " + _local5));
so.data.employeeliststatus.splice(_local5, 1);
so.data.employeelist.splice(_local5, 1);
break;
};
_local5++;
};
trace(("ssdh : " + so.data.employeeliststatus));
so.data.boothreferto[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothtipe[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothnomor[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothstock[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothreferto[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
cleanupareastocking();
employeeimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])].removeEventListener(Event.ENTER_FRAME, employeebehavior);
employeeimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])].removeEventListener(Event.ENTER_FRAME, securitybehavior);
employeeimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
employeeimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
employeeimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])].removeEventListener(MouseEvent.CLICK, clickdecor);
mcgaia.removeChild(employeeimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])]);
employeeimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = null;
} else {
if (toolcommand == "move"){
mcpressesc.visible = true;
movethisemployee(_arg1.currentTarget);
};
};
};
} else {
if (toolcommand == "sell"){
if (so.data.boothapa[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] == "booth"){
_local6 = _arg1.currentTarget.nomor;
mcsellbooth.txt1.text = (((("Are you sure you want to sell " + boothname[_arg1.currentTarget.tipe][_arg1.currentTarget.nomor]) + " for : ") + int((boothpricemoney[_arg1.currentTarget.tipe][_local6] / 2))) + "$?");
mcsellbooth.btncancel.removeEventListener(MouseEvent.CLICK, cancelsell);
mcsellbooth.btnok.removeEventListener(MouseEvent.CLICK, oksell);
mcsellbooth.btncancel.addEventListener(MouseEvent.CLICK, cancelsell);
mcsellbooth.btnok.addEventListener(MouseEvent.CLICK, oksell);
mcsellbooth.gotoAndPlay(2);
mcsellbooth.tempeboothe = _arg1.currentTarget;
} else {
_local6 = _arg1.currentTarget.nomor;
so.data.money = (so.data.money + int((decorprice[_arg1.currentTarget.tipe][_local6] / 2)));
updatetext();
so.data.boothreferto[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothtipe[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothnomor[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothstock[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
_local5 = 0;
while (_local5 <= _arg1.currentTarget.sizex) {
_local7 = 0;
while (_local7 <= _arg1.currentTarget.sizey) {
map.setCell((_arg1.currentTarget.miliktilex - _local5), (_arg1.currentTarget.miliktiley - _local7), map.CELL_FREE);
so.data.boothreferto[((_arg1.currentTarget.miliktilex - firsttile[0]) - _local5)][((_arg1.currentTarget.miliktiley - firsttile[1]) - _local7)] = "";
_local7++;
};
_local5++;
};
mcgaia.removeChild(decorimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])]);
decorimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = null;
};
toolcommand = "";
mcmouse.gotoAndStop(1);
Mouse.show();
} else {
if (toolcommand == "stock"){
trace("YA STOCK");
if (so.data.boothapa[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] == "booth"){
if (_arg1.currentTarget.adaemployee == false){
_local6 = _arg1.currentTarget.nomor;
so.data.build1stock[_arg1.currentTarget.tipe][_local6] = (so.data.build1stock[_arg1.currentTarget.tipe][_local6] + 1);
trace((((("stok ke : " + _arg1.currentTarget.tipe) + " ") + _local6) + " ditambai"));
so.data.boothreferto[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothtipe[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothnomor[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothstock[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
_local5 = 0;
while (_local5 <= _arg1.currentTarget.sizex) {
_local7 = 0;
while (_local7 <= _arg1.currentTarget.sizey) {
map.setCell((_arg1.currentTarget.miliktilex - _local5), (_arg1.currentTarget.miliktiley - _local7), map.CELL_FREE);
so.data.boothreferto[((_arg1.currentTarget.miliktilex - firsttile[0]) - _local5)][((_arg1.currentTarget.miliktiley - firsttile[1]) - _local7)] = "";
_local7++;
};
_local5++;
};
mcgaia.removeChild(decorimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])]);
decorimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = null;
};
} else {
_local6 = _arg1.currentTarget.nomor;
so.data.build2stock[_arg1.currentTarget.tipe][_local6] = (so.data.build2stock[_arg1.currentTarget.tipe][_local6] + 1);
so.data.boothreferto[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothtipe[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothnomor[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothstock[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
_local5 = 0;
while (_local5 <= _arg1.currentTarget.sizex) {
_local7 = 0;
while (_local7 <= _arg1.currentTarget.sizey) {
map.setCell((_arg1.currentTarget.miliktilex - _local5), (_arg1.currentTarget.miliktiley - _local7), map.CELL_FREE);
so.data.boothreferto[((_arg1.currentTarget.miliktilex - firsttile[0]) - _local5)][((_arg1.currentTarget.miliktiley - firsttile[1]) - _local7)] = "";
_local7++;
};
_local5++;
};
mcgaia.removeChild(decorimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])]);
decorimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = null;
};
toolcommand = "";
mcmouse.gotoAndStop(1);
Mouse.show();
} else {
mcpressesc.visible = true;
if (toolcommand == "rotate"){
trace(("ROTATE : " + so.data.boothrotate[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])]));
if (so.data.boothrotate[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] == false){
temprotate = true;
} else {
temprotate = false;
};
} else {
if (toolcommand == "move"){
so.data.achievprog[14] = (so.data.achievprog[14] + 1);
cekachiev(14);
temprotate = so.data.boothrotate[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])];
};
};
tempmoney = 0;
tempshoptipeitem = _arg1.currentTarget.tipe;
tempshopnomoritem = _arg1.currentTarget.nomor;
tempshopprice = 0;
cleanupshopitemimage();
if (so.data.boothapa[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] == "booth"){
bwatprebuybuild1();
} else {
starstandart = (starstandart - decorstarcontribute[_arg1.currentTarget.tipe][_arg1.currentTarget.nomor]);
bwatprebuybuild2();
};
editdecortemp[0] = [(_arg1.currentTarget.miliktilex - firsttile[0]), (_arg1.currentTarget.miliktiley - firsttile[1])];
tempstock = so.data.boothstock[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])];
if (_arg1.currentTarget.adaemployee == true){
toolcommandadaemployee = true;
_local5 = 0;
while (_local5 < so.data.employeelist.length) {
if (employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].outside == false){
_local8 = so.data.employeeliststatus[_local5][11];
_local9 = so.data.employeeliststatus[_local5][12];
if ((((so.data.boothreferto[_local8][_local9][0] == (_arg1.currentTarget.miliktilex - firsttile[0]))) && ((so.data.boothreferto[_local8][_local9][1] == (_arg1.currentTarget.miliktiley - firsttile[1]))))){
tempnamee = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].namee;
temphealth = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].health;
tempdefense = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].defense;
tempspeed = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].speed;
templastwish = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].lastwish;
tempsalary = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].salary;
temptypee = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].typee;
templevele = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].levele;
tempkepala = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].kepalane;
tempareane = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].area;
tempattack = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].attack;
temphead = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].head;
temparmor = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].armor;
tempglove = employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].glove;
trace("EMPLOYEE ILANGIII");
cleanupareastocking();
employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].removeEventListener(Event.ENTER_FRAME, employeebehavior);
employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].removeEventListener(Event.ENTER_FRAME, securitybehavior);
employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]].removeEventListener(MouseEvent.CLICK, clickdecor);
_arg1.currentTarget.removeChild(employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]]);
employeeimage[so.data.employeeliststatus[_local5][11]][so.data.employeeliststatus[_local5][12]] = null;
so.data.employeeliststatus.splice(_local5, 1);
so.data.employeelist.splice(_local5, 1);
break;
};
};
_local5++;
};
};
trace(("diilangi di : " + int((_arg1.currentTarget.miliktilex - firsttile[0]))));
so.data.boothreferto[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothtipe[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothnomor[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
so.data.boothstock[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = "";
_local5 = 0;
while (_local5 <= _arg1.currentTarget.sizex) {
_local7 = 0;
while (_local7 <= _arg1.currentTarget.sizey) {
map.setCell((_arg1.currentTarget.miliktilex - _local5), (_arg1.currentTarget.miliktiley - _local7), map.CELL_FREE);
so.data.boothreferto[((_arg1.currentTarget.miliktilex - firsttile[0]) - _local5)][((_arg1.currentTarget.miliktiley - firsttile[1]) - _local7)] = "";
_local7++;
};
_local5++;
};
mcgaia.removeChild(decorimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])]);
decorimage[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])] = null;
trace(("decor jd : " + decorimage));
};
};
};
};
} else {
if (toolcommand == ""){
trace(("JANCOK POO SE : " + _arg1.currentTarget.decor));
if ((((((_arg1.currentTarget.zombie == false)) && ((_arg1.currentTarget.decor == false)))) && ((_arg1.currentTarget.booth == false)))){
if (_arg1.currentTarget.kepalane < 4){
trace("suara laki");
_local10 = [soundmale1huh, soundmale2huh];
_local11 = randRange(0, (_local10.length - 1));
_local10[_local11].play(0, 1, new SoundTransform(volumesfx));
} else {
trace("suara wedok");
_local10 = [soundfemale1huh];
_local11 = randRange(0, (_local10.length - 1));
_local10[_local11].play(0, 1, new SoundTransform(volumesfx));
};
mcpopupemploye.employeene = _arg1.currentTarget;
mcpopupemploye.txtname.text = _arg1.currentTarget.namee.toUpperCase();
mcpopupemploye.txthealth.text = _arg1.currentTarget.health;
mcpopupemploye.txtdef.text = _arg1.currentTarget.defense;
mcpopupemploye.txtspeed.text = _arg1.currentTarget.speed;
mcpopupemploye.txtsalary.text = _arg1.currentTarget.salary;
mcpopupemploye.txtlevel.text = ("Lv." + _arg1.currentTarget.levele);
trace(("EXPNE : " + _arg1.currentTarget.expe));
mcpopupemploye.mcbarexp.mc1.width = ((_arg1.currentTarget.expe / _arg1.currentTarget.expneeded) * 48);
if (_arg1.currentTarget.typee == 1){
mcpopupemploye.mc2.visible = false;
mcpopupemploye.mc1.visible = true;
mcpopupemploye.mc1.gotoAndStop(_arg1.currentTarget.kepalane);
mcpopupemploye.typee = 1;
mcpopupemploye.head = _arg1.currentTarget.head;
mcpopupemploye.armor = _arg1.currentTarget.armor;
mcpopupemploye.glove = _arg1.currentTarget.glove;
mcpopupemploye.addEventListener(Event.ENTER_FRAME, employeelistframer);
} else {
if (_arg1.currentTarget.typee == 2){
mcpopupemploye.mc2.visible = true;
mcpopupemploye.mc1.visible = false;
mcpopupemploye.mc2.gotoAndStop(_arg1.currentTarget.kepalane);
mcpopupemploye.typee = 2;
mcpopupemploye.head = _arg1.currentTarget.head;
mcpopupemploye.armor = _arg1.currentTarget.armor;
mcpopupemploye.glove = _arg1.currentTarget.glove;
mcpopupemploye.addEventListener(Event.ENTER_FRAME, employeelistframer);
};
};
loadequipbuttonforthis(_arg1.currentTarget, mcpopupemploye);
mcpopupemploye.gotoAndPlay(2);
mcpopupemploye.btnfire.removeEventListener(MouseEvent.CLICK, fireemployee);
mcpopupemploye.btnfire.addEventListener(MouseEvent.CLICK, fireemployee);
mcpopupemploye.btnlastwish.removeEventListener(MouseEvent.CLICK, lastwishemployee);
mcpopupemploye.btnlastwish.addEventListener(MouseEvent.CLICK, lastwishemployee);
mcpopupemploye.btnmove.removeEventListener(MouseEvent.CLICK, moveemployee);
mcpopupemploye.btnmove.addEventListener(MouseEvent.CLICK, moveemployee);
mcpopupemploye.btnclose.removeEventListener(MouseEvent.CLICK, employeepopupclose);
mcpopupemploye.btnclose.addEventListener(MouseEvent.CLICK, employeepopupclose);
} else {
if (_arg1.currentTarget.booth == true){
trace(((("asu : " + sidequestbool) + " ") + sidequesttitle));
if ((((((sidequestbool == true)) && ((sidequesttitle == "booth direction")))) && ((sidequestcariini.length > 0)))){
trace(("ha : " + sidequestcariini[0]));
trace(((("tipe : " + _arg1.currentTarget.tipe) + " ") + _arg1.currentTarget.nomor));
if ((((_arg1.currentTarget.tipe == sidequestcariini[0][0])) && ((_arg1.currentTarget.nomor == sidequestcariini[0][1])))){
isinotif("A zombie thank you for your help and gave amount of $ in return");
createsepyur("", 1, 1, 1, sidequestzombie);
createbucks(1, sidequestzombie);
sidequestzombie.mcemoti.gotoAndPlay("happy");
cancelsidequestzombie();
};
};
mcitemexp.visible = true;
mcitemexp.x = _arg1.currentTarget.x;
mcitemexp.y = _arg1.currentTarget.y;
if (mcitemexp.hitTestObject(mchitbottom) == true){
mcitemexp.y = (mcitemexp.y - mcitemexp.height);
} else {
if (mcitemexp.hitTestObject(mchittop) == true){
mcitemexp.y = (mcitemexp.y + mcitemexp.height);
};
};
if (mcitemexp.hitTestObject(mchitright) == true){
mcitemexp.x = (mcitemexp.x - mcitemexp.width);
} else {
if (mcitemexp.hitTestObject(mchitleft) == true){
mcitemexp.x = (mcitemexp.x + mcitemexp.width);
};
};
_local7 = 1;
while (_local7 <= 8) {
_local12 = mcitemexp.getChildByName(("mc" + _local7));
if (_local12 != null){
_local12.visible = false;
};
_local7++;
};
mcitemexp.tipeku = _arg1.currentTarget.tipe;
mcitemexp.nomorku = _arg1.currentTarget.nomor;
clickstocktipe = _arg1.currentTarget.tipe;
clickstocknomor = _arg1.currentTarget.nomor;
if (_arg1.currentTarget.tipe == 6){
mcitemexp.txtexp.text = ((((((_arg1.currentTarget.online + ",") + _arg1.currentTarget.onlinemax) + ",") + _arg1.currentTarget.servingspeed) + ",") + _arg1.currentTarget.servingspeedtemp);
};
trace(("TIPE KLIK: " + _arg1.currentTarget.tipe));
trace(("NOMOR KLIK: " + _arg1.currentTarget.nomor));
_local12 = mcitemexp.getChildByName(("mc" + _arg1.currentTarget.tipe));
if (_arg1.currentTarget.tipe != 6){
_local12.visible = true;
_local12.gotoAndStop((_arg1.currentTarget.nomor + 1));
trace(("asd " + so.data.boothstock[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])]));
mcitemexp.txtexp.text = ((((((boothprice[_arg1.currentTarget.tipe][_arg1.currentTarget.nomor] + "\n") + so.data.boothstock[(_arg1.currentTarget.miliktilex - firsttile[0])][(_arg1.currentTarget.miliktiley - firsttile[1])]) + "/") + boothmaxstock[_arg1.currentTarget.tipe][_arg1.currentTarget.nomor]) + "\n") + so.data.build1stockwarehouse[_arg1.currentTarget.tipe][_arg1.currentTarget.nomor]);
};
mcitemexp.btnclose.removeEventListener(MouseEvent.CLICK, itemexpclose);
mcitemexp.btnstock.removeEventListener(MouseEvent.CLICK, itemexpstock);
mcitemexp.btnclose.addEventListener(MouseEvent.CLICK, itemexpclose);
mcitemexp.btnstock.addEventListener(MouseEvent.CLICK, itemexpstock);
};
};
};
};
};
};
}
public function cancelsell(_arg1:MouseEvent):void{
mcsellbooth.gotoAndStop(1);
}
public function oksell(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
so.data.achievprog[11] = (so.data.achievprog[11] + 1);
cekachiev(11);
soundmoney.play(0, 1, new SoundTransform(volumesfx));
mcsellbooth.gotoAndStop(1);
_local2 = _arg1.currentTarget.parent;
_local2 = _local2.tempeboothe;
so.data.money = (so.data.money + int((boothprice[_local2.tipe][_local2.nomor] / 2)));
updatetext();
so.data.boothreferto[(_local2.miliktilex - firsttile[0])][(_local2.miliktiley - firsttile[1])] = "";
so.data.boothtipe[(_local2.miliktilex - firsttile[0])][(_local2.miliktiley - firsttile[1])] = "";
so.data.boothnomor[(_local2.miliktilex - firsttile[0])][(_local2.miliktiley - firsttile[1])] = "";
so.data.boothstock[(_local2.miliktilex - firsttile[0])][(_local2.miliktiley - firsttile[1])] = "";
_local3 = 0;
while (_local3 <= _local2.sizex) {
_local4 = 0;
while (_local4 <= _local2.sizey) {
map.setCell((_local2.miliktilex - _local3), (_local2.miliktiley - _local4), map.CELL_FREE);
so.data.boothreferto[((_local2.miliktilex - firsttile[0]) - _local3)][((_local2.miliktiley - firsttile[1]) - _local4)] = "";
_local4++;
};
_local3++;
};
mcgaia.removeChild(decorimage[(_local2.miliktilex - firsttile[0])][(_local2.miliktiley - firsttile[1])]);
decorimage[(_local2.miliktilex - firsttile[0])][(_local2.miliktiley - firsttile[1])] = null;
}
public function movethisemployee(_arg1:Object){
var _local2:*;
bwatsuararespondemployee(_arg1.kepalane);
tempmoney = 0;
createemployeebool = true;
tempshoptipeitem = 3;
tempnamee = _arg1.namee;
temphealth = _arg1.health;
tempdefense = _arg1.defense;
tempspeed = _arg1.speed;
templastwish = _arg1.lastwish;
tempsalary = _arg1.salary;
temptypee = _arg1.typee;
templevele = _arg1.levele;
tempkepala = _arg1.kepalane;
tempareane = _arg1.area;
tempattack = _arg1.attack;
temphead = _arg1.head;
temparmor = _arg1.armor;
tempglove = _arg1.glove;
editdecortemp = [(_arg1.miliktilex - firsttile[0]), (_arg1.miliktiley - firsttile[1])];
_local2 = 0;
while (_local2 < so.data.employeelist.length) {
if ((((so.data.employeeliststatus[_local2][11] == (_arg1.miliktilex - firsttile[0]))) && ((so.data.employeeliststatus[_local2][12] == (_arg1.miliktiley - firsttile[1]))))){
trace(("potong emp ke : " + _local2));
so.data.employeeliststatus.splice(_local2, 1);
so.data.employeelist.splice(_local2, 1);
break;
};
_local2++;
};
trace(("ssdh : " + so.data.employeeliststatus));
so.data.boothreferto[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])] = "";
so.data.boothtipe[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])] = "";
so.data.boothnomor[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])] = "";
so.data.boothstock[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])] = "";
so.data.boothreferto[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])] = "";
cleanupareastocking();
employeeimage[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])].removeEventListener(Event.ENTER_FRAME, employeebehavior);
employeeimage[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])].removeEventListener(Event.ENTER_FRAME, securitybehavior);
employeeimage[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
employeeimage[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
employeeimage[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])].removeEventListener(MouseEvent.CLICK, clickdecor);
mcgaia.removeChild(employeeimage[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])]);
employeeimage[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])] = null;
bwatprebuybuild3();
}
public function fireemployee(_arg1:MouseEvent){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.currentTarget.parent;
_local2 = _local2.employeene;
_local3 = _local2.posx;
_local4 = _local2.posy;
so.data.boothreferto[_local3][_local4] = "";
so.data.boothtipe[_local3][_local4] = "";
so.data.boothnomor[_local3][_local4] = "";
so.data.boothstock[_local3][_local4] = "";
so.data.boothreferto[_local3][_local4] = "";
cleanupareastocking();
employeeimage[_local3][_local4].removeEventListener(Event.ENTER_FRAME, employeebehavior);
employeeimage[_local3][_local4].removeEventListener(Event.ENTER_FRAME, securitybehavior);
employeeimage[_local3][_local4].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
employeeimage[_local3][_local4].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
employeeimage[_local3][_local4].removeEventListener(MouseEvent.CLICK, clickdecor);
mcgaia.removeChild(employeeimage[_local3][_local4]);
employeeimage[_local3][_local4] = null;
so.data.employeelist.splice(_local2, 1);
so.data.employeeliststatus.splice(_local2, 1);
mcpopupemploye.gotoAndStop(1);
}
public function lastwishemployee(_arg1:MouseEvent){
var _local2:*;
_local2 = _arg1.currentTarget.parent;
mclastwishemployee.txt1.text = _local2.employeene.lastwish;
mclastwishemployee.gotoAndPlay(2);
mclastwishemployee.mc1.btnclose.removeEventListener(MouseEvent.CLICK, closelastwish);
mclastwishemployee.mc1.btnclose.addEventListener(MouseEvent.CLICK, closelastwish);
}
public function closelastwish(_arg1:MouseEvent):void{
mclastwishemployee.gotoAndStop(1);
}
public function moveemployee(_arg1:MouseEvent){
var _local2:*;
mcpopupemploye.gotoAndStop(1);
_local2 = _arg1.currentTarget.parent;
_local2 = _local2.employeene;
movethisemployee(_local2);
}
public function createbucks(_arg1:int, _arg2:Object){
var _local3:*;
so.data.premiummoney = (so.data.premiummoney + 1);
creategainfxui(3, 1);
updatetext();
_local3 = _arg2;
_local3.x = _arg2.x;
_local3.y = _arg2.y;
createfx("buck", 1, _local3);
}
public function loadequipbuttonforthis(_arg1:Object, _arg2:Object){
var _local3:*;
var _local4:*;
_arg2.ownere = _arg1;
_local3 = 1;
while (_local3 <= 3) {
_local4 = _arg2.getChildByName(("btnequip" + _local3));
_local4.removeEventListener(MouseEvent.CLICK, equipunequip);
_local4.addEventListener(MouseEvent.CLICK, equipunequip);
_local3++;
};
trace(("a : " + _arg2.txt1));
if (_arg2.head == 0){
_arg2.txt1.text = "-none-";
_arg2.btnequip1.gotoAndStop(2);
} else {
_arg2.txt1.text = equipname[0][_arg1.head];
_arg2.btnequip1.gotoAndStop(1);
};
trace(("b : " + _arg2.txt2));
if (_arg2.armor == 0){
_arg2.txt2.text = "-none-";
_arg2.btnequip2.gotoAndStop(2);
} else {
_arg2.txt2.text = equipname[1][_arg1.armor];
_arg2.btnequip2.gotoAndStop(1);
};
trace(("c : " + _arg2.txt3));
if (_arg2.glove == 0){
_arg2.txt3.text = "-none-";
_arg2.btnequip3.gotoAndStop(2);
} else {
_arg2.txt3.text = equipname[2][_arg1.glove];
_arg2.btnequip3.gotoAndStop(1);
};
}
public function equipunequip(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
closeuiwindow();
mcpopupemploye.gotoAndStop(1);
cleanupshopitemimage();
_local2 = _arg1.currentTarget.name;
_local2 = _local2.charAt((_local2.length - 1));
_local3 = _arg1.currentTarget.parent;
_local4 = false;
_local5 = 0;
_local6 = 0;
while (_local6 < so.data.employeelist.length) {
if ((((so.data.employeeliststatus[_local6][11] == (_local3.ownere.miliktilex - firsttile[0]))) && ((so.data.employeeliststatus[_local6][12] == (_local3.ownere.miliktiley - firsttile[1]))))){
_local5 = _local6;
};
_local6++;
};
if (_local2 == 1){
if (_local3.ownere.head != 0){
var _local7 = so.data.equipstock[0];
var _local8 = (_local3.ownere.head - 1);
var _local9 = (_local7[_local8] + 1);
_local7[_local8] = _local9;
_local3.ownere.head = 0;
cekequipvisiblerforthis(_local3.ownere);
so.data.employeeliststatus[_local5][16] = 0;
soundclose.play(0, 1, new SoundTransform(volumesfx));
mcpopupemploye.gotoAndStop(1);
} else {
equipemployeestatus = [_local2, _local3.ownere.posx, _local3.ownere.posy];
_local4 = true;
};
} else {
if (_local2 == 2){
if (_local3.ownere.armor != 0){
_local7 = so.data.equipstock[0];
_local8 = (_local3.ownere.armor - 1);
_local9 = (_local7[_local8] + 1);
_local7[_local8] = _local9;
_local3.ownere.armor = 0;
cekequipvisiblerforthis(_local3.ownere);
so.data.employeeliststatus[_local5][17] = 0;
soundclose.play(0, 1, new SoundTransform(volumesfx));
mcpopupemploye.gotoAndStop(1);
} else {
equipemployeestatus = [_local2, _local3.ownere.posx, _local3.ownere.posy];
_local4 = true;
};
} else {
if (_local2 == 3){
if (_local3.ownere.glove != 0){
_local7 = so.data.equipstock[0];
_local8 = (_local3.ownere.glove - 1);
_local9 = (_local7[_local8] + 1);
_local7[_local8] = _local9;
_local3.ownere.glove = 0;
cekequipvisiblerforthis(_local3.ownere);
so.data.employeeliststatus[_local5][18] = 0;
soundclose.play(0, 1, new SoundTransform(volumesfx));
mcpopupemploye.gotoAndStop(1);
} else {
equipemployeestatus = [_local2, _local3.ownere.posx, _local3.ownere.posy];
_local4 = true;
};
};
};
};
if (_local4 == true){
indexshop = 4;
createanimasibuild(getChildByName(("mcuibuild" + indexshop)));
indexbuild = 2;
};
}
public function employeepopupclose(_arg1:MouseEvent):void{
soundclose.play(0, 1, new SoundTransform(volumesfx));
mcpopupemploye.gotoAndStop(1);
}
public function itemexpclose(_arg1:MouseEvent):void{
soundclose.play(0, 1, new SoundTransform(volumesfx));
mcitemexp.visible = false;
}
public function itemexpstock(_arg1:MouseEvent):void{
soundklik.play(0, 1, new SoundTransform(volumesfx));
mcitemexp.visible = false;
indexshop = 6;
createanimasibuild(getChildByName(("mcuibuild" + indexshop)));
}
public function prebuyfollowmouse(_arg1:Event):void{
var _local2:Point;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:Color;
var _local9:*;
var _local10:*;
_local2 = new Point(mouseX, mouseY);
_local2 = mcgaia.globalToLocal(_local2);
_arg1.currentTarget.x = _local2.x;
_arg1.currentTarget.y = _local2.y;
if (createemployeebool == true){
_arg1.currentTarget.mcareastocking.visible = true;
_local3 = 0;
while (_local3 < so.data.widthemart) {
_local4 = 0;
while (_local4 < so.data.heightemart) {
if (((!((decorimage[_local3][_local4] == null))) && (!((decorimage[_local3][_local4] == undefined))))){
if ((((decorimage[_local3][_local4].tipe == 2)) && ((decorimage[_local3][_local4].booth == true)))){
if (decorimage[_local3][_local4].adaemployee == false){
decorimage[_local3][_local4].mcarrow.visible = true;
};
};
};
_local4++;
};
_local3++;
};
};
if ((((((createemployeebool == false)) && ((createboothbool == false)))) && ((((tempshoptipeitem == 3)) || ((tempshoptipeitem == 4)))))){
_local5 = false;
_local6 = 0;
_local7 = 0;
_local3 = 0;
while (_local3 < wallimage.length) {
if (_arg1.currentTarget.mchit.hitTestObject(wallimage[_local3].mchit) == true){
_arg1.currentTarget.x = tileimage[wallimage[_local3].miliktilex][wallimage[_local3].miliktiley].x;
_arg1.currentTarget.y = tileimage[wallimage[_local3].miliktilex][wallimage[_local3].miliktiley].y;
_local6 = wallimage[_local3].miliktilex;
_local7 = wallimage[_local3].miliktiley;
tempplacementx = wallimage[_local3].miliktilex;
tempplacementy = wallimage[_local3].miliktiley;
tempplacementbool = true;
tempwallke = _local3;
tempsaveke = wallimage[_local3].miliksaveke;
if (_arg1.currentTarget.positione != wallimage[_local3].positione){
_arg1.currentTarget.positione = wallimage[_local3].positione;
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * -1);
};
if (tempshoptipeitem == 4){
_local9 = decorsizex[tempshoptipeitem][tempshopnomoritem];
_local4 = 0;
while (_local4 <= _local9) {
_local10 = 0;
_local10 = (_local3 - _local4);
if ((((((_local10 > (widthemart - 1))) && ((_local10 < widthemart)))) && ((_local4 > 0)))){
trace("nda bole 1");
tempplacementbool = false;
_local5 = false;
break;
} else {
if ((((((_local3 >= int((int(widthemart) + int(2))))) && ((_local10 < int((int(widthemart) + int(2))))))) && ((_local4 > 0)))){
trace("nda bole 2");
tempplacementbool = false;
_local5 = false;
break;
} else {
if ((((((_local10 < widthemart)) && ((_local4 > 0)))) && ((_local3 >= widthemart)))){
trace("nda bole 3");
tempplacementbool = false;
_local5 = false;
break;
} else {
if ((((_local10 < 0)) || ((_local10 > wallimage.length)))){
trace("nda bole 4");
tempplacementbool = false;
_local5 = false;
break;
} else {
if (so.data.decorationwall[wallimage[_local10].milikwallke] == false){
_local5 = true;
} else {
tempplacementbool = false;
_local5 = false;
break;
};
};
};
};
};
_local4++;
};
} else {
_local5 = true;
};
break;
};
_local3++;
};
resettilesallow();
_local8 = new Color();
if (_local5 == false){
tempplacementbool = false;
_local8.setTint(uint(0xFF0000), 100);
} else {
tempplacementbool = true;
_local8.setTint(uint(0xFF00), 100);
};
tileimage[_local6][_local7].transform.colorTransform = _local8;
} else {
_local3 = firsttile[0];
while (_local3 <= int((int(firsttile[0]) + int(widthemart)))) {
_local4 = firsttile[0];
while (_local4 <= int((int(firsttile[0]) + int(heightemart)))) {
if (tileimage[_local3][_local4] != null){
if (mcmouse.hitTestObject(tileimage[_local3][_local4].mchit) == true){
resettilesallow();
cekallowplacementdecor(_local3, _local4, _arg1.currentTarget);
//unresolved jump
};
};
_local4++;
};
_local3++;
};
};
}
public function cleanupprebuyfollowmouse(){
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < so.data.widthemart) {
_local2 = 0;
while (_local2 < so.data.heightemart) {
if (((!((decorimage[_local1][_local2] == null))) && (!((decorimage[_local1][_local2] == undefined))))){
if (decorimage[_local1][_local2].tipe == 2){
decorimage[_local1][_local2].mcarrow.visible = false;
};
};
_local2++;
};
_local1++;
};
pausegame = false;
makeallalpha(1);
if (prebuyimage[0] != null){
prebuyimage[0].removeEventListener(Event.ENTER_FRAME, prebuyfollowmouse);
stage.removeEventListener(MouseEvent.MOUSE_UP, prebuyclickmouse);
mcgaia.removeChild(prebuyimage[0]);
prebuyimage[0] = null;
prebuyimage = [];
};
}
public function resettilesallow(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 0;
while (_local1 <= int((int(firsttile[0]) + int(widthemart)))) {
_local2 = 0;
while (_local2 <= int((int(firsttile[0]) + int(heightemart)))) {
if (tileimage[_local1][_local2] != null){
_local3 = new ColorTransform();
tileimage[_local1][_local2].transform.colorTransform = _local3;
};
_local2++;
};
_local1++;
};
}
public function cekallowplacementdecor(_arg1:int, _arg2:int, _arg3:Object){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:Color;
_local4 = false;
resettilesallow();
_local5 = [];
_local6 = 0;
while (_local6 <= _arg3.sizex) {
_local5[_local6] = [];
_local7 = 0;
while (_local7 <= _arg3.sizey) {
_local5[_local6][_local7] = [];
_local8 = (_arg1 - _local6);
_local9 = (_arg2 - _local7);
if (createemployeebool == false){
if ((((((_local8 < (firsttile[0] + widthemart))) && ((_local9 < (firsttile[1] + heightemart))))) && ((((_local8 >= firsttile[0])) && ((_local9 >= firsttile[1])))))){
if ((((so.data.boothreferto[(_local8 - firsttile[0])][(_local9 - firsttile[1])] == undefined)) || ((so.data.boothreferto[(_local8 - firsttile[0])][(_local9 - firsttile[1])] == "")))){
if ((((((((_local8 == (firsttile[0] + 2))) && ((_local9 == firsttile[0])))) || ((((_local8 == (firsttile[0] + 3))) && ((_local9 == firsttile[0])))))) || ((((_local8 == (firsttile[0] + 4))) && ((_local9 == firsttile[0])))))){
if (createboothbool == true){
tempplacementbool = false;
_local5[_local6][_local7] = 0;
} else {
if ((((createboothbool == false)) && ((tempshoptipeitem == 1)))){
_local5[_local6][_local7] = 1;
_arg3.x = tileimage[_arg1][_arg2].x;
_arg3.y = tileimage[_arg1][_arg2].y;
_arg3.stickto = [_arg1, _arg2];
_local4 = true;
tempplacementx = _arg1;
tempplacementy = _arg2;
tempplacementbool = true;
} else {
tempplacementbool = false;
_local5[_local6][_local7] = 0;
};
};
} else {
_local5[_local6][_local7] = 1;
_arg3.x = tileimage[_arg1][_arg2].x;
_arg3.y = tileimage[_arg1][_arg2].y;
_arg3.stickto = [_arg1, _arg2];
_local4 = true;
tempplacementx = _arg1;
tempplacementy = _arg2;
tempplacementbool = true;
};
} else {
if ((((createboothbool == false)) && ((tempshoptipeitem == 1)))){
_local5[_local6][_local7] = 1;
_arg3.x = tileimage[_arg1][_arg2].x;
_arg3.y = tileimage[_arg1][_arg2].y;
_arg3.stickto = [_arg1, _arg2];
_local4 = true;
tempplacementx = _arg1;
tempplacementy = _arg2;
tempplacementbool = true;
};
};
};
} else {
if (createemployeebool == true){
if ((((((_local8 < (firsttile[0] + widthemart))) && ((_local9 < (firsttile[1] + heightemart))))) && ((((_local8 >= firsttile[0])) && ((_local9 >= firsttile[1])))))){
if (((((((!((so.data.boothreferto[(_local8 - firsttile[0])][(_local9 - firsttile[1])] == undefined))) && (!((so.data.boothreferto[(_local8 - firsttile[0])][(_local9 - firsttile[1])] == ""))))) && (!((so.data.boothtipe[so.data.boothreferto[(_arg1 - firsttile[0])][(_arg2 - firsttile[1])][0]][so.data.boothreferto[(_arg1 - firsttile[0])][(_arg2 - firsttile[1])][1]] == "emp"))))) && ((temptypee == 1)))){
trace(("ADA ISI " + so.data.boothreferto[(_arg1 - firsttile[0])][(_arg2 - firsttile[1])]));
if (((!((so.data.boothreferto[(_arg1 - firsttile[0])][(_arg2 - firsttile[1])] == undefined))) && (!((so.data.boothreferto[(_arg1 - firsttile[0])][(_arg2 - firsttile[1])] == ""))))){
trace(("decor : " + decorimage[so.data.boothreferto[(_local8 - firsttile[0])][(_local9 - firsttile[1])][0]][so.data.boothreferto[(_local8 - firsttile[0])][(_local9 - firsttile[1])][1]]));
if (decorimage[so.data.boothreferto[(_local8 - firsttile[0])][(_local9 - firsttile[1])][0]][so.data.boothreferto[(_local8 - firsttile[0])][(_local9 - firsttile[1])][1]].booth == true){
_local10 = so.data.boothreferto[(_arg1 - firsttile[0])][(_arg2 - firsttile[1])][0];
_local11 = so.data.boothreferto[(_arg1 - firsttile[0])][(_arg2 - firsttile[1])][1];
if (so.data.boothtipe[_local10][_local11] != "emp"){
if (decorimage[_local10][_local11].tipe == 2){
if (decorimage[_local10][_local11].adaemployee == false){
_local5[_local6][_local7] = 1;
_arg3.x = tileimage[((_local10 - 1) + firsttile[0])][((_local11 - 1) + firsttile[1])].x;
_arg3.y = tileimage[((_local10 - 1) + firsttile[0])][((_local11 - 1) + firsttile[1])].y;
_arg3.stickto = [((_local10 - 1) + firsttile[0]), ((_local11 - 1) + firsttile[1])];
_local4 = true;
tempplacementx = ((_local10 - 1) + firsttile[0]);
tempplacementy = ((_local11 - 1) + firsttile[1]);
tempplacementbool = true;
tempinsertintocourt = true;
} else {
tempplacementbool = false;
_local5[_local6][_local7] = 0;
};
} else {
if ((((so.data.tutorialcomplete == false)) && ((so.data.tutorialstep == 14)))){
if (tileimage[((_local10 - 1) + firsttile[0])][((_local11 - 1) + firsttile[1])].mcblinking.currentFrame != 1){
tempplacementbool = false;
_local5[_local6][_local7] = 0;
} else {
tempplacementbool = true;
_local5[_local6][_local7] = 1;
};
} else {
if (so.data.tutorialcomplete == true){
tempplacementbool = false;
_local5[_local6][_local7] = 0;
};
};
};
} else {
tempplacementbool = false;
_local5[_local6][_local7] = 0;
};
} else {
tempplacementbool = false;
_local5[_local6][_local7] = 0;
};
} else {
tempplacementbool = false;
_local5[_local6][_local7] = 0;
};
} else {
if ((((so.data.boothreferto[(_local8 - firsttile[0])][(_local9 - firsttile[1])] == undefined)) || ((so.data.boothreferto[(_local8 - firsttile[0])][(_local9 - firsttile[1])] == "")))){
trace("G ADA ISI");
if ((((((((_local8 == 22)) && ((_local9 == 20)))) || ((((_local8 == 23)) && ((_local9 == 20)))))) || ((((_local8 == 24)) && ((_local9 == 20)))))){
tempplacementbool = false;
_local5[_local6][_local7] = 0;
} else {
_local4 = false;
if (so.data.tutorialcomplete == false){
if (tileimage[_arg1][_arg2].mcblinking.currentFrame != 1){
_local4 = true;
} else {
_local4 = false;
};
} else {
_local4 = true;
};
if (_local4 == true){
_local5[_local6][_local7] = 1;
trace("a");
_arg3.x = tileimage[_arg1][_arg2].x;
_arg3.y = tileimage[_arg1][_arg2].y;
_arg3.stickto = [_arg1, _arg2];
_local4 = true;
trace("b");
tempplacementx = _arg1;
tempplacementy = _arg2;
tempplacementbool = true;
tempinsertintocourt = false;
trace("c");
};
};
};
};
};
};
};
_local7++;
};
_local6++;
};
_local6 = 0;
while (_local6 <= _arg3.sizex) {
_local7 = 0;
while (_local7 <= _arg3.sizey) {
_local12 = new Color();
if (_local5[_local6][_local7] == 1){
_local12.setTint(uint(0xFF00), 100);
} else {
tempplacementbool = false;
_local12.setTint(uint(0xFF0000), 100);
};
trace("d");
tileimage[(_arg1 - _local6)][(_arg2 - _local7)].transform.colorTransform = _local12;
_local7++;
};
_local6++;
};
}
public function uichangename(_arg1:MouseEvent):void{
if (so.data.tutorialcomplete == true){
pausegame = true;
mcinputname.visible = true;
mcinputname.txt1.text = so.data.namee;
stage.focus = mcinputname.txt1;
mcinputname.btnok.removeEventListener(MouseEvent.CLICK, uichangenameok);
mcinputname.btnok.addEventListener(MouseEvent.CLICK, uichangenameok);
};
}
public function uichangenameok(_arg1:MouseEvent):void{
pausegame = false;
soundklik.play(0, 1, new SoundTransform(volumesfx));
so.data.namee = mcinputname.txt1.text;
mcinputname.visible = false;
updatetext();
}
public function cektutorial(){
if (so.data.tutorialcomplete == false){
mcuitool.visible = false;
mctutorial.visible = true;
mctutorial.mc1.gotoAndStop(so.data.tutorialstep);
mctutorial.btnclose.removeEventListener(MouseEvent.CLICK, tutorialnext);
mctutorial.btnclose.addEventListener(MouseEvent.CLICK, tutorialnext);
};
}
public function tutorialnext(_arg1:MouseEvent){
mctutorial.visible = false;
so.data.tutorialstep++;
cektutorchangement();
}
public function cektutorchangement(){
mctutorialcursor.gotoAndStop(so.data.tutorialstep);
if (so.data.tutorialstep == 2){
mcui2.mc1.mcdisabled1.visible = false;
mcui2.mc1.btn1blinking.visible = true;
} else {
if (so.data.tutorialstep == 3){
mcui2.mc1.mcdisabled1.visible = true;
mcui2.mc1.btn1blinking.visible = false;
} else {
if (so.data.tutorialstep == 5){
mcui2.mc1.mcdisabled6.visible = false;
mcui2.mc1.btn6blinking.visible = true;
} else {
if (so.data.tutorialstep == 7){
mcui2.mc1.mcdisabled6.visible = true;
mcui2.mc1.btn6blinking.visible = false;
} else {
if (so.data.tutorialstep == 12){
mcui2.mc1.mcdisabled3.visible = false;
mcui2.mc1.btn3blinking.visible = true;
} else {
if (so.data.tutorialstep == 13){
mcui2.mc1.mcdisabled3.visible = true;
mcui2.mc1.btn3blinking.visible = false;
} else {
if (so.data.tutorialstep == 14){
createtutorialplacement();
} else {
if (so.data.tutorialstep == 17){
createtutorialzombie();
mcui2.mc1.mcdisabled1.visible = false;
mcui2.mc1.btn1blinking.visible = true;
} else {
if (so.data.tutorialstep == 18){
mcui2.mc1.mcdisabled1.visible = true;
mcui2.mc1.btn1blinking.visible = false;
} else {
if (so.data.tutorialstep == 21){
so.data.tutorialcomplete = true;
bwatui2();
mcuitool.visible = true;
};
};
};
};
};
};
};
};
};
};
}
public function tutorialskip(_arg1:MouseEvent){
createtutordone();
}
public function createtutordone(){
closeuiwindow();
soundklik.play(0, 1, new SoundTransform(volumesfx));
pausegame = false;
removetutorialplacement();
mckotaker.visible = false;
mctutorialcursor.gotoAndStop(1);
so.data.tutorialcomplete = true;
mctutorial.visible = false;
bwatui2();
ceknew();
}
public function tutorialcontinue(_arg1:MouseEvent){
}
public function createtutorialzombie(){
zombieimage[zombieimage.length] = new (ingamezombie1);
mcgaia.addChildAt(zombieimage[(zombieimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
zombieimage[(zombieimage.length - 1)].zombieno = 0;
zombieimage[(zombieimage.length - 1)].onsidequest = false;
zombieimage[(zombieimage.length - 1)].sidequest = false;
zombieimage[(zombieimage.length - 1)].sidequesttipe = "";
zombieimage[(zombieimage.length - 1)].statdirection = "left";
zombieimage[(zombieimage.length - 1)].stathead = "front";
zombieimage[(zombieimage.length - 1)].scaleX = (zombieimage[(zombieimage.length - 1)].scaleX * -1);
zombieimage[(zombieimage.length - 1)].speedx = movexstandart;
zombieimage[(zombieimage.length - 1)].speedy = moveystandart;
zombieimage[(zombieimage.length - 1)].tilefirst = firsttile;
zombieimage[(zombieimage.length - 1)].sizemart = widthemart;
zombieimage[(zombieimage.length - 1)].insidemarket = true;
zombieimage[(zombieimage.length - 1)].zombie = true;
zombieimage[(zombieimage.length - 1)].phase = 3;
zombieimage[(zombieimage.length - 1)].miliktilex = pospintu2[0];
zombieimage[(zombieimage.length - 1)].miliktiley = pospintu2[1];
zombieimage[(zombieimage.length - 1)].special = false;
zombieimage[(zombieimage.length - 1)].asalespawnx = randzombieposition[0][0];
zombieimage[(zombieimage.length - 1)].namee = randname[randRange(0, (randname.length - 1))];
zombieimage[(zombieimage.length - 1)].targetx = 0;
zombieimage[(zombieimage.length - 1)].targety = 0;
zombieimage[(zombieimage.length - 1)].x = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].x;
zombieimage[(zombieimage.length - 1)].y = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].y;
zombieimage[(zombieimage.length - 1)].boothtipetemp = [];
zombieimage[(zombieimage.length - 1)].boothnomortemp = [];
zombieimage[(zombieimage.length - 1)].boothtipe = [];
zombieimage[(zombieimage.length - 1)].boothnomor = [];
zombieimage[(zombieimage.length - 1)].boothtipe = [1];
zombieimage[(zombieimage.length - 1)].boothnomor = [0];
zombieimage[(zombieimage.length - 1)].attackmode = false;
zombieimage[(zombieimage.length - 1)].msspeed = zombiespeed[0];
zombieimage[(zombieimage.length - 1)].health = zombiehealth[0];
zombieimage[(zombieimage.length - 1)].attack = zombieattack[0];
zombieimage[(zombieimage.length - 1)].attackspeed = itungaszombie(zombiespeed[0]);
zombieimage[(zombieimage.length - 1)].attackspeedtemp = zombieimage[(zombieimage.length - 1)].attackspeed;
zombieimage[(zombieimage.length - 1)].patience = 100;
zombieimage[(zombieimage.length - 1)].patiencereducer = ((zombieimage[(zombieimage.length - 1)].patience / zombieimage[(zombieimage.length - 1)].boothtipe.length) - 1);
zombieimage[(zombieimage.length - 1)].job = zombiejob[0];
zombieimage[(zombieimage.length - 1)].findcashieryes = false;
zombieimage[(zombieimage.length - 1)].findcashier = false;
zombieimage[(zombieimage.length - 1)].confusingwalk = false;
zombieimage[(zombieimage.length - 1)].confusingidle = false;
zombieimage[(zombieimage.length - 1)].confusingtime = 50;
zombieimage[(zombieimage.length - 1)].confusingtimetemp = zombieimage[(zombieimage.length - 1)].confusingtime;
zombieimage[(zombieimage.length - 1)].cashiertemp = [];
zombieimage[(zombieimage.length - 1)].consumingmoney = 0;
zombieimage[(zombieimage.length - 1)].hasilarrayjalan = [];
zombieimage[(zombieimage.length - 1)].cooldownbuy = cooldownbuy;
zombieimage[(zombieimage.length - 1)].boothtarget = 0;
zombieimage[(zombieimage.length - 1)].indexke = (zombieimage.length - 1);
zombieimage[(zombieimage.length - 1)].onmove = true;
zombieimage[(zombieimage.length - 1)].masukmart = false;
zombieimage[(zombieimage.length - 1)].onmelubangi = false;
zombieimage[(zombieimage.length - 1)].masukmart = true;
caritargetarrayklik(zombieimage[(zombieimage.length - 1)]);
zombieimage[(zombieimage.length - 1)].addEventListener(MouseEvent.CLICK, zombiepopup);
}
public function cektutorialcontinue(){
if (so.data.tutorialstep >= tutorcontinue.length){
createtutordone();
};
}
public function bwattutorial(){
trace(("STEP'E : " + so.data.tutorialstep));
if (so.data.tutorialstep >= tutorcontinue.length){
createtutordone();
} else {
mctutorial.mc1.txt1.text = tutorialtexte[so.data.tutorialstep];
mctutorial.gotoAndPlay(2);
};
}
public function updatejam(){
mcui1.mc1.mclongclock.rotation = (360 / (12 / so.data.timehour));
mcui1.mc1.mcshortclock.gotoAndStop(so.data.timeminute);
}
public function updatetextonly(){
mcui1.mc1.txtmoney.text = so.data.money;
}
public function cheatlevelup(){
trace("BWAT LEVEL UP");
so.data.expe = int((int(so.data.expneeded) + int(1)));
updatetext();
}
public function cheatmoneyresearch(){
so.data.money = (so.data.money + 5000);
so.data.researchpoint = (so.data.researchpoint + 500);
updatetext();
}
public function updatetext(){
so.data.achievprog[1] = so.data.money;
cekachiev(1);
if (so.data.money > 750){
cekmainquest("Save 750 gold", 1);
};
if (so.data.money > 6000){
cekmainquest("Save 6000 gold", 1);
};
if (so.data.money >= 10000){
cekmainquest("Save 10000 gold", 1);
};
if (so.data.money >= 15000){
cekmainquest("Save 15000 gold", 1);
};
updatejam();
mcui1.mc1.txtname.text = so.data.namee;
mcui1.mc1.txtname.mouseEnabled = false;
mcui1.mc1.mcstar.mcbar.width = (so.data.star * 13);
mcui1.mc1.mcstar.txtstar.text = (int(so.data.star) + "/5");
if (so.data.star >= 4){
cekmainquest("reach 4 star popularity", 1);
cekmainquest("Have 4 stars popularity", 1);
};
if (so.data.star >= 5){
cekmainquest("reach 5 stars popularity", 1);
};
trace(("WIDTHE MART KU : " + so.data.widthemart));
if (so.data.widthemart >= 8){
cekmainquest("expand market", 1);
};
if (so.data.widthemart >= 10){
cekmainquest("expand market lv 3", 1);
};
if (so.data.widthemart >= 11){
cekmainquest("expand market lv 4", 1);
};
if (so.data.widthemart >= 12){
cekmainquest("expand market lv 5", 1);
};
mcui1.mc1.mclevel.txtlevel.text = so.data.levele;
mcui1.mc1.mclevel.mcbar.width = ((so.data.expe / so.data.expneeded) * 115);
mcui1.mc1.txtxp.text = (int(((so.data.expe / so.data.expneeded) * 100)) + "%");
mcui1.mc1.txtmoney.text = so.data.money;
mcui1.mc1.txtpremium.text = so.data.premiummoney;
if (so.data.expe >= so.data.expneeded){
if (so.data.levele >= 2){
cekskilldisable();
};
soundnaeklevel.play(0, 1, new SoundTransform(volumesfx));
soundapplause.play(0, 1, new SoundTransform(volumesfx));
so.data.levele++;
so.data.expe = 0;
so.data.expneeded = (so.data.expneeded + (so.data.expneeded / 2));
updatetext();
levelupimage();
potongquestlama();
isiquestbaru();
cekboothdecortotal();
};
}
public function cekskilldisable(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
_local1 = false;
_local2 = true;
_local3 = loaderInfo.url.split("://");
_local4 = _local3[1].split("/");
while (_local4[0] == "") {
_local3[1] = _local3[1].substr(1, _local3[1].length);
_local4 = _local3[1].split("/");
};
if (((!((_local4[0].search("hack") == -1))) || ((_local1 == true)))){
trace(("CEK KEMUNGKIN 1 : " + _local4[0]));
mcui1.mc1.mcreturn.visible = true;
mcui1.mc1.mcreturn.gotoAndStop(2);
} else {
_local5 = _local4[0].toLowerCase();
_local5 = MD5.encrypt(_local5);
_local6 = mcui2.mc1.txtha.text;
_local7 = [];
_local7 = _local6.split(",");
_local8 = 0;
while (_local8 < _local7.length) {
_local9 = _local7[_local8].split("\"");
trace(((("CEK KEMUNGKIN 2 : " + _local9[1]) + " ") + _local5));
if (_local9[1] == _local5){
_local2 = false;
break;
};
_local8++;
};
if (_local2 == false){
mcui1.mc1.mcreturn.visible = true;
mcui1.mc1.mcreturn.gotoAndStop(2);
};
};
}
public function potongquestlama(){
var _local1:*;
var _local2:*;
var _local3:*;
do {
_local1 = false;
_local2 = 0;
while (_local2 < so.data.mainquest.length) {
_local3 = 0;
while (_local3 < so.data.mainquest[_local2].length) {
if ((((so.data.mainquestdata[_local2][_local3][2] == true)) && ((so.data.mainquestdata[_local2][_local3][5] < so.data.levele)))){
_local1 = true;
trace(("potong ini : " + so.data.mainquest[_local2][_local3]));
so.data.mainquest[_local2].splice(_local3, 1);
so.data.mainquestdata[_local2].splice(_local3, 1);
//unresolved jump
};
_local3++;
};
_local2++;
};
} while (_local1 == true);
}
public function levelupimage(){
var _local1:*;
var _local2:*;
pausegame = true;
mcuilevelup.txtlevel.text = so.data.levele;
mcuilevelup.gotoAndPlay(2);
mcuilevelup.txtgold.text = ((so.data.levele - 1) * 250);
mcuilevelup.txtrp.text = ((so.data.levele - 1) * 10);
mcuilevelup.txtpremium.text = 1;
so.data.money = (so.data.money + int(mcuilevelup.txtgold.text));
so.data.premiummoney = (so.data.premiummoney + int(mcuilevelup.txtpremium.text));
creategainfxui(3, int(mcuilevelup.txtpremium.text));
so.data.researchpoint = (so.data.researchpoint + int(mcuilevelup.txtrp.text));
updatetext();
levelupboothcollection = [];
indexboothcollection = 0;
mcpopupgift.visible = false;
trace("0");
_local1 = 1;
while (_local1 < boothunlocked.length) {
if (boothunlocked[_local1].length > 0){
trace(((("BOOTH UNLOCKED : " + _local1) + " ") + boothunlocked[_local1].length));
_local2 = 0;
while (_local2 < boothunlocked[_local1].length) {
if (boothunlocked[_local1][_local2] == so.data.levele){
levelupboothcollection[levelupboothcollection.length] = [_local1, _local2];
so.data.newitem[1] = 1;
so.data.newitemtipe[1][_local1] = 1;
so.data.newitemnomor[1][_local1][so.data.newitemnomor[1][_local1].length] = _local2;
trace(("isi dengan ke : " + _local2));
};
_local2++;
};
};
_local1++;
};
trace("1");
_local1 = 1;
while (_local1 < decorunlocked.length) {
_local2 = 0;
while (_local2 < decorunlocked[_local1].length) {
if (decorunlocked[_local1][_local2] == so.data.levele){
so.data.newitem[2] = 1;
so.data.newitemtipe[2][_local1] = 1;
so.data.newitemnomor[2][_local1][so.data.newitemnomor[2][_local1].length] = _local2;
};
_local2++;
};
_local1++;
};
trace("2");
_local1 = 1;
while (_local1 < equipunlock.length) {
_local2 = 0;
while (_local2 < equipunlock[_local1].length) {
if (equipunlock[_local1][_local2] == so.data.levele){
so.data.newitem[4] = 1;
so.data.newitemtipe[4][1] = 1;
so.data.newitemnomor[4][1][so.data.newitemnomor[4][1].length] = _local2;
};
_local2++;
};
_local1++;
};
trace("3");
_local1 = 1;
while (_local1 < researchunlock.length) {
if (researchunlock[_local1] == so.data.levele){
so.data.newitem[5] = 1;
so.data.newitemtipe[5][1] = 1;
so.data.newitemnomor[5][1][so.data.newitemnomor[5][1].length] = _local1;
};
_local1++;
};
ceknew();
trace("4");
if (levelupboothcollection.length > 0){
loadlevelupbooth();
};
if (levelupboothcollection == 0){
pausegame = false;
};
mcuilevelup.btnclose.removeEventListener(MouseEvent.CLICK, uilevelupclose);
mcuilevelup.btnclose.addEventListener(MouseEvent.CLICK, uilevelupclose);
}
public function uilevelupclose(_arg1:MouseEvent):void{
soundclose.play(0, 1, new SoundTransform(volumesfx));
pausegame = false;
mcuilevelup.gotoAndStop(1);
mcpopupgift.btnclose.removeEventListener(MouseEvent.CLICK, popupclose);
mcpopupgift.btnclose.addEventListener(MouseEvent.CLICK, popupclose);
}
public function popupclose(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
soundclose.play(0, 1, new SoundTransform(volumesfx));
levelupboothcollection = [];
indexboothcollection = 0;
mcpopupgift.visible = false;
trace("0");
_local2 = 1;
while (_local2 < boothunlocked.length) {
if (boothunlocked[_local2].length > 0){
trace(((("BOOTH UNLOCKED : " + _local2) + " ") + boothunlocked[_local2].length));
_local3 = 0;
while (_local3 < boothunlocked[_local2].length) {
if (boothunlocked[_local2][_local3] == so.data.levele){
levelupboothcollection[levelupboothcollection.length] = [_local2, _local3];
so.data.newitem[1] = 1;
so.data.newitemtipe[1][_local2] = 1;
so.data.newitemnomor[1][_local2][so.data.newitemnomor[1][_local2].length] = _local3;
trace(("isi dengan ke : " + _local3));
};
_local3++;
};
};
_local2++;
};
trace("1");
_local2 = 1;
while (_local2 < decorunlocked.length) {
_local3 = 0;
while (_local3 < decorunlocked[_local2].length) {
if (decorunlocked[_local2][_local3] == so.data.levele){
so.data.newitem[2] = 1;
so.data.newitemtipe[2][_local2] = 1;
so.data.newitemnomor[2][_local2][so.data.newitemnomor[2][_local2].length] = _local3;
};
_local3++;
};
_local2++;
};
trace("2");
_local2 = 1;
while (_local2 < equipunlock.length) {
_local3 = 0;
while (_local3 < equipunlock[_local2].length) {
if (equipunlock[_local2][_local3] == so.data.levele){
so.data.newitem[4] = 1;
so.data.newitemtipe[4][1] = 1;
so.data.newitemnomor[4][1][so.data.newitemnomor[4][1].length] = _local3;
};
_local3++;
};
_local2++;
};
trace("3");
_local2 = 1;
while (_local2 < researchunlock.length) {
if (researchunlock[_local2] == so.data.levele){
so.data.newitem[5] = 1;
so.data.newitemtipe[5][1] = 1;
so.data.newitemnomor[5][1][so.data.newitemnomor[5][1].length] = _local2;
};
_local2++;
};
ceknew();
trace("4");
if (levelupboothcollection.length > 0){
loadlevelupbooth();
};
if (levelupboothcollection == 0){
pausegame = false;
};
}
public function loadlevelupbooth(){
mcuilevelup.btnnext.removeEventListener(MouseEvent.CLICK, levelupboothnext);
mcuilevelup.btnnext.addEventListener(MouseEvent.CLICK, levelupboothnext);
mcuilevelup.btnpre.removeEventListener(MouseEvent.CLICK, levelupboothpre);
mcuilevelup.btnpre.addEventListener(MouseEvent.CLICK, levelupboothpre);
loadgambarlevelupbooth();
}
public function loadgambarlevelupbooth(){
var _local1:*;
var _local2:*;
trace(("ISIAN : " + levelupboothcollection[indexboothcollection]));
trace(("INDEX : " + indexboothcollection));
_local1 = 1;
while (_local1 <= 8) {
_local2 = mcuilevelup.getChildByName(("mc" + _local1));
if (_local2 != null){
_local2.visible = false;
};
_local1++;
};
trace(("1 " + levelupboothcollection[indexboothcollection][0]));
trace((" HA " + mcuilevelup));
_local2 = mcuilevelup.getChildByName(("mc" + levelupboothcollection[indexboothcollection][0]));
_local2.visible = true;
_local2.gotoAndStop((levelupboothcollection[indexboothcollection][1] + 1));
}
public function levelupboothclose(_arg1:MouseEvent):void{
soundclose.play(0, 1, new SoundTransform(volumesfx));
pausegame = false;
mclevelupbooth.visible = false;
}
public function levelupboothnext(_arg1:MouseEvent):void{
soundklik.play(0, 1, new SoundTransform(volumesfx));
if (indexboothcollection < (levelupboothcollection.length - 1)){
indexboothcollection++;
loadgambarlevelupbooth();
};
}
public function levelupboothpre(_arg1:MouseEvent):void{
soundklik.play(0, 1, new SoundTransform(volumesfx));
if (indexboothcollection > 0){
indexboothcollection--;
loadgambarlevelupbooth();
};
}
public function stagemovearounddown(_arg1:MouseEvent):void{
if ((((((((pausegame == false)) && ((indexshop == 0)))) && ((so.data.tutorialcomplete == true)))) && ((toolcommand == "drag")))){
onstagedown = true;
alreadysavedown = false;
};
}
public function stagemovearoundup(_arg1:MouseEvent):void{
onstagedown = false;
}
public function stagemovearound(_arg1:Event):void{
if (onstagedown == true){
if (alreadysavedown == false){
posmouse[0] = mouseX;
posmouse[1] = mouseY;
alreadysavedown = true;
};
posmouse[2] = mouseX;
posmouse[3] = mouseY;
movearoundupdater--;
if (movearoundupdater < 0){
movearoundupdater = movearoundupdatertemp;
posmouse[0] = mouseX;
posmouse[1] = mouseY;
};
mcgaia.x = (mcgaia.x - (posmouse[0] - posmouse[2]));
mcgaia.y = (mcgaia.y - (posmouse[1] - posmouse[3]));
if (((!((posmouse[0] == posmouse[2]))) && (!((posmouse[1] == posmouse[3]))))){
cekpositioninggaia();
};
};
}
public function cekpositioninggaia(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
_local1 = [261, -31, -334, -622];
_local2 = [429, 729, 1023, 1277];
_local3 = [75, -285, -574, -902];
_local4 = [341, 609, 847, 1197];
if (mcgaia.x < _local1[zoomvalue]){
onstagedown = false;
mcgaia.x = (_local1[zoomvalue] + 1);
};
if (mcgaia.x > _local2[zoomvalue]){
onstagedown = false;
mcgaia.x = (_local2[zoomvalue] - 1);
};
if (mcgaia.y < _local3[zoomvalue]){
onstagedown = false;
mcgaia.y = (_local3[zoomvalue] + 1);
};
if (mcgaia.y > _local4[zoomvalue]){
onstagedown = false;
mcgaia.y = (_local4[zoomvalue] - 1);
};
}
public function bwathouse(){
var _local1:*;
var _local2:int;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:int;
_local1 = 6;
_local2 = 0;
while (_local2 <= map.gridWidth) {
_local11 = 0;
while (_local11 <= map.gridHeight) {
if ((((((((_local2 < 12)) && ((_local11 < 29)))) && ((_local11 > 9)))) || ((((((_local2 >= 12)) && ((_local11 < 12)))) && ((_local2 < 28)))))){
houseimage[houseimage.length] = new (ingamehouse);
mcgaia.addChildAt(houseimage[(houseimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
houseimage[(houseimage.length - 1)].gotoAndStop(randRange(1, houseimage[(houseimage.length - 1)].totalFrames));
houseimage[(houseimage.length - 1)].tipe = "house";
houseimage[(houseimage.length - 1)].x = tileimage[_local2][_local11].x;
houseimage[(houseimage.length - 1)].y = tileimage[_local2][_local11].y;
houseimage[(houseimage.length - 1)].miliktilex = _local2;
houseimage[(houseimage.length - 1)].miliktiley = _local11;
if (_local2 >= 12){
houseimage[(houseimage.length - 1)].scaleX = (houseimage[(houseimage.length - 1)].scaleX * -1);
};
};
_local11 = (_local11 + _local1);
};
_local2 = (_local2 + _local1);
};
_local3 = [[12, 18], [24, 12], [18, 12]];
_local4 = [0, 1, 1];
_local5 = 0;
while (_local5 < _local3.length) {
houseimage[houseimage.length] = new (ingamehouse);
mcgaia.addChildAt(houseimage[(houseimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
houseimage[(houseimage.length - 1)].gotoAndStop(randRange(1, houseimage[(houseimage.length - 1)].totalFrames));
houseimage[(houseimage.length - 1)].tipe = "house";
houseimage[(houseimage.length - 1)].x = tileimage[_local3[_local5][0]][_local3[_local5][1]].x;
houseimage[(houseimage.length - 1)].y = tileimage[_local3[_local5][0]][_local3[_local5][1]].y;
houseimage[(houseimage.length - 1)].miliktilex = _local3[_local5][0];
houseimage[(houseimage.length - 1)].miliktiley = _local3[_local5][1];
if (_local4[_local5] == 1){
houseimage[(houseimage.length - 1)].scaleX = (houseimage[(houseimage.length - 1)].scaleX * -1);
};
_local5++;
};
_local6 = [[4, 10], [5, 10], [6, 10], [7, 10], [8, 10], [9, 10], [10, 11], [11, 10], [11, 9], [10, 6], [10, 5], [9, 5], [31, 7], [33, 6], [34, 7], [32, 15], [34, 15], [33, 11], [35, 10], [36, 11], [37, 10], [38, 9], [10, 9], [32, 14], [8, 8], [(firsttile[0] - 7), ((widthemap / 2) - 7)], [(firsttile[0] - 7), (((widthemap / 2) - 7) + 5)], [(firsttile[0] - 7), (((widthemap / 2) - 7) + 10)], [(firsttile[0] - 7), (((widthemap / 2) - 7) + 15)], [(firsttile[0] - 7), (((widthemap / 2) - 7) + 20)], [(((widthemap / 2) - 7) + 5), (firsttile[0] - 7)], [(((widthemap / 2) - 7) + 10), (firsttile[0] - 7)], [(((widthemap / 2) - 7) + 15), (firsttile[0] - 7)], [(((widthemap / 2) - 7) + 20), (firsttile[0] - 7)], [(((widthemap / 2) - 7) + 25), (firsttile[0] - 7)], [0, 0], [0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 7], [0, 9], [1, 0], [1, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7], [2, 0], [2, 1], [2, 2], [2, 3], [2, 4], [2, 5], [2, 6], [3, 0], [3, 1], [3, 2], [3, 3], [3, 4], [4, 0], [4, 1], [4, 2], [4, 3], [5, 0], [5, 1], [6, 1], [7, 2], [7, 6], [7, 8], [8, 1], [9, 0], [9, 1], [9, 2], [10, 11], [11, 2], [30, 0], [30, 3], [30, 7], [31, 0], [31, 1], [31, 2], [32, 1], [32, 2], [32, 4], [33, 0], [33, 1], [33, 3], [34, 0], [34, 2], [34, 5], [34, 7], [35, 1], [35, 2], [35, 3], [35, 6], [36, 3], [36, 5], [36, 6], [37, 0], [37, 1], [37, 2], [38, 1], [38, 4], [38, 5], [38, 6], [39, 0], [39, 1], [39, 2], [39, 3], [40, 1], [40, 3], [40, 6], [40, 8], [41, 2], [42, 3], [42, 4], [42, 6], [44, 4], [44, 5], [44, 7], [0, 32], [0, 33], [0, 39], [1, 32], [1, 34], [2, 3], [2, 33], [2, 41], [3, 31], [3, 34], [3, 36], [4, 38], [4, 39], [5, 30], [5, 32], [5, 34], [5, 35], [6, 33], [6, 36], [6, 40], [6, 45], [7, 39], [8, 30], [8, 33], [8, 36], [8, 43], [8, 45], [9, 32], [9, 35], [9, 39], [9, 41], [10, 30], [10, 37], [10, 42], [11, 32], [11, 45], [12, 25], [37, (firsttile[0] - 12)], [49, 34], [(firsttile[0] - 9), 40], [(firsttile[0] + 8), (firsttile[0] - 8)], [(firsttile[0] - 12), (firsttile[0] - 10)], [(firsttile[0] - 8), 46], [(firsttile[0] - 8), 30], [30, (firsttile[0] - 8)], [45, (firsttile[0] - 8)]];
_local7 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, 7, 8, 9, 10, 11, 11, 11, 11];
_local8 = 5;
_local9 = [ingametree, ingamepolicecar, ingamepolicecarrotate, ingamechopa, ingamepedestrianlamp, ingameliberty, ingamehauntedtree, ingameplanecrash, ingamebenchpark1, ingamebenchpark2, ingamebenchpark3, ingamepump];
_local10 = ["tree", "wrecked car", "wrecked car", "crashed site", "lamp", "statue", "haunted location", "crashed site", "bench", "bench", "bench", "pump"];
_local5 = 0;
while (_local5 < _local6.length) {
houseimage[houseimage.length] = new (_local9[_local7[_local5]]);
mcgaia.addChildAt(houseimage[(houseimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
houseimage[(houseimage.length - 1)].x = tileimage[_local6[_local5][0]][_local6[_local5][1]].x;
houseimage[(houseimage.length - 1)].y = tileimage[_local6[_local5][0]][_local6[_local5][1]].y;
houseimage[(houseimage.length - 1)].miliktilex = _local6[_local5][0];
houseimage[(houseimage.length - 1)].miliktiley = _local6[_local5][1];
houseimage[(houseimage.length - 1)].tipe = "none";
houseimage[(houseimage.length - 1)].tipe = _local10[_local7[_local5]];
if (_local7[_local5] == 4){
if (so.data.morning == false){
houseimage[(houseimage.length - 1)].gotoAndStop(2);
};
if (_local8 > 0){
_local8--;
houseimage[(houseimage.length - 1)].scaleX = (houseimage[(houseimage.length - 1)].scaleX * -1);
houseimage[(houseimage.length - 1)].mcsign.scaleX = (houseimage[(houseimage.length - 1)].mcsign.scaleX * -1);
};
houseimage[(houseimage.length - 1)].mcsign.visible = false;
};
if (((((!((houseimage[(houseimage.length - 1)].tipe == "none"))) && (!((houseimage[(houseimage.length - 1)].tipe == "tree"))))) && (!((houseimage[(houseimage.length - 1)].tipe == "lamp"))))){
houseimage[(houseimage.length - 1)].buttonMode = true;
};
_local5++;
};
}
public function bwattiles(){
var bobotx:*;
var boboty:*;
var satu:*;
var titiktengah:*;
var xx:int;
var i:*;
var sewerper:*;
var sewerpertemp:*;
var yy:int;
var clikGF:Function;
var j:*;
map = new AStarMap(int(widthemap), int(heightemap));
tileimage = [];
decorimage = [];
bobotx = -1;
boboty = -0.01;
var widthetile:* = 35;
satu = false;
titiktengah = int((widthemap / 2));
xx = 0;
while (xx <= map.gridWidth) {
bobotx = (xx + (xx * 6));
boboty = Number((Number(yy) + Number(0.01)));
employeeimage[xx] = [];
tileimage[xx] = [];
decorimage[xx] = [];
yy = 0;
while (yy <= map.gridHeight) {
clikGF = function (_arg1:MouseEvent):void{
trace(((("ha : " + _arg1.currentTarget.x) + " ") + _arg1.currentTarget.y));
};
tileimage[xx][yy] = new (ingametile);
mcgaia.addChildAt(tileimage[xx][yy], mcgaia.getChildIndex(mcgaia.mcpositiontile));
tileimage[xx][yy].x = ((0 - ((35 / 2) * yy)) + ((35 * xx) / 2));
tileimage[xx][yy].y = ((-415 + ((tileimage[xx][yy].height / 2) * yy)) + ((tileimage[xx][yy].height * xx) / 2));
tileimage[xx][yy].bobotie = (bobotx + boboty);
if (satu == false){
satu = true;
} else {
tileimage[xx][yy].x = (tileimage[xx][yy].x - 1);
};
tileimage[xx][yy].txt1.text = ((xx + ",") + yy);
tileimage[xx][yy].txt1.visible = false;
bobotx = (bobotx + 1);
tileimage[xx][yy].gotoAndStop("daylightgrass");
tileimage[xx][yy].addEventListener(MouseEvent.CLICK, clikGF);
tileimage[xx][yy].nox = xx;
tileimage[xx][yy].noy = yy;
yy = (yy + 1);
};
xx = (xx + 1);
};
trace("1");
boothinikosong = [];
i = 0;
while (i < widthemart) {
boothinikosong[i] = [];
j = 0;
while (j < heightemart) {
boothinikosong[i][j] = [];
if (firsttile.length == 0){
firsttile = [titiktengah, titiktengah];
};
tileimage[int((firsttile[0] + i))][int((firsttile[1] + j))].gotoAndStop(so.data.tilenumba[i][j]);
j = (j + 1);
};
i = (i + 1);
};
trace("2");
i = 0;
while (i < sizemartmax) {
j = 0;
while (j < sizemartmax) {
tileimage[int((firsttile[0] + i))][int((firsttile[1] + j))].bobotie = (tileimage[int((firsttile[0] + i))][int((firsttile[1] + j))].bobotie + 60.2);
tileimage[int((firsttile[0] + i))][int((firsttile[1] + j))].txt1.text = tileimage[int((firsttile[0] + i))][int((firsttile[1] + j))].bobotie;
j = (j + 1);
};
i = (i + 1);
};
sewerper = 10;
sewerpertemp = sewerper;
i = widthemap;
while (i > (firsttile[0] - 6)) {
sewerper = (sewerper - 1);
if (sewerper < 0){
sewerper = sewerpertemp;
tileimage[int((firsttile[0] - 6))][i].gotoAndStop("graystonesewerday");
} else {
tileimage[int((firsttile[0] - 6))][i].gotoAndStop("daygraystone");
};
i = (i - 1);
};
i = widthemap;
while (i > (firsttile[0] - 2)) {
sewerper = (sewerper - 1);
if (sewerper < 0){
sewerper = sewerpertemp;
tileimage[int((firsttile[0] - 1))][i].gotoAndStop("graystonesewerday");
} else {
tileimage[int((firsttile[0] - 1))][i].gotoAndStop("daygraystone");
};
i = (i - 1);
};
i = widthemap;
while (i >= int((firsttile[0] - 6))) {
sewerper = (sewerper - 1);
if (sewerper < 0){
sewerper = sewerpertemp;
tileimage[i][int((firsttile[0] - 6))].gotoAndStop("graystonesewerday");
tileimage[i][int((firsttile[0] - 6))].scaleX = (tileimage[i][int((firsttile[0] - 6))].scaleX * -1);
} else {
tileimage[i][int((firsttile[0] - 6))].gotoAndStop("daygraystone");
};
i = (i - 1);
};
i = widthemap;
while (i > int((firsttile[0] - 1))) {
sewerper = (sewerper - 1);
if (sewerper < 0){
sewerper = sewerpertemp;
tileimage[i][int((firsttile[0] - 1))].gotoAndStop("graystonesewerday");
tileimage[i][int((firsttile[0] - 1))].scaleX = (tileimage[i][int((firsttile[0] - 1))].scaleX * -1);
} else {
tileimage[i][int((firsttile[0] - 1))].gotoAndStop("daygraystone");
};
i = (i - 1);
};
i = int((firsttile[0] - 2));
while (i > int((firsttile[0] - 6))) {
j = widthemap;
while (j > int((firsttile[0] - 6))) {
tileimage[i][j].gotoAndStop("asphalt");
j = (j - 1);
};
i = (i - 1);
};
i = int((firsttile[0] - 2));
while (i > int((firsttile[0] - 6))) {
j = widthemap;
while (j > int((firsttile[0] - 6))) {
tileimage[j][i].gotoAndStop("asphalt");
j = (j - 1);
};
i = (i - 1);
};
i = int((firsttile[0] - 5));
while (i < int((firsttile[0] - 1))) {
tileimage[i][int((firsttile[0] - 1))].gotoAndStop("zebra1");
i = (i + 1);
};
i = int((firsttile[0] - 5));
while (i < int((firsttile[0] - 1))) {
tileimage[int((firsttile[0] - 1))][i].gotoAndStop("zebra2");
i = (i + 1);
};
pospintu = [(firsttile[0] + 3), (firsttile[0] - 1)];
pospintu2 = [(firsttile[0] + 3), firsttile[0]];
randzombieposition = [[(firsttile[0] - 1), widthemap], [widthemap, (firsttile[0] - 1)], [(firsttile[0] - 6), widthemap], [widthemap, (firsttile[0] - 6)]];
randzombitarget = [[(firsttile[0] - 1), (firsttile[0] - 1)], [(widthemap - 20), (firsttile[0] - 1)], [(firsttile[0] - 6), (firsttile[0] - 1)], [(firsttile[0] - 1), (firsttile[0] - 6)]];
trace(("spawn di : " + randzombieposition));
xx = 0;
while (xx <= map.gridWidth) {
yy = 0;
while (yy <= map.gridHeight) {
if ((((((((tileimage[xx][yy].currentLabel == "darkgrass")) || ((tileimage[xx][yy].currentLabel == "asphalt")))) || ((tileimage[xx][yy].currentLabel == "daylightgrass")))) || ((tileimage[xx][yy].currentLabel == "dayasphalt")))){
map.setCell(xx, yy, map.CELL_FILLED);
};
yy = (yy + 1);
};
xx = (xx + 1);
};
widthgaia = mcgaia.width;
heightgaia = mcgaia.height;
trace(((("WIDTH : " + mcgaia.width) + " ") + mcgaia.height));
}
public function centeredthis(){
var _local1:*;
var _local2:*;
_local1 = indexcenteredatasx;
while (_local1 <= indexcenteredbawahx) {
_local2 = indexcenteredatasy;
while (_local2 <= indexcenteredbawahy) {
tileimage[_local1][_local2].bobotie = (tileimage[_local1][_local2].bobotie + 0.1);
tileimage[_local1][_local2].txt1.text = tileimage[_local1][_local2].bobotie.toFixed(1);
_local2++;
};
_local1++;
};
}
public function bwatwalls(){
var _local1:*;
var _local2:*;
trace(("WALL NOMOR : " + so.data.decorationwallnomor));
_local1 = 0;
_local2 = 0;
while (_local2 < widthemart) {
wallimage[wallimage.length] = new (ingamewall2);
wallimage[(wallimage.length - 1)].gotoAndStop(so.data.walltipe[_local2]);
mcgaia.addChildAt(wallimage[(wallimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
wallimage[(wallimage.length - 1)].x = tileimage[firsttile[0]][(firsttile[0] + _local2)].x;
wallimage[(wallimage.length - 1)].y = tileimage[firsttile[0]][(firsttile[0] + _local2)].y;
wallimage[(wallimage.length - 1)].milikwallke = _local1;
wallimage[(wallimage.length - 1)].miliksaveke = _local2;
wallimage[(wallimage.length - 1)].miliktilex = firsttile[0];
wallimage[(wallimage.length - 1)].miliktiley = (firsttile[0] + _local2);
wallimage[(wallimage.length - 1)].scaleX = (wallimage[(wallimage.length - 1)].scaleX * -1);
wallimage[(wallimage.length - 1)].positione = "right";
wallimage[(wallimage.length - 1)].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
wallimage[(wallimage.length - 1)].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
wallimage[(wallimage.length - 1)].removeEventListener(MouseEvent.CLICK, clickdecor);
wallimage[(wallimage.length - 1)].addEventListener(MouseEvent.MOUSE_OVER, overdecor);
wallimage[(wallimage.length - 1)].addEventListener(MouseEvent.MOUSE_OUT, outdecor);
wallimage[(wallimage.length - 1)].addEventListener(MouseEvent.CLICK, clickdecor);
wallimage[(wallimage.length - 1)].nomordecor = 0;
if ((((so.data.decorationwall[_local1] == true)) || ((((so.data.decorationwall[_local1] == false)) && (!((so.data.decorationwallnomor[_local1] == 0))))))){
if (so.data.decorationwallnomor[_local1] != 0){
wallimage[(wallimage.length - 1)].mcdecorwall.visible = true;
wallimage[(wallimage.length - 1)].mcdecorwall.gotoAndStop(so.data.decorationwallnomor[_local1]);
wallimage[(wallimage.length - 1)].nomordecor = so.data.decorationwallnomor[_local1];
} else {
wallimage[(wallimage.length - 1)].mcdecorwall.visible = false;
};
} else {
wallimage[(wallimage.length - 1)].mcdecorwall.visible = false;
};
_local1++;
_local2++;
};
_local2 = 0;
while (_local2 < widthemart) {
if ((((_local2 >= 2)) && ((_local2 <= 4)))){
if (_local2 == 2){
doorimage[doorimage.length] = new (ingamedoor11);
} else {
if (_local2 == 3){
doorimage[doorimage.length] = new (ingamedoor12);
doorimage[(doorimage.length - 1)].buttonMode = true;
doorimage[(doorimage.length - 1)].addEventListener(MouseEvent.MOUSE_OVER, overdecor);
doorimage[(doorimage.length - 1)].addEventListener(MouseEvent.MOUSE_OUT, outdecor);
doorimage[(doorimage.length - 1)].addEventListener(MouseEvent.CLICK, closemart);
cekdoorclose();
} else {
if (_local2 == 4){
doorimage[doorimage.length] = new (ingamedoor13);
};
};
};
trace(("PIUNTU " + so.data.doortipe));
mcgaia.addChildAt(doorimage[(doorimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
doorimage[(doorimage.length - 1)].mc1.gotoAndStop(so.data.doortipe);
doorimage[(doorimage.length - 1)].x = tileimage[(firsttile[0] + _local2)][firsttile[0]].x;
doorimage[(doorimage.length - 1)].y = tileimage[(firsttile[0] + _local2)][firsttile[0]].y;
doorimage[(doorimage.length - 1)].miliktilex = (firsttile[0] + _local2);
doorimage[(doorimage.length - 1)].miliktiley = firsttile[0];
} else {
wallimage[wallimage.length] = new (ingamewall);
wallimage[(wallimage.length - 1)].gotoAndStop(so.data.walltipe[int(((int(sizemartmax) + int(_local2)) + int(1)))]);
mcgaia.addChildAt(wallimage[(wallimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
wallimage[(wallimage.length - 1)].x = tileimage[(firsttile[0] + _local2)][firsttile[0]].x;
wallimage[(wallimage.length - 1)].y = tileimage[(firsttile[0] + _local2)][firsttile[0]].y;
wallimage[(wallimage.length - 1)].milikwallke = _local1;
wallimage[(wallimage.length - 1)].miliksaveke = int(((int(sizemartmax) + int(_local2)) + int(1)));
wallimage[(wallimage.length - 1)].miliktilex = (firsttile[0] + _local2);
wallimage[(wallimage.length - 1)].miliktiley = firsttile[0];
wallimage[(wallimage.length - 1)].removeEventListener(MouseEvent.MOUSE_OVER, overdecor);
wallimage[(wallimage.length - 1)].removeEventListener(MouseEvent.MOUSE_OUT, outdecor);
wallimage[(wallimage.length - 1)].removeEventListener(MouseEvent.CLICK, clickdecor);
wallimage[(wallimage.length - 1)].addEventListener(MouseEvent.MOUSE_OVER, overdecor);
wallimage[(wallimage.length - 1)].addEventListener(MouseEvent.MOUSE_OUT, outdecor);
wallimage[(wallimage.length - 1)].addEventListener(MouseEvent.CLICK, clickdecor);
wallimage[(wallimage.length - 1)].nomordecor = 0;
wallimage[(wallimage.length - 1)].positione = "left";
if ((((so.data.decorationwall[_local1] == true)) || ((((so.data.decorationwall[_local1] == false)) && (!((so.data.decorationwallnomor[_local1] == 0))))))){
if (so.data.decorationwallnomor[_local1] != 0){
wallimage[(wallimage.length - 1)].mcdecorwall.visible = true;
wallimage[(wallimage.length - 1)].mcdecorwall.gotoAndStop(so.data.decorationwallnomor[_local1]);
wallimage[(wallimage.length - 1)].nomordecor = so.data.decorationwallnomor[_local1];
} else {
wallimage[(wallimage.length - 1)].mcdecorwall.visible = false;
};
} else {
wallimage[(wallimage.length - 1)].mcdecorwall.visible = false;
};
};
_local1++;
_local2++;
};
_local2 = 0;
while (_local2 < wallimage.length) {
trace(("CEK WALL : " + wallimage[_local2].milikwallke));
_local2++;
};
}
public function closemart(_arg1:MouseEvent){
soundeditbooth.play(0, 1, new SoundTransform(volumesfx));
if (martclose == true){
martclose = false;
} else {
martclose = true;
};
cekdoorclose();
}
public function cekdoorclose(){
if (martclose == true){
doorimage[1].mc2.visible = true;
} else {
doorimage[1].mc2.visible = false;
};
}
public function sortingall(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = [];
_local2 = 0;
while (_local2 <= widthemart) {
_local3 = 0;
while (_local3 <= heightemart) {
if (((!((decorimage[_local2][_local3] == undefined))) && (!((decorimage[_local2][_local3] == ""))))){
_local1[_local1.length] = decorimage[_local2][_local3];
_local1[(_local1.length - 1)].tipesort = "decor";
};
if (employeeimage[_local2][_local3] != undefined){
if (employeeimage[_local2][_local3].outside == true){
_local1[_local1.length] = employeeimage[_local2][_local3];
_local1[(_local1.length - 1)].tipesort = "employee";
};
};
_local3++;
};
_local2++;
};
_local2 = 0;
while (_local2 < houseimage.length) {
if (houseimage[_local2] != undefined){
_local1[_local1.length] = houseimage[_local2];
_local1[(_local1.length - 1)].tipesort = "house";
};
_local2++;
};
_local2 = 0;
while (_local2 < wallimage.length) {
if (wallimage[_local2] != undefined){
_local1[_local1.length] = wallimage[_local2];
_local1[(_local1.length - 1)].tipesort = "wall";
};
_local2++;
};
_local2 = 0;
while (_local2 < zombieimage.length) {
if (zombieimage[_local2] != null){
if (zombieimage[_local2] != undefined){
_local1[_local1.length] = zombieimage[_local2];
_local1[(_local1.length - 1)].tipesort = "zombie";
};
};
_local2++;
};
_local2 = 0;
while (_local2 < doorimage.length) {
if (doorimage[_local2] != undefined){
_local1[_local1.length] = doorimage[_local2];
_local1[(_local1.length - 1)].tipesort = "door";
};
_local2++;
};
if (busimage[0] != null){
_local1[_local1.length] = busimage[0];
_local1[(_local1.length - 1)].tipesort = "bus";
};
_local2 = 0;
while (_local2 < _local1.length) {
if (_local1[_local2].tipesort == "decor"){
_local4 = 999;
_local3 = 0;
while (_local3 <= _local1[_local2].sizex) {
_local5 = 0;
while (_local5 <= _local1[_local2].sizey) {
if (tileimage[(_local1[_local2].miliktilex - _local3)][(_local1[_local2].miliktiley - _local5)].bobotie < _local4){
_local4 = tileimage[(_local1[_local2].miliktilex - _local3)][(_local1[_local2].miliktiley - _local5)].bobotie;
};
_local5++;
};
_local3++;
};
_local1[_local2].weight = _local4;
} else {
_local1[_local2].weight = tileimage[_local1[_local2].miliktilex][_local1[_local2].miliktiley].bobotie;
};
if ((((_local1[_local2].tipesort == "wall")) || ((_local1[_local2].tipesort == "door")))){
_local1[_local2].weight = ((_local1[_local2].weight - 30) - 0.01);
};
_local2++;
};
_local1.sortOn("weight", Array.NUMERIC);
_local2 = 0;
while (_local2 < _local1.length) {
if (_local1[_local2].tipesort == "bus"){
trace(((((((_local1[_local2].tipesort + " ") + _local1[_local2].weight) + " ") + _local1[_local2].miliktilex) + " ") + _local1[_local2].miliktiley));
};
mcgaia.addChildAt(_local1[_local2], (mcgaia.getChildIndex(mcgaia.mcpositionobject) - 1));
_local2++;
};
}
public function caritargetarrayklik(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
tampungcelltype();
map.setEndPoints(_arg1.miliktilex, _arg1.miliktiley, _arg1.targetx, _arg1.targety);
_arg1.waypointindex = 0;
_arg1.hasilarrayjalan = [];
findpath(_arg1);
_arg1.onmove = true;
if (_arg1.hasilarrayjalan.length > 0){
_local2 = tileimage[_arg1.hasilarrayjalan[_arg1.waypointindex].x][_arg1.hasilarrayjalan[_arg1.waypointindex].y].nox;
_local3 = tileimage[_arg1.hasilarrayjalan[_arg1.waypointindex].x][_arg1.hasilarrayjalan[_arg1.waypointindex].y].noy;
_local4 = tileimage[_local2][_local3];
_local5 = {miliktilex:_local2, miliktiley:_local3};
cekfacing(_arg1, _local5, false);
};
}
public function tampungcelltype(){
var _local1:*;
var _local2:*;
celltypetemp = [];
_local1 = firsttile[0];
while (_local1 < (firsttile[0] + widthemart)) {
celltypetemp[_local1] = [];
_local2 = firsttile[1];
while (_local2 < (firsttile[1] + heightemart)) {
celltypetemp[_local1][_local2] = map.getCell(_local1, _local2).cellType;
_local2++;
};
_local1++;
};
}
public function tetapkancelltype(){
var _local1:*;
var _local2:*;
_local1 = firsttile[0];
while (_local1 < (firsttile[0] + widthemart)) {
_local2 = firsttile[1];
while (_local2 < (firsttile[1] + heightemart)) {
map.setCell(_local1, _local2, celltypetemp[_local1][_local2]);
_local2++;
};
_local1++;
};
}
public function findpath(_arg1:Object){
var _local3:*;
var _local4:*;
var _local2:Array = map.solve(_arg1);
_arg1.hasilarrayjalan = map.solve(_arg1);
if (_arg1.hasilarrayjalan.length > 0){
_local3 = tileimage[_arg1.hasilarrayjalan[0].x][_arg1.hasilarrayjalan[0].y].nox;
_local4 = tileimage[_arg1.hasilarrayjalan[0].x][_arg1.hasilarrayjalan[0].y].noy;
if (((!((_local3 == _arg1.targetx))) && (!((_local4 == _arg1.targety))))){
_arg1.hasilarrayjalan = [];
};
};
_arg1.hasilarrayjalan.reverse();
if (_arg1.zombie == true){
jalanincombi(_arg1);
};
tetapkancelltype();
}
public function jalanincombi(_arg1:Object){
_arg1.addEventListener(Event.ENTER_FRAME, zombiemovement);
}
public function cekidlingposition(_arg1:Object){
if (_arg1.stathead == "front"){
if (_arg1.currentLabel != "idle1"){
if (_arg1.job == "inmate"){
_arg1.gotoAndPlay("stealing1");
} else {
_arg1.gotoAndPlay("idle1");
samainequipini(_arg1, "idle1");
};
};
} else {
if (_arg1.stathead == "back"){
if (_arg1.currentLabel != "idle2"){
if (_arg1.job == "inmate"){
_arg1.gotoAndPlay("stealing2");
} else {
_arg1.gotoAndPlay("idle2");
samainequipini(_arg1, "idle2");
};
};
};
};
}
public function zombiemovement(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:*;
var _local22:*;
var _local23:*;
if (pausegame == false){
if ((((_arg1.currentTarget.currentLabel == "caught")) || ((_arg1.currentTarget.currentLabel == "donecaught")))){
if (_arg1.currentTarget.currentLabel == "donecaught"){
trace("OK ZOMBIE MATI");
cekzombiemati(_arg1.currentTarget);
};
} else {
if (_arg1.currentTarget.onmelubangi == true){
if (_arg1.currentTarget.currentLabel == "donemelubangi"){
_arg1.currentTarget.onmelubangi = false;
};
} else {
if (_arg1.currentTarget.onmove == true){
_local2 = "";
if (_arg1.currentTarget.waypointindex <= (_arg1.currentTarget.hasilarrayjalan.length - 1)){
if (_arg1.currentTarget.attackmode == true){
if (_arg1.currentTarget.onwaiting == true){
_arg1.currentTarget.hasilarrayjalan = [];
};
};
if ((((_arg1.currentTarget.hasilarrayjalan.length > 0)) && ((_arg1.currentTarget.onmove == true)))){
_local3 = tileimage[_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].x][_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].y].nox;
_local4 = tileimage[_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].x][_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].y].noy;
_local2 = tileimage[_local3][_local4];
cekmovingbehavior(_arg1.currentTarget);
_arg1.currentTarget.miliktilex = _local2.nox;
_arg1.currentTarget.miliktiley = _local2.noy;
};
if (_local2 != ""){
if (_arg1.currentTarget.mcfoot.hitTestObject(_local2.mchit) == true){
_arg1.currentTarget.x = _local2.x;
_arg1.currentTarget.y = _local2.y;
_arg1.currentTarget.miliktilex = _local2.nox;
_arg1.currentTarget.miliktiley = _local2.noy;
_arg1.currentTarget.waypointindex++;
if (_arg1.currentTarget.waypointindex <= (_arg1.currentTarget.hasilarrayjalan.length - 1)){
_local3 = tileimage[_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].x][_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].y].nox;
_local4 = tileimage[_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].x][_arg1.currentTarget.hasilarrayjalan[_arg1.currentTarget.waypointindex].y].noy;
_local5 = {miliktilex:_local3, miliktiley:_local4};
cekfacing(_arg1.currentTarget, _local5, false);
};
};
} else {
if (_arg1.currentTarget.hasilarrayjalan.length == 0){
_arg1.currentTarget.waypointindex++;
};
};
};
};
if (_arg1.currentTarget.waypointindex > (_arg1.currentTarget.hasilarrayjalan.length - 1)){
if (_arg1.currentTarget.attackmode == true){
if (_arg1.currentTarget.onwaiting == true){
if (_arg1.currentTarget.currentLabel != "angry"){
_arg1.currentTarget.gotoAndPlay("angry");
};
} else {
if (_arg1.currentTarget.mcemoti.currentLabel != "growl"){
_arg1.currentTarget.mcemoti.gotoAndPlay("growl");
};
if (_arg1.currentTarget.attackspeed >= 0){
if (((!((_arg1.currentTarget.currentLabel == "attack1"))) && (!((_arg1.currentTarget.currentLabel == "attack2"))))){
if (_arg1.currentTarget.currentLabel != "angry"){
_arg1.currentTarget.gotoAndPlay("angry");
};
};
_arg1.currentTarget.attackspeed--;
} else {
if (_arg1.currentTarget.attackspeed < 0){
_arg1.currentTarget.attackspeed = _arg1.currentTarget.attackspeedtemp;
_local6 = [-1, 1, 0, 0];
_local7 = [0, 0, -1, 1];
_local8 = false;
_local9 = 0;
while (_local9 < _local6.length) {
_local10 = int(((int(_arg1.currentTarget.miliktilex) + int(_local6[_local9])) - int(firsttile[0])));
_local11 = int(((int(_arg1.currentTarget.miliktiley) + int(_local7[_local9])) - int(firsttile[1])));
_local12 = 0;
while (_local12 < widthemart) {
_local13 = 0;
while (_local13 < widthemart) {
if (((((!((employeeimage[_local12][_local13] == null))) && (!((employeeimage[_local12][_local13] == undefined))))) && (!((employeeimage[_local12][_local13] == ""))))){
if (employeeimage[_local12][_local13].dead == false){
if ((((employeeimage[_local12][_local13].miliktilex == int((int(_local10) + int(firsttile[0]))))) && ((employeeimage[_local12][_local13].miliktiley == int((int(_local11) + int(firsttile[1]))))))){
_local8 = true;
cekfacing(_arg1.currentTarget, employeeimage[_local12][_local13], true);
suarapunch();
employeeimage[_local12][_local13].onhit = true;
employeeimage[_local12][_local13].msspeed = int((int(employeeimage[_local12][_local13].msspeedtemp) + int(bonusmsonriotmode)));
employeeimage[_local12][_local13].onhittime = employeeimage[_local12][_local13].onhittimetemp;
trace(("OK EMPLOYEE INI WAKTUNYA JADI : " + employeeimage[_local12][_local13].onhittime));
employeeimage[_local12][_local13].health = (employeeimage[_local12][_local13].health - _arg1.currentTarget.attack);
employeeimage[_local12][_local13].gotoAndPlay("beaten");
samainequipini(employeeimage[_local12][_local13], "beaten");
cekemployeemati(employeeimage[_local12][_local13]);
//unresolved jump
};
};
};
_local13++;
};
_local12++;
};
_local9++;
};
if (_local8 == false){
makethisangryangryzombie(_arg1.currentTarget);
};
};
};
};
} else {
if (_arg1.currentTarget.onsidequest == true){
if (_arg1.currentTarget.sidequesttipe == "booth direction"){
_local14 = carirandombooth();
if (_local14.length > 0){
miniquestsoundcreator();
_arg1.currentTarget.mcemoti.gotoAndStop("quest");
cekidlingposition(_arg1.currentTarget);
} else {
cancelsidequestzombie();
};
} else {
if (_arg1.currentTarget.sidequesttipe == "landmark"){
miniquestsoundcreator();
_arg1.currentTarget.mcemoti.gotoAndStop("quest");
cekidlingposition(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.sidequesttipe == "brainy"){
miniquestsoundcreator();
_arg1.currentTarget.mcemoti.gotoAndStop("quest");
cekidlingposition(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.sidequesttipe == "thief"){
if (_arg1.currentTarget.phase == 1){
_arg1.currentTarget.waypointindex = 0;
_local15 = [[14, 50], [50, 14]];
_local16 = randRange(0, (_local15.length - 1));
_arg1.currentTarget.targetx = _local15[_local16][0];
_arg1.currentTarget.targety = _local15[_local16][1];
caritargetarrayklik(_arg1.currentTarget);
_arg1.currentTarget.phase = 2;
} else {
cancelsidequestzombie();
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, zombiemovement);
_arg1.currentTarget.gotoAndPlay("idle1");
mcgaia.removeChild(zombieimage[_arg1.currentTarget.indexke]);
zombieimage[_arg1.currentTarget.indexke] = null;
};
};
};
};
};
} else {
if (_arg1.currentTarget.phase == 1){
_local17 = false;
if (_arg1.currentTarget.masukmart == true){
if (martclose == false){
_local17 = true;
_arg1.currentTarget.phase = 2;
} else {
_local17 = false;
};
} else {
_local17 = false;
};
if ((((_arg1.currentTarget.sidequest == true)) && ((((((_arg1.currentTarget.sidequesttipe == "booth direction")) || ((_arg1.currentTarget.sidequesttipe == "brainy")))) || ((_arg1.currentTarget.sidequesttipe == "landmark")))))){
_local17 = true;
};
if (_local17 == true){
if (_arg1.currentTarget.sidequest == true){
trace("YA INI QUESTT");
if ((((((_arg1.currentTarget.sidequesttipe == "booth direction")) || ((_arg1.currentTarget.sidequesttipe == "brainy")))) || ((_arg1.currentTarget.sidequesttipe == "landmark")))){
_arg1.currentTarget.onsidequest = true;
};
} else {
_arg1.currentTarget.waypointindex = 0;
_arg1.currentTarget.targetx = pospintu[0];
_arg1.currentTarget.targety = pospintu[1];
caritargetarrayklik(_arg1.currentTarget);
};
} else {
_arg1.currentTarget.alpha = 1;
_arg1.currentTarget.insidemarket = false;
_arg1.currentTarget.phase = 8;
_local18 = 0;
if (_arg1.currentTarget.asalespawnx == 19){
_local18 = 1;
} else {
_local18 = 0;
};
_arg1.currentTarget.waypointindex = 0;
_arg1.currentTarget.targetx = randzombitarget[_local18][0];
_arg1.currentTarget.targety = randzombitarget[_local18][1];
_arg1.currentTarget.targetpulangx = randzombieposition[_local18][0];
_arg1.currentTarget.targetpulangy = randzombieposition[_local18][1];
caritargetarrayklik(_arg1.currentTarget);
};
} else {
if (_arg1.currentTarget.phase == 2){
if (_arg1.currentTarget.special == true){
so.data.achievprog[4] = (so.data.achievprog[4] + 1);
cekachiev(4);
};
_arg1.currentTarget.phase = 3;
_arg1.currentTarget.targetx = pospintu2[0];
_arg1.currentTarget.targety = pospintu2[1];
caritargetarrayklik(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.phase == 3){
if (_arg1.currentTarget.boothtipe.length > 0){
if (tipeview != ""){
_arg1.currentTarget.alpha = 0.3;
};
_arg1.currentTarget.insidemarket = true;
_local19 = caritargetbooth(_arg1.currentTarget, -1);
if (_arg1.currentTarget.job == "inmate"){
trace(("NEMU PO ORA : " + _local19));
};
if (_local19 == true){
_arg1.currentTarget.phase = 4;
caritargetarrayklik(_arg1.currentTarget);
} else {
carirandlocation(_arg1.currentTarget);
_arg1.currentTarget.phase = 10;
};
_arg1.currentTarget.boothtipe.splice(0, 1);
_arg1.currentTarget.boothnomor.splice(0, 1);
} else {
carirandlocation(_arg1.currentTarget);
_arg1.currentTarget.phase = 10;
};
} else {
if (_arg1.currentTarget.phase == 4){
if (_arg1.currentTarget.cooldownbuy == cooldownbuy){
cekfacing(_arg1.currentTarget, _arg1.currentTarget.boothtarget, false);
cekidlingposition(_arg1.currentTarget);
};
_local20 = false;
_local21 = _arg1.currentTarget.boothtarget;
if (((!((so.data.boothtipe[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])] == _local21.tipe))) || (!((so.data.boothnomor[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])] == _local21.nomor))))){
_local20 = true;
} else {
_arg1.currentTarget.cooldownbuy--;
if ((((so.data.tutorialcomplete == false)) && ((so.data.tutorialstep >= 20)))){
_arg1.currentTarget.cooldownbuy = -1;
};
if (_arg1.currentTarget.job == "inmate"){
if (_arg1.currentTarget.mcemoti.currentLabel != "evil"){
_arg1.currentTarget.mcemoti.gotoAndPlay("evil");
};
if (_arg1.currentTarget.onwaiting == true){
_arg1.currentTarget.cooldownbuy = 1000;
};
lagicuri = true;
};
if (_arg1.currentTarget.cooldownbuy < 0){
if (so.data.boothstock[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])] > 0){
if (_arg1.currentTarget.job == "inmate"){
lagicuri = false;
yangdicuri = [(_local21.miliktilex - firsttile[0]), (_local21.miliktiley - firsttile[1]), so.data.boothstock[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])]];
so.data.boothstock[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])] = 0;
updatethisboothstock(_arg1.currentTarget.boothtarget);
isinotif("A zombie stole your stocks,assign security to guard the market");
_arg1.currentTarget.boothtipe = [];
} else {
_arg1.currentTarget.mcemoti.gotoAndPlay("heart");
_arg1.currentTarget.cooldownbuy = cooldownbuy;
_local22 = false;
if (_local21.tipe == 2){
if (_local21.adaemployee == true){
tambaiexpemployeeini(employeeimage[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])]);
createsepyur("", 1, 1, 1, _local21);
_local22 = true;
employeeimage[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])].gotoAndPlay("stocking1");
samainequipini(employeeimage[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])], "stocking1");
employeeimage[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])].sellinganimation = true;
employeeimage[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])].sellinganimationtime = sellinganimationtimetemp;
};
} else {
if (_local21.tipe == 5){
so.data.money = (so.data.money + boothprice[_local21.tipe][_local21.nomor]);
updatetext();
createsepyur("", 1, 1, 1, _local21);
_local22 = true;
} else {
_local22 = true;
_arg1.currentTarget.consumingmoney = (_arg1.currentTarget.consumingmoney + boothprice[_local21.tipe][_local21.nomor]);
};
};
if (_local22 == true){
if (mcitemexp.visible == true){
if ((((mcitemexp.tipeku == _arg1.currentTarget.boothtarget.tipe)) && ((mcitemexp.nomorku == _arg1.currentTarget.boothtarget.nomor)))){
mcitemexp.txtexp.text = ((((boothprice[mcitemexp.tipeku][mcitemexp.nomorku] + "\n") + so.data.boothstock[(_local21.miliktilex - firsttile[0])][(_local21.miliktiley - firsttile[1])]) + "\n") + so.data.build1stockwarehouse[mcitemexp.tipeku][mcitemexp.nomorku]);
};
};
var _local24 = so.data.boothstock[(_local21.miliktilex - firsttile[0])];
var _local25 = (_local21.miliktiley - firsttile[1]);
var _local26 = (_local24[_local25] - 1);
_local24[_local25] = _local26;
updatethisboothstock(_arg1.currentTarget.boothtarget);
_arg1.currentTarget.cooldownbuy = cooldownbuy;
cekfacing(_arg1.currentTarget, _arg1.currentTarget.boothtarget, false);
} else {
_arg1.currentTarget.confusingwalk = false;
_arg1.currentTarget.confusingidle = true;
_arg1.currentTarget.confusingtime = _arg1.currentTarget.confusingtimetemp;
cekfacing(_arg1.currentTarget, _arg1.currentTarget.boothtarget, false);
};
};
};
_local20 = true;
};
};
if (_local20 == true){
if ((((so.data.tutorialcomplete == false)) && ((so.data.tutorialstep < 19)))){
_arg1.currentTarget.cooldownbuy = 1E17;
} else {
if ((((so.data.tutorialcomplete == true)) || ((((so.data.tutorialcomplete == false)) && ((so.data.tutorialstep >= 20)))))){
if (_arg1.currentTarget.boothtipe.length > 0){
_arg1.currentTarget.phase = 3;
} else {
if (_arg1.currentTarget.consumingmoney > 0){
_local23 = caritargetbooth(_arg1.currentTarget, 6);
if (_local23 == true){
_arg1.currentTarget.phase = 5;
caritargetarrayklik(_arg1.currentTarget);
} else {
_arg1.currentTarget.patience = 0;
_arg1.currentTarget.phase = 6;
_arg1.currentTarget.targetx = pospintu2[0];
_arg1.currentTarget.targety = pospintu2[1];
caritargetarrayklik(_arg1.currentTarget);
};
} else {
_arg1.currentTarget.phase = 6;
_arg1.currentTarget.targetx = pospintu2[0];
_arg1.currentTarget.targety = pospintu2[1];
caritargetarrayklik(_arg1.currentTarget);
};
};
};
};
};
} else {
if (_arg1.currentTarget.phase == 5){
cekidlingposition(_arg1.currentTarget);
_arg1.currentTarget.patience--;
if (_arg1.currentTarget.patience < 0){
_arg1.currentTarget.gotoAndPlay("angry");
_arg1.currentTarget.angrytime = 50;
_arg1.currentTarget.patience = 0;
_arg1.currentTarget.phase = 11;
_arg1.currentTarget.boothtarget.mc1.gotoAndPlay("idle1");
_arg1.currentTarget.boothtarget.servingspeed = _arg1.currentTarget.boothtarget.servingspeedtemp;
_arg1.currentTarget.boothtarget.online--;
} else {
if (_arg1.currentTarget.boothtarget.mc1.currentLabel != "stocking1"){
_arg1.currentTarget.boothtarget.mc1.gotoAndPlay("stocking1");
samainequipini(_arg1.currentTarget.boothtarget.mc1, "stocking1");
};
_arg1.currentTarget.boothtarget.servingspeed--;
if (_arg1.currentTarget.boothtarget.servingspeed < 0){
if (so.data.tutorialstep == 20){
so.data.tutorialstep++;
cektutorial();
cektutorchangement();
};
so.data.achievprog[12] = (so.data.achievprog[12] + 1);
cekachiev(12);
cekmainquest("first customer buy in your market", 1);
createsepyur(_arg1.currentTarget, 1, 1, 1, _arg1.currentTarget);
so.data.money = (so.data.money + _arg1.currentTarget.consumingmoney);
updatetext();
_arg1.currentTarget.boothtarget.mc1.gotoAndPlay("idle1");
_arg1.currentTarget.boothtarget.servingspeed = _arg1.currentTarget.boothtarget.servingspeedtemp;
_arg1.currentTarget.boothtarget.online--;
_arg1.currentTarget.phase = 6;
_arg1.currentTarget.targetx = pospintu2[0];
_arg1.currentTarget.targety = pospintu2[1];
caritargetarrayklik(_arg1.currentTarget);
};
};
} else {
if (_arg1.currentTarget.phase == 6){
cekemoticonsummary(_arg1.currentTarget);
_arg1.currentTarget.alpha = 1;
_arg1.currentTarget.insidemarket = false;
_arg1.currentTarget.phase = 7;
_arg1.currentTarget.waypointindex = 0;
_arg1.currentTarget.targetx = pospintu[0];
_arg1.currentTarget.targety = pospintu[1];
caritargetarrayklik(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.phase == 7){
_arg1.currentTarget.alpha = 1;
_arg1.currentTarget.insidemarket = false;
_arg1.currentTarget.phase = 8;
_arg1.currentTarget.waypointindex = 0;
_local18 = randRange(0, (randzombieposition.length - 1));
_arg1.currentTarget.targetx = randzombitarget[_local18][0];
_arg1.currentTarget.targety = randzombitarget[_local18][1];
_arg1.currentTarget.targetpulangx = randzombieposition[_local18][0];
_arg1.currentTarget.targetpulangy = randzombieposition[_local18][1];
caritargetarrayklik(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.phase == 8){
_arg1.currentTarget.phase = 9;
_arg1.currentTarget.targetx = _arg1.currentTarget.targetpulangx;
_arg1.currentTarget.targety = _arg1.currentTarget.targetpulangy;
caritargetarrayklik(_arg1.currentTarget);
} else {
if (_arg1.currentTarget.phase == 9){
if (_arg1.currentTarget.job == "inmate"){
adamaling = false;
};
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, zombiemovement);
_arg1.currentTarget.gotoAndPlay("idle1");
mcgaia.removeChild(zombieimage[_arg1.currentTarget.indexke]);
zombieimage[_arg1.currentTarget.indexke] = null;
} else {
if (_arg1.currentTarget.phase == 10){
makethisconfuse(_arg1.currentTarget);
if (_arg1.currentTarget.patience > patienceminimal){
if (_arg1.currentTarget.boothtipe.length > 0){
_arg1.currentTarget.phase = 3;
} else {
if (_arg1.currentTarget.consumingmoney > 0){
_local23 = caritargetbooth(_arg1.currentTarget, 6);
if (_local23 == true){
_arg1.currentTarget.phase = 5;
caritargetarrayklik(_arg1.currentTarget);
} else {
_arg1.currentTarget.patience = 0;
_arg1.currentTarget.phase = 6;
_arg1.currentTarget.targetx = pospintu2[0];
_arg1.currentTarget.targety = pospintu2[1];
caritargetarrayklik(_arg1.currentTarget);
};
} else {
_arg1.currentTarget.boothtipe = [];
_arg1.currentTarget.phase = 6;
_arg1.currentTarget.targetx = pospintu2[0];
_arg1.currentTarget.targety = pospintu2[1];
caritargetarrayklik(_arg1.currentTarget);
};
};
};
} else {
if (_arg1.currentTarget.phase == 11){
_arg1.currentTarget.angrytime--;
if (_arg1.currentTarget.angrytime < 0){
_arg1.currentTarget.phase = 6;
_arg1.currentTarget.targetx = pospintu2[0];
_arg1.currentTarget.targety = pospintu2[1];
caritargetarrayklik(_arg1.currentTarget);
};
} else {
if (_arg1.currentTarget.phase == 12){
_arg1.currentTarget.angrytime--;
if (_arg1.currentTarget.angrytime < 0){
makethisangryangryzombie(_arg1.currentTarget);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function miniquestsoundcreator(){
stage.addEventListener(Event.ENTER_FRAME, miniquestsound);
}
public function miniquestsound(_arg1:Event):void{
miniquestsoundtime--;
if (miniquestsoundtime < 0){
soundnotifquest.play(0, 1, new SoundTransform(volumesfx));
miniquestsoundtime = miniquestsoundtimetemp;
};
}
public function cekemployeemati(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
if (_arg1.health <= 0){
_arg1.dead = true;
_arg1.gotoAndPlay("stunned");
_arg1.minutemati = minmati;
_arg1.secondmati = secmati;
_arg1.health = _arg1.healthtemp;
_arg1.reloader = 25;
_arg1.minutematitemp = _arg1.minutemati;
_arg1.secondmatitemp = _arg1.secondmati;
_local2 = _arg1.posx;
_local3 = _arg1.posy;
_local4 = 0;
while (_local4 < so.data.employeelist.length) {
if (so.data.employeelist[_local4] != undefined){
if ((((so.data.employeeliststatus[_local4][11] == _local2)) && ((so.data.employeeliststatus[_local4][12] == _local3)))){
so.data.employeeliststatus[_local4][20] = minmati;
so.data.employeeliststatus[_local4][21] = secmati;
so.data.employeeliststatus[_local4][22] = true;
};
};
_local4++;
};
};
}
public function cekachiev(_arg1:int){
if (so.data.achievprog[_arg1] >= achivenumba[_arg1][so.data.achiev[_arg1]]){
if (so.data.achiev[_arg1] > 4){
trace("MAKS ACHIEV");
so.data.achievprog[_arg1] = achivenumba[_arg1][so.data.achiev[_arg1]];
} else {
trace("OK UPDATE ACHIEV");
so.data.achievprog[_arg1] = 0;
so.data.achiev[_arg1] = int((int(so.data.achiev[_arg1]) + int(1)));
};
};
}
public function cekzombiemati(_arg1:Object){
var _local2:*;
var _local3:*;
if (_arg1.health <= 0){
editriotamount(-1);
_local2 = _arg1.miliktilex;
_local3 = _arg1.miliktiley;
_arg1.removeEventListener(Event.ENTER_FRAME, zombiemovement);
mcgaia.removeChild(zombieimage[_arg1.indexke]);
zombieimage[_arg1.indexke] = null;
};
}
public function editriotamount(_arg1:Number){
riotamount = (riotamount + _arg1);
if (riotamount > 0){
riotmode = true;
bonusmsonriotmode = bonusmsonriotmodetemp;
} else {
if (riotamount <= 0){
if (riotamount < 0){
riotamount = 0;
};
riotmode = false;
bonusmsonriotmode = 0;
};
};
}
public function bwatzombiehasilmati(_arg1:Object){
var _local2:*;
_local2 = [ingameemployeeinfected, ingamesecurityinfected];
zombieimage[zombieimage.length] = new (_local2[_arg1.emp]);
mcgaia.addChildAt(zombieimage[(zombieimage.length - 1)], mcgaia.getChildIndex(mcgaia.mcpositionobject));
zombieimage[(zombieimage.length - 1)].zombieno = 666;
zombieimage[(zombieimage.length - 1)].statdirection = "right";
zombieimage[(zombieimage.length - 1)].stathead = "front";
zombieimage[(zombieimage.length - 1)].speedx = movexstandart;
zombieimage[(zombieimage.length - 1)].speedy = moveystandart;
var _local3:* = randRange(0, 1);
trace("1");
zombieimage[(zombieimage.length - 1)].tilefirst = firsttile;
zombieimage[(zombieimage.length - 1)].sizemart = widthemart;
zombieimage[(zombieimage.length - 1)].insidemarket = true;
if (tipeview != ""){
zombieimage[(zombieimage.length - 1)].alpha = 0.3;
};
zombieimage[(zombieimage.length - 1)].zombie = true;
zombieimage[(zombieimage.length - 1)].phase = 6;
zombieimage[(zombieimage.length - 1)].miliktilex = int((int(_arg1.posx) + int(firsttile[0])));
zombieimage[(zombieimage.length - 1)].miliktiley = int((int(_arg1.posy) + int(firsttile[1])));
trace("2");
zombieimage[(zombieimage.length - 1)].targetx = pospintu2[0];
zombieimage[(zombieimage.length - 1)].targety = pospintu2[1];
trace(((("3 " + zombieimage[(zombieimage.length - 1)].miliktilex) + " ") + zombieimage[(zombieimage.length - 1)].miliktiley));
zombieimage[(zombieimage.length - 1)].x = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].x;
zombieimage[(zombieimage.length - 1)].y = tileimage[zombieimage[(zombieimage.length - 1)].miliktilex][zombieimage[(zombieimage.length - 1)].miliktiley].y;
zombieimage[(zombieimage.length - 1)].boothtipetemp = [];
zombieimage[(zombieimage.length - 1)].boothnomortemp = [];
zombieimage[(zombieimage.length - 1)].boothtipe = [];
zombieimage[(zombieimage.length - 1)].boothnomor = [];
zombieimage[(zombieimage.length - 1)].attackmode = false;
zombieimage[(zombieimage.length - 1)].msspeed = 0.7;
zombieimage[(zombieimage.length - 1)].health = 1;
zombieimage[(zombieimage.length - 1)].attack = 1;
zombieimage[(zombieimage.length - 1)].attackspeed = itungaszombie(0.7);
zombieimage[(zombieimage.length - 1)].attackspeedtemp = zombieimage[(zombieimage.length - 1)].attackspeed;
zombieimage[(zombieimage.length - 1)].patience = 100;
zombieimage[(zombieimage.length - 1)].patiencereducer = ((zombieimage[(zombieimage.length - 1)].patience / zombieimage[(zombieimage.length - 1)].boothtipe.length) - 1);
zombieimage[(zombieimage.length - 1)].job = "EX-HUMAN";
zombieimage[(zombieimage.length - 1)].findcashieryes = false;
zombieimage[(zombieimage.length - 1)].findcashier = false;
zombieimage[(zombieimage.length - 1)].confusingwalk = false;
zombieimage[(zombieimage.length - 1)].confusingidle = false;
zombieimage[(zombieimage.length - 1)].confusingtime = 50;
zombieimage[(zombieimage.length - 1)].confusingtimetemp = zombieimage[(zombieimage.length - 1)].confusingtime;
zombieimage[(zombieimage.length - 1)].cashiertemp = [];
zombieimage[(zombieimage.length - 1)].consumingmoney = 0;
zombieimage[(zombieimage.length - 1)].hasilarrayjalan = [];
zombieimage[(zombieimage.length - 1)].cooldownbuy = cooldownbuy;
zombieimage[(zombieimage.length - 1)].boothtarget = 0;
zombieimage[(zombieimage.length - 1)].indexke = (zombieimage.length - 1);
zombieimage[(zombieimage.length - 1)].onmove = true;
zombieimage[(zombieimage.length - 1)].masukmart = false;
caritargetarrayklik(zombieimage[(zombieimage.length - 1)]);
}
public function updatethisboothstock(_arg1:Object){
_arg1.mcsoldout.visible = false;
if (so.data.boothstock[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])] > (boothmaxstock[_arg1.tipe][_arg1.nomor] * 0.6)){
_arg1.gotoAndStop(1);
} else {
if (so.data.boothstock[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])] > (boothmaxstock[_arg1.tipe][_arg1.nomor] * 0.3)){
_arg1.gotoAndStop(2);
} else {
if (so.data.boothstock[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])] != 0){
_arg1.gotoAndStop(2);
} else {
if (so.data.boothstock[(_arg1.miliktilex - firsttile[0])][(_arg1.miliktiley - firsttile[1])] == 0){
trace(((("CEK TIPE NOMOR : " + _arg1.tipe) + " ") + _arg1.nomor));
so.data.notiftext[so.data.notiftext.length] = [0, "out of stock :", ("order new " + boothname[_arg1.tipe][_arg1.nomor]), 1];
createnotif((so.data.notiftext.length - 1));
isinotif("One of your booth has run out of stock");
if (_arg1.tipe == 3){
cekmainquest("sell apparel booth stock until empty", 1);
};
if ((((_arg1.tipe == 1)) && ((_arg1.nomor == 7)))){
cekmainquest("sell brain until display empty", 1);
};
if ((((_arg1.tipe == 1)) && ((_arg1.nomor == 8)))){
cekmainquest("sell bodypart until display empty", 1);
};
_arg1.gotoAndStop(3);
_arg1.mcsoldout.visible = true;
};
};
};
};
}
public function cekmovingbehavior(_arg1:Object){
if (_arg1.statdirection == "right"){
if (_arg1.stathead == "front"){
_arg1.x = (_arg1.x + (_arg1.speedx * _arg1.msspeed));
_arg1.y = (_arg1.y + (_arg1.speedy * _arg1.msspeed));
} else {
if (_arg1.stathead == "back"){
_arg1.x = (_arg1.x + (_arg1.speedx * _arg1.msspeed));
_arg1.y = (_arg1.y - (_arg1.speedy * _arg1.msspeed));
};
};
} else {
if (_arg1.statdirection == "left"){
if (_arg1.stathead == "front"){
_arg1.x = (_arg1.x - (_arg1.speedx * _arg1.msspeed));
_arg1.y = (_arg1.y + (_arg1.speedy * _arg1.msspeed));
} else {
if (_arg1.stathead == "back"){
_arg1.x = (_arg1.x - (_arg1.speedx * _arg1.msspeed));
_arg1.y = (_arg1.y - (_arg1.speedy * _arg1.msspeed));
};
};
};
};
}
public function cekemoticonsummary(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = 0;
_local3 = [0, -0.01, 0.01, 0.02, 0.03, 0.05];
if (_arg1.patience > patiencesummary){
_arg1.mcemoti.gotoAndPlay("happy");
_local2 = 4;
} else {
_local4 = [undefined, "angry", "sad", "neutral", "smile", "happy"];
_local5 = 12.5;
while (_local5 <= patiencesummary) {
if ((((_arg1.patience <= _local5)) && ((_arg1.patience >= (_local5 - 12.5))))){
_arg1.mcemoti.gotoAndPlay(_local4[(_local5 / 12.5)]);
_local2 = (_local5 / 25);
break;
};
_local5 = (_local5 + 12.5);
};
};
so.data.star = (so.data.star + _local3[int(_local2)]);
if (so.data.star < 0){
so.data.star = 0;
} else {
if (so.data.star > 5){
so.data.star = 5;
};
};
}
public function makethisconfuse(_arg1:Object){
_arg1.patience = (_arg1.patience - _arg1.patiencereducer);
if (_arg1.patience <= patienceminimal){
if (so.data.levele >= levelminforattack){
if (_arg1.job == "inmate"){
_arg1.mcemoti.gotoAndPlay("confuse");
_arg1.phase = 6;
_arg1.targetx = pospintu2[0];
_arg1.targety = pospintu2[1];
caritargetarrayklik(_arg1);
} else {
soundzombiemarah.play(0, 1, new SoundTransform(volumesfx));
isinotif("Watch out! a zombie is angry");
editriotamount(1);
_arg1.mcemoti.gotoAndPlay("angry");
_arg1.gotoAndPlay("angry");
_arg1.phase = 12;
_arg1.angrytime = 75;
};
} else {
_arg1.mcemoti.gotoAndPlay("confuse");
_arg1.phase = 6;
_arg1.targetx = pospintu2[0];
_arg1.targety = pospintu2[1];
caritargetarrayklik(_arg1);
};
} else {
_arg1.mcemoti.gotoAndPlay("confuse");
};
}
public function makethisangryangryzombie(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:Array;
var _local15:*;
var _local16:*;
if (employeeimage.length == 0){
editriotamount(-1);
_arg1.attackmode = false;
_arg1.phase = 6;
_arg1.targetx = pospintu2[0];
_arg1.targety = pospintu2[1];
caritargetarrayklik(_arg1);
} else {
_local2 = [];
_local3 = 0;
while (_local3 < widthemart) {
_local4 = 0;
while (_local4 < widthemart) {
if (((((!((employeeimage[_local3][_local4] == null))) && (!((employeeimage[_local3][_local4] == undefined))))) && (!((employeeimage[_local3][_local4] == ""))))){
if (employeeimage[_local3][_local4].dead == false){
_local2[_local2.length] = employeeimage[_local3][_local4];
};
};
_local4++;
};
_local3++;
};
trace(("ADA NDA EMP : " + _local2.length));
if (_local2.length > 0){
_local5 = [];
_local3 = 0;
while (_local3 < _local2.length) {
_local5[_local3] = {};
_local5[_local3].tempemployee = _local2[_local3];
_local5[_local3].hasilx = 0;
_local5[_local3].hasily = 0;
if (_local2[_local3].typee == 1){
_local5[_local3].bobotie = 0;
} else {
_local5[_local3].bobotie = 0;
};
_local6 = [-1, 1, 0, 0];
_local7 = [0, 0, -1, 1];
_local8 = [];
_local9 = 0;
_local10 = 0;
while (_local10 < _local6.length) {
_local11 = int((int(_local2[_local3].miliktilex) + int(_local6[_local10])));
_local12 = int((int(_local2[_local3].miliktiley) + int(_local7[_local10])));
if ((((((((_local11 >= 0)) && ((_local11 <= map.gridWidth)))) && ((((_local12 >= 0)) && ((_local12 <= map.gridHeight)))))) && ((((_local11 >= firsttile[0])) && ((_local12 >= firsttile[1])))))){
_local8[_local9] = {};
_local8[_local9].hasilx = 0;
_local8[_local9].hasily = 0;
_local8[_local9].bobotie = 1E17;
if (map.getCell(_local11, _local12).cellType != map.CELL_FILLED){
_local8[_local9].hasilx = _local11;
_local8[_local9].hasily = _local12;
if ((((_arg1.miliktilex == _local11)) && ((_arg1.miliktiley == _local12)))){
_local8[_local9].bobotie = int((int(_local8[_local9].bobotie) + int(0)));
break;
} else {
_local13 = {};
_local13.miliktilex = _arg1.miliktilex;
_local13.miliktiley = _arg1.miliktiley;
_local13.targetx = _local11;
_local13.targety = _local12;
tampungcelltype();
map.setEndPoints(_local13.miliktilex, _local13.miliktiley, _local13.targetx, _local13.targety);
_local13.waypointindex = 0;
_local13.hasilarrayjalan = [];
_local14 = map.solve(_local13);
_local13.hasilarrayjalan = map.solve(_local13);
tetapkancelltype();
if (_local13.hasilarrayjalan.length > 0){
_local15 = tileimage[_local13.hasilarrayjalan[0].x][_local13.hasilarrayjalan[0].y].nox;
_local16 = tileimage[_local13.hasilarrayjalan[0].x][_local13.hasilarrayjalan[0].y].noy;
if (((!((_local15 == _local13.targetx))) && (!((_local16 == _local13.targety))))){
_local13.hasilarrayjalan = [];
};
};
trace(((((("bobot ke : " + _local3) + " path ke : ") + _local10) + " yaitu : ") + _local8[_local9].bobotie));
trace(("tambai : " + _local13.hasilarrayjalan.length));
_local8[_local9].bobotie = int((int(_local8[_local9].bobotie) + int(_local13.hasilarrayjalan.length)));
};
};
_local9++;
};
_local10++;
};
_local8.sortOn("bobotie", Array.NUMERIC);
_local5[_local3].hasilx = _local8[0].hasilx;
_local5[_local3].hasily = _local8[0].hasily;
_local5[_local3].bobotie = _local8[0].bobotie;
trace(((((((("OK FINAL SORT KE : " + _local3) + " YAITUW X : ") + _local5[_local3].hasilx) + " Y ") + _local5[_local3].hasily) + " BOBOTIE ") + _local5[_local3].bobotie));
_local3++;
};
_local5.sortOn("bobotie", Array.NUMERIC);
trace(((((((("OK FINAL EVOLUTION : " + _local3) + " YAITUW X : ") + _local5[0].hasilx) + " Y ") + _local5[0].hasily) + " BOBOTIE ") + _local5[0].bobotie));
_arg1.attackmode = true;
_arg1.targetx = _local5[0].hasilx;
_arg1.targety = _local5[0].hasily;
caritargetarrayklik(_arg1);
} else {
editriotamount(-1);
_arg1.attackmode = false;
_arg1.phase = 6;
_arg1.targetx = pospintu2[0];
_arg1.targety = pospintu2[1];
caritargetarrayklik(_arg1);
};
};
}
public function carirandlocation(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local2 = [];
_arg1.confusingwalk = true;
_local4 = 0;
while (_local4 < so.data.widthemart) {
_local5 = 0;
while (_local5 < so.data.heightemart) {
if ((((((((((so.data.boothtipe[_local4][_local5] == "")) || ((so.data.boothtipe[_local4][_local5] == undefined)))) && (!((map.getCell((firsttile[0] + _local4), (firsttile[1] + _local5)).cellType == map.CELL_FILLED))))) && (!((int((int(firsttile[0]) + int(_local4))) == _arg1.miliktilex))))) && (!((int((int(firsttile[1]) + int(_local5))) == _arg1.miliktiley))))){
_local2[_local2.length] = [_local4, _local5];
};
_local5++;
};
_local4++;
};
_local3 = randRange(0, (_local2.length - 1));
_arg1.targetx = (firsttile[0] + _local2[_local3][0]);
_arg1.targety = (firsttile[1] + _local2[_local3][1]);
caritargetarrayklik(_arg1);
}
public function cekfacing(_arg1:Object, _arg2:Object, _arg3:Boolean){
if (_arg2.miliktilex > _arg1.miliktilex){
if (_arg1.statdirection != "right"){
_arg1.mcemoti.scaleX = (_arg1.mcemoti.scaleX * -1);
_arg1.scaleX = (_arg1.scaleX * -1);
_arg1.statdirection = "right";
if (_arg1.mcrecovery != null){
_arg1.mcrecovery.scaleX = (_arg1.mcrecovery.scaleX * -1);
};
};
} else {
if (_arg2.miliktiley < _arg1.miliktiley){
if (_arg1.statdirection != "right"){
_arg1.mcemoti.scaleX = (_arg1.mcemoti.scaleX * -1);
_arg1.scaleX = (_arg1.scaleX * -1);
_arg1.statdirection = "right";
if (_arg1.mcrecovery != null){
_arg1.mcrecovery.scaleX = (_arg1.mcrecovery.scaleX * -1);
};
};
};
};
if (_arg2.miliktilex < _arg1.miliktilex){
if (_arg1.statdirection != "left"){
_arg1.mcemoti.scaleX = (_arg1.mcemoti.scaleX * -1);
_arg1.scaleX = (_arg1.scaleX * -1);
_arg1.statdirection = "left";
if (_arg1.mcrecovery != null){
_arg1.mcrecovery.scaleX = (_arg1.mcrecovery.scaleX * -1);
};
};
} else {
if (_arg2.miliktiley > _arg1.miliktiley){
if (_arg1.statdirection != "left"){
_arg1.mcemoti.scaleX = (_arg1.mcemoti.scaleX * -1);
_arg1.scaleX = (_arg1.scaleX * -1);
_arg1.statdirection = "left";
if (_arg1.mcrecovery != null){
_arg1.mcrecovery.scaleX = (_arg1.mcrecovery.scaleX * -1);
};
};
};
};
if ((((_arg2.miliktilex > _arg1.miliktilex)) || ((_arg2.miliktiley > _arg1.miliktiley)))){
if (_arg1.stathead != "front"){
_arg1.stathead = "front";
};
} else {
if ((((_arg2.miliktilex <= _arg1.miliktilex)) || ((_arg2.miliktiley <= _arg1.miliktiley)))){
if (_arg1.stathead != "back"){
_arg1.stathead = "back";
};
};
};
if (_arg1.stathead == "front"){
if (_arg3 == false){
if (_arg1.currentLabel != "walk1"){
_arg1.gotoAndPlay("walk1");
samainequipini(_arg1, "walk1");
};
} else {
if (_arg1.currentLabel != "attack1"){
trace("ATTACK TRUE 1");
_arg1.gotoAndPlay("attack1");
samainequipini(_arg1, "attack1");
};
};
} else {
if (_arg1.stathead == "back"){
if (_arg3 == false){
if (_arg1.currentLabel != "walk2"){
_arg1.gotoAndPlay("walk2");
samainequipini(_arg1, "walk1");
};
} else {
if (_arg1.currentLabel != "attack2"){
trace("ATTACK TRUE 2");
_arg1.gotoAndPlay("attack2");
samainequipini(_arg1, "attack2");
};
};
};
};
}
public function samainequipini(_arg1:Object, _arg2:String){
if (_arg1.mchead != null){
if (_arg1.mchead.mc1 != null){
_arg1.mchead.mc1.gotoAndPlay(_arg2);
};
};
if (_arg1.mcarmor != null){
if (_arg1.mcarmor.mc1 != null){
_arg1.mcarmor.mc1.gotoAndPlay(_arg2);
};
};
if (_arg1.mcglove != null){
if (_arg1.mcglove.mc1 != null){
_arg1.mcglove.mc1.gotoAndPlay(_arg2);
};
};
}
public function caritargetbooth(_arg1:Object, _arg2:int):Boolean{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
_local3 = [];
_local4 = "";
_local5 = false;
_local6 = 0;
while (_local6 < so.data.widthemart) {
_local7 = 0;
while (_local7 < so.data.heightemart) {
if (so.data.boothapa[_local6][_local7] == "booth"){
if (((!((so.data.boothtipe[_local6][_local7] == ""))) && (!((so.data.boothtipe[_local6][_local7] == undefined))))){
if (((!((decorimage[_local6][_local7] == undefined))) && (!((decorimage[_local6][_local7] == ""))))){
if (_arg2 == -1){
if (so.data.boothstock[_local6][_local7] > 0){
if ((((_arg1.boothtipe[0] == decorimage[_local6][_local7].tipe)) && ((_arg1.boothnomor[0] == decorimage[_local6][_local7].nomor)))){
_local3[_local3.length] = decorimage[_local6][_local7];
};
};
} else {
if (decorimage[_local6][_local7].tipe == _arg2){
_arg1.cashiertemp[_arg1.cashiertemp.length] = decorimage[_local6][_local7];
if ((((_arg2 == 6)) && ((decorimage[_local6][_local7].online <= decorimage[_local6][_local7].onlinemax)))){
_local3[_local3.length] = decorimage[_local6][_local7];
};
};
};
};
};
};
_local7++;
};
_local6++;
};
if (_local3.length > 0){
_local4 = _local3[randRange(0, (_local3.length - 1))];
};
if (_local4 != ""){
if (_arg2 == 6){
(_local4.online <= _local4.onlinemax);
_arg1.boothtarget = _local4;
if (_arg1.boothtarget.rotatee == false){
_arg1.targetx = int((int((_local4.miliktilex - 1)) + int(_local4.online)));
_arg1.targety = int(int(_local4.miliktiley));
} else {
_arg1.targetx = int(_local4.miliktilex);
_arg1.targety = int((int((_local4.miliktiley - 1)) + int(_local4.online)));
};
_local4.online++;
_local5 = true;
} else {
_local8 = carijalankeitem(_local4, _arg1);
trace(("ADAKAH JALANEEE : " + _local8.length));
if (_local8.length > 0){
_local5 = true;
_arg1.boothtarget = _local4;
_local9 = randRange(0, (_local8.length - 1));
_arg1.targetx = _local8[_local9][0];
_arg1.targety = _local8[_local9][1];
} else {
_local5 = false;
};
};
} else {
_local5 = false;
};
return (_local5);
}
public function carijalankeitem(_arg1:Object, _arg2:Object):Array{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:Array;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
_local3 = [];
_local4 = 0;
while (_local4 <= _arg1.sizex) {
_local5 = 0;
while (_local5 <= _arg1.sizey) {
_local6 = [-1, 1, 0, 0];
_local7 = [0, 0, -1, 1];
_local8 = 0;
while (_local8 < _local6.length) {
_local9 = int(((int(_arg1.miliktilex) - int(_local4)) + int(_local6[_local8])));
_local10 = int(((int(_arg1.miliktiley) - int(_local5)) + int(_local7[_local8])));
if ((((((((_local9 >= 0)) && ((_local9 <= map.gridWidth)))) && ((((_local10 >= 0)) && ((_local10 <= map.gridHeight)))))) && ((((_local9 >= firsttile[0])) && ((_local10 >= firsttile[1])))))){
if (map.getCell(_local9, _local10).cellType != map.CELL_FILLED){
if ((((_arg2.miliktilex == _local9)) && ((_arg2.miliktiley == _local10)))){
_local3[_local3.length] = [_local9, _local10];
} else {
_local11 = {};
_local11.insidemarket = _arg2.insidemarket;
_local11.tilefirst = _arg2.tilefirst;
_local11.sizemart = _arg2.sizemart;
_local11.miliktilex = _arg2.miliktilex;
_local11.miliktiley = _arg2.miliktiley;
_local11.targetx = _local9;
_local11.targety = _local10;
tampungcelltype();
map.setEndPoints(_local11.miliktilex, _local11.miliktiley, _local11.targetx, _local11.targety);
_local11.waypointindex = 0;
_local11.hasilarrayjalan = [];
_local12 = map.solve(_local11);
_local11.hasilarrayjalan = map.solve(_local11);
tetapkancelltype();
if (_local11.hasilarrayjalan.length > 0){
_local13 = tileimage[_local11.hasilarrayjalan[0].x][_local11.hasilarrayjalan[0].y].nox;
_local14 = tileimage[_local11.hasilarrayjalan[0].x][_local11.hasilarrayjalan[0].y].noy;
_local15 = tileimage[_local11.hasilarrayjalan[(_local11.hasilarrayjalan.length - 1)].x][_local11.hasilarrayjalan[(_local11.hasilarrayjalan.length - 1)].y].nox;
_local16 = tileimage[_local11.hasilarrayjalan[(_local11.hasilarrayjalan.length - 1)].x][_local11.hasilarrayjalan[(_local11.hasilarrayjalan.length - 1)].y].noy;
if (((!((_local13 == _local11.targetx))) || (!((_local14 == _local11.targety))))){
_local11.hasilarrayjalan = [];
};
};
if (_local11.hasilarrayjalan.length > 0){
_local3[_local3.length] = [_local9, _local10];
};
};
};
};
_local8++;
};
_local5++;
};
_local4++;
};
return (_local3);
}
function frame1(){
btndemo.addEventListener(MouseEvent.CLICK, clikSF);
trace(((("URL : " + loaderInfo.url) + " ") + loaderInfo.url.substring(0, 4)));
if (loaderInfo.url.substring(0, 4) != "file"){
Security.allowDomain("*");
Security.loadPolicyFile("http://track.g-bot.net/crossdomain.xml");
variables2 = new URLVariables();
variables2.id = "zommart";
variables2.ui = loaderInfo.url;
request2 = new URLRequest("http://track.g-bot.net/track.php");
request2.method = "POST";
request2.data = variables2;
loader2 = new URLLoader();
loader2.load(request2);
};
islocked = false;
urls_allowed = ["localhost", "arcadebomb.com", "www.arcadebomb.com", "game.arcadebomb.com", "www.game.arcadebomb.com", "www.littlegiantworld.com", "littlegiantworld.com"];
sitelock(urls_allowed);
stop();
stage.addEventListener(Event.ENTER_FRAME, preloader);
volumesfx = 1;
volumemusic = 1;
stage.quality = "HIGH";
so = SharedObject.getLocal("zommart");
sizemartmax = 18;
equipamount = [13, 11, 11];
researchname = ["hand sanitizer", "pure dew water small", "food suplement", "pure dew water medium", "synthetic food", "synthetic fast food", "pure dew water large", "zombi fashion high-end", "zombi fashion high-end lv.2", "advanced armory", "synthetic food lv 2", "cryforhelp megaphonetower", "beauty class", "zombie housing research", "zombie it product", "sterile tube ", "clone", "medical class"];
decorname = [undefined, ["stained", "brick", "white", "carpet yellow", "carpet green", "grass", "wood dark", "wood light", "steel", "carpet red", "stone", "dark grass", "carpet blue", "carpet black", "carpet purple", "wood haunted"], ["aloe vera pot", "brick divider", "wooden pot", "iron divider", "small baloons", "short wooden pot", "tall wooden pot", "shopping basket stack", "Straight wooden divider", "atm", "white divider", "wooden barrel", "wooden crate", "Large wooden crate", "Curvy wooden divider", "wooden panel", "female mannequin", "male steel", "blue fitting room", "wooden haunted divider", "shopping cart stack", "feminine divider", "sound system", "glass divider", "female wooden", "male wooden", "green bin", "purple fitting room", "large balloon", "electronic promotion", "haunted divider", "haunted pot", "steel promotion panel", "theatre divider", "lamp", "foodcourt signlamp", "haunted fitting room", "steel chest", "pitcher pot", "haunted lamp", "fishtank", "fakedoorprize", "fountain"], ["stained", "brick", "yellow", "peach", "purple", "mint", "blue", "polkadot", "wood", "mossy", "steel", "classic", "haunted"], ["broken door", "broken window", "white wall lamp", "small glass door", "brown window", "dual window", "mossy door", "blue window", "wooden door", "gray window", "rolling door", "small window", "large glass door", "minimalist window", "creepy door", "creepy window", "creepy wall lamp", "Sexy zombie painting", "CCTV"]];
boothlock = [undefined, ["", "Rottenorange juice", "Rotten Vegetable", "Thumb candy", "Instant testine", "Tuber", 1, "Brain", 1, "Fruit", "Rottenbear candy"], ["WormDog", "Finger fries", "Blood tea", "Skin kebab"], ["Geez", "Kid boy", "Kid girl", "Bags", "Batix", "Zoro", "Girodano"], ["Books", "Craft hobby", "Sports", "Beauty", "Petfood", "Wigs", "IT", "DIY"], ["Eye juice", "Gum ball", "Poison"], ["Simple white cashier", "Simple green cashier", "Simple blue cashier", "Elegant wood cashier", "Luxury steel cashier"], undefined, ["8x8", "9x9", "10x10", "11x11", "12x12", "13x13", "14x14", "15x15", "16x16", "17x17", "18x18"]];
decorlock = [undefined, ["stained", "brick", "white", "carpet yellow", "carpet green", "grass", "wood dark", "wood light", "steel", "carpet red", "stone", "dark grass", "carpet blue", "carpet black", "carpet purple", "wood haunted"], ["pot aloevera", "brick divider", "wooden pot", "minim divider", "baloon small", "wooden pot short", "wooden pot tall", "shoping basket stack", "wooden straight divider", "atm", "white divider", "wooden barrel", "wooden crate", "wooden crate large", "woodencurve divider", "wooden panel", "female steel", "male steel", "blue changeroom", "wooden haunted divider", "shoping cart stack", 1, "sound system", "glass divider", "female wooden", "male wooden", "bin green", "purple changeroom", "baloon large", 1, "haunted divider", "haunted pot", "promopanel steel", "theatre divider", "lamp", "haunted changeroom", "steel chest", "pitcher pot", "lamp haunted", "fishtank", "fakedoorprize", "fountain"], ["stained", "brick", "yellow", "peach", "purple", "mint", "blue", "polkadot", "wood", "mossy", "steel", "classic", "haunted"], ["broken door", "broken window", "wall lamp white", "glass small door", "brown window", "dual window", "mossy door", "blue window", "wooden door", "gray window", "rolling door", "small window", "glass large door", "noborder window", "haunted door", "haunted window", "wall lamp haunted", "wall sexyzombie", "CCTV"]];
zombiejob = ["homeless", "retiree", "office worker", "debt collector", "cute secretary", "spoiled girl", "orphan boy", "ex-president", "football player", "tatoo artist", "basketball athlete", "cheerleader star", "chef", "ex-S.T.A.R.S", "heart broken bride", "inmate", "Grey sorcerer", "Afro boss", "hot blooded farmer", "deserter", "construction worker", "makintosh CEO", "sumo athlete", "pirate captain", "jedi master", "the first scavanger", "ultra nerd scientist", "inmate"];
questlevel = [undefined, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 9, 10, 10, 10, 11, 12, 12, 13, 13, 14, 14, 15, 15, 15, 16, 16, 17, 17, 18, 18, 20, 20, 20, 21, 21, 21, 21, 21];
questlist = [undefined, ["build a booth", "build a cashier", "hire a stok stocker", "order booth's stock", "buy a decoration", "first customer buy in your market"], ["hire a security", "catch first thief", "catch 3 thief"], ["equip stocker with armory", "equip security with armory"], ["research hand sanitizer and use it on stocker", "research small dew and use it on stocker"], ["have 3 type of booth", "buy 3 decorations", "build thumb candy booth"], ["Have 3 employees", "Have 2 securities"], ["Save 750 gold", "catch 5 thieves"], ["help zombi find landmark 3 time"], ["expand market"], ["Have 2 type zombie in zombictionary", "have level 3 employee"], ["research medium dew", "research food suplement"], ["save 1500 gold", "Save 2500 gold", "order booth's stock 5 times", "research synthetic food"], ["buy 5 floor tile", "buy 5 wall decorations"], ["build geez booth", "order geez medium stock order", "build wooden panel decoration", "sell apparel booth stock until empty"], ["have 5 types of zombie in zombictionary", "have level 5 employee"], ["research synthetic fast food", "build foodcourt booth", "hire booth stocker (assign to foodcourt booth)"], ["expand market lv 3", "have 10 type of booth"], ["build sport booth", "have fitting room decoration", "change entrance door"], ["Catch 5 underground thieves", "Save 2500 gold", "all employees equiped by armor"], ["help zombie find landmark 10 times", "Collect 5 hit & run victim's organ", "build poison vending machine"], ["Have 11 zombies unlocked in zombictionary", "build electropromo decoration"], ["reach 4 star popularity"], ["expand market lv 4", "Have 8 bottles of any dew", "Have 16 various booths", "simultaneously order 15 stocks"], ["build brain booth", "order medium stock brain", "sell brain until display empty"], ["build bodypart booth", "order medium stock bodypart", "sell bodypart until display empty"], ["research cryforhelp megaphonetower", "hire superhero security", "buy and equip for superhero security"], ["Unlock 4 special customers on zombictionary", "have lv 7 employee"], ["Save 6000 gold", "Have 25 decorations", "change entrance door", "have pitcher plant"], ["Spent 6000 gold"], ["Have 10 windows", "display sexy zombie poster", "have fishtank"], ["research beauty class"], ["research clone"], ["have 3 special customers in market"], ["expand market lv 5", "have DIY booth", "build rottenbear candy", "stock rottenbear candy"], ["build IT booth", "stock IT booth 2x"], ["have level 12 employee", "Have 2 superhero securities"], ["have skin kebab", "Unlock 7 special customers on zombictionary"], ["Have 4 stars popularity", "Have 10 types of zombie in zombictionary"], ["Save 10000 gold", "Save 15000 gold"], ["clone a stocker"], ["have lv 15 employee"], ["Save 5 employee's dna", "clone a superhero"], ["reach 5 stars popularity"]];
questthumb = [undefined, [1, 1, 2, 3, 4, 5], [2, 6, 6], [11, 12], [7, 7], [1, 4, 1], [2, 2], [8, 6], [9], [1], [5, 2], [7, 7], [8, 8, 3, 7], [4, 4], [1, 3, 4, 3], [5, 2], [7, 1, 2], [1, 1], [1, 4, 4], [6, 8, 11], [9, 23, 1], [5, 4], [13], [1, 7, 1, 3], [1, 3, 3], [1, 3, 3], [7, 2, 11], [5, 5], [8, 4, 4, 4], [8], [4, 4, 4], [7], [7], [5], [1, 1, 1, 3], [1, 3], [2, 2], [1, 5], [13, 5], [10, 10], [7], [2], [2, 7], [13]];
questlistdata = [undefined, [1, 1, 1, 1, 1, 1], [1, 1, 3], [1, 1], [1, 1], [3, 3, 1], [3, 2], [1, 5], [3], [1], [2, 1], [1, 1], [1, 1, 5, 1], [5, 5], [1, 1, 1, 1], [5, 1], [1, 1, 1], [1, 10], [1, 1, 1], [5, 1, 1], [10, 5, 1], [11, 1], [1], [1, 8, 16, 15], [1, 1, 1], [1, 1, 1], [1, 1, 1], [4, 7], [1, 25, 1, 1], [6000], [10, 1, 1], [1], [1], [3], [1, 1, 1, 1], [1, 2], [1, 2], [1, 7], [1, 10], [1, 1], [1], [1], [5, 1], [1]];
questprizemoney = [undefined, 50, 50, 100, 50, 50, 50, 100, 100, 100, 50, 50, 150, 150, 150, 75, 100, 100, 100, 100, 250, 100, 150, 120, 100, 150, 150, 150, 200, 150, 150, 200, 200, 120, 200, 150, 250, 250, 150, 300, 200, 100, 300, 250, 200, 200, 150, 250, 250, 175, 200, 200, 100, 250, 200, 200, 350, 300, 300, 300, 250, 200, 100, 250, 250, 100, 350, 300, 300, 300, 300, 600, 300, 250, 250, 250, 500, 250, 300, 250, 750, 300, 300, 300, 300, 350, 350, 400, 300, 350, 500, 650, 500, 300, 1000, 1500, 1000, 500, 500, 500, 500, 750, 500];
achiev = ["Hero or victim", "wealthy or stingy", "security or zombie hunter", "spender", "famous market", "big market", "landlord", "scientist", "Bravo Medic", "Huge Human Resources", "super innovative", "anti-loss", "best service", "safe mart", "decorator"];
}
function frame2(){
soundmoney = new moneysound();
soundzombieclick1 = new zombieclick1sound();
soundzombieclick2 = new zombieclick2sound();
soundzombieclick3 = new zombieclick3sound();
soundzombieclick4 = new zombieclick4sound();
soundbuild = new buildsound();
soundtab = new tabsound();
soundklik = new kliksound();
soundstocking = new stockingsound();
soundnaeklevel = new naeklevelsound();
soundapplause = new applausesound();
soundtab2 = new tab2sound();
soundklik2 = new klik2sound();
soundclose = new closesound();
soundmale1huh = new male1huhsound();
soundmale2huh = new male2huhsound();
soundmale1activity = new male1activitysound();
soundmale2activity = new male2activitysound();
soundfemale1huh = new female1huhsound();
soundfemale1activity = new female1activitysound();
soundfemale2activity = new female2activitysound();
soundstocking2 = new stockingsound2();
soundeditbooth = new editboothsound();
soundpremium = new premiumsound();
soundcannotplace = new cannotplacesound();
soundhonktol = new honktolsound();
soundmainmenu = new mainmenusound();
soundquestdone = new questdonesound();
soundingame1 = new ingamesound1();
soundingame2 = new ingamesound2();
soundingame3 = new ingamesound3();
soundpunch1 = new punch1sound();
soundthief = new thiefsound();
soundzombiemarah = new angryzombiesound();
soundnotifquest = new sidequestsound();
soundchoppa = new choppasound();
soundintro = new introsound();
soundintro1 = new intro1sound();
soundzoom = new zoomsound();
soundcar = new carsound();
soundtire = new tiresound();
soundbling = new blingsound();
}
function frame3(){
stop();
btnlink.addEventListener(MouseEvent.CLICK, accesslink);
stage.addEventListener(Event.ENTER_FRAME, skipsplash);
}
function frame4(){
stop();
soundchannelingame = soundintro.play(0, 1, new SoundTransform(1));
mcstory1.gotoAndPlay(1);
loadstory();
btnskip.addEventListener(MouseEvent.CLICK, skipstory);
}
function frame5(){
stop();
if (so.size != 0){
if (so.data.tutorialcomplete == false){
so.clear();
createnewso();
};
} else {
so.clear();
createnewso();
};
stage.quality = "HIGH";
mcmainmenu.btnmutemusic.removeEventListener(MouseEvent.CLICK, stagemutemusic);
mcmainmenu.btnmutesfx.removeEventListener(MouseEvent.CLICK, stagemutesfx);
mcmainmenu.btnmutemusic.addEventListener(MouseEvent.CLICK, stagemutemusic);
mcmainmenu.btnmutesfx.addEventListener(MouseEvent.CLICK, stagemutesfx);
btndemo.addEventListener(MouseEvent.CLICK, clikSF);
soundzombieclick2.play(0, 1, new SoundTransform(volumesfx));
if (soundchannelingame != null){
soundchannelingame.stop();
soundchannelingame = null;
};
soundchannelingame = soundmainmenu.play(0, 999, new SoundTransform(volumemusic));
mcmainmenu.mc1.btnnewgame.addEventListener(MouseEvent.CLICK, startgame);
continuekah = false;
mcmainmenu.mc1.btncontinue.addEventListener(MouseEvent.CLICK, continuegame);
mcmainmenu.mc1.btncredits.addEventListener(MouseEvent.CLICK, creditsgame);
btnab.addEventListener(MouseEvent.CLICK, moregamesgame);
mcmainmenu.mc1.btnmoregames.addEventListener(MouseEvent.CLICK, moregamesgame);
btnaddthis.addEventListener(MouseEvent.CLICK, moregamesgame);
stage.addEventListener(Event.ENTER_FRAME, waitmm);
}
function frame6(){
stop();
soundchannelingame.stop();
soundchannelingame = null;
soundchannelingame = soundingame1.play(0, 1, new SoundTransform(volumemusic));
stage.addEventListener(Event.ENTER_FRAME, creditsok);
stage.addEventListener(MouseEvent.CLICK, skipcredits);
}
function frame7(){
stage.quality = "LOW";
stop();
morning = true;
tutorialtexte = [undefined, "Look at your mart, its still empty!\nso lets prepare it to start our bussiness!", "First, let buy a booth for zombie customer to buy", "Click the booth button to buy booth", "buy that yummy Fingerchips booth", "Place it anywhere on your mart", "Uh..that Fingerchips is empty! lets order a stock rightaway", "Click the stock button", "click Fingerchips stock", "order the first option", "lets use the free bucks and instantly complete the order time", "now we need help to put the stock right in the booth", "Click the employee button and hire someone to help us", "Hire the gifted stocker employee", "position the stocker close to the booth so he/she can stock it", "lets wait for him/her to stock", "we have stocked booth! now prepare for the zombie customer", "the zombies are coming! now he'll start buying our products", "now lets build cashier to receive zombie's payment", "Click the booth button", "Choose Cashier tab", "Buy the awesome cashier", "Place it anywhere on your mart", "Now polite zombie will pay for his item\nGood Zombie...", "Now our market is ready for bussines! lets start!"];
tutorcontinue = [undefined, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1];
soundbgm = [soundingame1, soundingame2, soundingame3];
soundbgmindex = 0;
soundchannelingame.stop();
soundchannelingame = null;
soundchannelingame = soundbgm[soundbgmindex].play(0, 1, new SoundTransform(volumemusic));
soundchannelingame.addEventListener(Event.SOUND_COMPLETE, soundBGMAbisAwal, false, 0, true);
silencetime = 200;
silencetimetemp = silencetime;
stage.quality = "low";
stage.addEventListener(KeyboardEvent.KEY_UP, anykeyup);
stage.addEventListener(KeyboardEvent.KEY_DOWN, anykey);
stage.addEventListener(Event.ENTER_FRAME, numchildrener);
useitemimage = [];
movexstandart = 1.1;
moveystandart = 0.6;
riotmode = false;
riotamount = 0;
bonusmsonriotmode = 0;
bonusmsonriotmodetemp = 1;
pausegame = false;
posmouse = [];
movearoundupdater = 3;
movearoundupdatertemp = movearoundupdater;
widthemap = 50;
heightemap = widthemap;
balancerposition = int((widthemap / 6.25));
indexcenteredatasx = 0;
indexcenteredatasy = 0;
indexcenteredbawahx = widthemap;
indexcenteredbawahy = heightemap;
widthemart = so.data.widthemart;
heightemart = so.data.heightemart;
firsttile = [];
tileimage = [];
decorimage = [];
houseimage = [];
wallimage = [];
employeeimage = [];
zombieimage = [];
doorimage = [];
effectimage = [];
lootimage = [];
pospintu = [23, 19];
pospintu2 = [23, 20];
starttilemartx = 0;
starttilemarty = 0;
createemployeebool = false;
createboothbool = false;
achivenumba = [[1, 2, 3, 5, 7], [5000, 8000, 20000, 50000, 75000], [1, 5, 10, 15, 25], [500, 1500, 2800, 7000, 12000], [5, 10, 20, 37, 60], [5, 10, 15, 20, 25], [5, 10, 15, 20, 25], [1, 2, 2, 3, 3], [1, 5, 10, 15, 20], [4, 8, 15, 22, 30], [3, 7, 12, 18, 25], [2, 5, 8, 15, 30], [1, 3, 7, 12, 20], [20, 100, 300, 500, 800], [50, 400, 1000, 3000, 7000], [5, 12, 25, 50, 100]];
achievtext = ["Employee recovery from fainted", "Save money", "Catch thief", "Buy decoration", "Visited by special customer", "Booth variant", "Expand your market", "Clone your employee", "Heal your employee", "Hire employee", "Have research", "Sell booth", "Serve customer", "Buy equipment", "move booth"];
itemname = [undefined, "hand sanitizer", "pure dew water small", "food suplement", "pure dew water medium", "pure dew water large", "sterile tube"];
itemdesc = [undefined, "Hand sterilizer and increase exp by 3", "Small collected dew heals employee for 10% health", "MLM suplement food to increase and increase exp by 6", "Medium dew heals employee for 50% health", "Premium dew heals employee for 80% health", "keeping human DNA sterile for clone purpose"];
itemeffect = [undefined, "Increase exp by 3", "heal hp 10%", "Increase exp by 6", "heal hp 50%", "heal hp 80%", "store employee DNA"];
researchdesc = ["create hand sanitizer", "create dew water in small amount", "create food suplement", "create dew water in medium amount", "formula to create bodypart and innard", "formula to create artificial fastfood", "create dew water in large amount", "open human kids clothes charity for resell", "research exclusive looks material for zombie clothes", "unlock more advance equip for your safety only", "formula to create tasty yummy brain", "echoing cry-for-help to attract superheroes", "Advanced aesthetic cosmetic research for rotten skin", "Advanced cemetery skill for zombies house need", "research zombie sensitive electronics", "create empty sterilized tube for clone", "create clone machine for the sake of human race", "medical class for stocker's self-service first aid"];
researchunlock = [1, 1, 5, 5, 6, 8, 9, 9, 11, 12, 12, 13, 14, 16, 17, 20, 20, 21];
researchtime = [1, 2, 3, 4, 5, 8, 5, 3, 8, 3, 8, 5, 4, 5, 4, 3, 10, 8];
researchqty = [3, 3, 2, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0];
researchrepeatable = [1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0];
researcheffect = ["", "", "", "", "unlock booth innard, and bodypart", "unlock foodcourt tab menu", "", "unlock booth apparel boys and girls", "unlock apparel booth girodano, zoro", "unlock advanced equip", "unlock booth brain", "Opportunities superheroes applicant", "unlock beauty divider and wig booth", "unlock booth DIY Tools", "unlock IT booth and IT decoration", "", "unlock clone tab menu", "get medicine room"];
researchpointneeded = [50, 50, 250, 250, 100, 600, 400, 200, 800, 900, 350, 800, 200, 400, 1200, 2000, 9500, 2000];
employeelinkage = [undefined, [undefined, ingameemployee1, ingameemployee2, ingameemployee3, ingameemployee4, ingameemployee5, ingameemployee6], [undefined, ingamesecurity1, ingamesecurity2, ingamesecurity3, ingamesecurity4, ingamesecurity5, ingamesecurity6, ingamesecurity7, ingamesecurity8, ingamesecurity9]];
boothstockingpremium = [undefined, [[1, 1, 1], [1, 1, 1], [1, 1, 1], [1, 1, 2], [2, 2, 2], [3, 3, 3], [3, 3, 3], [2, 2, 3], [3, 3, 3], [3, 3, 3], [4, 4, 4]], [[1, 1, 2], [2, 2, 3], [2, 2, 3], [3, 3, 4]], [[1, 1, 1], [1, 1, 1], [1, 1, 1], [1, 1, 2], [1, 1, 2], [2, 2, 3], [2, 2, 3]], [[2, 2, 2], [2, 2, 2], [2, 2, 2], [3, 3, 3], [3, 3, 3], [4, 4, 4], [4, 4, 4], [4, 4, 4]], [[1, 1, 1], [3, 3, 4], [2, 2, 2]], [], [], []];
boothlinkage = [undefined, [ingamefooddrink1, ingamefooddrink2, ingamefooddrink3, ingamefooddrink5, ingamefooddrink6, ingamefooddrink7, ingamefooddrink8, ingamefooddrink11, ingamefooddrink12, ingamefooddrink13, ingamefooddrink14], [ingamefoodcourt1, ingamefoodcourt2, ingamefoodcourt3, ingamefoodcourt4], [ingameapparel1, ingameapparel2, ingameapparel3, ingameapparel4, ingameapparel5, ingameapparel6, ingameapparel7], [ingamemisc1, ingamemisc2, ingamemisc3, ingamemisc4, ingamemisc5, ingamemisc6, ingamemisc7, ingamemisc8], [ingamefooddrink4, ingamefooddrink9, ingamefooddrink10], [ingamecashier1, ingamecashier2, ingamecashier3, ingamecashier4, ingamecashier5], [], []];
boothname = [undefined, ["Fingerchips", "Rottenorange juice", "Rotten Vegetable", "Thumb candy", "Instant testine", "Tuber", "Innard", "Brain", "Bodypart", "Fruit", "Rottenbear candy"], ["WormDog", "Finger fries", "Blood tea", "Skin kebab"], ["Geez", "Kid boy", "Kid girl", "Bags", "Batix", "Zoro", "Girodano"], ["Books", "Craft hobby", "Sports", "Beauty", "Petfood", "Wigs", "IT", "DIY"], ["Eye juice", "Gum ball", "Poison"], ["Simple white cashier", "Simple green cashier", "Simple blue cashier", "Elegant wood cashier", "Luxury steel cashier"], undefined, ["8x8", "9x9", "10x10", "11x11", "12x12", "13x13", "14x14", "15x15", "16x16", "17x17", "18x18"]];
boothprice = [undefined, [8, 8, 24, 16, 18, 30, 69, 150, 84, 48, 54], [13, 15, 18, 36], [12, 19, 19, 72, 50, 60, 67], [5, 8, 12, 32, 11, 800, 240, 55], [22, 10, 16], [], [], []];
boothstockingamount = [undefined, [[15, 45, 90], [40, 120, 240], [15, 45, 90], [15, 45, 90], [20, 60, 120], [20, 60, 120], [12, 36, 72], [12, 36, 72], [12, 36, 72], [20, 60, 120], [20, 60, 120]], [[50, 150, 300], [75, 225, 450], [75, 225, 450], [60, 180, 360]], [[20, 60, 120], [20, 60, 120], [20, 60, 120], [15, 45, 90], [25, 75, 150], [25, 75, 150], [25, 75, 150]], [[30, 90, 180], [30, 90, 180], [30, 90, 180], [20, 60, 120], [40, 120, 240], [6, 18, 36], [10, 30, 60], [60, 180, 360]], [[20, 60, 120], [20, 60, 120], [25, 75, 150]], [], [], []];
boothstockingprice = [undefined, [[30, 90, 180], [20, 60, 120], [105, 315, 630], [60, 180, 360], [100, 300, 600], [180, 540, 1080], [240, 720, 1440], [540, 1620, 3240], [300, 900, 1800], [280, 840, 1680], [320, 960, 1920]], [[150, 450, 900], [300, 900, 1800], [375, 1125, 2250], [600, 1800, 3600]], [[60, 180, 360], [100, 300, 600], [100, 300, 600], [315, 945, 1890], [375, 1125, 2250], [450, 1350, 2700], [500, 1500, 3000]], [[30, 90, 180], [60, 180, 360], [90, 270, 540], [180, 540, 1080], [120, 360, 720], [1440, 4320, 8640], [720, 2160, 4320], [960, 2880, 5760]], [[120, 360, 720], [60, 180, 360], [100, 300, 600]], [], [], []];
boothstockingtime = [undefined, [[[0, 0, 15], [0, 0, 30], [0, 1, 0]], [[0, 0, 30], [0, 1, 0], [0, 2, 0]], [[0, 0, 45], [0, 1, 30], [0, 3, 0]], [[0, 0, 45], [0, 1, 30], [0, 3, 0]], [[0, 0, 50], [0, 1, 40], [0, 3, 20]], [[0, 1, 15], [0, 2, 30], [0, 5, 0]], [[0, 1, 40], [0, 3, 20], [0, 6, 40]], [[0, 2, 0], [0, 4, 0], [0, 8, 0]], [[0, 2, 0], [0, 4, 0], [0, 8, 0]], [[0, 1, 15], [0, 2, 30], [0, 5, 0]], [[0, 1, 40], [0, 3, 20], [0, 4, 40]]], [[[0, 1, 0], [0, 2, 0], [0, 4, 0]], [[0, 1, 0], [0, 2, 0], [0, 4, 0]], [[0, 0, 45], [0, 1, 30], [0, 3, 0]], [[0, 1, 40], [0, 3, 20], [0, 6, 40]]], [[[0, 1, 0], [0, 2, 0], [0, 4, 0]], [[0, 1, 0], [0, 2, 0], [0, 4, 0]], [[0, 1, 0], [0, 2, 0], [0, 4, 0]], [[0, 1, 15], [0, 2, 30], [0, 5, 0]], [[0, 1, 15], [0, 2, 30], [0, 5, 0]], [[0, 1, 15], [0, 2, 30], [0, 6, 40]], [[0, 1, 40], [0, 3, 20], [0, 6, 40]]], [[[0, 0, 45], [0, 1, 30], [0, 3, 0]], [[0, 0, 30], [0, 1, 0], [0, 2, 0]], [[0, 0, 50], [0, 1, 40], [0, 3, 20]], [[0, 1, 0], [0, 2, 0], [0, 4, 0]], [[0, 0, 50], [0, 1, 40], [0, 3, 20]], [[0, 2, 0], [0, 4, 0], [0, 8, 0]], [[0, 2, 30], [0, 5, 0], [0, 10, 0]], [[0, 1, 30], [0, 3, 0], [0, 6, 0]]], [[[0, 0, 30], [0, 1, 0], [0, 2, 0]], [[0, 0, 50], [0, 1, 40], [0, 3, 0]], [[0, 0, 45], [0, 1, 30], [0, 3, 0]]], [], [], []];
boothsizex = [undefined, [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [1, 1, 1, 1], [0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0], [1, 1, 1, 1, 1], [], []];
boothsizey = [undefined, [0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1], [2, 2, 1, 1, 2, 2, 2], [1, 2, 1, 2, 2, 1, 2, 4], [0, 0, 0], [2, 2, 2, 2, 2], [], []];
boothmaxstock = [undefined, [30, 50, 30, 30, 75, 50, 20, 20, 25, 100, 100], [120, 150, 150, 100], [45, 45, 45, 25, 45, 45, 45], [100, 80, 50, 30, 100, 3, 15, 60], [50, 75, 75], [2, 1, 1, 1, 1], [], []];
boothunlocked = [undefined, [1, 1, 2, 3, 5, 6, 6, 12, 12, 14, 16], [8, 11, 15, 18], [7, 9, 9, 11, 12, 14, 15], [5, 7, 9, 11, 13, 14, 17, 16], [4, 8, 10], [0, 0, 0, 0, 0], [], [4, 6, 8, 10, 14, 16, 18, 19, 20, 21, 21]];
boothjumitem = [undefined, 11, 4, 7, 8, 3, 5, 0, 11];
boothpricemoney = [undefined, [100, 150, 300, 200, 550, 600, 1150, 2500, 1750, 2000, 2250], [1250, 1800, 2250, 3000], [450, 700, 700, 1500, 1850, 2250, 2500], [350, 500, 500, 800, 900, 2000, 3000, 2750], [450, 300, 450], [1000, 2500, 2500, 5000, 5000], undefined, [1000, 1500, 2000, 2500, 3500, 4500, 5000, 6000, 8000, 10000, 12000]];
itempricepremimum = [undefined, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
jumdecor = [undefined, 16, 42, 13, 19];
decorunlocked = [undefined, [1, 1, 2, 3, 3, 5, 7, 7, 9, 10, 11, 12, 13, 13, 13, 14, 14], [1, 1, 2, 2, 3, 4, 4, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11, 11, 12, 12, 12, 12, 14, 14, 15, 15, 18, 20], [1, 1, 2, 2, 3, 5, 5, 6, 6, 8, 10, 12, 14], [1, 1, 3, 3, 3, 5, 5, 6, 7, 8, 9, 9, 10, 11, 11, 13, 15, 15, 16]];
decorstarcontribute = [undefined, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.01, 0, 0.01, 0, 0.01, 0.01, 0.01, 0.01, 0, 0.08, 0, 0.02, 0.02, 0.02, 0, 0.03, 0.03, 0.03, 0.03, 0, 0.05, 0.05, 0.08, 0, 0.05, 0.05, 0.08, 0.05, 0.05, 0.1, 0, 0.05, 0.05, 0, 0.05, 0.05, 0.08, 0.05, 0.1, 0.05, 0.1, 0.1, 0.2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [], [0.05, 0.02, 0.02, 0.02, 0.02, 0.02, 0.1, 0.02, 0.1, 0.02, 0.1, 0.03, 0.2, 0.03, 0.2, 0.02, 0.03, 0.05, 0.08]];
decorlinkage = [undefined, [ingametile, ingametile, ingametile, ingametile, ingametile, ingametile, ingametile, ingametile, ingametile, ingametile, ingametile, ingametile, ingametile, ingametile, ingametile, ingametile], [ingamedecorfloor1, ingamedecorfloor2, ingamedecorfloor3, ingamedecorfloor4, ingamedecorfloor5, ingamedecorfloor6, ingamedecorfloor7, ingamedecorfloor8, ingamedecorfloor9, ingamedecorfloor10, ingamedecorfloor11, ingamedecorfloor12, ingamedecorfloor13, ingamedecorfloor14, ingamedecorfloor15, ingamedecorfloor16, ingamedecorfloor17, ingamedecorfloor18, ingamedecorfloor19, ingamedecorfloor20, ingamedecorfloor21, ingamedecorfloor22, ingamedecorfloor23, ingamedecorfloor24, ingamedecorfloor25, ingamedecorfloor26, ingamedecorfloor27, ingamedecorfloor28, ingamedecorfloor29, ingamedecorfloor30, ingamedecorfloor31, ingamedecorfloor32, ingamedecorfloor33, ingamedecorfloor34, ingamedecorfloor35, ingamedecorfloor36, ingamedecorfloor37, ingamedecorfloor38, ingamedecorfloor39, ingamedecorfloor40, ingamedecorfloor41, ingamedecorfloor42, ingamedecorfloor43], [ingamewall, ingamewall, ingamewall, ingamewall, ingamewall, ingamewall, ingamewall, ingamewall, ingamewall, ingamewall, ingamewall, ingamewall, ingamewall], [ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall, ingamedecorwall]];
decorprice = [undefined, [5, 7, 8, 8, 9, 10, 12, 12, 15, 16, 18, 20, 25, 25, 25, 40], [50, 50, 75, 50, 80, 120, 150, 200, 100, 300, 175, 250, 250, 300, 250, 300, 500, 500, 500, 250, 600, 650, 750, 350, 800, 800, 1000, 1000, 850, 1500, 400, 875, 900, 425, 1000, 1250, 1500, 1500, 3000, 1500, 1750, 2000, 3000], [15, 20, 35, 35, 60, 70, 70, 80, 80, 100, 120, 150, 200], [500, 100, 100, 750, 200, 250, 1000, 300, 1250, 450, 1750, 750, 2000, 1000, 3000, 1500, 1250, 1750, 2000]];
decorsizex = [undefined, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0]];
decorsizey = [undefined, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
equipname = [["shopping bag", "paper", "bucket", "book", "panci", "bike", "poopyhat", "gundam", "helm", "watermelon", "flyhelm", "pedo", "seiya"], ["paper", "purple", "jacket", "fishing", "life", "bruce", "bane", "swat", "goku", "seiya", "barrier"], ["paper", "gardener", "fancy", "boxing", "army", "bruce", "bane", "swat", "goku", "seiya", "elgi"]];
equipdesc = [["From playing anything on your left is your helmet", "Kids ultimate defense helmet", "Urgent helmet for whoever do cleaning job", "Nerd employee urgent helmet", "perfect household helmet", "Small coverable head area but feel fast and light", "Saving human from zombie because its smell", "Savety riding helmet with good cover area", "Happy and refreshing summer helmet", "Droped by somebody up there", "Some amusement park belonging", "Helmet made employee never give up", "SERACHWAN"], ["Warming your body but noisy and fragile", "Sexy purple gloves", "Rescue team used jackets", "Father in law favorit vest", "Life vest drop from crossing plane", "Good defense cosplay vest", "Ex-SWAT vest still in good quality and smells", "Feeling much stronger just wearing them", "Special yoga blessing for Dhalsim only", "SERACHWAN"], ["Recycling newspaper to it best", "Grandma gardening gloves and boots", "Girly looks defense gloves", "Good defense not good for restock", "Infantry gloves good grip for restock", "Golves and boots for cosplay and collectible", "Ex-SWAT gloves and boots in good shape", "Holding market goods with overwhelming power", "Specially researched for Elgi", "SERACHWAN"]];
equipunlock = [[1, 1, 1, 10, 10, 12, 14, 15, 16, 19, 19, 20, 21], [4, 7, 8, 11, 13, 15, 17, 19, 20, 21, "dalsim"], [4, 6, 8, 10, 12, 14, 16, 18, 20, 21, "elgi"]];
equipprice = [[15, 30, 50, 75, 75, 120, 180, 225, 250, 375, 425, 550, 650], [30, 60, 80, 145, 170, 225, 225, 320, 600, 750, 1000], [25, 30, 45, 55, 75, 120, 175, 200, 500, 550, 1000]];
equipstatusatk = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10], [0, 0, 0, 0, 0, 10, 3, 8, 25, 10, 0], [1, 0, 3, 3, 10, 18, 8, 8, 20, 15, 25]];
equipstatushp = [[3, 7, 6, 15, 10, 22, 10, 15, 20, 45, 35, 55, 45], [10, 4, 17, 7, 30, 20, 40, 25, 40, 60, 40], [8, 6, 12, 7, 18, 12, 32, 25, 25, 25, 20]];
equipstatusdef = [[7, 3, 10, 6, 10, 5, 10, 10, 12, 15, 18, 20, 20], [4, 10, 7, 17, 10, 20, 20, 30, 20, 25, 25], [2, 6, 5, 9, 10, 12, 10, 15, 18, 25, 0]];
equipstatusspd = [[0, 0, 0, 3, 3, 10, 17, 5, 8, 10, 20, 10, 20], [-1, 0, 4, 4, 6, 20, 6, 6, 12, 8, 12], [-2, -2, 1, 3, 5, 15, 7, 10, 12, 10, 15]];
indexbuild = 0;
indexiteminbuild = 1;
shopitemimage = [];
indexdecor = 0;
shopitemreducertime = 25;
shopitemreducertimetemp = shopitemreducertime;
zombielinkage = [ingamezombie1, ingamezombie2, ingamezombie3, ingamezombie4, ingamezombie5, ingamezombie6, ingamezombie7, ingamezombie8, ingamezombie9, ingamezombie10, ingamezombie11, ingamezombie12, ingamezombie13, ingamezombie14, ingamezombie15, ingamezombie16, ingamezombie17, ingamezombie18, ingamezombie19, ingamezombie20, ingamezombie21, ingamezombie22, ingamezombie23, ingamezombie24, ingamezombie25, ingamezombie26, ingamezombie27, ingamezombie28];
zombiename = ["", "", "", "FRANKEN STAIN", "", "", "", "ZOMBRAHAM LINCOLN", "", "", "MICKY JORDAN", "", "", "", "", "", "", "", "", "", "", "STEVE WORKS", "", "JACK SWALLOW", "MASTER YODO", "CAPTAIN ZOMBERICA", "STEPHEN EAGLEKING", ""];
zombieunlocked = [0, 3, 5, 6, 7, 8, 8, 8, 9, 10, 10, 11, 12, 12, 13, 0, 14, 14, 15, 15, 16, 17, 17, 18, 22, 23, 25, 5];
zombiereq = [0, [1, 2], 0, 0, 0, [1, 8], 0, 0, [4, 2], 0, [4, 2], [4, 3], [1, 10], 0, 0, 0, 0, [4, 5], 0, 0, [4, 8], [4, 7], [2, 4], 0, 0, 0, 0, 0];
zombiespeed = [0.7, 0.7, 0.8, 0.8, 1, 1.2, 1.2, 1, 1.4, 1, 1.5, 0.9, 0.8, 1.4, 0.9, 1.1, 0.9, 1, 1.1, 1, 1.2, 1.1, 0.6, 1.4, 0.8, 1.5, 1, 0.9];
zombiehealth = [20, 100, 250, 400, 90, 90, 100, 250, 700, 200, 750, 300, 550, 750, 1000, 600, 650, 300, 850, 1000, 950, 950, 1200, 1300, 650, 1500, 850, 600];
zombieattack = [120, 10, 18, 20, 16, 10, 14, 25, 35, 25, 40, 18, 25, 45, 45, 0, 65, 30, 30, 48, 50, 30, 48, 55, 70, 52, 68, 0];
cooldownbuy = 50;
servingspeed = 25;
randzombieposition = [[19, 50], [50, 19], [14, 50], [50, 14]];
randzombitarget = [[19, 19], [30, 19], [14, 19], [21, 14]];
zombiespawn = 100;
stockingtime = 50;
zombiespawnertime = 0;
sellinganimationtimetemp = 50;
sliderindex = 1;
jumlahitemslider = 0;
imagearea = [];
celltypetemp = [];
zoomvalue = 0;
zoombool = false;
rumuszoom = (15 * 91);
zoomingvalue = 680;
maxzoomvalue = (rumuszoom / zoomingvalue);
clickstocktipe = -1;
clickstocknomor = -1;
levelupboothcollection = [];
indexboothcollection = 0;
toolcommand = "";
toolcommandadaemployee = false;
editdecortemp = [];
minspawn = 0;
maxspawn = 0;
randname = ["Alex", "Austin", "Armani", "Bailey", "Billie", "Brennan", "Brooke", "Cameron", "Campbell", "Casey", "Cassidy", "Charlie", "Chris", "Cody", "Cruz", "Devon", "Fran", "Gene", "Harlow", "Harper", "Hayden", "Izzy", "Jay", "Jean", "Jerry", "Jess", "Jordan", "Kelly", "Kennedy", "Kim", "Lee", "Leslie", "Lexus", "Logan", "McKenzie", "Maddison", "Marley", "Milan", "Morgan", "Ollie", "Payton", "Piper", "Reagan", "Reese", "Renee", "Robin", "Riley", "Sammy", "Sandy", "Shawn", "Shiloh", "Sidney", "Storm", "Taylor"];
zombieexpinstant = [];
statmax = 99;
starstandart = 0;
stockingimage = [];
onhittime = 25;
ke1 = 0;
martclose = false;
levelminforattack = 2;
levelminformaling = 2;
sidequesttimer = (1 * (60 * 25));
sidequesttimertemp = sidequesttimer;
sidequesttitle = "";
sidequestbool = false;
sidequestcariini = [];
sidequestzombie = "";
equipemployeestatus = [];
onusepotion = false;
tuberegistered = false;
oncloning = false;
assignagainemployee = -1;
timeperdaymin = (5 * 60);
timeperhour = (timeperdaymin / 24);
timepermin = 0;
timepermintemp = (timeperhour * 25);
wishcost = [0, 50000, 30000, 60000, 50000, 70000, 30000, 50000, 50000, 50000, 50000];
randwish = ["123456789012345678901234567890123456789012345678901234567890123456", "I want 50,000 gold for my zombie-life fund. greet me if we meet", "give 30,000 to my wife, and say i'm happy i'm single again", "my next-life bed is luxury gold coffin worth 60,000", "send 50,000 and petfood to Alfredo my mini pom", "give me 70,000 and send virus to my kids. say we move", "today my turn, next day could be you (30,000 for me please)", "shoping voucher in your store 50,000", "mom, take this 50,000 and inject this virus so you can life foreva", "take this 50,000, headmaster. keep school clean, go green", "farewel, dear. take this 50,000 and take cooking course"];
widthgaia = 0;
heightgaia = 0;
yangdicuri = [];
lagicuri = false;
adamaling = false;
cdformaling = 1;
cdformalingtemp = 1;
buscomein = 0;
buscomeintemp = 1;
busimage = [];
organimage = [];
splatterimage = [];
tipeview = "";
acakmin = [4, 5, 6, 7, 8, 9];
acakmax = [7, 8, 9, 10, 11, 12];
adaquestcomplete = false;
boothinikosong = [];
notifimage = [];
notifvisibler = false;
loadstandart();
thresholdkosong = (120 * 25);
lagiswapnotif = false;
cekwaktuduh = 25;
cekwaktuindex = 0;
indexnotif = 0;
indexshop = 0;
clonetime = (4 * 25);
clonetimetemp = clonetime;
explevelreq = 4;
second = 25;
temprotate = false;
tempstock = 0;
tempwallke = 0;
tempsaveke = 0;
prebuyimage = [];
onstagedown = false;
alreadysavedown = false;
miniquestsoundtime = 0;
miniquestsoundtimetemp = 150;
minmati = 2;
secmati = 59;
patiencesummary = 62.5;
patienceminimal = 25;
}
function frame8(){
}
}
}//package Zommart1_fla
Section 89
//MMzombie1_443 (Zommart1_fla.MMzombie1_443)
package Zommart1_fla {
import flash.display.*;
public dynamic class MMzombie1_443 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public function MMzombie1_443(){
addFrameScript(749, frame750);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
function frame750(){
mc1.gotoAndStop(mc2.currentFrame);
mc2.gotoAndStop(randRange(1, 2));
gotoAndPlay("yolo");
}
}
}//package Zommart1_fla
Section 90
//Symbol211splash_425 (Zommart1_fla.Symbol211splash_425)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol211splash_425 extends MovieClip {
public function Symbol211splash_425(){
addFrameScript(251, frame252);
}
function frame252(){
stop();
}
}
}//package Zommart1_fla
Section 91
//Symbol27_14 (Zommart1_fla.Symbol27_14)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol27_14 extends MovieClip {
public function Symbol27_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 92
//Symbol28_180 (Zommart1_fla.Symbol28_180)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol28_180 extends MovieClip {
public function Symbol28_180(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 93
//Symbol34_342 (Zommart1_fla.Symbol34_342)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol34_342 extends MovieClip {
public function Symbol34_342(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 94
//Symbol67_318 (Zommart1_fla.Symbol67_318)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol67_318 extends MovieClip {
public function Symbol67_318(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 95
//Symbol68_321 (Zommart1_fla.Symbol68_321)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol68_321 extends MovieClip {
public var mc1:MovieClip;
public function Symbol68_321(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 96
//Symbol69_324 (Zommart1_fla.Symbol69_324)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol69_324 extends MovieClip {
public function Symbol69_324(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 97
//Symbol75_688 (Zommart1_fla.Symbol75_688)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol75_688 extends MovieClip {
public function Symbol75_688(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 98
//Symbol84_383 (Zommart1_fla.Symbol84_383)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol84_383 extends MovieClip {
public function Symbol84_383(){
addFrameScript(0, frame1, 1, frame2, 19, frame20);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame20(){
gotoAndPlay(2);
}
}
}//package Zommart1_fla
Section 99
//Symbol90_376 (Zommart1_fla.Symbol90_376)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol90_376 extends MovieClip {
public function Symbol90_376(){
addFrameScript(0, frame1, 1, frame2, 18, frame19);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame19(){
gotoAndPlay(2);
}
}
}//package Zommart1_fla
Section 100
//Symbol98_696 (Zommart1_fla.Symbol98_696)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol98_696 extends MovieClip {
public function Symbol98_696(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 101
//Symbol98copy_697 (Zommart1_fla.Symbol98copy_697)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol98copy_697 extends MovieClip {
public function Symbol98copy_697(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 102
//Symbol9copyahlock_505 (Zommart1_fla.Symbol9copyahlock_505)
package Zommart1_fla {
import flash.display.*;
public dynamic class Symbol9copyahlock_505 extends MovieClip {
public var mcpauselocator:MovieClip;
public function Symbol9copyahlock_505(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 103
//Tween105_444 (Zommart1_fla.Tween105_444)
package Zommart1_fla {
import flash.display.*;
public dynamic class Tween105_444 extends MovieClip {
public function Tween105_444(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 104
//Tween87_353 (Zommart1_fla.Tween87_353)
package Zommart1_fla {
import flash.display.*;
public dynamic class Tween87_353 extends MovieClip {
public function Tween87_353(){
addFrameScript(0, frame1, 1, frame2, 9, frame10);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame10(){
stop();
}
}
}//package Zommart1_fla
Section 105
//tween87questcomplete_330 (Zommart1_fla.tween87questcomplete_330)
package Zommart1_fla {
import flash.display.*;
public dynamic class tween87questcomplete_330 extends MovieClip {
public function tween87questcomplete_330(){
addFrameScript(0, frame1, 1, frame2, 9, frame10);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame10(){
stop();
}
}
}//package Zommart1_fla
Section 106
//UIareyousure_485 (Zommart1_fla.UIareyousure_485)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UIareyousure_485 extends MovieClip {
public var btnok:SimpleButton;
public var btncancel:SimpleButton;
public var txt1:TextField;
public function UIareyousure_485(){
addFrameScript(0, frame1, 1, frame2, 4, frame5);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame5(){
stop();
}
}
}//package Zommart1_fla
Section 107
//UIcredits_465 (Zommart1_fla.UIcredits_465)
package Zommart1_fla {
import flash.display.*;
public dynamic class UIcredits_465 extends MovieClip {
public function UIcredits_465(){
addFrameScript(636, frame637);
}
function frame637(){
stop();
}
}
}//package Zommart1_fla
Section 108
//UIhowto_486 (Zommart1_fla.UIhowto_486)
package Zommart1_fla {
import flash.display.*;
public dynamic class UIhowto_486 extends MovieClip {
public var btnclose:SimpleButton;
public function UIhowto_486(){
addFrameScript(0, frame1, 1, frame2, 5, frame6);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame6(){
stop();
}
}
}//package Zommart1_fla
Section 109
//UIingame_510 (Zommart1_fla.UIingame_510)
package Zommart1_fla {
import flash.display.*;
public dynamic class UIingame_510 extends MovieClip {
public var mcoption:MovieClip;
public var mc1:MovieClip;
public var mcnotif:MovieClip;
public function UIingame_510(){
addFrameScript(0, frame1, 1, frame2, 11, frame12, 17, frame18);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame12(){
stop();
}
function frame18(){
}
}
}//package Zommart1_fla
Section 110
//UIingameassisteye_652 (Zommart1_fla.UIingameassisteye_652)
package Zommart1_fla {
import flash.display.*;
public dynamic class UIingameassisteye_652 extends MovieClip {
public function UIingameassisteye_652(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 111
//UIingameatas_489 (Zommart1_fla.UIingameatas_489)
package Zommart1_fla {
import flash.display.*;
public dynamic class UIingameatas_489 extends MovieClip {
public var mc1:MovieClip;
public function UIingameatas_489(){
addFrameScript(0, frame1, 1, frame2, 6, frame7);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame7(){
stop();
}
}
}//package Zommart1_fla
Section 112
//UIingamebuttonanimasirumput_520 (Zommart1_fla.UIingamebuttonanimasirumput_520)
package Zommart1_fla {
import flash.display.*;
public dynamic class UIingamebuttonanimasirumput_520 extends MovieClip {
public function UIingamebuttonanimasirumput_520(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package Zommart1_fla
Section 113
//UIingameresearchclonednaslotbg_346 (Zommart1_fla.UIingameresearchclonednaslotbg_346)
package Zommart1_fla {
import flash.display.*;
public dynamic class UIingameresearchclonednaslotbg_346 extends MovieClip {
public function UIingameresearchclonednaslotbg_346(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 114
//UIingamesamping_546 (Zommart1_fla.UIingamesamping_546)
package Zommart1_fla {
import flash.display.*;
public dynamic class UIingamesamping_546 extends MovieClip {
public var mc1:MovieClip;
public function UIingamesamping_546(){
addFrameScript(0, frame1, 5, frame6);
}
function frame1(){
stop();
}
function frame6(){
stop();
}
}
}//package Zommart1_fla
Section 115
//UIpopupcongratzlevelup_645 (Zommart1_fla.UIpopupcongratzlevelup_645)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UIpopupcongratzlevelup_645 extends MovieClip {
public var btninstance:SimpleButton;
public var txtgold:TextField;
public var btnpre:SimpleButton;
public var txtpremium:TextField;
public var btnnext:SimpleButton;
public var mc1:MovieClip;
public var btnclose:SimpleButton;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mc4:MovieClip;
public var txtlevel:TextField;
public var mc5:MovieClip;
public var mc6:MovieClip;
public var txtrp:TextField;
public var mc8:MovieClip;
public function UIpopupcongratzlevelup_645(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
stop();
this.visible = true;
}
}
}//package Zommart1_fla
Section 116
//UIpopupemployee_640 (Zommart1_fla.UIpopupemployee_640)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UIpopupemployee_640 extends MovieClip {
public var mcbarexp:MovieClip;
public var txthealth:TextField;
public var btnequip1:MovieClip;
public var btnfire:SimpleButton;
public var txtdef:TextField;
public var btnequip3:MovieClip;
public var mc1:MovieClip;
public var btnequip2:MovieClip;
public var btnclose:SimpleButton;
public var mc2:MovieClip;
public var btnmove:SimpleButton;
public var txtlevel:TextField;
public var txtspeed:TextField;
public var txtname:TextField;
public var btnlastwish:SimpleButton;
public var txtsalary:TextField;
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public function UIpopupemployee_640(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
stop();
this.visible = true;
}
}
}//package Zommart1_fla
Section 117
//UIpopupNotifications_615 (Zommart1_fla.UIpopupNotifications_615)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UIpopupNotifications_615 extends MovieClip {
public var arrowup:SimpleButton;
public var btnclose:SimpleButton;
public var btnscroll:SimpleButton;
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var arrowdown:SimpleButton;
public var txt4:TextField;
public function UIpopupNotifications_615(){
addFrameScript(0, frame1, 1, frame2, 18, frame19);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame19(){
stop();
}
}
}//package Zommart1_fla
Section 118
//UIpopupzombie_631 (Zommart1_fla.UIpopupzombie_631)
package Zommart1_fla {
import flash.display.*;
public dynamic class UIpopupzombie_631 extends MovieClip {
public var mc1:MovieClip;
public var btnclose:SimpleButton;
public var mczombiesummary:MovieClip;
public function UIpopupzombie_631(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
stop();
this.visible = true;
}
}
}//package Zommart1_fla
Section 119
//UIpopupzombieinterest_633 (Zommart1_fla.UIpopupzombieinterest_633)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UIpopupzombieinterest_633 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mc4:MovieClip;
public var mc5:MovieClip;
public var txt1:TextField;
public function UIpopupzombieinterest_633(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Zommart1_fla
Section 120
//UIpreloader_1 (Zommart1_fla.UIpreloader_1)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UIpreloader_1 extends MovieClip {
public var mcbar:MovieClip;
public var mctext:MovieClip;
public var txtloading:TextField;
public function UIpreloader_1(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package Zommart1_fla
Section 121
//UItabemployee_643 (Zommart1_fla.UItabemployee_643)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UItabemployee_643 extends MovieClip {
public var mc1:MovieClip;
public var txt1:TextField;
public function UItabemployee_643(){
addFrameScript(0, frame1, 1, frame2, 14, frame15);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame15(){
stop();
}
}
}//package Zommart1_fla
Section 122
//UItabFollowFB_693 (Zommart1_fla.UItabFollowFB_693)
package Zommart1_fla {
import flash.display.*;
public dynamic class UItabFollowFB_693 extends MovieClip {
public var mc1:MovieClip;
public var btnclose:SimpleButton;
public var mc2:MovieClip;
public var btn1:SimpleButton;
public var btn2:SimpleButton;
public function UItabFollowFB_693(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
stop();
this.visible = true;
}
}
}//package Zommart1_fla
Section 123
//UItabSettings_684 (Zommart1_fla.UItabSettings_684)
package Zommart1_fla {
import flash.display.*;
public dynamic class UItabSettings_684 extends MovieClip {
public var mc1:MovieClip;
public var btnclose:SimpleButton;
public function UItabSettings_684(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
stop();
this.visible = true;
}
}
}//package Zommart1_fla
Section 124
//UItabstockorderpopup_627 (Zommart1_fla.UItabstockorderpopup_627)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UItabstockorderpopup_627 extends MovieClip {
public var txtmoney3:TextField;
public var btnorderdisabled2:MovieClip;
public var txtstock3:TextField;
public var txtmoney2:TextField;
public var btnorderdisabled1:MovieClip;
public var btnorder3:SimpleButton;
public var txtstock2:TextField;
public var txtmoney1:TextField;
public var btnorder2:SimpleButton;
public var txtstock1:TextField;
public var txttime3:TextField;
public var txttime2:TextField;
public var btnclose:SimpleButton;
public var txttime1:TextField;
public var btnorderdisabled3:MovieClip;
public var btnorder1:SimpleButton;
public function UItabstockorderpopup_627(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
stop();
this.visible = true;
}
}
}//package Zommart1_fla
Section 125
//UIzombirequest_479 (Zommart1_fla.UIzombirequest_479)
package Zommart1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class UIzombirequest_479 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public var btnok:SimpleButton;
public var mc3:MovieClip;
public var mc4:MovieClip;
public var btncancel:SimpleButton;
public var mc5:MovieClip;
public var txt1:TextField;
public var mczombiesummary:MovieClip;
public function UIzombirequest_479(){
addFrameScript(0, frame1, 1, frame2, 4, frame5);
}
function frame1(){
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame5(){
stop();
}
}
}//package Zommart1_fla
Section 126
//achievimage (achievimage)
package {
import flash.display.*;
import flash.text.*;
public dynamic class achievimage extends MovieClip {
public var mcbar:MovieClip;
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mc4:MovieClip;
public var txtname:TextField;
public var mc5:MovieClip;
public var txtprog:TextField;
public var txtdesc:TextField;
public var mcthumb:MovieClip;
}
}//package
Section 127
//angryzombiesound (angryzombiesound)
package {
import flash.media.*;
public dynamic class angryzombiesound extends Sound {
}
}//package
Section 128
//applausesound (applausesound)
package {
import flash.media.*;
public dynamic class applausesound extends Sound {
}
}//package
Section 129
//AStarMap (AStarMap)
package {
public class AStarMap {
public const CELL_FREE:uint = 0;
public const CELL_FILLED:uint = 1;
public const CELL_ORIGIN:uint = 2;
public const CELL_DESTINATION:uint = 3;
public const CELL_PATHING:uint = 4;
public const MAX_ITERATIONS:uint = 2000;
public var gridWidth:uint;
public var gridHeight:uint;
private var originCell:Object;
private var destinationCell:Object;
private var currentCell:Object;
private var openList:Array;
private var closedList:Array;
private var mapArray:Array;
public function AStarMap(_arg1:int, _arg2:int):void{
gridWidth = _arg1;
gridHeight = _arg2;
mapArray = new Array();
var _local3:int;
var _local4:int;
_local3 = 0;
while (_local3 <= gridWidth) {
mapArray[_local3] = new Array();
_local4 = 0;
while (_local4 <= gridHeight) {
mapArray[_local3][_local4] = new Object();
mapArray[_local3][_local4].cellType = CELL_FREE;
mapArray[_local3][_local4].parentCell = null;
mapArray[_local3][_local4].g = 0;
mapArray[_local3][_local4].f = 0;
mapArray[_local3][_local4].x = _local3;
mapArray[_local3][_local4].y = _local4;
_local4++;
};
_local3++;
};
openList = new Array();
closedList = new Array();
}
public function solve(_arg1:Object):Array{
reset();
var _local2:Boolean;
var _local3:int;
_local2 = stepPathfinder(_arg1);
while (!(_local2)) {
_local2 = stepPathfinder(_arg1);
var _temp1 = _local3;
_local3 = (_local3 + 1);
if (_temp1 > MAX_ITERATIONS){
return (null);
};
};
var _local4:Array = new Array();
var _local5:int;
var _local6:Object = closedList[(closedList.length - 1)];
while (_local6 != originCell) {
var _temp2 = _local5;
_local5 = (_local5 + 1);
if (_temp2 > 800){
return (null);
};
_local4.push(_local6);
_local6 = _local6.parentCell;
};
return (_local4);
}
private function stepPathfinder(_arg1:Object):Boolean{
var _local3:Object;
var _local5:int;
var _local6:int;
var _local9:int;
var _local10:*;
var _local11:*;
var _local12:*;
if (currentCell == destinationCell){
closedList.push(destinationCell);
return (true);
};
openList.push(currentCell);
var _local2:Array = new Array();
var _local4 = -1;
while (_local4 <= 1) {
_local9 = -1;
while (_local9 <= 1) {
if (((((((((!((((_local4 == 0)) && ((_local9 == 0))))) && (!((((_local4 == -1)) && ((_local9 == -1))))))) && (!((((_local4 == -1)) && ((_local9 == 1))))))) && (!((((_local4 == 1)) && ((_local9 == -1))))))) && (!((((_local4 == 1)) && ((_local9 == 1))))))){
if (((((((((currentCell.x + _local4) >= 0)) && (((currentCell.y + _local9) >= 0)))) && (((currentCell.x + _local4) <= gridWidth)))) && (((currentCell.y + _local9) <= gridHeight)))){
_local10 = (currentCell.x + _local4);
_local11 = (currentCell.y + _local9);
_local12 = false;
if (_arg1.insidemarket == true){
if ((((((((_local10 >= _arg1.tilefirst[0])) && ((_local10 <= (_arg1.tilefirst[0] + _arg1.sizemart))))) && ((_local11 >= _arg1.tilefirst[1])))) && ((_local11 <= (_arg1.tilefirst[1] + _arg1.sizemart))))){
_local12 = true;
};
} else {
_local12 = true;
};
if (_local12 == true){
if (mapArray[(currentCell.x + _local4)][(currentCell.y + _local9)]){
_local3 = mapArray[(currentCell.x + _local4)][(currentCell.y + _local9)];
if (((!((_local3.cellType == CELL_FILLED))) && ((closedList.indexOf(_local3) == -1)))){
_local2.push(_local3);
};
};
};
};
};
_local9++;
};
_local4++;
};
var _local7:int;
while (_local7 < _local2.length) {
_local5 = (currentCell.g + 1);
_local6 = (Math.abs((_local2[_local7].x - destinationCell.x)) + Math.abs((_local2[_local7].y - destinationCell.y)));
if (openList.indexOf(_local2[_local7]) == -1){
_local2[_local7].f = (_local5 + _local6);
_local2[_local7].parentCell = currentCell;
_local2[_local7].g = _local5;
openList.push(_local2[_local7]);
} else {
if (_local2[_local7].g < currentCell.parentCell.g){
currentCell.parentCell = _local2[_local7];
currentCell.g = (_local2[_local7].g + 1);
currentCell.f = (_local2[_local7].g + _local6);
};
};
_local7++;
};
var _local8:* = openList.indexOf(currentCell);
closedList.push(currentCell);
openList.splice(_local8, 1);
openList.sortOn("f", (Array.NUMERIC | Array.DESCENDING));
if (openList.length == 0){
return (true);
};
currentCell = openList.pop();
return (false);
}
public function getCell(_arg1:int, _arg2:int):Object{
return (mapArray[_arg1][_arg2]);
}
public function setCell(_arg1:int, _arg2:int, _arg3:int):void{
mapArray[_arg1][_arg2].cellType = _arg3;
}
public function toggleCell(_arg1:int, _arg2:int):void{
if (mapArray[_arg1][_arg2].cellType == CELL_FILLED){
mapArray[_arg1][_arg2].cellType = CELL_FREE;
} else {
if (mapArray[_arg1][_arg2].cellType == CELL_FREE){
mapArray[_arg1][_arg2].cellType = CELL_FILLED;
};
};
}
public function setEndPoints(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{
originCell = mapArray[_arg1][_arg2];
destinationCell = mapArray[_arg3][_arg4];
destinationCell.cellType = CELL_DESTINATION;
currentCell = originCell;
closedList.push(originCell);
}
public function reset():void{
var _local2:*;
var _local1:* = 0;
while (_local1 < gridWidth) {
_local2 = 0;
while (_local2 < gridHeight) {
mapArray[_local1][_local2].parentCell = null;
mapArray[_local1][_local2].g = 0;
mapArray[_local1][_local2].f = 0;
_local2++;
};
_local1++;
};
openList = new Array();
closedList = new Array();
currentCell = originCell;
closedList.push(originCell);
}
public function clearMap():void{
var _local2:*;
var _local1:* = 0;
while (_local1 < gridWidth) {
_local2 = 0;
while (_local2 < gridHeight) {
if (mapArray[_local1][_local2].cellType == CELL_FILLED){
mapArray[_local1][_local2].cellType = CELL_FREE;
};
mapArray[_local1][_local2].parentCell = null;
mapArray[_local1][_local2].g = 0;
mapArray[_local1][_local2].f = 0;
mapArray[_local1][_local2].x = _local1;
mapArray[_local1][_local2].y = _local2;
_local2++;
};
_local1++;
};
}
}
}//package
Section 130
//blingsound (blingsound)
package {
import flash.media.*;
public dynamic class blingsound extends Sound {
}
}//package
Section 131
//build1tab (build1tab)
package {
import flash.display.*;
import flash.text.*;
public dynamic class build1tab extends MovieClip {
public var mc1:MovieClip;
public var mchighlighter:MovieClip;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mc4:MovieClip;
public var mc5:MovieClip;
public var txtname:TextField;
public var txtstock:TextField;
public var mc6:MovieClip;
public var mcnew:MovieClip;
public var txtmoney:TextField;
}
}//package
Section 132
//build1tabexpand (build1tabexpand)
package {
import flash.display.*;
import flash.text.*;
public dynamic class build1tabexpand extends MovieClip {
public var mchighlighter:MovieClip;
public var txtname:TextField;
public var mcnew:MovieClip;
public var mc8:MovieClip;
public var txtmoney:TextField;
}
}//package
Section 133
//build2tab (build2tab)
package {
import flash.display.*;
import flash.text.*;
public dynamic class build2tab extends MovieClip {
public var mc1:ingametile;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mc4:ingamedecorwall;
public var txtname:TextField;
public var txtstock:TextField;
public var mcnew:MovieClip;
public var txtmoney:TextField;
public function build2tab(){
addFrameScript(0, frame1);
}
function frame1(){
mc1.txt1.visible = false;
}
}
}//package
Section 134
//build34tab (build34tab)
package {
import flash.display.*;
import flash.text.*;
public dynamic class build34tab extends MovieClip {
public var txtlastwish:TextField;
public var txtpremium:TextField;
public var mcdone:MovieClip;
public var txtlvl:TextField;
public var btnfulfill:SimpleButton;
public var txtname:TextField;
public var txttipe:TextField;
}
}//package
Section 135
//build3tab (build3tab)
package {
import flash.display.*;
import flash.text.*;
public dynamic class build3tab extends MovieClip {
public var mcjobtype:MovieClip;
public var txtlastwish:TextField;
public var txthealth:TextField;
public var mc1:MovieClip;
public var txtlvl:TextField;
public var btnhire:SimpleButton;
public var mchighlighter:MovieClip;
public var mc2:MovieClip;
public var txtdefense:TextField;
public var txtname:TextField;
public var txtspeed:TextField;
public var txtsalary:TextField;
public var txttype:TextField;
public var txtattack:TextField;
}
}//package
Section 136
//build6tab (build6tab)
package {
import flash.display.*;
import flash.text.*;
public dynamic class build6tab extends MovieClip {
public var mcstocktime:MovieClip;
public var mc1:MovieClip;
public var mc2:MovieClip;
public var btnstock:SimpleButton;
public var mc3:MovieClip;
public var mcoutofstock:MovieClip;
public var mc4:MovieClip;
public var mc5:MovieClip;
public var txtname:TextField;
public var mcblink:MovieClip;
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var txt4:TextField;
}
}//package
Section 137
//buildsound (buildsound)
package {
import flash.media.*;
public dynamic class buildsound extends Sound {
}
}//package
Section 138
//buildtab4 (buildtab4)
package {
import flash.display.*;
import flash.text.*;
public dynamic class buildtab4 extends MovieClip {
public var txthealth:TextField;
public var txtdef:TextField;
public var btnsell:SimpleButton;
public var btnbuy:SimpleButton;
public var txtprice:TextField;
public var mcequip2:MovieClip;
public var txtspeed:TextField;
public var txtname:TextField;
public var mcequip3:MovieClip;
public var txtinv:TextField;
public var txtattack:TextField;
public var mcnew:MovieClip;
public var mcequip1:MovieClip;
public var btnequip:SimpleButton;
public var mcsymbol:MovieClip;
public var txtdesc:TextField;
}
}//package
Section 139
//buildtab5 (buildtab5)
package {
import flash.display.*;
import flash.text.*;
public dynamic class buildtab5 extends MovieClip {
public var mcdone:MovieClip;
public var mc1:MovieClip;
public var mctime:MovieClip;
public var btnbuck:SimpleButton;
public var btnstart:SimpleButton;
public var mcnew:MovieClip;
public var txtrp:TextField;
public var txtjudul:TextField;
public var txtdesc:TextField;
}
}//package
Section 140
//buildtab52 (buildtab52)
package {
import flash.display.*;
import flash.text.*;
public dynamic class buildtab52 extends MovieClip {
public var mctube1:MovieClip;
public var btnlever2:SimpleButton;
public var mcbar:MovieClip;
public var mctube2:MovieClip;
public var txtspd:TextField;
public var mctube3:MovieClip;
public var mctube4:MovieClip;
public var txtcost:TextField;
public var txthealth:TextField;
public var mctube5:MovieClip;
public var mchit:MovieClip;
public var mctube6:MovieClip;
public var mctuberesult:MovieClip;
public var txtdef:TextField;
public var mc1:MovieClip;
public var mctube7:MovieClip;
public var txtlvl:TextField;
public var mc2:MovieClip;
public var mctube8:MovieClip;
public var mctube9:MovieClip;
public var txtname:TextField;
public var txttype:TextField;
public var mcemployeeresult:MovieClip;
public var btnlever1:SimpleButton;
public var txtatk:TextField;
public var mctube10:MovieClip;
}
}//package
Section 141
//buildtab53 (buildtab53)
package {
import flash.display.*;
import flash.text.*;
public dynamic class buildtab53 extends MovieClip {
public var mc1:itemimage;
public var txtname:TextField;
public var txtamount:TextField;
public var txtdesc:TextField;
}
}//package
Section 142
//buildtab71 (buildtab71)
package {
import flash.display.*;
import flash.text.*;
public dynamic class buildtab71 extends MovieClip {
public var mcbg:MovieClip;
public var mcdone:MovieClip;
public var btndone:SimpleButton;
public var mcreward:MovieClip;
public var mcnew:MovieClip;
public var mcprogress:MovieClip;
public var txtdesc:TextField;
public var mcthumb:MovieClip;
}
}//package
Section 143
//buildtab8 (buildtab8)
package {
import flash.display.*;
public dynamic class buildtab8 extends MovieClip {
public var mclocked:MovieClip;
public var mcbg:MovieClip;
public var mczombie:MovieClip;
public var mcdesc:MovieClip;
}
}//package
Section 144
//buskillaimage (buskillaimage)
package {
import flash.display.*;
public dynamic class buskillaimage extends MovieClip {
public var mcfoot:MovieClip;
public function buskillaimage(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 145
//buskillbimage (buskillbimage)
package {
import flash.display.*;
public dynamic class buskillbimage extends MovieClip {
public var mcfoot:MovieClip;
public function buskillbimage(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 146
//buskillcimage (buskillcimage)
package {
import flash.display.*;
public dynamic class buskillcimage extends MovieClip {
public var mcfoot:MovieClip;
public function buskillcimage(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 147
//cannotplacesound (cannotplacesound)
package {
import flash.media.*;
public dynamic class cannotplacesound extends Sound {
}
}//package
Section 148
//carsound (carsound)
package {
import flash.media.*;
public dynamic class carsound extends Sound {
}
}//package
Section 149
//choppasound (choppasound)
package {
import flash.media.*;
public dynamic class choppasound extends Sound {
}
}//package
Section 150
//closesound (closesound)
package {
import flash.media.*;
public dynamic class closesound extends Sound {
}
}//package
Section 151
//droplootimage (droplootimage)
package {
import flash.display.*;
public dynamic class droplootimage extends MovieClip {
}
}//package
Section 152
//editboothsound (editboothsound)
package {
import flash.media.*;
public dynamic class editboothsound extends Sound {
}
}//package
Section 153
//employeelvlupfx (employeelvlupfx)
package {
import flash.display.*;
public dynamic class employeelvlupfx extends MovieClip {
public function employeelvlupfx(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package
Section 154
//female1activitysound (female1activitysound)
package {
import flash.media.*;
public dynamic class female1activitysound extends Sound {
}
}//package
Section 155
//female1huhsound (female1huhsound)
package {
import flash.media.*;
public dynamic class female1huhsound extends Sound {
}
}//package
Section 156
//female2activitysound (female2activitysound)
package {
import flash.media.*;
public dynamic class female2activitysound extends Sound {
}
}//package
Section 157
//goldxpgained (goldxpgained)
package {
import flash.display.*;
public dynamic class goldxpgained extends MovieClip {
public var mc1:MovieClip;
public function goldxpgained(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package
Section 158
//honktolsound (honktolsound)
package {
import flash.media.*;
public dynamic class honktolsound extends Sound {
}
}//package
Section 159
//ingameapparel1 (ingameapparel1)
package {
import flash.display.*;
public dynamic class ingameapparel1 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingameapparel1(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 160
//ingameapparel2 (ingameapparel2)
package {
import flash.display.*;
public dynamic class ingameapparel2 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingameapparel2(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 161
//ingameapparel3 (ingameapparel3)
package {
import flash.display.*;
public dynamic class ingameapparel3 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingameapparel3(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 162
//ingameapparel4 (ingameapparel4)
package {
import flash.display.*;
public dynamic class ingameapparel4 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingameapparel4(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 163
//ingameapparel5 (ingameapparel5)
package {
import flash.display.*;
public dynamic class ingameapparel5 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingameapparel5(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 164
//ingameapparel6 (ingameapparel6)
package {
import flash.display.*;
public dynamic class ingameapparel6 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingameapparel6(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 165
//ingameapparel7 (ingameapparel7)
package {
import flash.display.*;
public dynamic class ingameapparel7 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingameapparel7(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 166
//ingamebenchpark1 (ingamebenchpark1)
package {
import flash.display.*;
public dynamic class ingamebenchpark1 extends MovieClip {
}
}//package
Section 167
//ingamebenchpark2 (ingamebenchpark2)
package {
import flash.display.*;
public dynamic class ingamebenchpark2 extends MovieClip {
}
}//package
Section 168
//ingamebenchpark3 (ingamebenchpark3)
package {
import flash.display.*;
public dynamic class ingamebenchpark3 extends MovieClip {
}
}//package
Section 169
//ingameboothstock (ingameboothstock)
package {
import flash.display.*;
import flash.text.*;
public dynamic class ingameboothstock extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mc4:MovieClip;
public var txtname:TextField;
public var txtstock:TextField;
public var mc5:MovieClip;
public var mc6:MovieClip;
public var txtmoney:TextField;
public function ingameboothstock(){
addFrameScript(0, frame1);
}
function frame1(){
txtmoney.visible = false;
}
}
}//package
Section 170
//ingamecashier1 (ingamecashier1)
package {
import flash.display.*;
public dynamic class ingamecashier1 extends MovieClip {
public var mcarrow:MovieClip;
public var mchit:MovieClip;
public var mc1:MovieClip;
public function ingamecashier1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 171
//ingamecashier2 (ingamecashier2)
package {
import flash.display.*;
public dynamic class ingamecashier2 extends MovieClip {
public var mcarrow:MovieClip;
public var mchit:MovieClip;
public var mc1:MovieClip;
public function ingamecashier2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 172
//ingamecashier3 (ingamecashier3)
package {
import flash.display.*;
public dynamic class ingamecashier3 extends MovieClip {
public var mcarrow:MovieClip;
public var mchit:MovieClip;
public var mc1:MovieClip;
public function ingamecashier3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 173
//ingamecashier4 (ingamecashier4)
package {
import flash.display.*;
public dynamic class ingamecashier4 extends MovieClip {
public var mcarrow:MovieClip;
public var mchit:MovieClip;
public var mc1:MovieClip;
public function ingamecashier4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 174
//ingamecashier5 (ingamecashier5)
package {
import flash.display.*;
public dynamic class ingamecashier5 extends MovieClip {
public var mcarrow:MovieClip;
public var mchit:MovieClip;
public var mc1:MovieClip;
public function ingamecashier5(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
mcarrow.visible = false;
}
}
}//package
Section 175
//ingamechopa (ingamechopa)
package {
import flash.display.*;
public dynamic class ingamechopa extends MovieClip {
}
}//package
Section 176
//ingamechoppaprize (ingamechoppaprize)
package {
import flash.display.*;
public dynamic class ingamechoppaprize extends MovieClip {
}
}//package
Section 177
//ingamedecorfloor1 (ingamedecorfloor1)
package {
import flash.display.*;
public dynamic class ingamedecorfloor1 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 178
//ingamedecorfloor10 (ingamedecorfloor10)
package {
import flash.display.*;
public dynamic class ingamedecorfloor10 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 179
//ingamedecorfloor11 (ingamedecorfloor11)
package {
import flash.display.*;
public dynamic class ingamedecorfloor11 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 180
//ingamedecorfloor12 (ingamedecorfloor12)
package {
import flash.display.*;
public dynamic class ingamedecorfloor12 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 181
//ingamedecorfloor13 (ingamedecorfloor13)
package {
import flash.display.*;
public dynamic class ingamedecorfloor13 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 182
//ingamedecorfloor14 (ingamedecorfloor14)
package {
import flash.display.*;
public dynamic class ingamedecorfloor14 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 183
//ingamedecorfloor15 (ingamedecorfloor15)
package {
import flash.display.*;
public dynamic class ingamedecorfloor15 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 184
//ingamedecorfloor16 (ingamedecorfloor16)
package {
import flash.display.*;
public dynamic class ingamedecorfloor16 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 185
//ingamedecorfloor17 (ingamedecorfloor17)
package {
import flash.display.*;
public dynamic class ingamedecorfloor17 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 186
//ingamedecorfloor18 (ingamedecorfloor18)
package {
import flash.display.*;
public dynamic class ingamedecorfloor18 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 187
//ingamedecorfloor19 (ingamedecorfloor19)
package {
import flash.display.*;
public dynamic class ingamedecorfloor19 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 188
//ingamedecorfloor2 (ingamedecorfloor2)
package {
import flash.display.*;
public dynamic class ingamedecorfloor2 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 189
//ingamedecorfloor20 (ingamedecorfloor20)
package {
import flash.display.*;
public dynamic class ingamedecorfloor20 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 190
//ingamedecorfloor21 (ingamedecorfloor21)
package {
import flash.display.*;
public dynamic class ingamedecorfloor21 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 191
//ingamedecorfloor22 (ingamedecorfloor22)
package {
import flash.display.*;
public dynamic class ingamedecorfloor22 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 192
//ingamedecorfloor23 (ingamedecorfloor23)
package {
import flash.display.*;
public dynamic class ingamedecorfloor23 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 193
//ingamedecorfloor24 (ingamedecorfloor24)
package {
import flash.display.*;
public dynamic class ingamedecorfloor24 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 194
//ingamedecorfloor25 (ingamedecorfloor25)
package {
import flash.display.*;
public dynamic class ingamedecorfloor25 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 195
//ingamedecorfloor26 (ingamedecorfloor26)
package {
import flash.display.*;
public dynamic class ingamedecorfloor26 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 196
//ingamedecorfloor27 (ingamedecorfloor27)
package {
import flash.display.*;
public dynamic class ingamedecorfloor27 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 197
//ingamedecorfloor28 (ingamedecorfloor28)
package {
import flash.display.*;
public dynamic class ingamedecorfloor28 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 198
//ingamedecorfloor29 (ingamedecorfloor29)
package {
import flash.display.*;
public dynamic class ingamedecorfloor29 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 199
//ingamedecorfloor3 (ingamedecorfloor3)
package {
import flash.display.*;
public dynamic class ingamedecorfloor3 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 200
//ingamedecorfloor30 (ingamedecorfloor30)
package {
import flash.display.*;
public dynamic class ingamedecorfloor30 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 201
//ingamedecorfloor31 (ingamedecorfloor31)
package {
import flash.display.*;
public dynamic class ingamedecorfloor31 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 202
//ingamedecorfloor32 (ingamedecorfloor32)
package {
import flash.display.*;
public dynamic class ingamedecorfloor32 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor32(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 203
//ingamedecorfloor33 (ingamedecorfloor33)
package {
import flash.display.*;
public dynamic class ingamedecorfloor33 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor33(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 204
//ingamedecorfloor34 (ingamedecorfloor34)
package {
import flash.display.*;
public dynamic class ingamedecorfloor34 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 205
//ingamedecorfloor35 (ingamedecorfloor35)
package {
import flash.display.*;
public dynamic class ingamedecorfloor35 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 206
//ingamedecorfloor36 (ingamedecorfloor36)
package {
import flash.display.*;
public dynamic class ingamedecorfloor36 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor36(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 207
//ingamedecorfloor37 (ingamedecorfloor37)
package {
import flash.display.*;
public dynamic class ingamedecorfloor37 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor37(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 208
//ingamedecorfloor38 (ingamedecorfloor38)
package {
import flash.display.*;
public dynamic class ingamedecorfloor38 extends MovieClip {
}
}//package
Section 209
//ingamedecorfloor39 (ingamedecorfloor39)
package {
import flash.display.*;
public dynamic class ingamedecorfloor39 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor39(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 210
//ingamedecorfloor4 (ingamedecorfloor4)
package {
import flash.display.*;
public dynamic class ingamedecorfloor4 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 211
//ingamedecorfloor40 (ingamedecorfloor40)
package {
import flash.display.*;
public dynamic class ingamedecorfloor40 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor40(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 212
//ingamedecorfloor41 (ingamedecorfloor41)
package {
import flash.display.*;
public dynamic class ingamedecorfloor41 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor41(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 213
//ingamedecorfloor42 (ingamedecorfloor42)
package {
import flash.display.*;
public dynamic class ingamedecorfloor42 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor42(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 214
//ingamedecorfloor43 (ingamedecorfloor43)
package {
import flash.display.*;
public dynamic class ingamedecorfloor43 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor43(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 215
//ingamedecorfloor5 (ingamedecorfloor5)
package {
import flash.display.*;
public dynamic class ingamedecorfloor5 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 216
//ingamedecorfloor6 (ingamedecorfloor6)
package {
import flash.display.*;
public dynamic class ingamedecorfloor6 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 217
//ingamedecorfloor7 (ingamedecorfloor7)
package {
import flash.display.*;
public dynamic class ingamedecorfloor7 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 218
//ingamedecorfloor8 (ingamedecorfloor8)
package {
import flash.display.*;
public dynamic class ingamedecorfloor8 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 219
//ingamedecorfloor9 (ingamedecorfloor9)
package {
import flash.display.*;
public dynamic class ingamedecorfloor9 extends MovieClip {
public var mcarrow:MovieClip;
public function ingamedecorfloor9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 220
//ingamedecorstock (ingamedecorstock)
package {
import flash.display.*;
import flash.text.*;
public dynamic class ingamedecorstock extends MovieClip {
public var mc1:ingametile;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mc4:ingamedecorwall;
public var txtname:TextField;
public var txtstock:TextField;
public var txtmoney:TextField;
public function ingamedecorstock(){
addFrameScript(0, frame1);
}
function frame1(){
txtmoney.visible = false;
mc1.txt1.visible = false;
}
}
}//package
Section 221
//ingamedecorwall (ingamedecorwall)
package {
import flash.display.*;
public dynamic class ingamedecorwall extends MovieClip {
public var mchit:MovieClip;
}
}//package
Section 222
//ingamedoor11 (ingamedoor11)
package {
import flash.display.*;
public dynamic class ingamedoor11 extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 223
//ingamedoor12 (ingamedoor12)
package {
import flash.display.*;
public dynamic class ingamedoor12 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
}
}//package
Section 224
//ingamedoor13 (ingamedoor13)
package {
import flash.display.*;
public dynamic class ingamedoor13 extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 225
//ingamedropbucks (ingamedropbucks)
package {
import flash.display.*;
public dynamic class ingamedropbucks extends MovieClip {
public function ingamedropbucks(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 226
//ingamedropcoin (ingamedropcoin)
package {
import flash.display.*;
public dynamic class ingamedropcoin extends MovieClip {
public function ingamedropcoin(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 227
//ingamedropexp (ingamedropexp)
package {
import flash.display.*;
public dynamic class ingamedropexp extends MovieClip {
public function ingamedropexp(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 228
//ingamedroprp (ingamedroprp)
package {
import flash.display.*;
public dynamic class ingamedroprp extends MovieClip {
public function ingamedroprp(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 229
//ingameemployee1 (ingameemployee1)
package {
import flash.display.*;
public dynamic class ingameemployee1 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingameemployee1(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("stocking1");
}
function frame68(){
gotoAndPlay("stocking2");
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 230
//ingameemployee2 (ingameemployee2)
package {
import flash.display.*;
public dynamic class ingameemployee2 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingameemployee2(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("stocking1");
}
function frame68(){
gotoAndPlay("stocking2");
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 231
//ingameemployee3 (ingameemployee3)
package {
import flash.display.*;
public dynamic class ingameemployee3 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingameemployee3(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("stocking1");
}
function frame68(){
gotoAndPlay("stocking2");
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 232
//ingameemployee4 (ingameemployee4)
package {
import flash.display.*;
public dynamic class ingameemployee4 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingameemployee4(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("stocking1");
}
function frame68(){
gotoAndPlay("stocking2");
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 233
//ingameemployee5 (ingameemployee5)
package {
import flash.display.*;
public dynamic class ingameemployee5 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingameemployee5(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("stocking1");
}
function frame68(){
gotoAndPlay("stocking2");
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 234
//ingameemployee6 (ingameemployee6)
package {
import flash.display.*;
public dynamic class ingameemployee6 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingameemployee6(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
gotoAndPlay("stocking1");
}
function frame68(){
gotoAndPlay("stocking2");
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 235
//ingameemployeeexist (ingameemployeeexist)
package {
import flash.display.*;
import flash.text.*;
public dynamic class ingameemployeeexist extends MovieClip {
public var btnassign:SimpleButton;
public var mcbarexp:MovieClip;
public var btnequip1:MovieClip;
public var txthealth:TextField;
public var btnfire:SimpleButton;
public var btnequip3:MovieClip;
public var txtdef:TextField;
public var btnequip2:MovieClip;
public var mc1:MovieClip;
public var mc2:MovieClip;
public var btnmove:SimpleButton;
public var txtlevel:TextField;
public var txtspeed:TextField;
public var txtname:TextField;
public var mctipejob:MovieClip;
public var txtsalary:TextField;
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var txtatk:TextField;
}
}//package
Section 236
//ingameemployeeinfected (ingameemployeeinfected)
package {
import flash.display.*;
public dynamic class ingameemployeeinfected extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingameemployeeinfected(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
}
}//package
Section 237
//ingamefoodcourt1 (ingamefoodcourt1)
package {
import flash.display.*;
public dynamic class ingamefoodcourt1 extends MovieClip {
public var mcarrow:MovieClip;
public var mclocator:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefoodcourt1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 238
//ingamefoodcourt2 (ingamefoodcourt2)
package {
import flash.display.*;
public dynamic class ingamefoodcourt2 extends MovieClip {
public var mcarrow:MovieClip;
public var mclocator:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefoodcourt2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
stop();
}
}
}//package
Section 239
//ingamefoodcourt3 (ingamefoodcourt3)
package {
import flash.display.*;
public dynamic class ingamefoodcourt3 extends MovieClip {
public var mcarrow:MovieClip;
public var mclocator:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefoodcourt3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 240
//ingamefoodcourt4 (ingamefoodcourt4)
package {
import flash.display.*;
public dynamic class ingamefoodcourt4 extends MovieClip {
public var mcarrow:MovieClip;
public var mclocator:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefoodcourt4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 241
//ingamefooddrink1 (ingamefooddrink1)
package {
import flash.display.*;
public dynamic class ingamefooddrink1 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink1(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 242
//ingamefooddrink10 (ingamefooddrink10)
package {
import flash.display.*;
public dynamic class ingamefooddrink10 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink10(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 243
//ingamefooddrink11 (ingamefooddrink11)
package {
import flash.display.*;
public dynamic class ingamefooddrink11 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink11(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 244
//ingamefooddrink12 (ingamefooddrink12)
package {
import flash.display.*;
public dynamic class ingamefooddrink12 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink12(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 245
//ingamefooddrink13 (ingamefooddrink13)
package {
import flash.display.*;
public dynamic class ingamefooddrink13 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink13(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 246
//ingamefooddrink14 (ingamefooddrink14)
package {
import flash.display.*;
public dynamic class ingamefooddrink14 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink14(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 247
//ingamefooddrink2 (ingamefooddrink2)
package {
import flash.display.*;
public dynamic class ingamefooddrink2 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink2(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 248
//ingamefooddrink3 (ingamefooddrink3)
package {
import flash.display.*;
public dynamic class ingamefooddrink3 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink3(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 249
//ingamefooddrink4 (ingamefooddrink4)
package {
import flash.display.*;
public dynamic class ingamefooddrink4 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink4(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 250
//ingamefooddrink5 (ingamefooddrink5)
package {
import flash.display.*;
public dynamic class ingamefooddrink5 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink5(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 251
//ingamefooddrink6 (ingamefooddrink6)
package {
import flash.display.*;
public dynamic class ingamefooddrink6 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink6(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 252
//ingamefooddrink7 (ingamefooddrink7)
package {
import flash.display.*;
public dynamic class ingamefooddrink7 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink7(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 253
//ingamefooddrink8 (ingamefooddrink8)
package {
import flash.display.*;
public dynamic class ingamefooddrink8 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink8(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 254
//ingamefooddrink9 (ingamefooddrink9)
package {
import flash.display.*;
public dynamic class ingamefooddrink9 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamefooddrink9(){
addFrameScript(0, frame1);
}
function frame1(){
mcarrow.visible = false;
stop();
}
}
}//package
Section 255
//ingamehauntedtree (ingamehauntedtree)
package {
import flash.display.*;
public dynamic class ingamehauntedtree extends MovieClip {
}
}//package
Section 256
//ingamehouse (ingamehouse)
package {
import flash.display.*;
public dynamic class ingamehouse extends MovieClip {
public var mc1:MovieClip;
public function ingamehouse(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 257
//ingameliberty (ingameliberty)
package {
import flash.display.*;
public dynamic class ingameliberty extends MovieClip {
}
}//package
Section 258
//ingameloots (ingameloots)
package {
import flash.display.*;
public dynamic class ingameloots extends MovieClip {
}
}//package
Section 259
//ingamemisc1 (ingamemisc1)
package {
import flash.display.*;
public dynamic class ingamemisc1 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamemisc1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 260
//ingamemisc2 (ingamemisc2)
package {
import flash.display.*;
public dynamic class ingamemisc2 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamemisc2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 261
//ingamemisc3 (ingamemisc3)
package {
import flash.display.*;
public dynamic class ingamemisc3 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamemisc3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 262
//ingamemisc4 (ingamemisc4)
package {
import flash.display.*;
public dynamic class ingamemisc4 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamemisc4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 263
//ingamemisc5 (ingamemisc5)
package {
import flash.display.*;
public dynamic class ingamemisc5 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamemisc5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 264
//ingamemisc6 (ingamemisc6)
package {
import flash.display.*;
public dynamic class ingamemisc6 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamemisc6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 265
//ingamemisc7 (ingamemisc7)
package {
import flash.display.*;
public dynamic class ingamemisc7 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamemisc7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 266
//ingamemisc8 (ingamemisc8)
package {
import flash.display.*;
public dynamic class ingamemisc8 extends MovieClip {
public var mcarrow:MovieClip;
public var mcsoldout:MovieClip;
public function ingamemisc8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
mcarrow.visible = false;
}
}
}//package
Section 267
//ingamepedestrianlamp (ingamepedestrianlamp)
package {
import flash.display.*;
public dynamic class ingamepedestrianlamp extends MovieClip {
public var mcsign:SimpleButton;
public function ingamepedestrianlamp(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 268
//ingameplanecrash (ingameplanecrash)
package {
import flash.display.*;
public dynamic class ingameplanecrash extends MovieClip {
}
}//package
Section 269
//ingamepolicecar (ingamepolicecar)
package {
import flash.display.*;
public dynamic class ingamepolicecar extends MovieClip {
}
}//package
Section 270
//ingamepolicecarrotate (ingamepolicecarrotate)
package {
import flash.display.*;
public dynamic class ingamepolicecarrotate extends MovieClip {
}
}//package
Section 271
//ingamepump (ingamepump)
package {
import flash.display.*;
public dynamic class ingamepump extends MovieClip {
}
}//package
Section 272
//ingamesecurity1 (ingamesecurity1)
package {
import flash.display.*;
public dynamic class ingamesecurity1 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingamesecurity1(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
stop();
}
function frame68(){
stop();
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 273
//ingamesecurity2 (ingamesecurity2)
package {
import flash.display.*;
public dynamic class ingamesecurity2 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingamesecurity2(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
stop();
}
function frame68(){
stop();
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 274
//ingamesecurity3 (ingamesecurity3)
package {
import flash.display.*;
public dynamic class ingamesecurity3 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingamesecurity3(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
stop();
}
function frame68(){
stop();
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 275
//ingamesecurity4 (ingamesecurity4)
package {
import flash.display.*;
public dynamic class ingamesecurity4 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingamesecurity4(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
stop();
}
function frame68(){
stop();
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 276
//ingamesecurity5 (ingamesecurity5)
package {
import flash.display.*;
public dynamic class ingamesecurity5 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingamesecurity5(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 59, frame60, 67, frame68, 74, frame75, 90, frame91, 96, frame97, 136, frame137);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame60(){
stop();
}
function frame68(){
stop();
}
function frame75(){
gotoAndPlay("beaten");
}
function frame91(){
gotoAndPlay("stunned");
}
function frame97(){
gotoAndPlay("kesetrum");
}
function frame137(){
stop();
}
}
}//package
Section 277
//ingamesecurity6 (ingamesecurity6)
package {
import flash.display.*;
public dynamic class ingamesecurity6 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingamesecurity6(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 35, frame36, 47, frame48, 71, frame72, 95, frame96, 102, frame103, 118, frame119, 124, frame125, 164, frame165);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame36(){
gotoAndPlay("walk1");
}
function frame48(){
gotoAndPlay("walk2");
}
function frame72(){
stop();
}
function frame96(){
stop();
}
function frame103(){
gotoAndPlay("beaten");
}
function frame119(){
gotoAndPlay("stunned");
}
function frame125(){
gotoAndPlay("kesetrum");
}
function frame165(){
stop();
}
}
}//package
Section 278
//ingamesecurity7 (ingamesecurity7)
package {
import flash.display.*;
public dynamic class ingamesecurity7 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingamesecurity7(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 73, frame74, 93, frame94, 100, frame101, 106, frame107, 146, frame147);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame74(){
stop();
}
function frame94(){
stop();
}
function frame101(){
gotoAndPlay("beaten");
}
function frame107(){
gotoAndPlay("kesetrum");
}
function frame147(){
stop();
}
}
}//package
Section 279
//ingamesecurity8 (ingamesecurity8)
package {
import flash.display.*;
public dynamic class ingamesecurity8 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingamesecurity8(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 84, frame85, 117, frame118, 124, frame125, 146, frame147, 186, frame187);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame85(){
stop();
}
function frame118(){
stop();
}
function frame125(){
gotoAndPlay("beaten");
}
function frame147(){
gotoAndPlay("kesetrum");
}
function frame187(){
stop();
}
}
}//package
Section 280
//ingamesecurity9 (ingamesecurity9)
package {
import flash.display.*;
public dynamic class ingamesecurity9 extends MovieClip {
public var mchead:MovieClip;
public var mcarrow:MovieClip;
public var mcglove:MovieClip;
public var mcfoot:MovieClip;
public var mcrecovery:MovieClip;
public var mcemoti:MovieClip;
public var mcarmor:MovieClip;
public var mcareastocking:ingamestockingarea;
public function ingamesecurity9(){
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 51, frame52, 91, frame92, 130, frame131, 137, frame138, 159, frame160, 199, frame200);
}
function frame1(){
mcarrow.visible = false;
mcareastocking.visible = false;
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame92(){
stop();
}
function frame131(){
stop();
}
function frame138(){
gotoAndPlay("beaten");
}
function frame160(){
gotoAndPlay("kesetrum");
}
function frame200(){
stop();
}
}
}//package
Section 281
//ingamesecurityinfected (ingamesecurityinfected)
package {
import flash.display.*;
public dynamic class ingamesecurityinfected extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamesecurityinfected(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
}
}//package
Section 282
//ingamesound1 (ingamesound1)
package {
import flash.media.*;
public dynamic class ingamesound1 extends Sound {
}
}//package
Section 283
//ingamesound2 (ingamesound2)
package {
import flash.media.*;
public dynamic class ingamesound2 extends Sound {
}
}//package
Section 284
//ingamesound3 (ingamesound3)
package {
import flash.media.*;
public dynamic class ingamesound3 extends Sound {
}
}//package
Section 285
//ingamestockingarea (ingamestockingarea)
package {
import flash.display.*;
public dynamic class ingamestockingarea extends MovieClip {
}
}//package
Section 286
//ingamestockingbox (ingamestockingbox)
package {
import flash.display.*;
public dynamic class ingamestockingbox extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 287
//ingametile (ingametile)
package {
import flash.display.*;
import flash.text.*;
public dynamic class ingametile extends MovieClip {
public var mchit:MovieClip;
public var mcblinking:MovieClip;
public var txt1:TextField;
public function ingametile(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 288
//ingametree (ingametree)
package {
import flash.display.*;
public dynamic class ingametree extends MovieClip {
public function ingametree(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 289
//ingamewall (ingamewall)
package {
import flash.display.*;
public dynamic class ingamewall extends MovieClip {
public var mchit:MovieClip;
public var mcdecorwall:ingamedecorwall;
}
}//package
Section 290
//ingamewall2 (ingamewall2)
package {
import flash.display.*;
public dynamic class ingamewall2 extends MovieClip {
public var mchit:MovieClip;
public var mcdecorwall:ingamedecorwall;
}
}//package
Section 291
//ingamezombie1 (ingamezombie1)
package {
import flash.display.*;
public dynamic class ingamezombie1 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie1(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 119, frame120, 127, frame128);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame120(){
gotoAndPlay("angry");
}
function frame128(){
gotoAndPlay("angry");
}
}
}//package
Section 292
//ingamezombie10 (ingamezombie10)
package {
import flash.display.*;
public dynamic class ingamezombie10 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie10(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 126, frame127, 134, frame135);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame127(){
gotoAndPlay("angry");
}
function frame135(){
gotoAndPlay("angry");
}
}
}//package
Section 293
//ingamezombie11 (ingamezombie11)
package {
import flash.display.*;
public dynamic class ingamezombie11 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie11(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 121, frame122, 131, frame132);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame122(){
gotoAndPlay("angry");
}
function frame132(){
gotoAndPlay("angry");
}
}
}//package
Section 294
//ingamezombie12 (ingamezombie12)
package {
import flash.display.*;
public dynamic class ingamezombie12 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie12(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 119, frame120, 127, frame128);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame120(){
gotoAndPlay("angry");
}
function frame128(){
gotoAndPlay("angry");
}
}
}//package
Section 295
//ingamezombie13 (ingamezombie13)
package {
import flash.display.*;
public dynamic class ingamezombie13 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie13(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 120, frame121, 129, frame130);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame121(){
gotoAndPlay("angry");
}
function frame130(){
gotoAndPlay("angry");
}
}
}//package
Section 296
//ingamezombie14 (ingamezombie14)
package {
import flash.display.*;
public dynamic class ingamezombie14 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie14(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 119, frame120, 127, frame128);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame120(){
gotoAndPlay("angry");
}
function frame128(){
gotoAndPlay("angry");
}
}
}//package
Section 297
//ingamezombie15 (ingamezombie15)
package {
import flash.display.*;
public dynamic class ingamezombie15 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie15(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 120, frame121, 129, frame130);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame121(){
gotoAndPlay("angry");
}
function frame130(){
gotoAndPlay("angry");
}
}
}//package
Section 298
//ingamezombie16 (ingamezombie16)
package {
import flash.display.*;
public dynamic class ingamezombie16 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie16(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 77, frame78, 87, frame88, 102, frame103);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame78(){
gotoAndPlay("stealing1");
}
function frame88(){
gotoAndPlay("stealing2");
}
function frame103(){
stop();
}
}
}//package
Section 299
//ingamezombie17 (ingamezombie17)
package {
import flash.display.*;
public dynamic class ingamezombie17 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie17(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 130, frame131, 149, frame150);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame131(){
gotoAndPlay("angry");
}
function frame150(){
gotoAndPlay("angry");
}
}
}//package
Section 300
//ingamezombie18 (ingamezombie18)
package {
import flash.display.*;
public dynamic class ingamezombie18 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie18(){
addFrameScript(11, frame12, 23, frame24, 43, frame44, 65, frame66, 109, frame110, 119, frame120, 129, frame130);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame44(){
gotoAndPlay("walk1");
}
function frame66(){
gotoAndPlay("walk2");
}
function frame110(){
gotoAndPlay("angry");
}
function frame120(){
gotoAndPlay("angry");
}
function frame130(){
gotoAndPlay("angry");
}
}
}//package
Section 301
//ingamezombie19 (ingamezombie19)
package {
import flash.display.*;
public dynamic class ingamezombie19 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie19(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 120, frame121, 129, frame130);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame121(){
gotoAndPlay("angry");
}
function frame130(){
gotoAndPlay("angry");
}
}
}//package
Section 302
//ingamezombie2 (ingamezombie2)
package {
import flash.display.*;
public dynamic class ingamezombie2 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie2(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 120, frame121, 129, frame130);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame121(){
gotoAndPlay("angry");
}
function frame130(){
gotoAndPlay("angry");
}
}
}//package
Section 303
//ingamezombie20 (ingamezombie20)
package {
import flash.display.*;
public dynamic class ingamezombie20 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie20(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 120, frame121, 129, frame130);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame121(){
gotoAndPlay("angry");
}
function frame130(){
gotoAndPlay("angry");
}
}
}//package
Section 304
//ingamezombie21 (ingamezombie21)
package {
import flash.display.*;
public dynamic class ingamezombie21 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie21(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 95, frame96, 105, frame106, 115, frame116);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame96(){
gotoAndPlay("angry");
}
function frame106(){
gotoAndPlay("angry");
}
function frame116(){
gotoAndPlay("angry");
}
}
}//package
Section 305
//ingamezombie22 (ingamezombie22)
package {
import flash.display.*;
public dynamic class ingamezombie22 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie22(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 95, frame96, 105, frame106, 115, frame116);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame96(){
gotoAndPlay("angry");
}
function frame106(){
gotoAndPlay("angry");
}
function frame116(){
gotoAndPlay("angry");
}
}
}//package
Section 306
//ingamezombie23 (ingamezombie23)
package {
import flash.display.*;
public dynamic class ingamezombie23 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie23(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 95, frame96, 105, frame106, 115, frame116);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame96(){
gotoAndPlay("angry");
}
function frame106(){
gotoAndPlay("angry");
}
function frame116(){
gotoAndPlay("angry");
}
}
}//package
Section 307
//ingamezombie24 (ingamezombie24)
package {
import flash.display.*;
public dynamic class ingamezombie24 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie24(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 95, frame96, 104, frame105, 113, frame114);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame96(){
gotoAndPlay("angry");
}
function frame105(){
gotoAndPlay("angry");
}
function frame114(){
gotoAndPlay("angry");
}
}
}//package
Section 308
//ingamezombie25 (ingamezombie25)
package {
import flash.display.*;
public dynamic class ingamezombie25 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie25(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 95, frame96, 104, frame105, 113, frame114);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame96(){
gotoAndPlay("angry");
}
function frame105(){
gotoAndPlay("angry");
}
function frame114(){
gotoAndPlay("angry");
}
}
}//package
Section 309
//ingamezombie26 (ingamezombie26)
package {
import flash.display.*;
public dynamic class ingamezombie26 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie26(){
addFrameScript(11, frame12, 23, frame24, 37, frame38, 51, frame52, 95, frame96, 106, frame107, 118, frame119);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame38(){
gotoAndPlay("walk1");
}
function frame52(){
gotoAndPlay("walk2");
}
function frame96(){
gotoAndPlay("angry");
}
function frame107(){
gotoAndPlay("angry");
}
function frame119(){
gotoAndPlay("angry");
}
}
}//package
Section 310
//ingamezombie27 (ingamezombie27)
package {
import flash.display.*;
public dynamic class ingamezombie27 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie27(){
addFrameScript(11, frame12, 23, frame24, 31, frame32, 39, frame40, 55, frame56, 72, frame73, 89, frame90);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame32(){
gotoAndPlay("walk1");
}
function frame40(){
gotoAndPlay("walk2");
}
function frame56(){
gotoAndPlay("angry");
}
function frame73(){
gotoAndPlay("angry");
}
function frame90(){
gotoAndPlay("angry");
}
}
}//package
Section 311
//ingamezombie28 (ingamezombie28)
package {
import flash.display.*;
public dynamic class ingamezombie28 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie28(){
addFrameScript(183, frame184, 195, frame196, 207, frame208, 222, frame223, 236, frame237, 246, frame247, 0x0100, frame257, 271, frame272);
}
function frame184(){
stop();
}
function frame196(){
gotoAndPlay("idle1");
}
function frame208(){
gotoAndPlay("idle2");
}
function frame223(){
gotoAndPlay("walk1");
}
function frame237(){
gotoAndPlay("walk2");
}
function frame247(){
gotoAndPlay("stealing1");
}
function frame257(){
gotoAndPlay("stealing2");
}
function frame272(){
stop();
}
}
}//package
Section 312
//ingamezombie3 (ingamezombie3)
package {
import flash.display.*;
public dynamic class ingamezombie3 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie3(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 120, frame121, 129, frame130);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame121(){
gotoAndPlay("angry");
}
function frame130(){
gotoAndPlay("angry");
}
}
}//package
Section 313
//ingamezombie4 (ingamezombie4)
package {
import flash.display.*;
public dynamic class ingamezombie4 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie4(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 107, frame108, 116, frame117, 125, frame126);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame108(){
gotoAndPlay("angry");
}
function frame117(){
gotoAndPlay("angry");
}
function frame126(){
gotoAndPlay("angry");
}
}
}//package
Section 314
//ingamezombie5 (ingamezombie5)
package {
import flash.display.*;
public dynamic class ingamezombie5 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie5(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 120, frame121, 129, frame130);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame121(){
gotoAndPlay("angry");
}
function frame130(){
gotoAndPlay("angry");
}
}
}//package
Section 315
//ingamezombie6 (ingamezombie6)
package {
import flash.display.*;
public dynamic class ingamezombie6 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie6(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 119, frame120, 127, frame128);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame120(){
gotoAndPlay("angry");
}
function frame128(){
gotoAndPlay("angry");
}
}
}//package
Section 316
//ingamezombie7 (ingamezombie7)
package {
import flash.display.*;
public dynamic class ingamezombie7 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie7(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 119, frame120, 127, frame128);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame120(){
gotoAndPlay("angry");
}
function frame128(){
gotoAndPlay("angry");
}
}
}//package
Section 317
//ingamezombie8 (ingamezombie8)
package {
import flash.display.*;
public dynamic class ingamezombie8 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie8(){
addFrameScript(11, frame12, 23, frame24, 45, frame46, 67, frame68, 111, frame112, 121, frame122, 130, frame131);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame46(){
gotoAndPlay("walk1");
}
function frame68(){
gotoAndPlay("walk2");
}
function frame112(){
gotoAndPlay("angry");
}
function frame122(){
gotoAndPlay("angry");
}
function frame131(){
gotoAndPlay("angry");
}
}
}//package
Section 318
//ingamezombie9 (ingamezombie9)
package {
import flash.display.*;
public dynamic class ingamezombie9 extends MovieClip {
public var mcfoot:MovieClip;
public var mcemoti:MovieClip;
public function ingamezombie9(){
addFrameScript(11, frame12, 23, frame24, 43, frame44, 63, frame64, 107, frame108, 125, frame126, 135, frame136);
}
function frame12(){
gotoAndPlay("idle1");
}
function frame24(){
gotoAndPlay("idle2");
}
function frame44(){
gotoAndPlay("walk1");
}
function frame64(){
gotoAndPlay("walk2");
}
function frame108(){
gotoAndPlay("angry");
}
function frame126(){
gotoAndPlay("angry");
}
function frame136(){
gotoAndPlay("angry");
}
}
}//package
Section 319
//intro1sound (intro1sound)
package {
import flash.media.*;
public dynamic class intro1sound extends Sound {
}
}//package
Section 320
//introsound (introsound)
package {
import flash.media.*;
public dynamic class introsound extends Sound {
}
}//package
Section 321
//itemimage (itemimage)
package {
import flash.display.*;
public dynamic class itemimage extends MovieClip {
}
}//package
Section 322
//klik2sound (klik2sound)
package {
import flash.media.*;
public dynamic class klik2sound extends Sound {
}
}//package
Section 323
//kliksound (kliksound)
package {
import flash.media.*;
public dynamic class kliksound extends Sound {
}
}//package
Section 324
//mainmenusound (mainmenusound)
package {
import flash.media.*;
public dynamic class mainmenusound extends Sound {
}
}//package
Section 325
//male1activitysound (male1activitysound)
package {
import flash.media.*;
public dynamic class male1activitysound extends Sound {
}
}//package
Section 326
//male1huhsound (male1huhsound)
package {
import flash.media.*;
public dynamic class male1huhsound extends Sound {
}
}//package
Section 327
//male2activitysound (male2activitysound)
package {
import flash.media.*;
public dynamic class male2activitysound extends Sound {
}
}//package
Section 328
//male2huhsound (male2huhsound)
package {
import flash.media.*;
public dynamic class male2huhsound extends Sound {
}
}//package
Section 329
//moneysound (moneysound)
package {
import flash.media.*;
public dynamic class moneysound extends Sound {
}
}//package
Section 330
//naeklevelsound (naeklevelsound)
package {
import flash.media.*;
public dynamic class naeklevelsound extends Sound {
}
}//package
Section 331
//notifnewimage (notifnewimage)
package {
import flash.display.*;
public dynamic class notifnewimage extends MovieClip {
public var mc1:MovieClip;
public function notifnewimage(){
addFrameScript(16, frame17, 33, frame34);
}
function frame17(){
stop();
}
function frame34(){
stop();
}
}
}//package
Section 332
//premiumsound (premiumsound)
package {
import flash.media.*;
public dynamic class premiumsound extends Sound {
}
}//package
Section 333
//punch1sound (punch1sound)
package {
import flash.media.*;
public dynamic class punch1sound extends Sound {
}
}//package
Section 334
//questcompleteeffect (questcompleteeffect)
package {
import flash.display.*;
public dynamic class questcompleteeffect extends MovieClip {
public function questcompleteeffect(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package
Section 335
//questdonesound (questdonesound)
package {
import flash.media.*;
public dynamic class questdonesound extends Sound {
}
}//package
Section 336
//sidequestsound (sidequestsound)
package {
import flash.media.*;
public dynamic class sidequestsound extends Sound {
}
}//package
Section 337
//splatterblood (splatterblood)
package {
import flash.display.*;
public dynamic class splatterblood extends MovieClip {
public function splatterblood(){
addFrameScript(209, frame210);
}
function frame210(){
stop();
}
}
}//package
Section 338
//stockingsound (stockingsound)
package {
import flash.media.*;
public dynamic class stockingsound extends Sound {
}
}//package
Section 339
//stockingsound2 (stockingsound2)
package {
import flash.media.*;
public dynamic class stockingsound2 extends Sound {
}
}//package
Section 340
//tab2sound (tab2sound)
package {
import flash.media.*;
public dynamic class tab2sound extends Sound {
}
}//package
Section 341
//tabsound (tabsound)
package {
import flash.media.*;
public dynamic class tabsound extends Sound {
}
}//package
Section 342
//thiefsound (thiefsound)
package {
import flash.media.*;
public dynamic class thiefsound extends Sound {
}
}//package
Section 343
//tiresound (tiresound)
package {
import flash.media.*;
public dynamic class tiresound extends Sound {
}
}//package
Section 344
//zombieclick1sound (zombieclick1sound)
package {
import flash.media.*;
public dynamic class zombieclick1sound extends Sound {
}
}//package
Section 345
//zombieclick2sound (zombieclick2sound)
package {
import flash.media.*;
public dynamic class zombieclick2sound extends Sound {
}
}//package
Section 346
//zombieclick3sound (zombieclick3sound)
package {
import flash.media.*;
public dynamic class zombieclick3sound extends Sound {
}
}//package
Section 347
//zombieclick4sound (zombieclick4sound)
package {
import flash.media.*;
public dynamic class zombieclick4sound extends Sound {
}
}//package
Section 348
//zombiemadfx (zombiemadfx)
package {
import flash.display.*;
public dynamic class zombiemadfx extends MovieClip {
public function zombiemadfx(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package
Section 349
//zoomsound (zoomsound)
package {
import flash.media.*;
public dynamic class zoomsound extends Sound {
}
}//package