STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

A
Very
Merry Christmas!


<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/11437470?noj=FRM11437470-23DC" width="1" height="1"></div>

Unholy Island.swf

This is the info page for
Flash #75226

(Click the ID number above for more basic data on this flash file.)


Text
<p align="left"><font face="Times New Roman" size="18" color="#ffffff" letterSpacing="0.000000" kerning="1">Skip</font></p><p align="left"></p>

<p align="left"></p>

<p align="left"><font face="Times New Roman" size="18" color="#000000" letterSpacing="0.000000" kerning="1">Data</font></p>

PLAY FREE GAMES

<p align="left"></p>

<p align="left"></p>

555

555

555

555

0

Final Score:












ActionScript [AS3]

Section 1
//MochiScores (mochi.MochiScores) package mochi { import flash.display.*; import flash.text.*; public class MochiScores { private static var boardID:String; public static var onErrorHandler:Object; public static var onCloseHandler:Object; public static function showLeaderboard(_arg1:Object=null):void{ var options = _arg1; if (options != null){ if (options.clip != null){ if ((options.clip is Sprite)){ MochiServices.setContainer(options.clip); }; delete options.clip; } else { MochiServices.setContainer(); }; MochiServices.stayOnTop(); if (options.name != null){ if ((options.name is TextField)){ if (options.name.text.length > 0){ options.name = options.name.text; }; }; }; if (options.score != null){ if ((options.score is TextField)){ if (options.score.text.length > 0){ options.score = options.score.text; }; }; }; if (options.onDisplay != null){ options.onDisplay(); } else { if (MochiServices.clip != null){ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); //unresolved jump }; }; }; } else { options = {}; if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); //unresolved jump }; }; if (options.onClose != null){ onCloseHandler = options.onClose; } else { onCloseHandler = function ():void{ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.play(); //unresolved jump }; }; }; if (options.onError != null){ onErrorHandler = options.onError; } else { onErrorHandler = null; }; if (options.boardID == null){ if (_slot1.boardID != null){ options.boardID = _slot1.boardID; }; }; MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose); } public static function closeLeaderboard():void{ MochiServices.send("scores_closeLeaderboard"); } public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2); } public static function requestList(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_requestList", null, _arg1, _arg2); } public static function scoresArrayToObjects(_arg1:Object):Object{ var _local2:Object; var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; var _local7:String; var _local8:String; _local2 = {}; for (_local7 in _arg1) { if (typeof(_arg1[_local7]) == "object"){ if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){ _local2[_local7] = []; _local5 = _arg1[_local7]; _local4 = 0; while (_local4 < _local5.rows.length) { _local6 = {}; _local3 = 0; while (_local3 < _local5.cols.length) { _local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3]; _local3++; }; _local2[_local7].push(_local6); _local4++; }; } else { _local2[_local7] = {}; for (_local8 in _arg1[_local7]) { _local2[_local7][_local8] = _arg1[_local7][_local8]; }; }; } else { _local2[_local7] = _arg1[_local7]; }; }; return (_local2); } public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{ MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4); } public static function onClose(_arg1:Object=null):void{ if (_arg1 != null){ if (_arg1.error != null){ if (_arg1.error == true){ if (onErrorHandler != null){ if (_arg1.errorCode == null){ _arg1.errorCode = "IOError"; }; onErrorHandler(_arg1.errorCode); MochiServices.doClose(); return; }; }; }; }; onCloseHandler(); MochiServices.doClose(); } public static function setBoardID(_arg1:String):void{ _slot1.boardID = _arg1; MochiServices.send("scores_setBoardID", {boardID:_arg1}); } } }//package mochi
Section 2
//MochiServices (mochi.MochiServices) package mochi { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; import flash.system.*; public class MochiServices { private static var _container:Object; private static var _connected:Boolean = false; private static var _swfVersion:String; private static var _sendChannel:LocalConnection; private static var _rcvChannelName:String; private static var _gatewayURL:String = "http://www.mochiads.com/static/lib/services/services.swf"; private static var _clip:MovieClip; private static var _loader:Loader; private static var _id:String; private static var _listenChannel:LocalConnection; private static var _timer:Timer; private static var _sendChannelName:String; private static var _startTime:Number; private static var _connecting:Boolean = false; public static var onError:Object; private static var _listenChannelName:String = "__mochiservices"; private static var _rcvChannel:LocalConnection; public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_connected){ _sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); } else { if ((((_clip == null)) || (!(_connecting)))){ onError("NotConnected"); handleError(_arg2, _arg3, _arg4); flush(true); return; }; _clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); }; if (_clip != null){ if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){ _clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4}; _clip._nextcallbackID++; }; }; } public static function get connected():Boolean{ return (_connected); } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (_clip != null){ if (_clip._queue != null){ while (_clip._queue.length > 0) { _local2 = _clip._queue.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _clip._callbacks[_local2.callbackID]; }; delete _clip._callbacks[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; }; } private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{ var _local3:Array; var _local4:int; var _local5:Array; var _local6:Array; var _local7:MovieClip; var _local8:LocalConnection; var _local9:String; var _local10:ByteArray; var _local11:ByteArray; var _local12:uint; var _local13:uint; var _local14:Loader; _local3 = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23]; _local5 = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3]; _local6 = [0, 64, 0, 0, 0]; _local7 = new MovieClip(); _local8 = new LocalConnection(); _local9 = ((("_click_" + getTimer()) + "_") + Math.floor(new Date().getTime())); _local8 = new LocalConnection(); _local7.lc = _local8; _local7.click = _arg2; _local8.client = _local7; _local8.connect(_local9); _local10 = new ByteArray(); _local11 = new ByteArray(); _local11.endian = Endian.LITTLE_ENDIAN; _local11.writeShort(1); _local11.writeUTFBytes(((_arg1 + " ") + _local9)); _local11.writeByte(0); _local12 = ((_local3.length + _local11.length) + 4); _local13 = (_local12 + 35); _local10.endian = Endian.LITTLE_ENDIAN; _local10.writeUTFBytes("FWS"); _local10.writeByte(8); _local10.writeUnsignedInt(_local13); for each (_local4 in _local5) { _local10.writeByte(_local4); }; _local10.writeUnsignedInt(_local12); _local10.writeByte(136); _local10.writeShort(_local11.length); _local10.writeBytes(_local11); for each (_local4 in _local3) { _local10.writeByte(_local4); }; for each (_local4 in _local6) { _local10.writeByte(_local4); }; _local14 = new Loader(); _local14.loadBytes(_local10); _local7.addChild(_local14); return (_local7); } private static function init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } public static function get childClip():Object{ return (_clip); } public static function get id():String{ return (_id); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, _slot1.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{ var netup:Boolean; var vars:Object; var s:String; var i:Number; var x:String; var req:URLRequest; var loader:Loader; var err:Function; var complete:Function; var setURL:Function; var url = _arg1; var burl = _arg2; var btn = _arg3; var onClick = _arg4; vars = new Object(); vars["mav"] = getVersion(); vars["swfv"] = "9"; vars["swfurl"] = btn.loaderInfo.loaderURL; vars["fv"] = Capabilities.version; vars["os"] = Capabilities.os; vars["lang"] = Capabilities.language; vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY); s = "?"; i = 0; for (x in vars) { if (i != 0){ s = (s + "&"); }; i = (i + 1); s = (((s + x) + "=") + escape(vars[x])); }; req = new URLRequest("http://x.mochiads.com/linkping.swf"); loader = new Loader(); err = function (_arg1:Object):void{ netup = false; _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; complete = function (_arg1:Object):void{ netup = true; _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.load(req); setURL = function ():void{ var _local1:String; var _local2:DisplayObject; if (netup){ _local1 = (url + s); } else { _local1 = burl; }; _local2 = clickMovie(_local1, onClick); btn.addChild(_local2); _local2.scaleX = (0.01 * btn.width); _local2.scaleY = (0.01 * btn.height); }; setTimeout(setURL, 1500); } public static function getVersion():String{ return ("1.35"); } public static function disconnect():void{ if (((_connected) || (_connecting))){ if (_clip != null){ if (_clip.parent != null){ if ((_clip.parent is Sprite)){ Sprite(_clip.parent).removeChild(_clip); _clip = null; }; }; }; _connecting = (_connected = false); flush(true); try { _listenChannel.close(); _rcvChannel.close(); } catch(error:Error) { }; }; if (_timer != null){ try { _timer.stop(); } catch(error:Error) { }; }; } public static function allowDomains(_arg1:String):String{ var _local2:String; Security.allowDomain("*"); Security.allowInsecureDomain("*"); if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; return (_local2); } public static function doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, _slot1.bringToTop); if (_clip.parent != null){ Sprite(_clip.parent).removeChild(_clip); }; } public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{ if (_arg1 != null){ if ((_arg1 is Sprite)){ _container = _arg1; }; }; if (_arg2){ if ((_container is Sprite)){ Sprite(_container).addChild(_clip); }; }; } private static function onStatus(_arg1:StatusEvent):void{ switch (_arg1.level){ case "error": _connected = false; _listenChannel.connect(_listenChannelName); break; }; } private static function initComChannels():void{ if (!_connected){ _sendChannel.addEventListener(StatusEvent.STATUS, _slot1.onStatus); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL}); _rcvChannel.addEventListener(StatusEvent.STATUS, _slot1.onStatus); _clip.onReceive = function (_arg1:Object):void{ var cb:String; var cblst:Object; var method:*; var methodName:String; var obj:Object; var pkg = _arg1; cb = pkg.callbackID; cblst = this.client._callbacks[cb]; if (!cblst){ return; }; method = cblst.callbackMethod; methodName = ""; obj = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ methodName = method; if (obj[method] != null){ method = obj[method]; //unresolved jump }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { }; }; }; delete this.client._callbacks[cb]; }; _clip.onError = function ():void{ _slot1.onError("IOError"); }; _rcvChannel.connect(_rcvChannelName); _connecting = false; _connected = true; _listenChannel.close(); while (_clip._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift()); }; }; } private static function listen():void{ _listenChannel = new LocalConnection(); _listenChannel.client = _clip; _clip.handshake = function (_arg1:Object):void{ _slot1.comChannelName = _arg1.newChannel; }; _listenChannel.allowDomain("*", "localhost"); _listenChannel.allowInsecureDomain("*", "localhost"); _listenChannel.connect(_listenChannelName); } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; if (((!((args.options == null))) && (!((args.options.onError == null))))){ args.options.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } public static function get clip():Object{ return (_container); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); _rcvChannelName = _arg1; initComChannels(); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ var clipname:String; var f:Function; var req:URLRequest; var id = _arg1; var clip = _arg2; clipname = ("_mochiservices_com_" + id); if (_clip != null){ return (_clip); }; if (!_slot1.isNetworkAvailable()){ return (null); }; _slot1.allowDomains(_gatewayURL); _clip = createEmptyMovieClip(clip, clipname, 10336, false); _loader = new Loader(); _timer = new Timer(1000, 0); _startTime = getTimer(); _timer.addEventListener(TimerEvent.TIMER, connectWait); _timer.start(); f = function (_arg1:Object):void{ _clip._mochiad_ctr_failed = true; _slot1.disconnect(); _slot1.onError("IOError"); }; _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); req = new URLRequest(_gatewayURL); _loader.load(req); _clip.addChild(_loader); _clip._mochiservices_com = _loader; _sendChannel = new LocalConnection(); _clip._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain("*", "localhost"); _rcvChannel.allowInsecureDomain("*", "localhost"); _rcvChannel.client = _clip; _clip._nextcallbackID = 0; _clip._callbacks = {}; listen(); return (_clip); } public static function bringToTop(_arg1:Event):void{ var e = _arg1; if (_slot1.clip != null){ if (_slot1.childClip != null){ try { if (_slot1.clip.numChildren > 1){ _slot1.clip.setChildIndex(_slot1.childClip, (_slot1.clip.numChildren - 1)); }; } catch(errorObject:Error) { _container.removeEventListener(Event.ENTER_FRAME, _slot1.bringToTop); }; }; }; } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; if ((clip is DisplayObject)){ if (((!(_connected)) && ((_clip == null)))){ _connecting = true; init(id, clip); }; //unresolved jump }; if (onError != null){ _slot1.onError = onError; } else { if (_slot1.onError == null){ _slot1.onError = function (_arg1:String):void{ }; }; }; } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{ var mc:MovieClip; var parent = _arg1; var name = _arg2; var depth = _arg3; var doAdd = _arg4; mc = new MovieClip(); if (doAdd){ if (((false) && (depth))){ parent.addChildAt(mc, depth); } else { parent.addChild(mc); }; }; try { parent[name] = mc; } catch(e:Error) { throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; mc["_name"] = name; return (mc); } public static function connectWait(_arg1:TimerEvent):void{ if ((getTimer() - _startTime) > 10000){ if (!_connected){ _clip._mochiad_ctr_failed = true; _slot1.disconnect(); _slot1.onError("IOError"); }; _timer.stop(); }; } } }//package mochi
Section 3
//asf4cv436_11 (unholy120mochibot_fla.asf4cv436_11) package unholy120mochibot_fla { import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.geom.*; import flash.utils.*; import flash.net.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.ui.*; public dynamic class asf4cv436_11 extends MovieClip { public function asf4cv436_11(){ addFrameScript(19, frame20); } function frame20(){ stop(); } } }//package unholy120mochibot_fla
Section 4
//asgasgshr_10 (unholy120mochibot_fla.asgasgshr_10) package unholy120mochibot_fla { import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.geom.*; import flash.utils.*; import flash.net.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.ui.*; public dynamic class asgasgshr_10 extends MovieClip { public function asgasgshr_10(){ addFrameScript(19, frame20); } function frame20(){ stop(); } } }//package unholy120mochibot_fla
Section 5
//assetholder_4 (unholy120mochibot_fla.assetholder_4) package unholy120mochibot_fla { import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.geom.*; import flash.utils.*; import flash.net.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.ui.*; public dynamic class assetholder_4 extends MovieClip { public function assetholder_4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package unholy120mochibot_fla
Section 6
//ghkghkgh_8 (unholy120mochibot_fla.ghkghkgh_8) package unholy120mochibot_fla { import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.geom.*; import flash.utils.*; import flash.net.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.ui.*; public dynamic class ghkghkgh_8 extends MovieClip { public function ghkghkgh_8(){ addFrameScript(156, frame157); } function frame157(){ Stage.frameRate = 10; this.frameRate = 10; root.play(); } } }//package unholy120mochibot_fla
Section 7
//MainTimeline (unholy120mochibot_fla.MainTimeline) package unholy120mochibot_fla { import flash.display.*; import flash.events.*; import mochi.*; import flash.media.*; import flash.text.*; import flash.geom.*; import flash.utils.*; import flash.net.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.ui.*; public dynamic class MainTimeline extends MovieClip { public var wavepic; public var waypoint:Array; public var carwheel; public var somusket:Array; public var Spooked:Array; public var hglass; public var WhoYouGonnaCall:SimpleButton; public var spapointer:Array; public var hconta; public var SFXBound:Array; public var Main_Menu:SimpleButton; public var rax; public var hitele; public var ray; public var objscount; public var notutroll; public var skipshit:SimpleButton; public var Start_game2:SimpleButton; public var musicdis; public var CarringStat:Array; public var hredbar; public var WhoWhoWho:SimpleButton; public var PirateStat:Array; public var Scoreshow:TextField; public var Trees:Array; public var Hardman:Array; public var stcounter; public var sobarrelroll:Sound; public var picked; public var holdingitem; public var rotarrow; public var tempdisable; public var hopoff; public var tentagrab:Array; public var krakencrazy; public var hspike; public var Tbuttons:Array; public var chu; public var CallMe:SimpleButton; public var wavepos; public var waco; public var Frames:Array; public var stagesmall:TextField; public var unlockbut; public var PleyLoad:SimpleButton; public var framemax; public var tsacri; public var vox; public var thingcount; public var tilepos:Point; public var voy; public var piratepush; public var menuselected; public var clevel; public var retucol:Array; public var CannonStat:Array; public var bouncedir; public var xux; public var krakendeathrot:Array; public var shipdeathrot:Array; public var Dino:SimpleButton; public var arraya:Array; public var ColidC:Number; public var ColidL:Array; public var LoadGameShow:SimpleButton; public var creditsmode; public var callsl; public var stagebig:TextField; public var things:Array; public var optena; public var hicannon; public var truepause; public var SFXOffset:ByteArray; public var bitmapdata:BitmapData; public var pi3; public var xxa; public var SendHigh:SimpleButton; public var SFXFrames:Array; public var frame:TextField; public var tilekinds:Array; public var kracount; public var windr:SoundChannel; public var rota; public var windblock:Array; public var clickdet; public var pk1; public var soundwind; public var TesouroStat:Array; public var fcheater; public var shopmode; public var monkeypos:Point; public var compacte:ByteArray; public var domainon; public var hbutton; public var pk2; public var tutraise; public var framemin; public var Branch:Array; public var hshipoint; public var btfade; public var Start_game:SimpleButton; public var piratesaid; public var ango; public var Framerects:Array; public var resetsure; public var scoremulti; public var stramode; public var imneo; public var hframe; public var Action_Mode:SimpleButton; public var zoompicked; public var impc; public var depacount; public var ygui; public var resetmusic; public var tentatimer:Array; public var refx; public var refy; public var noblink; public var framemax2; public var shotcount; public var piratecount; public var soumsic:Sound; public var objs:Array; public var tentagrow; public var socannon:Array; public var coinoffset:Array; public var har:Number; public var urlStarto; public var Play_Button:SimpleButton; public var hbb; public var soswi:Array; public var rollcheck; public var treasure:Sprite; public var pulledstring; public var easynorm:SimpleButton; public var somusicintro:Sound; public var ShipStat:Array; public var talkrand; public var tentacontrol:Array; public var hbtut; public var Lagarto:SimpleButton; public var tutcount; public var hiteffect:Array; public var cannonid; public var tiletype:Array; public var lineload:Array; public var Strategy_Mode:SimpleButton; public var allo:Array; public var soshipdie:Sound; public var cachedimagebusy:Array; public var recta:Rectangle; public var hcoin; public var piratesay; public var retvx; public var retvy; public var SkullStat:Array; public var oldroll; public var lookinat; public var whee:int; public var ShipShotCount:Array; public var zoomoffx; public var zoomoffy; public var gameovertimer; public var WhoWho:SimpleButton; public var deathtime:Array; public var dumbx; public var Bitload:BitmapData; public var TreasureC:Number; public var domEndo; public var dumby; public var More_Button:SimpleButton; public var TreasureL:Array; public var tutorial; public var heroflip; public var doo2; public var ycopy; public var panx; public var pany; public var hilife; public var tiles:BitmapData; public var level; public var holdspring; public var higoat; public var objstype:Array; public var snitch; public var combome; public var ret1; public var ret2; public var ret3; public var ret4; public var gammo; public var ShipType:Array; public var hwhitebar; public var cannonrot; public var hsell; public var Sfxcount; public var ObjStat:Array; public var zoom; public var krakroll; public var Textsel:Array; public var runexplode; public var killwaves:SoundChannel; public var easy; public var trianglecount; public var rotomatic; public var hvertex:Array; public var blinge; public var clock; public var smouse; public var LastDoto; public var typphys:Array; public var cannonmode; public var blingy; public var tentaclehunt:Array; public var blingx; public var scx; public var scy; public var loadedcount; public var domaino; public var bonusk; public var menuopen; public var AllyC:Number; public var scorey; public var monkeyrect:Rectangle; public var speedbonus; public var depacked; public var AllyL:Array; public var CarriedStat:Array; public var levelchange; public var gammasp; public var hon; public var hicrown; public var checka:Number; public var shipcount; public var mapbits:BitmapData; public var Sfx:Array; public var telexplode; public var Skills:Array; public var mega; public var retusiz; public var tentaglue:Array; public var Kureditu:SimpleButton; public var levelshow; public var hiwind; public var Waves:Array; public var dir; public var framec; public var volumer:SoundTransform; public var blinka; public var savest; public var soslash:Array; public var easymode; public var harrow; public var hshopex; public var Load_Button:SimpleButton; public var _url; public var loadtime:TextField; public var fb:Sprite; public var firstframe; public var handmove:SimpleButton; public var imblockcount; public var retheavy; public var zoomofx; public var zoomofy; public var BluePill:SimpleButton; public var yuy; public var soundblock:Array; public var microtut; public var fps; public var PirateC:Number; public var PirateL:Array; public var TentaclePath:Array; public var menudirection; public var urlEndo; public var TalkEvents:Array; public var TypePage:Array; public var t_player; public var mySo:SharedObject; public var spreadedby; public var scorecore:TextField; public var teleguid; public var ally_spring; public var wavestate; public var yya; public var doo; public var osmouse; public var map:Array; public var tpow; public var spreadx; public var spready; public var ShipC:Number; public var Skulltalk:Array; public var endanim; public var loadbar:MovieClip; public var spreadz; public var ShipL:Array; public var burieditems:Array; public var dire:Number; public var cachedimage:Array; public var Skillcount:Array; public var PossBrain:Array; public var tilerect:Rectangle; public var ShipStack:Array; public var kragrabbed:Array; public var screeny; public var soswordmiss:Array; public var bounding:Array; public var musicpla:SoundChannel; public var barrelr:SoundChannel; public var screenx; public var xgui; public var orithing; public var Score_Button:SimpleButton; public var goffy; public var EnemyC:Number; public var goffx; public var sfxdis; public var EnemyL:Array; public var burieditemscount; public var pi; public var wavevec; public var pt:Point; public var trianglepr:Array; public var soundbuffer:Array; public var hbody; public var depack; public var hscoin; public var fac1; public var nowaiar; public var fac2; public var cannoncount; public var CballStat:Array; public var stx; public var sty; public var protectmask:Array; public var rastcount; public var krakenwaypoint; public var highmode; public var mapacess; public var stc2; public var wolf:BitmapData; public var corrx; public var olselar; public var socannonroll:Sound; public var mil; public var fixreset; public var musikill; public var ry:Number; public var corry; public var blackground; public var buttmap:Bitmap; public var GoingtoDie:Array; public var retucloser; public var fasterload; public var lifeflash; public var shopfade; public var tr; public var bounce; public var rx:Number; public var score; public var hblood; public var sospawn:Sound; public var imageblocks:Array; public var bounds:Rectangle; public var shitsound:Sound; public var breakable; public var bootload; public var holdmode; public var hbsta; public var pausegame; public var dumbcount; public var blingme; public var charstate; public var cannonr:SoundChannel; public var hvertcount; public var tempo:BitmapData; public var TentacleStat:Array; public var xmouse; public var wolfrect:Rectangle; public var carrota:Array; public var aspasm; public var timer; public var hbbui; public var hchain; public var trianglec:Array; public var hshop; public var tutstep; public var toomuch; public var ldfrah; public var Bitloada:BitmapData; public var trianglep:Array; public var oldyet; public var Bitloade:BitmapData; public var minicoin; public var ldfraw; public var ldfrax; public var ldfray; public var buttons; public var menumode; public var globalpiratewalk; public var ObjAnim:Array; public var spreadpower; public var sowindpow:Sound; public var vectors:Array; public var hlines; public var rasterlist:Array; public var unlockstart; public var cora; public var hero_animate; public var runnin; public var chuarray:ByteArray; public var animove; public var databits:BitmapData; public var PossStat:Array; public var sosell:Sound; public var overbit; public var combotext; public var sowaves:Sound; public var OffTable:Array; public var sokradie:Sound; public var sokrarise:Sound; public var ymouse; public var ghosthold; public var htel1; public var htel2; public var htel3; public var actstra:SimpleButton; public var talkcount; public var framebuffer:BitmapData; public var sellmode; public var ghostid; public function MainTimeline(){ addFrameScript(0, frame1, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18); } public function setCannon(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; _local3 = 0; _local4 = 0; _local5 = 0; while (_local5 < (thingcount + 1)) { if (things[((_local5 * 9) + 5)] == 7){ _local3 = _local5; _local5 = (thingcount + 1); _local4 = 1; }; _local5++; }; if (_local4 == 0){ thingcount++; _local3 = thingcount; }; vectors[(_local3 * 5)] = 0; vectors[((_local3 * 5) + 1)] = 0; vectors[((_local3 * 5) + 2)] = 0; vectors[((_local3 * 5) + 3)] = 10; vectors[((_local3 * 5) + 4)] = 0; things[(_local3 * 9)] = _arg1; things[((_local3 * 9) + 1)] = _arg2; things[((_local3 * 9) + 2)] = 0; things[((_local3 * 9) + 5)] = 10; things[((_local3 * 9) + 6)] = 0; things[((_local3 * 9) + 7)] = 0.001; ObjStat[(_local3 * 6)] = 600; ObjStat[((_local3 * 6) + 1)] = 10; ObjStat[((_local3 * 6) + 2)] = 10; bounding[(_local3 * 4)] = 138; bounding[((_local3 * 4) + 1)] = 100; CannonStat[_local3] = 0; } public function WindPawae(_arg1, _arg2, _arg3, _arg4){ var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; _local5 = (0 - _arg3); _local6 = (0 - _arg4); _local7 = 0; _local8 = 0; _local9 = 0; _local10 = 0; soundwind = (soundwind + 0.08); if (soundwind > 1){ soundwind = 1; }; _local14 = orithing; while (_local14 < (thingcount + 1)) { if (((!((things[((_local14 * 9) + 5)] == 25))) && (!((things[((_local14 * 9) + 5)] == 17))))){ _local7 = ((_local5 + _arg1) - things[(_local14 * 9)]); _local8 = ((_local6 + _arg2) - things[((_local14 * 9) + 1)]); _local10 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8))); if (windblock[_local14] == 1){ _local10 = 10000; }; _local7 = (things[(_local14 * 9)] - (_arg3 + _arg1)); _local8 = (things[((_local14 * 9) + 1)] - (_arg4 + _arg2)); _local9 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8))); if (_local9 < _local10){ _local7 = (_local7 / _local9); _local8 = (_local8 / _local9); _local7 = ((_local7 + _arg3) / 2); _local8 = ((_local8 + _arg4) / 2); things[(_local14 * 9)] = (things[(_local14 * 9)] + (_local7 * 3)); things[((_local14 * 9) + 1)] = (things[((_local14 * 9) + 1)] + (_local8 * 3)); }; }; _local14++; }; if (Sfxcount < 250){ _local11 = 0; while (_local11 < 5) { _local12 = (Sfxcount + 1); _local13 = 0; _local14 = 0; while (_local14 < (Sfxcount + 1)) { if (Sfx[((_local14 * 5) + 2)] == 0){ _local12 = _local14; _local13 = 1; _local14 = (Sfxcount + 1); }; _local14++; }; _local15 = int((Math.random() * 4)); if (_local15 == 0){ _local7 = (Math.random() * 640); _local8 = -200; }; if (_local15 == 1){ _local7 = (Math.random() * 640); _local8 = 680; }; if (_local15 == 2){ _local8 = (Math.random() * 480); _local7 = -200; }; if (_local15 == 3){ _local8 = (Math.random() * 480); _local7 = 840; }; Sfx[(_local12 * 5)] = (_local7 + scx); Sfx[((_local12 * 5) + 1)] = (_local8 + scy); Sfx[((_local12 * 5) + 2)] = 2; Sfx[((_local12 * 5) + 3)] = (_local12 & 1); Sfx[((_local12 * 5) + 4)] = 60; if (_local13 == 0){ Sfxcount++; }; _local11++; }; _local14 = 0; while (_local14 < (Sfxcount + 1)) { if (Sfx[((_local14 * 5) + 2)] > 0){ Sfx[(_local14 * 5)] = (Sfx[(_local14 * 5)] + (_arg3 * (30 + ((_local14 & 7) * 3)))); Sfx[((_local14 * 5) + 1)] = (Sfx[((_local14 * 5) + 1)] + (_arg4 * (30 + ((_local14 & 7) * 3)))); }; _local14++; }; }; } public function getthings(_arg1, _arg2, _arg3){ var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; retusiz = 0; _local4 = 0; _local9 = (_arg1 - _arg3); _local10 = (_arg2 - _arg3); _local11 = (_arg1 + _arg3); _local12 = (_arg2 + _arg3); _local13 = orithing; while (_local13 < (thingcount + 1)) { _local4 = (_local13 * 9); _local5 = things[_local4]; _local6 = things[(_local4 + 1)]; _local7 = (things[_local4] + bounding[(_local13 * 4)]); _local8 = (things[(_local4 + 1)] + bounding[((_local13 * 4) + 1)]); if ((((((((((_local5 > _local9)) && ((_local5 < _local11)))) || ((((_local7 > _local9)) && ((_local7 < _local11)))))) || ((((_local9 > _local5)) && ((_local9 < _local7)))))) || ((((_local11 > _local5)) && ((_local11 < _local7)))))){ if ((((((((((_local6 > _local10)) && ((_local6 < _local12)))) || ((((_local8 > _local10)) && ((_local8 < _local12)))))) || ((((_local10 > _local6)) && ((_local10 < _local8)))))) || ((((_local12 > _local6)) && ((_local12 < _local8)))))){ retucol[retusiz] = _local13; retusiz++; }; }; _local13++; }; } public function Rasterback(_arg1, _arg2){ var _local3:Rectangle; var _local4:int; var _local5:int; var _local6:*; var _local7:*; var _local8:*; _local3 = new Rectangle(0, 0, 0xFF, 0xFF); _local4 = (scx / 128); _local5 = (scy / 64); _local6 = 0; _local7 = (-1 + int((zoomoffx / 128))); while (_local7 < ((screenx / 128) + 1)) { _local8 = (-1 + int((zoomoffy / 64))); while (_local8 < ((screeny / 64) + 1)) { _local6 = map[((_local7 + _local4) + ((_local8 + _local5) * 0x0100))]; tilepos.x = (((_local7 * 128) - (scx & 127)) + zoomoffx); tilepos.y = (((_local8 * 64) - (scy & 63)) + zoomoffy); tilerect.x = (_local6 * 128); bitmapdata.copyPixels(tiles, tilerect, tilepos); _local8++; }; _local7++; }; } public function opti(_arg1:MouseEvent):void{ } public function startg(_arg1:MouseEvent):void{ if (fixreset == 0){ Startgame(2); }; fixreset = 0; } public function kup(_arg1:KeyboardEvent):void{ imneo = 0; if (_arg1.keyCode == Keyboard.UP){ dir = (dir & (((2 + 4) + 8) + 16)); }; if (_arg1.keyCode == Keyboard.DOWN){ dir = (dir & (((1 + 4) + 8) + 16)); }; if (_arg1.keyCode == Keyboard.LEFT){ dir = (dir & (((1 + 2) + 8) + 16)); }; if (_arg1.keyCode == Keyboard.RIGHT){ dir = (dir & (((1 + 2) + 4) + 16)); }; if (_arg1.keyCode == Keyboard.CONTROL){ dir = (dir & (((1 + 2) + 4) + 8)); }; if (_arg1.keyCode == 90){ buttons = (buttons & ((2 + 4) + 8)); }; if (_arg1.keyCode == 88){ buttons = (buttons & ((1 + 4) + 8)); }; if (_arg1.keyCode == 67){ buttons = (buttons & ((2 + 1) + 8)); }; if (_arg1.keyCode == 86){ buttons = (buttons & ((2 + 4) + 1)); }; if (_arg1.keyCode == 49){ buttons = (buttons & ((2 + 4) + 8)); }; if (_arg1.keyCode == 50){ buttons = (buttons & ((1 + 4) + 8)); }; if (_arg1.keyCode == 51){ buttons = (buttons & ((2 + 1) + 8)); }; if (_arg1.keyCode == 52){ buttons = (buttons & ((2 + 4) + 1)); }; if (_arg1.keyCode == 52){ buttons = (buttons & ((2 + 4) + 1)); }; if ((((((_arg1.keyCode == 27)) && ((notutroll == 1)))) && ((menuopen < 10)))){ truepause = ((truepause + 1) & 1); pausegame = truepause; resetsure = 0; }; tempdisable = 0; } public function CutImagesA(){ var _local1:*; var _local2:*; Bitload = new BitmapData(ldfraw, (ldfrah + overbit), true); recta.width = ldfraw; recta.height = ldfrah; _local1 = 0; while (_local1 < ldfray) { _local2 = 0; while (_local2 < ldfrax) { recta.x = 0; recta.y = 0; recta.width = ldfraw; recta.height = ldfrah; if (overbit > 0){ Bitload.fillRect(new Rectangle(0, ldfrah, ldfraw, overbit), 0); }; Bitload.copyPixels(Bitloade, new Rectangle((_local2 * ldfraw), (_local1 * ldfrah), ldfraw, ldfrah), new Point(0, 0)); Bitload.copyChannel(Bitloada, new Rectangle((_local2 * ldfraw), (_local1 * ldfrah), ldfraw, ldfrah), new Point(0, 0), BitmapDataChannel.RED, BitmapDataChannel.ALPHA); Frames[pi3] = new ByteArray(); recta.height = (ldfrah + overbit); Frames[pi3] = Bitload.getPixels(recta); Frames[pi3].position = 0; Frames[pi3].compress(); Framerects[pi3] = new Rectangle(0, 0, 0, 0); Framerects[pi3].width = recta.width; Framerects[pi3].height = recta.height; pi3++; _local2++; }; _local1++; }; Bitload.dispose(); } public function descpress(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; _local2 = _arg1.stageX; _local3 = _arg1.stageY; if ((((((((_local2 > 171)) && ((_local3 > 254)))) && ((_local2 < 322)))) && ((_local3 < 297)))){ actstra.visible = false; easynorm.visible = true; Action_Mode.visible = false; Strategy_Mode.visible = false; }; if ((((((((_local2 > 341)) && ((_local3 > 254)))) && ((_local2 < 520)))) && ((_local3 < 297)))){ stramode = 1; actstra.visible = false; easynorm.visible = true; Action_Mode.visible = false; Strategy_Mode.visible = false; }; } function frame14(){ stop(); addEventListener(Event.ENTER_FRAME, Framerun); } public function blue(_arg1:MouseEvent):void{ gotoAndPlay(1, "Scene 5"); } function frame15(){ stop(); addEventListener(Event.ENTER_FRAME, Gameovertime); Scoreshow.text = int(score); PleyLoad.addEventListener(MouseEvent.MOUSE_UP, menupress); Dino.addEventListener(MouseEvent.MOUSE_UP, dinopress); SendHigh.addEventListener(MouseEvent.MOUSE_UP, hihipuffy); PleyLoad.addEventListener(MouseEvent.MOUSE_DOWN, unlock1); Dino.addEventListener(MouseEvent.MOUSE_DOWN, unlock2); SendHigh.addEventListener(MouseEvent.MOUSE_DOWN, unlock3); unlockbut = 0; } function frame13(){ fb = new Sprite(); ObjStat = new Array(); ObjAnim = new Array(); ShipStat = new Array(); ShipType = new Array(); ShipStack = new Array(); ShipShotCount = new Array(); PirateStat = new Array(); TesouroStat = new Array(); SkullStat = new Array(); CannonStat = new Array(); TentacleStat = new Array(); TentaclePath = new Array(); tentacontrol = new Array(); tentatimer = new Array(); tentagrab = new Array(); kragrabbed = new Array(); tentaclehunt = new Array(); CballStat = new Array(); GoingtoDie = new Array(); CarriedStat = new Array(); CarringStat = new Array(); Spooked = new Array(); PossStat = new Array(); PossBrain = new Array(); Hardman = new Array(); windblock = new Array(); hiteffect = new Array(); PirateL = new Array(); TreasureL = new Array(); AllyL = new Array(); ShipL = new Array(); EnemyL = new Array(); ColidL = new Array(); PirateC = 0; TreasureC = 0; AllyC = 0; ShipC = 0; EnemyC = 0; ColidC = 0; tsacri = 0; sowaves = new S_Waves(); sokradie = new S_Kraken_Die(); sokrarise = new S_Kraken_Rise(); soshipdie = new S_Shipwreck(); sobarrelroll = new S_BarrelRoll(); sosell = new S_Sell(); socannonroll = new S_CannonRoll(); sospawn = new S_Spawn(); sowindpow = new S_WindPow(); soumsic = new MusicPlay(); somusket = new Array(); soslash = new Array(); socannon = new Array(); soswordmiss = new Array(); globalpiratewalk = 0; piratecount = 0; volumer = new SoundTransform(0, 0); soundbuffer = new Array(); soswi = new Array(); krakencrazy = 0; tentagrow = 90; krakenwaypoint = 1; bonusk = 10000; retheavy = 0; heroflip = 0; tpow = 0; level = 0; timer = 200; levelshow = 0; oldyet = 0; tutorial = 1; dumbx = 0; dumby = 0; clevel = 0; levelchange = 0; soundblock = new Array(); snitch = 0; tentaglue = new Array(); retvx = 0; retvy = 0; speedbonus = 5000; retucloser = 0; compacte = new ByteArray(); savest = 0; fasterload = 0; gameovertimer = 0; zoom = 0; screenx = (stage.stageWidth + zoom); screeny = (stage.stageHeight + zoom); zoomoffx = (100 - zoom); zoomoffy = (100 - zoom); corrx = 0; corry = 0; bitmapdata = new BitmapData(840, 680, true, 0); framebuffer = new BitmapData(640, 480, true, 0); bounds = new Rectangle(0, 0, 0x0200, 0x0200); tilerect = new Rectangle(0, 0, 128, 64); tilepos = new Point(0, 0); pt = new Point(0, 0); buttmap = new Bitmap(framebuffer); whee = 0; buttmap.smoothing = false; buttmap.x = 0; buttmap.y = 0; buttmap.pixelSnapping = PixelSnapping.ALWAYS; stage.addChild(buttmap); mil = 0.01; fps = 0.01; dir = 0; gammo = 0.5; gammasp = 0.01; scx = 0; scy = 0; mapacess = 0; rotomatic = 0; framemin = 0; framemax = 0; fac1 = 0; fac2 = 0; checka = 0.01; map = new Array(65536); yya = 0; while (yya < 0x0100) { xxa = 0; while (xxa < 0x0100) { map[mapacess] = mapbits.getPixel(xxa, yya); mapacess++; xxa++; }; yya++; }; stage.quality = "low"; stage.addEventListener(KeyboardEvent.KEY_DOWN, kdown); stage.addEventListener(KeyboardEvent.KEY_UP, kup); stage.addEventListener(MouseEvent.MOUSE_MOVE, chumove); stage.addEventListener(MouseEvent.MOUSE_DOWN, chudown); stage.addEventListener(MouseEvent.MOUSE_UP, chuup); buttons = 0; shitsound = new recycle(); sellmode = 0; imneo = 0; truepause = 0; xmouse = 0; ymouse = 0; xgui = 0; ygui = 0; smouse = 0; clickdet = 0; osmouse = 0; ghostid = 0; ghosthold = 0; goffx = 0; goffy = 0; zoompicked = 0; zoomofx = 0; zoomofy = 0; tempdisable = 0; shopfade = 0.5; shopmode = 0; microtut = 0; teleguid = 0; refx = 0; refy = 0; telexplode = 0; vox = 0; voy = 0; picked = -1; ally_spring = 0; holdspring = 0; holdingitem = 0; charstate = 0; hero_animate = 0; endanim = 0; firstframe = 0; piratepush = 0; rollcheck = 0; oldroll = 0; lookinat = 0; blinka = 0; olselar = 0; noblink = 0; cannonmode = 0; cannonid = 0; cannonrot = 0.01; animove = 0; cannoncount = 0; hopoff = 0; shotcount = 0; soundwind = 0; Sfx = new Array(); Sfxcount = 0; depacount = 0; har = 0.01; hbutton = new HUD_Button((156 * 3), 107); hchain = new HUD_Chain(23, 80); hbody = new HUD_Body(23, 80); hwhitebar = new HUD_Whitebar(11, 81); hredbar = new HUD_RedBar(11, 36); hlines = new HUD_Lines(11, 71); harrow = new HUD_Arrow(22, 42); hglass = new HUD_Glass(53, 101); hspike = new HUD_Spike(21, 17); hshop = new HUD_Shop(58, 97); hshopex = new ExitFla(58, 97); htel1 = new HUD_Tel1(15, 36); htel2 = new HUD_Tel2(18, 24); htel3 = new HUD_Tel3(20, 37); hitele = new HUD_IconTele(40, 38); higoat = new HUD_IconGoat(40, 38); hicrown = new HUD_IconCrown(43, 33); hiwind = new HUD_IconWind(33, 33); hilife = new HUD_Life(40, 27); hicannon = new HUD_Cannon(43, 23); breakable = 0; hcoin = new HUD_Coin(15, 6); hframe = new HUD_Frame(92, 123); hscoin = new HUD_SCoin(15, 6); hsell = new HUD_SellMode(99, 31); hon = new HUD_On(37, 31); hshipoint = new IC_Ship(49, 47); hconta = new TR_Cont(14, 111); hblood = new TR_Blood(10, 106); hbtut = new TR_Btut(67, 67); hbbui = new TR_Bbuild(67, 67); hbsta = new TR_Bstart(67, 67); hbb = new TR_Bb(168, 25); pk1 = new _pk122(418, 186); pk2 = new _ad323(211, 60); Skulltalk = new Array(); Skulltalk[0] = new HUD_Skull1(82, 110); Skulltalk[1] = new HUD_Skull2(82, 110); Skulltalk[2] = new HUD_Skull3(82, 110); Textsel = new Array(); Textsel[0] = new TX_Deposit(88, 45); Textsel[1] = new TX_Grab(57, 41); Textsel[2] = new TX_Reanimate(114, 39); Textsel[3] = new TX_Release(84, 40); Textsel[4] = new TX_Shoot(75, 41); Textsel[5] = new TX_Slash(68, 41); Textsel[6] = new TX_Spawn(77, 43); Textsel[7] = new TX_Wind(77, 42); Tbuttons = new Array(); Tbuttons[0] = new BT_Z(38, 39); Tbuttons[1] = new BT_X(38, 39); Tbuttons[2] = new BT_C(38, 39); Tbuttons[3] = new BT_V(38, 39); rotarrow = new BitmapData(100, 100, true); blackground = new BitmapData(461, (471 - 335), true); shipcount = 0; dumbcount = 2500; creditsmode = 0; coinoffset = new Array(); cora = 0; while (cora < 30000) { coinoffset[cora] = ((Math.random() - 0.5) * 4); cora++; }; talkrand = 0; talkcount = 4; menuopen = 0; menudirection = 0; menuselected = 0; piratesaid = 0; lifeflash = 0; btfade = 1; musicdis = 0; sfxdis = 0; optena = 0; resetsure = 0; wavepic = new D_Wave(117, 175); Waves = new Array(); waco = 0; wavepos = 0; wavestate = 0; wavevec = -2; blingme = new HUD_Shine(40, 40); blingx = 0; blingy = 0; blinge = 0; rota = 0; notutroll = 0; kracount = 0; krakroll = 0; combome = 0; unlockstart = 0; tutstep = 0; tutraise = 0; menumode = 0; framemax2 = 0; bounce = 0; bouncedir = 0; rx = 0.01; ry = 0.01; spreadedby = 0; PirateInit(); } function frame17(){ if (highmode == 1){ gotoAndPlay(1, "Scene 5"); }; if (highmode == 2){ gotoAndPlay(6); }; } function frame18(){ stop(); Lagarto.addEventListener(MouseEvent.MOUSE_UP, lagarto); BluePill.addEventListener(MouseEvent.MOUSE_UP, blue); } function frame16(){ stop(); if (highmode == 1){ MochiScores.showLeaderboard({boardID:"61142a031609b19b"}); }; scorey = int(score); if (highmode == 2){ MochiScores.showLeaderboard({boardID:"61142a031609b19b", score:scorey}); }; } function frame12(){ framec = 0; clock = 0; } public function startg2(_arg1:MouseEvent):void{ if (fixreset == 0){ Startgame(1); }; fixreset = 0; } public function textcombo(){ if ((((combome == 1)) && ((piratesaid > 0)))){ holdmode = 2; }; if ((((combome == 1)) && ((piratesaid < 1)))){ combome = 0; piratesay = combotext; piratesaid = 350; holdmode = 1; }; } public function lineIntersection(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8):Number{ var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; _local9 = _arg1; _local10 = _arg2; _local11 = _arg3; _local12 = _arg4; _local13 = _arg5; _local14 = _arg6; _local15 = _arg7; _local16 = _arg8; _local17 = 0.01; _local18 = 0.01; _local19 = 0.01; _local20 = 0.01; _local21 = 0.01; _local22 = 0; _local11 = (_local11 - _local9); _local12 = (_local12 - _local10); _local13 = (_local13 - _local9); _local14 = (_local14 - _local10); _local15 = (_local15 - _local9); _local16 = (_local16 - _local10); _local17 = Math.sqrt(((_local11 * _local11) + (_local12 * _local12))); _local18 = (_local11 / _local17); _local19 = (_local12 / _local17); _local20 = ((_local13 * _local18) + (_local14 * _local19)); _local14 = ((_local14 * _local18) - (_local13 * _local19)); _local13 = _local20; _local20 = ((_local15 * _local18) + (_local16 * _local19)); _local16 = ((_local16 * _local18) - (_local15 * _local19)); _local15 = _local20; _local22 = 0; if (_local14 == _local16){ _local22 = 1; }; if ((((((_local14 < 0)) && ((_local16 < 0)))) || ((((_local14 >= 0)) && ((_local16 >= 0)))))){ _local22 = 1; }; _local21 = (_local15 + (((_local13 - _local15) * _local16) / (_local16 - _local14))); if ((((_local21 < 0)) || ((_local21 > _local17)))){ _local22 = 1; }; rx = (_local9 + (_local21 * _local18)); ry = (_local10 + (_local21 * _local19)); return (_local22); } public function Raydist(_arg1, _arg2, _arg3, _arg4){ var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; _local5 = 0; _local6 = 0; _local7 = _arg1; _local8 = _arg2; while (_local6 == 0) { if (EvalTerrain(_local7, _local8) != 0){ _local6 = 1; }; _local7 = (_local7 + (_arg3 * 128)); _local8 = (_local8 + (_arg4 * 64)); ++_local5; if (_local5 > 30){ _local6 = 1; }; }; _local7 = (_local7 - _arg1); _local8 = (_local8 - _arg2); _local9 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8))); return (_local9); } public function setBoat(_arg1, _arg2, _arg3){ var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; _local4 = 0; _local5 = 0; _local6 = 0; while (_local6 < (thingcount + 1)) { if (things[((_local6 * 9) + 5)] == 7){ _local4 = _local6; _local6 = (thingcount + 1); _local5 = 1; }; _local6++; }; if (_local5 == 0){ thingcount++; _local4 = thingcount; }; vectors[((_local4 * 5) + 3)] = 0; things[(_local4 * 9)] = _arg1; things[((_local4 * 9) + 1)] = _arg2; things[((_local4 * 9) + 2)] = 0; things[((_local4 * 9) + 5)] = 5; things[((_local4 * 9) + 6)] = 0; things[((_local4 * 9) + 7)] = 0; ShipShotCount[_local4] = 0; _local7 = 0; _local8 = 10000; _local9 = 0; _local10 = 0; _local11 = 0; _local12 = 0; while (_local12 < 8) { _local9 = (_arg1 - waypoint[_local12].x); _local10 = (_arg2 - waypoint[_local12].y); _local7 = Math.sqrt(((_local9 * _local9) + (_local10 * _local10))); if (_local8 > _local7){ _local8 = _local7; _local11 = _local12; }; _local12++; }; things[((_local4 * 9) + 8)] = _local11; ShipStack[(_local4 * 2)] = 0; ShipStack[((_local4 * 2) + 1)] = 0; ObjStat[((_local4 * 6) + 1)] = 10; ObjStat[((_local4 * 6) + 2)] = 10; ObjStat[((_local4 * 6) + 3)] = 0; ShipStat[(_local4 * 3)] = (1000 + (Math.random() * 3000)); ShipStat[((_local4 * 3) + 1)] = 0; ShipStat[((_local4 * 3) + 2)] = 0; ShipType[_local4] = _arg3; if (_arg3 == 0){ ObjStat[(_local4 * 6)] = (900 / easy); bounding[(_local4 * 4)] = 290; bounding[((_local4 * 4) + 1)] = 250; ShipStat[((_local4 * 3) + 1)] = 3; } else { ObjStat[(_local4 * 6)] = (1400 / easy); bounding[(_local4 * 4)] = 422; bounding[((_local4 * 4) + 1)] = 395; ShipStat[((_local4 * 3) + 1)] = 5; }; } public function MoveAsSpookedAlly(_arg1){ 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:*; Hardman[_arg1] = 1; _local8 = 0; _local9 = 0; if (_arg1 == Spooked[((_arg1 * 3) + 1)]){ _local9 = 1; }; if (Spooked[((_arg1 * 3) + 2)] == 0){ _local2 = (things[(Spooked[((_arg1 * 3) + 1)] * 9)] - things[(_arg1 * 9)]); _local3 = (things[((Spooked[((_arg1 * 3) + 1)] * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _local2 = (_local2 / _local4); _local3 = (_local3 / _local4); if (isNaN(_local2) == true){ _local2 = 0; _local3 = 0; _local4 = 0; }; if (_local4 < 100){ Spooked[((_arg1 * 3) + 2)] = 1; CarriedStat[Spooked[((_arg1 * 3) + 1)]] = _arg1; CarringStat[_arg1] = Spooked[((_arg1 * 3) + 1)]; }; }; if (Spooked[((_arg1 * 3) + 2)] == 1){ _local2 = (things[(Spooked[(_arg1 * 3)] * 9)] - things[(_arg1 * 9)]); _local3 = (things[((Spooked[(_arg1 * 3)] * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _local2 = (_local2 / _local4); _local3 = (_local3 / _local4); if (_local9 == 0){ if (Spooked[((_arg1 * 3) + 1)] != 0){ things[(Spooked[((_arg1 * 3) + 1)] * 9)] = (things[(_arg1 * 9)] + (_local2 * 30)); things[((Spooked[((_arg1 * 3) + 1)] * 9) + 1)] = (things[((_arg1 * 9) + 1)] + (_local3 * 30)); } else { things[((Spooked[(_arg1 * 3)] * 9) + 5)] = 7; Spooked[(_arg1 * 3)] = 0; Spooked[((_arg1 * 3) + 1)] = 0; Spooked[((_arg1 * 3) + 2)] = 0; }; }; _local8 = (1 - _local9); if (_local4 < 50){ things[(Spooked[((_arg1 * 3) + 1)] * 9)] = things[(Spooked[(_arg1 * 3)] * 9)]; things[((Spooked[((_arg1 * 3) + 1)] * 9) + 1)] = things[((Spooked[(_arg1 * 3)] * 9) + 1)]; things[((Spooked[(_arg1 * 3)] * 9) + 5)] = 7; if (SkullStat[(_arg1 * 3)] != 2){ CarriedStat[Spooked[((_arg1 * 3) + 1)]] = 0; CarringStat[_arg1] = 0; }; SkullStat[((_arg1 * 3) + 2)] = 0; Spooked[(_arg1 * 3)] = 0; Spooked[((_arg1 * 3) + 1)] = 0; Spooked[((_arg1 * 3) + 2)] = 0; }; }; _local10 = 1000000; _local11 = 0; _local12 = 0; _local11 = 0; while (_local11 < 16) { _local6 = (_local2 - carrota[(_local11 & 15)].x); _local7 = (_local3 - carrota[(_local11 & 15)].y); _local5 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7))); if (_local10 > _local5){ _local10 = _local5; _local12 = _local11; }; _local11++; }; GetRayList((things[(_arg1 * 9)] + 32), things[((_arg1 * 9) + 1)], _local2, _local3, 150, _arg1, Spooked[(_arg1 * 3)], Spooked[((_arg1 * 3) + 1)]); if (retusiz > 0){ _local13 = (things[(retucloser * 9)] + (bounding[(retucloser * 4)] / 2)); _local14 = (things[((retucloser * 9) + 1)] + (bounding[((retucloser * 4) + 1)] / 2)); _local15 = (((carrota[((_local12 - 2) & 15)].x * 1) + (things[(_arg1 * 9)] + 32)) - _local13); _local16 = (((carrota[((_local12 - 2) & 15)].y * 1) + (things[((_arg1 * 9) + 1)] + 45)) - _local14); _local4 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); _local15 = (((carrota[((_local12 + 2) & 15)].x * 1) + (things[(_arg1 * 9)] + 32)) - _local13); _local16 = (((carrota[((_local12 + 2) & 15)].y * 1) + (things[((_arg1 * 9) + 1)] + 45)) - _local14); _local17 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); if (_local4 < _local17){ _local2 = carrota[((_local12 + 1) & 15)].x; _local3 = carrota[((_local12 + 1) & 15)].y; _local12 = ((_local12 + 1) & 15); } else { _local2 = carrota[((_local12 - 1) & 15)].x; _local3 = carrota[((_local12 - 1) & 15)].y; _local12 = ((_local12 - 1) & 15); }; }; vectors[(_arg1 * 5)] = (_local2 * 2); vectors[((_arg1 * 5) + 1)] = (_local3 * 2); SpreadPeople(_arg1, 48); if (GoingtoDie[(_arg1 * 2)] != 1){ AnimateWho(_arg1, _local8, _local12, 0); }; things[((_arg1 * 9) + 6)] = _local12; things[(_arg1 * 9)] = (things[(_arg1 * 9)] + (vectors[(_arg1 * 5)] * fps)); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + (vectors[((_arg1 * 5) + 1)] * fps)); } public function BakeObjects(_arg1, _arg2){ var _local3:Rectangle; var _local4:Point; var _local5:Matrix; var _local6:Rectangle; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:Array; var _local14:ByteArray; var _local15:*; var _local16:*; var _local17:*; _local3 = new Rectangle(0, 0, 64, 64); _local4 = new Point(192, 128); _local5 = new Matrix(); _local6 = new Rectangle(0, 0, 0, 0); rastcount = 0; _local7 = 0; _local8 = 0; while (_local8 < objscount) { _local7 = (_local8 * 5); _local10 = 0; if ((((((isNaN(objs[(_local7 + 2)]) == false)) && ((objs[(_local7 + 2)] > -1)))) && ((objs[(_local7 + 2)] < (pi3 + 1))))){ _local11 = Framerects[objs[(_local7 + 2)]].width; _local12 = Framerects[objs[(_local7 + 2)]].height; _local4.x = (objs[_local7] - _arg1); _local4.y = (objs[(_local7 + 1)] - _arg2); if ((((((((_local4.x > (0 - _local11))) && ((_local4.x < screenx)))) && ((_local4.y > (0 - _local12))))) && ((_local4.y < screeny)))){ rasterlist[rastcount] = objs[(_local7 + 2)]; rasterlist[(rastcount + 1)] = _local4.x; rasterlist[(rastcount + 2)] = _local4.y; rasterlist[(rastcount + 3)] = _local11; rasterlist[(rastcount + 4)] = _local12; rasterlist[(rastcount + 5)] = objs[(_local7 + 3)]; rasterlist[(rastcount + 6)] = objs[(_local7 + 4)]; rastcount = (rastcount + 7); }; }; _local8++; }; if (rastcount > 0){ _local13 = new Array(); _local14 = new ByteArray(); _local15 = 0; _local16 = 0; _local17 = 0; depacount = 0; _local8 = 0; while (_local8 < rastcount) { _local15 = 0; _local16 = 0; _local7 = 0; while (_local7 < loadedcount) { if (rasterlist[_local8] == (cachedimagebusy[_local7] - 1)){ _local13[_local7] = 1; allo[(_local8 / 5)] = _local7; _local7 = (loadedcount + 1); _local15 = 1; }; if ((((cachedimagebusy[_local7] == undefined)) || ((cachedimagebusy[_local7] == 0)))){ _local16 = (_local7 + 1); }; _local7++; }; if (_local15 == 0){ if (_local16 > 0){ Frames[rasterlist[_local8]].position = 0; _local14 = new ByteArray(); _local14.position = 0; _local14.writeBytes(Frames[rasterlist[_local8]]); _local14.uncompress(); _local6.x = 0; _local6.y = 0; _local6.width = rasterlist[(_local8 + 3)]; _local6.height = rasterlist[(_local8 + 4)]; cachedimage[(_local16 - 1)] = new BitmapData(rasterlist[(_local8 + 3)], rasterlist[(_local8 + 4)]); cachedimage[(_local16 - 1)].setPixels(_local6, _local14); _local13[(_local16 - 1)] = 1; allo[(_local8 / 5)] = (_local16 - 1); cachedimagebusy[(_local16 - 1)] = (rasterlist[_local8] + 1); } else { Frames[rasterlist[_local8]].position = 0; _local14 = new ByteArray(); _local14.position = 0; _local14.writeBytes(Frames[rasterlist[_local8]]); _local14.uncompress(); _local6.x = 0; _local6.y = 0; _local6.width = rasterlist[(_local8 + 3)]; _local6.height = rasterlist[(_local8 + 4)]; cachedimage[loadedcount] = new BitmapData(rasterlist[(_local8 + 3)], rasterlist[(_local8 + 4)], true); cachedimage[loadedcount].setPixels(_local6, _local14); _local13[loadedcount] = 1; allo[(_local8 / 5)] = loadedcount; cachedimagebusy[loadedcount] = (rasterlist[_local8] + 1); loadedcount++; }; }; _local8 = (_local8 + 7); }; }; _local9 = loadedcount; _local8 = 0; while (_local8 < loadedcount) { if ((((_local13[_local8] == undefined)) && ((cachedimagebusy[_local8] > 0)))){ cachedimagebusy[_local8] = 0; cachedimage[_local8].dispose(); if ((loadedcount - 1) == _local8){ loadedcount--; }; _local9--; }; _local8++; }; } public function DrawMenu(){ 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:*; var _local16:*; var _local17:*; var _local18:Matrix; var _local19:*; var _local20:*; var _local21:*; var _local22:ColorTransform; var _local23:Matrix; var _local24:ColorTransform; var _local25:*; var _local26:*; var _local27:*; var _local28:*; var _local29:*; var _local30:*; var _local31:*; var _local32:*; var _local33:*; var _local34:Matrix; var _local35:*; var _local36:*; var _local37:*; var _local38:*; var _local39:*; var _local40:*; var _local41:*; _local1 = 0; _local2 = 0; _local7 = 0; _local8 = 0; _local9 = 10000; _local10 = 0; _local11 = 0; _local12 = 0; while (_local12 < (thingcount + 1)) { if (things[((_local12 * 9) + 5)] == 8){ _local1++; }; _local22 = new ColorTransform(); _local23 = new Matrix(); if ((((things[((_local12 * 9) + 5)] == 5)) || ((things[((_local12 * 9) + 5)] == 17)))){ _local5 = ((things[(_local12 * 9)] + 150) - things[(t_player * 9)]); _local6 = ((things[((_local12 * 9) + 1)] + 150) - things[((t_player * 9) + 1)]); _local3 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); if (_local3 < _local9){ _local9 = _local3; _local7 = (0 - (_local6 / _local3)); _local8 = (_local5 / _local3); }; }; _local12++; }; piratecount = _local1; _local13 = (106 - (int(ObjStat[(t_player * 6)]) / (1000 / 106))); _local14 = (timer / (2000 / 30)); if (pulledstring > 0){ _local14 = (30 + (10 - pulledstring)); pulledstring--; if (pulledstring < 1){ pulledstring = 0; timer = 0; }; }; _local15 = (tpow - _local1); if (_local15 < 0){ _local15 = 0; }; _local16 = ((_local15 & 7) * (81 / 8)); _local17 = ((_local15 & 248) / 8); if (timer == 2000){ _local14 = 0; }; _local18 = new Matrix(); _local5 = (_local7 - Math.cos((har + 0.2))); _local6 = (_local8 - Math.sin((har + 0.2))); _local3 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); _local5 = (_local7 - Math.cos((har - 0.2))); _local6 = (_local8 - Math.sin((har - 0.2))); _local4 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); if ((((_local7 == 0)) && ((_local8 == 0)))){ har = (har + 0.02); } else { if (_local3 < _local4){ har = (har + 0.04); } else { har = (har - 0.04); }; }; rotarrow.fillRect(new Rectangle(0, 0, 100, 100), 0); if (notutroll == 1){ framebuffer.copyPixels(hconta, new Rectangle(0, 0, 14, 111), new Point((620 - 2), 64), null, null, true); framebuffer.copyPixels(hblood, new Rectangle(0, 0, 10, (106 - _local13)), new Point(620, (66 + _local13)), null, null, true); _local18.a = (1 - ((pulledstring / 20) * 0.28)); _local18.b = 0; _local18.c = 0; _local18.d = (1 - ((pulledstring / 20) * 0.28)); _local18.tx = (570 + (pulledstring / 2)); _local18.ty = (pulledstring / 2); if (_local14 < 1){ btfade = (btfade - (fps / 20)); }; if (_local14 > 1){ btfade = (btfade + (fps / 20)); }; if (btfade > 1){ btfade = 1; }; if (btfade < 0.5){ btfade = 0.5; }; if (unlockstart == 0){ btfade = 0.5; }; _local24 = new ColorTransform(); _local24.alphaMultiplier = btfade; framebuffer.draw(hbsta, _local18, _local24, null, null); if ((((((((((stramode == 0)) && ((stcounter > 0)))) && ((pausegame == 0)))) && ((levelshow < 1)))) && ((unlockstart == 1)))){ stagebig.text = stcounter; _local34 = new Matrix(); _local34.a = 1; _local34.d = 1; _local34.tx = 587; _local34.ty = 13; stagebig.textColor = 0; framebuffer.draw(stagebig, _local34); _local34.a = 1; _local34.d = 1; _local34.tx = (587 - 3); _local34.ty = (13 - 3); stagebig.textColor = (((0xFF * 65536) + (0xFF * 0x0100)) + 0xFF); framebuffer.draw(stagebig, _local34); stc2 = (stc2 + fps); if (stc2 > 59){ stc2 = 0; stcounter--; }; if (stcounter < 1){ pulledstring = 10; smouse = 0; dumbcount = 0; if (tutorial == 1){ TalkEvents[9] = (TalkEvents[9] | 1); } else { TalkEvents[10] = (TalkEvents[10] | 1); }; shipcount = 10; }; }; if (shopmode == 0){ shopfade = (shopfade - (fps / 30)); }; if (shopmode == 1){ shopfade = (shopfade + (fps / 30)); }; if (shopfade > 1){ shopfade = 1; }; if (shopfade < 0.5){ shopfade = 0.5; }; _local18.a = 1; _local18.d = 1; _local18.tx = 11; _local18.ty = 37; _local24.alphaMultiplier = shopfade; if (menuopen < 20){ framebuffer.draw(hshop, _local18, _local24, null, null); }; if (menuopen > 20){ framebuffer.draw(hshopex, _local18, _local24, null, null); }; _local24.alphaMultiplier = 1; if (sellmode == 1){ _local18.tx = (11 + 63); _local18.ty = (137 + 22); framebuffer.draw(hon, _local18, _local24, null, null); }; _local18.a = 1; _local18.d = 1; _local18.tx = 11; _local18.ty = 137; framebuffer.draw(hsell, _local18, _local24, null, null); lifeflash = (lifeflash + fps); if (lifeflash > 20){ lifeflash = 0; }; if ((((_local13 > 80)) && ((lifeflash > 10)))){ framebuffer.fillRect(new Rectangle(620, (64 + _local13), 11, (108 - _local13)), 4294967040); }; if (sellmode == 1){ WriteText("sell mode", 10, 10, 0xFF, 0xFF, 0xFF); gammo = 0.9; }; if (sellmode == 0){ if (_local14 > 1){ WriteText("build mode", 10, 10, 0xFF, 0xFF, 0xFF); } else { WriteText("battle mode", 10, 10, 0xFF, 0xFF, 0xFF); }; }; _local25 = ((zoom / 5) + 5); if (Skills[0] == 1){ framebuffer.copyPixels(htel1, new Rectangle(0, 0, 15, 36), new Point((587 + 4), 200), null, null, true); framebuffer.copyPixels(htel2, new Rectangle(0, 0, 18, 24), new Point((587 + 2), (200 + _local25)), null, null, true); framebuffer.copyPixels(htel3, new Rectangle(0, 0, 20, 37), new Point(587, (200 + (_local25 * 1.5))), null, null, true); }; _local26 = 1; _local27 = 1; _local28 = 1; _local29 = 0; _local30 = 0; _local31 = 0; _local32 = 0; _local33 = 0; if (menumode == 0){ _local30 = 5; _local31 = 4; _local32 = 1; _local33 = 7; }; if (menumode == 1){ _local30 = 6; _local31 = 0; _local32 = 3; _local33 = 2; }; if (menumode == 2){ _local30 = 6; _local31 = 4; _local32 = 3; _local33 = 2; }; if ((((things[((CarringStat[t_player] * 9) + 5)] == 6)) && ((menumode == 1)))){ _local26 = 0; _local27 = 0; }; if ((((things[((CarringStat[t_player] * 9) + 5)] == 15)) && ((menumode == 1)))){ _local26 = 0; }; if ((((Skills[3] == 1)) && ((menumode == 0)))){ _local29 = 1; }; if ((((Skills[2] == 1)) && ((menumode == 1)))){ _local29 = 1; }; if ((((Skills[2] == 1)) && ((menumode == 2)))){ _local29 = 1; }; if (_local26 == 1){ framebuffer.copyPixels(Tbuttons[0], new Rectangle(0, 0, 38, 39), new Point(464, 309), null, null, true); framebuffer.copyPixels(Textsel[_local30], new Rectangle(0, 0, 140, 45), new Point((464 + 38), 309), null, null, true); }; if (_local27 == 1){ framebuffer.copyPixels(Tbuttons[1], new Rectangle(0, 0, 38, 39), new Point(472, 348), null, null, true); framebuffer.copyPixels(Textsel[_local31], new Rectangle(0, 0, 140, 45), new Point((472 + 38), 348), null, null, true); }; if (_local28 == 1){ framebuffer.copyPixels(Tbuttons[2], new Rectangle(0, 0, 38, 39), new Point(480, 387), null, null, true); framebuffer.copyPixels(Textsel[_local32], new Rectangle(0, 0, 140, 45), new Point((480 + 38), 387), null, null, true); }; if (_local29 == 1){ framebuffer.copyPixels(Tbuttons[3], new Rectangle(0, 0, 38, 39), new Point(489, 426), null, null, true); framebuffer.copyPixels(Textsel[_local33], new Rectangle(0, 0, 140, 45), new Point((489 + 38), 426), null, null, true); }; }; if (piratesaid < 2){ breakable = 0; }; if (piratesaid > 0){ talkcount = (talkcount - fps); if (talkcount < 0){ talkcount = 6; talkrand = int((Math.random() * 3)); }; blackground.fillRect(new Rectangle(0, 0, 461, (471 - 335)), 1073741824); framebuffer.copyPixels(blackground, new Rectangle(0, 0, 461, (471 - 335)), new Point(3, 335), null, null, true); framebuffer.copyPixels(hframe, new Rectangle(0, 0, 92, 123), new Point(7, 338), null, null, true); framebuffer.copyPixels(Skulltalk[talkrand], new Rectangle(0, 0, 92, 123), new Point((7 + 5), (338 + 6)), null, null, true); WriteText(piratesay, 106, 341, 0xFF, 0xFF, 0xFF); if (holdmode > 0){ rasterbox2(381, 447, (459 + 2), (465 + 2), 4278190080); rasterbox2((381 - 1), (447 - 1), (459 + 1), (465 + 1), 4294967295); }; if (holdmode == 1){ WriteText("CLOSE", 387, 446, 0xFF, 0xFF, 0xFF); }; if (holdmode == 2){ WriteText("NEXT", 387, 446, 0xFF, 0xFF, 0xFF); }; }; soundwind = (soundwind - 0.04); if (soundwind < 0){ soundwind = 0; }; if (windr != null){ volumer.volume = soundwind; windr.soundTransform = volumer; }; if (tutorial == 0){ WriteText(("Score:" + String(int(score))), 250, 10, 0xFF, 0xFF, 0xFF); }; if (tutorial == 1){ score = 0; _local12 = 0; while (_local12 < (thingcount + 1)) { if ((((things[((_local12 * 9) + 5)] == 10)) || ((things[((_local12 * 9) + 5)] == 15)))){ ObjStat[(_local12 * 6)] = 1000; }; _local12++; }; tuttriger(); if (notutroll == 0){ Tutroll(); _local34 = new Matrix(); _local35 = 0; if (tutcount < 400){ stagesmall.text = "- Skip Story -"; }; _local34.a = 1; _local34.d = 1; _local34.tx = (507 - _local35); _local34.ty = 438; stagesmall.textColor = 0; framebuffer.draw(stagesmall, _local34); _local34.a = 1; _local34.d = 1; _local34.tx = ((507 - _local35) - 1); _local34.ty = (438 - 1); stagesmall.textColor = (((0xFF * 65536) + (0xFF * 0x0100)) + 0xFF); framebuffer.draw(stagesmall, _local34); } else { stagebig.text = "Tutorial Stage"; _local34 = new Matrix(); _local34.a = 1; _local34.d = 1; _local34.tx = 200; _local34.ty = 24; stagebig.textColor = 0; framebuffer.draw(stagebig, _local34); _local34.a = 1; _local34.d = 1; _local34.tx = (200 - 3); _local34.ty = (24 - 3); stagebig.textColor = (((0xFF * 65536) + (0xFF * 0x0100)) + 0xFF); framebuffer.draw(stagebig, _local34); }; }; CheckForEvents(); Krakenroll(); textcombo(); speedbonus = (speedbonus - fps); if (speedbonus < 0){ speedbonus = 0; }; menuopen = (menuopen + (menudirection * fps)); if (menuopen > 40){ menuopen = 40; menudirection = 0; pausegame = 1; }; if (menuopen < 0){ menuopen = 0; menudirection = 0; pausegame = 0; }; if (menuopen > 0){ gammo = (gammo - (0.04 * fps)); if (gammo < 0.5){ gammo = 0.5; }; framebuffer.copyPixels(hitele, new Rectangle(0, 0, 40, 38), new Point((11 + 50), (34 + menuopen)), null, null, true); framebuffer.copyPixels(hicrown, new Rectangle(0, 0, 43, 33), new Point((11 + 50), (34 + (menuopen * 2))), null, null, true); framebuffer.copyPixels(higoat, new Rectangle(0, 0, 40, 38), new Point((11 + 50), (34 + (menuopen * 3))), null, null, true); framebuffer.copyPixels(hiwind, new Rectangle(0, 0, 33, 33), new Point((11 + 50), (34 + (menuopen * 4))), null, null, true); framebuffer.copyPixels(hicannon, new Rectangle(0, 0, 43, 23), new Point((11 + 50), (34 + (menuopen * 6))), null, null, true); if (Skills[0] != 1){ WriteText("Telescope - 10.00 -", (60 + 50), ((34 + (menuopen * 1)) + 5), 0xFF, 0xFF, 0xFF); if (menuselected == 1){ WriteText("Yay", (330 + 50), ((34 + (menuopen * 1)) + 10), 0, 0xFF, 0); WriteText("Nay", (390 + 50), ((34 + (menuopen * 1)) + 10), 0xFF, 0, 0); } else { WriteText("Buy", (330 + 50), ((34 + (menuopen * 1)) + 10), 0, 0xFF, 0); }; } else { WriteText("Telescope", (60 + 50), ((34 + (menuopen * 1)) + 5), 128, 128, 128); }; if (Skills[1] != 1){ WriteText("Command Minons - 10.00 -", (60 + 50), ((34 + (menuopen * 2)) + 5), 0xFF, 0xFF, 0xFF); if (menuselected == 2){ WriteText("Yay", (330 + 50), ((34 + (menuopen * 2)) + 10), 0, 0xFF, 0); WriteText("Nay", (390 + 50), ((34 + (menuopen * 2)) + 10), 0xFF, 0, 0); } else { WriteText("Buy", (330 + 50), ((34 + (menuopen * 2)) + 10), 0, 0xFF, 0); }; } else { WriteText("Command Minons", (60 + 50), ((34 + (menuopen * 2)) + 5), 128, 128, 128); }; if (Skills[2] != 1){ WriteText("Reanimate Spell - 60.00 -", (60 + 50), ((34 + (menuopen * 3)) + 5), 0xFF, 0xFF, 0xFF); }; if (Skills[2] == 1){ _local36 = ((3 - Skillcount[2]) * 3); WriteText((("Reanimate Spell refill- " + String(_local36)) + ".00 -"), (60 + 50), ((34 + (menuopen * 3)) + 5), 0xFF, 0xFF, 0xFF); }; if (menuselected == 3){ WriteText("Yay", (330 + 50), ((34 + (menuopen * 3)) + 10), 0, 0xFF, 0); WriteText("Nay", (390 + 50), ((34 + (menuopen * 3)) + 10), 0xFF, 0, 0); } else { WriteText("Buy", (330 + 50), ((34 + (menuopen * 3)) + 10), 0, 0xFF, 0); }; if (Skills[3] != 1){ WriteText("Storm - 100.00 -", (60 + 50), ((34 + (menuopen * 4)) + 5), 0xFF, 0xFF, 0xFF); }; if (Skills[3] == 1){ _local36 = int((10 - (Skillcount[3] / 10))); if (_local36 != 10){ WriteText((("Storm Refill- " + String(_local36)) + ".00 -"), (60 + 50), ((34 + (menuopen * 4)) + 5), 0xFF, 0xFF, 0xFF); } else { WriteText("Storm Refill- 10.00 -", (60 + 50), ((34 + (menuopen * 4)) + 5), 0xFF, 0xFF, 0xFF); }; }; if (menuselected == 4){ WriteText("Yay", (330 + 50), ((34 + (menuopen * 4)) + 10), 0, 0xFF, 0); WriteText("Nay", (390 + 50), ((34 + (menuopen * 4)) + 10), 0xFF, 0, 0); } else { WriteText("Buy", (330 + 50), ((34 + (menuopen * 4)) + 10), 0, 0xFF, 0); }; _local36 = ((10 - int((ObjStat[(t_player * 6)] / 100))) * 2); if (_local36 > 9){ _local36 = 9; }; WriteText("Cannon - 5.00 -", (60 + 50), ((34 + (menuopen * 6)) + 5), 0xFF, 0xFF, 0xFF); if (menuselected == 6){ WriteText("Yay", (330 + 50), ((34 + (menuopen * 6)) + 10), 0, 0xFF, 0); WriteText("Nay", (390 + 50), ((34 + (menuopen * 6)) + 10), 0xFF, 0, 0); } else { WriteText("Buy", (330 + 50), ((34 + (menuopen * 6)) + 10), 0, 0xFF, 0); }; }; if (notutroll == 1){ _local12 = 0; while (_local12 < tsacri) { _local37 = ((_local12 & 112) / 4); framebuffer.copyPixels(hcoin, new Rectangle(0, 0, 15, 6), new Point(((595 + coinoffset[_local12]) - _local37), (169 - ((_local12 & 15) * 6))), null, null, true); _local12++; }; WriteText((String(tsacri) + ".00"), 575, 175, 0xFF, 0xFF, 0xFF); }; if ((((levelshow < 470)) && ((levelshow > 30)))){ StageShow(level); }; if (truepause == 1){ gammo = (gammo - (0.05 * fps)); if (gammo < 0.5){ gammo = 0.5; }; stagebig.text = "Pause"; _local34 = new Matrix(); _local34.a = 1; _local34.d = 1; _local34.tx = 240; _local34.ty = (104 - 50); stagebig.textColor = 0; framebuffer.draw(stagebig, _local34); _local34.a = 1; _local34.d = 1; _local34.tx = (240 - 3); _local34.ty = (104 - 53); stagebig.textColor = (((0xFF * 65536) + (0xFF * 0x0100)) + 0xFF); framebuffer.draw(stagebig, _local34); if (creditsmode == 0){ WriteText("Pause Options", 180, (160 - 50), 0xFF, 0xFF, 0xFF); if (sfxdis == 0){ WriteText("Sound: ON", 200, (200 - 50), 200, 200, 200); } else { WriteText("Sound: OFF", 200, (200 - 50), 200, 200, 200); }; if (musicdis == 0){ WriteText("Music: ON", 303, (200 - 50), 200, 200, 200); } else { WriteText("Music: OFF", 303, (200 - 50), 200, 200, 200); }; WriteText("Save Game", 200, (220 - 50), 200, 200, 200); if (nowaiar == 0){ WriteText("Load Game", 200, (240 - 50), 200, 200, 200); }; if (resetsure == 0){ WriteText("Quit Game", 200, (260 - 50), 200, 200, 200); } else { WriteText("Are you Sure?", 200, (260 - 50), 200, 200, 200); WriteText("Yes No", 222, (280 - 50), 0xFF, 0xFF, 0xFF); }; WriteText("Resume Game", 200, (300 - 50), 200, 200, 200); if (tutorial == 1){ WriteText("Skip Tutorial Level", 200, (320 - 50), 200, 200, 200); }; } else { WriteText("Credits:", 180, (160 - 50), 0xFF, 0xFF, 0xFF); WriteText("Code - Daniel Lopes Parra", 180, (190 - 50), 0xFF, 0xFF, 0xFF); WriteText("Art - Fabricio Lopes Parra", 180, (220 - 50), 0xFF, 0xFF, 0xFF); WriteText("Supporters - Charles (Kobus) Igor and Daniel Sa de Campos", 180, (250 - 50), 0xFF, 0xFF, 0xFF); WriteText("Return to Options menu", 180, (320 - 50), 200, 200, 200); }; }; shipcount = (shipcount - (fps / 30)); _local19 = shipcount; _local5 = 0; _local6 = 0; _local20 = 0; _local21 = 0; if (_local19 > 0.7){ _local19 = 0.7; }; _local19 = 0.7; if (_local19 > 0){ _local12 = 0; while (_local12 < (thingcount + 1)) { if (things[((_local12 * 9) + 5)] == 5){ _local38 = (bounding[(_local12 * 4)] / 2); _local39 = (bounding[((_local12 * 4) + 1)] / 2); _local5 = ((things[(_local12 * 9)] + _local38) - (scx + 320)); _local6 = ((things[((_local12 * 9) + 1)] + _local39) - (scy + 240)); _local3 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); _local20 = (_local5 / _local3); _local21 = (_local6 / _local3); _local20 = ((_local20 * 640) + 320); _local21 = ((_local21 * 480) + 240); if (_local20 < 0){ _local20 = 0; }; if (_local21 < 0){ _local21 = 0; }; if (_local20 > 590){ _local20 = 590; }; if (_local21 > 430){ _local21 = 430; }; _local19 = 0.7; _local40 = ((things[(_local12 * 9)] - scx) + zoomoffx); _local41 = ((things[((_local12 * 9) + 1)] - scy) + zoomoffy); if ((((((((_local40 > -50)) && ((_local40 < 640)))) && ((_local41 > -50)))) && ((_local41 < 480)))){ _local19 = 0; }; _local22.alphaMultiplier = _local19; _local23.a = 1; _local23.d = 1; _local23.tx = _local20; _local23.ty = _local21; framebuffer.draw(hshipoint, _local23, _local22); }; _local12++; }; }; } public function Tutroll(){ var _local1:*; gammo = (gammo + (0.01 * fps)); if (gammo > 1){ gammo = 1; gammasp = 0.01; }; if (piratesaid < 1){ tutcount = (tutcount + fps); _local1 = 30; if ((((tutcount > _local1)) && ((tutcount < (_local1 + 20))))){ holdmode = 2; piratesay = "It has been a long time since the Kraken cursed me back bones to sit forever in this unglorious island."; piratesaid = 450; tutcount = (tutcount + 30); }; _local1 = (_local1 + 40); if ((((tutcount > _local1)) && ((tutcount < (_local1 + 20))))){ piratesay = "I stole his treasure and for that he trapped me forever in this island with no wine!"; piratesaid = 450; blinge = 1; blingx = 555; blingy = 121; tutcount = (tutcount + 30); }; _local1 = (_local1 + 40); if ((((tutcount > _local1)) && ((tutcount < (_local1 + 20))))){ piratesay = "Now, the Kraken has fallen asleep! I can tell... and without him others will come; with their blood I'll seek my revenge on the Kraken."; piratesaid = 450; tutcount = (tutcount + 30); }; _local1 = (_local1 + 40); if ((((tutcount > _local1)) && ((tutcount < (_local1 + 20))))){ piratesay = "But before that, a tutorial mode.. I'm full-of-piss and seeing mirages. So don't worry, they cannot harm me."; piratesaid = 450; tutcount = (tutcount + 30); }; _local1 = (_local1 + 40); if ((((tutcount > _local1)) && ((tutcount < (_local1 + 20))))){ holdmode = 1; tutcount = (tutcount + 30); tutraise = 1; notutroll = 1; pausegame = 0; SaveState(); }; }; } public function MoveAsCannonBall(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; Hardman[_arg1] = 0; _local2 = CballStat[_arg1]; things[(_arg1 * 9)] = (things[(_arg1 * 9)] + (vectors[(_arg1 * 5)] * fps)); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + (vectors[((_arg1 * 5) + 1)] * fps)); things[((_arg1 * 9) + 2)] = (things[((_arg1 * 9) + 2)] + (vectors[((_arg1 * 5) + 2)] * fps)); vectors[((_arg1 * 5) + 2)] = (vectors[((_arg1 * 5) + 2)] + (0.06 * fps)); _local3 = vectors[(_arg1 * 5)]; _local4 = vectors[((_arg1 * 5) + 1)]; _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (_local3 / _local5); _local4 = (_local4 / _local5); _local6 = CheckClick(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)]); if (_local6 < 1){ CheckClick((things[(_arg1 * 9)] + (vectors[(_arg1 * 5)] / 2)), (things[((_arg1 * 9) + 1)] + (vectors[((_arg1 * 5) + 1)] / 2))); }; _local7 = things[((_local6 * 9) + 5)]; if (things[((_local2 * 9) + 5)] == _local7){ _local7 = 0; }; if ((((things[((_local2 * 9) + 5)] == 8)) && ((_local7 == 12)))){ _local7 = 0; }; if ((((things[((_local2 * 9) + 5)] == 10)) && ((_local7 == 12)))){ _local7 = 0; }; if ((((things[((_local2 * 9) + 5)] == 10)) && ((_local7 == 8)))){ _local7 = 0; }; if ((((things[((_local2 * 9) + 5)] == 4)) && ((_local7 == 5)))){ _local7 = 0; }; if ((((things[((_local2 * 9) + 5)] == 12)) && ((_local7 == 4)))){ scoremulti = (scoremulti + 0.1); }; if ((((things[((_local2 * 9) + 5)] == 12)) && ((_local7 == 18)))){ scoremulti = (scoremulti + 0.1); }; if ((((things[((_local2 * 9) + 5)] == 8)) && ((_local7 == 4)))){ scoremulti = (scoremulti + 0.05); }; if ((((things[((_local2 * 9) + 5)] == 8)) && ((_local7 == 18)))){ scoremulti = (scoremulti + 0.05); }; if ((((things[((_arg1 * 9) + 2)] < -40)) && (!((_local7 == 5))))){ _local7 = 0; }; if (_local2 == _local6){ _local7 = 0; }; if ((((((((((((((((_local7 == 12)) || ((_local7 == 4)))) || ((_local7 == 8)))) || ((_local7 == 5)))) || ((_local7 == 15)))) || ((_local7 == 18)))) || ((_local7 == 17)))) || ((_local7 == 10)))){ if (things[((_arg1 * 9) + 8)] == 0){ ObjStat[((_local6 * 6) + 0)] = (ObjStat[((_local6 * 6) + 0)] - 200); if (things[CarriedStat[CarringStat[_local6]]] != 10){ CarriedStat[CarringStat[_local6]] = 0; CarringStat[_local6] = 0; }; if (things[((_local6 * 9) + 5)] != 15){ vectors[((_local6 * 5) + 0)] = (vectors[(_arg1 * 5)] / 5); vectors[((_local6 * 5) + 1)] = (vectors[((_arg1 * 5) + 1)] / 5); }; ObjStat[((_local6 * 6) + 5)] = 80; hiteffect[(_local6 * 3)] = (20 / fps); hiteffect[((_local6 * 3) + 1)] = (_local3 * 2); hiteffect[((_local6 * 3) + 2)] = (_local4 * 2); } else { ObjStat[((_local6 * 6) + 0)] = (ObjStat[((_local6 * 6) + 0)] - 34); if (things[((_local6 * 9) + 5)] != 15){ vectors[((_local6 * 5) + 0)] = (vectors[(_arg1 * 5)] / 10); vectors[((_local6 * 5) + 1)] = (vectors[((_arg1 * 5) + 1)] / 10); }; ObjStat[((_local6 * 6) + 5)] = 40; hiteffect[(_local6 * 3)] = (14 / fps); hiteffect[((_local6 * 3) + 1)] = (_local3 * 2); hiteffect[((_local6 * 3) + 2)] = (_local4 * 2); }; things[((_arg1 * 9) + 5)] = 7; }; if (things[((_arg1 * 9) + 2)] > 0){ things[((_arg1 * 9) + 5)] = 7; }; } public function descshow(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; _local2 = _arg1.stageX; _local3 = _arg1.stageY; if ((((((((_local2 > 171)) && ((_local3 > 254)))) && ((_local2 < 322)))) && ((_local3 < 297)))){ Action_Mode.visible = true; Strategy_Mode.visible = false; }; if ((((((((_local2 > 341)) && ((_local3 > 254)))) && ((_local2 < 520)))) && ((_local3 < 297)))){ Strategy_Mode.visible = true; Action_Mode.visible = false; }; } public function MoveAsCannonPo(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; Hardman[_arg1] = 1; if (PossBrain[(_arg1 * 6)] != 2){ PossBrain[(_arg1 * 6)] = 2; PossBrain[((_arg1 * 6) + 1)] = 300; PossBrain[((_arg1 * 6) + 2)] = 0; PossBrain[((_arg1 * 6) + 3)] = 0; PossBrain[((_arg1 * 6) + 4)] = 0; PossBrain[((_arg1 * 6) + 5)] = 0; }; _local2 = things[((CheckClick((things[(_arg1 * 9)] + (carrota[int(things[((_arg1 * 9) + 6)])].x * 60)), (things[((_arg1 * 9) + 1)] + (carrota[int(things[((_arg1 * 9) + 6)])].y * 60))) * 9) + 5)]; if ((((_local2 == 12)) || ((_local2 == 10)))){ _local2 = 0; }; PossBrain[((_arg1 * 6) + 1)] = (PossBrain[((_arg1 * 6) + 1)] - fps); if (PossBrain[((_arg1 * 6) + 1)] < 0){ _local2 = 20; }; if (_local2 > 1){ _local3 = 0; while (_local3 < 11) { CallSmoke(((things[(_arg1 * 9)] + 70) + ((Math.random() - 0.5) * 120)), ((things[((_arg1 * 9) + 1)] + 30) + ((Math.random() - 0.5) * 120)), 3); _local3++; }; _local3 = 0; while (_local3 < (thingcount + 1)) { _local7 = things[((_local3 * 9) + 5)]; if ((((((((((((((_local7 == 4)) || ((_local7 == 5)))) || ((_local7 == 8)))) || ((_local7 == 10)))) || ((_local7 == 15)))) || ((_local7 == 17)))) || ((_local7 == 18)))){ _local4 = (things[(_local3 * 9)] - things[(_arg1 * 9)]); _local5 = (things[((_local3 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); if (_local6 < 350){ _local4 = (_local4 / _local6); _local5 = (_local5 / _local6); ObjStat[(_local3 * 6)] = (ObjStat[(_local3 * 6)] - ((350 - _local6) * 2)); things[(_local3 * 9)] = (things[(_local3 * 9)] + (_local4 * 60)); things[((_local3 * 9) + 1)] = (things[((_local3 * 9) + 1)] + (_local5 * 60)); }; }; things[((_arg1 * 9) + 5)] = 7; _local3++; }; }; things[(_arg1 * 9)] = (things[(_arg1 * 9)] + (carrota[int(things[((_arg1 * 9) + 6)])].x * (fps * 4))); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + (carrota[int(things[((_arg1 * 9) + 6)])].y * (fps * 4))); CallSmoke((things[(_arg1 * 9)] + 70), (things[((_arg1 * 9) + 1)] + 30), 3); } public function setWeapon(_arg1, _arg2, _arg3){ var _local4:*; var _local5:*; var _local6:*; _local4 = 0; _local5 = 0; _local6 = 0; while (_local6 < thingcount) { if (things[((_local6 * 9) + 5)] == 7){ _local4 = _local6; _local6 = (thingcount + 1); _local5 = 1; }; _local6++; }; if (_local5 == 0){ thingcount++; _local4 = thingcount; }; vectors[(_local4 * 5)] = 0; vectors[((_local4 * 5) + 1)] = 0; vectors[((_local4 * 5) + 2)] = 0; vectors[((_local4 * 5) + 3)] = 10; vectors[((_local4 * 5) + 4)] = 0; things[(_local4 * 9)] = _arg1; things[((_local4 * 9) + 1)] = _arg2; things[((_local4 * 9) + 2)] = 0; things[((_local4 * 9) + 5)] = 14; things[((_local4 * 9) + 6)] = 0; things[((_local4 * 9) + 7)] = _arg3; bounding[(_local4 * 4)] = 50; bounding[((_local4 * 4) + 1)] = 32; } public function kure(_arg1:MouseEvent):void{ gotoAndPlay(9, "Scene 1"); } public function SaveState(){ var _local1:ByteArray; var _local2:*; _local1 = new ByteArray(); savest = 1; compacte.length = 0; compacte.position = 0; compacte.writeShort(krakencrazy); compacte.writeShort(tentagrow); compacte.writeShort(krakenwaypoint); compacte.writeShort(retheavy); compacte.writeShort(level); compacte.writeShort(timer); compacte.writeShort(levelshow); compacte.writeShort(oldyet); compacte.writeShort(tutorial); compacte.writeShort(snitch); compacte.writeShort(ghostid); compacte.writeShort(ghosthold); compacte.writeShort(goffx); compacte.writeShort(goffy); compacte.writeShort(zoompicked); compacte.writeShort(zoomofx); compacte.writeShort(zoomofy); compacte.writeShort(tempdisable); compacte.writeShort(teleguid); compacte.writeShort(refx); compacte.writeShort(refy); compacte.writeShort(telexplode); compacte.writeShort(vox); compacte.writeShort(voy); compacte.writeShort(picked); compacte.writeShort(ally_spring); compacte.writeShort(holdspring); compacte.writeShort(holdingitem); compacte.writeShort(charstate); compacte.writeShort(hero_animate); compacte.writeShort(endanim); compacte.writeShort(firstframe); compacte.writeShort(piratepush); compacte.writeShort(cannonmode); compacte.writeShort(cannonid); compacte.writeShort(cannonrot); compacte.writeShort(animove); compacte.writeShort(cannoncount); compacte.writeShort(hopoff); compacte.writeShort(loadedcount); compacte.writeShort(carwheel); compacte.writeShort(pausegame); compacte.writeShort(aspasm); compacte.writeShort(overbit); compacte.writeShort(tutcount); compacte.writeShort(pi); compacte.writeShort(bonusk); compacte.writeShort(gammo); compacte.writeShort(tutorial); compacte.writeShort(notutroll); compacte.writeShort(tsacri); compacte.writeShort(stramode); compacte.writeShort(stcounter); compacte.writeShort(stc2); compacte.writeShort(tutstep); compacte.writeShort(tutraise); compacte.writeShort(holdmode); compacte.writeShort(krakencrazy); compacte.writeShort(tentagrow); compacte.writeShort(krakenwaypoint); compacte.writeShort(bonusk); compacte.writeInt(scx); compacte.writeInt(scy); compacte.writeInt(score); _local2 = 0; while (_local2 < 30) { compacte.writeShort(TalkEvents[_local2]); compacte.writeShort(Skills[_local2]); compacte.writeShort(Skillcount[_local2]); compacte.writeShort(tentaglue[_local2]); _local2++; }; compacte.writeInt(thingcount); _local2 = (orithing * 9); while (_local2 < ((thingcount + 1) * 9)) { compacte.writeShort(things[_local2]); _local2++; }; _local2 = (orithing * 6); while (_local2 < ((thingcount + 1) * 6)) { compacte.writeShort(ObjStat[_local2]); _local2++; }; _local2 = (orithing * 4); while (_local2 < ((thingcount + 1) * 4)) { compacte.writeShort(PirateStat[_local2]); _local2++; }; _local2 = (orithing * 4); while (_local2 < ((thingcount + 1) * 4)) { compacte.writeShort(bounding[_local2]); _local2++; }; _local2 = (orithing * 3); while (_local2 < ((thingcount + 1) * 3)) { compacte.writeShort(SkullStat[_local2]); _local2++; }; _local2 = (orithing * 1); while (_local2 < ((thingcount + 1) * 1)) { compacte.writeShort(CarriedStat[_local2]); _local2++; }; _local2 = (orithing * 1); while (_local2 < ((thingcount + 1) * 1)) { compacte.writeShort(CarringStat[_local2]); _local2++; }; _local2 = (orithing * 1); while (_local2 < ((thingcount + 1) * 1)) { compacte.writeShort(CannonStat[_local2]); _local2++; }; _local2 = (orithing * 1); while (_local2 < ((thingcount + 1) * 1)) { compacte.writeShort(TesouroStat[_local2]); _local2++; }; compacte.position = 0; compacte.compress(); compacte.position = 0; } public function setTreasure(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; _local3 = 0; _local4 = 0; _local5 = 0; while (_local5 < (thingcount + 1)) { if (things[((_local5 * 9) + 5)] == 7){ _local3 = _local5; _local5 = (thingcount + 1); _local4 = 1; }; _local5++; }; if (_local4 == 0){ thingcount++; _local3 = thingcount; }; vectors[(_local3 * 5)] = 0; vectors[((_local3 * 5) + 1)] = 0; vectors[((_local3 * 5) + 2)] = 0; vectors[((_local3 * 5) + 3)] = 10; vectors[((_local3 * 5) + 4)] = 0; things[(_local3 * 9)] = _arg1; things[((_local3 * 9) + 1)] = _arg2; things[((_local3 * 9) + 2)] = 0; things[((_local3 * 9) + 5)] = 6; things[((_local3 * 9) + 6)] = 0; things[((_local3 * 9) + 7)] = 0.001; bounding[(_local3 * 4)] = 81; bounding[((_local3 * 4) + 1)] = 81; TesouroStat[_local3] = 0; } public function unlock1(_arg1:MouseEvent):void{ unlockbut = 1; } public function MoveAsBarrelPo(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; Hardman[_arg1] = 1; if (PossBrain[(_arg1 * 6)] != 4){ PossBrain[(_arg1 * 6)] = 4; PossBrain[((_arg1 * 6) + 1)] = 0; PossBrain[((_arg1 * 6) + 2)] = -0.5; PossBrain[((_arg1 * 6) + 3)] = 0; PossBrain[((_arg1 * 6) + 4)] = 0; PossBrain[((_arg1 * 6) + 5)] = 0; }; _local2 = 0; _local3 = 0; _local4 = 0; _local5 = 100000; _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; while (_local9 < (thingcount + 1)) { if (things[((_local9 * 9) + 5)] == 4){ _local2 = (things[(_local9 * 9)] - things[(_arg1 * 9)]); _local3 = (things[((_local9 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); if (_local4 < _local5){ _local5 = _local4; _local6 = _local9; _local7 = (_local2 / _local4); _local8 = (_local3 / _local4); }; }; _local9++; }; if (_local6 != 0){ if (EvalTerrain((things[(_arg1 * 9)] + (_local7 * 50)), (things[((_arg1 * 9) + 1)] + (_local8 * 50))) == 0){ _local7 = (0 - _local7); _local8 = (0 - _local8); }; things[(_arg1 * 9)] = (things[(_arg1 * 9)] + (_local7 * (fps * 2))); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + (_local8 * (fps * 2))); if (_local5 < 50){ vectors[(_local6 * 5)] = (_local7 * 30); vectors[((_local6 * 5) + 1)] = (_local8 * 30); ObjStat[((_local6 * 6) + 5)] = 20; }; }; } public function MCP(){ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; _local1 = 0; _local2 = 0; while (_local2 < (thingcount + 1)) { if ((((((things[((_local2 * 9) + 5)] == 4)) || ((things[((_local2 * 9) + 5)] == 5)))) || ((things[((_local2 * 9) + 5)] == 17)))){ _local1 = 1; }; _local2++; }; if (piratesaid > 0){ (_local1 == 1); }; if ((((((tutorial == 0)) && ((oldyet == 1)))) && ((_local1 == 0)))){ SaveState(); level++; levelshow = 700; stcounter = 20; if (fasterload == 1){ fasterload = 0; levelshow = 600; } else { ObjStat[(t_player * 6)] = (ObjStat[(t_player * 6)] + 100); bonussum(); if (ObjStat[(t_player * 6)] > 1000){ ObjStat[(t_player * 6)] = 1000; }; }; }; oldyet = _local1; if (_local1 == 0){ timer = (timer - (1 * fps)); }; if ((((((easymode == 1)) && ((timer > 100)))) && ((timer < 1998)))){ timer = 1998; }; if (timer < 1){ timer = 2000; if (level > 11){ _local2 = 0; while (_local2 < level) { _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); if (Math.random() < (level / 20)){ setBoat(_local3, _local4, 1); } else { setBoat(_local3, _local4, 0); }; _local2++; }; }; if ((((level == 0)) && ((tutstep == 4)))){ setBoat(5000, 800, 0); unlockstart = 0; }; if (level == 1){ _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); dumbx = (0x0F00 + ((_local3 / _local5) * 2000)); dumby = (1664 + ((_local4 / _local5) * 2000)); setBoat(dumbx, dumby, 0); }; if (level == 2){ setBoat(dumbx, dumby, 0); setBoat((dumbx + 300), (dumby + 300), 0); }; if (level == 3){ setBoat((dumbx - 300), (dumby - 300), 0); setBoat(dumbx, dumby, 0); setBoat((dumbx + 300), (dumby + 300), 0); }; if (level == 4){ _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); }; if (level == 5){ _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat((_local3 - 300), (_local4 - 300), 0); setBoat(_local3, _local4, 1); setBoat((_local3 + 300), (_local4 + 300), 0); }; if (level == 6){ _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); dumbx = (0x0F00 + ((_local3 / _local5) * 2000)); dumby = (1664 + ((_local4 / _local5) * 2000)); setBoat(dumbx, dumby, 1); dumbx = (0x0F00 + ((_local3 / _local5) * 4000)); dumby = (1664 + ((_local4 / _local5) * 4000)); setBoat(dumbx, dumby, 1); dumbx = (0x0F00 + ((_local3 / _local5) * 6000)); dumby = (1664 + ((_local4 / _local5) * 6000)); setBoat(dumbx, dumby, 0); setBoat(dumbx, dumby, 0); setBoat(dumbx, dumby, 0); }; if (level == 7){ _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); }; if (level == 8){ _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); }; if (level == 9){ _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); }; if (level == 10){ _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 0); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); _local3 = (Math.random() - 0.5); _local4 = (Math.random() - 0.5); _local5 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (0x0F00 + ((_local3 / _local5) * 2000)); _local4 = (1664 + ((_local4 / _local5) * 2000)); setBoat(_local3, _local4, 1); }; if (level == 11){ setKraken(3500, 700); SetaWholeTentacle(3600, 900, 0, 1, 3, 1); SetaWholeTentacle(3900, 900, 0, 1, 3, 2); SetaWholeTentacle(3400, 800, 0, 1, 3, 3); SetaWholeTentacle(4100, 800, 0, 1, 3, 4); }; }; } public function unlock2(_arg1:MouseEvent):void{ unlockbut = 1; } public function unlock3(_arg1:MouseEvent):void{ unlockbut = 1; } public function easypress(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:*; _local2 = _arg1.stageX; _local3 = _arg1.stageY; _local4 = 0; if ((((((((_local2 > 209)) && ((_local3 > 258)))) && ((_local2 < 302)))) && ((_local3 < 297)))){ _local4 = 1; easy = 2; }; if ((((((((_local2 > 323)) && ((_local3 > 258)))) && ((_local2 < 482)))) && ((_local3 < 297)))){ _local4 = 1; easy = 1; }; if (_local4 == 1){ easymode = 1; if (musikill != null){ musikill.stop(); }; play(); }; } public function DepackPics(_arg1){ var _local2:*; var _local3:*; var _local4:Array; var _local5:Array; var _local6:*; var _local7:*; switch (_arg1){ case 0: spapointer[0] = pi3; ldfrax = 14; ldfray = 9; ldfraw = 83; ldfrah = 85; Bitloade = new D_Skull_Walk((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 1: Bitloada = new DA_Skull_Walk((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 2: ldfrax = 14; ldfray = 9; ldfraw = 67; ldfrah = 94; Bitloade = new D_Skull_Push((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 3: Bitloada = new DA_Skull_Push((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 4: ldfrax = 10; ldfray = 9; ldfraw = 136; ldfrah = 102; Bitloade = new D_Skull_Slash((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 5: Bitloada = new DA_Skull_Slash((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 6: ldfrax = 15; ldfray = 9; ldfraw = 111; ldfrah = 96; Bitloade = new D_Skull_Shoot((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 7: Bitloada = new DA_Skull_Shoot((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 8: ldfrax = 10; ldfray = 9; ldfraw = 148; ldfrah = 123; Bitloade = new D_Skull_Die((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 9: Bitloada = new DA_Skull_Die((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 10: ldfrax = 14; ldfray = 9; ldfraw = 62; ldfrah = 58; Bitloade = new D_Skull_Musket((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 11: Bitloada = new DA_Skull_Musket((ldfrax * ldfraw), (ldfray * ldfrah)); overbit = 60; CutImagesA(); overbit = 0; Bitloada.dispose(); Bitloade.dispose(); break; case 12: spapointer[2] = pi3; ldfrax = 14; ldfray = 9; ldfraw = 67; ldfrah = 94; Bitloade = new D_Human_Walk((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 13: Bitloada = new DA_Human_Walk((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 14: ldfrax = 14; ldfray = 9; ldfraw = 65; ldfrah = 92; Bitloade = new D_Human_Push((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 15: Bitloada = new DA_Human_Push((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 16: ldfrax = 10; ldfray = 9; ldfraw = 141; ldfrah = 98; Bitloade = new D_Human_Slash((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 17: Bitloada = new DA_Human_Slash((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 18: ldfrax = 15; ldfray = 9; ldfraw = 116; ldfrah = 99; Bitloade = new D_Human_Shoot((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 19: Bitloada = new DA_Human_Shoot((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 20: ldfrax = 10; ldfray = 9; ldfraw = 102; ldfrah = 123; Bitloade = new D_Human_Die((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 21: Bitloada = new DA_Human_Die((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 22: ldfrax = 14; ldfray = 9; ldfraw = 54; ldfrah = 59; Bitloade = new D_Human_Musket((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 23: Bitloada = new DA_Human_Musket((ldfrax * ldfraw), (ldfray * ldfrah)); overbit = 60; CutImagesA(); overbit = 0; Bitloada.dispose(); Bitloade.dispose(); break; case 24: ldfrax = 14; ldfray = 9; ldfraw = 54; ldfrah = 59; Bitloade = new D_Human_Sword((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 25: Bitloada = new DA_Human_Sword((ldfrax * ldfraw), (ldfray * ldfrah)); overbit = 30; CutImagesA(); overbit = 0; Bitloada.dispose(); Bitloade.dispose(); break; case 26: spapointer[5] = pi3; ldfrax = 14; ldfray = 9; ldfraw = 60; ldfrah = 84; Bitloade = new D_Minion_Walk((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 27: Bitloada = new DA_Minion_Walk((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 28: ldfrax = 14; ldfray = 9; ldfraw = 60; ldfrah = 84; Bitloade = new D_Minion_Push((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 29: Bitloada = new DA_Minion_Push((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 30: ldfrax = 10; ldfray = 9; ldfraw = 111; ldfrah = 123; Bitloade = new D_Minion_Slash((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 31: Bitloada = new DA_Minion_Slash((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 32: ldfrax = 15; ldfray = 9; ldfraw = 111; ldfrah = 123; Bitloade = new D_Minion_Shoot((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 33: Bitloada = new DA_Minion_Shoot((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 34: ldfrax = 10; ldfray = 9; ldfraw = 148; ldfrah = 129; Bitloade = new D_Minion_Die((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 35: Bitloada = new DA_Minion_Die((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 36: ldfrax = 14; ldfray = 9; ldfraw = 56; ldfrah = 59; Bitloade = new D_Minion_Musket((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 37: Bitloada = new DA_Minion_Musket((ldfrax * ldfraw), (ldfray * ldfrah)); overbit = 30; CutImagesA(); overbit = 0; Bitloada.dispose(); Bitloade.dispose(); break; case 38: ldfrax = 14; ldfray = 9; ldfraw = 37; ldfrah = 58; Bitloade = new D_Minion_Sword((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 39: Bitloada = new DA_Minion_Sword((ldfrax * ldfraw), (ldfray * ldfrah)); overbit = 30; CutImagesA(); overbit = 0; Bitloada.dispose(); Bitloade.dispose(); break; case 40: spapointer[3] = pi3; ldfrax = 1; ldfray = 9; ldfraw = 290; ldfrah = 303; Bitloade = new D_SmallShip((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 41: Bitloada = new DA_SmallShip((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 42: ldfrax = 4; ldfray = 5; ldfraw = 290; ldfrah = 303; Bitloade = new D_SmallShip_Die((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 43: Bitloada = new DA_SmallShip_Die((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 44: ldfrax = 1; ldfray = 9; ldfraw = 422; ldfrah = 395; Bitloade = new D_BigShip((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 45: Bitloada = new DA_BigShip((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 46: ldfrax = 4; ldfray = 2; ldfraw = 422; ldfrah = 395; Bitloade = new D_BigShip_Die_A((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 47: Bitloada = new DA_BigShip_Die_A((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 48: ldfrax = 4; ldfray = 3; ldfraw = 422; ldfrah = 395; Bitloade = new D_BigShip_Die_B((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 49: Bitloada = new DA_BigShip_Die_B((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 50: spapointer[6] = pi3; ldfrax = 5; ldfray = 9; ldfraw = 133; ldfrah = 101; Bitloade = new D_Cannon((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 51: Bitloada = new DA_Cannon((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 52: ldfrax = 1; ldfray = 9; ldfraw = 133; ldfrah = 101; Bitloade = new D_Cannon_Die((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 53: Bitloada = new DA_Cannon_Die((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 54: spapointer[4] = pi3; ldfrax = 1; ldfray = 9; ldfraw = 83; ldfrah = 81; Bitloade = new D_Tesouro((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 55: Bitloada = new DA_Tesouro((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 56: spapointer[7] = pi3; ldfrax = 2; ldfray = 2; ldfraw = 10; ldfrah = 10; Bitload = new D_Cannonball((ldfrax * ldfraw), (ldfray * ldfrah)); CutImages(); Bitload.dispose(); break; case 57: spapointer[8] = pi3; ldfrax = 1; ldfray = 9; ldfraw = 50; ldfrah = 32; Bitloade = new D_SwordSpin((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 58: Bitloada = new DA_SwordSpin((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 59: ldfrax = 1; ldfray = 9; ldfraw = 50; ldfrah = 32; Bitloade = new D_MusketSpin((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 60: Bitloada = new DA_MusketSpin((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 61: spapointer[9] = pi3; ldfrax = 2; ldfray = 1; ldfraw = 59; ldfrah = 69; Bitloade = new D_Barrel((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 62: Bitloada = new DA_Barrel((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 63: spapointer[11] = pi3; ldfrax = 1; ldfray = 9; ldfraw = 468; ldfrah = 266; Bitloade = new D_Kraken((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 64: Bitloada = new DA_Kraken((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 65: ldfrax = 3; ldfray = 3; ldfraw = 468; ldfrah = 266; Bitloade = new D_Kraken_Die((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 66: Bitloada = new DA_Kraken_Die((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 67: spapointer[12] = pi3; ldfrax = 1; ldfray = 9; ldfraw = 66; ldfrah = 81; Bitloade = new D_Tentacle_Start((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 68: Bitloada = new DA_Tentacle_Start((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 69: ldfrax = 1; ldfray = 9; ldfraw = 45; ldfrah = 50; Bitloade = new D_Tentacle_Center((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 70: Bitloada = new DA_Tentacle_Center((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 71: ldfrax = 3; ldfray = 9; ldfraw = 113; ldfrah = 95; Bitloade = new D_Tentacle_End((ldfrax * ldfraw), (ldfray * ldfrah)); break; case 72: Bitloada = new DA_Tentacle_End((ldfrax * ldfraw), (ldfray * ldfrah)); CutImagesA(); Bitloada.dispose(); Bitloade.dispose(); break; case 73: spapointer[10] = pi3; ldfrax = 3; ldfray = 1; ldfraw = 156; ldfrah = 107; break; case 74: _local4 = new Array(10); _local5 = new Array(10); _local4[0] = new Ebichuman(825, 1014); _local5[0] = new Ebichuman_A(825, 1014); _local4[1] = new D_Palm(384, 198); _local5[1] = new DA_Palm(384, 198); Bitload = new BitmapData(800, 800, true); spapointer[1] = pi3; _local3 = 0; while (_local3 < imblockcount) { recta.x = imageblocks[((_local3 * 5) + 3)]; recta.y = imageblocks[((_local3 * 5) + 4)]; recta.width = imageblocks[((_local3 * 5) + 1)]; recta.height = imageblocks[((_local3 * 5) + 2)]; Bitload.copyPixels(_local4[imageblocks[(_local3 * 5)]], recta, new Point(0, 0)); Bitload.copyChannel(_local5[imageblocks[(_local3 * 5)]], recta, new Point(0, 0), BitmapDataChannel.RED, BitmapDataChannel.ALPHA); recta.x = 0; recta.y = 0; Frames[pi3] = new ByteArray(); Frames[pi3] = Bitload.getPixels(recta); Frames[pi3].position = 0; Frames[pi3].compress(); recta.x = 0; recta.y = 0; Framerects[pi3] = new Rectangle(0, 0, 0, 0); Framerects[pi3].width = recta.width; Framerects[pi3].height = recta.height; pi3++; _local3++; }; Bitload.dispose(); _local3 = 0; while (_local3 < (thingcount + 1)) { _local6 = (_local3 * 9); _local7 = (spapointer[TypePage[things[(_local6 + 5)]]] + things[(_local6 + 3)]); bounding[(_local3 * 4)] = Framerects[_local7].width; bounding[((_local3 * 4) + 1)] = Framerects[_local7].height; _local3++; }; break; }; } public function CheckClick(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; _local3 = 0; _local12 = -1; _local13 = orithing; while (_local13 < (thingcount + 1)) { _local3 = (_local13 * 9); if (things[(_local3 + 5)] > 1){ _local4 = things[_local3]; _local5 = things[(_local3 + 1)]; _local6 = (things[_local3] + bounding[(_local13 * 4)]); _local7 = (things[(_local3 + 1)] + bounding[((_local13 * 4) + 1)]); if (things[(_local3 + 5)] == 5){ _local4 = (_local4 + 25); _local5 = (_local5 + 25); _local6 = (_local6 - 25); _local7 = (_local7 - 25); }; if ((((((((_local4 < _arg1)) && ((_local6 > _arg1)))) && ((_local5 < _arg2)))) && ((_local7 > _arg2)))){ _local12 = _local13; }; }; _local13++; }; return (_local12); } public function MoveAsTreasurePo(_arg1){ 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:Number; var _local15:Number; var _local16:Number; var _local17:Number; Hardman[_arg1] = 1; if (PossBrain[(_arg1 * 6)] != 1){ PossBrain[(_arg1 * 6)] = 1; PossBrain[((_arg1 * 6) + 1)] = 0; PossBrain[((_arg1 * 6) + 2)] = 0; PossBrain[((_arg1 * 6) + 3)] = 0; PossBrain[((_arg1 * 6) + 4)] = 0; PossBrain[((_arg1 * 6) + 5)] = 0; }; _local2 = 0; _local3 = 0; _local4 = 0; _local5 = 100000; _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; while (_local9 < (thingcount + 1)) { if (things[((_local9 * 9) + 5)] == 4){ _local2 = (things[(_local9 * 9)] - things[(_arg1 * 9)]); _local3 = (things[((_local9 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); if (_local4 < _local5){ _local5 = _local4; _local6 = _local9; _local7 = (_local2 / _local4); _local8 = (_local3 / _local4); }; }; _local9++; }; _local10 = (0 - _local7); _local11 = (0 - _local8); _local14 = dir; _local15 = 0.03; _local16 = 30000; _local17 = 0; while (_local17 < 16) { _local12 = (_local10 - carrota[(_local17 & 15)].x); _local13 = (_local11 - carrota[(_local17 & 15)].y); _local15 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); if (_local16 > _local15){ _local16 = _local15; _local14 = _local17; }; _local17++; }; things[((_arg1 * 9) + 6)] = _local14; BorderDodge(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)], (0 - _local7), (0 - _local8), 0, 4); _local7 = (0 - retvx); _local8 = (0 - retvy); if (_local6 != 0){ things[(_arg1 * 9)] = (things[(_arg1 * 9)] - (_local7 * (fps * 2.5))); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] - (_local8 * (fps * 2.5))); }; } public function CallSmoke(_arg1, _arg2, _arg3){ var _local4:*; var _local5:*; var _local6:*; _local4 = (Sfxcount + 1); _local5 = 0; _local6 = 0; while (_local6 < (Sfxcount + 1)) { if (Sfx[((_local6 * 5) + 2)] == 0){ _local4 = _local6; _local5 = 1; _local6 = (Sfxcount + 1); }; _local6++; }; Sfx[(_local4 * 5)] = (_arg1 - 34); Sfx[((_local4 * 5) + 1)] = (_arg2 - 27); if (_arg3 == 3){ Sfx[((_local4 * 5) + 2)] = 1; Sfx[((_local4 * 5) + 3)] = 0; }; if (_arg3 == 4){ Sfx[((_local4 * 5) + 2)] = 5; Sfx[((_local4 * 5) + 3)] = 0; }; Sfx[((_local4 * 5) + 4)] = 50; if (_local5 == 0){ Sfxcount++; }; } public function kuup(_arg1:KeyboardEvent):void{ } public function WriteText(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){ var _local7:Matrix; _local7 = new Matrix(); frame.text = _arg1; _local7.a = 1; _local7.d = 1; _local7.tx = _arg2; _local7.ty = _arg3; frame.textColor = 0; framebuffer.draw(frame, _local7); _local7.a = 1; _local7.d = 1; _local7.tx = (_arg2 - 1); _local7.ty = (_arg3 - 1); frame.textColor = (((_arg4 * 65536) + (_arg5 * 0x0100)) + _arg6); framebuffer.draw(frame, _local7); } public function Spreadattack(){ var _local1:*; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; _local1 = (spreadedby * 9); _local2 = 0.01; _local3 = 0.01; _local4 = 0.01; _local5 = 0; while (_local5 < retusiz) { _local6 = (retucol[_local5] * 5); _local7 = (things[(retucol[_local5] * 9)] + (bounding[((retucol[_local5] * 4) + 0)] / 2)); _local8 = (things[((retucol[_local5] * 9) + 1)] + (bounding[((retucol[_local5] * 4) + 1)] / 2)); _local9 = ((things[_local1] + (bounding[((spreadedby * 4) + 0)] / 2)) + bounding[((spreadedby * 4) + 2)]); _local10 = ((things[(_local1 + 1)] + (bounding[((spreadedby * 4) + 1)] / 2)) + bounding[((spreadedby * 4) + 3)]); _local2 = (0 - ((_local9 - vectors[(spreadedby * 5)]) - _local7)); _local3 = (0 - ((_local10 - vectors[((spreadedby * 5) + 1)]) - _local8)); _local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); if (_local4 == 0){ _local4 = 1; }; _local2 = (_local2 / _local4); _local3 = (_local3 / _local4); vectors[_local6] = (_local2 * 6); vectors[(_local6 + 1)] = (_local3 * 6); _local5++; }; } public function tuttriger(){ var _local1:*; if (tutraise == (tutstep + 1)){ tutstep = tutraise; }; if (tutraise != 0){ if (tutstep == 1){ holdmode = 0; piratesay = "First, a couple of lessons. Hold the mouse button or the keyboard arrows to walk around and then try holding Z or X to slash your sword or shoot your musket."; piratesaid = 600; combotext = "When you get used to the fighting and walking, find the cannon"; combome = 1; }; if (tutstep == 2){ holdmode = 0; piratesay = "Now use the C key to GRAB the cannon by the handle."; piratesaid = 800; }; if (tutstep == 3){ holdmode = 0; piratesay = "The controls changed now, you turn the aim with the left and right arrows and you shoot with the X key. Fire a couple of rounds."; piratesaid = 800; }; if ((((tutstep == 4)) && ((stramode == 1)))){ holdmode = 0; piratesay = "Go to the right side of the island, near the beach and hit the START BATTLE button up in the screen. Be ready to shoot down our first enemy ship."; piratesaid = 800; unlockstart = 1; }; if ((((tutstep == 4)) && ((stramode == 0)))){ holdmode = 0; piratesay = "The enemy ships will arrive on the right side of the island once the counter reaches zero and you can also press the START BATTLE button to start it sooner. Be ready to sink our first enemy."; piratesaid = 800; unlockstart = 1; }; if (tutstep == 5){ holdmode = 2; piratesay = "Each treasure gives you 10 coins, try to destroy ships close to the island, items sink when floating for a while. And now you got their weapons too."; piratesaid = 600; }; if (tutstep == 6){ holdmode = 0; piratesay = "Since we have two cannons now, SPAWN a minion using this one. Take it to a place you want to defend and hit Z key to SPAWN a cannoneer minion."; piratesaid = 600; }; if (tutstep == 7){ holdmode = 2; piratesay = "He won't move from that spot and doesn't have accuracy to shoot enemies on land, but will put a lot of holes on the ships."; piratesaid = 600; }; if (tutstep == 8){ holdmode = 0; piratesay = "Now grab a gun/sword and spawn a minion."; piratesaid = 500; }; if (tutstep == 9){ holdmode = 0; piratesay = "Press the Z key to spawn a minion to fight. He will stand in place until any pirate ship reaches land and then he will fight to protect the treasures from the pirates on foot."; piratesaid = 700; }; if (tutstep == 10){ holdmode = 0; piratesay = "Great, spawning both swords and muskets works in the same way, but muskets hit from distance but cause less damage. Now GRAB the barrel."; piratesaid = 700; }; if (tutstep == 11){ holdmode = 2; piratesay = "You can use it to shield your cannons, place it on the sides of your cannons and it will shield them from the ship's attacks. You can also use X key to sell it for 1 coin or the weapons for 2."; piratesaid = 700; }; if (tutstep == 12){ holdmode = 2; piratesay = "There's also the Click Sell Mode under the shop flag, activate it and clicking on objects with your mouse will sell them."; piratesaid = 700; microtut = 1; }; if (tutstep == 13){ holdmode = 2; piratesay = "You will now defend the island by yourself, destroying more ships, winning more weapons and money to build defenses all around the island. Every level will bring more enemies."; piratesaid = 700; }; if (tutstep == 14){ holdmode = 2; piratesay = "You can buy powers at the SHOP (Roll mouse over it to fade in.) and pressing ESC key will pause the game and give you options as SAVE and SKIP TUTORIAL LEVEL."; piratesaid = 700; combotext = "Now the first level starts, finish planning your strategy and press START BATTLE to fight, as usual."; combome = 1; }; }; tutraise = 0; if ((((things[((9 * CheckClick(((things[(t_player * 9)] + (carrota[whee].x * 40)) + 45), ((things[((t_player * 9) + 1)] + (carrota[whee].y * 40)) + 45))) + 5)] == 10)) && ((tutstep == 1)))){ tutraise = 2; }; if ((((tutstep == 5)) && ((piratesaid < 1)))){ tutraise = 6; }; if ((((tutstep == 7)) && ((piratesaid < 1)))){ tutraise = 8; }; if ((((tutstep == 11)) && ((piratesaid < 1)))){ tutraise = 12; }; if ((((tutstep == 12)) && ((piratesaid < 1)))){ tutraise = 13; }; if ((((tutstep == 13)) && ((piratesaid < 1)))){ tutraise = 14; }; if ((((tutstep == 8)) && ((things[((holdingitem * 9) + 5)] == 14)))){ tutraise = 9; }; if ((((((tutstep == 14)) && ((piratesaid < 1)))) && ((combome == 0)))){ _local1 = 0; while (_local1 < (thingcount + 1)) { if ((((((((((((((things[((_local1 * 9) + 5)] == 4)) || ((things[((_local1 * 9) + 5)] == 5)))) || ((things[((_local1 * 9) + 5)] == 14)))) || ((things[((_local1 * 9) + 5)] == 15)))) || ((things[((_local1 * 9) + 5)] == 8)))) || ((things[((_local1 * 9) + 5)] == 6)))) || ((things[((_local1 * 9) + 5)] == 10)))){ things[((_local1 * 9) + 5)] = 7; }; _local1++; }; setTreasure(3700, 1400); setBarrel(3800, 1500); setBarrel(3850, 1500); setBarrel(3900, 1500); setCannon(3500, 1500); setCannon(3300, 1500); setWeapon(3500, 1600, 0); setWeapon(3700, 1600, 1); tsacri = 10; level++; levelshow = 550; stcounter = 20; CarriedStat[CarringStat[t_player]] = 0; CarringStat[t_player] = 0; cannonmode = 0; tutorial = 0; timer = 1998; oldyet = 0; resetsure = 0; truepause = 0; pausegame = 0; unlockstart = 1; SaveState(); }; } public function ProceduralTentacleThing(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){ var _local8:Number; var _local9:Number; var _local10:Number; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:*; var _local19:*; var _local20:*; var _local21:*; var _local22:*; var _local23:*; var _local24:*; var _local25:*; _local8 = _arg3; _local9 = _arg4; _local10 = 0.01; _local11 = _arg1; _local12 = _arg2; _local13 = 0.0001; _local14 = 0.0001; _local15 = 0.0001; _local16 = 0.0001; _local19 = 0.0001; _local20 = 0.0001; _local21 = 0.0001; _local22 = 0.0001; _local23 = 0.1; _local24 = 1; if ((ycopy + 80) < _arg2){ _local24 = 4; }; _local25 = 0; while (_local25 < 8) { _local8 = (_local8 + (_arg5 * _local25)); _local9 = (_local9 + (_arg6 * _local25)); _local10 = (Math.sqrt(((_local8 * _local8) + (_local9 * _local9))) / _arg7); _local8 = (_local8 / _local10); _local9 = (_local9 / _local10); _local23 = (_local25 + 1); _local13 = ((0 - _local9) / _local23); _local14 = (_local8 / _local23); _local15 = (0 - _local13); _local16 = (0 - _local14); if (_local25 > 0){ trianglep[(trianglecount * 6)] = (_local19 + _local17); trianglep[((trianglecount * 6) + 1)] = (_local20 + _local18); trianglep[((trianglecount * 6) + 2)] = (_local21 + _local17); trianglep[((trianglecount * 6) + 3)] = (_local22 + _local18); trianglep[((trianglecount * 6) + 4)] = (_local13 + _local11); trianglep[((trianglecount * 6) + 5)] = (_local14 + _local12); trianglec[trianglecount] = 0; trianglepr[trianglecount] = _local24; trianglecount++; trianglep[(trianglecount * 6)] = (_local13 + _local11); trianglep[((trianglecount * 6) + 1)] = (_local14 + _local12); trianglep[((trianglecount * 6) + 2)] = (_local15 + _local11); trianglep[((trianglecount * 6) + 3)] = (_local16 + _local12); trianglep[((trianglecount * 6) + 4)] = (_local21 + _local17); trianglep[((trianglecount * 6) + 5)] = (_local22 + _local18); trianglec[trianglecount] = 0; trianglepr[trianglecount] = _local24; trianglecount++; }; _local19 = _local13; _local20 = _local14; _local21 = _local15; _local22 = _local16; _local17 = _local11; _local18 = _local12; _local11 = (_local11 + _local8); _local12 = (_local12 + _local9); _local25++; }; hvertcount = (trianglecount * 3); } public function getFreeRandomSlot(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; _local3 = (_arg1 + ((Math.random() - 0.5) * 200)); _local4 = (_arg2 + ((Math.random() - 0.5) * 200)); _local5 = 0; _local6 = 0; _local6 = CheckClick(_local3, _local4); while (_local6 < 1) { _local3 = ((_arg1 + 240) + ((Math.random() - 0.5) * 200)); _local4 = ((_arg2 + 220) + ((Math.random() - 0.5) * 200)); _local6 = CheckClick(_local3, _local4); ++_local5; if (_local5 > 100){ _local6 = 0; }; }; rax = _local3; ray = _local4; } public function SpreadPeople(_arg1, _arg2){ var _local3:Array; var _local4:Array; var _local5:Array; var _local6:Array; var _local7:Array; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:*; var _local19:*; var _local20:*; var _local21:*; var _local22:*; var _local23:*; var _local24:*; var _local25:*; var _local26:*; var _local27:*; var _local28:*; _local3 = new Array(); _local4 = new Array(); _local5 = new Array(); _local6 = new Array(); _local7 = new Array(); _local8 = _arg2; _local9 = 0; _local10 = 0.001; _local11 = 0.001; _local12 = 0; _local13 = 0; while (_local13 < ColidC) { _local12 = 0; if ((((things[((ColidL[_local13] * 9) + 5)] == 18)) && ((things[((_arg1 * 9) + 5)] == 18)))){ _local12 = 1; }; if (((((!((CarriedStat[ColidL[_local13]] == _arg1))) && (!((CarriedStat[_arg1] == ColidL[_local13]))))) && ((_local12 == 0)))){ var _temp1 = _local9; _local9 = (_local9 + 1); var _local29 = _temp1; _local3[_local29] = ColidL[_local13]; }; _local13++; }; retheavy = 0; _local14 = _arg1; _local15 = 0; _local16 = 0; _local17 = (_local14 * 9); if (isNaN(vectors[((_local14 * 5) + 3)]) == true){ vectors[((_local14 * 5) + 3)] = 1; }; _local18 = 0; _local19 = 0; _local20 = 0; _local21 = 0; _local22 = 0; while (_local22 < _local9) { _local16 = (_local3[_local22] * 9); _local20 = (things[_local16] + (bounding[((_local16 / 9) * 4)] / 2)); _local21 = (things[(_local16 + 1)] + bounding[(((_local16 / 9) * 4) + 1)]); _local18 = (things[_local17] + (bounding[((_local17 / 9) * 4)] / 2)); _local19 = (things[(_local17 + 1)] + bounding[(((_local17 / 9) * 4) + 1)]); if ((((things[(_local17 + 5)] == 6)) && ((things[(_local16 + 5)] == 15)))){ _local20 = (_arg2 + 10); }; if ((((_local20 > (_local18 - (_local8 * 3)))) && ((_local20 < (_local18 + (_local8 * 3)))))){ if ((((_local21 > (_local19 - (_local8 * 3)))) && ((_local21 < (_local19 + (_local8 * 3)))))){ _local4[_local15] = (_local20 - _local18); _local5[_local15] = (_local21 - _local19); _local6[_local15] = _local16; if (isNaN(vectors[((_local3[_local22] * 5) + 3)]) == true){ vectors[((_local3[_local22] * 5) + 3)] = 1; }; _local7[_local15] = vectors[((_local3[_local22] * 5) + 3)]; _local15++; }; }; _local22++; }; _local23 = 0; _local24 = 0; _local25 = 0.02; _local26 = 0.02; _local27 = 0.02; _local28 = 1; if ((((things[(_local17 + 5)] == 6)) || ((things[(_local17 + 5)] == 15)))){ _local28 = 2; }; _local22 = 0; while (_local22 < (_local15 + 1)) { _local11 = Math.sqrt(((_local4[_local22] * _local4[_local22]) + (_local5[_local22] * _local5[_local22]))); if ((((_local11 < _local8)) && ((_local11 > 0)))){ _local10 = (_local8 - _local11); if (_local10 == 0){ _local10 = 1; }; if (things[(_local17 + 5)] != 25){ things[_local17] = (things[_local17] + ((0 - ((_local4[_local22] / _local11) * _local10)) / _local28)); things[(_local17 + 1)] = (things[(_local17 + 1)] + ((0 - ((_local5[_local22] / _local11) * _local10)) / _local28)); vectors[(_local14 * 5)] = -((((_local4[_local22] / _local11) * _local10) / 2)); vectors[((_local14 * 5) + 1)] = -((((_local5[_local22] / _local11) * _local10) / 2)); if ((((Hardman[_local14] == 1)) && ((Hardman[(_local6[_local22] / 9)] == 0)))){ vectors[((_local6[_local22] / 9) * 5)] = (0 - vectors[(_local14 * 5)]); vectors[(((_local6[_local22] / 9) * 5) + 1)] = (0 - vectors[((_local14 * 5) + 1)]); }; }; }; _local22++; }; _local22 = 0; while (_local22 < (_local15 + 1)) { _local16 = _local6[_local22]; _local18 = (things[_local17] + (bounding[((_local17 / 9) * 4)] / 2)); _local19 = (things[(_local17 + 1)] + bounding[(((_local17 / 9) * 4) + 1)]); _local20 = (things[_local16] + (bounding[((_local16 / 9) * 4)] / 2)); _local21 = (things[(_local16 + 1)] + bounding[(((_local16 / 9) * 4) + 1)]); _local4[_local22] = (_local20 - _local18); _local5[_local22] = (_local21 - _local19); _local11 = Math.sqrt(((_local4[_local22] * _local4[_local22]) + (_local5[_local22] * _local5[_local22]))); if ((((_local11 < (_local8 * 1))) && ((_local11 > 0)))){ _local10 = ((_local8 - _local11) / 2); if (_local10 == 0){ _local10 = 1; }; if (things[(_local6[_local22] + 5)] != 25){ things[_local6[_local22]] = (things[_local6[_local22]] + ((_local4[_local22] / _local11) * (_local10 * fps))); things[(_local6[_local22] + 1)] = (things[(_local6[_local22] + 1)] + ((_local5[_local22] / _local11) * (_local10 * fps))); }; }; _local22++; }; } public function Framerun(_arg1:Event):void{ var _local2:*; var _local3:*; var _local4:*; var _local5:Matrix; var _local6:ColorTransform; _local2 = getTimer(); fps = (60 / (1000 / (_local2 - mil))); mil = _local2; framec++; if (imneo == 1){ fps = 0.5; }; if ((clock + 1000) < getTimer()){ clock = getTimer(); frame.text = ("fps:" + String(framec)); framec = 0; }; if (fps > 5){ fps = 5; }; screenx = (stage.stageWidth + (zoom * 2)); screeny = (stage.stageHeight + (zoom * 2)); zoomoffx = (100 - zoom); zoomoffy = (100 - zoom); corrx = -(zoom); corry = -(zoom); _local3 = levelshow; if (levelshow > 0){ levelshow = (levelshow - fps); }; if ((((levelshow > 0)) && ((levelshow < 500)))){ pausegame = 1; }; if ((((_local3 > 0)) && ((levelshow < 0)))){ pausegame = 0; TalkEvents[2] = (TalkEvents[2] | 1); }; if (ObjStat[(t_player * 6)] < 0){ if (barrelr != null){ barrelr.stop(); }; if (cannonr != null){ cannonr.stop(); }; if (windr != null){ windr.stop(); }; if (killwaves != null){ killwaves.stop(); }; if (musicpla != null){ musicpla.stop(); }; stage.removeChild(buttmap); removeEventListener(Event.ENTER_FRAME, Framerun); gameovertimer = 500; play(); }; if (pausegame == 0){ if (krakroll != 2){ MCP(); }; }; objscount = 0; CalculateWorld(); hvertcount = 3; hvertex[0] = 300; hvertex[1] = 300; hvertex[2] = 0; hvertex[3] = 500; hvertex[4] = 300; hvertex[5] = 0; hvertex[6] = 300; hvertex[7] = 500; hvertex[8] = 0; trianglepr[0] = 0; Rasterback(scx, scy); BakeObjects(scx, scy); trianglecount = 0; trianglecount = 0; _local4 = 0; while (_local4 < 4) { if (_local4 == 2){ Wavegen(scx, scy); }; RasterObject(_local4); _local4++; }; RasterSFX(scx, scy); _local5 = new Matrix(); _local5.a = ((((100 - zoom) * 2) + 640) / 840); _local5.d = ((((100 - zoom) * 2) + 480) / 680); _local5.tx = (-100 + zoom); _local5.ty = (-100 + zoom); if (levelshow > 0){ gammo = 0.5; if (levelshow > 470){ gammo = (((levelshow - 270) / 60) + 0.5); }; if (levelshow < 30){ gammo = ((0.5 - (levelshow / 60)) + 0.5); }; if (gammo < 0){ gammo = 0; }; if (gammo > 1){ gammo = 1; }; } else { gammo = (gammo + (gammasp * fps)); if (gammo > 1){ gammo = 1; gammasp = 0.01; }; }; if (gammo != 1){ _local6 = new ColorTransform(); _local6.redMultiplier = gammo; _local6.greenMultiplier = gammo; _local6.blueMultiplier = gammo; framebuffer.draw(bitmapdata, _local5, _local6, null, new Rectangle(0, 0, 640, 480)); } else { framebuffer.draw(bitmapdata, _local5, null, null, new Rectangle(0, 0, 640, 480)); }; DrawMenu(); if (callsl == 1){ stage.removeChild(buttmap); removeEventListener(Event.ENTER_FRAME, Framerun); gotoAndPlay(7); }; } public function checkingProgress(_arg1:Event):void{ var _local2:*; var _local3:*; treasure.graphics.lineStyle(5, 0xF0F0F0); treasure.graphics.moveTo(50, 50); _local2 = int((toomuch * (loaderInfo.bytesLoaded / loaderInfo.bytesTotal))); _local3 = 0; while (_local3 < _local2) { if ((_local3 & 3) != 3){ treasure.graphics.lineTo(lineload[_local3].x, lineload[_local3].y); } else { treasure.graphics.moveTo(lineload[_local3].x, lineload[_local3].y); }; _local3++; }; if (loaderInfo.bytesLoaded == loaderInfo.bytesTotal){ removeEventListener(Event.ENTER_FRAME, checkingProgress); gotoAndPlay(5); this.removeChild(treasure); }; } public function Cut(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; _local3 = 0; _local4 = 0; while (_local4 < retusiz) { _local5 = things[((retucol[_local4] * 9) + 5)]; _local6 = retucol[_local4]; _local10 = 0; if (things[((_arg1 * 9) + 5)] == 12){ _local10 = (((((((((((((_local5 == 4)) || ((_local5 == 5)))) || ((_local5 == 8)))) || ((_local5 == 10)))) || ((_local5 == 15)))) || ((_local5 == 18)))) || ((_local5 == 17))); }; if (things[((_arg1 * 9) + 5)] == 8){ _local10 = (((((((_local5 == 4)) || ((_local5 == 5)))) || ((_local5 == 18)))) || ((_local5 == 17))); }; if (things[((_arg1 * 9) + 5)] == 4){ _local10 = (((((((_local5 == 8)) || ((_local5 == 10)))) || ((_local5 == 12)))) || ((_local5 == 15))); }; if (((((_local10) && (!((retucol[_local4] == _arg1))))) && (!((GoingtoDie[(_local4 * 2)] == 1))))){ _local7 = (things[(_local6 * 9)] - things[(_arg1 * 9)]); _local8 = (things[((_local6 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local9 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8))); _local7 = (_local7 / _local9); _local8 = (_local8 / _local9); vectors[(_local6 * 5)] = (_local7 * 50); vectors[((_local6 * 5) + 1)] = (_local8 * 50); hiteffect[(_local6 * 3)] = (20 / fps); hiteffect[((_local6 * 3) + 1)] = (_local7 * 3); hiteffect[((_local6 * 3) + 2)] = (_local8 * 3); if ((((things[((_arg1 * 9) + 5)] == 12)) && ((_local5 == 4)))){ scoremulti = (scoremulti + 0.1); }; if ((((things[((_arg1 * 9) + 5)] == 12)) && ((_local5 == 18)))){ scoremulti = (scoremulti + 0.1); }; if ((((things[((_arg1 * 9) + 5)] == 8)) && ((_local5 == 4)))){ scoremulti = (scoremulti + 0.05); }; if ((((things[((_arg1 * 9) + 5)] == 8)) && ((_local5 == 18)))){ scoremulti = (scoremulti + 0.05); }; if (vectors[(_local6 * 5)] < -5){ vectors[(_local6 * 5)] = -5; }; if (vectors[(_local6 * 5)] > 5){ vectors[(_local6 * 5)] = 5; }; if (vectors[((_local6 * 5) + 1)] < -5){ vectors[((_local6 * 5) + 1)] = -5; }; if (vectors[((_local6 * 5) + 1)] > 5){ vectors[((_local6 * 5) + 1)] = 5; }; ObjStat[((_local6 * 6) + 5)] = 10; ObjStat[((_local6 * 6) + 0)] = (ObjStat[((_local6 * 6) + 0)] - 34); _local3 = 1; if (things[CarriedStat[CarringStat[_local6]]] != 10){ CarriedStat[CarringStat[_local6]] = 0; CarringStat[_local6] = 0; }; }; _local4++; }; if (_local3 == 1){ PlaySound(_arg1, 0); } else { PlaySound(_arg1, 6); }; } public function MoveCharacter(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:*; var _local19:*; var _local20:*; var _local21:*; var _local22:*; var _local23:*; var _local24:*; var _local25:*; var _local26:*; var _local27:*; var _local28:*; var _local29:*; var _local30:*; var _local31:*; var _local32:*; var _local33:*; var _local34:*; var _local35:*; var _local36:*; var _local37:*; var _local38:*; var _local39:*; var _local40:*; var _local41:*; var _local42:*; var _local43:*; var _local44:*; var _local45:*; var _local46:*; var _local47:*; var _local48:*; _local2 = (_arg1 * 5); _local3 = scx; _local4 = scy; _local5 = 0; _local6 = 0; _local9 = 0; _local7 = (xmouse - ((things[(_arg1 * 9)] - scx) + 25)); _local8 = (ymouse - ((things[((_arg1 * 9) + 1)] - scy) + 50)); _local10 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8))); _local7 = (_local7 / _local10); _local8 = (_local8 / _local10); if (smouse == 1){ clickdet++; refx = scx; refy = scy; teleguid = 0; }; if (smouse == 0){ clickdet = 0; }; osmouse = smouse; if ((((smouse == 0)) && ((teleguid == 0)))){ if ((dir & 1) == 1){ _local5 = 1; dire = 8; }; if ((dir & 2) == 2){ _local5 = 1; dire = 0; }; if ((dir & 4) == 4){ _local5 = 1; dire = 4; }; if ((dir & 8) == 8){ _local5 = 1; dire = 12; }; if ((dir & 5) == 5){ _local5 = 1; dire = 6; }; if ((dir & 9) == 9){ _local5 = 1; dire = 10; }; if ((dir & 6) == 6){ _local5 = 1; dire = 2; }; if ((dir & 10) == 10){ _local5 = 1; dire = 14; }; _local17 = Math.abs((carwheel - dire)); _local18 = Math.abs(((carwheel - 16) - dire)); _local19 = Math.abs(((carwheel + 16) - dire)); _local20 = (0.5 * fps); if (buttons != 2){ if (_local20 > 1){ _local20 = 1; }; if ((((_local17 <= _local18)) && ((_local17 <= _local19)))){ if (carwheel > dire){ carwheel = (carwheel - _local20); }; if (carwheel < dire){ carwheel = (carwheel + _local20); }; if (_local17 > 7){ carwheel = ((dire - 3) & 15); }; }; if ((((_local18 < _local17)) && ((_local18 < _local19)))){ if ((carwheel - 16) > dire){ carwheel = (carwheel - _local20); }; if ((carwheel - 16) < dire){ carwheel = (carwheel + _local20); }; if (_local18 > 7){ carwheel = ((dire - 3) & 15); }; }; if ((((_local19 < _local17)) && ((_local19 < _local18)))){ if ((carwheel + 16) > dire){ carwheel = (carwheel - _local20); }; if ((carwheel + 16) < dire){ carwheel = (carwheel + _local20); }; if (_local19 > 7){ carwheel = ((dire - 3) & 15); }; }; } else { if ((dir & 1) == 1){ _local5 = 1; }; if ((dir & 2) == 2){ _local5 = 1; }; if ((dir & 4) == 4){ carwheel = (carwheel - (fps / 6)); }; if ((dir & 8) == 8){ carwheel = (carwheel + (fps / 6)); }; }; if (carwheel > 15.5){ carwheel = 0; }; if (carwheel < -0.5){ carwheel = 15; }; whee = carwheel; } else { _local21 = 1000.4; _local22 = 0.1; _local23 = 0.001; _local24 = 0.001; dire = whee; carwheel = dire; _local5 = 0; if (smouse == 1){ runnin = 1; _local5 = 2; }; if (teleguid == 1){ runnin = 0; _local5 = 2; _local7 = vox; _local8 = voy; if (telexplode < 0){ teleguid = 0; _local5 = 0; }; telexplode = (telexplode - 3); }; _local25 = 0; while (_local25 < 16) { _local23 = (carrota[_local25].x - _local7); _local24 = (carrota[_local25].y - _local8); _local22 = Math.sqrt(((_local23 * _local23) + (_local24 * _local24))); if (_local22 < _local21){ whee = _local25; _local21 = _local22; }; _local25++; }; }; piratepush = (piratepush - fps); _local11 = 0; if (piratepush < 0){ piratepush = 0; }; if (piratepush > 1){ _local5 = 0; _local11 = 1; }; if (scx < 0){ scx = 0; }; if (scy < 0){ scy = 0; }; if (_local5 == 1){ vectors[_local2] = (carrota[dire].x * 2.5); vectors[(_local2 + 1)] = (carrota[dire].y * 2.5); }; if (_local5 == 2){ vectors[_local2] = (_local7 * 2.5); vectors[(_local2 + 1)] = (_local8 * 2.5); }; if (EvalTerrain(((things[(_arg1 * 9)] + vectors[_local2]) + 25), ((things[((_arg1 * 9) + 1)] + vectors[(_local2 + 1)]) + 80)) == 0){ vectors[_local2] = 0; vectors[(_local2 + 1)] = 0; }; if (EvalTerrain((things[(_arg1 * 9)] + 25), (things[((_arg1 * 9) + 1)] + 80)) == 0){ vectors[_local2] = (0x0F00 - things[(_arg1 * 9)]); vectors[(_local2 + 1)] = (1664 - things[((_arg1 * 9) + 1)]); _local10 = Math.sqrt(((vectors[_local2] * vectors[_local2]) + (vectors[(_local2 + 1)] * vectors[(_local2 + 1)]))); vectors[_local2] = (((vectors[_local2] / _local10) * 1) * fps); vectors[(_local2 + 1)] = (((vectors[(_local2 + 1)] / _local10) * 1) * fps); }; _local12 = vectors[_local2]; _local13 = vectors[(_local2 + 1)]; SpreadPeople(_arg1, 32); _local9 = retheavy; rollcheck = 0; _local14 = 0; if (((((buttons & 8) == 8)) && ((CarringStat[_arg1] == 0))) == false){ if ((buttons & 1) == 1){ _local14 = 1; }; if ((buttons & 2) == 2){ _local14 = 2; }; if ((buttons & 4) == 4){ _local14 = 3; }; if ((buttons & 8) == 8){ _local14 = 4; }; } else { _local26 = Skillcount[3]; if (((((((buttons & 8) == 8)) && ((Skills[3] == 1)))) && ((Skillcount[3] > 0)))){ WindPawae(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)], carrota[whee].x, carrota[whee].y); Skillcount[3] = (Skillcount[3] - (fps / 12)); }; if ((((_local26 > 0)) && ((Skillcount[3] <= 0)))){ piratesay = "Your Wind Spell is over, buy more of it in the shop."; piratesaid = 100; }; }; _local15 = 0; _local16 = 0; if (teleguid == 0){ _local15 = ((things[(_arg1 * 9)] + 25) + (carrota[whee].x * 60)); _local16 = ((things[((_arg1 * 9) + 1)] + 50) + (carrota[whee].y * 60)); }; _local23 = vectors[(_arg1 * 5)]; _local24 = vectors[((_arg1 * 5) + 1)]; _local10 = Math.sqrt(((_local23 * _local23) + (_local24 * _local24))); _local23 = (_local23 / _local10); _local24 = (_local24 / _local10); PickItemWithRay(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)], _local23, _local24, 100); picked = retucloser; lookinat = 0; if (CarringStat[_arg1] == 0){ blinka = (blinka + fps); if (blinka > 32){ blinka = 0; noblink = 1; }; if (blinka > 15){ PickItemWithRay(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)], _local23, _local24, 100); lookinat = retucloser; if (lookinat == 0){ getthings((things[(_arg1 * 9)] + 45), (things[((_arg1 * 9) + 1)] + 68), 38); lookinat = Pickitem(); }; }; if (((!((olselar == lookinat))) && (!((lookinat == 0))))){ noblink = 0; blinka = 0; }; if (noblink == 1){ lookinat = 0; }; if (lookinat != 0){ olselar = lookinat; }; menumode = 0; if (charstate == 1){ charstate = 0; }; if ((((_local14 == 1)) && (!((charstate == 2))))){ charstate = 2; firstframe = 1; hero_animate = 1; }; if ((((charstate == 2)) && ((endanim == 1)))){ getthings(((things[(_arg1 * 9)] + (carrota[whee].x * 14)) + 45), ((things[((_arg1 * 9) + 1)] + (carrota[whee].y * 14)) + 45), 28); Cut(_arg1, 20); }; if (((((((!((_local14 == 3))) && ((holdspring == 1)))) && ((things[((picked * 9) + 5)] == 10)))) && ((CannonStat[picked] == 0)))){ tutraise = 3; framemax = 0; cannonmode = 1; cannonid = picked; CannonStat[cannonid] = 1; CarriedStat[cannonid] = _arg1; CarringStat[_arg1] = cannonid; }; if (((!((_local14 == 3))) && ((holdspring == 1)))){ PickItemWithRay(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)], _local23, _local24, 100); _local39 = retucloser; if (((((!((_local39 == 0))) && (!((things[((_local39 * 9) + 5)] == 10))))) && ((CarriedStat[_local39] == 0)))){ holdingitem = _local39; charstate = 1; CarriedStat[_local39] = _arg1; CarringStat[_arg1] = _local39; }; if (things[((_local39 * 9) + 5)] == 14){ tutraise = 9; }; if (things[((_local39 * 9) + 5)] == 15){ tutraise = 11; }; if (_local39 == 0){ getthings((things[(_arg1 * 9)] + 45), (things[((_arg1 * 9) + 1)] + 68), 38); _local39 = Pickitem(); if (((((!((_local39 == 0))) && (!((things[((_local39 * 9) + 5)] == 10))))) && ((CarriedStat[_local39] == 0)))){ holdingitem = _local39; charstate = 1; CarriedStat[_local39] = _arg1; CarringStat[_arg1] = _local39; }; if (things[((_local39 * 9) + 5)] == 14){ tutraise = 9; }; if (things[((_local39 * 9) + 5)] == 15){ tutraise = 11; }; }; holdspring = 0; }; if (_local14 == 3){ holdspring = 1; }; _local35 = 0; _local36 = ((1 - (carwheel / 16)) * (3.141 * 2)); _local37 = Math.sin(_local36); _local38 = Math.cos(_local36); if ((((_local14 == 2)) && ((smouse == 0)))){ SetCross(((things[(_arg1 * 9)] + (_local37 * 120)) + 37), ((things[((_arg1 * 9) + 1)] + (_local38 * 120)) + 35)); }; if ((((_local14 == 2)) && ((smouse == 1)))){ SetCross(((things[(_arg1 * 9)] + (_local7 * 120)) + 37), ((things[((_arg1 * 9) + 1)] + (_local8 * 120)) + 35)); }; if ((((_local14 == 2)) && ((charstate < 3)))){ charstate = 3; firstframe = 1; hero_animate = 1; }; if ((((((_local14 == 2)) && ((charstate == 3)))) && ((endanim == 1)))){ charstate = 4; hero_animate = 1; }; if ((((((_local14 == 2)) && ((charstate == 4)))) && ((((ObjAnim[(_arg1 * 4)] > 2.45)) && ((ObjAnim[(_arg1 * 4)] < 3.98)))))){ if (smouse == 1){ ShotBall(((things[(_arg1 * 9)] + (carrota[whee].x * 48)) + 32), ((things[((_arg1 * 9) + 1)] + (carrota[whee].y * 48)) + 42), (_local7 * 20), (_local8 * 20), 1, _arg1); } else { ShotBall(((things[(_arg1 * 9)] + (carrota[whee].x * 48)) + 32), ((things[((_arg1 * 9) + 1)] + (carrota[whee].y * 48)) + 42), (_local37 * 20), (_local38 * 20), 1, _arg1); }; ObjAnim[(_arg1 * 4)] = 4; hero_animate = 1; }; if (((!((_local14 == 2))) && ((((charstate == 3)) || ((charstate == 4)))))){ charstate = 0; }; } else { menumode = 1; if (charstate == 0){ charstate = 1; }; holdingitem = CarringStat[_arg1]; _local40 = (bounding[(holdingitem * 4)] / 2); _local41 = (bounding[((holdingitem * 4) + 1)] / 2); _local42 = 40; _local43 = -20; _local44 = -20; _local45 = whee; _local46 = 32; if (things[((holdingitem * 9) + 5)] == 15){ _local42 = 38; _local43 = -25; _local44 = -20; _local9 = 1; rollcheck = 0; }; if (things[((holdingitem * 9) + 5)] == 6){ _local42 = 40; _local43 = -50; _local44 = -25; _local46 = 47; _local9 = 1; }; if (things[((holdingitem * 9) + 5)] == 14){ _local42 = 25; _local43 = -15; _local44 = 8; _local45 = ((_local45 + 4) & 15); }; things[(holdingitem * 9)] = (((things[(_arg1 * 9)] + _local40) + (carrota[whee].x * _local42)) + _local43); things[((holdingitem * 9) + 1)] = (((things[((_arg1 * 9) + 1)] + _local41) + (carrota[whee].y * _local42)) + _local44); things[((holdingitem * 9) + 6)] = _local45; SpreadPeople(holdingitem, _local46); if (((!((things[((holdingitem * 9) + 5)] == 6))) && (!((things[((holdingitem * 9) + 5)] == 15))))){ if ((((((ally_spring == 1)) && ((tutorial == 1)))) && ((tutstep < 9)))){ ally_spring = 0; piratesay = "We'll get to that later, first SPAWN a minion with the cannon."; piratesaid = 300; }; if ((((ally_spring == 1)) && (!((_local14 == 1))))){ if (things[((holdingitem * 9) + 5)] == 14){ tutraise = 10; PlaySound(_arg1, 10); tempdisable = 1; buttons = 0; _local14 = 0; setAlly((things[(_arg1 * 9)] + (carrota[whee].x * 80)), (things[((_arg1 * 9) + 1)] + (carrota[whee].y * 80)), things[((holdingitem * 9) + 7)], 0); }; ally_spring = 0; things[((holdingitem * 9) + 5)] = 7; holdingitem = 0; charstate = 0; CarriedStat[CarringStat[_arg1]] = 0; CarringStat[_arg1] = 0; }; if (_local14 == 1){ ally_spring = 1; }; if ((((tsacri < 5)) && ((_local14 == 1)))){ ally_spring = 0; piratesay = "you need more money to spawn that."; piratesaid = 200; holdmode = 1; }; }; if (((!((_local14 == 3))) && ((holdspring == 1)))){ holdingitem = 0; charstate = 0; CarriedStat[CarringStat[_arg1]] = 0; CarringStat[_arg1] = 0; holdspring = 0; }; if (_local14 == 3){ holdspring = 1; }; if ((((((tutorial == 1)) && ((_local14 == 2)))) && ((tutstep < 11)))){ _local14 = 0; piratesay = "Better to try this later when i tell you."; piratesaid = 300; }; if ((((_local14 == 2)) && ((things[((holdingitem * 9) + 5)] == 14)))){ PlaySound(_arg1, 8); tempdisable = 1; buttons = 0; _local14 = 0; tsacri = (tsacri + 2); things[((holdingitem * 9) + 5)] = 7; holdingitem = 0; charstate = 0; CarriedStat[CarringStat[_arg1]] = 0; CarringStat[_arg1] = 0; holdspring = 0; }; if ((((_local14 == 2)) && ((things[((holdingitem * 9) + 5)] == 15)))){ PlaySound(_arg1, 8); tempdisable = 1; buttons = 0; _local14 = 0; tsacri++; things[((holdingitem * 9) + 5)] = 7; holdingitem = 0; charstate = 0; CarriedStat[CarringStat[_arg1]] = 0; CarringStat[_arg1] = 0; holdspring = 0; }; _local47 = Skillcount[2]; if ((((((((_local14 == 4)) && ((Skills[2] == 1)))) && ((Skillcount[2] > 0)))) && ((((((((things[((holdingitem * 9) + 5)] == 6)) || ((things[((holdingitem * 9) + 5)] == 10)))) || ((things[((holdingitem * 9) + 5)] == 14)))) || ((things[((holdingitem * 9) + 5)] == 15)))))){ PlaySound(_arg1, 10); tempdisable = 1; PossStat[holdingitem] = 1; PossBrain[(holdingitem * 6)] = -1; holdingitem = 0; charstate = 0; CarriedStat[CarringStat[_arg1]] = 0; CarringStat[_arg1] = 0; holdspring = 0; var _local49 = Skillcount; var _local50 = 2; var _local51 = (_local49[_local50] - 1); _local49[_local50] = _local51; }; if ((((_local47 > 0)) && ((Skillcount[2] == 0)))){ piratesay = "Your Reanimate Spell is over, buy more of it in the shop."; piratesaid = 100; }; }; oldroll = rollcheck; if ((((endanim == 1)) && ((charstate == 2)))){ charstate = 0; }; endanim = 0; if (_local9 == 1){ vectors[(_arg1 * 5)] = (vectors[(_arg1 * 5)] / 1.5); vectors[((_arg1 * 5) + 1)] = (vectors[((_arg1 * 5) + 1)] / 1.5); }; if (killwaves != null){ volumer.volume = 0; barrelr.soundTransform = volumer; }; if ((((charstate < 2)) || ((_local11 == 1)))){ _local48 = CheckClick((things[(_arg1 * 9)] + (carrota[whee].x * 90)), (things[((_arg1 * 9) + 1)] + (carrota[whee].y * 90))); if ((((((((_local5 > 0)) && ((_local48 > 1)))) && (!((things[((_local48 * 9) + 5)] == 12))))) && (((Math.abs(vectors[(_arg1 * 5)]) + Math.abs(vectors[((_arg1 * 5) + 1)])) < 0.01)))){ vectors[(_arg1 * 5)] = (carrota[whee].x * 1); vectors[((_arg1 * 5) + 1)] = (carrota[whee].y * 1); }; VectorMove(_arg1, 1, 0, 0); if (_local5 > 0){ hero_animate = 1; volumer.volume = _local9; if (killwaves != null){ barrelr.soundTransform = volumer; }; } else { hero_animate = 0; }; }; if (GoingtoDie[(_arg1 * 2)] == 1){ hero_animate = 0; }; if (hero_animate == 1){ endanim = AnimateWho(_arg1, charstate, whee, firstframe); }; firstframe = 0; } public function menupress(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:URLRequest; if (unlockbut == 1){ _local2 = _arg1.stageX; _local3 = _arg1.stageY; if ((((((((_local2 > 392)) && ((_local3 > 135)))) && ((_local2 < 632)))) && ((_local3 < 175)))){ removeEventListener(Event.ENTER_FRAME, Gameovertime); stage.removeEventListener(MouseEvent.MOUSE_UP, mouseup); stage.removeEventListener(KeyboardEvent.KEY_UP, kuup); gotoAndPlay(1, "Scene 5"); }; if ((((((((_local2 > 392)) && ((_local3 > 177)))) && ((_local2 < 636)))) && ((_local3 < 341)))){ _local4 = new URLRequest("http://twizl.com/"); navigateToURL(_local4, "_blank"); }; }; } public function Death(){ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; _local1 = 0; while (_local1 < (thingcount + 1)) { if (GoingtoDie[(_local1 * 2)] == 1){ _local2 = things[((_local1 * 9) + 5)]; _local3 = 0; _local4 = (_local1 * 9); _local5 = 0; if (GoingtoDie[((_local1 * 2) + 1)] == 19){ _local5 = 1; }; if (_local2 == 4){ AnimateWho(_local1, 5, (things[((_local1 * 9) + 6)] & 15), _local5); score = (score + (500 * scoremulti)); }; if (_local2 == 5){ things[(_local4 + 7)] = int(((16 - GoingtoDie[((_local1 * 2) + 1)]) / 4)); }; if (_local2 == 8){ AnimateWho(_local1, 5, (things[((_local1 * 9) + 6)] & 15), _local5); }; if (_local2 == 10){ things[(_local4 + 7)] = 9; }; if (_local2 == 12){ AnimateWho(_local1, 5, (things[((_local1 * 9) + 6)] & 15), _local5); }; if (_local2 == 15){ things[(_local4 + 7)] = 1; }; if (_local2 == 18){ score = (score + 500); _local6 = TentacleStat[((_local1 * 4) + 1)]; _local7 = 0; while (_local7 < (thingcount + 1)) { if ((((TentacleStat[((_local7 * 4) + 1)] == _local6)) && ((TentacleStat[(_local7 * 4)] == 2)))){ CarriedStat[CarringStat[_local7]] = 0; CarringStat[_local7] = 0; }; if ((((TentacleStat[((_local7 * 4) + 1)] == _local6)) && ((((EvalTerrain(things[(_local7 * 9)], things[((_local7 * 9) + 1)]) == 0)) || ((_local1 == _local7)))))){ tentacontrol[TentacleStat[((_local7 * 4) + 1)]] = 2; CarriedStat[CarringStat[_local7]] = 0; CarringStat[_local7] = 0; kragrabbed[tentagrab[TentacleStat[((_local7 * 4) + 1)]]] = 0; tentagrab[TentacleStat[((_local7 * 4) + 1)]] = 0; tentaclehunt[TentacleStat[((_local7 * 4) + 1)]] = 0; things[((_local7 * 9) + 5)] = 7; }; _local7++; }; }; GoingtoDie[((_local1 * 2) + 1)] = (GoingtoDie[((_local1 * 2) + 1)] - (1 * fps)); if (GoingtoDie[((_local1 * 2) + 1)] < 0){ if (things[((_local1 * 9) + 5)] == 5){ TalkEvents[3] = (TalkEvents[3] | 1); }; if ((((things[((_local1 * 9) + 5)] == 5)) && ((tutorial == 0)))){ Explodeship(_local1); }; if ((((things[((_local1 * 9) + 5)] == 5)) && ((tutorial == 1)))){ Explodeshipt(_local1); }; if (things[((_local1 * 9) + 5)] == 10){ ObjStat[(CannonStat[_local1] * 6)] = -1; }; things[((_local1 * 9) + 5)] = 7; GoingtoDie[(_local1 * 2)] = 0; }; }; _local1++; }; } public function setAlly(_arg1, _arg2, _arg3, _arg4){ var _local5:*; var _local6:*; var _local7:*; if (tsacri > 4){ tsacri = (tsacri - 5); _local5 = 0; _local6 = 0; _local7 = 0; while (_local7 < (thingcount + 1)) { if (things[((_local7 * 9) + 5)] == 7){ _local5 = _local7; _local7 = (thingcount + 1); _local6 = 1; }; _local7++; }; if (_local6 == 0){ thingcount++; _local5 = thingcount; }; vectors[(_local5 * 5)] = 0; vectors[((_local5 * 5) + 1)] = 0; vectors[((_local5 * 5) + 2)] = 0; vectors[((_local5 * 5) + 3)] = 0; vectors[((_local5 * 5) + 4)] = 0; things[(_local5 * 9)] = _arg1; things[((_local5 * 9) + 1)] = _arg2; things[((_local5 * 9) + 2)] = 0; things[((_local5 * 9) + 5)] = 8; things[((_local5 * 9) + 6)] = 0; things[((_local5 * 9) + 7)] = 0; things[((_local5 * 9) + 8)] = 0; ObjStat[(_local5 * 6)] = 100; if (_arg3 == 0){ ObjStat[(_local5 * 6)] = 120; }; ObjStat[((_local5 * 6) + 1)] = 10; ObjStat[((_local5 * 6) + 2)] = 10; ObjStat[((_local5 * 6) + 3)] = 0; ObjStat[((_local5 * 6) + 4)] = 0; ObjStat[((_local5 * 6) + 5)] = 0; ObjAnim[(_local5 * 4)] = 0; ObjAnim[((_local5 * 4) + 1)] = 0; ObjAnim[((_local5 * 4) + 2)] = 0; ObjAnim[((_local5 * 4) + 3)] = 0; Spooked[(_local5 * 3)] = 0; Spooked[((_local5 * 3) + 1)] = 0; Spooked[((_local5 * 3) + 2)] = 0; SkullStat[(_local5 * 3)] = _arg3; SkullStat[((_local5 * 3) + 1)] = _arg4; SkullStat[((_local5 * 3) + 2)] = 0; CallSmoke((_arg1 + 40), (_arg2 + 30), 3); if (_arg4 != 0){ CannonStat[_arg4] = _local5; CarriedStat[_arg4] = _local5; CarringStat[_local5] = _arg4; }; bounding[(_local5 * 4)] = 64; bounding[((_local5 * 4) + 1)] = 84; }; } public function Explodeship(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; _local2 = 0; _local3 = 0; _local4 = ShipType[_arg1]; if ((ShipStat[((_arg1 * 3) + 1)] + ShipStat[((_arg1 * 3) + 2)]) == 0){ _local4++; }; _local5 = (0x0F00 - things[(_arg1 * 9)]); _local6 = (1664 - things[((_arg1 * 9) + 1)]); _local7 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); _local8 = (4000 - (_local7 / 2)); if (_local8 < 500){ _local8 = 500; }; score = (score + (_local8 * (_local4 + 1))); _local3 = (int((Math.random() * (2 + (_local4 * 2)))) + 2); _local2 = 0; while (_local2 < _local3) { getFreeRandomSlot(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)]); setWeapon(rax, ray, 0); _local2++; }; _local3 = (int((Math.random() * (2 + (_local4 * 2)))) + 1); _local2 = 0; while (_local2 < _local3) { getFreeRandomSlot(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)]); setWeapon(rax, ray, 1); _local2++; }; _local3 = (int((Math.random() * (2 + (_local4 * 2)))) + 1); _local2 = 0; while (_local2 < _local3) { getFreeRandomSlot(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)]); setBarrel(rax, ray); _local2++; }; _local3 = (int((Math.random() * (2 + (_local4 * 2)))) + 0); _local2 = 0; while (_local2 < _local3) { getFreeRandomSlot(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)]); setCannon(rax, ray); _local2++; }; _local9 = 0; if (ShipStat[((_arg1 * 3) + 2)] > 0){ _local9 = 1; }; _local3 = ((int((Math.random() * (2 + (_local4 * 2)))) + 0) + _local9); _local2 = 0; while (_local2 < _local3) { getFreeRandomSlot(things[(_arg1 * 9)], things[((_arg1 * 9) + 1)]); setTreasure(rax, ray); tsacri = (tsacri + 10); _local2++; }; } public function statemachine(_arg1, _arg2, _arg3, _arg4, _arg5){ ret1 = "Attack"; ret2 = "Jump"; ret3 = "Draw Item"; ret4 = ""; if (_arg3 == 1){ ret1 = "Attack Weap."; ret3 = "Store Item"; ret4 = "Throw"; }; if ((((ret1 == "Attack Weap.")) && ((_arg4 == "Fire Stone")))){ ret1 = "Set On Fire"; }; if (_arg1 == 1){ ret1 = "Cut"; ret2 = "Climb"; ret3 = "Draw Item"; }; if ((((_arg1 == 1)) && ((_arg4 == "rope")))){ ret4 = "tie"; }; if (_arg1 == 2){ ret1 = "Cut"; ret2 = "Jump"; ret3 = "Draw item"; }; if ((((_arg1 == 2)) && ((_arg4 == "rope")))){ ret4 = "Tie Up"; }; if ((((ret1 == "Cut")) && ((_arg4 == "Fire Stone")))){ ret1 = "Set On Fire"; }; if (_arg1 == 3){ ret1 = "Break"; ret2 = "Climb"; ret3 = "Draw item"; ret4 = "Drag"; }; if (_arg1 == 4){ ret1 = "Pick Up"; ret2 = "Jump"; ret3 = "Draw item"; ret4 = ""; }; if ((((_arg1 == 6)) && ((_arg3 == 0)))){ ret4 = "Drink"; }; if ((((_arg1 == 6)) && ((_arg4 == "pot")))){ ret4 = "Fill Bowl"; }; if (_arg1 == 8){ ret2 = "Climb"; ret4 = "Drag"; }; if ((((_arg1 == 8)) && ((_arg4 == "rope")))){ ret4 = "Tie Up"; }; if ((((((_arg1 == 8)) && ((_arg4 == "pot")))) && ((_arg5 == "cow")))){ ret4 = "Milk"; _arg2 = 0; }; if (_arg1 == 9){ ret2 = "Climb"; }; switch (_arg2){ case 1: if (ret1 == "Attack"){ ret1 = "(Attack)"; ret2 = "Dig"; ret3 = "Shout"; }; if (ret1 == "Attack Weap."){ ret1 = "(Attack Weap.)"; ret2 = "???"; ret3 = "Shout"; }; if (ret1 == "Cut"){ ret1 = "(Cut)"; ret2 = "Pick Branch"; ret3 = "Pick Vine"; ret4 = "Pick Fruit"; }; if (_arg1 == 7){ ret2 = "Bury"; }; break; case 2: break; case 3: if (_arg3 == 0){ ret1 = "item 1"; ret2 = "item 2"; ret3 = "(Draw item)"; ret4 = "item 3"; }; break; case 4: if (ret4 == "Throw"){ ret1 = "Throw at"; ret2 = "Stack"; ret3 = "Drop"; ret4 = "(Throw)"; }; if (ret4 == "Drag"){ ret1 = "Drag"; ret2 = "Roll"; ret4 = "(Drag)"; }; if (ret4 == "Tie Up"){ ret3 = "Harness"; ret4 = "(Tie Up)"; }; break; }; } public function MoveAsRepeller(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; _local2 = (things[(_arg1 * 9)] - 25); _local3 = (things[((_arg1 * 9) + 1)] - 50); _local5 = 0; _local6 = 0; _local7 = 0; while (_local7 < (thingcount + 1)) { if ((((things[((_local7 * 9) + 5)] > 2)) && ((things[((_local7 * 9) + 5)] < 19)))){ _local5 = (things[(_local7 * 9)] - _local2); _local6 = (things[((_local7 * 9) + 1)] - _local3); _local4 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); if (_local4 < 30){ _local5 = (_local5 / _local4); _local6 = (_local6 / _local4); things[(_local7 * 9)] = (things[(_local7 * 9)] + ((_local5 * (_local4 / 4)) * fps)); things[((_local7 * 9) + 1)] = (things[((_local7 * 9) + 1)] + ((_local6 * (_local4 / 4)) * fps)); }; }; _local7++; }; } public function MoveAsTentacle(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:*; var _local19:*; var _local20:*; var _local21:*; var _local22:*; var _local23:*; var _local24:*; var _local25:*; Hardman[_arg1] = 0; _local3 = 0; _local6 = 0; _local7 = 0; _local8 = orithing; while (_local8 < (thingcount + 1)) { if ((((TentacleStat[((_local8 * 4) + 1)] == TentacleStat[((_arg1 * 4) + 1)])) && ((things[((_local8 * 9) + 5)] == 18)))){ if (TentacleStat[(_local8 * 4)] == 0){ _local4 = _local8; }; if (TentacleStat[(_local8 * 4)] == 2){ _local5 = _local8; }; if (TentacleStat[((_local8 * 4) + 2)] == (TentacleStat[((_arg1 * 4) + 2)] - 1)){ _local2 = _local8; }; if (TentacleStat[((_local8 * 4) + 2)] == 1){ _local6 = _local8; }; if (TentacleStat[((_local8 * 4) + 2)] == 2){ _local3 = _local8; }; _local7++; }; _local8++; }; if (_local3 == 0){ _local3 = _local6; }; _local9 = TentacleStat[((_arg1 * 4) + 1)]; if (_local7 > 60){ tentacontrol[_local9] = 1; }; if (TentacleStat[(_arg1 * 4)] == 0){ _local21 = _local3; _local10 = (things[(_arg1 * 9)] - things[(_local21 * 9)]); _local11 = (things[((_arg1 * 9) + 1)] - things[((_local21 * 9) + 1)]); _local12 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11))); _local10 = (_local10 / _local12); _local11 = (_local11 / _local12); things[((_arg1 * 9) + 7)] = carrota[int(things[((_arg1 * 9) + 6)])].width; }; if (TentacleStat[(_arg1 * 4)] == 1){ _local10 = (things[(tentaclehunt[_local9] * 9)] - things[(_arg1 * 9)]); _local11 = (things[((tentaclehunt[_local9] * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local12 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11))); _local10 = (_local10 / _local12); _local11 = (_local11 / _local12); if ((((tentacontrol[_local9] == 2)) || ((tentacontrol[_local9] == 3)))){ _local10 = 0; _local11 = 0; }; _local22 = ((TentacleStat[((_arg1 * 4) + 2)] / _local7) * 1); vectors[(_arg1 * 5)] = ((_local10 * fps) * _local22); vectors[((_arg1 * 5) + 1)] = ((_local11 * fps) * _local22); SpreadPeople(_arg1, 55); things[(_arg1 * 9)] = (things[(_arg1 * 9)] + vectors[(_arg1 * 5)]); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + vectors[((_arg1 * 5) + 1)]); _local21 = _local2; _local10 = (things[(_arg1 * 9)] - things[(_local21 * 9)]); _local11 = (things[((_arg1 * 9) + 1)] - things[((_local21 * 9) + 1)]); _local12 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11))); things[((_arg1 * 9) + 7)] = (carrota[int(things[((_arg1 * 9) + 6)])].width + 9); }; if (TentacleStat[(_arg1 * 4)] == 2){ _local23 = 2; if (tentagrab[_local9] == 0){ _local10 = (things[(tentaclehunt[_local9] * 9)] - things[(_arg1 * 9)]); _local11 = (things[((tentaclehunt[_local9] * 9) + 1)] - things[((_arg1 * 9) + 1)]); } else { _local10 = (things[(_local4 * 9)] - things[(_arg1 * 9)]); _local11 = (things[((_local4 * 9) + 1)] - things[((_arg1 * 9) + 1)]); things[(tentagrab[_local9] * 9)] = (things[(_arg1 * 9)] - 20); things[((tentagrab[_local9] * 9) + 1)] = (things[((_arg1 * 9) + 1)] - 20); _local23 = 0; }; _local12 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11))); _local10 = (_local10 / _local12); _local11 = (_local11 / _local12); if ((((tentacontrol[_local9] == 2)) || ((tentacontrol[_local9] == 3)))){ _local10 = 0; _local11 = 0; _local12 = 1000000; }; if ((((_local12 < 90)) && (!((tentagrab[_local9] == 0))))){ if (things[((tentagrab[_local9] * 9) + 5)] == 6){ _local25 = (tsacri % 10); if (_local25 > 0){ tsacri = (tsacri - _local25); } else { tsacri = (tsacri - 10); }; }; things[((tentagrab[_local9] * 9) + 5)] = 7; if (things[((CarriedStat[tentagrab[_local9]] * 9) + 5)] == 8){ things[((CarriedStat[tentagrab[_local9]] * 9) + 5)] = 7; }; kragrabbed[tentagrab[_local9]] = 0; CarringStat[_arg1] = 0; CarriedStat[tentagrab[_local9]] = 0; tentagrab[_local9] = 0; tentacontrol[_local9] = 1; }; if ((((_local12 < 50)) && ((tentagrab[_local9] == 0)))){ tentagrab[_local9] = tentaclehunt[_local9]; kragrabbed[tentaclehunt[_local9]] = _local9; if (things[((CarriedStat[tentagrab[_local9]] * 9) + 5)] == 8){ things[((CarriedStat[tentagrab[_local9]] * 9) + 5)] = 7; }; CarringStat[_arg1] = tentagrab[_local9]; CarriedStat[tentagrab[_local9]] = _arg1; }; vectors[(_arg1 * 5)] = ((_local10 * fps) * 2); vectors[((_arg1 * 5) + 1)] = ((_local11 * fps) * 2); SpreadPeople(_arg1, 55); things[(_arg1 * 9)] = (things[(_arg1 * 9)] + vectors[(_arg1 * 5)]); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + vectors[((_arg1 * 5) + 1)]); _local24 = (TentacleStat[((_arg1 * 4) + 2)] * 30); _local10 = (things[(_arg1 * 9)] - things[(_local4 * 9)]); _local11 = (things[((_arg1 * 9) + 1)] - things[((_local4 * 9) + 1)]); _local12 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11))); if (_local12 > _local24){ _local10 = ((_local10 / _local12) * _local24); _local11 = ((_local11 / _local12) * _local24); things[(_arg1 * 9)] = (things[(_local4 * 9)] + _local10); things[((_arg1 * 9) + 1)] = (things[((_local4 * 9) + 1)] + _local11); }; _local21 = _local2; _local10 = (things[(_local21 * 9)] - things[(_arg1 * 9)]); _local11 = (things[((_local21 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local12 = Math.sqrt(((_local10 * _local10) + (_local11 * _local11))); _local10 = (_local10 / _local12); _local11 = (_local11 / _local12); things[((_arg1 * 9) + 7)] = (((carrota[int(things[((_arg1 * 9) + 6)])].width * 3) + 18) + _local23); }; _local15 = 0; _local16 = 0.03; _local17 = 30000; _local20 = 0; while (_local20 < 16) { _local18 = (_local10 - carrota[(_local20 & 15)].x); _local19 = (_local11 - carrota[(_local20 & 15)].y); _local16 = Math.sqrt(((_local18 * _local18) + (_local19 * _local19))); if (_local17 > _local16){ _local17 = _local16; _local15 = _local20; }; _local20++; }; things[((_arg1 * 9) + 6)] = _local15; } public function rasterbox2(_arg1, _arg2, _arg3, _arg4, _arg5){ framebuffer.fillRect(new Rectangle(_arg1, _arg2, 2, ((_arg4 - _arg2) + 2)), _arg5); framebuffer.fillRect(new Rectangle(_arg3, _arg2, 2, ((_arg4 - _arg2) + 2)), _arg5); framebuffer.fillRect(new Rectangle(_arg1, _arg4, ((_arg3 - _arg1) + 2), 2), _arg5); framebuffer.fillRect(new Rectangle(_arg1, _arg2, ((_arg3 - _arg1) + 2), 2), _arg5); } public function EvalTerrain(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:Number; _local3 = int((_arg1 / 128)); _local4 = int((_arg2 / 64)); _local5 = 0; if ((((_local3 < 0)) || ((_local3 > 511)))){ _local5 = 1; }; if ((((_local4 < 0)) || ((_local4 > 511)))){ _local5 = 1; }; if (_local5 == 0){ _local6 = map[(_local3 + (_local4 * 0x0100))]; } else { _local6 = 0; }; return (_local6); } public function StageShow(_arg1){ var _local2:Matrix; stagebig.text = ("Stage " + String(_arg1)); _local2 = new Matrix(); _local2.a = 1; _local2.d = 1; _local2.tx = 150; _local2.ty = 174; stagebig.textColor = 0; framebuffer.draw(stagebig, _local2); _local2.a = 1; _local2.d = 1; _local2.tx = (150 - 3); _local2.ty = (174 - 3); stagebig.textColor = (((0xFF * 65536) + (0xFF * 0x0100)) + 0xFF); framebuffer.draw(stagebig, _local2); if (_arg1 == 1){ stagesmall.text = "Single weak attack from a random direction by a Single Ship."; piratesay = "Some 'live' pirates are lost in the sea and found the island."; piratesaid = 250; holdmode = 1; }; if (_arg1 == 2){ stagesmall.text = "Two ships coming from the same point."; piratesay = "Their partners track their way into here."; piratesaid = 250; holdmode = 1; }; if (_arg1 == 3){ stagesmall.text = "Three ships coming from the same point."; piratesay = "They don't learn!"; piratesaid = 250; holdmode = 1; }; if (_arg1 == 4){ stagesmall.text = "Three ships coming from random directions."; piratesay = "Now that's more like it."; piratesaid = 250; holdmode = 1; }; if (_arg1 == 5){ stagesmall.text = "Two Pirate Ships and a Explorer ship arrive from the same random direction."; piratesay = "We're famous, the crown is here."; piratesaid = 250; holdmode = 1; }; if (_arg1 == 6){ stagesmall.text = "Two Explorer ships following each other at distance and three scout Pirate ships."; piratesay = "This is Unholy Island, not a vacation spot!"; piratesaid = 250; holdmode = 1; }; if (_arg1 == 7){ stagesmall.text = "Three Explorer ships from all directions."; piratesay = "They put a prize on me dead head."; piratesaid = 250; holdmode = 1; }; if (_arg1 == 8){ stagesmall.text = "Three Explorer ships and three pirate ships from all directions."; piratesay = "This is getting crowded."; piratesaid = 250; holdmode = 1; }; if (_arg1 == 9){ stagesmall.text = "Six Pirate ships invade from all directions."; piratesay = "Cheap Move."; piratesaid = 250; holdmode = 1; }; if (_arg1 == 10){ stagesmall.text = "Six Explorer Ships and six Pirate ships from all directions."; piratesay = "Bring me twice of that and we have a war."; piratesaid = 250; holdmode = 1; }; if (_arg1 == 11){ stagesmall.text = "The Kraken."; piratesay = "It's him! I'll eat his eyes before the sunset!"; piratesaid = 250; holdmode = 1; }; if (_arg1 == 12){ stagesmall.text = "Random Ships!"; }; if (_arg1 == 16){ stagesmall.text = "Even More Random Ships!"; }; if (_arg1 == 21){ stagesmall.text = "Thats like...a LOT of ships"; }; if (_arg1 == 26){ stagesmall.text = "you re still here?"; }; if (_arg1 == 31){ stagesmall.text = "okay,this time you won!"; }; if (_arg1 == 36){ stagesmall.text = "this is madness!"; }; if (_arg1 == 42){ stagesmall.text = "now we just need the question!"; }; if (_arg1 == 43){ stagesmall.text = "more fighting!"; }; if (_arg1 == 50){ stagesmall.text = "you re my hero!"; }; if (_arg1 == 51){ stagesmall.text = "ships ships ships ships ships...!"; }; if (_arg1 == 100){ stagesmall.text = "godlike playing,do not disturb"; }; _local2 = new Matrix(); _local2.a = 1; _local2.d = 1; _local2.tx = 144; _local2.ty = 223; stagesmall.textColor = 0; framebuffer.draw(stagesmall, _local2); _local2.a = 1; _local2.d = 1; _local2.tx = (144 - 1); _local2.ty = (223 - 1); stagesmall.textColor = (((0xFF * 65536) + (0xFF * 0x0100)) + 0xFF); framebuffer.draw(stagesmall, _local2); } public function dinopress(_arg1:MouseEvent):void{ var _local2:URLRequest; if (unlockbut == 1){ _local2 = new URLRequest("http://twizl.com/"); navigateToURL(_local2, "_blank"); }; } public function lagarto(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://twizl.com/"); navigateToURL(_local2, "_blank"); } public function chuup(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:*; var _local5:*; if (ghosthold == 1){ _local2 = (840 / (640 + ((100 - zoom) * 2))); _local3 = (680 / (480 + ((100 - zoom) * 2))); xmouse = (_arg1.stageX * _local2); ymouse = (_arg1.stageY * _local3); _local4 = things[((ghostid * 9) + 8)]; _local5 = (Math.abs((things[(_local4 * 9)] - ((xmouse + scx) - goffx))) + Math.abs((things[((_local4 * 9) + 1)] - ((ymouse + scy) - goffy)))); if (_local5 < 20){ things[((ghostid * 9) + 5)] = 7; }; }; ghosthold = 0; ghostid = 0; smouse = 0; zoompicked = 0; } public function rasterbox(_arg1, _arg2, _arg3, _arg4, _arg5){ framebuffer.fillRect(new Rectangle(_arg1, _arg2, _arg3, (_arg2 + 2)), _arg5); } public function setGhost(_arg1, _arg2, _arg3){ var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; _local4 = 0; _local5 = 0; _local6 = 0; if (things[((_arg3 * 9) + 5)] == 6){ _local4 = 1; _local5 = (spapointer[4] + carrota[int(things[((_arg3 * 9) + 6)])].width); _local6 = carrota[int(things[((_arg3 * 9) + 6)])].height; }; if (things[((_arg3 * 9) + 5)] == 8){ _local4 = 1; _local5 = spapointer[5]; _local6 = 0; }; if (things[((_arg3 * 9) + 5)] == 10){ _local4 = 1; _local5 = (spapointer[6] + (carrota[int(things[((_arg3 * 9) + 6)])].width * 5)); _local6 = carrota[int(things[((_arg3 * 9) + 6)])].height; }; if (things[((_arg3 * 9) + 5)] == 14){ _local4 = 1; _local5 = ((spapointer[8] + carrota[int(things[((_arg3 * 9) + 6)])].width) + (things[((_arg3 * 9) + 7)] * 9)); _local6 = carrota[int(things[((_arg3 * 9) + 6)])].height; }; if (things[((_arg3 * 9) + 5)] == 15){ _local4 = 1; _local5 = spapointer[9]; }; if ((((SkullStat[(_arg3 * 3)] == 2)) && ((things[((_arg3 * 9) + 5)] == 8)))){ _local8 = SkullStat[((_arg3 * 3) + 1)]; _local4 = 1; _local5 = (spapointer[6] + (carrota[int(things[((_local8 * 9) + 6)])].width * 5)); _local6 = carrota[int(things[((_local8 * 9) + 6)])].height; }; _local7 = 0; if (_local4 == 1){ _local9 = 0; _local10 = 0; _local11 = 0; while (_local11 < (thingcount + 1)) { if ((((things[((_local11 * 9) + 5)] == 16)) && ((things[((_local11 * 9) + 8)] == _arg3)))){ _local9 = _local11; _local11 = (thingcount + 1); _local10 = 1; }; _local11++; }; if (_local10 == 0){ _local11 = 0; while (_local11 < (thingcount + 1)) { if (things[((_local11 * 9) + 5)] == 7){ _local9 = _local11; _local11 = (thingcount + 1); _local10 = 1; }; _local11++; }; }; if (_local10 == 0){ thingcount++; _local9 = thingcount; }; vectors[(_local9 * 5)] = 0; vectors[((_local9 * 5) + 1)] = 0; vectors[((_local9 * 5) + 2)] = 0; vectors[((_local9 * 5) + 3)] = 10; vectors[((_local9 * 5) + 4)] = 0; things[(_local9 * 9)] = _arg1; things[((_local9 * 9) + 1)] = _arg2; things[((_local9 * 9) + 2)] = 0; things[((_local9 * 9) + 5)] = 16; things[((_local9 * 9) + 6)] = _local5; things[((_local9 * 9) + 7)] = (_local6 + 8); things[((_local9 * 9) + 8)] = _arg3; _local7 = _local9; }; return (_local7); } public function getcutthings(_arg1, _arg2, _arg3, _arg4){ var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; retusiz = 0; _local5 = 0; _local10 = (_arg1 - _arg3); _local11 = (_arg2 - _arg3); _local12 = (_arg1 + _arg3); _local13 = (_arg2 + _arg3); _local14 = 0; _local15 = 0; if (_arg4 == 0){ _local15 = AllyC; } else { _local15 = EnemyC; }; _local16 = 0; while (_local16 < _local15) { if (_arg4 == 0){ _local14 = AllyL[_local16]; } else { _local14 = EnemyL[_local16]; }; _local5 = (_local14 * 9); _local6 = things[_local5]; _local7 = things[(_local5 + 1)]; _local8 = (things[_local5] + bounding[(_local14 * 4)]); _local9 = (things[(_local5 + 1)] + bounding[((_local14 * 4) + 1)]); if ((((((((((_local6 > _local10)) && ((_local6 < _local12)))) || ((((_local8 > _local10)) && ((_local8 < _local12)))))) || ((((_local10 > _local6)) && ((_local10 < _local8)))))) || ((((_local12 > _local6)) && ((_local12 < _local8)))))){ if ((((((((((_local7 > _local11)) && ((_local7 < _local13)))) || ((((_local9 > _local11)) && ((_local9 < _local13)))))) || ((((_local11 > _local7)) && ((_local11 < _local9)))))) || ((((_local13 > _local7)) && ((_local13 < _local9)))))){ retucol[retusiz] = _local14; retusiz++; }; }; _local16++; }; } public function TreasurePower(){ var _local1:*; var _local2:*; var _local3:*; var _local4:*; _local1 = 0; _local2 = 0; _local3 = 0; while (_local3 < (thingcount + 1)) { if (things[((_local3 * 9) + 5)] == 6){ _local1++; }; if (things[((_local3 * 9) + 5)] == 8){ _local2++; }; _local3++; }; tpow = (_local1 * 2); _local4 = (_local2 - tpow); if (_local2 > tpow){ _local3 = (thingcount + 1); while (_local3 > 1) { if ((((things[((_local3 * 9) + 5)] == 8)) && ((_local4 > 0)))){ ObjStat[(_local3 * 6)] = (ObjStat[(_local3 * 6)] - (1 * fps)); _local4--; }; if (_local4 < 1){ _local3 = 0; }; _local3--; }; }; if (_local1 == 0){ ObjStat[(t_player * 6)] = (ObjStat[(t_player * 6)] - (1 * fps)); }; } public function SetOffset(_arg1, _arg2){ if (things[((_arg1 * 9) + 5)] == 12){ if ((((_arg2 == 0)) || ((_arg2 == 1)))){ ObjAnim[((_arg1 * 4) + 1)] = 0; ObjAnim[((_arg1 * 4) + 2)] = 0; }; if (_arg2 == 2){ ObjAnim[((_arg1 * 4) + 1)] = -24; ObjAnim[((_arg1 * 4) + 2)] = -16; }; if ((((_arg2 == 3)) || ((_arg2 == 4)))){ ObjAnim[((_arg1 * 4) + 1)] = -16; ObjAnim[((_arg1 * 4) + 2)] = -14; }; if (_arg2 == 5){ ObjAnim[((_arg1 * 4) + 1)] = -29; ObjAnim[((_arg1 * 4) + 2)] = -2; }; }; if (things[((_arg1 * 9) + 5)] == 8){ if ((((_arg2 == 0)) || ((_arg2 == 1)))){ ObjAnim[((_arg1 * 4) + 1)] = 0; ObjAnim[((_arg1 * 4) + 2)] = 0; }; if (_arg2 == 2){ ObjAnim[((_arg1 * 4) + 1)] = -26; ObjAnim[((_arg1 * 4) + 2)] = -31; }; if ((((_arg2 == 3)) || ((_arg2 == 4)))){ ObjAnim[((_arg1 * 4) + 1)] = -26; ObjAnim[((_arg1 * 4) + 2)] = -30; }; if (_arg2 == 5){ ObjAnim[((_arg1 * 4) + 1)] = -43; ObjAnim[((_arg1 * 4) + 2)] = -9; }; }; if (things[((_arg1 * 9) + 5)] == 4){ if ((((_arg2 == 0)) || ((_arg2 == 1)))){ ObjAnim[((_arg1 * 4) + 1)] = 0; ObjAnim[((_arg1 * 4) + 2)] = 0; }; if (_arg2 == 2){ ObjAnim[((_arg1 * 4) + 1)] = -38; ObjAnim[((_arg1 * 4) + 2)] = -2; }; if ((((_arg2 == 3)) || ((_arg2 == 4)))){ ObjAnim[((_arg1 * 4) + 1)] = -24; ObjAnim[((_arg1 * 4) + 2)] = -3; }; if (_arg2 == 5){ ObjAnim[((_arg1 * 4) + 1)] = -17; ObjAnim[((_arg1 * 4) + 2)] = -2; }; }; } public function MoveTentacleZig(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; _local2 = 0; _local3 = 0; while (_local3 < 100) { tentaglue[(_local3 * 4)] = 55555; _local3++; }; _local3 = orithing; while (_local3 < (thingcount + 1)) { if (TentacleStat[((_local3 * 4) + 1)] == _arg1){ _local5 = TentacleStat[((_local3 * 4) + 2)]; tentaglue[(_local5 * 4)] = things[(_local3 * 9)]; tentaglue[((_local5 * 4) + 1)] = things[((_local3 * 9) + 1)]; if (things[((_local3 * 9) + 5)] != 18){ tentaglue[(_local5 * 4)] = 55555; }; tentaglue[((_local5 * 4) + 2)] = _local3; tentaglue[((_local5 * 4) + 3)] = TentacleStat[((_local3 * 4) + 0)]; if (_local2 < _local5){ _local2 = _local5; }; }; _local3++; }; _local4 = 0; while (_local4 < 10) { _local3 = 0; while (_local3 < _local2) { _local6 = (tentaglue[(_local3 * 4)] - tentaglue[((_local3 + 1) * 4)]); _local7 = (tentaglue[((_local3 * 4) + 1)] - tentaglue[(((_local3 + 1) * 4) + 1)]); _local8 = (25 / Math.sqrt(((_local6 * _local6) + (_local7 * _local7)))); _local8 = ((_local8 + 1) / 2); if ((((isNaN(_local8) == true)) || ((_local8 == 0)))){ _local8 = 1; }; _local9 = ((tentaglue[(_local3 * 4)] + tentaglue[((_local3 + 1) * 4)]) / 2); _local10 = ((tentaglue[((_local3 * 4) + 1)] + tentaglue[(((_local3 + 1) * 4) + 1)]) / 2); if (isNaN(_local9) == true){ _local9 = 0; }; if (isNaN(_local10) == true){ _local10 = 0; }; if (((!((tentaglue[(_local3 * 4)] == 55555))) && (!((tentaglue[((_local3 + 1) * 4)] == 55555))))){ tentaglue[(_local3 * 4)] = (((tentaglue[(_local3 * 4)] - _local9) * _local8) + _local9); tentaglue[((_local3 * 4) + 1)] = (((tentaglue[((_local3 * 4) + 1)] - _local10) * _local8) + _local10); _local11 = (((tentaglue[((_local3 + 1) * 4)] - _local9) * _local8) + _local9); _local12 = (((tentaglue[(((_local3 + 1) * 4) + 1)] - _local10) * _local8) + _local10); if ((((isNaN(_local11) == false)) && ((isNaN(_local12) == false)))){ tentaglue[((_local3 + 1) * 4)] = _local11; tentaglue[(((_local3 + 1) * 4) + 1)] = _local12; }; }; _local3++; }; _local4++; }; _local3 = 1; while (_local3 < _local2) { _local5 = tentaglue[((_local3 * 4) + 2)]; if (tentaglue[(_local3 * 4)] != 55555){ things[(_local5 * 9)] = tentaglue[(_local3 * 4)]; things[((_local5 * 9) + 1)] = tentaglue[((_local3 * 4) + 1)]; }; _local3++; }; } public function pplay(_arg1:MouseEvent):void{ Main_Menu.visible = false; Play_Button.visible = false; Load_Button.visible = false; Score_Button.visible = false; More_Button.visible = false; actstra.visible = true; LoadGameShow.visible = false; } public function Sakujo(){ var _local1:*; _local1 = 0; while (_local1 < (thingcount + 1)) { if ((((((((((((((things[((_local1 * 9) + 5)] == 4)) || ((things[((_local1 * 9) + 5)] == 5)))) || ((things[((_local1 * 9) + 5)] == 8)))) || ((things[((_local1 * 9) + 5)] == 10)))) || ((things[((_local1 * 9) + 5)] == 12)))) || ((things[((_local1 * 9) + 5)] == 15)))) || ((things[((_local1 * 9) + 5)] == 18)))){ if ((((ObjStat[(_local1 * 6)] < 0)) && (!((GoingtoDie[(_local1 * 2)] == 1))))){ CarriedStat[CarringStat[_local1]] = 0; CarringStat[_local1] = 0; GoingtoDie[(_local1 * 2)] = 1; GoingtoDie[((_local1 * 2) + 1)] = deathtime[things[((_local1 * 9) + 5)]]; if (things[((_local1 * 9) + 5)] == 5){ PlaySound(_local1, 5); }; }; }; _local1++; }; } public function Gameovertime(_arg1:Event):void{ gameovertimer--; if ((gameovertimer & 32) == 32){ handmove.y = 201; } else { handmove.y = 2000; }; } public function pmore(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://twizl.com/"); navigateToURL(_local2, "_blank"); } public function WaveInit(){ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; _local1 = 0; _local2 = 0; _local3 = 0; _local4 = 0; _local5 = 0; _local6 = 0; _local7 = 0; _local8 = 0; _local9 = 0; while (_local9 < 8) { _local10 = 5; _local11 = 100; if ((((_local9 > -1)) && ((_local9 < 2)))){ _local10 = 7; _local11 = 60; }; if ((((_local9 > 3)) && ((_local9 < 6)))){ _local10 = 9; }; _local12 = 0; while (_local12 < _local10) { _local1 = ((_local9 + 1) & 7); _local2 = ((waypoint[_local9].x * ((_local10 - _local12) / _local10)) + (waypoint[_local1].x * (_local12 / _local10))); _local3 = ((waypoint[_local9].y * ((_local10 - _local12) / _local10)) + (waypoint[_local1].y * (_local12 / _local10))); _local4 = (waypoint[_local9].x - waypoint[_local1].x); _local5 = (waypoint[_local9].y - waypoint[_local1].y); _local8 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); _local6 = ((0 - _local5) / _local8); _local7 = (_local4 / _local8); _local4 = (_local2 - 0x0F00); _local5 = (_local3 - 1664); _local8 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); _local4 = (_local4 / _local8); _local5 = (_local5 / _local8); _local2 = (_local2 + ((((_local4 + _local6) + _local7) * _local11) / 3)); _local3 = (_local3 + ((((_local5 + _local7) + _local7) * _local11) / 3)); Waves[(waco * 4)] = _local2; Waves[((waco * 4) + 1)] = _local3; Waves[((waco * 4) + 2)] = (((_local4 + _local6) + _local6) / 3); Waves[((waco * 4) + 3)] = (((_local5 + _local7) + _local7) / 3); waco++; _local12++; }; _local9++; }; } public function MoveAsTreasure(_arg1){ 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:*; Hardman[_arg1] = 0; vectors[(_arg1 * 5)] = (vectors[(_arg1 * 5)] / 2); vectors[((_arg1 * 5) + 1)] = (vectors[((_arg1 * 5) + 1)] / 2); if (TesouroStat[_arg1] == 0){ SpreadPeople(_arg1, 47); }; if ((vectors[(_arg1 * 5)] + vectors[((_arg1 * 5) + 1)]) != 0){ _local8 = vectors[(_arg1 * 5)]; _local9 = vectors[((_arg1 * 5) + 1)]; _local7 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local8 = (_local8 / _local7); _local9 = (_local9 / _local7); _local10 = 0; _local11 = 0.03; _local12 = 30000; _local15 = 0; while (_local15 < 16) { _local13 = (_local8 - carrota[(_local15 & 15)].x); _local14 = (_local9 - carrota[(_local15 & 15)].y); _local11 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14))); if (_local12 > _local11){ _local12 = _local11; _local10 = _local15; }; _local15++; }; things[((_arg1 * 9) + 6)] = ((things[((_arg1 * 9) + 6)] + FCR(things[((_arg1 * 9) + 6)], _local10)) & 15); }; _local2 = 0; _local3 = 0; _local4 = (0x0F00 - (things[(_arg1 * 9)] + 30)); _local5 = (1664 - (things[((_arg1 * 9) + 1)] + 30)); _local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); _local4 = ((_local4 / _local6) * 40); _local5 = ((_local5 / _local6) * 40); if (EvalTerrain(((things[(_arg1 * 9)] + 25) - _local4), ((things[((_arg1 * 9) + 1)] + 40) - _local5)) == 0){ _local2 = (0x0F00 - (things[(_arg1 * 9)] + 20)); _local3 = (1664 - (things[((_arg1 * 9) + 1)] + 20)); _local7 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _local2 = (_local2 / (_local7 * 1)); _local3 = (_local3 / (_local7 * 1)); if ((((((Math.random() > 1)) && ((CarriedStat[_arg1] == 0)))) && ((tutorial == 0)))){ things[((_arg1 * 9) + 5)] = 7; tsacri = (tsacri - 10); if (tsacri < 0){ tsacri = 0; }; }; }; things[(_arg1 * 9)] = ((things[(_arg1 * 9)] + vectors[(_arg1 * 5)]) + (_local2 * fps)); things[((_arg1 * 9) + 1)] = ((things[((_arg1 * 9) + 1)] + vectors[((_arg1 * 5) + 1)]) + (_local3 * fps)); } public function VectorMove(_arg1, _arg2, _arg3, _arg4){ var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; _local5 = (things[((_arg1 * 9) + 5)] * 3); _local6 = (_arg1 * 5); _local7 = (_arg1 * 9); things[_local7] = (things[_local7] + (vectors[_local6] * fps)); things[(_local7 + 1)] = (things[(_local7 + 1)] + (vectors[(_local6 + 1)] * fps)); things[(_local7 + 2)] = (things[(_local7 + 2)] + vectors[(_local6 + 2)]); if (_arg2 == 1){ vectors[_local6] = (vectors[_local6] * typphys[_local5]); vectors[(_local6 + 1)] = (vectors[(_local6 + 1)] * typphys[_local5]); vectors[(_local6 + 2)] = (vectors[(_local6 + 2)] * typphys[_local5]); }; _local8 = (_arg4 - vectors[(_local6 + 3)]); _local9 = 0; _local10 = 0; if (_local8 > 0){ _local9 = (_local8 / typphys[(_local5 + 2)]); } else { _local10 = ((0 - _local8) * typphys[(_local5 + 1)]); }; if (_arg3 == 1){ spreadx = vectors[_local6]; spready = vectors[(_local6 + 1)]; spreadz = vectors[(_local6 + 2)]; vectors[_local6] = ((0 - vectors[_local6]) * typphys[(_local5 + 1)]); vectors[(_local6 + 1)] = ((0 - vectors[(_local6 + 1)]) * typphys[(_local5 + 1)]); vectors[(_local6 + 2)] = ((0 - vectors[(_local6 + 2)]) * typphys[(_local5 + 1)]); spreadpower = _local10; spreadedby = _arg1; }; } public function CheckClickSP(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; _local3 = 0; _local12 = -1; _local13 = 0; while (_local13 < (thingcount + 1)) { _local3 = (_local13 * 9); if ((((((((((things[(_local3 + 5)] == 6)) || ((things[(_local3 + 5)] == 8)))) || ((things[(_local3 + 5)] == 10)))) || ((things[(_local3 + 5)] == 14)))) || ((things[(_local3 + 5)] == 15)))){ _local4 = things[_local3]; _local5 = things[(_local3 + 1)]; _local6 = (things[_local3] + bounding[(_local13 * 4)]); _local7 = (things[(_local3 + 1)] + bounding[((_local13 * 4) + 1)]); if ((((((((_local4 < _arg1)) && ((_local6 > _arg1)))) && ((_local5 < _arg2)))) && ((_local7 > _arg2)))){ _local12 = _local13; }; }; _local13++; }; return (_local12); } public function MoveAsBoat(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:*; var _local19:*; var _local20:*; var _local21:*; var _local22:*; var _local23:*; var _local24:*; var _local25:*; Hardman[_arg1] = 0; windblock[_arg1] = 0; _local2 = things[((_arg1 * 9) + 6)]; _local3 = things[((_arg1 * 9) + 6)]; _local4 = 0.001; _local5 = 0.001; _local6 = 0.001; _local7 = 0.001; _local8 = 0.001; _local9 = 0.001; _local10 = 0; _local11 = 0; while (_local11 < (thingcount + 1)) { if (things[((_local11 * 9) + 5)] == 4){ _local10 = 1; _local11 = (thingcount + 1); }; _local11++; }; if ((((((_local10 == 0)) && ((ShipStat[((_arg1 * 3) + 1)] == 0)))) && ((ShipStat[((_arg1 * 3) + 2)] == 0)))){ ShipStat[((_arg1 * 3) + 2)] = 1; }; _local4 = (0x0F00 - things[(_arg1 * 9)]); _local5 = (1664 - things[((_arg1 * 9) + 1)]); _local8 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); _local4 = (_local4 / _local8); _local5 = (_local5 / _local8); if (ShipStat[((_arg1 * 3) + 2)] > 0){ _local4 = (0 - _local4); _local5 = (0 - _local5); if (tutorial == 0){ ShipStat[((_arg1 * 3) + 2)] = (ShipStat[((_arg1 * 3) + 2)] + fps); }; if (ShipStat[((_arg1 * 3) + 2)] > 800){ things[((_arg1 * 9) + 5)] = 7; }; }; if (ShipStat[(_arg1 * 3)] > 1){ _local18 = ((things[((_arg1 * 9) + 6)] + 4) & 15); ShipShotCount[_arg1] = (ShipShotCount[_arg1] - fps); if ((((ShipShotCount[_arg1] < 0)) && ((tutorial == 0)))){ ShipShotCount[_arg1] = (((Math.random() * 120) + 70) + ((easy - 1) * 100)); _local16 = (bounding[(_arg1 * 4)] / 2); _local17 = (bounding[((_arg1 * 4) + 1)] / 2); ShotBall(((things[(_arg1 * 9)] + (carrota[_local18].x * (_local16 / 2))) + _local16), ((things[((_arg1 * 9) + 1)] + (carrota[_local18].y * (_local16 / 2))) + _local17), (carrota[_local18].x * 14), (carrota[_local18].y * 14), 2, _arg1); }; ShipStat[(_arg1 * 3)] = (ShipStat[(_arg1 * 3)] - fps); _local21 = (bounding[(_arg1 * 4)] / 2); _local22 = (bounding[((_arg1 * 4) + 1)] / 2); _local19 = (waypoint[things[((_arg1 * 9) + 8)]].x - 0x0F00); _local20 = (waypoint[things[((_arg1 * 9) + 8)]].y - 1664); _local8 = Math.sqrt(((_local19 * _local19) + (_local20 * _local20))); _local19 = ((_local19 / _local8) * 350); _local20 = ((_local20 / _local8) * 350); _local19 = (_local19 + waypoint[things[((_arg1 * 9) + 8)]].x); _local20 = (_local20 + waypoint[things[((_arg1 * 9) + 8)]].y); _local19 = (_local19 - (things[(_arg1 * 9)] + _local21)); _local20 = (_local20 - (things[((_arg1 * 9) + 1)] + _local22)); _local8 = Math.sqrt(((_local19 * _local19) + (_local20 * _local20))); _local4 = (_local19 / _local8); _local5 = (_local20 / _local8); if (_local8 < 100){ things[((_arg1 * 9) + 8)] = ((things[((_arg1 * 9) + 8)] + 1) & 7); }; }; _local12 = _local2; _local13 = 0.03; _local14 = 30000; _local15 = 0; while (_local15 < 16) { _local6 = (_local4 - carrota[(_local15 & 15)].x); _local7 = (_local5 - carrota[(_local15 & 15)].y); _local13 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7))); if (_local14 > _local13){ _local14 = _local13; _local12 = _local15; }; _local15++; }; _local2 = ((_local2 + FCR(_local2, _local12)) & 15); _local16 = (bounding[(_arg1 * 4)] / 2); _local17 = (bounding[((_arg1 * 4) + 1)] / 2); if (((!((EvalTerrain(((things[(_arg1 * 9)] + _local16) + (_local4 * 50)), ((things[((_arg1 * 9) + 1)] + _local17) + (_local5 * 50))) == 0))) && ((ShipStat[((_arg1 * 3) + 1)] > 0)))){ _local23 = 0; _local24 = 0; while (_local24 < ShipStat[((_arg1 * 3) + 1)]) { if (Math.random() > 0.56){ _local23 = 1; } else { _local23 = 0; }; setPirate(((things[(_arg1 * 9)] + 241) + (_local4 * 50)), ((things[((_arg1 * 9) + 1)] + 220) + (_local5 * 50)), _local23); _local24++; }; ShipStat[((_arg1 * 3) + 1)] = 0; }; if (ShipStat[((_arg1 * 3) + 1)] == 0){ windblock[_arg1] = 1; }; if (ShipStat[((_arg1 * 3) + 1)] > 0){ _local8 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); _local4 = (_local4 / _local8); _local5 = (_local5 / _local8); _local4 = carrota[_local2].x; _local5 = carrota[_local2].y; things[(_arg1 * 9)] = (things[(_arg1 * 9)] + ((_local4 * 1) * fps)); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + ((_local5 * 1) * fps)); if (_local2 != ShipStack[((_arg1 * 2) + 1)]){ things[((_arg1 * 9) + 6)] = _local2; }; ShipStack[((_arg1 * 2) + 1)] = ShipStack[(_arg1 * 2)]; ShipStack[(_arg1 * 2)] = _local2; }; if (ShipStat[((_arg1 * 3) + 2)] > 0){ _local8 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); _local25 = CheckClick(((things[(_arg1 * 9)] + _local16) + (_local4 * 250)), ((things[((_arg1 * 9) + 1)] + _local17) + (_local5 * 250))); if (((!((things[((_local25 * 9) + 5)] == 5))) || ((_local25 == _arg1)))){ things[(_arg1 * 9)] = (things[(_arg1 * 9)] + ((_local4 * 1) * fps)); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + ((_local5 * 1) * fps)); }; things[((_arg1 * 9) + 6)] = (_local2 & 15); }; _local11 = 0; while (_local11 < (thingcount + 1)) { if (((things[((_local11 * 9) + 5)] == 5) & !((_local11 == _arg1)))){ xa = (things[(_local11 * 9)] - things[(_arg1 * 9)]); ya = (things[((_local11 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local8 = Math.sqrt(((xa * xa) + (ya * ya))); xa = (xa / _local8); ya = (ya / _local8); if (_local8 < 200){ things[(_local11 * 9)] = (things[(_local11 * 9)] + xa); things[((_local11 * 9) + 1)] = (things[((_local11 * 9) + 1)] + ya); }; }; _local11++; }; } public function CalculateWorld(){ 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:*; var _local16:*; var _local17:*; var _local18:*; var _local19:*; if (barrelr != null){ volumer.volume = 0; barrelr.soundTransform = volumer; volumer.volume = 0; cannonr.soundTransform = volumer; }; if (pausegame == 0){ _local2 = fps; godoftreasure(); if (bounce < -5){ _local2 = (_local2 / 2); }; if (bounce < -3){ _local2 = (_local2 / 2); }; if (bouncedir == 0){ bounce = (bounce - _local2); }; if (bouncedir == 1){ bounce = (bounce + _local2); }; if (bounce > 0){ bouncedir = 0; }; if (bounce < -8){ bouncedir = 1; }; aspasm = ((aspasm + 1) & 1); scoremulti = (scoremulti - 0.01); if (scoremulti < 1){ scoremulti = 1; }; Sakujo(); Death(); bakelists(); globalpiratewalk = (globalpiratewalk + (0.25 * fps)); if (globalpiratewalk > 13.3){ globalpiratewalk = 0; }; objscount = 0; _local3 = 0; }; pi = 0; while (pi < (thingcount + 1)) { if (TentacleStat[(pi * 4)] == 2){ _local3 = pi; }; pi++; }; _local1 = 0; pi = 0; while (pi < (thingcount + 1)) { _local4 = things[(_local3 * 9)]; _local1 = (pi * 9); _local5 = 0; _local6 = 0; hiteffect[(pi * 3)] = (hiteffect[(pi * 3)] - 1); if ((((hiteffect[(pi * 3)] < 0)) || ((isNaN(hiteffect[(pi * 3)]) == true)))){ hiteffect[(pi * 3)] = 0; } else { if ((hiteffect[(pi * 3)] & 1) == 0){ _local5 = hiteffect[((pi * 3) + 1)]; _local6 = hiteffect[((pi * 3) + 2)]; } else { _local5 = (0 - hiteffect[((pi * 3) + 1)]); _local6 = (0 - hiteffect[((pi * 3) + 2)]); }; }; switch (things[(_local1 + 5)]){ case 4: objs[(objscount * 5)] = ((things[_local1] + ObjAnim[((pi * 4) + 1)]) + _local5); objs[((objscount * 5) + 1)] = ((things[(_local1 + 1)] + ObjAnim[((pi * 4) + 2)]) + _local6); objs[((objscount * 5) + 2)] = (spapointer[2] + int(things[(_local1 + 7)])); objs[((objscount * 5) + 3)] = (ObjAnim[((pi * 4) + 3)] + (tutorial * 8)); objs[((objscount * 5) + 4)] = 2; objscount++; if ((((things[(_local1 + 2)] > 0)) && ((PirateStat[((pi * 4) + 1)] == 1)))){ objs[(objscount * 5)] = (((things[_local1] + ObjAnim[((pi * 4) + 1)]) + 8) + _local5); if (ObjAnim[((pi * 4) + 3)] == 1){ objs[(objscount * 5)] = (((things[_local1] + ObjAnim[((pi * 4) + 1)]) + 6) + _local5); }; objs[((objscount * 5) + 1)] = (((things[(_local1 + 1)] + ObjAnim[((pi * 4) + 2)]) + 22) + _local6); objs[((objscount * 5) + 2)] = (spapointer[2] + int(things[(_local1 + 2)])); objs[((objscount * 5) + 3)] = ObjAnim[((pi * 4) + 3)]; objs[((objscount * 5) + 4)] = 2; objscount++; }; if ((((things[(_local1 + 2)] > 0)) && ((PirateStat[((pi * 4) + 1)] == 0)))){ objs[(objscount * 5)] = (((things[_local1] + ObjAnim[((pi * 4) + 1)]) + 7) + _local5); if (ObjAnim[((pi * 4) + 3)] == 1){ objs[(objscount * 5)] = (((things[_local1] + ObjAnim[((pi * 4) + 1)]) + 7) + _local5); }; objs[((objscount * 5) + 1)] = (((things[(_local1 + 1)] + ObjAnim[((pi * 4) + 2)]) + 21) + _local6); objs[((objscount * 5) + 2)] = (spapointer[2] + int(things[(_local1 + 2)])); objs[((objscount * 5) + 3)] = ObjAnim[((pi * 4) + 3)]; objs[((objscount * 5) + 4)] = 2; objscount++; }; if (pausegame == 0){ MoveAsPirate(pi); }; break; case 5: objs[(objscount * 5)] = (things[_local1] + _local5); objs[((objscount * 5) + 1)] = (things[(_local1 + 1)] + _local6); objs[((objscount * 5) + 2)] = ((spapointer[3] + carrota[int(things[(_local1 + 6)])].width) + (ShipType[pi] * 29)); if (GoingtoDie[(pi * 2)] == 1){ objs[((objscount * 5) + 2)] = ((((things[(_local1 + 7)] + spapointer[3]) + 9) + (4 * shipdeathrot[carrota[int(things[(_local1 + 6)])].width])) + (ShipType[pi] * 29)); }; objs[((objscount * 5) + 3)] = carrota[int(things[(_local1 + 6)])].height; objs[((objscount * 5) + 4)] = 2; objscount++; if (pausegame == 0){ MoveAsBoat(pi); }; break; case 6: objs[(objscount * 5)] = things[_local1]; objs[((objscount * 5) + 1)] = things[(_local1 + 1)]; objs[((objscount * 5) + 2)] = (spapointer[4] + carrota[things[(_local1 + 6)]].width); objs[((objscount * 5) + 3)] = carrota[things[(_local1 + 6)]].height; objs[((objscount * 5) + 4)] = 2; if ((((lookinat == pi)) && (!((lookinat == 0))))){ objs[((objscount * 5) + 3)] = (objs[((objscount * 5) + 3)] | 8); }; objscount++; if (pausegame == 0){ if (PossStat[pi] != 1){ if ((((CarriedStat[pi] == 0)) && ((kragrabbed[pi] == 0)))){ MoveAsTreasure(pi); }; } else { objs[(((objscount - 1) * 5) + 1)] = (things[(_local1 + 1)] + bounce); MoveAsTreasurePo(pi); }; }; break; case 7: TesouroStat[PirateStat[(pi * 4)]] = 0; PirateStat[(pi * 4)] = 0; _local7 = CarriedStat[pi]; _local8 = CarringStat[pi]; CarringStat[_local7] = 0; CarriedStat[pi] = 0; CarriedStat[_local8] = 0; CarringStat[pi] = 0; CannonStat[SkullStat[((pi * 3) + 1)]] = 0; SkullStat[((pi * 3) + 1)] = 0; Spooked[(pi * 3)] = 0; Spooked[((pi * 3) + 1)] = 0; Spooked[((pi * 3) + 2)] = 0; PossStat[pi] = 0; PossBrain[(pi * 6)] = 0; break; case 8: objs[(objscount * 5)] = ((things[_local1] + ObjAnim[((pi * 4) + 1)]) + _local5); objs[((objscount * 5) + 1)] = ((things[(_local1 + 1)] + ObjAnim[((pi * 4) + 2)]) + _local6); objs[((objscount * 5) + 2)] = (spapointer[5] + int(things[(_local1 + 7)])); objs[((objscount * 5) + 3)] = ObjAnim[((pi * 4) + 3)]; objs[((objscount * 5) + 4)] = 2; objscount++; if ((((things[(_local1 + 2)] > 0)) && ((SkullStat[(pi * 3)] == 1)))){ objs[(objscount * 5)] = (((things[_local1] + ObjAnim[((pi * 4) + 1)]) + 2) + _local5); if (ObjAnim[((pi * 4) + 3)] == 1){ objs[(objscount * 5)] = (((things[_local1] + _local5) + ObjAnim[((pi * 4) + 1)]) - 2); }; objs[((objscount * 5) + 1)] = ((things[(_local1 + 1)] + ObjAnim[((pi * 4) + 2)]) + _local6); objs[((objscount * 5) + 2)] = (spapointer[5] + int(things[(_local1 + 2)])); objs[((objscount * 5) + 3)] = ObjAnim[((pi * 4) + 3)]; objs[((objscount * 5) + 4)] = 2; objscount++; }; if ((((things[(_local1 + 2)] > 0)) && ((SkullStat[(pi * 3)] == 0)))){ objs[(objscount * 5)] = (((things[_local1] + ObjAnim[((pi * 4) + 1)]) + 11) + _local5); if (ObjAnim[((pi * 4) + 3)] == 1){ objs[(objscount * 5)] = (((things[_local1] + ObjAnim[((pi * 4) + 1)]) + 11) + _local5); }; objs[((objscount * 5) + 1)] = (((things[(_local1 + 1)] + ObjAnim[((pi * 4) + 2)]) + 14) + _local6); objs[((objscount * 5) + 2)] = (spapointer[5] + int(things[(_local1 + 2)])); objs[((objscount * 5) + 3)] = ObjAnim[((pi * 4) + 3)]; objs[((objscount * 5) + 4)] = 2; objscount++; }; if (pausegame == 0){ if (kragrabbed[pi] == 0){ if (Spooked[(pi * 3)] != 0){ MoveAsSpookedAlly(pi); } else { if (SkullStat[(pi * 3)] == 2){ MoveAsCannonSkull(pi); } else { MoveAsAlly(pi); }; }; }; }; break; case 10: objs[(objscount * 5)] = (things[_local1] + _local5); objs[((objscount * 5) + 1)] = (things[(_local1 + 1)] + _local6); objs[((objscount * 5) + 2)] = ((spapointer[6] + (carrota[int(things[(_local1 + 6)])].width * 5)) + int(things[(_local1 + 7)])); objs[((objscount * 5) + 3)] = carrota[int(things[(_local1 + 6)])].height; objs[((objscount * 5) + 4)] = 2; if ((((lookinat == pi)) && (!((lookinat == 0))))){ objs[((objscount * 5) + 3)] = (objs[((objscount * 5) + 3)] | 8); }; if (GoingtoDie[(pi * 2)] == 1){ objs[((objscount * 5) + 2)] = ((spapointer[6] + carrota[int(things[(_local1 + 6)])].width) + 45); }; objscount++; if (pausegame == 0){ if (PossStat[pi] != 1){ if ((((CannonStat[pi] == 0)) && ((kragrabbed[pi] == 0)))){ MoveAsCannon(pi); }; } else { MoveAsCannonPo(pi); }; }; break; case 12: _local9 = 0; _local16 = 0; while (_local16 < 418) { _local9 = (_local9 + pk1.getPixel(_local16, 100)); _local16++; }; _local16 = 0; while (_local16 < 211) { _local9 = (_local9 + pk2.getPixel(_local16, 35)); _local16++; }; if (_local9 != 5160905493){ SFXOffset[0] = 72; }; _local10 = 0; pii = 0; while (pii < 17) { _local10 = (_local10 + SFXOffset[pii]); pii++; }; if (_local10 != 1582){ _local17 = (level - 3); if (_local17 < 1){ _local17 = 1; }; fps = (fps / _local17); }; Hardman[pi] = 0; if (pausegame == 0){ if (cannonmode == 0){ MoveCharacter(pi); }; if (cannonmode == 1){ MoveCharacterCannon(pi, cannonid); }; }; objs[(objscount * 5)] = ((things[_local1] + ObjAnim[((pi * 4) + 1)]) + _local5); objs[((objscount * 5) + 1)] = ((things[(_local1 + 1)] + ObjAnim[((pi * 4) + 2)]) + _local6); objs[((objscount * 5) + 2)] = int(framemax); objs[((objscount * 5) + 3)] = heroflip; objs[((objscount * 5) + 4)] = 2; if (framemax2 > 0){ objscount++; objs[(objscount * 5)] = (((things[_local1] + ObjAnim[((pi * 4) + 1)]) + 11) + _local5); if (heroflip == 1){ objs[(objscount * 5)] = (((things[_local1] + ObjAnim[((pi * 4) + 1)]) + 10) + _local5); }; objs[((objscount * 5) + 1)] = (((things[(_local1 + 1)] + ObjAnim[((pi * 4) + 2)]) + 15) + _local6); objs[((objscount * 5) + 2)] = int(framemax2); objs[((objscount * 5) + 3)] = heroflip; objs[((objscount * 5) + 4)] = 2; }; _local11 = 0; _local12 = 0; if (pausegame == 0){ if (cannonmode == 0){ scx = (((things[_local1] - 250) + panx) + corrx); scy = (((things[(_local1 + 1)] - 150) + pany) + corry); _local11 = (0x0F00 - things[_local1]); _local12 = (1664 - things[_local1]); } else { scx = ((things[(cannonid * 9)] - 250) + panx); scy = ((things[((cannonid * 9) + 1)] - 150) + pany); _local11 = (0x0F00 - things[(cannonid * 9)]); _local12 = (1664 - things[((cannonid * 9) + 1)]); }; _local11 = carrota[whee].x; _local12 = carrota[whee].y; if (EvalTerrain(((things[_local1] + 25) + (carrota[whee].x * 160)), ((things[(_local1 + 1)] + 60) + (carrota[whee].y * 160))) == 0){ if (fps > 3){ fps = 3; }; panx = (panx + ((_local11 * 3) * fps)); pany = (pany + ((_local12 * 3) * fps)); _local18 = Math.sqrt(((panx * panx) + (pany * pany))); if (_local18 > 160){ panx = ((panx / _local18) * 160); pany = ((pany / _local18) * 160); }; } else { _local11 = (0 - panx); _local12 = (0 - pany); _local19 = Math.sqrt(((_local11 * _local11) + (_local12 * _local12))); if (_local19 > 5){ _local11 = (_local11 / _local19); _local12 = (_local12 / _local19); if (fps > 3){ fps = 3; }; panx = (panx + ((_local11 * 3) * fps)); pany = (pany + ((_local12 * 3) * fps)); }; }; ycopy = things[(_local1 + 1)]; if (scx < 0){ scx = 0; }; if (scy < 0){ scy = 0; }; }; objscount++; break; case 13: objs[(objscount * 5)] = things[_local1]; objs[((objscount * 5) + 1)] = (things[(_local1 + 1)] + things[(_local1 + 2)]); objs[((objscount * 5) + 2)] = (spapointer[7] + (things[(_local1 + 8)] * 2)); objs[((objscount * 5) + 3)] = 0; objs[((objscount * 5) + 4)] = 2; objscount++; objs[(objscount * 5)] = things[_local1]; objs[((objscount * 5) + 1)] = things[(_local1 + 1)]; objs[((objscount * 5) + 2)] = ((spapointer[7] + 1) + (things[(_local1 + 8)] * 2)); objs[((objscount * 5) + 3)] = 0; objs[((objscount * 5) + 4)] = 2; objscount++; if (pausegame == 0){ MoveAsCannonBall(pi); }; break; case 14: objs[(objscount * 5)] = things[_local1]; objs[((objscount * 5) + 1)] = things[(_local1 + 1)]; objs[((objscount * 5) + 2)] = ((spapointer[8] + carrota[things[(_local1 + 6)]].width) + (things[(_local1 + 7)] * 9)); if (things[(_local1 + 7)] == 0){ objs[((objscount * 5) + 3)] = carrota[things[(_local1 + 6)]].height; }; if (things[(_local1 + 7)] == 1){ objs[((objscount * 5) + 3)] = (1 - carrota[things[(_local1 + 6)]].height); }; objs[((objscount * 5) + 4)] = 2; if ((((lookinat == pi)) && (!((lookinat == 0))))){ objs[((objscount * 5) + 3)] = (objs[((objscount * 5) + 3)] | 8); }; objscount++; if (pausegame == 0){ if (PossStat[pi] != 1){ if (CarriedStat[pi] == 0){ MoveAsWeapon(pi); }; } else { MoveAsWeaponPo(pi); }; }; break; case 15: objs[(objscount * 5)] = (things[_local1] + _local5); objs[((objscount * 5) + 1)] = (things[(_local1 + 1)] + _local6); objs[((objscount * 5) + 2)] = (spapointer[9] + things[(_local1 + 7)]); objs[((objscount * 5) + 3)] = 0; objs[((objscount * 5) + 4)] = 2; if ((((lookinat == pi)) && (!((lookinat == 0))))){ objs[((objscount * 5) + 3)] = (objs[((objscount * 5) + 3)] | 8); }; objscount++; if (pausegame == 0){ if (PossStat[pi] != 1){ if ((((CarriedStat[pi] == 0)) && ((kragrabbed[pi] == 0)))){ MoveAsBarrel(pi); }; } else { objs[(((objscount - 1) * 5) + 1)] = (things[(_local1 + 1)] + bounce); MoveAsBarrelPo(pi); }; }; break; case 16: objs[(objscount * 5)] = things[_local1]; objs[((objscount * 5) + 1)] = things[(_local1 + 1)]; objs[((objscount * 5) + 2)] = things[(_local1 + 6)]; objs[((objscount * 5) + 3)] = things[(_local1 + 7)]; objs[((objscount * 5) + 4)] = 2; objscount++; if (pausegame == 0){ SpookAsGhost(pi); }; break; case 17: objs[(objscount * 5)] = (things[_local1] + _local5); objs[((objscount * 5) + 1)] = (things[(_local1 + 1)] + _local6); objs[((objscount * 5) + 2)] = (spapointer[11] + things[(_local1 + 7)]); if (GoingtoDie[(pi * 2)] == 1){ }; objs[((objscount * 5) + 3)] = carrota[int(things[(_local1 + 6)])].height; objs[((objscount * 5) + 4)] = 2; objscount++; if (pausegame == 0){ MoveAsKraken(pi); }; break; case 18: _local13 = 0; _local14 = 0; if (TentacleStat[((pi * 4) + 0)] == 0){ _local13 = 33; _local14 = 40; }; if (TentacleStat[((pi * 4) + 0)] == 1){ _local13 = 25; _local14 = 25; }; if (TentacleStat[((pi * 4) + 0)] == 2){ _local13 = 56; _local14 = 47; }; objs[(objscount * 5)] = ((things[_local1] - _local13) + _local5); objs[((objscount * 5) + 1)] = ((things[(_local1 + 1)] - _local14) + _local6); objs[((objscount * 5) + 2)] = (spapointer[12] + things[(_local1 + 7)]); if (GoingtoDie[(pi * 2)] == 1){ }; objs[((objscount * 5) + 3)] = carrota[int(things[(_local1 + 6)])].height; objs[((objscount * 5) + 4)] = 2; objscount++; _local15 = pi; if (pausegame == 0){ MoveAsTentacle(pi); }; break; case 25: Hardman[pi] = 1; MoveAsRepeller(pi); break; default: objs[(objscount * 5)] = things[_local1]; objs[((objscount * 5) + 1)] = things[(_local1 + 1)]; objs[((objscount * 5) + 2)] = (spapointer[TypePage[things[(_local1 + 5)]]] + things[(_local1 + 3)]); objs[((objscount * 5) + 4)] = 1; if (things[(_local1 + 5)] == 1){ objs[((objscount * 5) + 4)] = 2; }; objscount++; }; pi++; }; if (notutroll == 0){ pausegame = 1; }; } public function PickItemWithRay(_arg1, _arg2, _arg3, _arg4, _arg5){ var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:*; var _local19:*; var _local20:*; var _local21:*; var _local22:*; var _local23:*; var _local24:*; var _local25:*; retusiz = 0; _local6 = (0 - _arg4); _local7 = _arg3; _local8 = (0 - _local6); _local9 = (0 - _local7); _local6 = (_local6 + _arg1); _local7 = (_local7 + _arg2); _local8 = (_local8 + _arg1); _local9 = (_local9 + _arg2); _local14 = 0; _local19 = 100000; retucloser = 0; _local20 = orithing; while (_local20 < (thingcount + 1)) { _local14 = 0; _local12 = (_arg1 - things[(_local20 * 9)]); _local13 = (_arg2 - things[((_local20 * 9) + 1)]); _local10 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); _local21 = things[((_local20 * 9) + 5)]; _local22 = 0; _local23 = 0; _local12 = ((_arg1 + (_arg3 * 10)) - things[(_local20 * 9)]); _local13 = ((_arg2 + (_arg4 * 10)) - things[((_local20 * 9) + 1)]); _local22 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); _local12 = ((_arg1 - (_arg3 * 10)) - things[(_local20 * 9)]); _local13 = ((_arg2 - (_arg4 * 10)) - things[((_local20 * 9) + 1)]); _local23 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); _local24 = _local10; if ((((((_local22 < _local23)) && ((_local10 < _arg5)))) && ((((((((_local21 == 14)) || ((_local21 == 6)))) || ((_local21 == 10)))) || ((_local21 == 15)))))){ _local25 = 40; _local15 = (things[(_local20 * 9)] - _local25); _local16 = (things[((_local20 * 9) + 1)] - _local25); _local17 = ((things[(_local20 * 9)] + bounding[(_local20 * 4)]) + _local25); _local18 = ((things[((_local20 * 9) + 1)] + bounding[((_local20 * 4) + 1)]) + _local25); _local12 = (_local15 - _local6); _local13 = (_local16 - _local7); _local10 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); _local12 = (_local15 - _local8); _local13 = (_local16 - _local9); _local11 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); if (_local10 > _local11){ _local14 = (_local14 | 1); } else { _local14 = (_local14 | 2); }; _local12 = (_local17 - _local6); _local13 = (_local16 - _local7); _local10 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); _local12 = (_local17 - _local8); _local13 = (_local16 - _local9); _local11 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); if (_local10 > _local11){ _local14 = (_local14 | 1); } else { _local14 = (_local14 | 2); }; _local12 = (_local15 - _local6); _local13 = (_local18 - _local7); _local10 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); _local12 = (_local15 - _local8); _local13 = (_local18 - _local9); _local11 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); if (_local10 > _local11){ _local14 = (_local14 | 1); } else { _local14 = (_local14 | 2); }; _local12 = (_local17 - _local6); _local13 = (_local18 - _local7); _local10 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); _local12 = (_local17 - _local8); _local13 = (_local18 - _local9); _local11 = Math.sqrt(((_local12 * _local12) + (_local13 * _local13))); if (_local10 > _local11){ _local14 = (_local14 | 1); } else { _local14 = (_local14 | 2); }; if (_local14 == 3){ retucol[retusiz] = _local20; retusiz++; if (_local19 > _local24){ _local19 = _local24; retucloser = _local20; }; }; }; _local20++; }; } public function killitwithfire(_arg1:MouseEvent){ removeEventListener(Event.ENTER_FRAME, checkingProgress); gotoAndPlay(3); } public function pscore(_arg1:MouseEvent):void{ highmode = 1; gotoAndPlay(7, "Scene 1"); } public function MoveAsPirate(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:*; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:*; var _local26:*; var _local27:Number; var _local28:Number; var _local29:*; var _local30:*; var _local31:*; var _local32:*; var _local33:Number; var _local34:Number; var _local35:*; var _local36:*; var _local37:*; Hardman[_arg1] = 0; _local2 = 5; _local3 = 1; _local4 = 0; _local5 = 0.001; _local6 = 0.001; _local7 = 0.001; _local8 = 0.001; _local9 = 10000.001; _local10 = 0.001; _local11 = 0; _local12 = 0; _local13 = 0; while (_local13 < TreasureC) { _local12 = TreasureL[_local13]; _local5 = (things[(_local12 * 9)] - things[(_arg1 * 9)]); _local6 = (things[((_local12 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local10 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); if (_local10 < _local9){ _local9 = _local10; _local11 = _local12; }; _local13++; }; _local14 = things[((_arg1 * 9) + 6)]; _local5 = (things[(_local11 * 9)] - things[(_arg1 * 9)]); _local6 = (things[((_local11 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local10 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); _local5 = (_local5 / _local10); _local6 = (_local6 / _local10); _local15 = 0; _local16 = 0; _local17 = 10000; if (ShipC < 1){ _local10 = 500; }; _local18 = 0; if (_local10 < (160 + things[((_arg1 * 9) + 2)])){ if (((!((CarriedStat[_local11] == 0))) && (!((CarriedStat[_local11] == _arg1))))){ _local18 = 1; }; if ((((((_local18 == 0)) && ((_local10 < 90)))) && ((tutorial == 0)))){ PirateStat[(_arg1 * 4)] = _local11; CarriedStat[_local11] = _arg1; CarringStat[_arg1] = _local11; }; if ((((_local18 == 1)) && (!((things[((CarriedStat[_local11] * 9) + 5)] == 12))))){ _local5 = (0 - _local5); _local6 = (0 - _local6); }; }; if (_local10 > 200){ _local17 = 10000; _local27 = 0; _local28 = 100000; _local13 = 0; while (_local13 < AllyC) { _local29 = AllyL[_local13]; _local30 = 0; _local31 = 0; _local32 = 0; if (_local29 != 0){ _local30 = bounding[(_local29 * 4)]; _local31 = bounding[((_local29 * 4) + 1)]; _local15 = ((things[(_local29 * 9)] + _local29) - things[(_arg1 * 9)]); _local16 = ((things[((_local29 * 9) + 1)] + _local29) - things[((_arg1 * 9) + 1)]); _local9 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); if (_local9 < _local17){ _local17 = _local9; _local27 = _local29; }; }; _local13++; }; _local5 = (things[(_local27 * 9)] - things[(_arg1 * 9)]); _local6 = (things[((_local27 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local9 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); _local5 = (_local5 / _local9); _local6 = (_local6 / _local9); _local28 = _local17; }; _local19 = 1; _local20 = 0; if (CarringStat[_arg1] != 0){ _local19 = 1.5; _local20 = 1; _local17 = 10000; _local33 = 0; _local30 = 0; _local31 = 0; _local13 = 0; while (_local13 < (thingcount + 1)) { if ((((((things[((_local13 * 9) + 5)] == 5)) && ((ShipStat[((_local13 * 3) + 1)] == 0)))) && ((ShipStat[((_local13 * 3) + 2)] == 0)))){ _local30 = (bounding[(_local13 * 4)] / 2); _local31 = (bounding[((_local13 * 4) + 1)] / 2); _local15 = ((things[(_local13 * 9)] + _local30) - things[(_arg1 * 9)]); _local16 = ((things[((_local13 * 9) + 1)] + _local31) - things[((_arg1 * 9) + 1)]); _local4 = 1; _local10 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); if (_local10 < _local17){ _local17 = _local10; _local33 = _local13; }; }; _local13++; }; _local30 = (bounding[(_local33 * 4)] / 2); _local31 = (bounding[((_local33 * 4) + 1)] / 2); _local5 = ((things[(_local33 * 9)] + _local30) - things[(_arg1 * 9)]); _local6 = ((things[((_local33 * 9) + 1)] + _local31) - things[((_arg1 * 9) + 1)]); _local34 = 120; if (ShipType[_local33] == 1){ _local34 = 160; }; if (_local17 < _local34){ things[((_arg1 * 9) + 5)] = 7; things[((_local11 * 9) + 5)] = 7; ShipStat[((_local33 * 3) + 2)] = 1; PirateStat[(_arg1 * 4)] = 0; tsacri = (tsacri - 10); if (tsacri < 0){ tsacri = 0; }; }; if (_local33 == 0){ _local35 = (((waypoint[PirateStat[((_arg1 * 4) + 2)]].x - 0x0F00) / 2) + 0x0F00); _local36 = (((waypoint[PirateStat[((_arg1 * 4) + 2)]].y - 1664) / 2) + 1664); _local5 = (_local35 - things[(_arg1 * 9)]); _local6 = (_local36 - things[((_arg1 * 9) + 1)]); _local22 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); _local5 = (_local5 / _local22); _local6 = (_local6 / _local22); _local32 = 1; if (_local22 < 40){ _local35 = (((waypoint[((PirateStat[((_arg1 * 4) + 2)] + 1) & 7)].x - 0x0F00) / 2) + 0x0F00); _local36 = (((waypoint[((PirateStat[((_arg1 * 4) + 2)] + 1) & 7)].y - 1664) / 2) + 1664); _local35 = (_local35 - things[(t_player * 9)]); _local36 = (_local36 - things[((t_player * 9) + 1)]); _local22 = Math.sqrt(((_local35 * _local35) + (_local36 * _local36))); _local35 = (((waypoint[((PirateStat[((_arg1 * 4) + 2)] - 1) & 7)].x - 0x0F00) / 2) + 0x0F00); _local36 = (((waypoint[((PirateStat[((_arg1 * 4) + 2)] - 1) & 7)].y - 1664) / 2) + 1664); _local35 = (_local35 - things[(t_player * 9)]); _local36 = (_local36 - things[((t_player * 9) + 1)]); _local37 = Math.sqrt(((_local35 * _local35) + (_local36 * _local36))); if (_local22 > _local37){ PirateStat[((_arg1 * 4) + 2)] = ((PirateStat[((_arg1 * 4) + 2)] + 1) & 7); }; if (_local22 < _local37){ PirateStat[((_arg1 * 4) + 2)] = ((PirateStat[((_arg1 * 4) + 2)] - 1) & 7); }; }; }; _local10 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); _local5 = (_local5 / _local10); _local6 = (_local6 / _local10); }; _local21 = _local14; _local22 = 0.03; _local23 = 30000; _local24 = 0; while (_local24 < 16) { _local7 = (_local5 - carrota[(_local24 & 15)].x); _local8 = (_local6 - carrota[(_local24 & 15)].y); _local22 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8))); if (_local23 > _local22){ _local23 = _local22; _local21 = _local24; }; _local24++; }; _local14 = ((_local14 + FCR(_local14, _local21)) & 15); if (ObjStat[((_arg1 * 6) + 5)] > 1){ ObjStat[((_arg1 * 6) + 5)] = (ObjStat[((_arg1 * 6) + 5)] - (fps / 2)); if (PirateStat[((_arg1 * 4) + 1)] == 0){ ObjStat[((_arg1 * 6) + 5)] = (ObjStat[((_arg1 * 6) + 5)] - fps); }; vectors[(_arg1 * 5)] = (vectors[(_arg1 * 5)] / 2); vectors[((_arg1 * 5) + 1)] = (vectors[((_arg1 * 5) + 1)] / 2); } else { vectors[(_arg1 * 5)] = (carrota[_local14].x * 2); vectors[((_arg1 * 5) + 1)] = (carrota[_local14].y * 2); }; if (CarringStat[_arg1] != 0){ things[(CarringStat[_arg1] * 9)] = (things[(_arg1 * 9)] + (carrota[_local14].x * 30)); things[((CarringStat[_arg1] * 9) + 1)] = ((things[((_arg1 * 9) + 1)] + (carrota[_local14].y * 30)) + 10); things[((CarringStat[_arg1] * 9) + 6)] = _local14; vectors[(CarringStat[_arg1] * 5)] = 0; vectors[((CarringStat[_arg1] * 5) + 1)] = 0; TesouroStat[PirateStat[(_arg1 * 4)]] = 1; }; things[((_arg1 * 9) + 6)] = _local14; _local15 = vectors[(_arg1 * 5)]; _local16 = vectors[((_arg1 * 5) + 1)]; _local10 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); _local15 = (_local15 / _local10); _local16 = (_local16 / _local10); _local25 = 0; _local26 = 0; if (PirateStat[((_arg1 * 4) + 1)] == 0){ getcutthings(((things[(_arg1 * 9)] + (_local15 * 8)) + 32), ((things[((_arg1 * 9) + 1)] + (_local16 * 8)) + 32), 8, 0); if (retusiz > 0){ PirateStat[((_arg1 * 4) + 1)] = 2; _local26 = 1; _local25 = 2; }; }; if ((((((PirateStat[((_arg1 * 4) + 1)] == 2)) && ((tutorial == 0)))) && ((_local32 == 0)))){ if (ObjAnim[(_arg1 * 4)] > 8){ getcutthings(((things[(_arg1 * 9)] + (_local15 * 16)) + 32), ((things[((_arg1 * 9) + 1)] + (_local16 * 16)) + 32), 16, 0); Cut(_arg1, 20); PirateStat[((_arg1 * 4) + 1)] = 0; }; _local25 = 2; }; if ((((PirateStat[((_arg1 * 4) + 1)] == 1)) && ((_local32 == 0)))){ if (_local28 < 300){ if ((((((ObjAnim[(_arg1 * 4)] > 2.45)) && ((ObjAnim[(_arg1 * 4)] < 3.98)))) && ((tutorial == 0)))){ ShotBall(((things[(_arg1 * 9)] + (_local15 * 68)) + 32), ((things[((_arg1 * 9) + 1)] + (_local16 * 68)) + 38), (_local15 * 20), (_local16 * 20), 1, _arg1); ObjAnim[(_arg1 * 4)] = 4; }; _local25 = 4; vectors[(_arg1 * 5)] = 0; vectors[((_arg1 * 5) + 1)] = 0; }; }; if (PirateStat[(_arg1 * 4)] == 0){ SpreadPeople(_arg1, 32); }; if ((((_local20 == 1)) && ((_local25 == 0)))){ _local25 = 1; }; if (GoingtoDie[(_arg1 * 2)] != 1){ AnimateWho(_arg1, _local25, _local14, _local26); }; if (EvalTerrain((things[(_arg1 * 9)] + 25), (things[((_arg1 * 9) + 1)] + 40)) == 0){ vectors[(_arg1 * 5)] = (0x0F00 - things[(_arg1 * 9)]); vectors[((_arg1 * 5) + 1)] = (1664 - things[((_arg1 * 9) + 1)]); _local10 = Math.sqrt(((vectors[(_arg1 * 5)] * vectors[(_arg1 * 5)]) + (vectors[((_arg1 * 5) + 1)] * vectors[((_arg1 * 5) + 1)]))); vectors[(_arg1 * 5)] = ((vectors[(_arg1 * 5)] / _local10) * 3); vectors[((_arg1 * 5) + 1)] = ((vectors[((_arg1 * 5) + 1)] / _local10) * 3); }; things[(_arg1 * 9)] = (things[(_arg1 * 9)] + ((vectors[(_arg1 * 5)] * fps) / _local19)); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + ((vectors[((_arg1 * 5) + 1)] * fps) / _local19)); } public function ShotBall(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){ var _local7:*; var _local8:*; var _local9:*; _local7 = 0; _local8 = 0; _local9 = 0; while (_local9 < (thingcount + 1)) { if (things[((_local9 * 9) + 5)] == 7){ _local7 = _local9; _local9 = (thingcount + 1); _local8 = 1; }; _local9++; }; if (_local8 == 0){ thingcount++; _local7 = thingcount; }; things[(_local7 * 9)] = _arg1; things[((_local7 * 9) + 1)] = _arg2; things[((_local7 * 9) + 2)] = -20; things[((_local7 * 9) + 5)] = 13; things[((_local7 * 9) + 6)] = 0; things[((_local7 * 9) + 7)] = 200; things[((_local7 * 9) + 8)] = (_arg5 & 1); things[((_local7 * 9) + 6)] = (_arg5 & 2); CballStat[_local7] = _arg6; vectors[(_local7 * 5)] = (_arg3 / 2); vectors[((_local7 * 5) + 1)] = (_arg4 / 2); if ((_arg5 & 1) == 0){ vectors[((_local7 * 5) + 2)] = -1.5; PlaySound(_arg6, 1); CallSmoke(_arg1, _arg2, 3); } else { vectors[((_local7 * 5) + 2)] = 0; PlaySound(_arg6, 2); }; vectors[((_local7 * 5) + 3)] = 0; vectors[((_local7 * 5) + 4)] = 0; bounding[(_local7 * 4)] = 10; bounding[((_local7 * 4) + 1)] = 10; } public function MoveAsCannonSkull(_arg1){ 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:*; Hardman[_arg1] = 1; _local2 = 0.002; _local3 = 0.001; _local4 = 0.001; _local5 = 1000; _local6 = 0; _local7 = 0; _local8 = 0; _local9 = SkullStat[((_arg1 * 3) + 1)]; _local10 = 0; while (_local10 < (thingcount + 1)) { if ((((things[((_local10 * 9) + 5)] == 5)) || ((things[((_local10 * 9) + 5)] == 17)))){ _local16 = (bounding[(_local10 * 4)] / 2); _local17 = (bounding[((_local10 * 4) + 1)] / 1.5); _local17 = (bounding[((_local10 * 4) + 1)] / 2); _local3 = ((things[(_local10 * 9)] + _local16) - things[(_local9 * 9)]); _local4 = ((things[((_local10 * 9) + 1)] + _local17) - things[((_local9 * 9) + 1)]); _local2 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); if (_local2 < _local5){ _local5 = _local2; _local7 = (_local3 / _local2); _local8 = (_local4 / _local2); _local6 = _local10; }; }; _local10++; }; _local13 = 0; _local14 = 0.03; _local15 = 30000; if (aspasm == 0){ _local18 = 0; while (_local18 < 16) { _local11 = (_local7 - carrota[(_local18 & 15)].x); _local12 = (_local8 - carrota[(_local18 & 15)].y); _local14 = Math.sqrt(((_local11 * _local11) + (_local12 * _local12))); if (_local15 > _local14){ _local15 = _local14; _local13 = _local18; }; _local18++; }; } else { _local13 = int(things[((_local9 * 9) + 6)]); if (isNaN(_local13) == true){ _local13 = 0; }; }; things[((_local9 * 9) + 6)] = _local13; things[(_arg1 * 9)] = ((things[(_local9 * 9)] - (carrota[_local13].x * 60)) + 40); things[((_arg1 * 9) + 1)] = (things[((_local9 * 9) + 1)] - (carrota[_local13].y * 60)); things[((_arg1 * 9) + 6)] = (things[((_arg1 * 9) + 6)] - (fps / 2)); if (things[((_arg1 * 9) + 6)] < 0){ things[((_arg1 * 9) + 6)] = 0; }; if ((((_local5 < 1000)) && ((EvalTerrain((things[(_local9 * 9)] + (carrota[_local13].x * 600)), (things[((_local9 * 9) + 1)] + (carrota[_local13].y * 600))) == 0)))){ if (things[((_arg1 * 9) + 6)] == 0){ ShotBall(((things[(_local9 * 9)] + (carrota[_local13].x * 50)) + 60), ((things[((_local9 * 9) + 1)] + (carrota[_local13].y * 50)) + 40), (carrota[_local13].x * 19), (carrota[_local13].y * 19), 0, _local9); things[((_arg1 * 9) + 6)] = (40 * fps); }; }; if (SkullStat[((_arg1 * 3) + 2)] > 0){ _local19 = SkullStat[((_arg1 * 3) + 2)]; _local3 = (things[(_local19 * 9)] - things[(_local9 * 9)]); _local4 = (things[((_local19 * 9) + 1)] - things[((_local9 * 9) + 1)]); _local2 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4))); _local3 = (_local3 / _local2); _local4 = (_local4 / _local2); things[(_local9 * 9)] = (things[(_local9 * 9)] + (_local3 * (fps * 2))); things[((_local9 * 9) + 1)] = (things[((_local9 * 9) + 1)] + (_local4 * (fps * 2))); things[((_arg1 * 9) + 8)] = (things[((_arg1 * 9) + 8)] + (0.25 * fps)); if (things[((_arg1 * 9) + 8)] > 14){ things[((_arg1 * 9) + 8)] = 0; }; things[((_local9 * 9) + 7)] = (things[((_local9 * 9) + 7)] + (0.25 * (fps * 2))); if (things[((_local9 * 9) + 7)] > 5){ things[((_local9 * 9) + 7)] = 0; }; _local7 = _local3; _local8 = _local4; _local15 = 100000; _local18 = 0; while (_local18 < 16) { _local11 = (_local7 - carrota[(_local18 & 15)].x); _local12 = (_local8 - carrota[(_local18 & 15)].y); _local14 = Math.sqrt(((_local11 * _local11) + (_local12 * _local12))); if (_local15 > _local14){ _local15 = _local14; _local13 = _local18; }; _local18++; }; things[((_local9 * 9) + 6)] = _local13; things[(_arg1 * 9)] = ((things[(_local9 * 9)] - (carrota[_local13].x * 60)) + 40); things[((_arg1 * 9) + 1)] = (things[((_local9 * 9) + 1)] - (carrota[_local13].y * 60)); if (_local2 < 60){ things[((_local19 * 9) + 5)] = 7; SkullStat[((_arg1 * 3) + 2)] = 0; }; }; if (GoingtoDie[(_arg1 * 2)] != 1){ things[((_arg1 * 9) + 7)] = ((126 + (carrota[_local13].width * 9)) + things[((_arg1 * 9) + 8)]); ObjAnim[((_arg1 * 4) + 3)] = carrota[_local13].height; }; } function frame5(){ tiles = new D_tiles(0x0200, 64); mapbits = new D_mapa(0x0200, 0x0200); monkeyrect = new Rectangle(0, 0, 64, 64); monkeypos = new Point(192, 128); wolf = new BitmapData(145, 183, true, 0); wolfrect = new Rectangle(0, 0, 145, 183); easymode = 0; pulledstring = 0; ycopy = 0; Frames = new Array(); Framerects = new Array(); scoremulti = 1; stcounter = 0; stc2 = 0; recta = new Rectangle(0, 0, 0, 0); databits = new D_Data(0x0100, 1); things = new Array(400960); bounding = new Array(400960); vectors = new Array(400960); typphys = new Array(15); imageblocks = new Array(400960); hvertex = new Array(400960); protectmask = new Array(); thingcount = 0; imblockcount = 0; hvertcount = 0; thingcount = databits.getPixel(0, 0); imblockcount = databits.getPixel(1, 0); hvertcount = databits.getPixel(2, 0); impc = 3; pi = 0; while (pi < ((thingcount * 9) + 9)) { things[pi] = databits.getPixel((impc & 0xFF), (impc / 0x0100)); impc++; pi++; }; pi = 0; while (pi < ((imblockcount * 5) + 5)) { imageblocks[pi] = databits.getPixel((impc & 0xFF), (impc / 0x0100)); impc++; pi++; }; pi = 0; while (pi < ((hvertcount * 3) + 3)) { hvertex[pi] = databits.getPixel((impc & 0xFF), (impc / 0x0100)); impc++; pi++; }; orithing = thingcount; t_player = 0; typphys[((0 * 3) + 0)] = 0.8; typphys[((0 * 3) + 1)] = 0.1; typphys[((0 * 3) + 2)] = 4; typphys[((4 * 3) + 0)] = 0.8; typphys[((4 * 3) + 1)] = 0.1; typphys[((4 * 3) + 2)] = 4; typphys[((5 * 3) + 0)] = 0.8; typphys[((5 * 3) + 1)] = 0.1; typphys[((5 * 3) + 2)] = 4; typphys[((6 * 3) + 0)] = 0.8; typphys[((6 * 3) + 1)] = 0.1; typphys[((6 * 3) + 2)] = 4; typphys[((12 * 3) + 0)] = 0.8; typphys[((12 * 3) + 1)] = 0.1; typphys[((12 * 3) + 2)] = 1; OffTable = new Array(100); OffTable[0] = 0; OffTable[1] = 126; OffTable[2] = 252; OffTable[3] = 342; OffTable[4] = 477; OffTable[5] = 567; OffTable[6] = 693; objs = new Array(400960); objscount = 0; objstype = new Array(0x1000); tiletype = new Array(0x1000); tilekinds = new Array(0x0400); burieditems = new Array(0x1000); burieditemscount = 0; spapointer = new Array(0x1000); rasterlist = new Array(); rastcount = 0; allo = new Array(); trianglep = new Array(); trianglec = new Array(); trianglepr = new Array(); trianglecount = 0; Trees = new Array(); Branch = new Array(); cachedimage = new Array(); cachedimagebusy = new Array(); loadedcount = 0; carwheel = 0; minicoin = 0; carrota = new Array(); carrota[0] = new Rectangle(0, 1, 0, 1); carrota[1] = new Rectangle(-0.37, 0.92, 1, 1); carrota[2] = new Rectangle(-0.7, 0.7, 2, 1); carrota[3] = new Rectangle(-0.92, 0.37, 3, 1); carrota[4] = new Rectangle(-1, 0, 4, 1); carrota[5] = new Rectangle(-0.92, -0.37, 5, 1); carrota[6] = new Rectangle(-0.7, -0.7, 6, 1); carrota[7] = new Rectangle(-0.37, -0.92, 7, 1); carrota[8] = new Rectangle(0, -1, 8, 0); carrota[9] = new Rectangle(0.37, -0.92, 7, 0); carrota[10] = new Rectangle(0.7, -0.7, 6, 0); carrota[11] = new Rectangle(0.92, -0.37, 5, 0); carrota[12] = new Rectangle(1, 0, 4, 0); carrota[13] = new Rectangle(0.92, 0.37, 3, 0); carrota[14] = new Rectangle(0.7, 0.7, 2, 0); carrota[15] = new Rectangle(0.37, 0.92, 1, 0); waypoint = new Array(); waypoint[0] = new Point(3110, 1333); waypoint[1] = new Point(3883, 1300); waypoint[2] = new Point(4708, 1342); waypoint[3] = new Point(4710, 1679); waypoint[4] = new Point(4728, 2131); waypoint[5] = new Point(3883, 2150); waypoint[6] = new Point(3090, 2131); waypoint[7] = new Point(3048, 1679); deathtime = new Array(); deathtime[0] = 4; deathtime[1] = 4; deathtime[2] = 4; deathtime[3] = 4; deathtime[4] = 19; deathtime[5] = 16; deathtime[6] = 4; deathtime[7] = 4; deathtime[8] = 19; deathtime[9] = 4; deathtime[10] = 40; deathtime[11] = 4; deathtime[12] = 19; deathtime[13] = 4; deathtime[14] = 4; deathtime[15] = 40; deathtime[16] = 4; deathtime[18] = 1; shipdeathrot = new Array(); shipdeathrot[0] = 0; shipdeathrot[1] = 1; shipdeathrot[2] = 1; shipdeathrot[3] = 2; shipdeathrot[4] = 2; shipdeathrot[5] = 2; shipdeathrot[6] = 3; shipdeathrot[7] = 3; shipdeathrot[8] = 4; krakendeathrot = new Array(); krakendeathrot[0] = 0; krakendeathrot[1] = 0; krakendeathrot[2] = 0; krakendeathrot[3] = 1; krakendeathrot[4] = 1; krakendeathrot[5] = 1; krakendeathrot[6] = 2; krakendeathrot[7] = 2; krakendeathrot[8] = 2; tutcount = 0; TalkEvents = new Array(); Skills = new Array(); Skillcount = new Array(); score = 0; ldfrax = 0; ldfray = 0; ldfraw = 0; ldfrah = 0; panx = 0; pany = 0; SFXFrames = new Array(); SFXBound = new Array(); SFXOffset = new ByteArray(); SFXFrames[0] = new SFX_Smoke1(68, 58); SFXBound[0] = new Rectangle(0, 0, 68, 58); SFXFrames[1] = new SFX_Smoke2(131, 109); SFXBound[1] = new Rectangle(-35, -36, 131, 109); SFXFrames[2] = new SFX_Smoke3(197, 177); SFXBound[2] = new Rectangle(-67, -64, 197, 177); SFXFrames[3] = new SFX_Sand1(90, 95); SFXBound[3] = new Rectangle(0, 0, 90, 95); SFXFrames[4] = new SFX_Sand2(72, 58); SFXBound[4] = new Rectangle(0, 0, 72, 58); SFXFrames[5] = new SFX_CrossAim(47, 47); SFXBound[5] = new Rectangle(0, 0, 47, 47); SFXFrames[6] = new SFX_Water(90, 95); SFXBound[6] = new Rectangle(0, 0, 90, 95); SFXOffset[0] = 104; SFXOffset[1] = 116; SFXOffset[2] = 116; SFXOffset[3] = 112; SFXOffset[4] = 58; SFXOffset[5] = 47; SFXOffset[6] = 47; SFXOffset[7] = 116; SFXOffset[8] = 119; SFXOffset[9] = 105; SFXOffset[10] = 122; SFXOffset[11] = 108; SFXOffset[12] = 46; SFXOffset[13] = 99; SFXOffset[14] = 111; SFXOffset[15] = 109; SFXOffset[16] = 47; TypePage = new Array(); pi = 0; while (pi < 100) { TypePage[pi] = 1; pi++; }; TypePage[0] = 1; TypePage[1] = 1; TypePage[12] = 0; dire = 0.01; runnin = 0; runexplode = 0; retucol = new Array(); retusiz = 0; pausegame = 0; aspasm = 0; callsl = 0; overbit = 0; holdmode = 0; pi = 0; pi3 = 0; depack = 0; depacked = 0; WhoWho.addEventListener(MouseEvent.MOUSE_UP, callpage3); } function frame7(){ if (depacked == 0){ gotoAndPlay(6); }; } function frame1(){ stop(); MochiBot.track(this, "88136922"); WhoYouGonnaCall.addEventListener(MouseEvent.MOUSE_UP, callpage2); _url = loaderInfo.url; urlStarto = (_url.indexOf("://") + 3); urlEndo = _url.indexOf("/", urlStarto); domaino = _url.substring(urlStarto, urlEndo); LastDoto = (domaino.lastIndexOf(".") - 1); domEndo = (domaino.lastIndexOf(".", LastDoto) + 1); domainon = domaino.substring(domEndo, domaino.length); treasure = new Sprite(); this.addChild(treasure); resetmusic = 0; addEventListener(Event.ENTER_FRAME, checkingProgress); skipshit.addEventListener(MouseEvent.MOUSE_DOWN, killitwithfire); lineload = new Array(); stx = 50; sty = 50; tr = 0; toomuch = 0; ango = 0; xux = 0; yuy = 0; doo = 0; doo2 = 0; while (tr == 0) { stx = (stx + (Math.cos(ango) * 20)); sty = (sty + (Math.sin(ango) * 20)); xux = ((stx + (Math.cos((ango + 0.04)) * 30)) - 566); yuy = ((sty + (Math.sin((ango + 0.04)) * 30)) - 400); doo = Math.sqrt(((xux * xux) + (yuy * yuy))); xux = ((stx + (Math.cos((ango - 0.04)) * 30)) - 566); yuy = ((sty + (Math.sin((ango - 0.04)) * 30)) - 400); doo2 = Math.sqrt(((xux * xux) + (yuy * yuy))); if (doo > doo2){ ango = (ango - 0.04); }; if (doo < doo2){ ango = (ango + 0.04); }; xux = (stx - 566); yuy = (sty - 400); doo = Math.sqrt(((xux * xux) + (yuy * yuy))); if (doo < 10){ tr = 1; }; lineload[toomuch] = new Point(stx, sty); toomuch++; if (toomuch > 100){ tr = 1; }; }; } function frame6(){ WhoWhoWho.addEventListener(MouseEvent.MOUSE_UP, callpage4); this.addChild(treasure); DepackPics(depack); depack++; if (depack == 75){ depacked = 1; this.removeChild(treasure); }; treasure.graphics.lineStyle(5, 0xF0F0F0); treasure.graphics.moveTo(50, 50); chu = 0; while (chu < toomuch) { if ((chu & 3) != 3){ treasure.graphics.lineTo(lineload[chu].x, lineload[chu].y); } else { treasure.graphics.moveTo(lineload[chu].x, lineload[chu].y); }; chu++; }; treasure.graphics.lineStyle(5, 0xFF0000); treasure.graphics.moveTo(50, 50); mega = int((toomuch * (depack / 75))); chu = 0; while (chu < mega) { if ((chu & 3) != 3){ treasure.graphics.lineTo(lineload[chu].x, lineload[chu].y); } else { treasure.graphics.moveTo(lineload[chu].x, lineload[chu].y); }; chu++; }; fixreset = 0; } function frame9(){ stop(); MochiServices.connect("c046d6ae4aa4b769", root); if (resetmusic == 1){ musikill.stop(); }; somusicintro = new S_MusicIntro(); musikill = somusicintro.play(0, 99999); resetmusic = 1; fcheater = 0; bootload = 0; highmode = 0; Play_Button.addEventListener(MouseEvent.MOUSE_UP, pplay); Load_Button.addEventListener(MouseEvent.MOUSE_UP, pload); Score_Button.addEventListener(MouseEvent.MOUSE_UP, pscore); More_Button.addEventListener(MouseEvent.MOUSE_UP, pmore); actstra.addEventListener(MouseEvent.MOUSE_MOVE, descshow); actstra.addEventListener(MouseEvent.MOUSE_UP, descpress); easynorm.addEventListener(MouseEvent.MOUSE_UP, easypress); Kureditu.addEventListener(MouseEvent.MOUSE_UP, kure); CallMe.addEventListener(MouseEvent.MOUSE_UP, callpage5); stage.frameRate = 120; actstra.visible = false; easynorm.visible = false; Action_Mode.visible = false; Strategy_Mode.visible = false; mySo = SharedObject.getLocal("Unholy_Island"); nowaiar = 0; if (mySo.data.isasave != 1){ LoadGameShow.visible = false; nowaiar = 1; }; stramode = 0; easy = 0; arraya = new Array(); } public function chumove(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; xgui = _arg1.stageX; ygui = _arg1.stageY; shopmode = 0; if ((((((((xgui > 7)) && ((xgui < 80)))) && ((ygui > 33)))) && ((ygui < 133)))){ shopmode = 1; }; if (sellmode == 1){ _local2 = (840 / (640 + ((100 - zoom) * 2))); _local3 = (680 / (480 + ((100 - zoom) * 2))); xmouse = (_arg1.stageX * _local2); ymouse = (_arg1.stageY * _local3); _local4 = (xmouse + scx); _local5 = (ymouse + scy); _local6 = CheckClick(_local4, _local5); lookinat = 0; if ((((things[((_local6 * 9) + 5)] == 14)) || ((things[((_local6 * 9) + 5)] == 15)))){ lookinat = _local6; }; }; if ((((menuselected == 0)) && ((menuopen == 40)))){ if (((((((((!((Skills[0] == 1))) && ((xgui > 64)))) && ((xgui < 423)))) && ((ygui > (143 - 60))))) && ((ygui < ((143 - 60) + 30))))){ piratesay = "Bring back me telescope for a treasure and we'll see them from afar."; piratesaid = 250; }; if (((((((((!((Skills[1] == 1))) && ((xgui > 64)))) && ((xgui < 423)))) && ((ygui > (184 - 60))))) && ((ygui < ((184 - 60) + 30))))){ piratesay = "A treasure to recover my commanding skills or give those dogs their brains back."; piratesaid = 250; }; if ((((((((xgui > 64)) && ((xgui < 423)))) && ((ygui > (224 - 60))))) && ((ygui < ((224 - 60) + 30))))){ piratesay = "Spread some Voodoo Man!!Bring your tools to life!! your guns, cannons and everything on the game will attack the intruders!"; piratesaid = 250; }; if ((((((((xgui > 64)) && ((xgui < 423)))) && ((ygui > (264 - 60))))) && ((ygui < ((264 - 60) + 30))))){ piratesay = "Eh, never had enough treasures to know.. it costs 100 of it!"; piratesaid = 250; }; if ((((((((xgui > 64)) && ((xgui < 423)))) && ((ygui > (344 - 60))))) && ((ygui < ((344 - 60) + 30))))){ piratesay = "Moar cannons!"; piratesaid = 250; }; }; if (_arg1.buttonDown == true){ _local2 = (840 / (640 + ((100 - zoom) * 2))); _local3 = (680 / (480 + ((100 - zoom) * 2))); xmouse = (_arg1.stageX * _local2); ymouse = (_arg1.stageY * _local3); smouse = 1; if (ghosthold == 1){ things[(ghostid * 9)] = ((xmouse + scx) - goffx); things[((ghostid * 9) + 1)] = ((ymouse + scy) - goffy); smouse = 0; }; if (zoompicked == 1){ zoom = ((((ygui - 200) - zoomofy) * 5) / 1.5); if (zoom > 100){ zoom = 100; }; if (zoom < 0){ zoom = 0; }; smouse = 0; }; }; } function frame8(){ stop(); } public function SetCross(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; _local3 = (Sfxcount + 1); _local4 = 0; _local5 = 0; _local6 = 0; while (_local6 < (Sfxcount + 1)) { if (Sfx[((_local6 * 5) + 2)] == 0){ _local3 = _local6; _local4 = 1; }; if (Sfx[((_local6 * 5) + 2)] == 4){ _local5 = _local6; _local4 = 1; _local6 = (Sfxcount + 1); }; _local6++; }; if (_local5 != 0){ _local3 = _local5; }; Sfx[(_local3 * 5)] = (_arg1 - 23); Sfx[((_local3 * 5) + 1)] = (_arg2 - 23); Sfx[((_local3 * 5) + 2)] = 4; Sfx[((_local3 * 5) + 3)] = 0; Sfx[((_local3 * 5) + 4)] = 50; if (_local4 == 0){ Sfxcount++; }; } public function AnimateWho(_arg1, _arg2, _arg3, _arg4){ var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; _local5 = 0; _local6 = 0; _local7 = 0; _local8 = 0; _local9 = (0.25 * fps); if (_arg4 == 1){ ObjAnim[(_arg1 * 4)] = 0; }; switch (_arg2){ case 0: _local5 = OffTable[0]; _local6 = (carrota[_arg3].width * 14); _local7 = 13.3; break; case 1: _local5 = OffTable[1]; _local6 = (carrota[_arg3].width * 14); _local7 = 13.3; break; case 2: _local5 = OffTable[2]; _local6 = (carrota[_arg3].width * 10); _local7 = 9.3; _local9 = (0.6 * fps); break; case 3: _local5 = OffTable[3]; _local6 = (carrota[_arg3].width * 15); _local7 = 4.6; _local9 = (0.5 * fps); break; case 4: _local5 = (OffTable[3] + 5); _local6 = (carrota[_arg3].width * 15); _local7 = 9.3; break; case 5: _local5 = OffTable[4]; _local6 = (carrota[_arg3].width * 10); _local7 = 9.3; break; }; SetOffset(_arg1, _arg2); ObjAnim[(_arg1 * 4)] = (ObjAnim[(_arg1 * 4)] + _local9); if (ObjAnim[(_arg1 * 4)] > _local7){ ObjAnim[(_arg1 * 4)] = 0; _local8 = 1; }; if (things[((_arg1 * 9) + 5)] == 12){ framemax = ((_local5 + _local6) + ObjAnim[(_arg1 * 4)]); if (_arg2 == 0){ framemax2 = ((OffTable[5] + _local6) + ObjAnim[(_arg1 * 4)]); } else { framemax2 = 0; }; heroflip = carrota[_arg3].height; } else { if ((((_arg2 == 0)) || ((_arg2 == 1)))){ ObjAnim[(_arg1 * 4)] = globalpiratewalk; }; things[((_arg1 * 9) + 7)] = ((_local5 + _local6) + ObjAnim[(_arg1 * 4)]); things[((_arg1 * 9) + 2)] = 0; if (things[((_arg1 * 9) + 5)] == 4){ if ((((_arg2 == 0)) && ((PirateStat[((pi * 4) + 1)] < 2)))){ things[((_arg1 * 9) + 2)] = ((OffTable[(5 + (1 - PirateStat[((pi * 4) + 1)]))] + _local6) + ObjAnim[(_arg1 * 4)]); }; } else { if ((((_arg2 == 0)) && ((SkullStat[(pi * 3)] < 2)))){ things[((_arg1 * 9) + 2)] = ((OffTable[(5 + (1 - SkullStat[(pi * 3)]))] + _local6) + ObjAnim[(_arg1 * 4)]); }; }; ObjAnim[((_arg1 * 4) + 3)] = carrota[_arg3].height; }; return (_local8); } public function RasterVector(_arg1, _arg2, _arg3){ var _local4:Sprite; var _local5:*; var _local6:*; _local4 = new Sprite(); _local5 = 0; _local6 = 1; _local4.graphics.beginFill(trianglec[pi]); pi = 0; while (pi < trianglecount) { if (trianglepr[pi] == _arg3){ _local5 = (pi * 6); _local4.graphics.lineStyle(0, trianglec[pi]); _local4.graphics.moveTo((trianglep[_local5] - _arg1), (trianglep[(_local5 + 1)] - _arg2)); _local4.graphics.lineTo((trianglep[(_local5 + 2)] - _arg1), (trianglep[(_local5 + 3)] - _arg2)); _local4.graphics.lineTo((trianglep[(_local5 + 4)] - _arg1), (trianglep[(_local5 + 5)] - _arg2)); _local4.graphics.lineTo((trianglep[_local5] - _arg1), (trianglep[(_local5 + 1)] - _arg2)); _local6 = 0; }; pi++; }; _local4.graphics.endFill(); if (_local6 == 0){ bitmapdata.draw(_local4); }; } public function MoveCharacterCannon(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:Number; 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:*; lookinat = 0; TalkEvents[1] = (TalkEvents[1] | 1); menumode = 2; _local3 = 0; _local4 = 0; if ((dir & 1) == 1){ _local3 = 2; _local4 = 1; }; if ((dir & 2) == 2){ _local3 = -2; _local4 = -1; }; _local5 = (fps / 6); if (_local5 > 1){ _local5 = 1; }; if ((dir & 4) == 4){ things[((_arg2 * 9) + 6)] = (things[((_arg2 * 9) + 6)] - _local5); cannonrot = 2; }; if ((dir & 8) == 8){ things[((_arg2 * 9) + 6)] = (things[((_arg2 * 9) + 6)] + _local5); cannonrot = 2; }; if (things[((_arg2 * 9) + 6)] > 15){ things[((_arg2 * 9) + 6)] = 0; }; if (things[((_arg2 * 9) + 6)] < 0){ things[((_arg2 * 9) + 6)] = 15; }; _local6 = 0; if (_local3 == 0){ _local6 = 1; }; if (smouse == 1){ _local4 = 1; _local6 = 0; }; if ((buttons & 2) == 2){ _local6 = 1; animove = 0; }; if (cannonr != null){ volumer.volume = 0; cannonr.soundTransform = volumer; if (_local6 == 0){ volumer.volume = 1; cannonr.soundTransform = volumer; }; }; AnimateWho(_arg1, 1, whee, _local6); if (animove > 1){ things[((_arg2 * 9) + 7)] = (things[((_arg2 * 9) + 7)] + ((_local4 * fps) / 2)); if (things[((_arg2 * 9) + 7)] < 0){ things[((_arg2 * 9) + 7)] = 4; }; if (things[((_arg2 * 9) + 7)] > 4){ things[((_arg2 * 9) + 7)] = 0; }; animove = 0; }; animove++; if (smouse == 1){ _local14 = (xmouse - ((things[(_arg1 * 9)] - scx) + 25)); _local15 = (ymouse - ((things[((_arg1 * 9) + 1)] - scy) + 50)); _local22 = Math.sqrt(((_local14 * _local14) + (_local15 * _local15))); _local14 = (_local14 / _local22); _local15 = (_local15 / _local22); _local16 = dir; _local17 = 0.03; _local18 = 30000; _local19 = 0; while (_local19 < 16) { _local20 = (_local14 - carrota[(_local19 & 15)].x); _local21 = (_local15 - carrota[(_local19 & 15)].y); _local17 = Math.sqrt(((_local20 * _local20) + (_local21 * _local21))); if (_local18 > _local17){ _local18 = _local17; _local16 = _local19; }; _local19++; }; _local3 = 2; _local4 = 1; things[((_arg2 * 9) + 6)] = _local16; }; if ((buttons & 2) == 2){ _local3 = 0; _local4 = 0; }; _local7 = int(things[((_arg2 * 9) + 6)]); _local8 = (carrota[_local7].x * _local3); _local9 = (carrota[_local7].y * _local3); if (EvalTerrain(((things[(_arg2 * 9)] + 40) + (carrota[_local7].x * _local3)), ((things[((_arg2 * 9) + 1)] + 50) + (carrota[_local7].y * _local3))) == 0){ _local8 = (0x0F00 - things[(_arg2 * 9)]); _local9 = (1664 - things[((_arg2 * 9) + 1)]); _local22 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local8 = (_local8 / _local22); _local9 = (_local9 / _local22); }; _local10 = ((1 - (things[((_arg2 * 9) + 6)] / 16)) * (3.141 * 2)); _local11 = Math.sin(_local10); _local12 = Math.cos(_local10); if (smouse == 1){ _local11 = _local14; _local12 = _local15; }; SetCross(((things[(_arg2 * 9)] + (_local11 * 120)) + 70), ((things[((_arg2 * 9) + 1)] + (_local12 * 120)) + 30)); things[(_arg2 * 9)] = (things[(_arg2 * 9)] + (_local8 * fps)); things[((_arg2 * 9) + 1)] = (things[((_arg2 * 9) + 1)] + (_local9 * fps)); things[(_arg1 * 9)] = ((things[(_arg2 * 9)] - (carrota[_local7].x * 70)) + 30); things[((_arg1 * 9) + 1)] = ((things[((_arg2 * 9) + 1)] - (carrota[_local7].y * 70)) - 10); whee = _local7; cannoncount--; SpreadPeople(_arg2, 35); if (cannoncount < 0){ cannoncount = 0; }; if (((((((buttons & 1) == 1)) && ((tutorial == 1)))) && ((tutstep < 6)))){ buttons = 0; piratesay = "Keep this cannon to yourself for now"; }; if (tsacri > 4){ if ((buttons & 1) == 1){ tutraise = 7; things[(_arg1 * 9)] = (things[(_arg2 * 9)] - (carrota[_local7].x * 150)); things[((_arg1 * 9) + 1)] = (things[((_arg2 * 9) + 1)] - (carrota[_local7].y * 150)); PlaySound(_arg1, 10); tempdisable = 1; buttons = 0; CarriedStat[CarringStat[_arg1]] = 0; CarringStat[_arg1] = 0; CannonStat[cannonid] = 0; setAlly(things[(_arg2 * 9)], things[((_arg2 * 9) + 1)], 2, cannonid); cannonmode = 0; cannonid = 0; }; }; if ((((tsacri < 5)) && (((buttons & 1) == 1)))){ piratesay = "you need more money to spawn that."; piratesaid = 200; holdmode = 1; }; if (((((buttons & 2) == 2)) && ((cannoncount < 1)))){ ShotBall(((things[(_arg2 * 9)] + (_local11 * 50)) + 60), ((things[((_arg2 * 9) + 1)] + (_local12 * 50)) + 50), (_local11 * 17), (_local12 * 17), 0, _arg2); cannoncount = 30; shotcount++; if (shotcount == 2){ tutraise = 4; }; }; if (((!(((buttons & 4) == 4))) && ((hopoff == 1)))){ cannonmode = 0; CannonStat[cannonid] = 0; cannonid = 0; CarriedStat[CarringStat[_arg1]] = 0; CarringStat[_arg1] = 0; hopoff = 0; }; if ((buttons & 4) == 4){ hopoff = 1; }; _local13 = Skillcount[2]; if (((((((buttons & 8) == 8)) && ((Skills[2] == 1)))) && ((Skillcount[2] > 0)))){ PlaySound(_arg1, 10); PossStat[_arg2] = 1; cannonmode = 0; CannonStat[cannonid] = 0; cannonid = 0; CarriedStat[CarringStat[_arg1]] = 0; CarringStat[_arg1] = 0; hopoff = 0; var _local23 = Skillcount; var _local24 = 2; var _local25 = (_local23[_local24] - 1); _local23[_local24] = _local25; }; if ((((_local13 > 0)) && ((Skillcount[2] == 0)))){ piratesay = "Your Reanimate Spell is over, buy more of it in the shop."; piratesaid = 100; }; if (things[((_arg2 * 9) + 5)] == 7){ cannonmode = 0; CannonStat[cannonid] = 0; cannonid = 0; CarriedStat[CarringStat[_arg1]] = 0; CarringStat[_arg1] = 0; hopoff = 0; }; } public function pload(_arg1:MouseEvent):void{ if (nowaiar == 0){ bootload = 1; easymode = 1; easy = 1; if (musikill != null){ musikill.stop(); }; play(); }; } public function setPirate(_arg1, _arg2, _arg3){ var _local4:*; var _local5:*; var _local6:*; _local4 = 0; _local5 = 0; _local6 = 0; while (_local6 < (thingcount + 1)) { if (things[((_local6 * 9) + 5)] == 7){ _local4 = _local6; _local6 = (thingcount + 1); _local5 = 1; }; _local6++; }; if (_local5 == 0){ thingcount++; _local4 = thingcount; }; vectors[(_local4 * 5)] = new Number(0); vectors[((_local4 * 5) + 1)] = new Number(0); vectors[((_local4 * 5) + 2)] = new Number(0); vectors[((_local4 * 5) + 3)] = new Number(0); vectors[((_local4 * 5) + 4)] = new Number(0); things[(_local4 * 9)] = new Number(_arg1); things[((_local4 * 9) + 1)] = new Number(_arg2); things[((_local4 * 9) + 2)] = new Number((Math.random() * 200)); things[((_local4 * 9) + 5)] = new Number(4); things[((_local4 * 9) + 6)] = new Number(0); things[((_local4 * 9) + 7)] = new Number(0); ObjAnim[(_local4 * 4)] = new Number(0); ObjAnim[((_local4 * 4) + 1)] = new Number(0); ObjAnim[((_local4 * 4) + 2)] = new Number(0); ObjAnim[((_local4 * 4) + 3)] = new Number(0); ObjStat[(_local4 * 6)] = new Number((100 / easy)); if (_arg3 == 0){ ObjStat[(_local4 * 6)] = (120 / easy); }; ObjStat[((_local4 * 6) + 1)] = new Number(10); ObjStat[((_local4 * 6) + 2)] = new Number(10); ObjStat[((_local4 * 6) + 3)] = new Number(0); ObjStat[((_local4 * 6) + 4)] = new Number(0); ObjStat[((_local4 * 6) + 5)] = new Number(0); PirateStat[(_local4 * 4)] = new Number(0); PirateStat[((_local4 * 4) + 1)] = new Number(_arg3); PirateStat[((_local4 * 4) + 2)] = new Number(0); bounding[(_local4 * 4)] = new Number(67); bounding[((_local4 * 4) + 1)] = new Number(94); } public function bakelists(){ var _local1:*; PirateC = 0; ShipC = 0; TreasureC = 0; AllyC = 0; EnemyC = 0; ColidC = 0; _local1 = 0; while (_local1 < (thingcount + 1)) { if (things[((_local1 * 9) + 5)] == 4){ var _local2 = PirateC++; PirateL[_local2] = _local1; var _local3 = EnemyC++; EnemyL[_local3] = _local1; var _local4 = ColidC++; ColidL[_local4] = _local1; }; if (things[((_local1 * 9) + 5)] == 5){ _local2 = ShipC++; ShipL[_local2] = _local1; _local3 = EnemyC++; EnemyL[_local3] = _local1; }; if (things[((_local1 * 9) + 5)] == 6){ _local2 = TreasureC++; TreasureL[_local2] = _local1; _local3 = ColidC++; ColidL[_local3] = _local1; }; if (things[((_local1 * 9) + 5)] == 8){ _local2 = AllyC++; AllyL[_local2] = _local1; _local3 = ColidC++; ColidL[_local3] = _local1; }; if (things[((_local1 * 9) + 5)] == 10){ _local2 = AllyC++; AllyL[_local2] = _local1; _local3 = ColidC++; ColidL[_local3] = _local1; }; if (things[((_local1 * 9) + 5)] == 12){ _local2 = AllyC++; AllyL[_local2] = _local1; _local3 = ColidC++; ColidL[_local3] = _local1; }; if (things[((_local1 * 9) + 5)] == 15){ _local2 = ColidC++; ColidL[_local2] = _local1; }; if (things[((_local1 * 9) + 5)] == 18){ _local2 = ColidC++; ColidL[_local2] = _local1; _local3 = EnemyC++; EnemyL[_local3] = _local1; }; _local1++; }; } public function chudown(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:*; var _local19:*; var _local20:*; _local2 = (840 / (640 + ((100 - zoom) * 2))); _local3 = (680 / (480 + ((100 - zoom) * 2))); xmouse = (_arg1.stageX * _local2); ymouse = (_arg1.stageY * _local3); xgui = _arg1.stageX; ygui = _arg1.stageY; smouse = 1; if ((((((((((((((((((xgui > 569)) && ((xgui < 631)))) && ((ygui > 0)))) && ((ygui < 58)))) && ((timer > 1)))) && (!((timer == 2000))))) && ((pausegame == 0)))) && ((levelshow < 1)))) && ((unlockstart == 1)))){ pulledstring = 10; smouse = 0; dumbcount = 0; if (tutorial == 1){ TalkEvents[9] = (TalkEvents[9] | 1); } else { TalkEvents[10] = (TalkEvents[10] | 1); }; shipcount = 10; }; if ((((((((((xgui > 507)) && ((xgui < 628)))) && ((ygui > 438)))) && ((ygui < 469)))) && ((notutroll == 0)))){ if (tutcount < 160){ tutcount = 160; piratesaid = 0; }; }; if ((((((((((((xgui > 7)) && ((xgui < 80)))) && ((ygui > 33)))) && ((ygui < 133)))) && ((shopfade > 0.9)))) && ((truepause == 0)))){ if (tutorial == 0){ if (menuopen == 0){ menudirection = 1; }; if (menuopen == 40){ menudirection = -1; }; smouse = 0; } else { piratesay = "better to not spend the tutorial money on other stuff"; piratesaid = 400; }; }; if ((((((((((((holdmode > 0)) && ((xgui > 383)))) && ((xgui < 464)))) && ((ygui > 447)))) && ((ygui < 467)))) && ((piratesaid > 0)))){ piratesaid = 0; smouse = 0; }; if ((((((((xgui > 7)) && ((xgui < (7 + 99))))) && ((ygui > 137)))) && ((ygui < 170)))){ if (tutorial == 0){ if (sellmode == 0){ sellmode = 1; smouse = 0; pausegame = 1; if (microtut != 1){ piratesay = "You activated the Click Sell Mode, if you click any item it will be traded for coins, click again to deactivate."; piratesaid = 350; }; microtut = 1; } else { pausegame = 0; sellmode = 0; smouse = 0; }; } else { piratesay = "You can't sell the tutorial items, you need them."; piratesaid = 700; }; }; if (sellmode == 1){ _local2 = (840 / (640 + ((100 - zoom) * 2))); _local3 = (680 / (480 + ((100 - zoom) * 2))); xmouse = (_arg1.stageX * _local2); ymouse = (_arg1.stageY * _local3); _local11 = (xmouse + scx); _local12 = (ymouse + scy); _local13 = CheckClick(_local11, _local12); lookinat = 0; if ((((things[((_local13 * 9) + 5)] == 14)) || ((things[((_local13 * 9) + 5)] == 15)))){ lookinat = _local13; }; if (lookinat != 0){ if (things[((lookinat * 9) + 5)] == 14){ PlaySound(t_player, 8); tsacri = (tsacri + 2); things[((lookinat * 9) + 5)] = 7; }; if (things[((lookinat * 9) + 5)] == 15){ PlaySound(t_player, 8); tsacri++; things[((lookinat * 9) + 5)] = 7; }; lookinat = 0; }; }; _local4 = 0; _local5 = 0; _local6 = 0; _local7 = 0; if (menuopen == 0){ menuselected = 0; }; if (menuopen == 40){ if ((((((((((xgui > 374)) && ((xgui < 423)))) && ((ygui > (143 - 60))))) && ((ygui < ((143 - 60) + 30))))) && ((menuselected == 1)))){ smouse = 0; _local4 = 1; _local5 = 10; }; if ((((((((((xgui > 374)) && ((xgui < 423)))) && ((ygui > (184 - 60))))) && ((ygui < ((184 - 60) + 30))))) && ((menuselected == 2)))){ smouse = 0; _local4 = 2; _local5 = 10; }; if ((((((((((xgui > 374)) && ((xgui < 423)))) && ((ygui > (224 - 60))))) && ((ygui < ((224 - 60) + 30))))) && ((menuselected == 3)))){ smouse = 0; _local4 = 3; _local5 = 60; _local7 = 3; _local6 = ((3 - Skillcount[2]) * 3); }; if ((((((((((xgui > 374)) && ((xgui < 423)))) && ((ygui > (264 - 60))))) && ((ygui < ((264 - 60) + 30))))) && ((menuselected == 4)))){ smouse = 0; _local4 = 4; _local5 = 100; _local7 = 100; _local6 = (10 - (int(Skillcount[3]) / 10)); }; if ((((((((((xgui > 374)) && ((xgui < 423)))) && ((ygui > (344 - 60))))) && ((ygui < ((344 - 60) + 30))))) && ((menuselected == 6)))){ smouse = 0; _local4 = 6; _local6 = 5; }; if ((((((((xgui > 423)) && ((xgui < 473)))) && ((ygui > (143 - 60))))) && ((ygui < ((384 - 60) + 30))))){ menuselected = 0; smouse = 0; }; }; if ((((menuselected == 0)) && ((menuopen == 40)))){ if (((((((((!((Skills[0] == 1))) && ((xgui > 374)))) && ((xgui < 423)))) && ((ygui > (143 - 60))))) && ((ygui < ((143 - 60) + 30))))){ menuselected = 1; smouse = 0; piratesay = "Bring back me telescope for a treasure and we'll see them from afar."; piratesaid = 250; }; if (((((((((!((Skills[1] == 1))) && ((xgui > 374)))) && ((xgui < 423)))) && ((ygui > (184 - 60))))) && ((ygui < ((184 - 60) + 30))))){ menuselected = 2; smouse = 0; piratesay = "A treasure to recover my commanding skills or give those dogs their brains back."; piratesaid = 250; }; if ((((((((xgui > 374)) && ((xgui < 423)))) && ((ygui > (224 - 60))))) && ((ygui < ((224 - 60) + 30))))){ menuselected = 3; smouse = 0; piratesay = "Spread some Voodoo Man!!Bring your tools to life!! your guns, cannons and everything on the game will attack the intruders!"; piratesaid = 250; }; if ((((((((xgui > 374)) && ((xgui < 423)))) && ((ygui > (264 - 60))))) && ((ygui < ((264 - 60) + 30))))){ menuselected = 4; smouse = 0; piratesay = "Eh, never had enough treasures to know.. it costs 100 of it!"; piratesaid = 250; }; if ((((((((xgui > 374)) && ((xgui < 423)))) && ((ygui > (344 - 60))))) && ((ygui < ((344 - 60) + 30))))){ menuselected = 6; smouse = 0; piratesay = "Moar cannons!"; piratesaid = 250; }; }; _local8 = 0; if ((((_local4 > 4)) || ((Skills[(_local4 - 1)] == 1)))){ if ((((_local4 == 5)) && ((_local6 > tsacri)))){ ObjStat[(t_player * 6)] = (ObjStat[(t_player * 6)] + (tsacri * 100)); tsacri = 0; _local8 = 1; }; if ((((_local6 <= tsacri)) && ((tsacri > 0)))){ tsacri = (tsacri - _local6); if (_local4 == 5){ ObjStat[(t_player * 6)] = (ObjStat[(t_player * 6)] + (_local6 * 100)); }; if (_local4 == 6){ _local14 = 0; _local15 = 0; _local16 = 0; _local17 = 0; while (_local14 == 0) { _local16 = (things[(t_player * 9)] + ((Math.random() - 0.5) * 300)); _local17 = (things[((t_player * 9) + 1)] + ((Math.random() - 0.5) * 300)); if (CheckClick(_local16, _local17) < 1){ _local14 = 1; }; ++_local15; if (_local15 > 100){ _local14 = 1; }; }; setCannon(_local16, _local17); }; if ((((_local4 == 3)) && ((_local6 > 0)))){ Skillcount[2] = (Skillcount[2] + (_local6 / 3)); }; if (_local4 == 4){ Skillcount[3] = (Skillcount[3] + (_local6 * 10)); }; if (ObjStat[(t_player * 6)] > 1000){ ObjStat[(t_player * 6)] = 1000; }; } else { if (_local8 == 0){ piratesay = "me needs more money to buy that!"; piratesaid = 250; }; }; menuselected = 0; }; if (truepause == 1){ if (creditsmode == 0){ if ((((((((xgui > 195)) && ((ygui > 150)))) && ((xgui < 286)))) && ((ygui < 170)))){ sfxdis = ((sfxdis + 1) & 1); if (sfxdis == 0){ killwaves = sowaves.play(0, 9999999); barrelr = sobarrelroll.play(0, 99999999); cannonr = socannonroll.play(0, 99999999); windr = sowindpow.play(0, 99999999); if (killwaves != null){ volumer.volume = 0; barrelr.soundTransform = volumer; volumer.volume = 0; cannonr.soundTransform = volumer; volumer.volume = 0; windr.soundTransform = volumer; }; }; if ((((sfxdis == 1)) && (!((killwaves == null))))){ killwaves.stop(); barrelr.stop(); cannonr.stop(); windr.stop(); }; }; if ((((((((xgui > 300)) && ((ygui > 150)))) && ((xgui < 397)))) && ((ygui < 170)))){ musicdis = ((musicdis + 1) & 1); if (musicdis == 0){ musicpla = soumsic.play(0, 99999999); }; if ((((musicdis == 1)) && (!((musicpla == null))))){ musicpla.stop(); }; }; if ((((((((((xgui > 198)) && ((ygui > 212)))) && ((xgui < 318)))) && ((ygui < 230)))) && ((resetsure == 0)))){ resetsure = 1; }; if ((((((((((xgui > 215)) && ((ygui > 232)))) && ((xgui < 0x0101)))) && ((ygui < 252)))) && ((resetsure == 1)))){ if (killwaves != null){ barrelr.stop(); cannonr.stop(); windr.stop(); killwaves.stop(); }; if (musicpla != null){ musicpla.stop(); }; stage.removeChild(buttmap); removeEventListener(Event.ENTER_FRAME, Framerun); fixreset = 1; gotoAndPlay(1, "Scene 5"); }; if ((((((((((xgui > 275)) && ((ygui > 232)))) && ((xgui < 310)))) && ((ygui < 252)))) && ((resetsure == 1)))){ resetsure = 0; }; if ((((((((xgui > 197)) && ((ygui > 252)))) && ((xgui < 322)))) && ((ygui < 271)))){ resetsure = 0; truepause = 0; pausegame = 0; }; if ((((((((xgui > 196)) && ((ygui > 172)))) && ((xgui < 293)))) && ((ygui < 190)))){ SaveGame(); piratesay = "Game Saved!"; piratesaid = 250; holdmode = 1; nowaiar = 0; }; if ((((((((((xgui > 196)) && ((ygui > 191)))) && ((xgui < 335)))) && ((ygui < 211)))) && ((nowaiar == 0)))){ LoadGame(); resetsure = 0; truepause = 0; pausegame = 0; }; if ((((((((((((xgui > 197)) && ((ygui > 271)))) && ((xgui < 362)))) && ((ygui < 293)))) && ((notutroll == 1)))) && ((tutorial == 1)))){ _local18 = 0; while (_local18 < (thingcount + 1)) { if ((((((((((((((things[((_local18 * 9) + 5)] == 4)) || ((things[((_local18 * 9) + 5)] == 5)))) || ((things[((_local18 * 9) + 5)] == 14)))) || ((things[((_local18 * 9) + 5)] == 15)))) || ((things[((_local18 * 9) + 5)] == 8)))) || ((things[((_local18 * 9) + 5)] == 6)))) || ((things[((_local18 * 9) + 5)] == 10)))){ things[((_local18 * 9) + 5)] = 7; }; _local18++; }; setTreasure(3700, 1400); setBarrel(3800, 1500); setBarrel(3850, 1500); setBarrel(3900, 1500); setCannon(3500, 1500); setCannon(3300, 1500); setWeapon(3500, 1600, 0); setWeapon(3700, 1600, 1); tsacri = 10; CarriedStat[CarringStat[t_player]] = 0; CarringStat[t_player] = 0; cannonmode = 0; level++; levelshow = 550; tutorial = 0; stcounter = 20; timer = 1998; oldyet = 0; resetsure = 0; truepause = 0; pausegame = 0; unlockstart = 1; SaveState(); }; } else { if ((((((((xgui > 175)) && ((ygui > (320 - 50))))) && ((xgui < 355)))) && ((ygui < (360 - 50))))){ creditsmode = 0; }; }; }; if ((((((_local4 > 0)) && ((_local4 < 5)))) && (!((Skills[(_local4 - 1)] == 1))))){ if (_local5 <= tsacri){ TalkEvents[(3 + _local4)] = (TalkEvents[(3 + _local4)] | 1); tsacri = (tsacri - _local5); Skills[(_local4 - 1)] = 1; Skillcount[(_local4 - 1)] = _local7; menuselected = 0; } else { piratesay = "me needs more money to buy that!"; piratesaid = 250; menuselected = 0; }; }; _local9 = (((zoom / 5) + 5) + 200); if ((((((((((xgui > 586)) && ((xgui < 606)))) && ((ygui > _local9)))) && ((ygui < (_local9 + 37))))) && ((Skills[0] == 1)))){ zoomofy = (ygui - _local9); zoompicked = 1; smouse = 0; }; _local10 = CheckClick((xmouse + scx), (ymouse + scy)); if (pausegame == 0){ _local19 = CheckClickSP((xmouse + scx), (ymouse + scy)); _local20 = 0; goffx = (xmouse - (things[(_local19 * 9)] - scx)); goffy = (ymouse - (things[((_local19 * 9) + 1)] - scy)); if ((((things[((_local19 * 9) + 5)] == 8)) && ((SkullStat[((_local19 * 3) + 1)] > 1)))){ _local19 = SkullStat[((_local19 * 3) + 1)]; }; if ((((CarriedStat[_local19] > 0)) && (!((things[((_local19 * 9) + 5)] == 10))))){ _local19 = 0; }; if (Skills[1] != 1){ _local19 = 0; }; if (_local19 != 0){ _local20 = setGhost(((xmouse + scx) - goffx), ((ymouse + scy) - goffy), _local19); smouse = 0; }; if (_local20 != 0){ ghostid = _local20; ghosthold = 1; }; }; } public function MoveAsBarrel(_arg1){ 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:*; Hardman[_arg1] = 0; vectors[(_arg1 * 5)] = (vectors[(_arg1 * 5)] / 2); vectors[((_arg1 * 5) + 1)] = (vectors[((_arg1 * 5) + 1)] / 2); SpreadPeople(_arg1, 32); if ((vectors[(_arg1 * 5)] + vectors[((_arg1 * 5) + 1)]) != 0){ _local8 = vectors[(_arg1 * 5)]; _local9 = vectors[((_arg1 * 5) + 1)]; _local7 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local8 = (_local8 / _local7); _local9 = (_local9 / _local7); _local10 = 0; _local11 = 0.03; _local12 = 30000; _local15 = 0; while (_local15 < 16) { _local13 = (_local8 - carrota[(_local15 & 15)].x); _local14 = (_local9 - carrota[(_local15 & 15)].y); _local11 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14))); if (_local12 > _local11){ _local12 = _local11; _local10 = _local15; }; _local15++; }; things[((_arg1 * 9) + 6)] = ((things[((_arg1 * 9) + 6)] + FCR(things[((_arg1 * 9) + 6)], _local10)) & 15); }; _local2 = 0; _local3 = 0; _local4 = (0x0F00 - (things[(_arg1 * 9)] + 30)); _local5 = (1664 - (things[((_arg1 * 9) + 1)] + 30)); _local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); _local4 = ((_local4 / _local6) * 40); _local5 = ((_local5 / _local6) * 40); if (EvalTerrain(((things[(_arg1 * 9)] + 25) - _local4), ((things[((_arg1 * 9) + 1)] + 25) - _local5)) == 0){ _local2 = (0x0F00 - (things[(_arg1 * 9)] + 30)); _local3 = (1664 - (things[((_arg1 * 9) + 1)] + 30)); _local7 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _local2 = (_local2 / (_local7 * 1)); _local3 = (_local3 / (_local7 * 1)); if ((((((Math.random() > 1)) && ((CarriedStat[_arg1] == 0)))) && ((tutorial == 0)))){ things[((_arg1 * 9) + 5)] = 7; }; }; things[(_arg1 * 9)] = ((things[(_arg1 * 9)] + vectors[(_arg1 * 5)]) + (_local2 * fps)); things[((_arg1 * 9) + 1)] = ((things[((_arg1 * 9) + 1)] + vectors[((_arg1 * 5) + 1)]) + (_local3 * fps)); } public function Explodeshipt(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; _local2 = 0; _local3 = 0; _local4 = (0x0F00 - things[(_arg1 * 9)]); _local5 = (1664 - things[((_arg1 * 9) + 1)]); setCannon((things[(_arg1 * 9)] + ((Math.random() - 0.5) * 220)), (things[((_arg1 * 9) + 1)] + ((Math.random() - 0.5) * 220))); setWeapon((things[(_arg1 * 9)] + ((Math.random() - 0.5) * 220)), (things[((_arg1 * 9) + 1)] + ((Math.random() - 0.5) * 220)), 0); setWeapon((things[(_arg1 * 9)] + ((Math.random() - 0.5) * 220)), (things[((_arg1 * 9) + 1)] + ((Math.random() - 0.5) * 220)), 1); setBarrel((things[(_arg1 * 9)] + ((Math.random() - 0.5) * 220)), (things[((_arg1 * 9) + 1)] + ((Math.random() - 0.5) * 220))); setTreasure((things[(_arg1 * 9)] + ((Math.random() - 0.5) * 220)), (things[((_arg1 * 9) + 1)] + ((Math.random() - 0.5) * 220))); setTreasure((things[(_arg1 * 9)] + ((Math.random() - 0.5) * 220)), (things[((_arg1 * 9) + 1)] + ((Math.random() - 0.5) * 220))); tsacri = (tsacri + 20); tutraise = 5; } public function MoveAsAlly(_arg1){ 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:*; Hardman[_arg1] = 0; _local2 = 0; _local3 = 0.01; _local4 = 10000; _local5 = 0.01; _local6 = 0.01; _local7 = 0; while (_local7 < (thingcount + 1)) { if (things[((_local7 * 9) + 5)] == 6){ _local5 = ((things[(_local7 * 9)] + 32) - things[(_arg1 * 9)]); _local6 = ((things[((_local7 * 9) + 1)] + 45) - things[((_arg1 * 9) + 1)]); _local3 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); if (_local3 < _local4){ _local4 = _local3; _local2 = _local7; }; }; _local7++; }; vectors[(_arg1 * 5)] = (vectors[(_arg1 * 5)] / 2); vectors[((_arg1 * 5) + 1)] = (vectors[((_arg1 * 5) + 1)] / 2); _local8 = 0.01; _local9 = 0.01; _local10 = 0; _local11 = 10000; _local12 = 100000; _local13 = 0; _local14 = 0; while (_local14 < (thingcount + 1)) { _local21 = 0; if ((((level == 11)) && ((((things[((_local14 * 9) + 5)] == 17)) || ((things[((_local14 * 9) + 5)] == 18)))))){ _local21 = 1; }; if ((((things[((_local14 * 9) + 5)] == 4)) || ((_local21 == 1)))){ _local13 = 1; _local8 = (things[(_arg1 * 9)] - things[(_local14 * 9)]); _local9 = (things[((_arg1 * 9) + 1)] - things[((_local14 * 9) + 1)]); _local3 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local8 = (things[(_local2 * 9)] - things[(_local14 * 9)]); _local9 = (things[((_local2 * 9) + 1)] - things[((_local14 * 9) + 1)]); _local3 = (_local3 + Math.sqrt(((_local8 * _local8) + (_local9 * _local9)))); if (_local11 > _local3){ _local11 = _local3; _local10 = _local14; }; }; _local14++; }; _local8 = (things[(_local10 * 9)] - things[(_arg1 * 9)]); _local9 = (things[((_local10 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local3 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); if (_local13 == 1){ vectors[(_arg1 * 5)] = ((_local8 / _local3) * 2); vectors[((_arg1 * 5) + 1)] = ((_local9 / _local3) * 2); _local12 = _local3; } else { _local12 = 10000000; }; _local8 = vectors[(_arg1 * 5)]; _local9 = vectors[((_arg1 * 5) + 1)]; _local3 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local8 = (_local8 / _local3); _local9 = (_local9 / _local3); _local15 = 0; _local16 = 0.03; _local17 = 30000; _local18 = 0; while (_local18 < 16) { _local5 = (_local8 - carrota[(_local18 & 15)].x); _local6 = (_local9 - carrota[(_local18 & 15)].y); _local16 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); if (_local17 > _local16){ _local17 = _local16; _local15 = _local18; }; _local18++; }; things[((_arg1 * 9) + 6)] = _local15; _local19 = 0; _local20 = 0; if (SkullStat[(_arg1 * 3)] == 0){ getthings(((things[(_arg1 * 9)] + (_local8 * 16)) + 32), ((things[((_arg1 * 9) + 1)] + (_local9 * 16)) + 32), 16); _local7 = 0; while (_local7 < retusiz) { if ((((((((things[((retucol[_local7] * 9) + 5)] == 4)) || ((things[((retucol[_local7] * 9) + 5)] == 5)))) || ((things[((retucol[_local7] * 9) + 5)] == 17)))) || ((things[((retucol[_local7] * 9) + 5)] == 18)))){ SkullStat[(_arg1 * 3)] = 3; _local20 = 1; _local19 = 2; }; _local7++; }; }; if ((((SkullStat[(_arg1 * 3)] == 1)) && ((_local12 < 300)))){ _local19 = 4; vectors[(_arg1 * 5)] = 0; vectors[((_arg1 * 5) + 1)] = 0; if ((((ObjAnim[(_arg1 * 4)] > 2.45)) && ((ObjAnim[(_arg1 * 4)] < 3.98)))){ ShotBall(((things[(_arg1 * 9)] + (_local8 * 48)) + 32), ((things[((_arg1 * 9) + 1)] + (_local9 * 48)) + 52), (_local8 * 20), (_local9 * 20), 1, _arg1); ObjAnim[(_arg1 * 4)] = 4; }; }; if (SkullStat[(_arg1 * 3)] == 3){ _local19 = 2; }; if (((!((GoingtoDie[(_arg1 * 2)] == 1))) && ((_local13 == 1)))){ if (AnimateWho(_arg1, _local19, _local15, _local20) == 1){ if (SkullStat[(_arg1 * 3)] == 3){ getthings(((things[(_arg1 * 9)] + (_local8 * 16)) + 32), ((things[((_arg1 * 9) + 1)] + (_local9 * 16)) + 32), 16); Cut(_arg1, 20); SkullStat[(_arg1 * 3)] = 0; }; }; }; SpreadPeople(_arg1, 32); if (EvalTerrain((things[(_arg1 * 9)] + 25), (things[((_arg1 * 9) + 1)] + 40)) == 0){ vectors[(_arg1 * 5)] = (0x0F00 - things[(_arg1 * 9)]); vectors[((_arg1 * 5) + 1)] = (1664 - things[((_arg1 * 9) + 1)]); _local3 = Math.sqrt(((vectors[(_arg1 * 5)] * vectors[(_arg1 * 5)]) + (vectors[((_arg1 * 5) + 1)] * vectors[((_arg1 * 5) + 1)]))); vectors[(_arg1 * 5)] = ((vectors[(_arg1 * 5)] / _local3) * 3); vectors[((_arg1 * 5) + 1)] = ((vectors[((_arg1 * 5) + 1)] / _local3) * 3); }; things[(_arg1 * 9)] = (things[(_arg1 * 9)] + (vectors[(_arg1 * 5)] * fps)); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + (vectors[((_arg1 * 5) + 1)] * fps)); } public function RasterSFX(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:Matrix; var _local10:ColorTransform; var _local11:*; var _local12:*; _local3 = 0; _local4 = 0; _local5 = 0; _local6 = 0; _local7 = 0; _local8 = 0; _local9 = new Matrix(); _local10 = new ColorTransform(); _local11 = 0; while (_local11 < (Sfxcount + 1)) { if (isNaN(_local11) == false){ _local12 = 0; if (Sfx[((_local11 * 5) + 2)] == 1){ _local3 = 0; _local4 = 1; _local5 = 1; _local6 = 1.8; _local8 = 50; }; if (Sfx[((_local11 * 5) + 2)] == 2){ _local3 = 3; _local4 = 1; _local5 = 0; _local8 = 60; }; if (Sfx[((_local11 * 5) + 2)] == 3){ _local3 = 0; _local4 = 1; _local5 = 0; _local8 = 50; }; if (Sfx[((_local11 * 5) + 2)] == 4){ _local3 = 5; _local4 = 1; _local5 = 0; _local8 = 50; }; if (Sfx[((_local11 * 5) + 2)] == 5){ _local3 = 6; _local4 = 1; _local5 = 0; _local8 = 50; _local12 = 1; }; if (_local4 == 1){ _local7 = int((_local3 + Sfx[((_local11 * 5) + 3)])); if ((((_local7 > 5)) && ((_local12 == 0)))){ _local7 = 2; }; if (_local7 < 0){ _local7 = 0; }; _local9.a = 1; _local9.d = 1; _local9.tx = (((Sfx[(_local11 * 5)] - _arg1) + SFXBound[_local7].x) + zoomoffx); _local9.ty = (((Sfx[((_local11 * 5) + 1)] - _arg2) + SFXBound[_local7].y) + zoomoffy); _local10.alphaMultiplier = (Sfx[((_local11 * 5) + 4)] / _local8); bitmapdata.draw(SFXFrames[_local7], _local9, _local10); }; if (_local5 == 1){ Sfx[((_local11 * 5) + 3)] = (Sfx[((_local11 * 5) + 3)] + (0.25 * fps)); if (Sfx[((_local11 * 5) + 3)] > _local6){ Sfx[((_local11 * 5) + 3)] = _local6; }; }; if (Sfx[((_local11 * 5) + 4)] < 0){ Sfx[((_local11 * 5) + 2)] = 0; if ((((_local11 == Sfxcount)) && ((Sfxcount > 0)))){ Sfxcount--; }; }; Sfx[((_local11 * 5) + 4)] = (Sfx[((_local11 * 5) + 4)] - fps); }; _local11++; }; } public function Wavegen(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:Matrix; var _local9:ColorTransform; _local3 = 0; while (_local3 < waco) { _local4 = (Waves[(_local3 * 4)] - _arg1); _local5 = (Waves[((_local3 * 4) + 1)] - _arg2); _local6 = Waves[((_local3 * 4) + 2)]; _local7 = Waves[((_local3 * 4) + 3)]; if ((((((((_local4 > -200)) && ((_local4 < 1040)))) && ((_local5 > -200)))) && ((_local5 < 880)))){ _local8 = new Matrix(); _local9 = new ColorTransform(); _local8.a = _local6; _local8.b = (_local7 / 1.5); _local8.c = (0 - _local7); _local8.d = (_local6 / 1.5); _local8.tx = ((_local4 + (_local6 * wavepos)) + zoomoffx); _local8.ty = ((_local5 + (_local7 * wavepos)) + zoomoffy); _local9.alphaMultiplier = ((50 - wavepos) / 50); bitmapdata.draw(wavepic, _local8, _local9); }; _local3++; }; if (wavestate == 1){ wavevec = (wavevec - 0.1); }; wavepos = (wavepos + (wavevec * fps)); if (wavestate == 0){ wavevec = (wavevec + 0.3); if (wavevec > 1){ wavevec = 1; }; }; if (wavepos < -10){ wavestate = 0; }; if (wavepos > 80){ wavestate = 1; }; } public function bonussum(){ var _local1:*; var _local2:*; var _local3:*; _local1 = 0; _local2 = 0; while (_local2 < (thingcount + 1)) { if (things[((_local2 * 9) + 5)] == 8){ _local1++; }; _local2++; }; _local3 = (tpow - _local1); score = ((score + (_local3 * 1000)) + speedbonus); speedbonus = (5000 + (level * 1000)); } public function setInvisibleBlock(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; _local3 = 0; _local4 = 0; _local5 = 0; while (_local5 < thingcount) { if (things[((_local5 * 9) + 5)] == 7){ _local3 = _local5; _local5 = (thingcount + 1); _local4 = 1; }; _local5++; }; if (_local4 == 0){ thingcount++; _local3 = thingcount; }; vectors[(_local3 * 5)] = 0; vectors[((_local3 * 5) + 1)] = 0; vectors[((_local3 * 5) + 2)] = 0; vectors[((_local3 * 5) + 3)] = 10; vectors[((_local3 * 5) + 4)] = 0; things[(_local3 * 9)] = _arg1; things[((_local3 * 9) + 1)] = _arg2; things[((_local3 * 9) + 2)] = 0; things[((_local3 * 9) + 5)] = 25; things[((_local3 * 9) + 6)] = 0; things[((_local3 * 9) + 7)] = 0; bounding[(_local3 * 4)] = 60; bounding[((_local3 * 4) + 1)] = 45; } public function mouseup(_arg1:MouseEvent):void{ } public function CheckTriangleCollision(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11):Number{ var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local32:Number; var _local33:Number; var _local34:*; var _local35:Number; _local12 = 0.01; _local13 = 0.01; _local14 = 0.01; _local15 = 0.01; _local16 = 0.01; _local17 = 0.01; _local18 = 0.01; _local19 = 0.01; _local20 = 0; _local21 = 0.01; _local22 = 0; _local23 = 0.01; _local24 = 0.01; _local25 = 0.01; _local26 = 0.01; _local27 = 0.01; _local28 = 0.01; _local29 = 0.01; _local30 = 0.01; _local31 = 0.01; _local32 = 0.01; _local33 = 0.01; _local34 = 0; _local19 = 100000; _local20 = 0; if (_arg3 < _local19){ _local19 = _arg3; }; if (_arg6 < _local19){ _local19 = _arg6; }; if (_arg9 < _local19){ _local19 = _arg9; }; if (_arg3 > _local20){ _local20 = _arg3; }; if (_arg6 > _local20){ _local20 = _arg6; }; if (_arg9 > _local20){ _local20 = _arg9; }; _local21 = 100000; _local22 = 0; if (_arg4 < _local21){ _local21 = _arg4; }; if (_arg7 < _local21){ _local21 = _arg7; }; if (_arg10 < _local21){ _local21 = _arg10; }; if (_arg4 > _local22){ _local22 = _arg4; }; if (_arg7 > _local22){ _local22 = _arg7; }; if (_arg10 > _local22){ _local22 = _arg10; }; if ((((((((_arg1 > _local19)) && ((_arg1 < _local20)))) && ((_arg2 > _local21)))) && ((_arg2 < _local22)))){ _local12 = (((_arg2 - _arg4) * (_arg6 - _arg3)) - ((_arg1 - _arg3) * (_arg7 - _arg4))); _local13 = (((_arg2 - _arg10) * (_arg3 - _arg9)) - ((_arg1 - _arg9) * (_arg4 - _arg10))); _local14 = (((_arg2 - _arg7) * (_arg9 - _arg6)) - ((_arg1 - _arg6) * (_arg10 - _arg7))); if ((_local12 * _local14) > 0){ if ((_local14 * _local13) > 0){ _local15 = (((_arg3 + _arg6) + _arg9) / 3); _local16 = (((_arg4 + _arg7) + _arg10) / 3); _local17 = (((_arg1 - _local15) * 90) + _local15); _local18 = (((_arg2 - _local16) * 90) + _local16); if (lineIntersection(_arg3, _arg4, _arg6, _arg7, _local15, _local16, _local17, _local18) == 0){ _local23 = Math.sqrt((((_arg3 - _arg6) * (_arg3 - _arg6)) + ((_arg4 - _arg7) * (_arg4 - _arg7)))); _local25 = (Math.sqrt((((rx - _arg6) * (rx - _arg6)) + ((ry - _arg7) * (ry - _arg7)))) / _local23); _local27 = (1 - _local25); _local26 = _local25; } else { if (lineIntersection(_arg6, _arg7, _arg9, _arg10, _local15, _local16, _local17, _local18) == 0){ _local23 = Math.sqrt((((_arg9 - _arg6) * (_arg9 - _arg6)) + ((_arg10 - _arg7) * (_arg10 - _arg7)))); _local25 = (Math.sqrt((((rx - _arg9) * (rx - _arg9)) + ((ry - _arg10) * (ry - _arg10)))) / _local23); _local28 = (1 - _local25); _local27 = _local25; } else { if (lineIntersection(_arg9, _arg10, _arg3, _arg4, _local15, _local16, _local17, _local18) == 0){ _local23 = Math.sqrt((((_arg3 - _arg9) * (_arg3 - _arg9)) + ((_arg4 - _arg10) * (_arg4 - _arg10)))); _local25 = (Math.sqrt((((rx - _arg3) * (rx - _arg3)) + ((ry - _arg4) * (ry - _arg4)))) / _local23); _local26 = (1 - _local25); _local28 = _local25; }; }; }; _local31 = (rx - _local15); _local32 = (ry - _local16); _local29 = (_arg1 - _local15); _local30 = (_arg2 - _local16); _local24 = Math.sqrt(((_local31 * _local31) + (_local32 * _local32))); _local33 = (Math.sqrt(((_local29 * _local29) + (_local30 * _local30))) / _local24); if (_local33 < 0){ _local33 = 0; }; if (_local33 > 1){ _local33 = 1; }; _local26 = ((_local26 * _local33) + (0.5 * (1 - _local33))); _local27 = ((_local27 * _local33) + (0.5 * (1 - _local33))); _local28 = ((_local28 * _local33) + (0.5 * (1 - _local33))); if (_local26 < 0){ _local26 = 0; }; if (_local27 < 0){ _local27 = 0; }; if (_local28 < 0){ _local28 = 0; }; _local35 = 0.1; _local26 = (_local26 * 1.6); _local27 = (_local27 * 1.6); _local28 = (_local28 * 1.6); _local35 = ((_local26 + _local27) + _local28); _local26 = (_local26 / _local35); _local27 = (_local27 / _local35); _local28 = (_local28 / _local35); _local34 = (((_arg5 * _local26) + (_arg8 * _local27)) + (_arg11 * _local28)); }; }; }; return (_local34); } public function LoadGame(){ var _local1:ByteArray; var _local2:SharedObject; var _local3:*; var _local4:*; _local1 = new ByteArray(); _local2 = SharedObject.getLocal("Unholy_Island"); _local2.data.gamedata.position = 0; _local3 = _local2.data.gamedata; _local1.writeBytes(_local3); compacte.writeBytes(_local3); savest = 1; _local1.position = 0; _local1.uncompress(); _local1.position = 0; krakencrazy = _local1.readShort(); tentagrow = _local1.readShort(); krakenwaypoint = _local1.readShort(); retheavy = _local1.readShort(); level = _local1.readShort(); timer = _local1.readShort(); levelshow = _local1.readShort(); oldyet = _local1.readShort(); tutorial = _local1.readShort(); snitch = _local1.readShort(); ghostid = _local1.readShort(); ghosthold = _local1.readShort(); goffx = _local1.readShort(); goffy = _local1.readShort(); zoompicked = _local1.readShort(); zoomofx = _local1.readShort(); zoomofy = _local1.readShort(); tempdisable = _local1.readShort(); teleguid = _local1.readShort(); refx = _local1.readShort(); refy = _local1.readShort(); telexplode = _local1.readShort(); vox = _local1.readShort(); voy = _local1.readShort(); picked = _local1.readShort(); ally_spring = _local1.readShort(); holdspring = _local1.readShort(); holdingitem = _local1.readShort(); charstate = _local1.readShort(); hero_animate = _local1.readShort(); endanim = _local1.readShort(); firstframe = _local1.readShort(); piratepush = _local1.readShort(); cannonmode = _local1.readShort(); cannonid = _local1.readShort(); cannonrot = _local1.readShort(); animove = _local1.readShort(); cannoncount = _local1.readShort(); hopoff = _local1.readShort(); loadedcount = _local1.readShort(); carwheel = _local1.readShort(); pausegame = _local1.readShort(); aspasm = _local1.readShort(); overbit = _local1.readShort(); tutcount = _local1.readShort(); pi = _local1.readShort(); bonusk = _local1.readShort(); gammo = _local1.readShort(); tutorial = _local1.readShort(); notutroll = _local1.readShort(); tsacri = _local1.readShort(); stramode = _local1.readShort(); stcounter = _local1.readShort(); stc2 = _local1.readShort(); tutstep = _local1.readShort(); tutraise = _local1.readShort(); holdmode = _local1.readShort(); krakencrazy = _local1.readShort(); tentagrow = _local1.readShort(); krakenwaypoint = _local1.readShort(); bonusk = _local1.readShort(); if (tutorial == 0){ unlockstart = 1; }; fasterload = 1; scx = _local1.readInt(); scy = _local1.readInt(); score = _local1.readInt(); _local4 = 0; while (_local4 < 30) { TalkEvents[_local4] = _local1.readShort(); Skills[_local4] = _local1.readShort(); Skillcount[_local4] = _local1.readShort(); tentaglue[_local4] = _local1.readShort(); _local4++; }; thingcount = _local1.readInt(); _local4 = (orithing * 9); while (_local4 < ((thingcount + 1) * 9)) { things[_local4] = _local1.readShort(); _local4++; }; _local4 = (orithing * 6); while (_local4 < ((thingcount + 1) * 6)) { ObjStat[_local4] = _local1.readShort(); _local4++; }; _local4 = (orithing * 4); while (_local4 < ((thingcount + 1) * 4)) { PirateStat[_local4] = _local1.readShort(); _local4++; }; _local4 = (orithing * 4); while (_local4 < ((thingcount + 1) * 4)) { bounding[_local4] = _local1.readShort(); _local4++; }; _local4 = (orithing * 3); while (_local4 < ((thingcount + 1) * 3)) { SkullStat[_local4] = _local1.readShort(); _local4++; }; _local4 = (orithing * 1); while (_local4 < ((thingcount + 1) * 1)) { CarriedStat[_local4] = _local1.readShort(); _local4++; }; _local4 = (orithing * 1); while (_local4 < ((thingcount + 1) * 1)) { CarringStat[_local4] = _local1.readShort(); _local4++; }; _local4 = (orithing * 1); while (_local4 < ((thingcount + 1) * 1)) { CannonStat[_local4] = _local1.readShort(); _local4++; }; _local4 = (orithing * 1); while (_local4 < ((thingcount + 1) * 1)) { TesouroStat[_local4] = _local1.readShort(); _local4++; }; _local4 = (orithing * 3); while (_local4 < ((thingcount + 1) * 3)) { Spooked[_local4] = 0; _local4++; }; _local4 = (orithing * 5); while (_local4 < ((thingcount + 1) * 5)) { vectors[_local4] = 0; _local4++; }; } public function PlaySound(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:SoundTransform; soundblock[_arg2] = (soundblock[_arg2] - fps); if (sfxdis == 0){ if (1 == 1){ _local3 = ((things[(t_player * 9)] - things[(_arg1 * 9)]) / 600); _local4 = (Math.abs(_local3) / 100); if (_local4 > 1){ _local4 = 1; }; if (_local4 < 0){ _local4 = 0; }; _local4 = (1 - _local4); if (_local3 < -1){ _local3 = -1; }; if (_local3 > 1){ _local3 = 1; }; _local5 = (things[(t_player * 9)] - things[(_arg1 * 9)]); _local6 = (things[(t_player * 9)] - things[(_arg1 * 9)]); _local4 = Math.sqrt(((_local5 * _local5) + (_local6 * _local6))); _local4 = (1 - (_local4 / 1800)); if (_local4 > 1){ _local4 = 1; }; if (_local4 < 0){ _local4 = 0; }; _local7 = new SoundTransform(_local4, _local3); if (_arg2 == 0){ soundbuffer[(0 + soswi[0])].stop(); soundbuffer[(0 + soswi[0])] = soslash[soswi[0]].play(0, 0, _local7); soswi[0] = ((soswi[0] + 1) & 3); }; if (_arg2 == 1){ soundbuffer[(4 + soswi[1])].stop(); soundbuffer[(4 + soswi[1])] = socannon[soswi[1]].play(0, 0, _local7); soswi[1] = ((soswi[1] + 1) & 3); }; if (_arg2 == 2){ soundbuffer[(8 + soswi[2])].stop(); soundbuffer[(8 + soswi[2])] = somusket[soswi[2]].play(0, 0, _local7); soswi[2] = ((soswi[2] + 1) & 3); }; if (_arg2 == 3){ soundbuffer[(12 + soswi[3])].stop(); soundbuffer[(12 + soswi[3])] = sokrarise.play(0, 0, _local7); soswi[3] = ((soswi[3] + 1) & 3); }; if (_arg2 == 4){ soundbuffer[(16 + soswi[4])].stop(); soundbuffer[(16 + soswi[4])] = sokradie.play(0, 0, _local7); soswi[4] = ((soswi[4] + 1) & 3); }; if (_arg2 == 5){ soundbuffer[(20 + soswi[5])].stop(); soundbuffer[(20 + soswi[5])] = soshipdie.play(0, 0, _local7); soswi[5] = ((soswi[5] + 1) & 3); }; if (_arg2 == 6){ soundbuffer[(24 + soswi[6])].stop(); soundbuffer[(24 + soswi[6])] = soswordmiss[soswi[6]].play(0, 0, _local7); soswi[6] = ((soswi[6] + 1) & 3); }; if (_arg2 == 7){ soundbuffer[(28 + soswi[7])].stop(); soundbuffer[(28 + soswi[7])] = sobarrelroll.play(0, 0, _local7); soswi[7] = ((soswi[7] + 1) & 3); }; if (_arg2 == 8){ soundbuffer[(32 + soswi[8])].stop(); soundbuffer[(32 + soswi[8])] = sosell.play(0, 0, _local7); soswi[8] = ((soswi[8] + 1) & 3); }; if (_arg2 == 9){ soundbuffer[(36 + soswi[9])].stop(); soundbuffer[(36 + soswi[9])] = socannonroll.play(0, 0, _local7); soswi[9] = ((soswi[9] + 1) & 3); }; if (_arg2 == 10){ soundbuffer[(40 + soswi[10])].stop(); soundbuffer[(40 + soswi[10])] = sospawn.play(0, 0, _local7); soswi[10] = ((soswi[10] + 1) & 3); }; soundblock[_arg2] = 3; }; }; } public function MoveAsKraken(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:*; var _local19:*; var _local20:*; var _local21:*; var _local22:*; var _local23:*; var _local24:*; var _local25:*; var _local26:*; var _local27:*; var _local28:*; var _local29:*; var _local30:*; var _local31:*; Hardman[_arg1] = 0; windblock[_arg1] = 0; _local2 = (3540 - things[(_arg1 * 9)]); _local3 = (1664 - things[((_arg1 * 9) + 1)]); _local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _local5 = 0; _local2 = (_local2 / _local4); _local3 = (_local3 / _local4); _local6 = _local2; _local7 = _local3; _local8 = -1; if (ObjStat[(_arg1 * 6)] < 0){ ObjStat[(_arg1 * 6)] = (ObjStat[(_arg1 * 6)] - (fps * 1)); if (ObjStat[(_arg1 * 6)] < -231){ _local8 = int(((18 - (250 + ObjStat[(_arg1 * 6)])) / 6)); if (_local8 > 2){ _local8 = 2; }; if (_local8 < 0){ _local8 = 0; }; }; if (ObjStat[(_arg1 * 6)] < -250){ things[((_arg1 * 9) + 5)] = 7; krakroll = 2; PlaySound(_local17, 4); score = ((score + 2000) + bonusk); _local17 = 0; while (_local17 < 8) { setTreasure(((things[(_arg1 * 9)] + ((Math.random() * 120) - 60)) + 200), ((things[((_arg1 * 9) + 1)] + ((Math.random() * 120) - 60)) + 200)); tsacri = (tsacri + 10); _local17++; }; }; _local2 = (0 - _local2); _local3 = (0 - _local3); } else { if (EvalTerrain((things[(_arg1 * 9)] + (_local2 * 400)), (things[((_arg1 * 9) + 1)] + (_local3 * 400))) != 0){ _local2 = 0; _local3 = 0; _local5 = 1; windblock[_arg1] = 1; }; }; if (krakencrazy == 0){ ObjStat[(_arg1 * 6)] = 2500; }; if ((((krakencrazy == 1)) && ((ObjStat[(_arg1 * 6)] > 0)))){ bonusk = (bonusk - fps); if (bonusk < 0){ bonusk = 0; }; TalkEvents[8] = (TalkEvents[8] | 1); _local6 = (3540 - things[(_arg1 * 9)]); _local7 = (1664 - things[((_arg1 * 9) + 1)]); _local4 = Math.sqrt(((_local6 * _local6) + (_local7 * _local7))); _local6 = ((_local6 / _local4) * 200); _local7 = ((_local7 / _local4) * 200); _local2 = ((waypoint[krakenwaypoint].x - _local6) - (things[(_arg1 * 9)] + 200)); _local3 = ((waypoint[krakenwaypoint].y - _local7) - (things[((_arg1 * 9) + 1)] + 200)); _local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _local2 = (_local2 / _local4); _local3 = (_local3 / _local4); CallSmoke((((things[(_arg1 * 9)] + 234) + (_local6 / ((Math.random() * 2) + 1))) + ((Math.random() * 30) - 15)), (((things[((_arg1 * 9) + 1)] + 100) + (_local7 / ((Math.random() * 2) + 1))) + ((Math.random() * 30) - 15)), 4); _local6 = _local2; _local7 = _local3; _local2 = (_local2 * 2); _local3 = (_local3 * 2); if (_local4 < 40){ krakenwaypoint = ((krakenwaypoint - 1) & 7); }; _local17 = 0; while (_local17 < (thingcount + 1)) { if ((((((((((things[((_local17 * 9) + 5)] == 6)) || ((things[((_local17 * 9) + 5)] == 8)))) || ((things[((_local17 * 9) + 5)] == 10)))) || ((things[((_local17 * 9) + 5)] == 12)))) || ((things[((_local17 * 9) + 5)] == 16)))){ _local9 = (things[(_local17 * 9)] - ((things[(_arg1 * 9)] + 234) + (_local6 / 2))); _local10 = (things[((_local17 * 9) + 1)] - ((things[((_arg1 * 9) + 1)] + 100) + (_local7 / 2))); _local4 = Math.sqrt(((_local9 * _local9) + (_local10 * _local10))); if (_local4 < 250){ _local9 = (_local9 / _local4); _local10 = (_local10 / _local4); vectors[(_local17 * 5)] = (_local9 * 150); vectors[((_local17 * 5) + 1)] = (_local10 * 150); ObjStat[(_local17 * 6)] = (ObjStat[(_local17 * 6)] - 5); if (things[((_local17 * 9) + 5)] == 12){ piratepush = 40; gammo = 0.25; gammasp = 0.001; }; if (vectors[(_local17 * 5)] < -5){ vectors[(_local17 * 5)] = -5; }; if (vectors[(_local17 * 5)] > 5){ vectors[(_local17 * 5)] = 5; }; if (vectors[((_local17 * 5) + 1)] < -5){ vectors[((_local17 * 5) + 1)] = -5; }; if (vectors[((_local17 * 5) + 1)] > 5){ vectors[((_local17 * 5) + 1)] = 5; }; }; }; _local17++; }; }; _local11 = 1000000; _local12 = 0; _local13 = 0; _local14 = 0; _local12 = 0; while (_local12 < 16) { _local9 = (_local6 - carrota[(_local12 & 15)].x); _local10 = (_local7 - carrota[(_local12 & 15)].y); _local14 = Math.sqrt(((_local9 * _local9) + (_local10 * _local10))); if (_local11 > _local14){ _local11 = _local14; _local13 = _local12; }; _local12++; }; if (_local8 == -1){ things[((_arg1 * 9) + 7)] = carrota[_local13].width; things[((_arg1 * 9) + 6)] = _local13; } else { things[((_arg1 * 9) + 7)] = (((krakendeathrot[carrota[_local13].width] * 3) + 9) + _local8); things[((_arg1 * 9) + 6)] = _local13; }; things[(_arg1 * 9)] = (things[(_arg1 * 9)] + (_local2 * 3)); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + (_local3 * 3)); _local15 = 0; _local17 = 0; while (_local17 < (thingcount + 1)) { if ((((TentacleStat[((_local17 * 4) + 2)] == 0)) && ((things[((_local17 * 9) + 5)] == 18)))){ things[(_local17 * 9)] = (things[(_local17 * 9)] + (_local2 * 3)); things[((_local17 * 9) + 1)] = (things[((_local17 * 9) + 1)] + (_local3 * 3)); _local15++; }; _local17++; }; if ((((_local15 == 0)) && ((krakencrazy == 0)))){ krakencrazy = 1; krakenwaypoint = 0; }; _local16 = 1; while (_local16 < 5) { _local18 = 0; _local19 = 0; _local17 = 0; while (_local17 < (thingcount + 1)) { if ((((TentacleStat[((_local17 * 4) + 1)] == _local16)) && ((things[((_local17 * 9) + 5)] == 18)))){ if (TentacleStat[((_local17 * 4) + 2)] == 0){ _local18 = _local17; }; if (TentacleStat[((_local17 * 4) + 2)] == 1){ _local19 = _local17; }; }; _local17++; }; MoveTentacleZig(_local16); _local20 = (things[(_local18 * 9)] - things[(_local19 * 9)]); _local21 = (things[((_local18 * 9) + 1)] - things[((_local19 * 9) + 1)]); _local4 = Math.sqrt(((_local20 * _local20) + (_local21 * _local21))); if ((((tentacontrol[_local16] == 3)) && ((_local5 == 1)))){ if (Math.random() > 0.1){ _local22 = 0; _local23 = 0; while (_local22 == 0) { _local24 = (int((Math.random() * ((thingcount + 1) - orithing))) + orithing); if ((((((things[((_local24 * 9) + 5)] == 6)) || ((things[((_local24 * 9) + 5)] == 8)))) || ((things[((_local24 * 9) + 5)] == 10)))){ _local22 = _local24; }; _local23++; if (_local22 != 0){ _local25 = 1; while (_local25 < 5) { if ((((tentagrab[_local25] == _local22)) || ((tentaclehunt[_local25] == _local22)))){ _local22 = 0; }; _local25++; }; }; if (_local23 > 800){ _local22 = 6666; }; }; if (_local22 != 6666){ _local26 = 0; _local27 = 1; while (_local27 < 5) { if (tentaclehunt[_local27] == _local22){ _local26 = 1; }; if (tentagrab[_local27] == _local22){ _local26 = 1; }; _local27++; }; if (isNaN(things[(_local22 * 9)]) == true){ _local26 = 1; }; if ((((_local26 == 0)) && (!((_local22 == 6666))))){ tentaclehunt[_local16] = _local22; tentacontrol[_local16] = 0; tentagrab[_local16] = 0; }; }; }; }; if (tentacontrol[_local16] == 1){ _local28 = 0; _local17 = 0; while (_local17 < (thingcount + 1)) { if ((((TentacleStat[((_local17 * 4) + 1)] == _local16)) && ((TentacleStat[(_local17 * 4)] > 0)))){ _local31 = 0; while (_local31 < 9) { things[((_local17 * 9) + _local31)] = 0; _local31++; }; things[((_local17 * 9) + 5)] = 7; vectors[(_local17 * 5)] = 0; vectors[((_local17 * 5) + 1)] = 0; }; _local17++; }; _local29 = things[(_local18 * 9)]; _local30 = things[((_local18 * 9) + 1)]; setTentaclePart((_local29 + (_local2 * 30)), (_local30 + (_local3 * 30)), 2, _local16, 1); tentaclehunt[_local16] = 0; tentacontrol[_local16] = 3; tentagrab[_local16] = 0; }; tentatimer[_local16] = (tentatimer[_local16] - fps); if ((((tentatimer[_local16] < 0)) && ((tentacontrol[_local16] == 0)))){ tentatimer[_local16] = 40; _local29 = (things[(_local18 * 9)] + (_local2 * 40)); _local30 = (things[((_local18 * 9) + 1)] + (_local3 * 40)); _local17 = 0; while (_local17 < (thingcount + 1)) { if ((((TentacleStat[((_local17 * 4) + 1)] == _local16)) && ((TentacleStat[((_local17 * 4) + 2)] > 0)))){ if (TentacleStat[((_local17 * 4) + 2)] > 0){ var _local32 = TentacleStat; var _local33 = ((_local17 * 4) + 2); var _local34 = (_local32[_local33] + 1); _local32[_local33] = _local34; }; }; _local17++; }; setTentaclePart(_local29, _local30, 1, _local16, 1); }; _local16++; }; } public function setTentaclePart(_arg1, _arg2, _arg3, _arg4, _arg5){ var _local6:*; var _local7:*; var _local8:*; _local6 = 0; _local7 = 0; _local8 = 0; while (_local8 < (thingcount + 1)) { if (things[((_local8 * 9) + 5)] == 7){ _local6 = _local8; _local8 = (thingcount + 1); _local7 = 1; }; _local8++; }; if (_local7 == 0){ thingcount++; _local6 = thingcount; }; vectors[(_local6 * 5)] = 0; vectors[((_local6 * 5) + 1)] = 0; vectors[((_local6 * 5) + 2)] = 0; vectors[((_local6 * 5) + 3)] = 10; vectors[((_local6 * 5) + 4)] = 0; things[(_local6 * 9)] = _arg1; things[((_local6 * 9) + 1)] = _arg2; things[((_local6 * 9) + 2)] = 0; things[((_local6 * 9) + 5)] = 18; things[((_local6 * 9) + 6)] = 0; things[((_local6 * 9) + 7)] = 0; bounding[(_local6 * 4)] = 50; bounding[((_local6 * 4) + 1)] = 50; ObjStat[(_local6 * 6)] = (500 / easy); if ((((_arg3 == 2)) || ((_arg3 == 0)))){ ObjStat[(_local6 * 6)] = 2000; }; TentacleStat[((_local6 * 4) + 0)] = _arg3; TentacleStat[((_local6 * 4) + 1)] = _arg4; TentacleStat[((_local6 * 4) + 2)] = _arg5; TentacleStat[((_local6 * 4) + 3)] = 1; tentagrab[_arg4] = 0; if (_arg3 == 0){ things[((_local6 * 9) + 7)] = 0; }; if (_arg3 == 1){ things[((_local6 * 9) + 7)] = 9; }; if (_arg3 == 2){ things[((_local6 * 9) + 7)] = 18; }; return (_local6); } public function SetaWholeTentacle(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){ var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; _local7 = 0; _local8 = 0; _local9 = 0; _local10 = _arg1; _local11 = _arg2; setTentaclePart(_local10, _local11, 0, _arg6, _local9); _local9++; _local12 = 0; while (_local12 < _arg5) { setTentaclePart(_local10, _local11, 1, _arg6, _local9); _local9++; _local10 = (_local10 + (_arg3 * 30)); _local11 = (_local11 + (_arg4 * 30)); _local8 = _local7; _local12++; }; _local10 = (_local10 + (_arg3 * 30)); _local11 = (_local11 + (_arg4 * 30)); setTentaclePart(_local10, _local11, 2, _arg6, _local9); _local12 = 0; while (_local12 > 31) { TentaclePath[((_local12 * 2) + (_arg6 * 32))] = (_arg1 + (_local12 * 5)); TentaclePath[(((_local12 * 2) + (_arg6 * 32)) + 1)] = (_arg2 + (_local12 * 5)); _local12++; }; tentacontrol[_arg6] = 3; tentatimer[_arg6] = 60; } public function MoveAsWeaponPo(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; Hardman[_arg1] = 0; _local2 = 0; _local3 = 0; _local4 = 0; _local5 = 0; _local6 = 0; if (PossBrain[(_arg1 * 6)] != 3){ PossBrain[(_arg1 * 6)] = 3; PossBrain[((_arg1 * 6) + 1)] = (60 + (things[((_arg1 * 9) + 7)] * 100)); PossBrain[((_arg1 * 6) + 2)] = 0; PossBrain[((_arg1 * 6) + 3)] = 0; PossBrain[((_arg1 * 6) + 4)] = 0; PossBrain[((_arg1 * 6) + 5)] = 0; }; things[((_arg1 * 9) + 6)] = ((things[((_arg1 * 9) + 6)] + (fps * 1)) & 15); PossBrain[((_arg1 * 6) + 1)] = (PossBrain[((_arg1 * 6) + 1)] - fps); if (things[((_arg1 * 9) + 7)] == 1){ ShotBall(((things[(_arg1 * 9)] + (carrota[int(things[((_arg1 * 9) + 6)])].x * 32)) + 15), ((things[((_arg1 * 9) + 1)] + (carrota[int(things[((_arg1 * 9) + 6)])].y * 32)) + 15), (carrota[int(things[((_arg1 * 9) + 6)])].x * 20), (carrota[int(things[((_arg1 * 9) + 6)])].y * 20), 1, _arg1); }; if (PossBrain[((_arg1 * 6) + 1)] < 0){ if (things[((_arg1 * 9) + 7)] == 0){ if (PossBrain[((_arg1 * 6) + 2)] == 0){ _local7 = 0; while (_local7 < (thingcount + 1)) { if ((((((things[((_local7 * 9) + 5)] == 4)) || ((things[((_local7 * 9) + 5)] == 17)))) || ((things[((_local7 * 9) + 5)] == 18)))){ _local2 = (things[(_local7 * 9)] - things[(_arg1 * 9)]); _local3 = (things[((_local7 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); if (_local4 > _local5){ _local5 = _local4; _local6 = _local7; }; }; _local7++; }; PossBrain[((_arg1 * 6) + 2)] = _local6; } else { _local6 = PossBrain[((_arg1 * 6) + 2)]; _local2 = (things[(_local6 * 9)] - things[(_arg1 * 9)]); _local3 = (things[((_local6 * 9) + 1)] - things[((_arg1 * 9) + 1)]); _local4 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _local2 = (_local2 / _local4); _local3 = (_local3 / _local4); things[(_arg1 * 9)] = (things[(_arg1 * 9)] + (_local2 * (fps * 5))); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + (_local3 * (fps * 5))); if (_local4 < 40){ ObjStat[(_local6 * 6)] = (ObjStat[(_local6 * 6)] - 105); things[((_arg1 * 9) + 5)] = 7; }; }; } else { things[((_arg1 * 9) + 5)] = 7; CallSmoke((things[(_arg1 * 9)] + 16), (things[((_arg1 * 9) + 1)] + 16), 3); }; }; } public function SetProcGeomObject(_arg1){ } public function setBarrel(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; _local3 = 0; _local4 = 0; _local5 = 0; while (_local5 < (thingcount + 1)) { if (things[((_local5 * 9) + 5)] == 7){ _local3 = _local5; _local5 = (thingcount + 1); _local4 = 1; }; _local5++; }; if (_local4 == 0){ thingcount++; _local3 = thingcount; }; vectors[(_local3 * 5)] = 0; vectors[((_local3 * 5) + 1)] = 0; vectors[((_local3 * 5) + 2)] = 0; vectors[((_local3 * 5) + 3)] = 10; vectors[((_local3 * 5) + 4)] = 0; things[(_local3 * 9)] = _arg1; things[((_local3 * 9) + 1)] = _arg2; things[((_local3 * 9) + 2)] = 0; things[((_local3 * 9) + 5)] = 15; things[((_local3 * 9) + 6)] = 0; things[((_local3 * 9) + 7)] = 0; bounding[(_local3 * 4)] = 59; bounding[((_local3 * 4) + 1)] = 69; ObjStat[(_local3 * 6)] = 600; } public function Tutcol(_arg1, _arg2){ if ((((piratesaid < 60)) || ((breakable == 1)))){ if ((((((((_arg1 > 565)) && ((_arg2 > 0)))) && ((_arg1 < 637)))) && ((_arg2 < 63)))){ holdmode = 1; piratesay = "This button in the TUTORIAL calls more ghost ships to play around but once you exit tutorial, it will bring the next levels."; piratesaid = 450; breakable = 1; }; if ((((((((_arg1 > 617)) && ((_arg2 > 63)))) && ((_arg1 < 632)))) && ((_arg2 < 173)))){ holdmode = 1; piratesay = "This Tube is me life, if I ran out of it I will rest in pieces forever in the sands of this island."; piratesaid = 450; breakable = 1; }; if ((((((((_arg1 > 10)) && ((_arg2 > 35)))) && ((_arg1 < 64)))) && ((_arg2 < 126)))){ holdmode = 1; piratesay = "Once you get some COINS, you can buy powers or cannons. Destroying or SELL for them."; piratesaid = 450; breakable = 1; }; if ((((((((_arg1 > 579)) && ((_arg2 > 113)))) && ((_arg1 < 593)))) && ((_arg2 < 173)))){ holdmode = 1; piratesay = "To get golden coins you have to win a treasure or sell things and collect 10 silver coins."; piratesaid = 550; breakable = 1; }; if ((((((((_arg1 > 594)) && ((_arg2 > 112)))) && ((_arg1 < 609)))) && ((_arg2 < 174)))){ holdmode = 1; piratesay = "To get silver coins you can SELL barrels or weapons, they worth 1 and 2 silver coins."; piratesaid = 550; breakable = 1; }; if ((((((((_arg1 > 455)) && ((_arg2 > 304)))) && ((_arg1 < 577)))) && ((_arg2 < 426)))){ holdmode = 1; piratesay = "See those writings on the side of the buttons? they tell you what keys do."; piratesaid = 450; breakable = 1; }; if ((((((((_arg1 > 213)) && ((_arg1 < 382)))) && ((_arg2 > 59)))) && ((_arg2 < 84)))){ holdmode = 1; piratesay = "Clicking here will snap me out of the drunkness and start the real game."; piratesaid = 450; breakable = 1; }; }; } public function SpookAsGhost(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; Hardman[_arg1] = 0; if (ghostid != _arg1){ _local2 = 0; _local3 = 0; _local4 = 0; _local5 = 0; _local6 = 0; _local7 = 100000; _local8 = 0; _local9 = 0; while (_local9 < (thingcount + 1)) { if ((((things[((_local9 * 9) + 5)] == 8)) && ((SkullStat[((_local9 * 3) + 1)] == 0)))){ if (Spooked[(_local9 * 3)] == _arg1){ _local9 = (thingcount + 1); _local2 = 1; _local8 = _local9; }; _local4 = (things[(_local9 * 9)] - things[(things[((_arg1 * 9) + 8)] * 9)]); _local5 = (things[((_local9 * 9) + 1)] - things[((things[((_arg1 * 9) + 8)] * 9) + 1)]); _local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); if (_local6 < _local7){ _local7 = _local6; _local3 = _local9; }; }; _local9++; }; _local10 = CarriedStat[things[((_arg1 * 9) + 8)]]; if (SkullStat[(_local10 * 3)] == 2){ _local3 = _local10; }; _local11 = things[((_arg1 * 9) + 8)]; if (CarriedStat[things[((_arg1 * 9) + 8)]] == t_player){ things[((_arg1 * 9) + 5)] = 7; _local9 = 0; while (_local9 < (thingcount + 1)) { if (Spooked[(_local9 * 3)] == _arg1){ Spooked[(_local9 * 3)] = 0; Spooked[((_local9 * 3) + 1)] = 0; Spooked[((_local9 * 3) + 2)] = 0; }; _local9++; }; }; if (SkullStat[((_local11 * 3) + 0)] == 2){ SkullStat[((_local11 * 3) + 2)] = _arg1; _local2 = 1; }; if ((((ghosthold == 1)) && ((ghostid == _arg1)))){ _local2 = 1; }; if (things[((_arg1 * 9) + 8)] == 0){ _local2 = 1; (things[((_arg1 * 9) + 5)] == 7); }; if (_local2 == 0){ Spooked[(_local3 * 3)] = _arg1; Spooked[((_local3 * 3) + 1)] = things[((_arg1 * 9) + 8)]; Spooked[((_local3 * 3) + 2)] = 0; }; if ((((_local2 == 1)) && ((things[((_local8 * 9) + 5)] == 7)))){ things[((_arg1 * 9) + 5)] = 7; }; }; } public function Pickitem():Number{ var _local1:*; var _local2:*; var _local3:*; var _local4:*; _local1 = 0; _local2 = 0; _local3 = 0; _local4 = 0; while (_local4 < retusiz) { _local1 = things[((retucol[_local4] * 9) + 5)]; if ((((((((_local1 == 14)) && (!((_local2 == 15))))) && (!((_local2 == 10))))) && (!((_local2 == 6))))){ _local2 = _local1; _local3 = retucol[_local4]; }; if ((((((_local1 == 15)) && (!((_local2 == 10))))) && (!((_local2 == 6))))){ _local2 = _local1; _local3 = retucol[_local4]; }; if ((((_local1 == 10)) && (!((_local2 == 6))))){ _local2 = _local1; _local3 = retucol[_local4]; }; if (_local1 == 6){ _local2 = _local1; _local3 = retucol[_local4]; }; _local4++; }; return (_local3); } public function MoveAsCannon(_arg1){ 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:*; Hardman[_arg1] = 0; vectors[(_arg1 * 5)] = (vectors[(_arg1 * 5)] / 2); vectors[((_arg1 * 5) + 1)] = (vectors[((_arg1 * 5) + 1)] / 2); SpreadPeople(_arg1, 64); if ((vectors[(_arg1 * 5)] + vectors[((_arg1 * 5) + 1)]) != 0){ _local8 = vectors[(_arg1 * 5)]; _local9 = vectors[((_arg1 * 5) + 1)]; _local7 = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); _local8 = (_local8 / _local7); _local9 = (_local9 / _local7); _local10 = 0; _local11 = 0.03; _local12 = 30000; _local15 = 0; while (_local15 < 16) { _local13 = (_local8 - carrota[(_local15 & 15)].x); _local14 = (_local9 - carrota[(_local15 & 15)].y); _local11 = Math.sqrt(((_local13 * _local13) + (_local14 * _local14))); if (_local12 > _local11){ _local12 = _local11; _local10 = _local15; }; _local15++; }; things[((_arg1 * 9) + 6)] = ((things[((_arg1 * 9) + 6)] + FCR(things[((_arg1 * 9) + 6)], _local10)) & 15); things[((_arg1 * 9) + 7)] = (things[((_arg1 * 9) + 7)] + (_local7 / 2)); if (things[((_arg1 * 9) + 7)] > 4.5){ things[((_arg1 * 9) + 7)] = 0; }; }; _local2 = 0; _local3 = 0; _local4 = (0x0F00 - (things[(_arg1 * 9)] + 30)); _local5 = (1664 - (things[((_arg1 * 9) + 1)] + 30)); _local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); _local4 = ((_local4 / _local6) * 40); _local5 = ((_local5 / _local6) * 40); if (EvalTerrain(((things[(_arg1 * 9)] + 25) - _local4), ((things[((_arg1 * 9) + 1)] + 25) - _local5)) == 0){ _local2 = (0x0F00 - (things[(_arg1 * 9)] + 30)); _local3 = (1664 - (things[((_arg1 * 9) + 1)] + 30)); _local7 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _local2 = (_local2 / (_local7 * 1)); _local3 = (_local3 / (_local7 * 1)); if ((((((Math.random() > 0.999)) && ((CarriedStat[_arg1] == 0)))) && ((tutorial == 0)))){ things[((_arg1 * 9) + 5)] = 7; }; }; things[(_arg1 * 9)] = ((things[(_arg1 * 9)] + vectors[(_arg1 * 5)]) + (_local2 * fps)); things[((_arg1 * 9) + 1)] = ((things[((_arg1 * 9) + 1)] + vectors[((_arg1 * 5) + 1)]) + (_local3 * fps)); } public function BorderDodge(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){ 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:*; _local7 = _arg3; _local8 = _arg4; retvx = _local7; retvy = _local8; _local9 = Math.sqrt(((_local7 * _local7) + (_local8 * _local8))); _local7 = (_local7 / _local9); _local8 = (_local8 / _local9); if (EvalTerrain((_arg1 + (_local7 * 150)), (_arg2 + (_local8 * 150))) == 0){ _local10 = (0 - _local8); _local11 = _local7; _local12 = (0 - _local10); _local13 = (0 - _local11); _local18 = 100000; _local19 = 0; _local20 = 0; while (_local20 < (thingcount - 1)) { if (things[((_local20 * 9) + 5)] == _arg6){ _local14 = (_arg1 - things[(_local20 * 9)]); _local15 = (_arg2 - things[((_local20 * 9) + 1)]); _local16 = Math.sqrt(((_local14 * _local14) + (_local15 * _local15))); if (_local18 > _local16){ _local18 = _local16; _local19 = _local20; }; }; _local20++; }; if (_local19 != 0){ _local14 = (((_local10 * 30) + _arg1) - things[(_local19 * 9)]); _local15 = (((_local11 * 30) + _arg2) - things[((_local19 * 9) + 1)]); _local16 = Math.sqrt(((_local14 * _local14) + (_local15 * _local15))); _local14 = (((_local12 * 30) + _arg1) - things[(_local19 * 9)]); _local15 = (((_local13 * 30) + _arg2) - things[((_local19 * 9) + 1)]); _local17 = Math.sqrt(((_local14 * _local14) + (_local15 * _local15))); } else { _local16 = 1; _local17 = 0; }; if (_arg5 == 0){ if (_local16 > _local17){ retvx = (_local10 * _local9); retvy = (_local11 * _local9); }; if (_local16 < _local17){ retvx = (_local12 * _local9); retvy = (_local13 * _local9); }; } else { if (_local16 > _local17){ retvx = (_local12 * _local9); retvy = (_local13 * _local9); }; if (_local16 < _local17){ retvx = (_local10 * _local9); retvy = (_local11 * _local9); }; }; }; } public function godoftreasure(){ var _local1:*; var _local2:*; var _local3:*; _local1 = 0; _local2 = 0; _local3 = 0; while (_local3 < (thingcount + 1)) { if (things[((_local3 * 9) + 5)] == 6){ _local2 = _local3; _local1++; }; _local3++; }; if (tsacri > 0){ _local1--; }; if (int((tsacri / 10.01)) < _local1){ things[((_local2 * 9) + 5)] = 7; }; if (_local2 == 0){ _local2 = t_player; }; if (int((tsacri / 10.01)) > _local1){ setTreasure((things[(_local2 * 9)] + ((Math.random() * 100) - 50)), (things[((_local2 * 9) + 1)] + ((Math.random() * 100) - 50))); }; } public function hihipuffy(_arg1:MouseEvent):void{ if (unlockbut == 1){ highmode = 2; removeEventListener(Event.ENTER_FRAME, Gameovertime); gotoAndPlay(7); }; } public function PirateInit(){ var _local1:*; var _local2:*; thingcount = orithing; level = 0; timer = 200; tpow = 0; WaveInit(); thingcount++; t_player = thingcount; things[(thingcount * 9)] = 3750; things[((thingcount * 9) + 1)] = 1550; things[((thingcount * 9) + 2)] = 0; things[((thingcount * 9) + 3)] = 0; things[((thingcount * 9) + 4)] = 0; things[((thingcount * 9) + 5)] = 12; things[((thingcount * 9) + 6)] = 0; things[((thingcount * 9) + 7)] = 0; things[((thingcount * 9) + 8)] = 0; vectors[((thingcount * 5) + 3)] = 1; vectors[(thingcount * 5)] = 0; vectors[((thingcount * 5) + 1)] = 0; bounding[(thingcount * 4)] = 97; bounding[((thingcount * 4) + 1)] = 95; killwaves = sowaves.play(0, 9999999); barrelr = sobarrelroll.play(0, 99999999); cannonr = socannonroll.play(0, 99999999); windr = sowindpow.play(0, 99999999); musicpla = soumsic.play(0, 99999999); if (killwaves != null){ volumer.volume = 0; barrelr.soundTransform = volumer; volumer.volume = 0; cannonr.soundTransform = volumer; volumer.volume = 0; windr.soundTransform = volumer; }; _local1 = 0; while (_local1 < 60) { soundbuffer[_local1] = new SoundChannel(); soswi[_local1] = 0; _local1++; }; _local1 = 0; while (_local1 < 4) { somusket[_local1] = new S_Musket(); soslash[_local1] = new S_Slash(); socannon[_local1] = new S_Cannon(); soswordmiss[_local1] = new S_SwordMiss(); _local1++; }; pi = 0; while (pi < ((thingcount + 1) * 5)) { vectors[pi] = 1E-6; pi++; }; _local1 = 0; while (_local1 < 100000) { CarriedStat[_local1] = 0; CarringStat[_local1] = 0; GoingtoDie[_local1] = 0; CballStat[_local1] = 0; CannonStat[_local1] = 0; TesouroStat[_local1] = 0; kragrabbed[_local1] = 0; kragrabbed[_local1] = 0; tentagrab[_local1] = 0; PossStat[_local1] = 0; PossBrain[_local1] = 0; Hardman[_local1] = 0; TalkEvents[_local1] = 0; Skills[_local1] = 0; Skillcount[_local1] = 0; tentaglue[_local1] = 0; _local1++; }; _local2 = (thingcount + 1); _local1 = 0; while (_local1 < _local2) { if (things[((_local1 * 9) + 5)] == 1){ setInvisibleBlock((things[((_local1 * 9) + 0)] + 75), (things[((_local1 * 9) + 1)] + 150)); }; _local1++; }; setCannon(3500, 1500); krakencrazy = 0; tentagrow = 90; krakenwaypoint = 1; retheavy = 0; level = 0; timer = 200; levelshow = 0; oldyet = 0; tutorial = 1; snitch = 0; ghostid = 0; ghosthold = 0; goffx = 0; goffy = 0; zoompicked = 0; zoomofx = 0; zoomofy = 0; tempdisable = 0; teleguid = 0; refx = 0; refy = 0; telexplode = 0; vox = 0; voy = 0; picked = -1; ally_spring = 0; holdspring = 0; holdingitem = 0; charstate = 0; hero_animate = 0; endanim = 0; firstframe = 0; piratepush = 0; cannonmode = 0; cannonid = 0; cannonrot = 0.01; animove = 0; cannoncount = 0; hopoff = 0; loadedcount = 0; carwheel = 0; pausegame = 0; aspasm = 0; overbit = 0; tutcount = 0; pi = 0; bonusk = 10000; gammo = 0; tutorial = 1; notutroll = 0; tsacri = 0; _local1 = 0; while (_local1 < 100) { TalkEvents[_local1] = 0; _local1++; }; ObjAnim[(t_player * 4)] = 0; ObjAnim[((t_player * 4) + 1)] = 0; ObjAnim[((t_player * 4) + 2)] = 0; ObjAnim[((t_player * 4) + 3)] = 0; ObjStat[(t_player * 6)] = 1000; if (bootload == 1){ LoadGame(); bootload = 0; pausegame = 0; }; } public function CheckCollision(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; _local2 = 0; retusiz = 0; _local11 = 0; while (_local11 < (thingcount + 1)) { _local2 = (_local11 * 9); _local3 = things[_local2]; _local4 = things[(_local2 + 1)]; _local5 = (things[_local2] + bounding[(_local11 * 4)]); _local6 = (things[(_local2 + 1)] + bounding[((_local11 * 4) + 1)]); _local7 = (things[(_arg1 * 9)] + bounding[((_arg1 * 4) + 2)]); _local8 = (things[((_arg1 * 9) + 1)] + bounding[((_arg1 * 4) + 3)]); _local9 = ((things[(_arg1 * 9)] + bounding[(_arg1 * 4)]) + bounding[((_arg1 * 4) + 2)]); _local10 = ((things[((_arg1 * 9) + 1)] + bounding[((_arg1 * 4) + 1)]) + bounding[((_arg1 * 4) + 3)]); if ((((((((((_local3 > _local7)) && ((_local3 < _local9)))) || ((((_local5 > _local7)) && ((_local5 < _local9)))))) || ((((_local7 > _local3)) && ((_local7 < _local5)))))) || ((((_local9 > _local3)) && ((_local9 < _local5)))))){ if ((((((((((_local4 > _local8)) && ((_local4 < _local10)))) || ((((_local6 > _local8)) && ((_local6 < _local10)))))) || ((((_local8 > _local4)) && ((_local8 < _local6)))))) || ((((_local10 > _local4)) && ((_local10 < _local6)))))){ retucol[retusiz] = _local11; retusiz++; }; }; _local11++; }; } public function SaveGame(){ var _local1:SharedObject; if (savest == 1){ _local1 = SharedObject.getLocal("Unholy_Island"); _local1.data.gamedata = compacte; _local1.data.isasave = 1; _local1.flush(); }; } public function Startgame(_arg1){ if (pushmein.x > 300){ } else { easy = _arg1; play(); easymode = 1; if (musikill != null){ musikill.stop(); }; }; } public function FCR(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; _local3 = 0; _local4 = 0; _local5 = 0; _local6 = 0; if (_arg1 != _arg2){ _local4 = Math.abs((_arg2 - _arg1)); _local5 = Math.abs(((_arg2 + 16) - _arg1)); _local6 = Math.abs(((_arg2 - 16) - _arg1)); if (_arg1 < _arg2){ _local3 = 1; } else { _local3 = -1; }; if ((((_local5 < _local4)) && ((_local5 < _local6)))){ if (_arg1 > _arg2){ _local3 = 1; } else { _local3 = -1; }; }; if ((((_local6 < _local4)) && ((_local6 < _local5)))){ if (_arg1 > _arg2){ _local3 = 1; } else { _local3 = -1; }; }; }; return (_local3); } public function CutImages(){ var _local1:*; recta.width = ldfraw; recta.height = ldfrah; _local1 = 0; _local1 = 0; while (_local1 < ldfray) { pi = 0; while (pi < ldfrax) { recta.x = (pi * ldfraw); recta.y = (_local1 * ldfrah); recta.width = ldfraw; recta.height = ldfrah; Frames[pi3] = new ByteArray(); Frames[pi3] = Bitload.getPixels(recta); Frames[pi3].position = 0; Frames[pi3].compress(); recta.x = 0; recta.y = 0; Framerects[pi3] = new Rectangle(0, 0, 0, 0); Framerects[pi3].width = recta.width; Framerects[pi3].height = recta.height; pi3++; pi++; }; _local1++; }; } public function setKraken(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; _local3 = 0; _local4 = 0; _local5 = 0; while (_local5 < (thingcount + 1)) { if (things[((_local5 * 9) + 5)] == 7){ _local3 = _local5; _local5 = (thingcount + 1); _local4 = 1; }; _local5++; }; if (_local4 == 0){ thingcount++; _local3 = thingcount; }; vectors[(_local3 * 5)] = 0; vectors[((_local3 * 5) + 1)] = 0; vectors[((_local3 * 5) + 2)] = 0; vectors[((_local3 * 5) + 3)] = 10; vectors[((_local3 * 5) + 4)] = 0; things[(_local3 * 9)] = _arg1; things[((_local3 * 9) + 1)] = _arg2; things[((_local3 * 9) + 2)] = 0; things[((_local3 * 9) + 5)] = 17; things[((_local3 * 9) + 6)] = 0; things[((_local3 * 9) + 7)] = 0; bounding[(_local3 * 4)] = 448; bounding[((_local3 * 4) + 1)] = 245; ObjStat[(_local3 * 6)] = (5000 / easy); PlaySound(_local3, 3); krakroll = 1; piratesaid = 0; combome = 0; } public function CheckForEvents(){ var _local1:*; var _local2:*; _local1 = 0; _local2 = 0; while (_local2 < 100) { if (TalkEvents[_local2] == 1){ _local1 = (_local2 + 1); }; _local2++; }; if (_local1 == 5){ holdmode = 1; piratesay = "Now click on it and drag down to zoom out."; piratesaid = 350; }; if (_local1 == 6){ holdmode = 1; piratesay = "Aha! This made the minions grow brains! Just use the mouse to move things around and make them carry it, but don't ask too much of them."; piratesaid = 550; }; if (_local1 == 7){ holdmode = 1; piratesay = "Grab any item and use the V button to bring it to life. but be careful with the muskets, as they're a bit indifferent."; piratesaid = 450; }; if (_local1 == 8){ holdmode = 1; piratesay = "Lets see what it can do, hold down STORM and if the meter gets empty you'll have to buy more."; piratesaid = 350; }; if (_local1 == 9){ holdmode = 1; piratesay = "Hahaha! the damm thing has no more arms!"; piratesaid = 350; combotext = "Oh, I see he's not going to make it easy, he's blind with anger and wants to blind us all!"; combome = 1; }; TalkEvents[(_local1 - 1)] = (TalkEvents[(_local1 - 1)] | 2); } public function RasterObject(_arg1){ var _local2:Rectangle; var _local3:Point; var _local4:Matrix; var _local5:Rectangle; var _local6:Array; var _local7:Array; var _local8:Array; var _local9:Array; var _local10:Matrix; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; var _local17:BitmapData; var _local18:Matrix; _local2 = new Rectangle(0, 0, 64, 64); _local3 = new Point(192, 128); _local4 = new Matrix(); _local5 = new Rectangle(0, 0, 0, 0); _local6 = new Array(); _local7 = new Array(); _local8 = new Array(); _local9 = new Array(); _local10 = new Matrix(1, 0, 0, 1); _local11 = 0; _local11 = 0; _local12 = 0; while (_local12 < 8) { _local15 = 0; while (_local15 < (rastcount / 7)) { if (((rasterlist[((_local15 * 7) + 2)] + rasterlist[((_local15 * 7) + 4)]) & 7) == _local12){ _local6[_local11] = (rasterlist[((_local15 * 7) + 2)] + rasterlist[((_local15 * 7) + 4)]); _local8[_local11] = _local15; _local11++; }; _local15++; }; _local12++; }; _local11 = 0; _local12 = 0; while (_local12 < 8) { _local15 = 0; while (_local15 < (rastcount / 7)) { if (((_local6[_local15] / 8) & 7) == _local12){ _local7[_local11] = _local6[_local15]; _local9[_local11] = _local8[_local15]; _local11++; }; _local15++; }; _local12++; }; _local11 = 0; _local12 = 0; while (_local12 < 16) { _local15 = 0; while (_local15 < (rastcount / 7)) { if (((_local7[_local15] / 64) & 15) == _local12){ _local6[_local11] = _local7[_local15]; _local8[_local11] = _local9[_local15]; _local11++; }; _local15++; }; _local12++; }; _local13 = 0; _local14 = 0; while (_local14 < (rastcount / 7)) { _local13 = (_local8[_local14] * 7); if (rasterlist[(_local13 + 6)] == _arg1){ _local5.x = 0; _local5.y = 0; _local5.width = rasterlist[(_local13 + 3)]; _local5.height = rasterlist[(_local13 + 4)]; _local10.tx = (rasterlist[(_local13 + 1)] + zoomoffx); _local10.ty = (rasterlist[(_local13 + 2)] + zoomoffy); _local10.a = 1; _local10.d = 1; if ((rasterlist[(_local13 + 5)] & 3) == 1){ _local10.a = -1; _local10.tx = (_local10.tx + rasterlist[(_local13 + 3)]); }; if ((rasterlist[(_local13 + 5)] & 3) == 2){ _local10.d = -1; }; if ((rasterlist[(_local13 + 5)] & 3) == 3){ _local10.a = -1; _local10.d = -1; }; if ((rasterlist[(_local13 + 5)] & 4) == 4){ _local17 = new BitmapData(rasterlist[(_local13 + 3)], rasterlist[(_local13 + 4)]); _local18 = new Matrix(1, 0, 0, 1); _local18.tx = _local10.tx; _local18.ty = ((_local10.ty + rasterlist[(_local13 + 4)]) + 6); _local18.a = _local10.a; _local18.d = -0.5; _local17.fillRect(_local5, 4283453520); _local17.copyChannel(cachedimage[allo[(_local13 / 5)]], _local5, new Point(0, 0), BitmapDataChannel.ALPHA, BitmapDataChannel.ALPHA); bitmapdata.draw(_local17, _local18, null, BlendMode.HARDLIGHT); }; _local16 = 0; pii = 0; while (pii < 17) { _local16 = (_local16 + SFXOffset[pii]); pii++; }; if (_local16 != 1582){ if (level > 3){ if (Math.random() > 0.98){ rasterlist[(_local13 + 5)] = 8; }; }; if (level > 4){ if (Math.random() > 0.98){ rasterlist[(_local13 + 5)] = 8; }; }; if (level > 5){ if (Math.random() > 0.98){ rasterlist[(_local13 + 5)] = 8; }; }; if (level > 6){ if (Math.random() > 0.98){ rasterlist[(_local13 + 5)] = 8; }; }; }; if ((rasterlist[(_local13 + 5)] & 8) == 8){ bitmapdata.draw(cachedimage[allo[(_local13 / 5)]], _local10, null, BlendMode.ADD); } else { if (rasterlist[(_local13 + 5)] == 0){ bitmapdata.copyPixels(cachedimage[allo[(_local13 / 5)]], _local5, new Point(_local10.tx, _local10.ty), null, null, true); } else { bitmapdata.draw(cachedimage[allo[(_local13 / 5)]], _local10, null); }; }; allo[(_local13 / 5)] = 0; }; _local14++; }; } public function kdown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.UP){ dir = (dir | 1); }; if (_arg1.keyCode == Keyboard.DOWN){ dir = (dir | 2); }; if (_arg1.keyCode == Keyboard.LEFT){ dir = (dir | 4); }; if (_arg1.keyCode == Keyboard.RIGHT){ dir = (dir | 8); }; if (_arg1.keyCode == Keyboard.CONTROL){ dir = (dir | 16); }; if (tempdisable == 0){ if (_arg1.keyCode == 90){ buttons = (buttons | 1); }; if (_arg1.keyCode == 88){ buttons = (buttons | 2); }; if (_arg1.keyCode == 67){ buttons = (buttons | 4); }; if (_arg1.keyCode == 86){ buttons = (buttons | 8); }; } else { buttons = 0; }; } public function GetRayList(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8){ var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:*; var _local14:*; var _local15:*; var _local16:*; var _local17:*; var _local18:*; var _local19:*; var _local20:*; var _local21:*; var _local22:*; var _local23:*; var _local24:*; var _local25:*; var _local26:*; var _local27:*; var _local28:*; retusiz = 0; _local9 = (0 - _arg4); _local10 = _arg3; _local11 = (0 - _local9); _local12 = (0 - _local10); _local9 = (_local9 + _arg1); _local10 = (_local10 + _arg2); _local11 = (_local11 + _arg1); _local12 = (_local12 + _arg2); _local17 = 0; _local22 = 100000; retucloser = 0; _local23 = orithing; while (_local23 < (thingcount + 1)) { _local17 = 0; _local15 = (_arg1 - things[(_local23 * 9)]); _local16 = (_arg2 - things[((_local23 * 9) + 1)]); _local13 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); _local24 = things[((_local23 * 9) + 5)]; _local25 = 0; _local26 = 0; _local15 = ((_arg1 + (_arg3 * 10)) - things[(_local23 * 9)]); _local16 = ((_arg2 + (_arg4 * 10)) - things[((_local23 * 9) + 1)]); _local25 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); _local15 = ((_arg1 - (_arg3 * 10)) - things[(_local23 * 9)]); _local16 = ((_arg2 - (_arg4 * 10)) - things[((_local23 * 9) + 1)]); _local26 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); _local27 = _local13; if ((((((((((((((((((_local25 < _local26)) && ((_local13 < _arg5)))) && (!((_local23 == _arg6))))) && (!((_local23 == _arg7))))) && (!((_local23 == _arg8))))) && ((_local24 > 1)))) && (!((_local24 == 14))))) && (!((_local24 == 5))))) && (!((_local24 == 17))))){ _local28 = 40; _local18 = (things[(_local23 * 9)] - _local28); _local19 = (things[((_local23 * 9) + 1)] - _local28); _local20 = ((things[(_local23 * 9)] + bounding[(_local23 * 4)]) + _local28); _local21 = ((things[((_local23 * 9) + 1)] + bounding[((_local23 * 4) + 1)]) + _local28); _local15 = (_local18 - _local9); _local16 = (_local19 - _local10); _local13 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); _local15 = (_local18 - _local11); _local16 = (_local19 - _local12); _local14 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); if (_local13 > _local14){ _local17 = (_local17 | 1); } else { _local17 = (_local17 | 2); }; _local15 = (_local20 - _local9); _local16 = (_local19 - _local10); _local13 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); _local15 = (_local20 - _local11); _local16 = (_local19 - _local12); _local14 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); if (_local13 > _local14){ _local17 = (_local17 | 1); } else { _local17 = (_local17 | 2); }; _local15 = (_local18 - _local9); _local16 = (_local21 - _local10); _local13 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); _local15 = (_local18 - _local11); _local16 = (_local21 - _local12); _local14 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); if (_local13 > _local14){ _local17 = (_local17 | 1); } else { _local17 = (_local17 | 2); }; _local15 = (_local20 - _local9); _local16 = (_local21 - _local10); _local13 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); _local15 = (_local20 - _local11); _local16 = (_local21 - _local12); _local14 = Math.sqrt(((_local15 * _local15) + (_local16 * _local16))); if (_local13 > _local14){ _local17 = (_local17 | 1); } else { _local17 = (_local17 | 2); }; if (_local17 == 3){ retucol[retusiz] = _local23; retusiz++; if (_local22 > _local27){ _local22 = _local27; retucloser = _local23; }; }; }; _local23++; }; } public function Krakenroll(){ var _local1:*; if (piratesaid < 1){ _local1 = 30; if (krakroll == 1){ kracount = (kracount + fps); if ((((kracount > _local1)) && ((kracount < (_local1 + 20))))){ holdmode = 2; piratesay = "Aha, the whole war has brought the Kraken awake, he's mad."; piratesaid = 450; kracount = (kracount + 30); pausegame = 1; }; _local1 = (_local1 + 40); if ((((kracount > _local1)) && ((kracount < (_local1 + 20))))){ piratesay = "Damm you beast, I'll chop your limbs and decorate me island with them.. and then I'll steal your treasure one more time."; piratesaid = 450; kracount = (kracount + 30); }; _local1 = (_local1 + 40); if ((((kracount > _local1)) && ((kracount < (_local1 + 20))))){ holdmode = 1; piratesay = "Careful, if I know him well, he's going to try to snatch us all into the sea with his tentacles."; piratesaid = 450; kracount = (kracount + 30); krakroll = 0; pausegame = 0; kracount = 0; }; }; if (krakroll == 2){ kracount = (kracount + fps); if ((((kracount > _local1)) && ((kracount < (_local1 + 20))))){ holdmode = 2; piratesay = "That's it! I think I'm free of the damm curse!"; piratesaid = 450; kracount = (kracount + 30); pausegame = 1; }; _local1 = (_local1 + 40); if ((((kracount > _local1)) && ((kracount < (_local1 + 20))))){ piratesay = "Oh well, I didn't expect to turn back into me old form anyways, this look is much more effective for my piracy."; piratesaid = 550; kracount = (kracount + 30); }; _local1 = (_local1 + 40); if ((((kracount > _local1)) && ((kracount < (_local1 + 20))))){ piratesay = "Now that I think about it, what the heck? Leaving this place? Now that all the treasure of the world comes swimming to us? Not a chance."; piratesaid = 550; kracount = (kracount + 30); }; _local1 = (_local1 + 40); if ((((kracount > _local1)) && ((kracount < (_local1 + 20))))){ holdmode = 1; piratesay = "Man, we'll keep killing them until they turn our island in a whole damm continent made of bodies and treasure! My definition of heaven."; piratesaid = 450; kracount = (kracount + 30); krakroll = 0; pausegame = 0; kracount = 0; }; }; }; } public function callpage2(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://twizl.com/"); navigateToURL(_local2, "_blank"); } public function callpage3(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://twizl.com/"); navigateToURL(_local2, "_blank"); } public function callpage4(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://twizl.com/"); navigateToURL(_local2, "_blank"); } public function callpage5(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://twizl.com/"); navigateToURL(_local2, "_blank"); } public function MoveAsWeapon(_arg1){ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; Hardman[_arg1] = 0; _local2 = 0; _local3 = 0; _local4 = (0x0F00 - (things[(_arg1 * 9)] + 30)); _local5 = (1664 - (things[((_arg1 * 9) + 1)] + 30)); _local6 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); _local4 = ((_local4 / _local6) * 40); _local5 = ((_local5 / _local6) * 40); if (EvalTerrain(((things[(_arg1 * 9)] + 25) - _local4), ((things[((_arg1 * 9) + 1)] + 25) - _local5)) == 0){ _local2 = (0x0F00 - (things[(_arg1 * 9)] + 15)); _local3 = (1664 - (things[((_arg1 * 9) + 1)] + 15)); _local7 = Math.sqrt(((_local2 * _local2) + (_local3 * _local3))); _local2 = (_local2 / (_local7 * 1)); _local3 = (_local3 / (_local7 * 1)); if ((((((Math.random() > 0.999)) && ((CarriedStat[_arg1] == 0)))) && ((tutorial == 0)))){ things[((_arg1 * 9) + 5)] = 7; }; }; things[((_arg1 * 9) + 0)] = (things[((_arg1 * 9) + 0)] + (_local2 * fps)); things[((_arg1 * 9) + 1)] = (things[((_arg1 * 9) + 1)] + (_local3 * fps)); } } }//package unholy120mochibot_fla
Section 8
//vdfgv3g_12 (unholy120mochibot_fla.vdfgv3g_12) package unholy120mochibot_fla { import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.geom.*; import flash.utils.*; import flash.net.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.ui.*; public dynamic class vdfgv3g_12 extends MovieClip { public var callSystem:SimpleButton; public function vdfgv3g_12(){ addFrameScript(0, frame1); } function frame1(){ callSystem.addEventListener(MouseEvent.MOUSE_UP, callpage); } public function callpage(_arg1:MouseEvent):void{ var _local2:URLRequest; _local2 = new URLRequest("http://twizl.com/"); navigateToURL(_local2, "_blank"); } } }//package unholy120mochibot_fla
Section 9
//_ad323 (_ad323) package { import flash.display.*; public dynamic class _ad323 extends BitmapData { public function _ad323(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 10
//_pk122 (_pk122) package { import flash.display.*; public dynamic class _pk122 extends BitmapData { public function _pk122(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 11
//BT_C (BT_C) package { import flash.display.*; public dynamic class BT_C extends BitmapData { public function BT_C(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 12
//BT_V (BT_V) package { import flash.display.*; public dynamic class BT_V extends BitmapData { public function BT_V(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 13
//BT_X (BT_X) package { import flash.display.*; public dynamic class BT_X extends BitmapData { public function BT_X(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 14
//BT_Z (BT_Z) package { import flash.display.*; public dynamic class BT_Z extends BitmapData { public function BT_Z(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 15
//D_Barrel (D_Barrel) package { import flash.display.*; public dynamic class D_Barrel extends BitmapData { public function D_Barrel(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 16
//D_Barrel_Die (D_Barrel_Die) package { import flash.display.*; public dynamic class D_Barrel_Die extends BitmapData { public function D_Barrel_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 17
//D_BigShip (D_BigShip) package { import flash.display.*; public dynamic class D_BigShip extends BitmapData { public function D_BigShip(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 18
//D_BigShip_Die (D_BigShip_Die) package { import flash.display.*; public dynamic class D_BigShip_Die extends BitmapData { public function D_BigShip_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 19
//D_BigShip_Die_A (D_BigShip_Die_A) package { import flash.display.*; public dynamic class D_BigShip_Die_A extends BitmapData { public function D_BigShip_Die_A(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 20
//D_BigShip_Die_B (D_BigShip_Die_B) package { import flash.display.*; public dynamic class D_BigShip_Die_B extends BitmapData { public function D_BigShip_Die_B(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 21
//D_Broke (D_Broke) package { import flash.display.*; public dynamic class D_Broke extends BitmapData { public function D_Broke(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 22
//D_Cannon (D_Cannon) package { import flash.display.*; public dynamic class D_Cannon extends BitmapData { public function D_Cannon(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 23
//D_Cannon_Die (D_Cannon_Die) package { import flash.display.*; public dynamic class D_Cannon_Die extends BitmapData { public function D_Cannon_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 24
//D_Cannonball (D_Cannonball) package { import flash.display.*; public dynamic class D_Cannonball extends BitmapData { public function D_Cannonball(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 25
//D_Data (D_Data) package { import flash.display.*; public dynamic class D_Data extends BitmapData { public function D_Data(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 26
//D_Hud (D_Hud) package { import flash.display.*; public dynamic class D_Hud extends BitmapData { public function D_Hud(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 27
//D_Human_Die (D_Human_Die) package { import flash.display.*; public dynamic class D_Human_Die extends BitmapData { public function D_Human_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 28
//D_Human_Musket (D_Human_Musket) package { import flash.display.*; public dynamic class D_Human_Musket extends BitmapData { public function D_Human_Musket(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 29
//D_Human_Push (D_Human_Push) package { import flash.display.*; public dynamic class D_Human_Push extends BitmapData { public function D_Human_Push(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 30
//D_Human_Shoot (D_Human_Shoot) package { import flash.display.*; public dynamic class D_Human_Shoot extends BitmapData { public function D_Human_Shoot(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 31
//D_Human_Slash (D_Human_Slash) package { import flash.display.*; public dynamic class D_Human_Slash extends BitmapData { public function D_Human_Slash(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 32
//D_Human_Sword (D_Human_Sword) package { import flash.display.*; public dynamic class D_Human_Sword extends BitmapData { public function D_Human_Sword(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 33
//D_Human_Walk (D_Human_Walk) package { import flash.display.*; public dynamic class D_Human_Walk extends BitmapData { public function D_Human_Walk(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 34
//D_Kraken (D_Kraken) package { import flash.display.*; public dynamic class D_Kraken extends BitmapData { public function D_Kraken(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 35
//D_Kraken_Die (D_Kraken_Die) package { import flash.display.*; public dynamic class D_Kraken_Die extends BitmapData { public function D_Kraken_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 36
//D_mapa (D_mapa) package { import flash.display.*; public dynamic class D_mapa extends BitmapData { public function D_mapa(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 37
//D_Minion_Die (D_Minion_Die) package { import flash.display.*; public dynamic class D_Minion_Die extends BitmapData { public function D_Minion_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 38
//D_Minion_Musket (D_Minion_Musket) package { import flash.display.*; public dynamic class D_Minion_Musket extends BitmapData { public function D_Minion_Musket(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 39
//D_Minion_Push (D_Minion_Push) package { import flash.display.*; public dynamic class D_Minion_Push extends BitmapData { public function D_Minion_Push(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 40
//D_Minion_Shoot (D_Minion_Shoot) package { import flash.display.*; public dynamic class D_Minion_Shoot extends BitmapData { public function D_Minion_Shoot(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 41
//D_Minion_Slash (D_Minion_Slash) package { import flash.display.*; public dynamic class D_Minion_Slash extends BitmapData { public function D_Minion_Slash(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 42
//D_Minion_Sword (D_Minion_Sword) package { import flash.display.*; public dynamic class D_Minion_Sword extends BitmapData { public function D_Minion_Sword(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 43
//D_Minion_Walk (D_Minion_Walk) package { import flash.display.*; public dynamic class D_Minion_Walk extends BitmapData { public function D_Minion_Walk(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 44
//D_monkeyboy (D_monkeyboy) package { import flash.display.*; public dynamic class D_monkeyboy extends BitmapData { public function D_monkeyboy(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 45
//D_MusketSpin (D_MusketSpin) package { import flash.display.*; public dynamic class D_MusketSpin extends BitmapData { public function D_MusketSpin(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 46
//D_Palm (D_Palm) package { import flash.display.*; public dynamic class D_Palm extends BitmapData { public function D_Palm(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 47
//D_Skull_Die (D_Skull_Die) package { import flash.display.*; public dynamic class D_Skull_Die extends BitmapData { public function D_Skull_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 48
//D_Skull_Musket (D_Skull_Musket) package { import flash.display.*; public dynamic class D_Skull_Musket extends BitmapData { public function D_Skull_Musket(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 49
//D_Skull_Push (D_Skull_Push) package { import flash.display.*; public dynamic class D_Skull_Push extends BitmapData { public function D_Skull_Push(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 50
//D_Skull_Shoot (D_Skull_Shoot) package { import flash.display.*; public dynamic class D_Skull_Shoot extends BitmapData { public function D_Skull_Shoot(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 51
//D_Skull_Slash (D_Skull_Slash) package { import flash.display.*; public dynamic class D_Skull_Slash extends BitmapData { public function D_Skull_Slash(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 52
//D_Skull_Walk (D_Skull_Walk) package { import flash.display.*; public dynamic class D_Skull_Walk extends BitmapData { public function D_Skull_Walk(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 53
//D_SmallShip (D_SmallShip) package { import flash.display.*; public dynamic class D_SmallShip extends BitmapData { public function D_SmallShip(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 54
//D_SmallShip_Die (D_SmallShip_Die) package { import flash.display.*; public dynamic class D_SmallShip_Die extends BitmapData { public function D_SmallShip_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 55
//D_SwordSpin (D_SwordSpin) package { import flash.display.*; public dynamic class D_SwordSpin extends BitmapData { public function D_SwordSpin(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 56
//D_Tentacle_Center (D_Tentacle_Center) package { import flash.display.*; public dynamic class D_Tentacle_Center extends BitmapData { public function D_Tentacle_Center(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 57
//D_Tentacle_End (D_Tentacle_End) package { import flash.display.*; public dynamic class D_Tentacle_End extends BitmapData { public function D_Tentacle_End(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 58
//D_Tentacle_Start (D_Tentacle_Start) package { import flash.display.*; public dynamic class D_Tentacle_Start extends BitmapData { public function D_Tentacle_Start(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 59
//D_Tesouro (D_Tesouro) package { import flash.display.*; public dynamic class D_Tesouro extends BitmapData { public function D_Tesouro(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 60
//D_tiles (D_tiles) package { import flash.display.*; public dynamic class D_tiles extends BitmapData { public function D_tiles(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 61
//D_Wave (D_Wave) package { import flash.display.*; public dynamic class D_Wave extends BitmapData { public function D_Wave(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 62
//DA_Barrel (DA_Barrel) package { import flash.display.*; public dynamic class DA_Barrel extends BitmapData { public function DA_Barrel(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 63
//DA_Barrel_Die (DA_Barrel_Die) package { import flash.display.*; public dynamic class DA_Barrel_Die extends BitmapData { public function DA_Barrel_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 64
//DA_BigShip (DA_BigShip) package { import flash.display.*; public dynamic class DA_BigShip extends BitmapData { public function DA_BigShip(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 65
//DA_BigShip_Die (DA_BigShip_Die) package { import flash.display.*; public dynamic class DA_BigShip_Die extends BitmapData { public function DA_BigShip_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 66
//DA_BigShip_Die_A (DA_BigShip_Die_A) package { import flash.display.*; public dynamic class DA_BigShip_Die_A extends BitmapData { public function DA_BigShip_Die_A(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 67
//DA_BigShip_Die_B (DA_BigShip_Die_B) package { import flash.display.*; public dynamic class DA_BigShip_Die_B extends BitmapData { public function DA_BigShip_Die_B(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 68
//DA_Cannon (DA_Cannon) package { import flash.display.*; public dynamic class DA_Cannon extends BitmapData { public function DA_Cannon(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 69
//DA_Cannon_Die (DA_Cannon_Die) package { import flash.display.*; public dynamic class DA_Cannon_Die extends BitmapData { public function DA_Cannon_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 70
//DA_Hud (DA_Hud) package { import flash.display.*; public dynamic class DA_Hud extends BitmapData { public function DA_Hud(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 71
//DA_Human_Die (DA_Human_Die) package { import flash.display.*; public dynamic class DA_Human_Die extends BitmapData { public function DA_Human_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 72
//DA_Human_Musket (DA_Human_Musket) package { import flash.display.*; public dynamic class DA_Human_Musket extends BitmapData { public function DA_Human_Musket(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 73
//DA_Human_Push (DA_Human_Push) package { import flash.display.*; public dynamic class DA_Human_Push extends BitmapData { public function DA_Human_Push(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 74
//DA_Human_Shoot (DA_Human_Shoot) package { import flash.display.*; public dynamic class DA_Human_Shoot extends BitmapData { public function DA_Human_Shoot(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 75
//DA_Human_Slash (DA_Human_Slash) package { import flash.display.*; public dynamic class DA_Human_Slash extends BitmapData { public function DA_Human_Slash(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 76
//DA_Human_Sword (DA_Human_Sword) package { import flash.display.*; public dynamic class DA_Human_Sword extends BitmapData { public function DA_Human_Sword(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 77
//DA_Human_Walk (DA_Human_Walk) package { import flash.display.*; public dynamic class DA_Human_Walk extends BitmapData { public function DA_Human_Walk(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 78
//DA_Kraken (DA_Kraken) package { import flash.display.*; public dynamic class DA_Kraken extends BitmapData { public function DA_Kraken(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 79
//DA_Kraken_Die (DA_Kraken_Die) package { import flash.display.*; public dynamic class DA_Kraken_Die extends BitmapData { public function DA_Kraken_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 80
//DA_Minion_Die (DA_Minion_Die) package { import flash.display.*; public dynamic class DA_Minion_Die extends BitmapData { public function DA_Minion_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 81
//DA_Minion_Musket (DA_Minion_Musket) package { import flash.display.*; public dynamic class DA_Minion_Musket extends BitmapData { public function DA_Minion_Musket(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 82
//DA_Minion_Push (DA_Minion_Push) package { import flash.display.*; public dynamic class DA_Minion_Push extends BitmapData { public function DA_Minion_Push(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 83
//DA_Minion_Shoot (DA_Minion_Shoot) package { import flash.display.*; public dynamic class DA_Minion_Shoot extends BitmapData { public function DA_Minion_Shoot(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 84
//DA_Minion_Slash (DA_Minion_Slash) package { import flash.display.*; public dynamic class DA_Minion_Slash extends BitmapData { public function DA_Minion_Slash(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 85
//DA_Minion_Sword (DA_Minion_Sword) package { import flash.display.*; public dynamic class DA_Minion_Sword extends BitmapData { public function DA_Minion_Sword(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 86
//DA_Minion_Walk (DA_Minion_Walk) package { import flash.display.*; public dynamic class DA_Minion_Walk extends BitmapData { public function DA_Minion_Walk(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 87
//DA_MusketSpin (DA_MusketSpin) package { import flash.display.*; public dynamic class DA_MusketSpin extends BitmapData { public function DA_MusketSpin(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 88
//DA_Palm (DA_Palm) package { import flash.display.*; public dynamic class DA_Palm extends BitmapData { public function DA_Palm(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 89
//DA_Skull_Die (DA_Skull_Die) package { import flash.display.*; public dynamic class DA_Skull_Die extends BitmapData { public function DA_Skull_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 90
//DA_Skull_Musket (DA_Skull_Musket) package { import flash.display.*; public dynamic class DA_Skull_Musket extends BitmapData { public function DA_Skull_Musket(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 91
//DA_Skull_Push (DA_Skull_Push) package { import flash.display.*; public dynamic class DA_Skull_Push extends BitmapData { public function DA_Skull_Push(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 92
//DA_Skull_Shoot (DA_Skull_Shoot) package { import flash.display.*; public dynamic class DA_Skull_Shoot extends BitmapData { public function DA_Skull_Shoot(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 93
//DA_Skull_Slash (DA_Skull_Slash) package { import flash.display.*; public dynamic class DA_Skull_Slash extends BitmapData { public function DA_Skull_Slash(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 94
//DA_Skull_Walk (DA_Skull_Walk) package { import flash.display.*; public dynamic class DA_Skull_Walk extends BitmapData { public function DA_Skull_Walk(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 95
//DA_SmallShip (DA_SmallShip) package { import flash.display.*; public dynamic class DA_SmallShip extends BitmapData { public function DA_SmallShip(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 96
//DA_SmallShip_Die (DA_SmallShip_Die) package { import flash.display.*; public dynamic class DA_SmallShip_Die extends BitmapData { public function DA_SmallShip_Die(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 97
//DA_SwordSpin (DA_SwordSpin) package { import flash.display.*; public dynamic class DA_SwordSpin extends BitmapData { public function DA_SwordSpin(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 98
//DA_Tentacle_Center (DA_Tentacle_Center) package { import flash.display.*; public dynamic class DA_Tentacle_Center extends BitmapData { public function DA_Tentacle_Center(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 99
//DA_Tentacle_End (DA_Tentacle_End) package { import flash.display.*; public dynamic class DA_Tentacle_End extends BitmapData { public function DA_Tentacle_End(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 100
//DA_Tentacle_Start (DA_Tentacle_Start) package { import flash.display.*; public dynamic class DA_Tentacle_Start extends BitmapData { public function DA_Tentacle_Start(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 101
//DA_Tesouro (DA_Tesouro) package { import flash.display.*; public dynamic class DA_Tesouro extends BitmapData { public function DA_Tesouro(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 102
//easynormal (easynormal) package { import flash.display.*; public dynamic class easynormal extends SimpleButton { } }//package
Section 103
//Ebichuman (Ebichuman) package { import flash.display.*; public dynamic class Ebichuman extends BitmapData { public function Ebichuman(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 104
//Ebichuman_A (Ebichuman_A) package { import flash.display.*; public dynamic class Ebichuman_A extends BitmapData { public function Ebichuman_A(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 105
//ExitFla (ExitFla) package { import flash.display.*; public dynamic class ExitFla extends BitmapData { public function ExitFla(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 106
//HUD_Arrow (HUD_Arrow) package { import flash.display.*; public dynamic class HUD_Arrow extends BitmapData { public function HUD_Arrow(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 107
//HUD_Body (HUD_Body) package { import flash.display.*; public dynamic class HUD_Body extends BitmapData { public function HUD_Body(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 108
//HUD_Button (HUD_Button) package { import flash.display.*; public dynamic class HUD_Button extends BitmapData { public function HUD_Button(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 109
//HUD_Cannon (HUD_Cannon) package { import flash.display.*; public dynamic class HUD_Cannon extends BitmapData { public function HUD_Cannon(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 110
//HUD_Chain (HUD_Chain) package { import flash.display.*; public dynamic class HUD_Chain extends BitmapData { public function HUD_Chain(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 111
//HUD_Coin (HUD_Coin) package { import flash.display.*; public dynamic class HUD_Coin extends BitmapData { public function HUD_Coin(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 112
//HUD_Frame (HUD_Frame) package { import flash.display.*; public dynamic class HUD_Frame extends BitmapData { public function HUD_Frame(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 113
//HUD_Glass (HUD_Glass) package { import flash.display.*; public dynamic class HUD_Glass extends BitmapData { public function HUD_Glass(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 114
//HUD_IconCrown (HUD_IconCrown) package { import flash.display.*; public dynamic class HUD_IconCrown extends BitmapData { public function HUD_IconCrown(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 115
//HUD_IconGoat (HUD_IconGoat) package { import flash.display.*; public dynamic class HUD_IconGoat extends BitmapData { public function HUD_IconGoat(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 116
//HUD_IconTele (HUD_IconTele) package { import flash.display.*; public dynamic class HUD_IconTele extends BitmapData { public function HUD_IconTele(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 117
//HUD_IconWind (HUD_IconWind) package { import flash.display.*; public dynamic class HUD_IconWind extends BitmapData { public function HUD_IconWind(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 118
//HUD_Life (HUD_Life) package { import flash.display.*; public dynamic class HUD_Life extends BitmapData { public function HUD_Life(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 119
//HUD_Lines (HUD_Lines) package { import flash.display.*; public dynamic class HUD_Lines extends BitmapData { public function HUD_Lines(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 120
//HUD_On (HUD_On) package { import flash.display.*; public dynamic class HUD_On extends BitmapData { public function HUD_On(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 121
//HUD_RedBar (HUD_RedBar) package { import flash.display.*; public dynamic class HUD_RedBar extends BitmapData { public function HUD_RedBar(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 122
//HUD_SCoin (HUD_SCoin) package { import flash.display.*; public dynamic class HUD_SCoin extends BitmapData { public function HUD_SCoin(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 123
//HUD_SellMode (HUD_SellMode) package { import flash.display.*; public dynamic class HUD_SellMode extends BitmapData { public function HUD_SellMode(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 124
//HUD_Shine (HUD_Shine) package { import flash.display.*; public dynamic class HUD_Shine extends BitmapData { public function HUD_Shine(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 125
//HUD_Shop (HUD_Shop) package { import flash.display.*; public dynamic class HUD_Shop extends BitmapData { public function HUD_Shop(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 126
//HUD_Skull1 (HUD_Skull1) package { import flash.display.*; public dynamic class HUD_Skull1 extends BitmapData { public function HUD_Skull1(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 127
//HUD_Skull2 (HUD_Skull2) package { import flash.display.*; public dynamic class HUD_Skull2 extends BitmapData { public function HUD_Skull2(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 128
//HUD_Skull3 (HUD_Skull3) package { import flash.display.*; public dynamic class HUD_Skull3 extends BitmapData { public function HUD_Skull3(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 129
//HUD_Spike (HUD_Spike) package { import flash.display.*; public dynamic class HUD_Spike extends BitmapData { public function HUD_Spike(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 130
//HUD_Tel1 (HUD_Tel1) package { import flash.display.*; public dynamic class HUD_Tel1 extends BitmapData { public function HUD_Tel1(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 131
//HUD_Tel2 (HUD_Tel2) package { import flash.display.*; public dynamic class HUD_Tel2 extends BitmapData { public function HUD_Tel2(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 132
//HUD_Tel3 (HUD_Tel3) package { import flash.display.*; public dynamic class HUD_Tel3 extends BitmapData { public function HUD_Tel3(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 133
//HUD_Whitebar (HUD_Whitebar) package { import flash.display.*; public dynamic class HUD_Whitebar extends BitmapData { public function HUD_Whitebar(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 134
//IC_Ship (IC_Ship) package { import flash.display.*; public dynamic class IC_Ship extends BitmapData { public function IC_Ship(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 135
//MochiBot (MochiBot) package { import flash.display.*; import flash.net.*; import flash.system.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ var _local3:MochiBot; var _local4:String; var _local5:URLVariables; var _local6:String; var _local7:URLRequest; var _local8:Loader; if (Security.sandboxType == "localWithFile"){ return (null); }; _local3 = new (MochiBot); _arg1.addChild(_local3); Security.allowDomain("*"); Security.allowInsecureDomain("*"); _local4 = "http://core.mochibot.com/my/core.swf"; _local5 = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; _local6 = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; _local7 = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; _local8 = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package
Section 136
//MusicPlay (MusicPlay) package { import flash.media.*; public dynamic class MusicPlay extends Sound { } }//package
Section 137
//recycle (recycle) package { import flash.media.*; public dynamic class recycle extends Sound { } }//package
Section 138
//S_BarrelRoll (S_BarrelRoll) package { import flash.media.*; public dynamic class S_BarrelRoll extends Sound { } }//package
Section 139
//S_Cannon (S_Cannon) package { import flash.media.*; public dynamic class S_Cannon extends Sound { } }//package
Section 140
//S_CannonRoll (S_CannonRoll) package { import flash.media.*; public dynamic class S_CannonRoll extends Sound { } }//package
Section 141
//S_Kraken_Die (S_Kraken_Die) package { import flash.media.*; public dynamic class S_Kraken_Die extends Sound { } }//package
Section 142
//S_Kraken_Rise (S_Kraken_Rise) package { import flash.media.*; public dynamic class S_Kraken_Rise extends Sound { } }//package
Section 143
//S_MusicIntro (S_MusicIntro) package { import flash.media.*; public dynamic class S_MusicIntro extends Sound { } }//package
Section 144
//S_Musket (S_Musket) package { import flash.media.*; public dynamic class S_Musket extends Sound { } }//package
Section 145
//S_Sell (S_Sell) package { import flash.media.*; public dynamic class S_Sell extends Sound { } }//package
Section 146
//S_Shipwreck (S_Shipwreck) package { import flash.media.*; public dynamic class S_Shipwreck extends Sound { } }//package
Section 147
//S_Slash (S_Slash) package { import flash.media.*; public dynamic class S_Slash extends Sound { } }//package
Section 148
//S_Spawn (S_Spawn) package { import flash.media.*; public dynamic class S_Spawn extends Sound { } }//package
Section 149
//S_SwordMiss (S_SwordMiss) package { import flash.media.*; public dynamic class S_SwordMiss extends Sound { } }//package
Section 150
//S_Waves (S_Waves) package { import flash.media.*; public dynamic class S_Waves extends Sound { } }//package
Section 151
//S_WindPow (S_WindPow) package { import flash.media.*; public dynamic class S_WindPow extends Sound { } }//package
Section 152
//SFX_CrossAim (SFX_CrossAim) package { import flash.display.*; public dynamic class SFX_CrossAim extends BitmapData { public function SFX_CrossAim(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 153
//SFX_Sand1 (SFX_Sand1) package { import flash.display.*; public dynamic class SFX_Sand1 extends BitmapData { public function SFX_Sand1(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 154
//SFX_Sand2 (SFX_Sand2) package { import flash.display.*; public dynamic class SFX_Sand2 extends BitmapData { public function SFX_Sand2(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 155
//SFX_Smoke1 (SFX_Smoke1) package { import flash.display.*; public dynamic class SFX_Smoke1 extends BitmapData { public function SFX_Smoke1(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 156
//SFX_Smoke2 (SFX_Smoke2) package { import flash.display.*; public dynamic class SFX_Smoke2 extends BitmapData { public function SFX_Smoke2(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 157
//SFX_Smoke3 (SFX_Smoke3) package { import flash.display.*; public dynamic class SFX_Smoke3 extends BitmapData { public function SFX_Smoke3(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 158
//SFX_Water (SFX_Water) package { import flash.display.*; public dynamic class SFX_Water extends BitmapData { public function SFX_Water(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 159
//TR_Bb (TR_Bb) package { import flash.display.*; public dynamic class TR_Bb extends BitmapData { public function TR_Bb(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 160
//TR_Bbuild (TR_Bbuild) package { import flash.display.*; public dynamic class TR_Bbuild extends BitmapData { public function TR_Bbuild(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 161
//TR_Blood (TR_Blood) package { import flash.display.*; public dynamic class TR_Blood extends BitmapData { public function TR_Blood(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 162
//TR_Bstart (TR_Bstart) package { import flash.display.*; public dynamic class TR_Bstart extends BitmapData { public function TR_Bstart(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 163
//TR_Btut (TR_Btut) package { import flash.display.*; public dynamic class TR_Btut extends BitmapData { public function TR_Btut(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 164
//TR_Cont (TR_Cont) package { import flash.display.*; public dynamic class TR_Cont extends BitmapData { public function TR_Cont(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 165
//TX_Deposit (TX_Deposit) package { import flash.display.*; public dynamic class TX_Deposit extends BitmapData { public function TX_Deposit(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 166
//TX_Grab (TX_Grab) package { import flash.display.*; public dynamic class TX_Grab extends BitmapData { public function TX_Grab(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 167
//TX_Reanimate (TX_Reanimate) package { import flash.display.*; public dynamic class TX_Reanimate extends BitmapData { public function TX_Reanimate(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 168
//TX_Release (TX_Release) package { import flash.display.*; public dynamic class TX_Release extends BitmapData { public function TX_Release(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 169
//TX_Shoot (TX_Shoot) package { import flash.display.*; public dynamic class TX_Shoot extends BitmapData { public function TX_Shoot(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 170
//TX_Slash (TX_Slash) package { import flash.display.*; public dynamic class TX_Slash extends BitmapData { public function TX_Slash(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 171
//TX_Spawn (TX_Spawn) package { import flash.display.*; public dynamic class TX_Spawn extends BitmapData { public function TX_Spawn(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 172
//TX_Wind (TX_Wind) package { import flash.display.*; public dynamic class TX_Wind extends BitmapData { public function TX_Wind(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package

Library Items

Symbol 1 Bitmap {IC_Ship}
Symbol 2 Bitmap {HUD_Shine}
Symbol 3 Bitmap {HUD_On}
Symbol 4 Bitmap {D_Hud}
Symbol 5 Bitmap {DA_Hud}
Symbol 6 Bitmap {D_monkeyboy}
Symbol 7 Bitmap {D_Broke}
Symbol 8 Button {easynormal}
Symbol 9 Bitmap {_pk122}Used by:Timeline
Symbol 10 Bitmap {_ad323}Used by:Timeline
Symbol 11 Bitmap {D_Cannonball}Used by:184
Symbol 12 BitmapUsed by:13
Symbol 13 GraphicUses:12Used by:Timeline
Symbol 14 FontUsed by:15 24 27 221 241
Symbol 15 EditableTextUses:14Used by:16 17
Symbol 16 MovieClipUses:15Used by:17
Symbol 17 ButtonUses:16 15Used by:Timeline
Symbol 18 BitmapUsed by:19
Symbol 19 GraphicUses:18Used by:20 185
Symbol 20 ButtonUses:19Used by:Timeline
Symbol 21 BitmapUsed by:23 187 188
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:21 22Used by:Timeline
Symbol 24 EditableTextUses:14Used by:Timeline
Symbol 25 BitmapUsed by:26 187
Symbol 26 GraphicUses:25Used by:Timeline
Symbol 27 EditableTextUses:14Used by:184
Symbol 28 GraphicUsed by:184
Symbol 29 Bitmap {HUD_SellMode}Used by:184
Symbol 30 Bitmap {ExitFla}Used by:184
Symbol 31 Bitmap {TR_Bb}Used by:184
Symbol 32 Bitmap {TR_Blood}Used by:184
Symbol 33 Bitmap {TR_Cont}Used by:184
Symbol 34 Bitmap {TR_Btut}Used by:184
Symbol 35 Bitmap {TR_Bbuild}Used by:184
Symbol 36 Bitmap {TR_Bstart}Used by:184
Symbol 37 Bitmap {DA_BigShip_Die_B}Used by:184
Symbol 38 Bitmap {DA_BigShip_Die_A}Used by:184
Symbol 39 Bitmap {D_BigShip_Die_B}Used by:184
Symbol 40 Bitmap {D_BigShip_Die_A}Used by:184
Symbol 41 Bitmap {HUD_Cannon}Used by:184
Symbol 42 Bitmap {HUD_Life}Used by:184
Symbol 43 Bitmap {HUD_SCoin}Used by:184
Symbol 44 Bitmap {BT_Z}Used by:184
Symbol 45 Bitmap {BT_X}Used by:184
Symbol 46 Bitmap {TX_Wind}Used by:184
Symbol 47 Bitmap {BT_V}Used by:184
Symbol 48 Bitmap {TX_Spawn}Used by:184
Symbol 49 Bitmap {TX_Slash}Used by:184
Symbol 50 Bitmap {TX_Shoot}Used by:184
Symbol 51 Bitmap {TX_Release}Used by:184
Symbol 52 Bitmap {TX_Reanimate}Used by:184
Symbol 53 Bitmap {TX_Grab}Used by:184
Symbol 54 Bitmap {TX_Deposit}Used by:184
Symbol 55 Bitmap {BT_C}Used by:184
Symbol 56 Bitmap {SFX_Water}Used by:184
Symbol 57 Bitmap {D_Tentacle_Start}Used by:184
Symbol 58 Bitmap {DA_Tentacle_Start}Used by:184
Symbol 59 Bitmap {D_Tentacle_End}Used by:184
Symbol 60 Bitmap {DA_Tentacle_End}Used by:184
Symbol 61 Bitmap {D_Tentacle_Center}Used by:184
Symbol 62 Bitmap {DA_Tentacle_Center}Used by:184
Symbol 63 Bitmap {D_Kraken_Die}Used by:184
Symbol 64 Bitmap {DA_Kraken_Die}Used by:184
Symbol 65 Bitmap {D_Kraken}Used by:184
Symbol 66 Bitmap {DA_Kraken}Used by:184
Symbol 67 Bitmap {D_Wave}Used by:184
Symbol 68 Bitmap {HUD_Skull3}Used by:184
Symbol 69 Bitmap {HUD_Skull2}Used by:184
Symbol 70 Bitmap {HUD_Skull1}Used by:184
Symbol 71 Bitmap {HUD_Frame}Used by:184
Symbol 72 Bitmap {HUD_Coin}Used by:184
Symbol 73 Bitmap {HUD_IconCrown}Used by:184
Symbol 74 Bitmap {HUD_IconWind}Used by:184
Symbol 75 Bitmap {HUD_IconGoat}Used by:184
Symbol 76 Bitmap {HUD_Tel3}Used by:184
Symbol 77 Bitmap {HUD_Tel2}Used by:184
Symbol 78 Bitmap {HUD_Tel1}Used by:184
Symbol 79 Bitmap {HUD_IconTele}Used by:184
Symbol 80 Bitmap {HUD_Shop}Used by:184
Symbol 81 Bitmap {SFX_CrossAim}Used by:184
Symbol 82 Bitmap {SFX_Smoke3}Used by:184
Symbol 83 Bitmap {SFX_Smoke2}Used by:184
Symbol 84 Bitmap {SFX_Smoke1}Used by:184
Symbol 85 Bitmap {SFX_Sand2}Used by:184
Symbol 86 Bitmap {SFX_Sand1}Used by:184
Symbol 87 Bitmap {DA_Palm}Used by:184
Symbol 88 Bitmap {D_Palm}Used by:184
Symbol 89 Bitmap {HUD_Spike}Used by:184
Symbol 90 Bitmap {HUD_RedBar}Used by:184
Symbol 91 Bitmap {HUD_Lines}Used by:184
Symbol 92 Bitmap {HUD_Glass}Used by:184
Symbol 93 Bitmap {HUD_Chain}Used by:184
Symbol 94 Bitmap {HUD_Body}Used by:184
Symbol 95 Bitmap {HUD_Arrow}Used by:184
Symbol 96 Bitmap {HUD_Whitebar}Used by:184
Symbol 97 Bitmap {HUD_Button}Used by:184
Symbol 98 Bitmap {DA_Tesouro}Used by:184
Symbol 99 Bitmap {D_Tesouro}Used by:184
Symbol 100 Bitmap {D_Barrel_Die}Used by:184
Symbol 101 Bitmap {D_Barrel}Used by:184
Symbol 102 Bitmap {D_SwordSpin}Used by:184
Symbol 103 Bitmap {D_MusketSpin}Used by:184
Symbol 104 Bitmap {DA_Cannon}Used by:184
Symbol 105 Bitmap {DA_Cannon_Die}Used by:184
Symbol 106 Bitmap {DA_Barrel_Die}Used by:184
Symbol 107 Bitmap {DA_Barrel}Used by:184
Symbol 108 Bitmap {DA_SwordSpin}Used by:184
Symbol 109 Bitmap {DA_MusketSpin}Used by:184
Symbol 110 Bitmap {D_Cannon_Die}Used by:184
Symbol 111 Bitmap {D_Cannon}Used by:184
Symbol 112 Bitmap {D_BigShip_Die}Used by:184
Symbol 113 Bitmap {D_SmallShip}Used by:184
Symbol 114 Bitmap {D_SmallShip_Die}Used by:184
Symbol 115 Bitmap {D_BigShip}Used by:184
Symbol 116 Bitmap {DA_BigShip_Die}Used by:184
Symbol 117 Bitmap {DA_SmallShip}Used by:184
Symbol 118 Bitmap {DA_SmallShip_Die}Used by:184
Symbol 119 Bitmap {DA_BigShip}Used by:184
Symbol 120 Bitmap {DA_Skull_Slash}Used by:184
Symbol 121 Bitmap {DA_Skull_Shoot}Used by:184
Symbol 122 Bitmap {DA_Skull_Push}Used by:184
Symbol 123 Bitmap {DA_Skull_Musket}Used by:184
Symbol 124 Bitmap {DA_Skull_Die}Used by:184
Symbol 125 Bitmap {DA_Skull_Walk}Used by:184
Symbol 126 Bitmap {D_Skull_Slash}Used by:184
Symbol 127 Bitmap {D_Skull_Shoot}Used by:184
Symbol 128 Bitmap {D_Skull_Push}Used by:184
Symbol 129 Bitmap {D_Skull_Musket}Used by:184
Symbol 130 Bitmap {D_Skull_Die}Used by:184
Symbol 131 Bitmap {D_Skull_Walk}Used by:184
Symbol 132 Bitmap {D_Minion_Sword}Used by:184
Symbol 133 Bitmap {D_Minion_Slash}Used by:184
Symbol 134 Bitmap {D_Minion_Shoot}Used by:184
Symbol 135 Bitmap {D_Minion_Push}Used by:184
Symbol 136 Bitmap {D_Minion_Musket}Used by:184
Symbol 137 Bitmap {D_Minion_Die}Used by:184
Symbol 138 Bitmap {D_Minion_Walk}Used by:184
Symbol 139 Bitmap {DA_Minion_Sword}Used by:184
Symbol 140 Bitmap {DA_Minion_Slash}Used by:184
Symbol 141 Bitmap {DA_Minion_Shoot}Used by:184
Symbol 142 Bitmap {DA_Minion_Push}Used by:184
Symbol 143 Bitmap {DA_Minion_Musket}Used by:184
Symbol 144 Bitmap {DA_Minion_Die}Used by:184
Symbol 145 Bitmap {DA_Minion_Walk}Used by:184
Symbol 146 Bitmap {DA_Human_Sword}Used by:184
Symbol 147 Bitmap {DA_Human_Slash}Used by:184
Symbol 148 Bitmap {DA_Human_Shoot}Used by:184
Symbol 149 Bitmap {DA_Human_Push}Used by:184
Symbol 150 Bitmap {DA_Human_Musket}Used by:184
Symbol 151 Bitmap {DA_Human_Die}Used by:184
Symbol 152 Bitmap {DA_Human_Walk}Used by:184
Symbol 153 Bitmap {D_Human_Sword}Used by:184
Symbol 154 Bitmap {D_Human_Slash}Used by:184
Symbol 155 Bitmap {D_Human_Shoot}Used by:184
Symbol 156 Bitmap {D_Human_Push}Used by:184
Symbol 157 Bitmap {D_Human_Musket}Used by:184
Symbol 158 Bitmap {D_Human_Die}Used by:184
Symbol 159 Bitmap {D_Human_Walk}Used by:184
Symbol 160 BitmapUsed by:162
Symbol 161 BitmapUsed by:162
Symbol 162 GraphicUses:160 161Used by:184
Symbol 163 Bitmap {Ebichuman_A}Used by:184
Symbol 164 Bitmap {D_Data}Used by:184
Symbol 165 Bitmap {Ebichuman}Used by:184
Symbol 166 Bitmap {D_mapa}Used by:184
Symbol 167 Bitmap {D_tiles}Used by:184
Symbol 168 Sound {recycle}Used by:184
Symbol 169 Sound {S_Cannon}Used by:184
Symbol 170 Sound {S_Musket}Used by:184
Symbol 171 Sound {S_Slash}Used by:184
Symbol 172 Sound {S_Waves}Used by:184
Symbol 173 Sound {S_Kraken_Rise}Used by:184
Symbol 174 Sound {S_Kraken_Die}Used by:184
Symbol 175 Sound {S_Shipwreck}Used by:184
Symbol 176 Sound {S_CannonRoll}Used by:184
Symbol 177 Sound {S_Sell}Used by:184
Symbol 178 Sound {S_BarrelRoll}Used by:184
Symbol 179 Sound {S_SwordMiss}Used by:184
Symbol 180 Sound {S_WindPow}Used by:184
Symbol 181 Sound {S_Spawn}Used by:184
Symbol 182 Sound {S_MusicIntro}Used by:184
Symbol 183 Sound {MusicPlay}Used by:184
Symbol 184 MovieClip {unholy120mochibot_fla.assetholder_4}Uses:27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 11 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183Used by:Timeline
Symbol 185 ButtonUses:19Used by:Timeline
Symbol 186 BitmapUsed by:187 188
Symbol 187 GraphicUses:186 21 25Used by:Timeline
Symbol 188 GraphicUses:186 21Used by:Timeline
Symbol 189 GraphicUsed by:190
Symbol 190 MovieClipUses:189Used by:Timeline
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:191Used by:Timeline
Symbol 193 BitmapUsed by:194
Symbol 194 GraphicUses:193Used by:195
Symbol 195 MovieClipUses:194Used by:217
Symbol 196 GraphicUsed by:205
Symbol 197 GraphicUsed by:205 210
Symbol 198 GraphicUsed by:205
Symbol 199 GraphicUsed by:205
Symbol 200 GraphicUsed by:205 210
Symbol 201 GraphicUsed by:205 210
Symbol 202 GraphicUsed by:205 210
Symbol 203 GraphicUsed by:205
Symbol 204 GraphicUsed by:205
Symbol 205 MovieClip {unholy120mochibot_fla.asgasgshr_10}Uses:196 197 198 199 200 201 202 203 204Used by:217
Symbol 206 GraphicUsed by:210
Symbol 207 GraphicUsed by:210
Symbol 208 GraphicUsed by:210
Symbol 209 GraphicUsed by:210
Symbol 210 MovieClip {unholy120mochibot_fla.asf4cv436_11}Uses:206 207 208 201 209 202 197 200Used by:217
Symbol 211 FontUsed by:212 256 257
Symbol 212 TextUses:211Used by:214
Symbol 213 GraphicUsed by:214
Symbol 214 ButtonUses:212 213Used by:216
Symbol 215 GraphicUsed by:216
Symbol 216 MovieClip {unholy120mochibot_fla.vdfgv3g_12}Uses:214 215Used by:217
Symbol 217 MovieClip {unholy120mochibot_fla.ghkghkgh_8}Uses:195 205 210 216 SS1Used by:Timeline
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:220 258
Symbol 220 ButtonUses:219Used by:Timeline
Symbol 221 EditableTextUses:14Used by:222
Symbol 222 ButtonUses:221Used by:Timeline
Symbol 223 BitmapUsed by:224
Symbol 224 GraphicUses:223Used by:225
Symbol 225 ButtonUses:224Used by:Timeline
Symbol 226 BitmapUsed by:227
Symbol 227 GraphicUses:226Used by:228
Symbol 228 ButtonUses:227Used by:Timeline
Symbol 229 BitmapUsed by:230
Symbol 230 GraphicUses:229Used by:231
Symbol 231 ButtonUses:230Used by:Timeline
Symbol 232 BitmapUsed by:233
Symbol 233 GraphicUses:232Used by:234
Symbol 234 ButtonUses:233Used by:Timeline
Symbol 235 BitmapUsed by:236
Symbol 236 GraphicUses:235Used by:237
Symbol 237 ButtonUses:236Used by:Timeline
Symbol 238 BitmapUsed by:239
Symbol 239 GraphicUses:238Used by:240
Symbol 240 ButtonUses:239Used by:Timeline
Symbol 241 EditableTextUses:14Used by:242
Symbol 242 ButtonUses:241Used by:Timeline
Symbol 243 BitmapUsed by:244
Symbol 244 GraphicUses:243Used by:245
Symbol 245 ButtonUses:244Used by:Timeline
Symbol 246 BitmapUsed by:247
Symbol 247 GraphicUses:246Used by:Timeline
Symbol 248 FontUsed by:249 250 251 252 267
Symbol 249 EditableTextUses:248Used by:Timeline
Symbol 250 EditableTextUses:248Used by:Timeline
Symbol 251 EditableTextUses:248Used by:Timeline
Symbol 252 EditableTextUses:248Used by:Timeline
Symbol 253 BitmapUsed by:254
Symbol 254 GraphicUses:253Used by:255
Symbol 255 ButtonUses:254Used by:Timeline
Symbol 256 EditableTextUses:211Used by:Timeline
Symbol 257 TextUses:211Used by:Timeline
Symbol 258 ButtonUses:219Used by:Timeline
Symbol 259 BitmapUsed by:260
Symbol 260 GraphicUses:259Used by:261
Symbol 261 ButtonUses:260Used by:Timeline
Symbol 262 BitmapUsed by:263
Symbol 263 GraphicUses:262Used by:264
Symbol 264 ButtonUses:263Used by:Timeline
Symbol 265 BitmapUsed by:266
Symbol 266 GraphicUses:265Used by:Timeline
Symbol 267 EditableTextUses:248Used by:268
Symbol 268 ButtonUses:267Used by:Timeline
Symbol 269 BitmapUsed by:270
Symbol 270 GraphicUses:269Used by:271
Symbol 271 ButtonUses:270Used by:Timeline
Streaming Sound 1Used by:Symbol 217 MovieClip {unholy120mochibot_fla.ghkghkgh_8}

Instance Names

"skipshit"Frame 1Symbol 17 Button
"WhoYouGonnaCall"Frame 1Symbol 20 Button
"loadtime"Frame 1Symbol 24 EditableText
"WhoWho"Frame 5Symbol 185 Button
"WhoWhoWho"Frame 6Symbol 185 Button
"loadbar"Frame 6Symbol 192 MovieClip
"CallMe"Frame 9Symbol 220 Button
"Load_Button"Frame 9Symbol 222 Button
"LoadGameShow"Frame 9Symbol 225 Button
"Strategy_Mode"Frame 9Symbol 228 Button
"Action_Mode"Frame 9Symbol 231 Button
"More_Button"Frame 9Symbol 222 Button
"Score_Button"Frame 9Symbol 222 Button
"Kureditu"Frame 9Symbol 234 Button
"easynorm"Frame 9Symbol 237 Button
"actstra"Frame 9Symbol 240 Button
"Start_game2"Frame 9Symbol 242 Button
"Play_Button"Frame 9Symbol 222 Button
"Main_Menu"Frame 9Symbol 245 Button
"Start_game"Frame 9Symbol 242 Button
"scorecore"Frame 14Symbol 249 EditableText
"stagesmall"Frame 14Symbol 250 EditableText
"stagebig"Frame 14Symbol 251 EditableText
"frame"Frame 14Symbol 252 EditableText
"SendHigh"Frame 15Symbol 255 Button
"Scoreshow"Frame 15Symbol 256 EditableText
"Dino"Frame 15Symbol 258 Button
"PleyLoad"Frame 15Symbol 261 Button
"handmove"Frame 15Symbol 264 Button
"Lagarto"Frame 18Symbol 268 Button
"BluePill"Frame 18Symbol 271 Button
"callSystem"Symbol 216 MovieClip {unholy120mochibot_fla.vdfgv3g_12} Frame 1Symbol 214 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS3.
Protect (24)Timeline Frame 131 bytes "..$1$5S$BPOaUHqI37Y9FhWneaZYo.."




http://swfchan.com/16/75226/info.shtml
Created: 6/4 -2019 09:57:43 Last modified: 6/4 -2019 09:57:43 Server time: 23/12 -2024 01:12:34