Frame 1
function gotoSite() {
}
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var mi1 = new ContextMenuItem("Warbears.com", gotoSite);
myContextMenu.customItems.push(mi1);
var mi2 = new ContextMenuItem("by Gionatan Iasio", gotoSite);
myContextMenu.customItems.push(mi2);
_root.menu = myContextMenu;
MochiAd.showPreGameAd({id:"f11c881133357731", res:"550x400"});
stop();
Frame 2
function modnum(a) {
while (a > 9) {
a = a - 10;
}
while (a < 0) {
a = a + 10;
}
return(a);
}
function updateCharData(d, e) {
var _local7 = [];
var _local2 = "";
var _local6 = 0;
while (_local6 < 10) {
_local7[9 - _local6] = "3.14159265358979".charAt(_local6 + 5) * 1;
_local6++;
}
if (e) {
var _local4 = 0;
_local6 = 0;
while (_local6 < d.length) {
_local4 = _local4 + (d.charAt(_local6) * 1);
_local6 = _local6 + 3;
}
_local6 = 1;
while (_local6 < d.length) {
_local4 = _local4 + (d.charAt(_local6) * 2);
_local6 = _local6 + 3;
}
_local6 = 2;
while (_local6 < d.length) {
_local4 = _local4 + (d.charAt(_local6) * 3);
_local6 = _local6 + 3;
}
_local4 = Math.abs(_local4) + "";
if (_local4.length > 3) {
_local4 = _local4.substr(_local4.length - 3);
}
while (_local4.length < 3) {
_local4 = "0" + _local4;
}
d = d + _local4;
}
_local6 = 0;
while (_local6 < d.length) {
if (e) {
var _local5 = ((d.charAt(_local6) * 1) + _local7[_local6 % 10]) + (_local6 % 3);
} else {
var _local5 = ((d.charAt(_local6) * 1) - _local7[_local6 % 10]) - (_local6 % 3);
}
var _local5 = modnum(_local5);
_local2 = _local2 + (_local5 + "");
_local6++;
}
if (!e) {
var _local3 = 0;
_local6 = 0;
while (_local6 < (_local2.length - 3)) {
_local3 = _local3 + (_local2.charAt(_local6) * 1);
_local6 = _local6 + 3;
}
_local6 = 1;
while (_local6 < (_local2.length - 3)) {
_local3 = _local3 + (_local2.charAt(_local6) * 2);
_local6 = _local6 + 3;
}
_local6 = 2;
while (_local6 < (_local2.length - 3)) {
_local3 = _local3 + (_local2.charAt(_local6) * 3);
_local6 = _local6 + 3;
}
_local3 = Math.abs(_local3) + "";
if (_local3.length > 3) {
_local3 = _local3.substr(_local3.length - 3);
}
while (_local3.length < 3) {
_local3 = "0" + _local3;
}
if (_local3 != _local2.substr(_local2.length - 3, 3)) {
return(null);
}
_local2 = _local2.substr(0, _local2.length - 3);
}
return(_local2);
}
function updateCharData2(d, e) {
if (e) {
r = "";
var _local2 = 0;
while (_local2 < d.length) {
var _local1 = d.charCodeAt(_local2) + "";
while (_local1.length < 3) {
_local1 = "0" + _local1;
}
r = r + (_local1 + "");
_local2++;
}
return(r);
}
r = "";
var _local2 = 0;
while (_local2 < (d.length / 3)) {
var _local1 = d.substr(_local2 * 3, 3);
while (_local1.charAt(0) == "0") {
_local1 = _local1.substr(1);
}
r = r + String.fromCharCode(_local1);
_local2++;
}
return(r);
}
_global._r = this;
_global.lan = _global.setlan;
if (_global.lan == null) {
_global.lan = "en";
}
_global.serverAddr = "http://www.warbears.com/";
if (_global.nick == null) {
_global.nick = "";
}
_global.fps = 24;
_global.frame = 0;
_global.inGameMusic = true;
_global._cscene = 1;
_global._czone = 1;
_global.ltimer = 0;
_global.lttimer = 0;
_global.mirrorMode = false;
_global.autoAdjustQuality = true;
_global.aaFrames = Array();
_global.dirLeft = 0;
_global.dirRight = 1;
_global.canopencommand = true;
_global.startGame = function () {
_global._cscene = 1;
_global._czone = 1;
_global.ltimer = 0;
resetGStatus();
};
_global.resetGStatus = function () {
_global.gStatus = {iCells:[[null, null], [null, null]], itemData:{btcMap:{sx:1, sy:1}, wallet:{sx:1, sy:1}, credits7:{sx:1, sy:1}, credits5:{sx:1, sy:1}, credits2:{sx:1, sy:1}, credits400:{sx:1, sy:1}, taser:{sx:1, sy:1}, screwdriver:{sx:1, sy:1}, cubeRed:{sx:1, sy:1}, cubeBlue:{sx:1, sy:1}, cubeGreen:{sx:1, sy:1}, card:{sx:1, sy:1}, neonLightsWired:{sx:1, sy:1}, batteriesWired:{sx:1, sy:1}, neonLightsOn:{sx:1, sy:1}, hackingDevice:{sx:1, sy:1}}, ooFunctions:{}};
};
resetGStatus();
_r.createEmptyMovieClip("sound", 777);
_global.sound = _r.sound;
_global.startTimer = function () {
_global.clock = getTimer();
_global.timerOn = true;
};
_global.stopTimer = function () {
_global.timerOn = false;
};
_global.updateTimer = function () {
_global.frame++;
if ((cTimer - _global.clock) > 500) {
_global.ltimer = _global.ltimer + ((cTimer - _global.clock) / 1000);
_global.lttimer = _global.lttimer + ((cTimer - _global.clock) / 1000);
if (showtime) {
_i.txtTime.setText(getTimeString(ltimer));
}
_global.fps = frame * 2;
if (_global.showFPS) {
_i.txtTimer.setText("fps " + fps);
}
_global.frame = 0;
_global.clock = cTimer;
if (autoAdjustQuality) {
autoAdjust();
}
}
};
_global.getTimeString = function (msec) {
var _local2 = "" + Math.floor(msec / 60);
var _local1 = "" + Math.floor(msec % 60);
if (_local2.length < 2) {
_local2 = "0" + _local2;
}
if (_local1.length < 2) {
_local1 = "0" + _local1;
}
return((_local2 + ":") + _local1);
};
_global.canOpenCommand = function (flag) {
_global.canopencommand = flag;
if (!flag) {
__c.comm.close();
_c.canComIcon.gotoAndStop("show");
if (_r.cursorB) {
_r.cursorB._visible = false;
}
if (_r.cursorE) {
_r.cursorE._visible = false;
}
if (_i.label.ison) {
_i.label._visible = false;
}
} else {
_c.canComIcon.gotoAndPlay("hide");
if (_r.cursorB) {
_r.cursorB._visible = true;
}
if (_r.cursorE) {
_r.cursorE._visible = true;
}
if (_i.label.ison) {
_i.label._visible = true;
}
}
};
_global.loadData = function () {
_r.createEmptyMovieClip("data_loader", 77911);
if (_global.nick != "") {
var _local2 = (((((((serverAddr + "missions/loaddataA1.php?") + sn()) + "=") + sn()) + "&un=") + _global.nick) + "&pw=") + _global.passw;
} else {
var _local2 = (((serverAddr + "missions/loaddataA1.php?") + sn()) + "=") + sn();
}
loadVariables (_local2, data_loader);
};
_global.fetchData = function () {
if (_r.data_loader.o == null) {
return(false);
}
if (_global.nick == "") {
return(true);
}
delete _r.data_loader.onEnterFrame;
return(true);
};
_global.setActiveChar = function (char) {
_global._char = char;
_c.comm.owner = char;
};
_global.autoAdjust = function () {
aaFrames.push(fps);
if (aaFrames.length > 5) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < 5) {
_local3 = _local3 + aaFrames[_local2];
_local2++;
}
_global.aaFrames = Array();
_local3 = _local3 / 5;
var _local4 = 1;
if (_quality == "MEDIUM") {
_local4 = 2;
} else if (_quality == "HIGH") {
_local4 = 3;
}
if (_local3 < 18) {
_local4--;
} else if (_local3 >= 22) {
_local4++;
}
switch (_local4) {
case 0 :
case 1 :
var _local5 = "LOW";
break;
case 2 :
_local5 = "MEDIUM";
break;
case 3 :
case 4 :
_local5 = "HIGH";
}
if (_local5 != _quality) {
_quality = _local5;
if (!noticedAutoAdjust) {
_global.noticedAutoAdjust = true;
_i.tips.gotoAndStop(7);
}
}
_i.optPanel.qButtons.init();
}
};
_r.acorn = "MAXA0";
_global.alan = [];
alan.en = [];
alan.it = [];
alan.jp = [];
_global.cl = alan.en;
_global.cl = alan.en;
cl.f01 = 1;
cl.f02 = 2;
cl.in00 = "ADVENTURE : A.R. XMas";
cl.in01 = "time";
cl.in02 = "rank points";
cl.in03 = "lines";
cl.in04 = "quality";
cl.in05 = "music volume";
cl.in06 = "sound volume";
cl.in07 = "auto adjust";
cl.in08 = "show fps";
cl.in09 = "high";
cl.in10 = "medium";
cl.in11 = "low";
cl.in12 = "in game music";
cl.in13 = "close";
cl.in14 = "level";
cl.in16 = "Nick:";
cl.btm1 = "start game!";
cl.btm2 = "how to";
cl.btm3 = "options";
cl.btm4 = "more games..";
cl.bto1 = "quit to menu";
cl.bto2 = "are you sure?";
cl.bto3 = "close";
cl.hlp00 = "";
cl.hlp01 = "";
cl.ap01 = "Retrieving Data..";
cl.ap02 = "Award Points:";
cl.ap03 = "Credits:";
var c = ((cl.objn = []));
c.screwdriver = "Screwdriver";
c.toolbox = "Toolbox";
c.bob = "Bob";
c.kla = "Kla";
c.eye = "Eye";
c.gift = "Gift";
c.list = "Shopping List";
c.furScanButton = "Fur Scan Button";
c.arGoggles = "A.R. Goggles";
c.taser = "Taser";
c.hackingDevice = "Hacking Device";
c.btcMap = "Btc Map";
c.neonLights = "Neon Lights";
c.batteries = "Batteries";
c.wires = "Wires";
c.credits = "Credits";
c.wallet = "Kla's Wallet";
c.credits7 = "7$";
c.credits5 = "5$";
c.credits2 = "2$";
c.credits400 = "800$";
c.card = "Credit card";
c.cubeBlue = "Blue Thread";
c.cubeRed = "Red Thread";
c.cubeGreen = "Green Thread";
c.sockets = "Gateway Sockets";
c.tree = "Virtual Tree";
c.xtree = "Gateway";
c.jebediah = "Granps Jebediah";
c.circuitLocker = "Locker";
c.circuitPanel = "Circuit Panel";
c.circuit = "Circuit";
c.doorPanel = "Door Panel";
c.bobShop = "Bob's Furniture Shop";
c.bank = "BTC Bank";
c.park = "Feather Park";
c.neonLightsWired = "Wired Neon Lights";
c.batteriesWired = "Wired Batteries";
var c = ((cl.objd_kla = []));
c.btcMap = "a btc map";
c.neonLights = "ah, the extra bright\nneon lights i've ordered";
c.hackingDevice = "mmh.. a simple\nhacking device\ti wonder who\nordered this..\tbasically it's\njust a toy";
c.batteries = "nickel-hydrogen\nbatteries";
c.wires = "ultra-strong wires";
c.taser = "a mono-use taser";
c.credits = "-";
c.xtree = "the evil spirit said\nthis is a gateway\nto the web..\tif i don't deactivate\nit soon, those evil programs\nwill be able to escape\nthe a.r. goggles data block";
var c = ((cl.objd_steve = []));
c.hackingDevice = "the advanced hacking\ndevice i ordered!\tit was meant to be\nan xmas gift for kla\ti hope he\ndidn't see it\tprice: 300$\twhoa that's\nvery uncheap";
c.btcMap = "this could be useful\nsince i always get lost\tprice: 5$";
c.taser = "a sparkly thingie\tprice: 2$\tthat's cheap!";
c.credits = "mmh, if i had money, i'd\nbuy money so i could buy\nthe other stuff i need!\tit would solve my\nmoney problems!\ttoo bad i don't\nhave money";
c.circuitPanel = "i need something to\nunscrew this panel!";
c.circuit = "i don't understand\nmuch about circuits\tbut i'd say this\nis the fountain\ncircuit\t'cause there's\na label on it";
c.doorPanel = "this must be\nthe panel to\nopen the door";
cl["..."] = "...";
cl.mmh = "mmh..";
cl.is01 = "i can't use\nthose together";
cl.ik01 = "i can't use\nthose together";
cl.is02 = "mmh..it won't fit\nin my pockets";
cl.ik02 = "mmh..it won't fit\nin my pockets";
cl.is03 = "can't wear that";
cl.ik03 = "can't wear that";
cl.is04 = "mmh, i have to\nconnect them somehow";
cl.is05 = "nice";
cl.is06 = "mmh..\ti don't think\nhe deserves it";
cl.k01 = "i have to buy some\ncomponents for\nwarbot #05\tlater dudes!";
cl.l01 = "we'll be around";
cl.s01 = "wait lucas!\ti forgot i need to\nget some stuff too";
cl.s02 = "hehehe";
cl.s03 = "they fell\nfor it";
cl.s04 = "penguins,\nare you ready?";
cl.s05 = "did you bring\nthe decorations?";
cl.b01 = "welcome to bob's\nfurniture shop\ttoday we got\nspecial prices!\tas in\n\"special for me\"";
cl.k02 = "hi dude\ti need to retrieve\nsome stuff i ordered";
cl.b02 = "sure, i've just installed a\nnew fur scanner\tyou know\nwhat to do\toh and there's\na package for you";
cl.k03 = "thanks dude";
cl.k10 = "mmh, it looks like\nbob's been mounting\nthe fur scanner";
cl.b10 = "hey don't touch that";
cl.k11 = "sure dude";
cl.k12 = "mmh.. nothing happens";
cl.v01 = "welcome to fur\nscanner 3k by\ndarkcore corp\tplease step on\nthe platform";
cl.k13 = "whoa";
cl.v02 = "proceeding with\nfur extraction";
cl.k14 = "hey what the..";
cl.v03 = "fur extraction\nsuccessful\tproceeding with\ndna recognition";
cl.v04 = "subject warbear\nkla detected\tcruel homicide\nprocedure aborted";
cl.k15 = "dude, that totally\nfreaked me out!!";
cl.b11 = "you know..\tmodern technology";
cl.v05 = "warbears shop\nmode enabled";
cl.dkb = [];
cl.dkb[0] = "what do i do?";
cl.dkb[1] = "the fur scanner..";
cl.dkb[2] = "where the wires";
cl.dkb[3] = "never mind";
cl.k16 = "so what do\ni do again?";
cl.b12 = "to enable the\nwarbears shop mode?\twhat did you eat\nthis morning, milk\nand amnesia?\tjust use the\nfur scanner\tit'll recognize your dna\nand trigger the wbs mode";
cl.k17 = "ooh, right";
cl.k18 = "i pushed the button,\nnothing happened";
cl.b13 = "oh yeah..\tsince it's never\nbeen used i need\nto unlock it first";
cl.b14 = "let me punch in\nthe secret code";
cl.b15 = "five";
cl.b16 = "best secret\ncode ever\tit should work now";
cl.k19 = "thanks dude";
cl.k21 = "hey bob i can't\nfind something\ni've ordered";
cl.b18 = "if you've ordered\nit, then it's there";
cl.k22 = "ok i'll\nlook again";
cl.k20 = "never mind";
cl.k30 = "mmh, it's from\ndarkcore corp";
cl.k31 = "wow an a.r. goggles\nprototype!\tdarkcore labs are\npretty advanced\ti should put them on";
cl.k32 = "let's try\nthem on";
cl.e01 = "welcome to\naugmented reality\ti'm your helper";
cl.k33 = "wow!!!\tthis is so\ntotally cool!!\twhat can you do?";
cl.b17 = "is he talking\nto himself?";
cl.e02 = "i can perform\nvarious tasks\tfor example search\nfor items and interact\nwith virtual environments";
cl.k34 = "can't believe\nthey gave me this\nthing for free!";
cl.e03 = "input a query";
cl.dka = [];
cl.dka[0] = "find bob";
cl.dka[1] = "find item";
cl.dka[2] = "never mind";
cl.k35 = "find bob";
cl.e04 = "processing query";
cl.e05 = "bob located";
cl.k36 = "totally\nawesome";
cl.k37 = "find ultra-strong wires";
cl.e06 = "ultra-strong wires located";
cl.k38 = "awesome!";
cl.k39 = "oh..mmh..\tnothing right\nnow e-dude";
cl.k40 = "my shopping list\tnickel-hydrogen\nbatteries\textra bright\nneon lights\tand some\nstrong wires";
cl.k41 = "mmh, i still need\nto get something";
cl.k42 = "i don't really\nneed that";
cl.k43 = "ok, now where\nare the wires?\tthey've got to be\naround here somewhere..";
cl.k44 = "they were right\nbehind this toy";
cl.k45 = "great, i've got\neverything on the list";
cl.k46 = "oh noes..\twhere's\nmy wallet?";
cl.k47 = "you're selling.. credits?";
cl.b19 = "sure. since special\nagents travel around\nthey need money from\ndifferent countries!";
cl.k48 = "but this is our\ncountry currency..";
cl.b20 = "that's 'cause since\nyou came here, you\nnever left the country!";
cl.k49 = "500$..\thow much?";
cl.b21 = "that comes for 1000$";
cl.b22 = "hey i've got a family\tor at least\ni'll have one,\none day";
cl.s10 = "penguins!\tare you ready?";
cl.k50 = "i wonder where\nthe guys are";
cl.s11 = "klaaaa!!!";
cl.k51 = "what the..";
cl.s12 = "i'm the evil\nspirit of xmas!!\tyou've been\nveeeery baaad!\tso i shall\npunish you!\twith a cloud that\nwill follow you\nwherever you goooo!";
cl.k52 = "very funny steve..";
cl.s13 = "ah! guys we've been\ndiscovered already!";
cl.k53 = "oh no! the\nar goggles!";
cl.k54 = "aaaaaah";
cl.s14 = "c'mon mate, it's\njust water..";
cl.k55 = "the evil spirit\nof xmas is going\nto kill me!!";
cl.s15 = "penguins let's land,\ni sense trouble";
cl.b25 = "who's gonna pay\nfor this mess now?";
cl.s16 = "chill mate, this\nis standard stuff\nfor me..\tyou should have seen\nlast years' xmas prank!";
cl.b26 = "i thought xmas\nwas about gifts,\nnot pranks..";
cl.s17 = "hey you got\nyour traditions,\ni got mine\tand the fact that my\ntraditions usually cause\nmass destruction, isn't\nrelevant to this discussion\tso where did kla go?";
cl.b27 = "upstairs, in\nmy house..\tand locked himself\ninside my secret\nstorage room";
cl.s18 = "i got to fix this..\tif the guys find\nout i'm a dead bear!";
cl.b28 = "did i mention\nthat he shoots\nelectric beams?";
cl.s19 = "no, but please don't!";
cl.s21 = "chill mate, i\nwas only looking";
cl.s22 = "a useless toolbox with\nscrewdrivers and all\nthat kind of stuff";
cl.s23 = "dang, i need\na screwdriver!";
cl.dsb = [];
cl.dsb[0] = "storage room";
cl.dsb[1] = "i want to order";
cl.dsb[2] = "never mind";
cl.dsb[3] = "bullets";
cl.dsb[4] = "fish and chips";
cl.dsb[5] = "nuclear device";
cl.s25 = "how do i get into the\nsecret storage room?";
cl.b30 = "the door is locked\nand i think that your\nfriend hacked the system..\tyou'll have\nto find a way\nto open it";
cl.s26 = "mmh..";
cl.s27 = "i want to\norder something";
cl.b31 = "tell me";
cl.s28 = "mh..nothing";
cl.s29 = "water proof bullets";
cl.b32 = "ok..that should\nbe easy. i'll be\nright back";
cl.b33 = "more?\tok i'll be\nright back";
cl.b34 = "order placed";
cl.s30 = "a mechanical fish\nwith a gun turret\nthat shoots chips";
cl.b35 = "let me tell you..you're\nall fluffy, but you have\na wicked mind!";
cl.b36 = "there's no\nsuch thing";
cl.s31 = "hey it's\nfor a gift";
cl.b37 = "can't place\nthe order\tthat thing\ndoesn't exist";
cl.s32 = "a nuclear nose hair\nclipper, disguised\nas a bicycle..\tyou know..\tfor field operations";
cl.b38 = "let me see if\ni can find it";
cl.b39 = "another one?\tok then";
cl.b40 = "nuclear device ordered";
cl.s35 = "ok, let's see\nwhat's inside\nkla's wallet";
cl.b41 = "give me the stuff\nyou want to pay for";
cl.b42 = "and where's\nthe money?";
cl.b43 = "it seems you\ncan't afford it";
cl.b44 = "i'm watching you..\tyou can't use\nsomething if\nyou haven't\npaid for it!";
cl.s36 = "oh c'mon, it's to get kla out of there!";
cl.b45 = "no exceptions,\npolar bear";
cl.b46 = "hey, put back\nthe stuff you\nhaven't paid for";
cl.s37 = "mmkey..";
cl.b47 = "that's 5$";
cl.b48 = "that's 2$";
cl.b49 = "that's 300$";
cl.b50 = "thanks, have\na nice day";
cl.b51 = "you already\npaid for that\toh man, how\nhonest am i!?";
cl.b52 = "sorry my credit\ncard thing is broken";
cl.s38 = "can't afford\nit right now";
cl.b52 = "sorry my credit\ncard thing is broken";
cl.b53 = "thanks, i'll keep the\nchange to pay for the damage";
cl.s41 = "hey ladies!\tyeah, i'll\nsign autographs\nlater, ok?\tnow let's withdraw\nsome money with\nkla's credit card";
cl.s42 = "what?\ti need a code to\nwithdraw money?\ti can't believe\nwhat days we're\nliving in!!\ti can't even borrow\nsomething from a friend\nwithout having to go\nthrough all of this!!\tno, don't cry\ngirls..i'm not angry\treal heros have\na lot of patience!\tlet's try to\nguess the code\t000001?\tnope\t000002?\tnay\t00003 ...";
cl.ft01 = "In the meanwhile, somewhere between\nKla's mind and a virtual world...";
cl.ft02 = "Back in the real world...";
cl.ft03 = "Later that day...";
cl.ft04 = "And while Steve looks\nfor the light switch..";
cl.ft05 = "Later that day... in a\nplace you know well by now";
cl.k56 = "look at him..\nhe's watching me..\tyou won't have\nme stupid xmatree!\ti'll stop the evil\nspirit of xmas, no\nmatter what!";
cl.k57 = "e-dude, we got to\nfind a way to get\nto the other side";
cl.k58 = "mmh, that tree\ngives me an idea..";
cl.dka2 = [];
cl.dka2[0] = "blast the tree";
cl.dka2[1] = "find red cube";
cl.dka2[2] = "never mind";
cl.k59 = "cut that virtual tree";
cl.e07 = "processing command";
cl.e08 = "command executed successfully";
cl.k60 = "great work";
cl.k61 = "find red cube";
cl.e09 = "can't locate the item\ta blocker thread is restricting\naccess to its coordinates";
cl.k62 = "i'll have to find\nit myself then..\tit must be in\na hidden place";
cl.x01 = "you won't stop\nthe cute spirit\nof halloween";
cl.x02 = "oh, when i said\nhalloween i\nmeant xmas";
cl.x03 = "oh.. and evil\ninstead of cute";
cl.x04 = "you suck";
cl.k63 = "what is all this?!";
cl.x05 = "kla is here!";
cl.k64 = "the evil spirit\nof xmas!";
cl.x06 = "ho ho, i love\nmy nickname\tbut actually\ni'm a program\tit's your mind that\ngave me this shape,\nisn't it interesting?";
cl.k65 = "and it's my mind\nthat will destroy you!";
cl.x07 = "ho ho, and you could\nprobably succeed..\tsince right now i'm\nconfined in this\nnarrow data block";
cl.x08 = "but unfortunately for you, my\nminions programmed this gateway\nthrough which we'll be able\nto escape to the great web!\tand then..\tno one will stop us!";
cl.k66 = "then i'll\ndeactivate\nthe gateway!";
cl.x09 = "ho ho!\there's a nice\nxmas gift for you!";
cl.k67 = "i can't move!";
cl.x10 = "exactly\tnow please be patient,\nit'll take some minutes\nto activate the gateway\tin the meanwhile\nthe game will go\non with steve";
cl.x11 = "what does that mean?";
cl.x12 = "oh..\ti don't know..\nmaybe i caught a virus!";
cl.k68 = "ouch";
cl.s50 = "i can't believe it\tthe credit card\nwas blocked after\njust 3 tries..";
cl.s51 = "not even the girls\ncould help me out!\twhat am i going\nto do now?";
cl.s52 = "i know!\tthere's only one thing to do";
cl.s53 = "to the park!";
cl.s54 = "hey granps!";
cl.j01 = "my name is jebediah tom\ngiffuri, sonny boy";
cl.s55 = "way too long,\ni'll stick\nwith granps";
cl.dsj = [];
cl.dsj[0] = "plan a";
cl.dsj[1] = "plan b";
cl.dsj[2] = "plan c";
cl.dsj[3] = "never mind";
cl.s56 = "can you lend me 300$";
cl.j02 = "sure, you look\nlike a reliable\nwarbear\tyou guys have a\ngood reputation\naround here!";
cl.s57 = "oh great";
cl.s58 = "obviously there's\nno guarantee that\ni'll ever give it back";
cl.j03 = "on second thought,\nit'd be better if\nyou ask your commander";
cl.s59 = "oh is this what i\nget for being honest?";
cl.s60 = "remember that time\nlucas helped you\ncross the road?";
cl.j04 = "mmh..";
cl.s61 = "you don't?\twell that's because\nyou have elderly\nmadness";
cl.j05 = "no i don't,\ni'm very lucid";
cl.s62 = "yes that's one\nof the symptoms\tso anyway..lucas\nwants to get paid\nfor that service";
cl.j06 = "i like your sense\nof humour, sonny boy";
cl.s63 = "but i need\nthat money!";
cl.s64 = "oh man, what\na hot day!";
cl.j07 = "isn't it winter?";
cl.s65 = "no no. it's\nsummer already!\tand it's soo hot, even\nmy nails are sweating!";
cl.j08 = "suddenly i'm thirsty";
cl.j10 = "aaah!";
cl.s66 = "perfect!\tnow how am i going\nto explain to the court\nthat it was an accident?";
cl.s70 = "i think it's time\nfor.. plan c!";
cl.j09 = "warbear! please help me!\tthere has been\nan accident!";
cl.s67 = "he thinks it's\n was an accident..\tmaybe i could make it without\nany consequences this time!";
cl.s68 = "err.. granps,\nweird accident, uh?\ti'm just wondering,\nis there any reward\nfor helping you?";
cl.s69 = "well, everyone got what\nthey wanted, now let's go\nfor the happy ending!";
cl.s71 = "ow..";
cl.s72 = "..and that sound\nmeans 'no loser,\nyou're not getting in'";
cl.s73 = "go on technology,\ndo your thing!";
cl.s74 = "yeah!";
cl.s75 = "can't see a thing in here,\nwhere's the light switch?";
cl.k69 = "thanks e-dude";
cl.k70 = "we have to find a\nway to shutdown\nthis gateway";
cl.k71 = "something has been removed\nfrom these sockets..";
cl.k72 = "one thread\nis missing!\tit's probably in\na hidden place";
cl.k73 = "there's\nsomething\nover here";
cl.k74 = "i found a\nred thread";
cl.k75 = "let's see if i\ncan cause a deadlock";
cl.k76 = "nope, that\ndidn't work";
cl.k77 = "yay, i deactivated\nthe gateway!";
cl.x13 = "how dare you!!\tyou destroyed\nall my work!\tyou shall perish\nfor what you've...";
cl.x14 = "aaaaah";
cl.k78 = "e-dude,\nwhat's that?";
cl.e10 = "it's an interference\ncaused by a bright\nlight in the real world";
cl.x15 = "aaaaah, my f.o.v.\nis compromised!";
cl.k79 = "e-dude, it's the right moment,\nblast those programs while\nthe interference is blocking them";
cl.s78 = "what\ton\tearth!\ti regret finding\nthe light switch\tkla must have fried\nhis brain or something!";
cl.s79 = "oh great\ti forgot the \"he shoots\nelectric beams\" part";
cl.k80 = "aah! we need light\nto stop them!";
cl.s80 = "i can't get nearer,\nroasted polars bear\ndon't smell good";
cl.s81 = "let's see what these\nextra bright neon\nlights can do";
cl.s82 = "take this, kla!";
cl.x16 = "hohoho..\tyou've been\nveeeery baaad!\tit's time to\nbe formatted\tand then i'll reactivate the\ngateway and infect the web!\thohoho....";
cl.x17 = "aaaah\tnot again!";
cl.k81 = "now! delete them!";
cl.k82 = "kudos e-dude!\nthe evil spirit of xmas\nhas been finally defeated";
cl.k83 = "we saved xmas!\tand the web!\toh and my life too..";
cl.k84 = "now how do i\nget out of here?";
cl.e11 = "Main program deleted.";
cl.k85 = "well, that solves\nthe problem i guess";
cl.s83 = "hahahah, guys, you'll\nnever believe what\nhappened here..";
cl.r01 = "maji gire sisou!";
cl.l02 = "steve, cut to the\npoint, where is kla?";
cl.k86 = "dudes! i'm totally\nback in the real world!";
cl.l03 = "what do you mean\nthe real world?";
cl.s84 = "oh he probably means back\noutside, you know, he's\nbeen shopping in there for ages!";
cl.s85 = "right kla?\tyep, right";
cl.l04 = "ok we could either kill steve\nfor another one of his terrible\nmesses, or just ignore the whole\nsituation and go for a sushi instead";
cl.s86 = "i vote sushi";
cl.r02 = "you're not\nentitled\nto vote";
cl.k87 = "let's go dudes, i have a nice\nxmas story to tell you";
cl.s87 = "just omit the\n'steve parts'";
cl.x18 = "hohoho..";
cl.j11 = "aah.. always check\nthe bin when you\ndelete things..";
cl.j12 = "wait, how did\ni get here?";
cl.e12 = "You found some A.R.\nGoggles and you put\nthem on.";
cl.j23 = "how come i can't\nsee the goggles?";
cl.e27 = "You looked better\nwithout them.";
cl.j13 = "and why am i inside\nkla's nightmare?";
cl.e13 = "While escaping, the program\ninfected some A.R. Goggles\nthat were connected to\nthe same node.";
cl.j14 = "isn't there\nan antivirus?";
cl.e14 = "Yes. I am the Antivirus.";
cl.j15 = "and why don't you do\nsomething about this";
cl.e15 = "I was working on it.";
cl.j16 = "oh great. hey, don't you\nwant to know why i know\nso much about computers?";
cl.e16 = "I can't ask questions.\nI can only answer them.\nThat's the way I was\nprogrammed.";
cl.e25 = "Haha, you're stupid.";
cl.e26 = "If I click this, I'm stupid";
cl.j17 = "ok that's it! can you take\nme back to the real world now?";
cl.e18 = "I'm running a data scan\nwhich is taking 99% of the\nsystem resources, I can't\nperform other operations.";
cl.j18 = "how much will it take?";
cl.e19 = "14 hours, 3 minutes\nand 81 seconds.";
cl.j19 = "but i'm tired of being\nhere, i have to go back\nto the park. i'm waiting\nfor something there..";
cl.j20 = "if you had to ask\nme what time is it,\nwhat would you say?";
cl.e20 = "What time is it?";
cl.j21 = "hey that was a question,\ni thought you couldn't\nask questions";
cl.e21 = "Aaaaah!!!\nSystem overload!!!!";
cl.e22 = "Get out of here";
cl.j22 = "i'm so clever i could\nsolve math problems\nwhile counting rain drops";
cl.e23 = "Ok";
cl.e24 = "Quit this game and\ngo back to Warbears.com";
cl.cr01 = "Warbears Adventures#";
cl.cr01 = cl.cr01 + " An A.R. X-Mas #";
cl.cr01 = cl.cr01 + " - The End - @";
cl.cr01 = cl.cr01 + "Thanks for playing@";
cl.cr01 = cl.cr01 + "Created by ...#";
cl.cr01 = cl.cr01 + "Gionatan Iasio@";
cl.cr01 = cl.cr01 + "Music by ... #";
cl.cr01 = cl.cr01 + "Gionatan Iasio@";
cl.cr01 = cl.cr01 + "Japanese translation: #";
cl.cr01 = cl.cr01 + "Naoko-san the Kindhearted@";
cl.cr01 = cl.cr01 + "Beta testing by ...@";
cl.cr01 = cl.cr01 + "Nifriz the#";
cl.cr01 = cl.cr01 + "Codrogonte@";
cl.cr01 = cl.cr01 + "Luca the fat#";
cl.cr01 = cl.cr01 + " RoadRunner @";
cl.cr01 = cl.cr01 + "Enrico Nuclear Launch#";
cl.cr01 = cl.cr01 + " Detective Gaffuri @";
cl.cr01 = cl.cr01 + "English consultant: #";
cl.cr01 = cl.cr01 + "Miz the Criminologist@";
cl.cr01 = cl.cr01 + "Special thanks to ...@";
cl.cr01 = cl.cr01 + "Warbears.com mods: Benj, #";
cl.cr01 = cl.cr01 + "IMNN,Mac,Mandy,Mochi,Rosie@";
cl.cr01 = cl.cr01 + "All Warbears fans#";
cl.cr01 = cl.cr01 + " in the world! @";
cl.cr01 = cl.cr01 + "Sjarri for #";
cl.cr01 = cl.cr01 + "his support@";
cl.cr01 = cl.cr01 + "Stay tuned for the next#";
cl.cr01 = cl.cr01 + " Warbears Adventure! @";
_global.cl = alan.it;
cl.f01 = 1;
cl.f02 = 2;
cl.in00 = "ADVENTURE : An A.R. XMas";
cl.in01 = "tempo";
cl.in02 = "rank point";
cl.in03 = "linee";
cl.in04 = "qualit\u00E0";
cl.in05 = "volume musica";
cl.in06 = "volume suono";
cl.in07 = "auto-regola";
cl.in08 = "mostra fps";
cl.in09 = "alta";
cl.in10 = "media";
cl.in11 = "bassa";
cl.in12 = "musica in gioco";
cl.in13 = "chiudi";
cl.in14 = "livello";
cl.in16 = "Nick:";
cl.btm1 = "inizia!";
cl.btm2 = "guida";
cl.btm3 = "opzioni";
cl.btm4 = "altri giochi..";
cl.bto1 = "torna al menu";
cl.bto2 = "sei sicuro?";
cl.bto3 = "chiudi";
cl.hlp00 = "";
cl.hlp01 = "";
cl.ap01 = "Retrieving Data..";
cl.ap02 = "Award Points:";
cl.ap03 = "Credits:";
var c = ((cl.objn = []));
c.screwdriver = "Cacciavite";
c.toolbox = "Cassetta degli Attrezzi";
c.bob = "Bob";
c.kla = "Kla";
c.eye = "Occhio";
c.gift = "Regalo";
c.list = "Lista della Spesa";
c.furScanButton = "Bottone Pelliccia-Scanner";
c.arGoggles = "Occhiali A.R.";
c.taser = "Taser";
c.hackingDevice = "Strumento Hacking";
c.btcMap = "Mappa Btc";
c.neonLights = "Luci al Neon";
c.batteries = "Batterie";
c.wires = "Cavi";
c.credits = "Crediti";
c.wallet = "Portafogli di Kla";
c.credits7 = "7$";
c.credits5 = "5$";
c.credits2 = "2$";
c.credits400 = "800$";
c.card = "Carta di Credito";
c.cubeBlue = "Thread Blu";
c.cubeRed = "Thread Rosso";
c.cubeGreen = "Thread Verde";
c.sockets = "Socket del Gateway";
c.tree = "Albero Virtuale";
c.xtree = "Gateway";
c.jebediah = "Nonno Jebediah";
c.circuitLocker = "Armadietto";
c.circuitPanel = "Pannello Circuito";
c.circuit = "Circuito";
c.doorPanel = "Pannello Porta";
c.bobShop = "Negozio di Bob";
c.bank = "Banca";
c.park = "Parco Piuma";
c.neonLightsWired = "Luci al Neon collegate";
c.batteriesWired = "Batterie collegate";
var c = ((cl.objd_kla = []));
c.btcMap = "una mappa di btc";
c.neonLights = "ah, i neon extra luminosi\nche ho ordinato";
c.hackingDevice = "mmh.. un semplice\nstrumento di hacking\tchiss\u00E0 chi l'ha\nordinato...\tpraticamente \u00E8\nsolo un giocattolo";
c.batteries = "batterie al\nnickel-idrogeno";
c.wires = "cavi ultra\nresistenti";
c.taser = "un taser\nmonouso";
c.credits = "-";
c.xtree = "il malvagio spirito\ndel nasale ha detto\nche questo \u00E8 un\ngateway verso il web\tse non lo disattivo presto,\nquei programmi malvagi potran-\nno lasciare l'area di memoria\ndegli occhiali a.r.";
var c = ((cl.objd_steve = []));
c.hackingDevice = "questo \u00E8 l'avanzato\nstrumento di hacking\nche ho ordinato!\tdoveva essere un regalo\ndi nata per kla\tsperiamo che\nnon l'ha visto\tprezzo: 300$\twhoa non \u00E8\nun'occasione";
c.btcMap = "questa potrebbe servirmi\nvisto che mi perdo sempre\tprezzo: 5$";
c.taser = "un coso scintilloso\tprezzo: 2$\tconveniente!";
c.credits = "mmh, se avessi dei soldi,\npotrei comprare i soldi\nper comprare la roba\nche mi serve!\tquesto risolverebbe\ni miei problemi!\tgi\u00E0.. peccato che\nnon ho soldi";
c.circuitPanel = "mi serve qualcosa per\nsvitare il pannello!";
c.circuit = "non capisco\nmolto di circuiti\tma direi che questo\n\u00E8 il circuito della\nfontana\t..oh, c'\u00E8 scritto\nsull'etichetta";
c.doorPanel = "questo dovrebbe\nessere il pannello\nche apre la porta";
cl["..."] = "...";
cl.mmh = "mmh..";
cl.is01 = "non posso\nusarli insieme";
cl.ik01 = "non posso\nusarli insieme";
cl.is02 = "mmh..non ci sta\nnelle mie tasche";
cl.ik02 = "mmh..non ci sta\nnelle mie tasche";
cl.is03 = "non posso indossarlo";
cl.ik03 = "non posso indossarlo";
cl.is04 = "mmh, devo collegarli\nin qualche modo";
cl.is05 = "forte";
cl.is06 = "mmh..\tnon se lo\nmerita";
cl.k01 = "devo comprare dei\ncomponenti per il\nwarbot #05\ta dopo cosi!";
cl.l01 = "saremo in giro";
cl.s01 = "asp\u00E8 lucas!\tho dimenticato che\nanch'io devo prendere\ndelle robe";
cl.s02 = "eheheh";
cl.s03 = "ci sono\ncascati";
cl.s04 = "pinguini,\nsiete pronti?";
cl.s05 = "avete portato\nle decorazioni?";
cl.b01 = "benvenuto al\nnegozio di bob\toggi abbiamo\nprezzi speciali\tnel senso,\nspeciali per me";
cl.k02 = "ciao coso\tdevo ritirare\ndella roba che\nho ordinato";
cl.b02 = "certo, ho appena installato\nun nuovo pelliccia-scanner";
cl.k03 = "grazie coso";
cl.k10 = "a quanto pare\nbob ha montato\nil nuovo scanner";
cl.b10 = "ehy non toccare";
cl.k11 = "certo coso";
cl.k12 = "mmh.. non succede niente";
cl.v01 = "benvenuto sul\npelliccia-scanner\n3k, della darkcore\ncorp\tprego, salire\nsulla piattaforma";
cl.k13 = "whoa";
cl.v02 = "procedo con\nl'estrazione di\nun campione\ndi pelliccia";
cl.k14 = "ehy ma cosa..";
cl.v03 = "estrazione\npelliccia\nultimata\tprocedo con\nil riconoscimento\ndel dna";
cl.v04 = "soggetto warbear\nrilevato\tprocedura di\nomicidio cruento\nannullata";
cl.k15 = "coso, mi sono\ntotalmente\nstrizzato!!";
cl.b11 = "eh.. che ci vuoi fare..\tle tecnologie moderne!";
cl.v05 = "modalit\u00E0 negozio\nwarbears abilitata";
cl.dkb = [];
cl.dkb[0] = "che faccio?";
cl.dkb[1] = "il pelliccia-scanner";
cl.dkb[2] = "ma i cavi?";
cl.dkb[3] = "fa niente";
cl.k16 = "e.. che faccio ora?";
cl.b12 = "per abilitare la\nmodalit\u00E0 negozio\nwarbears?\tma che hai mangiato\nstamattina, latte e\namnesia?\tdevi usare il\npelliccia-scanner\triconoscer\u00E0 il tuo\ndna e abiliter\u00E0 la\nmodalit\u00E0 nwb";
cl.k17 = "aah, gi\u00E0";
cl.k18 = "ho premuto il bottone\nma non succede niente";
cl.b13 = "ah gi\u00E0..\tnon l'ho mai usato,\nquindi devo prima\nsbloccarlo";
cl.b14 = "fammi inserire\nil codice\nsegreto";
cl.b15 = "cinque";
cl.b16 = "il miglior codice\nsegreto di sempre\tora dovrebbe andare";
cl.k19 = "grazie coso";
cl.k21 = "ehy bob, non\ntrovo una cosa\nche ho ordinato";
cl.b18 = "se l'hai ordinata,\nallora \u00E8 l\u00EC";
cl.k22 = "ok, guardo\ndi nuovo";
cl.k20 = "fa niente";
cl.k30 = "mmh, \u00E8 dalla\ndarkcore corp";
cl.k31 = "wow, un prototipo\ndi occhiali a.r.!\ti laboratori della\ndarkcore sono\ntroppo avanti!\tdevo mettermeli";
cl.k32 = "proviamoli";
cl.e01 = "benvenuto nella\nrealt\u00E0 aumentata\tsono il tuo\naiutante";
cl.k33 = "wow!!\tspettacolare\na tuono!\tche sai fare?";
cl.b17 = "ma sta \nparlando\nda solo?";
cl.e02 = "posso computare\nvarie operazioni\tad esempio cercare\noggetti e interagire\ncon ambienti virtuali";
cl.k34 = "non posso credere\nche mi abbiano dato\nquesto coso gratis";
cl.e03 = "attendo query";
cl.dka = [];
cl.dka[0] = "cerca bob";
cl.dka[1] = "cerca cavi";
cl.dka[2] = "fa niente";
cl.k35 = "trova bob";
cl.e04 = "procedo";
cl.e05 = "bob localizzato";
cl.k36 = "spettacoloso!";
cl.k37 = "trova i cavi\nultra-resistenti";
cl.e06 = "cavi\nultra-resistenti\nlocalizzati";
cl.k38 = "forte!";
cl.k39 = "oh..mmh..\tora niente\ne-coso";
cl.k40 = "la mia lista\ndella spesa\tbatterie al\nnickel-idrogeno\tluci al neon\nextra luminose\te dei cavi\nultra resistenti";
cl.k41 = "mmh, mi serve\nancora qualcosa";
cl.k42 = "non mi serve";
cl.k43 = "ok, ora dove\nsono i cavi?\tdevono essere\nqui da qualche\nparte..";
cl.k44 = "erano dietro\nquesto\ngiocattolo";
cl.k45 = "grande, ho tutte\nle cose sulla lista";
cl.k46 = "oh no..\tdov'\u00E8 il mio\nportafogli?";
cl.k47 = "vendi..crediti?";
cl.b19 = "certo.. siccome\ngli agenti speciali\ngirano il mondo, hanno\nbisogno di valute estere!";
cl.k48 = "ma questa \u00E8 la valuta\ndel nostro stato..";
cl.b20 = "perch\u00E8 da quando\nsiete arrivati, non\navete mai lasciato\nlo stato!";
cl.k49 = "500$..\tquanto viene?";
cl.b21 = "quello viene 1000$";
cl.b22 = "ehy ho una famiglia\to almeno,\nce l'avr\u00F2\nun giorno";
cl.s10 = "pinguini!\tsiete pronti?";
cl.k50 = "chiss\u00E0\ndove sono\ni ragazzi";
cl.s11 = "klaaaa!!!";
cl.k51 = "ma che?";
cl.s12 = "sono lo spirito\nmalvagio del nasale!!\tsei stato\nmooolto\ncattivo!\tquindi ti\npunir\u00F2!\tcon una nuvola\nche ti seguir\u00E0\novunque andrai!";
cl.k52 = "molto\ndivertente\nsteve..";
cl.s13 = "ah! ragazzi ci ha\ngi\u00E0 scoperti!";
cl.k53 = "oh no! gli\nocchiali a.r.!";
cl.k54 = "aaaaaah";
cl.s14 = "eddai uomo, \u00E8\nsolo acqua..";
cl.k55 = "lo spirito\nmalvagio del nasale\nmi uccider\u00E0!";
cl.s15 = "pinguini atterriamo,\nsento odore di\nproblemi";
cl.b25 = "chi pagher\u00E0 per\ntutto questo casino?";
cl.s16 = "rilassati amico, questa\n\u00E8 roba normale per me\tavresti dovuto vedere\nlo scherzo dello scorso\nnasale..";
cl.b26 = "pensavo che il nasale\nfosse una festa per\ni regali, non per gli\nscherzi...";
cl.s17 = "ehy, tu hai le\ntue tradizioni,\nio le mie\te il fatto che le mie\ntradizioni di solito\ncausano distruzione\ndi massa, non \u00E8 rilevante\nper questa discussione\tallora.. dov'\u00E8 kla?";
cl.b27 = "di sopra,\na casa mia..\tchiuso a chiave\nnel mio magazzino\nsegreto";
cl.s18 = "devo sistemare\nquesto casino..\tse i ragazzi lo\nscoprono sono\nun orso morto!";
cl.b28 = "ho menzionato\nche spara dei\nraggi elettrici?";
cl.s19 = "no e non farlo!";
cl.s21 = "rilassati amico,\nstavo solo\nguardando";
cl.s22 = "un'inutile cassetta\ndegli attrezzi con\ncacciaviti e robe cos\u00EC";
cl.s23 = "accidenti, mi\nserve un\ncacciavite!";
cl.dsb = [];
cl.dsb[0] = "magazzino";
cl.dsb[1] = "voglio ordinare";
cl.dsb[2] = "fa niente";
cl.dsb[3] = "proiettili";
cl.dsb[4] = "pesce e patatine";
cl.dsb[5] = "arma nucleare";
cl.s25 = "come entro nel\nmagazzino segreto?";
cl.b30 = "la porta \u00E8 chiusa\ne penso che il tuo\namico abbia hackerato\nil sistema..\tdevi trovare\nun modo per\naprirla";
cl.s26 = "mmh..";
cl.s27 = "voglio ordinare";
cl.b31 = "dimmi";
cl.s28 = "mh..niente";
cl.s29 = "proiettili\nimpermeabili";
cl.b32 = "ok..dovrei\ntrovarli subito.\nun secondo.";
cl.b33 = "ancora?\tok torno\nsubito";
cl.b34 = "ordine fatto";
cl.s30 = "un pesce meccanico\ncon una torretta\nche spara patatine";
cl.b35 = "lasciatelo dire.. sei tutto\nbatuffoloso, ma hai una\nmente malata!";
cl.b36 = "non esiste\nquel coso";
cl.s31 = "ehy \u00E8 per un\nregalo";
cl.b37 = "non posso\nordinarlo\tquel coso\nnon esiste";
cl.s32 = "un rasoio nucleare\nper il naso, mascherato\nda bicicletta..\tsai..\tper agire sul campo";
cl.b38 = "fammi vedere\nse lo trovo";
cl.b39 = "un altro?\tok";
cl.b40 = "rasoio nucleare ordinato";
cl.s35 = "ok, vediamo cosa c'\u00E8\nnel portafogli di kla";
cl.b41 = "dammi le cose\nche vuoi pagare";
cl.b42 = "e i soldi?";
cl.b43 = "non puoi\npermettertelo";
cl.b44 = "ti sto guardando..\tnon puoi usare qualcosa\nse prima non l'hai pagato";
cl.s36 = "eddai, \u00E8 per tirare\nfuori kla da l\u00EC!";
cl.b45 = "nessuna eccezione,\norso polare";
cl.b46 = "ehy, metti via\nle cose che\nnon hai pagato";
cl.s37 = "mmokay..";
cl.b47 = "viene 5$";
cl.b48 = "viene 2$";
cl.b49 = "viene 300$";
cl.b50 = "grazie, buona\ngiornata";
cl.b51 = "hai gi\u00E0 pagato\nper quello\tma quanto\nsono onesto?!";
cl.b52 = "scusa il mio\ncoso per la carta\ndi credito \u00E8 rotto";
cl.s38 = "ora non posso\npermettermelo";
cl.b52 = "scusa il mio\ncoso per la carta\ndi credito \u00E8 rotto";
cl.b53 = "grazie, tengo\nil resto per\npagare i danni";
cl.s41 = "ehy ragazze!\tsi, vi firmer\u00F2\ngli autografi\ndopo, va bene?\tora ritiriamo\nun p\u00F2 di soldi\ncon la carta di\ncredito di kla";
cl.s42 = "che?\tmi serve un codice\nper ritirare soldi?\tnon posso credere\nin che tempi viviamo!\tnon posso nemmeno prendere\nin prestito qualcosa da un amico\nsenza dover subire tutto questo!\tno ragazze, non piangete\nnon sono arrabbiato..\ti veri eroi hanno\ntanta pazienza!\tproviamo a indovinare\nil codice segreto\t\n000001?\tno\t000002?\tnz\u00F9\t00003 ...";
cl.ft01 = "Nel frattempo, da qualche parte tra\nla mente di Kla e un mondo virtuale...";
cl.ft02 = "Intanto nel mondo reale...";
cl.ft03 = "Pi\u00F9 tardi, quel giorno..";
cl.ft04 = "E mentre Steve cerca\nl'interruttore della luce..";
cl.ft05 = "Pi\u00F9 tardi quel giorno.. in un\nposto che ora conoscete bene";
cl.k56 = "guardalo.. mi\nsta osservando..\tnon mi avrai,\nstupido\nxmatree!\tfermer\u00F2 il malvagio\nspirito di xmas, a\nqualunque costo!";
cl.k57 = "e-coso, dobbiamo\ntrovare un modo\nper andare di l\u00E0";
cl.k58 = "mmh, quell'albero\nmi da un'idea..";
cl.dka2 = [];
cl.dka2[0] = "spara quell'albero";
cl.dka2[1] = "trova cubo rosso";
cl.dka2[2] = "fa niente";
cl.k59 = "taglia quell'albero\nvirtuale";
cl.e07 = "eseguo il comando";
cl.e08 = "comando eseguito\ncon successo";
cl.k60 = "bel lavoro";
cl.k61 = "trova il cubo rosso";
cl.e09 = "non riesco a\nlocalizzare\nl'oggetto\tun processo bloccante\nrestringe l'accesso alle\nsue coordinate";
cl.k62 = "dovr\u00F2 trovarlo\nda solo allora..\tdev'essere nascosto\nda qualche parte";
cl.x01 = "non fermerai\nlo spirito carino\ndi halloween";
cl.x02 = "ah, quando ho detto\nhalloween volevo\ndire nasale";
cl.x03 = "ah.. e cattivo\ninvece di carino";
cl.x04 = "fai pena";
cl.k63 = "cos'\u00E8 tutto\nquesto?!";
cl.x05 = "kla \u00E8 qui!";
cl.k64 = "lo spirito\nmalvagio\ndel nasale!";
cl.x06 = "oh oh, adoro\nil mio soprannome\tma veramente\nsono un programma\t\u00E8 la tua mente che mi\nha dato questa forma,\nnon \u00E8 interessante?";
cl.k65 = "ed \u00E8 la mia\nmente che ti\ndistrugger\u00E0!";
cl.x07 = "oh oh, e probabilmente\npotresti anche riuscire\tdato che ora sono\nconfinato in questo\npiccolo blocco di memoria";
cl.x08 = "ma sfortunatamente per te, i miei\ntirapiedi hanno programmato questo\ngateway, attraverso il quale potremo\nscappare verso la grande rete!\te poi..\tnessuno ci\nfermer\u00E0!";
cl.k66 = "allora\ndisattiver\u00F2\nil gateway!";
cl.x09 = "oh oh!\tecco un regalino\ndi nasale per te!";
cl.k67 = "non riesco\na muovermi!";
cl.x10 = "esattamente\tora pazienta un p\u00F2,\nci vorr\u00E0 qualche\nminuto per attivare\nil gateway\tnel frattempo il\ngioco continuer\u00E0\ncon steve";
cl.x11 = "che significa?";
cl.x12 = "oh..\tnon lo so..\nforse ho preso\nun virus";
cl.k68 = "aiah";
cl.s50 = "non posso crederci\tla carta di credito\nsi \u00E8 bloccata dopo\nsolo 3 tentativi..";
cl.s51 = "nemmeno le ragazze mi\nhanno potuto aiutare!\te ora che faccio?";
cl.s52 = "lo so!\tc'\u00E8 solo una cosa da fare";
cl.s53 = "al parco!";
cl.s54 = "ehy nonno!";
cl.j01 = "il mio nome \u00E8 jebediah\ntom giffuri, ragazzino";
cl.s55 = "troppo lungo,\nti chiamo nonno";
cl.dsj = [];
cl.dsj[0] = "piano a";
cl.dsj[1] = "piano b";
cl.dsj[2] = "piano c";
cl.dsj[3] = "fa niente";
cl.s56 = "puoi prestarmi 300$";
cl.j02 = "certo, mi sembri un\nwarbear affidabile\tvoi ragazzi avete una buona\nreputazione qui in giro!";
cl.s57 = "grande";
cl.s58 = "ovviamente non c'\u00E8\nnessuna garanzia che\nli riavrai mai indietro";
cl.j03 = "mi sa che ci ho ripensato, \n\u00E8 meglio se li chiedi al\ntuo comandante";
cl.s59 = "ah.. questo \u00E8 il\nringraziamento\nper essere\nstato onesto?";
cl.s60 = "ti ricordi quella volta\nche lucas ti ha aiutato ad\nattraversare la strada?";
cl.j04 = "mmh..";
cl.s61 = "no?\tbeh \u00E8 perch\u00E8 hai\nla demenza senile";
cl.j05 = "non ce l'ho,\nsono ancora\nmolto lucido";
cl.s62 = "si quello \u00E8\nuno dei sintomi\tquindi vab\u00E8..lucas vuole\nessere pagato per quel\nservizio";
cl.j06 = "mi piace il tuo senso\ndell'umorismo, figliolo";
cl.s63 = "ma mi servono\nquei soldi!";
cl.s64 = "uff, che giornata calda";
cl.j07 = "ma non \u00E8 inverno?";
cl.s65 = "no no. \u00E8 gi\u00E0\nestate!\te fa talmente caldo\nche mi sudano anche\nle unghie!";
cl.j08 = "all'improvviso ho sete";
cl.j10 = "aaah!";
cl.s66 = "perfetto!\te ora come lo spiego\nalla corte che \u00E8 stato\nsolo un incidente?";
cl.s70 = "\u00E8 tempo per il piano c!";
cl.j09 = "warbear! aiutami!\tc'\u00E8 stato un\nincidente!";
cl.s67 = "pensa sia stato\nun incidente..\tforse questa volta\nme la cavo senza\nconseguenze!";
cl.s68 = "err... nonno,\nche strano\nincidente, eh?\tpensavo...\nma non \u00E8 che c'\u00E8\nqualche ricompensa\nse ti aiuto?";
cl.s69 = "bene, tutti hanno avuto\nquello che volevano e \nora il gran finale!";
cl.s71 = "ou..";
cl.s72 = "..e questo suono\nvuol dire che\nnon entro";
cl.s73 = "vai tecnologia,\nfai quello che\ndevi fare!";
cl.s74 = "si!";
cl.s75 = "non vedo niente\nqua dentro, dov'\u00E8\nl'interruttore?";
cl.k69 = "grazie e-coso";
cl.k70 = "dobbiamo trovare un \nmodo per disattivare\nil gateway";
cl.k71 = "qualcosa \u00E8 stato rimosso\nda queste socket..";
cl.k72 = "un thread\nmanca!\tprobabilmente\n\u00E8 in un posto\nnascosto";
cl.k73 = "c'\u00E8 qualcosa qui";
cl.k74 = "ho trovato un\nthread rosso";
cl.k75 = "vediamo se posso\ncausare un deadlock";
cl.k76 = "niente, non\nha funzionato";
cl.k77 = "yay, ho disattivato\nil gateway!";
cl.x13 = "ma come ti\npermetti!!\thai distrutto il\nmio lavoro!\tperirai per\nci\u00F2 che hai..";
cl.x14 = "aaaaah";
cl.k78 = "e-coso,\ncos'\u00E8 quello?";
cl.e10 = "\u00E8 un'interferenza\ncausata da una luce\nintensa nel mondo reale";
cl.x15 = "aaah, il mio f.o.v.\n\u00E8 compromesso!";
cl.k79 = "e-coso, \u00E8 il momento!\nspazza via quei programmi\nmentre l'interferenza li\nsta bloccando";
cl.s78 = "ma\tcosa\tcavolo!?\tquasi quasi mi pento di aver\ntrovato l'interruttore\tkla si sar\u00E0 fritto\nil cervello!";
cl.s79 = "ah perfetto\tmi ero dimenticato\nche sparava pure";
cl.k80 = "aah! ci serve luce\nper fermarli!";
cl.s80 = "non posso avvicinarmi,\ngli orsi polari fritti\nnon hanno un buon odore";
cl.s81 = "vediamo quanto valgono\nqueste luci al neon";
cl.s82 = "prendi questo, kla!";
cl.x16 = "hohoho..\tsei stato\nmooolto cattivo!\t\u00E8 tempo di\nessere formattati\te poi riattiver\u00F2 il\ngateway e infetter\u00F2\ntutta la rete\thohoho...";
cl.x17 = "aaaah\tdi nuovo!";
cl.k81 = "ora! cancellali!";
cl.k82 = "grande e-coso!\nlo spirito malvagio\ndel nasale \u00E8 stato\nfinalmente sconfitto";
cl.k83 = "abbiamo salvato\nil nasale!\te la rete!\tah e la mia vita..";
cl.k84 = "ora come\nesco da qui?";
cl.e11 = "Programma principale\ncancellato.";
cl.k85 = "beh, questo risolve\nil problema mi sa";
cl.s83 = "hahahah, ragazzi, non\ncrederete mai a quello\nche \u00E8 successo...";
cl.r01 = "maji gire sisou!";
cl.l02 = "steve, arriva al\ndunque, dov'\u00E8 kla?";
cl.k86 = "cosi! sono troppo\ntornato nel mondo\nreale!";
cl.l03 = "che vuol dire\nmondo reale?";
cl.s84 = "ah, probabilmente intende\ntornato qua fuori, ha fatto\nshopping per ore!";
cl.s85 = "giusto kla?\tgiusto.";
cl.l04 = "ok potremmo uccidere steve per\nun altro dei suoi casini, oppure ignorare\ntutta la situazione e farci un sushi";
cl.s86 = "io voto sushi";
cl.r02 = "tu non puoi\nvotare";
cl.k87 = "andiamo cosi, ho una\nbella storia di nasale\nda raccontarvi";
cl.s87 = "per\u00F2 evita le\nmie parti, ok?";
cl.x18 = "hohoho..";
cl.j11 = "aah.. controllate sempre\nil cestino quanto\ncancellate i file..";
cl.j12 = "aspetta, come\nsono finito qui?";
cl.e12 = "Hai trovato degli\nOcchiali A.R. e li\nhai indossati.";
cl.j23 = "e perch\u00E8 non si\nvedono gli occhiali?";
cl.e27 = "Esteticamente non\nti donavano.";
cl.j13 = "e perch\u00E8 sono all'interno\ndell'incubo di kla?";
cl.e13 = "Scappando, il programma\nha infettato alcuni Occhiali\nA.R. che erano connessi\nallo stesso nodo.";
cl.j14 = "non c'\u00E8 un\nantivirus?";
cl.e14 = "Si. Io sono l'Antivirus.";
cl.j15 = "e perch\u00E8 non fai\nqualcosa?";
cl.e15 = "Ci stavo lavorando.";
cl.j16 = "ah bene. ehy non vuoi\nsapere perch\u00E8 so tutte\nqueste cose di computer?";
cl.e16 = "Non faccio domande.\nDo solo risposte.\nSono stato programmato\ncos\u00EC.";
cl.e25 = "Ahah, sei stupido.";
cl.e26 = "Se clicco, sono stupido";
cl.j17 = "ok basta! puoi riportarmi\nnel mondo reale ora?";
cl.e18 = "Sto eseguendo una scan-\nsione che prende il 99% delle\nrisorse di sistema, non posso\neseguire altre operazioni";
cl.j18 = "e quanto ci vorr\u00E0?";
cl.e19 = "14 ore, 3 minuti\ne 81 secondi.";
cl.j19 = "ma sono stanco di\nstare qui, devo tornare\nal parco. sto aspettando\nper qualcosa l\u00EC..";
cl.j20 = "se dovessi chiedermi\nche ore sono, cosa\ndiresti?";
cl.e20 = "Che ore sono?";
cl.j21 = "ehy quella era una domanda,\npensavo non potessi farle";
cl.e21 = "Aaaaah!!!\nSovraccarico\ndel sistema!!!!";
cl.e22 = "Esci da qui";
cl.j22 = "sono talmente intelligente\nche potrei risolvere problemi\ndi matematica mentre conto\nle gocce di pioggia";
cl.e23 = "Ok";
cl.e24 = "Chiudi questo gioco\ne torna su Warbears.com";
cl.cr01 = "Warbears Adventures#";
cl.cr01 = cl.cr01 + " Un Nasale A.R. #";
cl.cr01 = cl.cr01 + " - Fine - @";
cl.cr01 = cl.cr01 + "Grazie per aver giocato@";
cl.cr01 = cl.cr01 + "Created by ...#";
cl.cr01 = cl.cr01 + "Gionatan Iasio@";
cl.cr01 = cl.cr01 + "Music by ... #";
cl.cr01 = cl.cr01 + "Gionatan Iasio@";
cl.cr01 = cl.cr01 + "Japanese translation: #";
cl.cr01 = cl.cr01 + "Naoko-san the Kindhearted@";
cl.cr01 = cl.cr01 + "Beta testing by ...@";
cl.cr01 = cl.cr01 + "Nifriz the#";
cl.cr01 = cl.cr01 + "Codrogonte@";
cl.cr01 = cl.cr01 + "Luca the fat#";
cl.cr01 = cl.cr01 + " RoadRunner @";
cl.cr01 = cl.cr01 + "Enrico Nuclear Launch#";
cl.cr01 = cl.cr01 + " Detective Gaffuri @";
cl.cr01 = cl.cr01 + "English consultant: #";
cl.cr01 = cl.cr01 + "Miz the Criminologist@";
cl.cr01 = cl.cr01 + "Special thanks to ...@";
cl.cr01 = cl.cr01 + "Warbears.com mods: Benj, #";
cl.cr01 = cl.cr01 + "IMNN,Mac,Mandy,Mochi,Rosie@";
cl.cr01 = cl.cr01 + "All Warbears fans#";
cl.cr01 = cl.cr01 + " in the world! @";
cl.cr01 = cl.cr01 + "Sjarri for #";
cl.cr01 = cl.cr01 + "his support@";
cl.cr01 = cl.cr01 + "Stay tuned for the next#";
cl.cr01 = cl.cr01 + " Warbears Adventure! @";
_global.cl = alan.jp;
cl.f01 = 3;
cl.f02 = 3;
cl.in00 = "ADVENTURE : A.R. XMas";
cl.in01 = "\u30BF\u30A4\u30E0";
cl.in02 = "\u30DD\u30A4\u30F3\u30C8";
cl.in03 = "";
cl.in04 = "\u753B\u8CEA";
cl.in05 = "BGM\u97F3\u91CF";
cl.in06 = "\u52B9\u679C\u97F3\u97F3\u91CF";
cl.in07 = "\u81EA\u52D5\u8ABF\u6574";
cl.in08 = "FPS\u8335\u8868\u793A";
cl.in09 = "\u9AD8";
cl.in10 = "\u4E2D";
cl.in11 = "\u4F4E";
cl.in12 = "BGM";
cl.in13 = "\u9589\u3058\u308B";
cl.in14 = "\u30EC\u30D9\u30EB";
cl.in16 = "\u540D\u524D\uFF1A";
cl.btm1 = "\u30B9\u30BF\u30FC\u30C8\uFF01";
cl.btm2 = "\u904A\u3073\u65B9";
cl.btm3 = "\u30AA\u30D7\u30B7\u30E7\u30F3";
cl.btm4 = "more games..";
cl.bto1 = "\u30E1\u30CB\u30E5\u30FC\u306B\u623B\u308B";
cl.bto2 = "\u672C\u5F53\u306B\uFF1F";
cl.bto3 = "\u9589\u3058\u308B";
cl.ap01 = "\u8AAD\u307F\u8FBC\u307F\u4E2D...";
cl.ap02 = "\u4ECA\u56DE\u306E\u30DD\u30A4\u30F3\u30C8";
cl.ap03 = "BTC\u30AF\u30EC\u30B8\u30C3\u30C8";
var c = ((cl.objn = []));
c.screwdriver = "\u30C9\u30E9\u30A4\u30D0\u30FC";
c.toolbox = "\u5DE5\u5177\u7BB1";
c.bob = "\u30DC\u30D6";
c.kla = "\u30AF\u30E9";
c.eye = "\u30A2\u30A4";
c.gift = "\u30D7\u30EC\u30BC\u30F3\u30C8";
c.list = "\u8CB7\u3044\u7269\u30E1\u30E2";
c.furScanButton = "\u6BDB\u76AE\u5206\u6790\u6A5F";
c.arGoggles = "\u30B2\u30F3\u30AB\u30AF\u30B4\u30FC\u30B0\u30EB";
c.taser = "\u30B9\u30BF\u30F3\u30AC\u30F3";
c.hackingDevice = "\u30CF\u30C3\u30AD\u30F3\u30B0\u88C5\u7F6E";
c.btcMap = "\uFF22\uFF34\uFF23\u5730\u56F3";
c.neonLights = "\u30CD\u30AA\u30F3\u30E9\u30A4\u30C8";
c.batteries = "\u30D0\u30C3\u30C6\u30EA\u30FC";
c.wires = "\u30EF\u30A4\u30E4\u30FC";
c.credits = "\u73FE\u91D1";
c.wallet = "\u30AF\u30E9\u306E\u8CA1\u5E03";
c.credits7 = "7\u00A2\u00A2";
c.credits5 = "5\u00A2\u00A2";
c.credits2 = "2\u00A2\u00A2";
c.credits400 = "800\u00A2\u00A2";
c.card = "\u30AB\u30FC\u30C9";
c.cubeBlue = "\u9752\u3044\u30D1\u30FC\u30C4";
c.cubeRed = "\u8D64\u3044\u30D1\u30FC\u30C4";
c.cubeGreen = "\u7DD1\u306E\u30D1\u30FC\u30C4";
c.sockets = "\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4\u306E\u30B9\u30ED\u30C3\u30C8";
c.tree = "\u30D0\u30FC\u30C1\u30E3\u30EB\u306A\u6728";
c.xtree = "\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4";
c.jebediah = "\u30B8\u30A7\u3079\u30C7\u30A3\u30A2\u723A\u3055\u3093";
c.circuitLocker = "\u30ED\u30C3\u30AB\u30FC";
c.circuitPanel = "\u64CD\u4F5C\u76E4";
c.circuit = "\u5185\u90E8\u88C5\u7F6E";
c.doorPanel = "\u30C9\u30A2\u30D1\u30CD\u30EB";
c.bobShop = "\u30DC\u30D6\u306E\u5BB6\u5177\u5C4B";
c.bank = "\uFF22\uFF34\uFF23\u9280\u884C";
c.park = "\u30D5\u30A7\u30B6\u30FC\u516C\u5712";
c.neonLightsWired = "\u30EF\u30A4\u30E4\u30FC\uFF0B\u30CD\u30AA\u30F3\u30E9\u30A4\u30C8";
c.batteriesWired = "\u30EF\u30A4\u30E4\u30FC\uFF0B\u30D0\u30C3\u30C6\u30EA\u30FC";
var c = ((cl.objd_kla = []));
c.btcMap = "\uFF22\uFF34\uFF23\u5E02\u8857\u56F3\u3060";
c.neonLights = "\u3042\u3042\u3001\u6CE8\u6587\u3057\u3066\u304A\u3044\u305F\n\u8FFD\u52A0\u306E\u30CD\u30AA\u30F3\u30E9\u30A4\u30C8\u3060";
c.hackingDevice = "\u3046\u308F\u3063\u2026\u30AB\u30F3\u30BF\u30F3\u306A\n\u30CF\u30C3\u30AD\u30F3\u30B0\u88C5\u7F6E\u3060\t\u3044\u3063\u305F\u3044\u8AB0\u304C\n\u6CE8\u6587\u3057\u305F\u3093\u3060\u308D\u3046\u2026\t\u304A\u3082\u3061\u3083\u307F\u305F\u3044\u306A\n\u3082\u306E\u306A\u306E\u306B";
c.batteries = "\u30CB\u30C3\u30B1\u30EB\u6C34\u7D20\u96FB\u6C60\u3060";
c.wires = "\u8D85\u5F37\u529B\u30EF\u30A4\u30E4\u30FC\u3060";
c.taser = "\u30B7\u30F3\u30D7\u30EB\u306A\u30B9\u30BF\u30F3\u30AC\u30F3\u3060";
c.credits = "";
c.xtree = "\u30AF\u30EA\u30B9\u30DE\u30B9\u306E\u60AA\u970A\u306F\n\u3053\u308C\u304C\u30CD\u30C3\u30C8\u4E16\u754C\u3078\u306E\n\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4\u3060\u3068\u8A00\u3063\u3066\u3044\u305F\u2026\t\u65E9\u304F\u306A\u3093\u3068\u304B\u3057\u306A\u3044\u3068\n\u3042\u306E\u30E4\u30D0\u3044\u30D7\u30ED\u30B0\u30E9\u30E0\u304C\n\u30B4\u30FC\u30B0\u30EB\u304B\u3089\u5916\u90E8\u306B\n\u6D41\u51FA\u3057\u3066\u3057\u307E\u3046";
var c = ((cl.objd_steve = []));
c.hackingDevice = "\u6CE8\u6587\u3057\u3066\u304A\u3044\u305F\n\u6700\u65B0\u5F0F\u306E\u30CF\u30C3\u30AD\u30F3\u30B0\u88C5\u7F6E\uFF01\t\u30AF\u30EA\u30B9\u30DE\u30B9\u3060\u3057\u3001\n\u30AF\u30E9\u306B\u3042\u3052\u308B\u3064\u3082\u308A\u306A\u3093\u3060\t\u307E\u3055\u304B\u3001\u76EE\u3056\u3068\u304F\n\u898B\u3064\u3051\u3066\u306A\u3044\u3088\u306A\uFF1F\t\u4FA1\u683C\uFF1A\uFF13\uFF10\uFF10\u00A2\u00A2\t\u3053\u308C\u307E\u305F\n\u7D50\u69CB\u306A\u304A\u5024\u6BB5\u3067";
c.btcMap = "\u4FFA\u69D8\u3059\u3050\u8FF7\u5B50\u306B\u306A\u308B\u3093\u3060\u3088\u306A\n\u3042\u3063\u305F\u3089\u304D\u3063\u3068\u4FBF\u5229\t\u4FA1\u683C\uFF1A\uFF15\u00A2\u00A2";
c.taser = "\u706B\u82B1\u30D0\u30C1\u30D0\u30C1\t\u4FA1\u683C\uFF1A\uFF12\u00A2\u00A2\t\u3053\u3044\u3064\u306F\u5B89\u3044\uFF01";
c.credits = "\u306F\u3042\u3001\u304A\u91D1\u6301\u3063\u3066\u308C\u3070\n\u3053\u3053\u306B\u3042\u308B\u304A\u91D1\u3092\u8CB7\u3063\u3066\n\u3044\u308D\u3093\u306A\u8CB7\u3044\u7269\u3067\u304D\u308B\u306E\u306B\uFF01\t\u91D1\u304C\u306A\u304F\u3066\n\u56F0\u308B\u3053\u3068\u3082\u306A\u304F\u306A\u308B\uFF01\t\u306F\u3042\u3001\n\u304A\u91D1\u3055\u3048\u6301\u3063\u3066\u308C\u3070\u306A\u3042";
c.circuitPanel = "\u5DE5\u5177\u304C\u306A\u3044\u3068\n\u3053\u3053\u306F\u958B\u304B\u306A\u3044\u306A\uFF01";
c.circuit = "\u96E3\u3057\u3044\u3053\u3068\u306F\n\u3088\u304F\u308F\u304B\u3093\u306A\u3044\u3051\u3069\t\u3053\u308C\u306F\u304A\u305D\u3089\u304F\n\u6C34\u98F2\u307F\u5834\u306E\n\u64CD\u4F5C\u76E4\u306B\u9055\u3044\u306A\u3044\t\u3060\u3063\u3066\u3001\u3053\u3053\u306B\n\u305D\u3046\u66F8\u3044\u3066\u3042\u308B\u3058\u3083\u3093\uFF1F";
c.doorPanel = "\u3053\u306E\u30D1\u30CD\u30EB\u304C\n\u30C9\u30A2\u3092\u958B\u304F\u88C5\u7F6E\u3060\u306A";
cl["..."] = "";
cl.mmh = "\u3093\u30FC\u2026";
cl.is01 = "\u3053\u306E\u7D44\u307F\u5408\u308F\u305B\u306F\n\u9055\u3046\u3063\u307D\u3044\u306A";
cl.ik01 = "\u3053\u306E\u7D44\u307F\u5408\u308F\u305B\u306F\n\u9055\u3046\u3063\u307D\u3044\u306A";
cl.is02 = "\u3046\u30FC\u3093\u2026\n\u3082\u3046\u6301\u3066\u306A\u3044\u3084";
cl.ik02 = "\u3046\u30FC\u3093\u2026\n\u3082\u3046\u6301\u3066\u306A\u3044\u3084";
cl.is03 = "\u7740\u308B\u3082\u306E\u3058\u3083\u306A\u3044";
cl.ik03 = "\u7740\u308B\u3082\u306E\u3058\u3083\u306A\u3044";
cl.is04 = "\u3048\u3048\u3068\u3001\u4F55\u304B\u3068\n\u3064\u306A\u3052\u308C\u3070\u3044\u3044\u306E\u304B";
cl.is05 = "\u3053\u3046\u3060\u306A";
cl.is06 = "\u3046\u3046\u3080\u2026\t\u3053\u3053\u307E\u3067\u3057\u3066\u3084\u308B\u3053\u3068\u3082\n\u306A\u3044\u304B\u3082\u3057\u308C\u306A\u3044\u3051\u3069";
cl.k01 = "\u65B0\u3057\u3044warbot\n\u306E\u90E8\u54C1\u3092\u8CB7\u3063\u3066\n\u6765\u306A\u3044\u3068\u306D\t\u3061\u3087\u3063\u3068\u884C\u3063\u3066\u304F\u308B\uFF01";
cl.l01 = "\u898B\u56DE\u3063\u3066\u308B\u3088";
cl.s01 = "\u30EB\u30FC\u30AB\u30B9\u3001\u5F85\u3066\uFF01\t\u4FFA\u69D8\u3082\u3061\u3087\u3044\u3068\n\u91CE\u66AE\u7528\u304C\u3042\u3063\u3066\u306D";
cl.s02 = "\u3078\u3063\u3078\u3063\u3078";
cl.s03 = "\u8170\u629C\u304B\u3059\u305E";
cl.s04 = "\u30DA\u30F3\u30AE\u30F3\u90E8\u968A\u3001\n\u6E96\u5099\u306F\u3044\u3044\u304B\uFF1F";
cl.s05 = "\u98FE\u308A\u3064\u3051\u306F\n\u63C3\u3063\u3066\u308B\u304B\uFF1F";
cl.b01 = "\u30DC\u30D6\u306E\u5BB6\u5177\u5C4B\u3078\n\u3088\u3046\u3053\u305D\t\u4ECA\u65E5\u306F\u5168\u54C1\n\u3054\u5949\u4ED5\u4FA1\u683C\u3060\u3088\uFF01\t\u2026\u50D5\u306E\u305F\u3081\u306E\u306D";
cl.k02 = "\u3084\u3042\u3001\u3069\u3046\u3082\t\u6CE8\u6587\u3057\u3066\u304A\u3044\u305F\u30D6\u30C4\u306F\n\u5C4A\u3044\u3066\u308B\u304B\u306A";
cl.b02 = "\u30D0\u30C3\u30C1\u30EA\u3060\u3088\n\u65B0\u3057\u3044\u6BDB\u76AE\u5206\u6790\u6A5F\u3092\u5165\u308C\u305F\u304B\u3089\t\u3044\u3064\u3082\u901A\u308A\u306B\n\u3084\u3063\u3066\u304F\u308C\t\u3042\u3001\u3053\u308C\u306F\n\u304A\u524D\u3055\u3093\u5B9B\u3066\u3060";
cl.k03 = "\u30B5\u30F3\u30AD\u30E5\u30FC";
cl.k10 = "\u6BDB\u76AE\u5206\u6790\u6A5F\u306E\u53D6\u308A\u4ED8\u3051\u306F\n\u30DC\u30D6\u304C\u3055\u3063\u304D\u307E\u3067\u81EA\u5206\u3067\n\u3084\u3063\u3066\u305F\u307F\u305F\u3044\u3060\u306A";
cl.b10 = "\u305D\u308C\u306F\u4FFA\u306E\u3060";
cl.k11 = "\u5206\u304B\u3063\u305F\u3088";
cl.k12 = "\u3042\u308C\u3001\u4F55\u3082\u8D77\u3053\u3089\u306A\u3044\u305E";
cl.v01 = "\u30C0\u30FC\u30AF\u30B3\u30A2\u793E\u306E\n\u6BDB\u76AE\u5206\u6790\u6A5F\uFF13\uFF2B\u3092\n\u8D77\u52D5\u3057\u307E\u3059\t\u53F0\u306B\u4E0A\u304C\u3063\u3066\u4E0B\u3055\u3044";
cl.k13 = "\u3046\u308F\u3042";
cl.v02 = "\u6BDB\u76AE\u30B5\u30F3\u30D7\u30EB\u3092\n\u63A1\u53D6\u3057\u307E\u3059";
cl.k14 = "\u304A\u3044\u3001\u3053\u308C\u306F\u2026";
cl.v03 = "\u63A1\u53D6\u5B8C\u4E86\t\uFF24\uFF2E\uFF21\u30C7\u30FC\u30BF\u3068\n\u7167\u5408\u3057\u3066\u3044\u307E\u3059";
cl.v04 = "warbear \u30AF\u30E9\u3068\n\u4E00\u81F4\u3057\u307E\u3057\u305F\t\u4E0D\u5BE9\u8005\u62B9\u6BBA\u88C5\u7F6E\u306F\n\u505C\u6B62\u3057\u307E\u3059";
cl.k15 = "\u3053\u3044\u3064\u306F\u307E\u305F\n\u30BE\u30C3\u3068\u3059\u308B\u88C5\u7F6E\u3060\u306A";
cl.b11 = "\u3059\u3054\u3044\u3060\u308D\t\u30CF\u30A4\u30C6\u30AF\u3063\u3066\u3084\u3064\u3060";
cl.v05 = "warbears shop\u30E2\u30FC\u30C9\u306B\n\u5207\u308A\u66FF\u3048\u307E\u3059";
cl.dkb = [];
cl.dkb[0] = "\u3069\u3046\u3059\u308C\u3070\u3044\u3044\u306E\uFF1F";
cl.dkb[1] = "\u6BDB\u76AE\u5206\u6790\u6A5F\u304C\u2026";
cl.dkb[2] = "\u30EF\u30A4\u30E4\u30FC\u306F\u3069\u3053\uFF1F";
cl.dkb[3] = "\u306A\u3093\u3067\u3082\u306A\u3044";
cl.k16 = "\u305D\u308C\u3067\u3001\u4E00\u4F53\n\u3069\u3046\u3059\u308C\u3070\u3044\u3044\u306E\uFF1F";
cl.b12 = "warbears shop\u30E2\u30FC\u30C9\u3092\n\u8D77\u52D5\u3055\u305B\u3066\u304F\u308C\t\u671D\u98EF\u306E\u30DF\u30EB\u30AF\u306B\n\u7269\u5FD8\u308C\u306E\u85AC\u3067\u3082\n\u5165\u3063\u3066\u305F\u304B\uFF1F\t\u307E\u305A\u306F\u6BDB\u76AE\u5206\u6790\u6A5F\u3060\t\u304A\u524D\u3055\u3093\u306E\uFF24\uFF2E\uFF21\u3092\u8A8D\u8A3C\u3059\u308C\u3070\nwarbears shop\u30E2\u30FC\u30C9\u306B\u5165\u308B";
cl.k17 = "\u3042\u3042\u3001\u305D\u3063\u304B";
cl.k18 = "\u30DC\u30BF\u30F3\u62BC\u3057\u305F\u3093\u3060\u3051\u3069\n\u4F55\u3082\u8D77\u3053\u3089\u306A\u3044\u3093\u3060\u3088";
cl.b13 = "\u304A\u3063\u3001\u60AA\u3044\t\u3053\u308C\u304C\u521D\u904B\u8EE2\u3060\u304B\u3089\u306A\n\u30ED\u30C3\u30AF\u3092\u89E3\u9664\u3057\u306A\u3044\u3068\n\u3044\u3051\u306A\u3044\u3093\u3060\u3063\u305F";
cl.b14 = "\u6975\u79D8\u306E\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\n\u5165\u529B\u3057\u3066\u3084\u308B";
cl.b15 = "\uFF15";
cl.b16 = "\u3088\u304F\u3067\u304D\u305F\n\u6697\u8A3C\u756A\u53F7\u3060\u308D\u3046\t\u3055\u3042\u3001\u3053\u308C\u3067\u3044\u3044";
cl.k19 = "\u3042\u308A\u304C\u3068";
cl.k21 = "\u30DC\u30D6\u3001\u3082\u3046\u4E00\u3064\n\u6CE8\u6587\u3057\u3066\u305F\u3082\u306E\u304C\n\u3042\u308B\u306F\u305A\u306A\u3093\u3060\u3051\u3069";
cl.b18 = "\u6CE8\u6587\u306E\u54C1\u306A\u3089\n\u305D\u306E\u3078\u3093\u306B\u3042\u308B\u306F\u305A\u3060";
cl.k22 = "\u5206\u304B\u3063\u305F\n\u3082\u3046\u4E00\u5EA6\u63A2\u3057\u3066\u307F\u308B";
cl.k20 = "\u306A\u3093\u3067\u3082\u306A\u3044";
cl.k30 = "\u30C0\u30FC\u30AF\u30B3\u30A2\u793E\u304B\u3089\u306E\n\u30D7\u30EC\u30BC\u30F3\u30C8\u304B\uFF01";
cl.k31 = "\u73FE\u5B9F\u611F\u62E1\u5F35\u6A5F\u80FD\u3092\u642D\u8F09\n\u30B2\u30F3\u30AB\u30AF\u30B4\u30FC\u30B0\u30EB\u3001\u8A66\u4F5C\u54C1\uFF01\t\u30C0\u30FC\u30AF\u30B3\u30A2\u793E\u306F\n\u3059\u3054\u3044\u3082\u306E\u4F5C\u308B\u306A\u3042\t\u8A66\u3057\u3066\u307F\u306A\u3044\u3068";
cl.k32 = "\u3064\u3051\u3066\u307F\u3088\u3046";
cl.e01 = "\u62E1\u5F35\u30EA\u30A2\u30EA\u30C6\u30A3\u306E\n\u4E16\u754C\u3078\u3088\u3046\u3053\u305D\t\u79C1\u304C\u3054\u6848\u5185\u3057\u307E\u3059";
cl.k33 = "\u3046\u308F\u3042\uFF01\uFF01\uFF01\t\u3081\u3061\u3083\u3081\u3061\u3083\n\u304B\u3063\u3053\u3044\u30FC\uFF01\uFF01\t\u541B\u306F\u4F55\u304C\u3067\u304D\u308B\u306E\uFF1F";
cl.b17 = "\u4E00\u4EBA\u3067\u30D6\u30C4\u30D6\u30C4\n\u3042\u3044\u3064\u5927\u4E08\u592B\u304B\uFF1F";
cl.e02 = "\u3044\u304F\u3064\u304B\u306E\u6A5F\u80FD\u304C\n\u642D\u8F09\u3055\u308C\u3066\u3044\u307E\u3059\t\u305F\u3068\u3048\u3070\u30A2\u30A4\u30C6\u30E0\u306E\u635C\u7D22\u3001\n\u30D0\u30FC\u30C1\u30E3\u30EB\u4E16\u754C\u3067\u306E\n\u884C\u52D5\u3068\u4F5C\u7528\u306E\u8ABF\u6574\u306A\u3069\u3067\u3059";
cl.k34 = "\u3053\u3093\u306A\u306B\u30B9\u30B4\u3044\u306E\u306B\n\u30BF\u30C0\u3067\u3082\u3089\u3048\u305F\u306A\u3093\u3066\n\u4FE1\u3058\u3089\u308C\u306A\u3044\uFF01";
cl.e03 = "\u6307\u793A\u3092\u3069\u3046\u305E";
cl.dka = [];
cl.dka[0] = "\u30DC\u30D6\u306F\u3069\u3053\uFF1F";
cl.dka[1] = "\u30A2\u30A4\u30C6\u30E0\u306F\u3069\u3053\uFF1F";
cl.dka[2] = "\u306A\u3093\u3067\u3082\u306A\u3044";
cl.k35 = "\u30DC\u30D6\u306F\u3069\u3053\uFF1F";
cl.e04 = "\u89E3\u6790\u4E2D\u2026";
cl.e05 = "\u30DC\u30D6\u767A\u898B";
cl.k36 = "\u3053\u308C\u306F\n\u3059\u3054\u3044\u306A\u3042";
cl.k37 = "\u8D85\u5F37\u529B\u30EF\u30A4\u30E4\u30FC\u306F\u3069\u3053\uFF1F";
cl.e06 = "\u8D85\u5F37\u529B\u30EF\u30A4\u30E4\u30FC\u767A\u898B";
cl.k38 = "\u3059\u3070\u3089\u3057\u3044\uFF01";
cl.k39 = "\u3042\u30FC\u3001\u3048\u3063\u3068\u2026\t\u4ECA\u306F\u3044\u3044\u3084\u3001\n\u3042\u308A\u304C\u3068\u3046\u76F8\u68D2";
cl.k40 = "\u8CB7\u3044\u7269\u30E1\u30E2\t\u30CB\u30C3\u30B1\u30EB\u6C34\u7D20\u96FB\u6C60\t\u30D1\u30EF\u30D5\u30EB\u30CD\u30AA\u30F3\u30E9\u30A4\u30C8\t\u5F37\u529B\u30EF\u30A4\u30E4\u30FC";
cl.k41 = "\u3046\u3046\u3093\u3001\u4ED6\u306B\u3082\n\u6B32\u3057\u3044\u3082\u306E\u304C\u3042\u3063\u305F\u306F\u305A";
cl.k42 = "\u3053\u308C\u306F\u3044\u3044\u3084";
cl.k43 = "\u30EF\u30A4\u30E4\u30FC\u306F\n\u3069\u3053\u306B\u3042\u308B\u306E\u304B\u306A\uFF1F\t\u3053\u306E\u3078\u3093\u306E\u3069\u3063\u304B\u306B\n\u3042\u308B\u3063\u3066\u8A00\u3063\u3066\u305F\u3051\u3069\u2026";
cl.k44 = "\u3053\u306E\u304A\u3082\u3061\u3083\u306E\n\u5F71\u306B\u96A0\u308C\u3066\u305F\u306E\u304B";
cl.k45 = "\u3084\u3063\u305F\u306D\u3001\u3053\u308C\u3067\n\u8CB7\u3046\u3082\u306E\u306F\u5168\u90E8\u3060";
cl.k46 = "\u3042\u308C\u2026\t\u8CA1\u5E03\u304C\u306A\u3044\u305E";
cl.k47 = "\u58F2\u308A\u7269\u306E\u68DA\u306B\u2026\u73FE\u91D1\uFF1F";
cl.b19 = "\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306F\u4E16\u754C\u4E2D\u3092\n\u65C5\u3059\u308B\u3060\u308D\u3046\uFF1F\n\u305D\u306E\u90FD\u5EA6\u3001\u73FE\u5730\u306E\u901A\u8CA8\u304C\n\u5FC5\u8981\u306B\u306A\u308B\u3058\u3083\u306A\u3044\u304B";
cl.k48 = "\u3067\u3082\u3053\u308C\u3063\u3066\n\u3053\u306E\u56FD\u306E\u304A\u91D1\u3060\u3088\u306D\u2026";
cl.b20 = "\u304A\u524D\u306B\u5408\u308F\u305B\u305F\u304B\u3089\u3055\u3002\n\u6D77\u5916\u306A\u3093\u304B\u884C\u3063\u305F\u3053\u3068\u3082\n\u884C\u304F\u4E88\u5B9A\u3082\u306A\u3044\u3060\u308D\u3046\uFF1F";
cl.k49 = "\uFF15\uFF10\uFF10\u00A2\u00A2\u2026\t\u3044\u304F\u3089\u3067\u58F2\u3063\u3066\u308B\u306E\uFF1F";
cl.b21 = "\uFF11\uFF10\uFF10\uFF10\u00A2\u00A2\u3060";
cl.b22 = "\u4FFA\u306B\u3060\u3063\u3066\u990A\u3046\u5BB6\u65CF\u304C\t\u2026\u307E\u3042\u3001\u3044\u3064\u304B\u306F\n\u4E00\u4EBA\u3050\u3089\u3044\u306F\n\u3067\u304D\u308B\u3093\u3058\u3083\u306A\u3044\u304B\u306A\u30FC\u3068";
cl.s10 = "\u30DA\u30F3\u30AE\u30F3\uFF01\t\u7528\u610F\u306F\u3044\u3044\u304B\uFF1F";
cl.k50 = "\u53C2\u3063\u305F\u306A\u3001\u3042\u3044\u3064\u3089\n\u3069\u3053\u306B\u884C\u3063\u305F\u3093\u3060";
cl.s11 = "\u30AF\u30E9\u30FC\u30FC\u30FC\uFF01";
cl.k51 = "\u3046\u308F\u3063\u2026";
cl.s12 = "\u30AF\u30EA\u30B9\u30DE\u30B9\u306E\u60AA\u970A\n\u767B\u5834\u3060\uFF01\t\u304A\u524D\u306F\u3053\u306E\u4E00\u5E74\n\u60AA\u3044\u5B50\u3060\u3063\u305F\u306A\u30FC\u30FC\u30FC\uFF01\t\u304A\u3057\u304A\u304D\u3057\u3066\u3084\u308B\uFF01\t\u304A\u524D\u304C\u3069\u3053\u306B\u884C\u3053\u3046\u3068\n\u3053\u306E\u96E8\u96F2\u3067\n\u8FFD\u3044\u304B\u3051\u3066\u3084\u308B\u305E\u30FC\u30FC\u30FC\uFF01";
cl.k52 = "\u307E\u305F\u304A\u524D\u304B\u3001\u30B9\u30C6\u30A3\u30FC\u30D6";
cl.s13 = "\u306A\u3093\u3066\u3053\u3063\u305F\uFF01\n\u3082\u3046\u30D0\u30EC\u3061\u3083\u3063\u305F\uFF01";
cl.k53 = "\u304E\u3083\u3042\u3001\n\u30B4\u30FC\u30B0\u30EB\u304C\uFF01";
cl.k54 = "\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042";
cl.s14 = "\u304A\u3044\u304A\u3044\u3001\n\u305F\u3060\u306E\u6C34\u3060\u308D\u2026";
cl.k55 = "\u30AF\u30EA\u30B9\u30DE\u30B9\u306E\u60AA\u970A\u306B\n\u6BBA\u3055\u308C\u308B\uFF01";
cl.s15 = "\u30DA\u30F3\u30AE\u30F3\u3001\u4F5C\u6226\u4E2D\u6B62\u3060\n\u4F55\u304B\u3084\u3089\u304B\u3057\u3061\u307E\u3063\u305F\u3089\u3057\u3044";
cl.b25 = "\u2026\u3067\u3001\u3053\u306E\u3042\u308A\u3055\u307E\u3060\n\u8AB0\u304C\u5F01\u511F\u3057\u3066\u304F\u308C\u308B\u3093\u3060\u3044\uFF1F";
cl.s16 = "\u306A\u3093\u3060\u3001\u3053\u3093\u306A\u306E\n\u4FFA\u69D8\u306E\u5468\u308A\u3058\u3083\n\u65E5\u5E38\u8336\u98EF\u4E8B\u3060\u305E\t\u53BB\u5E74\u306E\u30AF\u30EA\u30B9\u30DE\u30B9\u306F\n\u3082\u3063\u3068\u30C9\u6D3E\u624B\u3060\u3063\u305F";
cl.b26 = "\u30AF\u30EA\u30B9\u30DE\u30B9\u306B\u306F\n\u30B5\u30F3\u30BF\u304C\u30D7\u30EC\u30BC\u30F3\u30C8\n\u6301\u3063\u3066\u304F\u308B\u3082\u3093\u3060\u308D";
cl.s17 = "\u30A2\u30F3\u30BF\u306B\u3068\u3063\u3061\u3083\n\u30B5\u30F3\u30BF\u306E\u65E5\u3067\u3082\n\u4EBA\u305D\u308C\u305E\u308C\u3060\u308D\t\u4FFA\u69D8\u306B\u3068\u3063\u3061\u3083\u3001\n\u30AF\u30EA\u30B9\u30DE\u30B9\u3063\u3066\u306E\u306F\n\u5927\u898F\u6A21\u7834\u58CA\u306E\u65E5\u306A\u3093\u3060\n\u3067\u3082\u4ECA\u306F\u305D\u3093\u306A\u3053\u3068\u3088\u308A\t\u30AF\u30E9\u306F\u3069\u3053\u3044\u3063\u305F\u3093\u3060\uFF1F";
cl.b27 = "\u3053\u3053\u306E\n\u4E8C\u968E\u3060\u3088\t\u79D8\u5BC6\u5009\u5EAB\u306B\n\u7ACB\u3066\u3053\u3082\u308A\u3084\u304C\u3063\u305F";
cl.s18 = "\u3044\u3063\u3061\u3087\u3084\u3063\u3066\u3084\u308B\u304B\t\u4FFA\u69D8\u3060\u3063\u3066\n\u3084\u308C\u3070\u3067\u304D\u308B\u3093\u3060";
cl.b28 = "\u8A00\u3063\u305F\u3063\u3051\uFF1F\n\u3042\u3044\u3064\u3001\n\u96FB\u5B50\u5149\u7DDA\u3092\u4F7F\u3046\u305E";
cl.s19 = "\u805E\u3044\u3066\u306A\u3044\u3001\u3063\u3066\u3044\u3046\u304B\n\u805E\u304D\u305F\u304F\u306A\u30FC\u3044\uFF01";
cl.s21 = "\u304A\u3063\u3068\u3001\n\u898B\u3066\u308B\u3060\u3051\u3060";
cl.s22 = "\u30C9\u30E9\u30A4\u30D0\u30FC\u3084\u3089\u4F55\u3084\u3089\n\u3054\u304F\u3054\u304F\u666E\u901A\u306E\n\u3064\u307E\u3089\u306A\u3044\u5DE5\u5177\u3070\u3063\u304B\u308A\u3060";
cl.s23 = "\u3042\u3042\u3001\u4ECA\u6B32\u3057\u3044\u306E\u306F\n\u30C9\u30E9\u30A4\u30D0\u30FC\u3060\uFF01";
cl.dsb = [];
cl.dsb[0] = "\u79D8\u5BC6\u5009\u5EAB";
cl.dsb[1] = "\u53D6\u308A\u5BC4\u305B\u983C\u3081\u308B\uFF1F";
cl.dsb[2] = "\u306A\u3093\u3067\u3082\u306A\u3044";
cl.dsb[3] = "\u9283\u5F3E";
cl.dsb[4] = "\u30D5\u30A3\u30C3\u30B7\u30E5\u30A2\u30F3\u30C9\u30C1\u30C3\u30D7\u30B9";
cl.dsb[5] = "\u539F\u5B50\u529B\u88C5\u7F6E";
cl.s25 = "\u79D8\u5BC6\u5009\u5EAB\u306B\u306F\n\u3069\u3046\u3059\u308C\u3070\u5165\u308C\u308B\uFF1F";
cl.b30 = "\u30C9\u30A2\u306B\u306F\u30AB\u30AE\u304C\u304B\u304B\u3063\u3066\u308B\u3057\n\u3042\u3044\u3064\u306F\u30B7\u30B9\u30C6\u30E0\u306B\u4FB5\u5165\u3057\u3066\n\u4F55\u304B\u4ED5\u639B\u3051\u305F\u3088\u3046\u3060\t\u307E\u305A\u306F\u305D\u308C\u3092\n\u3069\u3046\u306B\u304B\u3059\u308B\u3053\u3068\u3092\n\u8003\u3048\u308B\u3093\u3060\u306A";
cl.s26 = "\u3046\u3046\u30FC";
cl.s27 = "\u53D6\u308A\u5BC4\u305B\u3066\u307B\u3057\u3044\n\u30D6\u30C4\u304C\u3042\u308B\u3093\u3060\u3051\u3069";
cl.b31 = "\u4F55\u304C\u6B32\u3057\u3044\uFF1F";
cl.s28 = "\u2026\u306A\u3093\u3067\u3082\u306A\u3044";
cl.s29 = "\u9632\u6C34\u30BF\u30A4\u30D7\u306E\u9283\u5F3E";
cl.b32 = "\u305D\u3093\u306A\u3082\u3093\u304B\n\u5F85\u3063\u3066\u308D\u3001\n\u3059\u3050\u623B\u308B";
cl.b33 = "\u3082\u3063\u3068\uFF1F\t\u5206\u304B\u3063\u305F\n\u3059\u3050\u623B\u308B\u3088";
cl.b34 = "\u6CE8\u6587\u3067\u304D\u305F\u305E";
cl.s30 = "\u9B5A\u578B\u306E\u30E1\u30AB\u306B\n\u9283\u6483\u53F0\u304C\u3064\u3044\u3066\u3066\n\u30C1\u30C3\u30D7\u30B9\u3092\u6483\u3066\u308B\u3084\u3064";
cl.b35 = "\u8A00\u3063\u3066\u3082\u3044\u3044\u304B\uFF1F\n\u3075\u304B\u3075\u304B\u3057\u3066\u898B\u3048\u308B\u304F\u305B\u306B\n\u3072\u3093\u66F2\u304C\u3063\u3066\u308B\u3088\u306A\u3001\u304A\u524D";
cl.b36 = "\u305D\u3093\u306A\u3053\u3068\u306F\n\u306A\u3044\u3060\u308D\u3046";
cl.s31 = "\u3053\u308C\u306F\n\u30D7\u30EC\u30BC\u30F3\u30C8\u3060";
cl.b37 = "\u6CE8\u6587\u4E0D\u53EF\uFF01\t\u305D\u3093\u306A\u3082\u3093\u306F\n\u3069\u3053\u306B\u3082\u306A\u3044\u305E";
cl.s32 = "\u539F\u5B50\u529B\u9F3B\u6BDB\u5207\u308A\uFF01\n\u666E\u6BB5\u306F\u81EA\u8EE2\u8ECA\u307F\u305F\u3044\u306A\n\u5F62\u3092\u3057\u3066\u308B\u2026\t\u3042\u308C\u3060\u2026\t\u5C4B\u5916\u306E\u6307\u4EE4\u306E\u3068\u304D\u306B\u4FBF\u5229\u306A\u3093\u3060";
cl.b38 = "\u3061\u3087\u3063\u3068\u5F85\u3063\u3066\u308D\n\u78BA\u8A8D\u3057\u3066\u304F\u308B";
cl.b39 = "\u3082\u3046\u4E00\u3064\u304B\uFF1F\t\u3042\u308A\u304C\u3068\u3088";
cl.b40 = "\u539F\u5B50\u529B\u88C5\u7F6E\u3001\u767A\u6CE8\u3057\u305F\u305E";
cl.s35 = "\u30AF\u30E9\u306E\u8CA1\u5E03\u306B\u306F\n\u3044\u304F\u3089\u3050\u3089\u3044\n\u5165\u3063\u3066\u308B\u306E\u304B\u306A";
cl.b41 = "\u8CB7\u3046\u3082\u306E\u304C\u6C7A\u307E\u3063\u305F\u3089\n\u4FFA\u306B\u898B\u305B\u3066\u304F\u308C";
cl.b42 = "\u3067\u3001\u304A\u91D1\u306F\uFF1F";
cl.b43 = "\u624B\u6301\u3061\u304C\n\u8DB3\u308A\u306A\u3044\u2026";
cl.b44 = "\u5E97\u5185\u76E3\u8996\u4E2D\u3060\t\u4F7F\u3046\u306E\u306F\u3044\u3044\u304C\n\u305D\u306E\u524D\u306B\n\u91D1\u3092\u6255\u3063\u3066\u304F\u308C\n\u57FA\u672C\u3060\u308D";
cl.s36 = "\u30AF\u30E9\u3092\u52A9\u3051\u308B\u305F\u3081\u306A\u306E\u306B\uFF1F";
cl.b45 = "\u3044\u3044\u304B\u3089\u6255\u3048\u3001\n\u30AF\u30DE\u592A\u90CE";
cl.b46 = "\u8CB7\u308F\u306A\u3044\u3093\u3060\u3063\u305F\u3089\n\u3061\u3083\u3093\u3068\u68DA\u306B\u623B\u305B\u3088";
cl.s37 = "\u3046\u30FC";
cl.b47 = "\u305D\u308C\u306F\uFF15\u00A2\u00A2";
cl.b48 = "\u305D\u308C\u306F\uFF12\u00A2\u00A2";
cl.b49 = "\u305D\u308C\u306F\uFF13\uFF10\uFF10\u00A2\u00A2";
cl.b50 = "\u6BCE\u5EA6\u3042\u308A\uFF01";
cl.b51 = "\u304A\u4EE3\u306F\u3082\u3046\n\u3082\u3089\u3063\u305F\u305E\t\u3042\u3042\u3001\u4FFA\u3063\u3066\n\u306A\u3093\u3066\u3044\u3044\u5974\uFF01";
cl.b52 = "\u3069\u3046\u3082\u30AB\u30FC\u30C9\u304C\n\u304A\u304B\u3057\u3044\u307F\u305F\u3044\u306A\u3093\u3060";
cl.s38 = "\u4ECA\u306F\n\u624B\u6301\u3061\u304C\u8DB3\u308A\u306A\u3044";
cl.b52 = "\u3069\u3046\u3082\u30AB\u30FC\u30C9\u304C\n\u304A\u304B\u3057\u3044\u307F\u305F\u3044\u306A\u3093\u3060";
cl.b53 = "\u307E\u3044\u3069\uFF01\u304A\u91E3\u308A\u306F\u5E97\u306E\u4FEE\u5FA9\u4EE3\uFF1F\n\u305D\u3044\u3064\u306F\u60AA\u3044\u306A\u3001\u3042\u308A\u304C\u3068\u3088";
cl.s41 = "\u3084\u3042\u3084\u3042\u8AF8\u541B\uFF01\t\u30B5\u30A4\u30F3\u306A\u3089\n\u7528\u4E8B\u304C\u6E08\u3093\u3067\u304B\u3089\n\u3057\u3066\u3042\u3052\u3088\u3046\u306D\t\u3055\u3066\u3001\u30AF\u30E9\u306E\u30AB\u30FC\u30C9\u3067\n\u3061\u3087\u3063\u304F\u3089\n\u73FE\u91D1\u3092\u304A\u308D\u3059\u304B";
cl.s42 = "\u3048\u3063\uFF1F\t\u8CAF\u91D1\u3092\u5F15\u304D\u51FA\u3059\u306B\u306F\n\u6697\u8A3C\u756A\u53F7\u304C\u5FC5\u8981\u3060\u3063\u3066\uFF1F\t\u306A\u3093\u3066\u4E16\u77E5\u8F9B\u3044\n\u4E16\u306E\u4E2D\u3060\uFF01\t\u53CB\u9054\u304B\u3089\u3061\u3087\u3063\u3068\u62DD\u501F\u3059\u308B\n\u305F\u3060\u305D\u308C\u3060\u3051\u306E\u3053\u3068\u306B\n\u3061\u307E\u3061\u307E\u3068\u2026\u3002\t\u9A5A\u304B\u305B\u3061\u3083\u3063\u305F\u304B\u306A\u3001\n\u3054\u3081\u3093\u3054\u3081\u3093\t\u30D2\u30FC\u30ED\u30FC\u305F\u308B\u3082\u306E\n\u3053\u3093\u306A\u3053\u3068\u3067\u8AE6\u3081\u306A\u3044\uFF01\t\u6697\u8A3C\u756A\u53F7\u306A\u3093\u3066\n\u5F53\u3066\u308C\u3070\u3044\u3044\u3093\u3060\t000001?\t\u9055\u3063\u305F\t000002?\t\u3053\u308C\u3082\u30C0\u30E1\u304B\t000003\u2026";
cl.ft01 = "\u305D\u306E\u3053\u308D\u3001\u30D0\u30FC\u30C1\u30E3\u30EB\u4E16\u754C\u306E\u30AF\u30E9\u306F\u2026";
cl.ft02 = "\u305D\u3057\u3066\u73FE\u5B9F\u4E16\u754C\u3067\u306F\u2026";
cl.ft03 = "\u3057\u3070\u3089\u304F\u3057\u3066\u2026";
cl.ft04 = "\u30B9\u30C6\u30A3\u30FC\u30D6\u306F\n\u7167\u660E\u306E\u30B9\u30A4\u30C3\u30C1\u3092\u63A2\u3057\u3066\u2026";
cl.ft05 = "\u3057\u3070\u3089\u304F\u3057\u3066\u2026\n\u3082\u3046\u4E00\u3064\u306E\u4F8B\u306E\u3042\u306E\u5834\u6240\u3067\u306F";
cl.k56 = "\u898B\u3066\u307F\u308D\u3088\n\u3053\u3063\u3061\u3092\u898B\u3066\u308B\t\u304A\u524D\u306E\u601D\u3044\u901A\u308A\u306B\u306A\u3093\u304B\n\u3055\u305B\u308B\u3082\u3093\u304B\u3001\u5316\u3051\u7269\t\u50D5\u306F\u306A\u3093\u3068\u3057\u3066\u3067\u3082\n\u30AF\u30EA\u30B9\u30DE\u30B9\u306E\u60AA\u970A\u3092\n\u6B62\u3081\u306A\u304F\u3061\u3083\uFF01";
cl.k57 = "\u306A\u3093\u3068\u304B\u3057\u3066\n\u5411\u3053\u3046\u5CB8\u306B\u6E21\u308B\u65B9\u6CD5\u3092\n\u8003\u3048\u306A\u3044\u3068\u306D";
cl.k58 = "\u305D\u3046\u304B\u3001\u3042\u306E\u6728\u3092\n\u3046\u307E\u304F\u4F7F\u3048\u3070\u2026";
cl.dka2 = [];
cl.dka2[0] = "\u6728\u3092\u5012\u3057\u3066";
cl.dka2[1] = "\u8D64\u3044\u30D1\u30FC\u30C4\u306F\u3069\u3053\uFF1F";
cl.dka2[2] = "\u306A\u3093\u3067\u3082\u306A\u3044";
cl.k59 = "\u30D0\u30FC\u30C1\u30E3\u30EB\u30C4\u30EA\u30FC\u3092\u4F10\u3063\u3066";
cl.e07 = "\u5B9F\u884C\u4E2D";
cl.e08 = "\u9042\u884C";
cl.k60 = "\u3055\u3059\u304C\u3060\u306D";
cl.k61 = "\u8D64\u3044\u30D1\u30FC\u30C4\u306F\u3069\u3053\uFF1F";
cl.e09 = "\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\t\u30D6\u30ED\u30C3\u30AF\u304C\u304B\u3051\u3089\u308C\n\u30B5\u30FC\u30C1\u304C\u62D2\u5426\u3055\u308C\u3066\u3044\u307E\u3059";
cl.k62 = "\u81EA\u529B\u3067\u63A2\u3059\u3057\u304B\n\u306A\u3044\u3063\u3066\u3053\u3068\u304B\u2026\t\u3069\u3053\u304B\u5206\u304B\u308A\u3065\u3089\u3044\n\u5834\u6240\u306A\u3093\u3060\u308D\u3046\u306A";
cl.x01 = "\u30CF\u30ED\u30A6\u30A3\u30F3\u306E\u5929\u4F7F\u306E\n\u90AA\u9B54\u306A\u305E\n\u3055\u305B\u308B\u3082\u306E\u304B";
cl.x02 = "\u3042\u30FC\u3001\n\u30CF\u30ED\u30A6\u30A3\u30F3\u3058\u3083\u306A\u3044\n\u30AF\u30EA\u30B9\u30DE\u30B9\u306D";
cl.x03 = "\u3067\u3001\u5929\u4F7F\u3058\u3083\u306A\u3044\n\u60AA\u970A\u3060\u3063\u305F";
cl.x04 = "\u3061\u3063";
cl.k63 = "\u4F55\u306E\u771F\u4F3C\u3060\uFF1F";
cl.x05 = "\u30AF\u30E9\u304C\u6765\u305F\uFF01";
cl.k64 = "\u30AF\u30EA\u30B9\u30DE\u30B9\u306E\u60AA\u970A\u3060\uFF01";
cl.x06 = "\u30DB\u30C3\u30DB\u30FC\uFF01\n\u7D20\u6575\u306A\u540D\u524D\u3060\u306A\t\u3067\u3082\u3001\u30EF\u30B7\u306E\u5B9F\u4F53\u306F\n\u305F\u3060\u306E\u30D7\u30ED\u30B0\u30E9\u30E0\t\u3053\u3046\u3044\u3046\u59FF\u306B\u3055\u305B\u305F\u306E\u306F\n\u304A\u524D\u306E\u610F\u601D\u306A\u3093\u3058\u3083\n\u9762\u767D\u3044\u3082\u3093\u3060\u306A\u3001\u3093\uFF1F";
cl.k65 = "\u306A\u3089\u3001\u30DC\u30AF\u306E\u610F\u601D\u3092\u3082\u3063\u3066\n\u304A\u524D\u3092\u7834\u58CA\u3057\u3066\u3084\u308B\uFF01";
cl.x07 = "\u30DB\u30C3\u30DB\u30FC\uFF01\n\u3067\u304D\u308B\u3082\u3093\u306A\u3089\u3084\u3063\u3066\u307F\u308D\t\u4ECA\u304B\u3089\u30EF\u30B7\u306F\n\u30C7\u30FC\u30BF\u305D\u306E\u3082\u306E\u306B\n\u59FF\u3092\u5909\u3048\u308B\u304C\u2026";
cl.x08 = "\u30EF\u30B7\u306E\u624B\u5148\u304C\u30D7\u30ED\u30B0\u30E9\u30E0\u3057\u305F\n\u3053\u306E\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4\u3092\u901A\u308A\u629C\u3051\u308C\u3070\n\u305D\u3053\u306F\u3082\u3046\u30A4\u30F3\u30BF\u30FC\u30CD\u30C3\u30C8\u306E\u4E16\u754C\t\u6B8B\u5FF5\u3060\u3063\u305F\u306A\t\u8AB0\u306B\u3082\u6B62\u3081\u3089\u308C\u306C\u308F\uFF01";
cl.k66 = "\u3060\u3063\u305F\u3089\u3001\n\u3053\u306E\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4\u3092\n\u7834\u58CA\u3057\u3066\u3084\u308B";
cl.x09 = "\u30DB\u30C3\u30DB\u30FC\uFF01\t\u30E1\u30EA\u30FC\u30AF\u30EA\u30B9\u30DE\u30B9\u3001\n\u53D7\u3051\u53D6\u308C\uFF01";
cl.k67 = "\u52D5\u3051\u306A\u3044\u3088\u30FC\uFF01";
cl.x10 = "\u305D\u3046\u3060\u308D\u3046\u306A\t\u3055\u3066\u3001\u3044\u3044\u5B50\u306B\u3057\u3066\u308D\u3088\n\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4\u306E\u8D77\u52D5\u307E\u3067\n\u3042\u3068\u6570\u5206\u304B\u304B\u308B\t\u305D\u306E\u9593\u30D7\u30EC\u30A4\u30E4\u30FC\u306B\u306F\n\u30B9\u30C6\u30A3\u30FC\u30D6\u306E\u4E16\u8A71\u3092\n\u3057\u3066\u3082\u3089\u304A\u3046";
cl.x11 = "\u3069\u3046\u3044\u3046\u610F\u5473\uFF1F";
cl.x12 = "\u304A\u3063\u3068\u2026\t\u4F55\u306E\u3053\u3068\u3060\u308D\u3046\u306A\n\u30A6\u30A3\u30EB\u30B9\u306B\u3067\u3082\u611F\u67D3\u3057\u305F\u304B\uFF1F";
cl.k68 = "\u3044\u3066\u3063";
cl.s50 = "\u30B7\u30F3\u30B8\u30E9\u30EC\u30CA\u30FC\u30A4\uFF01\t\u6697\u8A3C\u756A\u53F7\u3092\u305F\u3063\u305F\uFF13\u56DE\n\u9593\u9055\u3048\u305F\u3060\u3051\u3067\n\u30AB\u30FC\u30C9\u4F7F\u3048\u306A\u304F\u306A\u3063\u3061\u307E\u3063\u305F";
cl.s51 = "\u5973\u306E\u5B50\u305F\u3061\u3082\n\u52A9\u3051\u3066\u304F\u308C\u306A\u304B\u3063\u305F\u3057\u2026\t\u3069\u3046\u3059\u308A\u3083\u3044\u3044\u3093\u3060\uFF1F";
cl.s52 = "\u305D\u3046\u304B\uFF01\t\u3053\u3046\u306A\u3063\u305F\u3089";
cl.s53 = "\u516C\u5712\u306B\u884C\u304F\u305E\uFF01";
cl.s54 = "\u723A\u3055\u3093\uFF01";
cl.j01 = "\u30B8\u30A7\u30D9\u30C7\u30A3\u30A2\u30FB\u30C8\u30E0\u30FB\u30B8\u30D5\u30EA\u3060\n\u899A\u3048\u3066\u304A\u304F\u3068\u3044\u3044\u3001\u574A\u4E3B";
cl.s55 = "\u9577\u3044\u540D\u524D\u3060\u306D\n\u3081\u3093\u3069\u304F\u3055\u3044\u304B\u3089\n\u723A\u3055\u3093\u3067\u3044\u3044\u3084";
cl.dsj = [];
cl.dsj[0] = "\u30D7\u30E9\u30F3\uFF21";
cl.dsj[1] = "\u30D7\u30E9\u30F3\uFF22";
cl.dsj[2] = "\u30D7\u30E9\u30F3\uFF23";
cl.dsj[3] = "\u306A\u3093\u3067\u3082\u306A\u3044";
cl.s56 = "\uFF13\uFF10\uFF10\u00A2\u00A2\u8CB8\u3057\u3066\uFF01";
cl.j02 = "\u3044\u3044\u3068\u3082\u3001\n\u304A\u524D\u3055\u3093\u306A\u3089\n\u4FE1\u7528\u3067\u304D\u305D\u3046\u3060\t\u3053\u306E\u3078\u3093\u306E\u9023\u4E2D\u306F\nwarbears\u306B\u306F\n\u3044\u3064\u3082\u4E16\u8A71\u306B\u306A\u3063\u3066\u308B\u3057\u306A";
cl.s57 = "\u3084\u3063\u305F";
cl.s58 = "\u3061\u3083\u3093\u3068\u8FD4\u305B\u308B\u304B\u3069\u3046\u304B\n\u4FDD\u8A3C\u306F\u3067\u304D\u306A\u3044\u3093\u3060\u3051\u3069\u306D";
cl.j03 = "\u6C17\u304C\u5909\u308F\u3063\u305F\u3088\n\u305D\u3046\u3060\u3001\u53F8\u4EE4\u5B98\u306B\u3067\u3082\n\u983C\u3093\u3067\u307F\u305F\u3089\u3069\u3046\u3060";
cl.s59 = "\u6B63\u76F4\u306B\u8A00\u3063\u305F\u306E\u306B\n\u3053\u3093\u306A\u4ED5\u6253\u3061\uFF01\uFF1F";
cl.s60 = "\u306D\u3048\u3001\u3053\u306E\u3042\u3044\u3060\n\u9053\u3092\u6E21\u308C\u306A\u304F\u3066\u56F0\u3063\u3066\u305F\u3068\u304D\n\u30EB\u30FC\u30AB\u30B9\u304C\u52A9\u3051\u3066\u305F\u3088\u306D\uFF1F";
cl.j04 = "\u306F\u3066\u2026";
cl.s61 = "\u5FD8\u308C\u3061\u3083\u3063\u305F\uFF1F\t\u305D\u3046\u304B\u3001\u723A\u3055\u3093\u3082\u3046\n\u30DC\u30B1\u304B\u3051\u3066\u308B\u3057\n\u4ED5\u65B9\u306A\u3044\u306E\u304B\u306A";
cl.j05 = "\u4F55\u3092\u8A00\u3063\u3068\u308B\uFF01\n\u30EF\u30B7\u3083\u307E\u3060\u73FE\u5F79\u3060\u308F\u3044";
cl.s62 = "\u307B\u3089\u306D\u3001\u307F\u3093\u306A\n\u305D\u3046\u8A00\u3046\u3093\u3060\u3088\t\u307E\u3042\u3001\u3044\u3044\u304B\u2026\u305D\u308C\u3067\n\u30EB\u30FC\u30AB\u30B9\u304C\u305D\u306E\u304A\u793C\u3092\n\u6B32\u3057\u304C\u3063\u3066\u308B\u3093\u3060\u3051\u3069";
cl.j06 = "\u305D\u3044\u3064\u306F\u9762\u767D\u3044\u5197\u8AC7\u3060\u306A\u3001\n\u30A4\u30BF\u30BA\u30E9\u574A\u4E3B";
cl.s63 = "\u304A\u91D1\u304C\n\u5FC5\u8981\u306A\u3093\u3060\u3088\u30FC\uFF01";
cl.s64 = "\u3044\u3084\u3041\u3001\u4ECA\u65E5\u306F\n\u672C\u5F53\u306B\u6691\u3044\u306D\uFF01";
cl.j07 = "\u771F\u51AC\u3060\u305E";
cl.s65 = "\u3044\u3084\u3044\u3084\u3001\u305F\u3063\u305F\u4ECA\n\u590F\u306B\u306A\u3063\u305F\u306E\uFF01\t\u307B\u3089\u3001\u524D\u8DB3\u304C\u4E7E\u3044\u3066\u308B\u3060\u308D\n\u3053\u3093\u306A\u306B\u6691\u3044\u3093\u3060\u3082\u3093\uFF01";
cl.j08 = "\u306A\u3093\u3060\u304B\u5589\u304C\u6E07\u3044\u3066\u304D\u305F\u305E";
cl.j10 = "\u304E\u3083\u30FC\uFF01";
cl.s66 = "\u30AA\u30EC\u5929\u624D\uFF01\t\u88C1\u5224\u6C99\u6C70\u306B\u306A\u3063\u3061\u3083\u3063\u305F\u6642\u306E\n\u8A00\u3044\u8A33\u3092\u8003\u3048\u3066\u304A\u304F\u3068\u3059\u308B\u304B\n\u3060\u3063\u3066\u3001\u3053\u308C\u306F\u4E8B\u6545\u3060\u3082\u3093\u306D";
cl.s70 = "\u3053\u308C\u306F\u2026\n\u30D7\u30E9\u30F3\uFF23\u767A\u52D5\u306E\u30C1\u30E3\u30F3\u30B9\uFF01";
cl.j09 = "warbear!\u52A9\u3051\u3066\u304F\u308C\uFF01\t\u3061\u3087\u3063\u3068\u3057\u305F\u4E8B\u6545\u304C\n\u8D77\u3053\u3063\u305F\u3088\u3046\u3067\u306A\uFF01";
cl.s67 = "\u3084\u3063\u305F\u3001\u4E8B\u6545\u3060\u3063\u3066\t\u4F55\u306E\u554F\u984C\u3082\u306A\u304F\n\u76EE\u7684\u9054\u6210\u3067\u304D\u305D\u3046\u3060\uFF01";
cl.s68 = "\u304A\u3084\u304A\u3084\u3001\u723A\u3055\u3093\n\u3072\u3069\u3044\u76EE\u306B\u906D\u3063\u3061\u307E\u3063\u305F\u306D\t\u52A9\u3051\u305F\u3089\u304A\u793C\u306A\u3093\u304B\n\u3082\u3089\u3048\u3061\u3083\u3046\u3068\n\u5B09\u3057\u3044\u306A\u30FC\u3001\u306A\u3093\u3066";
cl.s69 = "\u3055\u3042\u3001\u3053\u308C\u3067\u5FC5\u8981\u306A\u3082\u306E\u306F\n\u5168\u90E8\u63C3\u3063\u305F\u306F\u305A\u3060\n\u3082\u3046\u3059\u3050\u30CF\u30C3\u30D4\u30FC\u30A8\u30F3\u30C9\uFF01";
cl.s71 = "\u304A\u3046\u2026";
cl.s72 = "\u2026\u4ECA\u306E\u97F3\u306F\n\u300C\u5165\u308C\u3066\u3084\u3089\u306A\u3044\u3088\u30FC\u3060\u300D\n\u3063\u3066\u3053\u3068\u3060";
cl.s73 = "\u3053\u3053\u3067\u30CF\u30A4\u30C6\u30AF\u306E\u51FA\u756A\u3060\n\u983C\u3093\u3060\u305E\uFF01";
cl.s74 = "\u3084\u3063\u305F\u30FC\uFF01";
cl.s75 = "\u3053\u308C\u3058\u3083\u4F55\u3082\u898B\u3048\u306A\u3044\u3001\n\u7167\u660E\u306E\u30B9\u30A4\u30C3\u30C1\u306F\u3069\u3053\u3060\uFF1F";
cl.k69 = "\u30B5\u30F3\u30AD\u30E5\u30FC";
cl.k70 = "\u3053\u306E\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4\u3092\n\u9589\u3058\u308B\u65B9\u6CD5\u3092\n\u8003\u3048\u306A\u304F\u3063\u3061\u3083";
cl.k71 = "\u3053\u306E\u30B9\u30ED\u30C3\u30C8\u304B\u3089\n\u4F55\u304B\u304C\u843D\u3061\u305F\u3093\u3060\u306A\u2026";
cl.k72 = "\u30D1\u30FC\u30C4\u304C\n\u4E00\u3064\u8DB3\u308A\u306A\u3044\uFF01\t\u304D\u3063\u3068\u3069\u3053\u304B\n\u5206\u304B\u308A\u3065\u3089\u3044\u5834\u6240\u306B\u3042\u308B\u3093\u3060";
cl.k73 = "\u3053\u3053\u306B\n\u4F55\u304B\u3042\u308B\u305E";
cl.k74 = "\u8D64\u3044\u30D1\u30FC\u30C4\u3092\n\u898B\u3064\u3051\u305F";
cl.k75 = "\u3055\u3042\u3001\u3053\u308C\u3067\n\u60AA\u3060\u304F\u307F\u3092\u7D42\u308F\u3089\u305B\u3088\u3046";
cl.k76 = "\u3042\u308C\u308C\u3001\n\u4F55\u3082\u8D77\u3053\u3089\u306A\u3044";
cl.k77 = "\u3088\u3057\u3001\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4\u3092\n\u505C\u6B62\u3055\u305B\u305F\u305E\uFF01";
cl.x13 = "\u3053\u306E\u91CE\u90CE\uFF01\t\u30EF\u30B7\u306E\u8A08\u753B\u304C\n\u3081\u3061\u3083\u304F\u3061\u3083\u3060\uFF01\t\u3048\u3048\u3044\u3001\u4ED5\u8FD4\u3057\u3060\n\u4ECA\u66F4\u53CD\u7701\u3057\u3066\u3082\u2026";
cl.x14 = "\u304E\u3083\u30FC\uFF01";
cl.k78 = "\u304A\u3044\u76F8\u68D2\u3001\n\u3053\u308C\u306F\u4E00\u4F53\uFF1F";
cl.e10 = "\u73FE\u5B9F\u4E16\u754C\u306E\u5149\u304C\n\u3053\u3061\u3089\u5074\u306B\u5C4A\u3044\u305F\u3088\u3046\u3067\u3059";
cl.x15 = "\u306A\u3093\u3068\u3044\u3046\u3053\u3068\u3060\n\u76EE\u306E\u524D\u304C\u30C1\u30AB\u30C1\u30AB\u3059\u308B";
cl.k79 = "\u76F8\u68D2\u3001\u4ECA\u3060\n\u3042\u3044\u3064\u3089\u304C\u52D5\u3051\u306A\u304F\u306A\u3063\u3066\u308B\u3046\u3061\u306B\n\u30D7\u30ED\u30B0\u30E9\u30E0\u3092\u3076\u3063\u58CA\u3059\u305E";
cl.s78 = "\u3053\u308A\u3083\t\u307E\u305F\t\u306A\u3093\u3066\u3053\u3063\u305F\uFF01\t\u30B9\u30A4\u30C3\u30C1\u2026\n\u5165\u308C\u306A\u304D\u3083\u3088\u304B\u3063\u305F\t\u30AF\u30E9\u306E\u8133\u307F\u305D\n\u30DB\u30AB\u30DB\u30AB\u306B\u306A\u3063\u3061\u3083\u3063\u305F\u304B\u306A";
cl.s79 = "\u3059\u3052\u3048\t\u305D\u3046\u3044\u3048\u3070\u30DC\u30D6\u304C\n\u300C\u96FB\u5B50\u5149\u7DDA\u300D\u3068\u304B\u8A00\u3063\u3066\u305F\u306A";
cl.k80 = "\u5974\u3089\u3092\u6B62\u3081\u308D\n\u3082\u3063\u3068\u5149\u3092\uFF01";
cl.s80 = "\u8FD1\u3065\u3051\u306A\u3044\u2026\n\u30AF\u30DE\u306E\u4E38\u713C\u304D\u306F\u3001\u3042\u307E\u308A\n\u3044\u3044\u5302\u3044\u3058\u3083\u306A\u3044";
cl.s81 = "\u8FFD\u52A0\u306E\u30CD\u30AA\u30F3\u30E9\u30A4\u30C8\u304B\n\u3053\u308C\u3067\u4F55\u304B\u3067\u304D\u308B\u304B\u306A";
cl.s82 = "\u30AF\u30E9\u3001\u53D7\u3051\u53D6\u308C\uFF01";
cl.x16 = "\u30DB\u30C3\u30DB\u30C3\u30DB\u30FC\t\u304A\u524D\u306F\u3068\u30FC\u3063\u3066\u3082\n\u60AA\u30FC\u3044\u5B50\u3060\u3063\u305F\u306D\uFF01\t\u3055\u3042\u3001\n\u3057\u3064\u3051\u306E\u6642\u9593\u3060\t\u7247\u4ED8\u3051\u304C\u7D42\u308F\u3063\u305F\u3089\n\u3082\u3046\u4E00\u5EA6\u30B2\u30FC\u30C8\u30A6\u30A7\u30A4\u3092\u958B\u304F\u305E\t\u30DB\u30C3\u30DB\u30C3\u30DB\u30FC";
cl.x17 = "\u304E\u3083\u3042\u3042\t\u307E\u305F\u3053\u308C\u304B\uFF01";
cl.k81 = "\u4ECA\u3060\uFF01\u524A\u9664\u3057\u308D\uFF01";
cl.k82 = "\u304A\u524D\u306F\u6700\u9AD8\u3060\uFF01\n\u30AF\u30EA\u30B9\u30DE\u30B9\u306E\u60AA\u970A\u306F\n\u3064\u3044\u306B\u9000\u6CBB\u3055\u308C\u305F";
cl.k83 = "\u30AF\u30EA\u30B9\u30DE\u30B9\u3068\u2026\t\u30A4\u30F3\u30BF\u30FC\u30CD\u30C3\u30C8\u3068\u2026\t\u3042\u3068\u3001\u30DC\u30AF\u306E\u547D\u304C\u52A9\u304B\u3063\u305F\uFF01";
cl.k84 = "\u3055\u3066\u3001\u3069\u3046\u3084\u3063\u3066\n\u3053\u3053\u304B\u3089\u51FA\u3088\u3046";
cl.e11 = "\u30E1\u30A4\u30F3\u30D7\u30ED\u30B0\u30E9\u30E0\u3000\u6D88\u53BB";
cl.k85 = "\u3042\u3042\u3001\u3053\u308C\u3067\n\u5168\u90E8\u89E3\u6C7A\u3057\u305D\u3046\u3060";
cl.s83 = "\u306F\u3063\u306F\u3063\u306F\uFF01\n\u4E2D\u3067\u306F\u305D\u308A\u3083\u3082\u3046\n\u51C4\u3044\u4E8B\u304C\u3042\u3063\u305F\u3093\u3060\u2026";
cl.r01 = "\u30DE\u30B8\u30AE\u30EC\u3057\u305D\u3046";
cl.l02 = "\u30B9\u30C6\u30A3\u30FC\u30D6\u3001\u305D\u308C\u3067\n\u30AF\u30E9\u306F\u3069\u3053\u306B\u3044\u308B\uFF1F";
cl.k86 = "\u307F\u3093\u306A\uFF01\u3042\u3042\u3001\u3084\u3063\u3068\n\u73FE\u5B9F\u306B\u623B\u3063\u3066\u6765\u3089\u308C\u305F\u3088\uFF01";
cl.l03 = "\u73FE\u5B9F\u2026\u3063\u3066\n\u3069\u3046\u3044\u3046\u3053\u3068\u3060\u3088";
cl.s84 = "\u305D\u308A\u3083\u3001\u3042\u308C\u3060\u3001\u5E97\u306E\u4E2D\u306B\n\u305A\u3063\u3068\u5F15\u304D\u3053\u3082\u3063\u3066\u8CB7\u3044\u7269\u3057\u3066\u305F\u304B\u3089\n\u5916\u306E\u4E16\u754C\u304C\u65B0\u9BAE\u306A\u3093\u3060\u308D\u3046\u3088";
cl.s85 = "\u3060\u3088\u306A\u3001\u30AF\u30E9\uFF1F\t\u3042\u3042\u3001\u305D\u3046\u3060";
cl.l04 = "\u3055\u3042\u3001\u3053\u308C\u304B\u3089\u3069\u3046\u3057\u3088\u3046\u304B\n\u307E\u305F\u6027\u61F2\u308A\u3082\u306A\u304F\u30C8\u30E9\u30D6\u30EB\u3092\u8D77\u3053\u3057\u305F\n\u30B9\u30C6\u30A3\u30FC\u30D6\u3092\u3076\u3063\u6BBA\u3059\u304B\n\u4F55\u3082\u306A\u304B\u3063\u305F\u3053\u3068\u306B\u3057\u3066\u5BFF\u53F8\u3092\u98DF\u3044\u306B\u884C\u304F\u304B";
cl.s86 = "\u305D\u308A\u3083\u5BFF\u53F8\u3060\u308D";
cl.r02 = "\u304A\u524D\u306B\u306F\n\u805E\u3044\u3066\u306A\u3044";
cl.k87 = "\u884C\u3053\u3046\u3088\u3001\u9762\u767D\u3044\n\u30AF\u30EA\u30B9\u30DE\u30B9\u306E\u8A71\u304C\u3042\u308B\u3093\u3060";
cl.s87 = "\u4FFA\u69D8\u306E\u3057\u305F\u3053\u3068\u306F\n\u5185\u7DD2\u306B\u3057\u3066\u304A\u3051\u3088\uFF01";
cl.x18 = "\u30DB\u30C3\u30DB\u30C3\u30DB\u30FC";
cl.j11 = "\u3042\u3042\u30FB\u30FB\u30FB\n\u8981\u3089\u306A\u3044\u7269\u306E\u59CB\u672B\u306F\n\u6700\u5F8C\u307E\u3067\u8CAC\u4EFB\u3092\u6301\u305F\u306A\u3044\u3068";
cl.j12 = "\u3042\u308C\u3001\u306A\u3093\u3067\n\u3053\u3093\u306A\u6240\u306B\uFF1F";
cl.e12 = "\u30B2\u30F3\u30AB\u30AF\u30B4\u30FC\u30B0\u30EB\u3092\n\u898B\u3064\u3051\u3066\n\u8A66\u3057\u307E\u3057\u305F\u306D";
cl.j23 = "\u3067\u3082\u3001\u30B4\u30FC\u30B0\u30EB\u3092\n\u304B\u3051\u3066\u308B\u3088\u3046\u306B\u898B\u3048\u3093\u305E";
cl.e27 = "\u3042\u306A\u305F\u306B\u306F\n\u4F3C\u5408\u308F\u306A\u3044\u304B\u3089\u3067\u3059";
cl.j13 = "\u3067\u3001\u3069\u3046\u3057\u3066\u30AF\u30E9\u306E\u60AA\u5922\u306B\n\u9589\u3058\u8FBC\u3081\u3089\u308C\u3066\u308B\u3093\u3060\uFF1F";
cl.e13 = "\u540C\u3058\u30DD\u30A4\u30F3\u30C8\u306B\n\u3064\u306A\u304C\u3063\u3066\u3044\u305F\n\u8907\u6570\u306E\u30B4\u30FC\u30B0\u30EB\u306B\n\u5F71\u97FF\u304C\u51FA\u305F\u3088\u3046\u3067\u3059";
cl.j14 = "\u30A6\u30A3\u30EB\u30B9\u5BFE\u7B56\u306F\n\u3057\u3066\u306A\u3044\u306E\u304B\uFF1F";
cl.e14 = "\u79C1\u304C\u30A6\u30A3\u30EB\u30B9\u5BFE\u7B56\u3067\u3059";
cl.j15 = "\u3060\u3063\u305F\u3089\u4F55\u3068\u304B\u3059\u308C\u3070\n\u3088\u304B\u3063\u305F\u3058\u3083\u306A\u3044\u304B";
cl.e15 = "\u3084\u3063\u3066\u307E\u3059";
cl.j16 = "\u306A\u308B\u307B\u3069\u3002\u306A\u3042\u3001\u3069\u3046\u3057\u3066\n\u3053\u306E\u723A\u304C\u30B3\u30F3\u30D4\u30E5\u30FC\u30BF\u306B\u8A73\u3057\u3044\u304B\n\u77E5\u308A\u305F\u304F\u306A\u3044\u304B\uFF1F";
cl.e16 = "\u30D7\u30ED\u30B0\u30E9\u30E0\u306E\u6027\u8CEA\u4E0A\n\u79C1\u306F\u8CEA\u554F\u3092\u3067\u304D\u307E\u305B\u3093\n\u8FD4\u7B54\u3059\u308B\u306E\u307F\u3067\u3059";
cl.e25 = "\u30D0\u30FC\u30AB\u30D0\u30FC\u30AB";
cl.e26 = "\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u8A8D\u3081\u308B";
cl.j17 = "\u3042\u3042\u3001\u305D\u3046\u3060\uFF01\u4ECA\u3059\u3050\u306B\n\u3053\u3053\u304B\u3089\u73FE\u5B9F\u306B\u623B\u3057\u3066\u304F\u308C\u306A\u3044\u304B";
cl.e18 = "\u30B7\u30B9\u30C6\u30E0\u30EA\u30BD\u30FC\u30B9\u306E\n\uFF19\uFF19\uFF05\u3092\u8981\u3059\u308B\u30B9\u30AD\u30E3\u30F3\u3092\n\u884C\u3063\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u30BF\u30B9\u30AF\u306F\n\u73FE\u5728\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093";
cl.j18 = "\u3069\u308C\u3050\u3089\u3044\u304B\u304B\u308B\uFF1F";
cl.e19 = "\uFF11\uFF14\u6642\u9593\uFF13\u5206\u3068\n\uFF18\uFF11\u79D2\u3067\u3059";
cl.j19 = "\u3067\u3082\u3053\u3053\u306F\u3082\u3046\u98FD\u304D\u305F\u3001\n\u65E9\u304F\u516C\u5712\u306B\u623B\u3063\u3066\n\u4F55\u304B\u8D77\u3053\u3089\u306A\u3044\u304B\u3092\n\u898B\u5B88\u3089\u306D\u3070\u2026";
cl.j20 = "\u306A\u3042\u3001\u3082\u3057\u3082\u30EF\u30B7\u306B\n\u6642\u9593\u3092\u805E\u304B\u306D\u3070\u306A\u3089\u306A\u3051\u308C\u3070\n\u3069\u3093\u306A\u3075\u3046\u306B\u8A00\u3046\uFF1F";
cl.e20 = "\u4ECA\u3001\u4F55\u6642\u3067\u3057\u3087\u3046\u304B";
cl.j21 = "\u304A\u3084\u3001\u8CEA\u554F\u3058\u3083\u306A\u3044\u304B\n\u7269\u3092\u8A0A\u306D\u308B\u3063\u3066\u3053\u3068\u304C\n\u3067\u304D\u306A\u3044\u3093\u3058\u3083\u306A\u304B\u3063\u305F\u306E\u304B";
cl.e21 = "\u30D3\u30FC\u30C3\uFF01\n\u30B7\u30B9\u30C6\u30E0\u7570\u5E38\u767A\u751F";
cl.e22 = "\u8131\u51FA\u3059\u308B";
cl.j22 = "\u96E8\u7C92\u3092\u6570\u3048\u3066\u6570\u5B66\u306E\u52C9\u5F37\u3092\u3057\u305F\n\u7532\u6590\u304C\u3042\u3063\u305F\u3063\u3066\u3082\u3093\u3060\u306A\u3001\n\u982D\u3044\u3044\u306A\u3042\u3001\u30EF\u30B7\u306F";
cl.e23 = "ok";
cl.e24 = "\u3053\u306E\u30B2\u30FC\u30E0\u3092\u7D42\u4E86\u3057\u3066\nwarbears.com\u306B\u623B\u308B";
cl.cr01 = "Warbears Adventures#";
cl.cr01 = cl.cr01 + " An A.R. X-Mas #";
cl.cr01 = cl.cr01 + " - The End - @";
cl.cr01 = cl.cr01 + "Thanks for playing@";
cl.cr01 = cl.cr01 + "Created by ...#";
cl.cr01 = cl.cr01 + "Gionatan Iasio@";
cl.cr01 = cl.cr01 + "Music by ... #";
cl.cr01 = cl.cr01 + "Gionatan Iasio@";
cl.cr01 = cl.cr01 + "Japanese translation: #";
cl.cr01 = cl.cr01 + "Naoko-san the Kindhearted@";
cl.cr01 = cl.cr01 + "Beta testing by ...@";
cl.cr01 = cl.cr01 + "Nifriz the#";
cl.cr01 = cl.cr01 + "Codrogonte@";
cl.cr01 = cl.cr01 + "Luca the fat#";
cl.cr01 = cl.cr01 + " RoadRunner @";
cl.cr01 = cl.cr01 + "Enrico Nuclear Launch#";
cl.cr01 = cl.cr01 + " Detective Gaffuri @";
cl.cr01 = cl.cr01 + "English consultant: #";
cl.cr01 = cl.cr01 + "Miz the Criminologist@";
cl.cr01 = cl.cr01 + "Special thanks to ...@";
cl.cr01 = cl.cr01 + "Warbears.com mods: Benj, #";
cl.cr01 = cl.cr01 + "IMNN,Mac,Mandy,Mochi,Rosie@";
cl.cr01 = cl.cr01 + "All Warbears fans#";
cl.cr01 = cl.cr01 + " in the world! @";
cl.cr01 = cl.cr01 + "Sjarri for #";
cl.cr01 = cl.cr01 + "his support@";
cl.cr01 = cl.cr01 + "Stay tuned for the next#";
cl.cr01 = cl.cr01 + " Warbears Adventure! @";
_global.cl = alan[lan];
_global.fcw = [];
_global.fch = [];
_global.fch[1] = 10;
_global.fcw[1] = [];
fcw[1][1] = 0;
fcw[1][2] = 0;
fcw[1][3] = 0;
fcw[1][4] = 0;
fcw[1][5] = 0;
fcw[1][6] = 0;
fcw[1][7] = 0;
fcw[1][8] = 0;
fcw[1][9] = 16;
fcw[1][10] = 0;
fcw[1][11] = 0;
fcw[1][12] = 0;
fcw[1][13] = 0;
fcw[1][14] = 0;
fcw[1][15] = 0;
fcw[1][16] = 0;
fcw[1][17] = 0;
fcw[1][18] = 0;
fcw[1][19] = 0;
fcw[1][20] = 0;
fcw[1][21] = 0;
fcw[1][22] = 0;
fcw[1][23] = 0;
fcw[1][24] = 0;
fcw[1][25] = 0;
fcw[1][26] = 0;
fcw[1][27] = 0;
fcw[1][28] = 0;
fcw[1][29] = 0;
fcw[1][30] = 0;
fcw[1][31] = 0;
fcw[1][32] = 4;
fcw[1][33] = 2;
fcw[1][34] = 4;
fcw[1][35] = 6;
fcw[1][36] = 6;
fcw[1][37] = 6;
fcw[1][38] = 7;
fcw[1][39] = 2;
fcw[1][40] = 3;
fcw[1][41] = 3;
fcw[1][42] = 6;
fcw[1][43] = 6;
fcw[1][44] = 3;
fcw[1][45] = 5;
fcw[1][46] = 2;
fcw[1][47] = 6;
fcw[1][48] = 6;
fcw[1][49] = 3;
fcw[1][50] = 6;
fcw[1][51] = 6;
fcw[1][52] = 6;
fcw[1][53] = 6;
fcw[1][54] = 6;
fcw[1][55] = 5;
fcw[1][56] = 6;
fcw[1][57] = 6;
fcw[1][58] = 2;
fcw[1][59] = 3;
fcw[1][60] = 4;
fcw[1][61] = 6;
fcw[1][62] = 4;
fcw[1][63] = 5;
fcw[1][64] = 6;
fcw[1][65] = 5;
fcw[1][66] = 5;
fcw[1][67] = 5;
fcw[1][68] = 5;
fcw[1][69] = 5;
fcw[1][70] = 4;
fcw[1][71] = 5;
fcw[1][72] = 5;
fcw[1][73] = 2;
fcw[1][74] = 3;
fcw[1][75] = 5;
fcw[1][76] = 2;
fcw[1][77] = 8;
fcw[1][78] = 5;
fcw[1][79] = 5;
fcw[1][80] = 5;
fcw[1][81] = 5;
fcw[1][82] = 4;
fcw[1][83] = 5;
fcw[1][84] = 4;
fcw[1][85] = 5;
fcw[1][86] = 5;
fcw[1][87] = 8;
fcw[1][88] = 5;
fcw[1][89] = 5;
fcw[1][90] = 5;
fcw[1][91] = 3;
fcw[1][92] = 6;
fcw[1][93] = 3;
fcw[1][94] = 4;
fcw[1][95] = 6;
fcw[1][96] = 3;
fcw[1][97] = 6;
fcw[1][98] = 6;
fcw[1][99] = 6;
fcw[1][100] = 6;
fcw[1][101] = 6;
fcw[1][102] = 6;
fcw[1][103] = 6;
fcw[1][104] = 6;
fcw[1][105] = 2;
fcw[1][106] = 5;
fcw[1][107] = 6;
fcw[1][108] = 5;
fcw[1][109] = 6;
fcw[1][110] = 6;
fcw[1][111] = 6;
fcw[1][112] = 6;
fcw[1][113] = 6;
fcw[1][114] = 6;
fcw[1][115] = 6;
fcw[1][116] = 6;
fcw[1][117] = 6;
fcw[1][118] = 6;
fcw[1][119] = 8;
fcw[1][120] = 6;
fcw[1][121] = 6;
fcw[1][122] = 6;
fcw[1][123] = 4;
fcw[1][124] = 2;
fcw[1][125] = 4;
fcw[1][126] = 5;
fcw[1][127] = 0;
fcw[1][128] = 0;
fcw[1][129] = 0;
fcw[1][130] = 0;
fcw[1][131] = 0;
fcw[1][132] = 0;
fcw[1][133] = 0;
fcw[1][134] = 0;
fcw[1][135] = 0;
fcw[1][136] = 0;
fcw[1][137] = 0;
fcw[1][138] = 0;
fcw[1][139] = 0;
fcw[1][140] = 0;
fcw[1][141] = 0;
fcw[1][142] = 0;
fcw[1][143] = 0;
fcw[1][144] = 0;
fcw[1][145] = 0;
fcw[1][146] = 0;
fcw[1][147] = 0;
fcw[1][148] = 0;
fcw[1][149] = 0;
fcw[1][150] = 0;
fcw[1][151] = 0;
fcw[1][152] = 0;
fcw[1][153] = 0;
fcw[1][154] = 0;
fcw[1][155] = 0;
fcw[1][156] = 0;
fcw[1][157] = 0;
fcw[1][158] = 0;
fcw[1][159] = 0;
fcw[1][160] = 0;
fcw[1][161] = 2;
fcw[1][162] = 5;
fcw[1][163] = 6;
fcw[1][164] = 7;
fcw[1][165] = 6;
fcw[1][166] = 2;
fcw[1][167] = 4;
fcw[1][168] = 4;
fcw[1][169] = 6;
fcw[1][170] = 4;
fcw[1][171] = 6;
fcw[1][172] = 6;
fcw[1][173] = 5;
fcw[1][174] = 6;
fcw[1][175] = 4;
fcw[1][176] = 4;
fcw[1][177] = 6;
fcw[1][178] = 4;
fcw[1][179] = 4;
fcw[1][180] = 3;
fcw[1][181] = 6;
fcw[1][182] = 6;
fcw[1][183] = 2;
fcw[1][184] = 3;
fcw[1][185] = 2;
fcw[1][186] = 4;
fcw[1][187] = 6;
fcw[1][188] = 8;
fcw[1][189] = 8;
fcw[1][190] = 9;
fcw[1][191] = 5;
fcw[1][192] = 5;
fcw[1][193] = 5;
fcw[1][194] = 5;
fcw[1][195] = 5;
fcw[1][196] = 5;
fcw[1][197] = 5;
fcw[1][198] = 8;
fcw[1][199] = 5;
fcw[1][200] = 5;
fcw[1][201] = 5;
fcw[1][202] = 5;
fcw[1][203] = 5;
fcw[1][204] = 3;
fcw[1][205] = 3;
fcw[1][206] = 4;
fcw[1][207] = 4;
fcw[1][208] = 5;
fcw[1][209] = 5;
fcw[1][210] = 5;
fcw[1][211] = 5;
fcw[1][212] = 5;
fcw[1][213] = 5;
fcw[1][214] = 5;
fcw[1][215] = 5;
fcw[1][216] = 5;
fcw[1][217] = 5;
fcw[1][218] = 5;
fcw[1][219] = 5;
fcw[1][220] = 5;
fcw[1][221] = 5;
fcw[1][222] = 5;
fcw[1][223] = 5;
fcw[1][224] = 6;
fcw[1][225] = 6;
fcw[1][226] = 6;
fcw[1][227] = 6;
fcw[1][228] = 6;
fcw[1][229] = 6;
fcw[1][230] = 10;
fcw[1][231] = 6;
fcw[1][232] = 6;
fcw[1][233] = 6;
fcw[1][234] = 6;
fcw[1][235] = 6;
fcw[1][236] = 3;
fcw[1][237] = 3;
fcw[1][238] = 4;
fcw[1][239] = 4;
fcw[1][240] = 7;
fcw[1][241] = 6;
fcw[1][242] = 6;
fcw[1][243] = 6;
fcw[1][244] = 6;
fcw[1][245] = 6;
fcw[1][246] = 6;
fcw[1][247] = 6;
fcw[1][248] = 6;
fcw[1][249] = 6;
fcw[1][250] = 6;
fcw[1][251] = 6;
fcw[1][252] = 6;
fcw[1][253] = 6;
fcw[1][254] = 5;
fcw[1][255] = 5;
_global.fch[2] = 15;
_global.fcw[2] = [];
fcw[2][1] = 0;
fcw[2][2] = 0;
fcw[2][3] = 0;
fcw[2][4] = 0;
fcw[2][5] = 0;
fcw[2][6] = 0;
fcw[2][7] = 0;
fcw[2][8] = 0;
fcw[2][9] = 26;
fcw[2][10] = 0;
fcw[2][11] = 0;
fcw[2][12] = 0;
fcw[2][13] = 0;
fcw[2][14] = 0;
fcw[2][15] = 0;
fcw[2][16] = 0;
fcw[2][17] = 0;
fcw[2][18] = 0;
fcw[2][19] = 0;
fcw[2][20] = 0;
fcw[2][21] = 0;
fcw[2][22] = 0;
fcw[2][23] = 0;
fcw[2][24] = 0;
fcw[2][25] = 0;
fcw[2][26] = 0;
fcw[2][27] = 0;
fcw[2][28] = 0;
fcw[2][29] = 0;
fcw[2][30] = 0;
fcw[2][31] = 0;
fcw[2][32] = 4;
fcw[2][33] = 2;
fcw[2][34] = 4;
fcw[2][35] = 8;
fcw[2][36] = 6;
fcw[2][37] = 11;
fcw[2][38] = 9;
fcw[2][39] = 2;
fcw[2][40] = 5;
fcw[2][41] = 5;
fcw[2][42] = 6;
fcw[2][43] = 6;
fcw[2][44] = 3;
fcw[2][45] = 5;
fcw[2][46] = 2;
fcw[2][47] = 5;
fcw[2][48] = 6;
fcw[2][49] = 4;
fcw[2][50] = 6;
fcw[2][51] = 6;
fcw[2][52] = 7;
fcw[2][53] = 6;
fcw[2][54] = 6;
fcw[2][55] = 6;
fcw[2][56] = 6;
fcw[2][57] = 6;
fcw[2][58] = 2;
fcw[2][59] = 3;
fcw[2][60] = 5;
fcw[2][61] = 5;
fcw[2][62] = 5;
fcw[2][63] = 6;
fcw[2][64] = 10;
fcw[2][65] = 7;
fcw[2][66] = 7;
fcw[2][67] = 8;
fcw[2][68] = 7;
fcw[2][69] = 7;
fcw[2][70] = 7;
fcw[2][71] = 8;
fcw[2][72] = 7;
fcw[2][73] = 2;
fcw[2][74] = 7;
fcw[2][75] = 7;
fcw[2][76] = 6;
fcw[2][77] = 8;
fcw[2][78] = 7;
fcw[2][79] = 8;
fcw[2][80] = 7;
fcw[2][81] = 8;
fcw[2][82] = 7;
fcw[2][83] = 7;
fcw[2][84] = 6;
fcw[2][85] = 7;
fcw[2][86] = 8;
fcw[2][87] = 10;
fcw[2][88] = 7;
fcw[2][89] = 8;
fcw[2][90] = 6;
fcw[2][91] = 4;
fcw[2][92] = 5;
fcw[2][93] = 4;
fcw[2][94] = 6;
fcw[2][95] = 5;
fcw[2][96] = 3;
fcw[2][97] = 6;
fcw[2][98] = 6;
fcw[2][99] = 6;
fcw[2][100] = 6;
fcw[2][101] = 6;
fcw[2][102] = 5;
fcw[2][103] = 6;
fcw[2][104] = 6;
fcw[2][105] = 2;
fcw[2][106] = 4;
fcw[2][107] = 6;
fcw[2][108] = 2;
fcw[2][109] = 8;
fcw[2][110] = 6;
fcw[2][111] = 6;
fcw[2][112] = 6;
fcw[2][113] = 6;
fcw[2][114] = 5;
fcw[2][115] = 5;
fcw[2][116] = 4;
fcw[2][117] = 6;
fcw[2][118] = 6;
fcw[2][119] = 8;
fcw[2][120] = 6;
fcw[2][121] = 6;
fcw[2][122] = 5;
fcw[2][123] = 4;
fcw[2][124] = 2;
fcw[2][125] = 4;
fcw[2][126] = 6;
fcw[2][127] = 0;
fcw[2][128] = 0;
fcw[2][129] = 0;
fcw[2][130] = 0;
fcw[2][131] = 0;
fcw[2][132] = 0;
fcw[2][133] = 0;
fcw[2][134] = 0;
fcw[2][135] = 0;
fcw[2][136] = 0;
fcw[2][137] = 0;
fcw[2][138] = 0;
fcw[2][139] = 0;
fcw[2][140] = 0;
fcw[2][141] = 0;
fcw[2][142] = 0;
fcw[2][143] = 0;
fcw[2][144] = 0;
fcw[2][145] = 0;
fcw[2][146] = 0;
fcw[2][147] = 0;
fcw[2][148] = 0;
fcw[2][149] = 0;
fcw[2][150] = 0;
fcw[2][151] = 0;
fcw[2][152] = 0;
fcw[2][153] = 0;
fcw[2][154] = 0;
fcw[2][155] = 0;
fcw[2][156] = 0;
fcw[2][157] = 0;
fcw[2][158] = 0;
fcw[2][159] = 0;
fcw[2][160] = 0;
fcw[2][161] = 2;
fcw[2][162] = 4;
fcw[2][163] = 7;
fcw[2][164] = 4;
fcw[2][165] = 8;
fcw[2][166] = 4;
fcw[2][167] = 4;
fcw[2][168] = 4;
fcw[2][169] = 9;
fcw[2][170] = 4;
fcw[2][171] = 4;
fcw[2][172] = 4;
fcw[2][173] = 4;
fcw[2][174] = 9;
fcw[2][175] = 4;
fcw[2][176] = 4;
fcw[2][177] = 4;
fcw[2][178] = 4;
fcw[2][179] = 4;
fcw[2][180] = 4;
fcw[2][181] = 4;
fcw[2][182] = 4;
fcw[2][183] = 4;
fcw[2][184] = 4;
fcw[2][185] = 4;
fcw[2][186] = 4;
fcw[2][187] = 4;
fcw[2][188] = 4;
fcw[2][189] = 4;
fcw[2][190] = 4;
fcw[2][191] = 6;
fcw[2][192] = 7;
fcw[2][193] = 7;
fcw[2][194] = 7;
fcw[2][195] = 7;
fcw[2][196] = 7;
fcw[2][197] = 7;
fcw[2][198] = 12;
fcw[2][199] = 8;
fcw[2][200] = 7;
fcw[2][201] = 7;
fcw[2][202] = 7;
fcw[2][203] = 7;
fcw[2][204] = 3;
fcw[2][205] = 3;
fcw[2][206] = 4;
fcw[2][207] = 4;
fcw[2][208] = 4;
fcw[2][209] = 7;
fcw[2][210] = 8;
fcw[2][211] = 8;
fcw[2][212] = 8;
fcw[2][213] = 8;
fcw[2][214] = 8;
fcw[2][215] = 4;
fcw[2][216] = 8;
fcw[2][217] = 7;
fcw[2][218] = 7;
fcw[2][219] = 7;
fcw[2][220] = 7;
fcw[2][221] = 8;
fcw[2][222] = 4;
fcw[2][223] = 7;
fcw[2][224] = 6;
fcw[2][225] = 6;
fcw[2][226] = 6;
fcw[2][227] = 6;
fcw[2][228] = 6;
fcw[2][229] = 6;
fcw[2][230] = 10;
fcw[2][231] = 6;
fcw[2][232] = 6;
fcw[2][233] = 6;
fcw[2][234] = 6;
fcw[2][235] = 6;
fcw[2][236] = 3;
fcw[2][237] = 3;
fcw[2][238] = 4;
fcw[2][239] = 4;
fcw[2][240] = 4;
fcw[2][241] = 6;
fcw[2][242] = 6;
fcw[2][243] = 6;
fcw[2][244] = 6;
fcw[2][245] = 6;
fcw[2][246] = 6;
fcw[2][247] = 4;
fcw[2][248] = 6;
fcw[2][249] = 6;
fcw[2][250] = 6;
fcw[2][251] = 6;
fcw[2][252] = 6;
fcw[2][253] = 6;
fcw[2][254] = 4;
fcw[2][255] = 4;
_global.fch[3] = 11;
_global.fch[4] = 14;
_global.getTextWidth = function (txt, fid) {
txt = explode(txt, newline);
ms = 4;
var _local2 = 0;
while (_local2 < txt.length) {
s = 4;
if (fid > 2) {
s = txt[_local2].length * fch[fid];
} else {
var _local1 = 0;
while (_local1 < txt[_local2].length) {
s = s + fcw[fid][txt[_local2].charCodeAt(_local1)];
_local1++;
}
}
if (s > ms) {
ms = s;
}
_local2++;
}
return(ms);
};
_global.getTextHeight = function (txt, fid) {
txt = explode(txt, newline);
return((txt.length * fch[fid]) + 2);
};
_global.explode = function (txt, char) {
var _local2 = 0;
var _local4 = [];
_local4[0] = "";
var _local1 = 0;
while (_local1 < txt.length) {
if (txt.charAt(_local1) == char) {
_local2++;
_local4[_local2] = "";
} else {
_local4[_local2] = _local4[_local2] + txt.charAt(_local1);
}
_local1++;
}
return(_local4);
};
_global.initBu = function (bu) {
if (!canopencommand) {
bu._visible = false;
}
initBt(bu);
};
_global.initBt = function (bt) {
bt.useHandCursor = false;
bt.tabEnabled = false;
};
_global.initBtC = function (bt) {
initBt(bt);
bt.onRollOver = btRollOver;
bt.onRollOut = btRollOut;
bt.onReleaseOutside = btRollOut;
};
_global.initBtNext = function (bt) {
initBt(bt);
bt.onRollOver = function () {
btRollOverNext(this);
};
bt.onRollOut = btRollOut;
};
_global.initBtClose = function (bt) {
initBt(bt);
bt.onRollOver = function () {
btRollOverClose(this);
};
bt.onRollOut = btRollOut;
};
_global.initBtS = function (bt) {
initBt(bt);
bt.onRollOver = btRollOverItem;
bt.onRollOut = btRollOutItem;
bt.onReleaseOutside = btRollOutItem;
};
_global.btRollOverItem = function (owner) {
if (this._parent.x) {
_i.label.show(cl.objn[this._parent.id], this._parent.x, this._parent.y);
} else {
_i.label.show(cl.objn[this._parent.id], this._parent._x, this._parent._y);
}
if (_r.cursorI) {
_r.cursorI.icon.gotoAndStop(_r.cursorI.id + "_on");
}
if (!canopencommand) {
_i.label._visible = false;
_r.cursorB._visible = false;
}
};
_global.btRollOutItem = function () {
_i.label.hide();
if (_r.cursorI) {
_r.cursorI.icon.gotoAndStop(_r.cursorI.id);
}
btRollOut(owner);
};
_global.initExitBt = function (bt, dir) {
initBt(bt);
bt.dir = dir;
bt.onRollOver = btRollOverExit;
bt.onRollOut = btRollOut;
bt.onReleaseOutside = btRollOut;
};
_global.btRollOverExit = function (owner) {
if (_r.cursorI) {
return(undefined);
}
_r.attachMovie("cursorExit", "cursorE", 771, {_x:-50, _y:-50, o:owner});
_r.cursorE.onEnterFrame = function () {
this._x = _r._xmouse + 17;
this._y = _r._ymouse + 30;
if (this._x > (Stage.width - 10)) {
this._x = Stage.width - 10;
} else if (this._x < 10) {
this._x = 10;
}
};
switch (this.dir) {
case "u" :
_r.cursorE._rotation = -90;
break;
case "d" :
_r.cursorE._rotation = 90;
break;
case "r" :
_r.cursorE._rotation = -180;
}
if (!canopencommand) {
_r.cursorE._visible = false;
}
};
_global.initBtC = function (bt) {
initBt(bt);
bt._visible = false;
bt.onRollOver = btRollOverChar;
bt.onRollOut = btRollOutChar;
bt.onReleaseOutside = btRollOutChar;
};
_global.btRollOverChar = function (owner) {
if (!_r.cursorI) {
return(undefined);
}
if (this._parent.x) {
_i.label.show(cl.objn[this._parent.id], this._parent.x, this._parent.y);
} else {
_i.label.show(cl.objn[this._parent.id], this._parent._x, this._parent._y);
}
_r.cursorI.icon.gotoAndStop(_r.cursorI.id + "_on");
if (!canopencommand) {
_i.label._visible = false;
_r.cursorB._visible = false;
}
};
_global.btRollOutChar = function () {
_i.label.hide();
if (!_r.cursorI) {
return(undefined);
}
_r.cursorI.icon.gotoAndStop(_r.cursorI.id);
btRollOut(owner);
};
_global.btRollOver = function () {
Mouse.hide();
_r.attachMovie("cursor", "cursor", 770, {_x:-50, _y:-50});
_r.cursor.onEnterFrame = function () {
this._x = _r._xmouse - 4;
this._y = _r._ymouse;
};
};
_global.btRollOverNext = function (owner) {
if (_r.cursorI) {
return(undefined);
}
_r.attachMovie("cursorBubble", "cursorB", 771, {_x:-50, _y:-50, o:owner});
_r.cursorB.onEnterFrame = function () {
this._x = _r._xmouse + 9;
this._y = _r._ymouse + 22;
};
if (!canopencommand) {
_c.canComIcon.gotoAndStop(1);
}
};
_global.btRollOverClose = function (owner) {
if (_r.cursorI) {
return(undefined);
}
_r.attachMovie("cursorBubble", "cursorB", 771, {_x:-50, _y:-50, close:true, o:owner});
_r.cursorB.onEnterFrame = function () {
this._x = _r._xmouse + 9;
this._y = _r._ymouse + 22;
};
if (!canopencommand) {
_c.canComIcon.gotoAndStop(1);
}
};
_global.btRollOut = function () {
Mouse.show();
removeMovieClip(_r.cursor);
removeMovieClip(_r.cursorB);
removeMovieClip(_r.cursorE);
if (!canopencommand) {
canOpenCommand(false);
}
};
_global.fadeIn = function (obj, msec, func) {
obj._visible = true;
obj.fi_msec = msec;
obj.fi_func = func;
obj.fi_time = getTimer();
if (((obj.onEnterFrame != null) and (obj.onEnterFrame != fadeIn)) and (obj.onEnterFrame != fadeOut)) {
obj.bonEnterFrame = b.onEnterFrame;
}
obj.onEnterFrame = function () {
this._alpha = this._alpha + (((getTimer() - this.fi_time) / this.fi_msec) * 100);
this.fi_time = getTimer();
if (this._alpha >= 100) {
this._alpha = 100;
delete this.fi_msec;
delete this.fi_time;
if (this.fi_func) {
this.fi_func();
}
delete this.fi_func;
delete this.onEnterFrame;
if (this.bonEnterFrame != null) {
this.onEnterFrame = this.bonEnterFrame;
delete this.bonEnterFrame;
}
}
};
};
_global.fadeOut = function (obj, msec, func) {
obj.fi_msec = msec;
obj.fi_func = func;
obj.fi_time = getTimer();
if (((obj.onEnterFrame != null) and (obj.onEnterFrame != fadeIn)) and (obj.onEnterFrame != fadeOut)) {
obj.bonEnterFrame = b.onEnterFrame;
}
obj.onEnterFrame = function () {
this._alpha = this._alpha - (((getTimer() - this.fi_time) / this.fi_msec) * 100);
this.fi_time = getTimer();
if (this._alpha <= 0) {
this._visible = false;
delete this.fi_msec;
delete this.fi_time;
if (this.fi_func) {
this.fi_func();
}
delete this.fi_func;
delete this.onEnterFrame;
if (this.bonEnterFrame != null) {
this.onEnterFrame = this.bonEnterFrame;
delete this.bonEnterFrame;
}
}
};
};
_global.explode = function (txt, char) {
var _local1 = [];
var _local4 = 0;
var _local5;
if (txt.indexOf(char) == -1) {
_local1[0] = txt;
return(_local1);
}
var _local6 = false;
var _local2 = 0;
while (_local2 < txt.length) {
var _local3 = txt.charAt(_local2);
if ((_local3 == "\\") and _local6) {
_local1[_local4] = _local1[_local4] + _local3;
_local6 = false;
} else if (_local3 == "\\") {
_local6 = true;
} else if ((_local3 == char) and (!_local6)) {
_local4++;
} else {
if (_local1[_local4] == null) {
_local1[_local4] = "";
}
_local1[_local4] = _local1[_local4] + _local3;
_local6 = false;
}
_local2++;
}
_local2 = 1;
while (_local2 <= _local4) {
while (_local5 = _local1[_local2].indexOf("\\\\") , _local5 != -1) {
_local5 = s.indexOf(p_str);
_local1[_local2] = (_local1[_local2].substring(0, _local5) + "\\") + _local1[_local2].substring(position + 2, _local1[_local2].length);
}
_local2++;
}
return(_local1);
};
_global.sn = function () {
return(Math.floor(Math.random() * 77777777));
};
_global.fc = function (ctxt) {
return(fc2(ctxt) + " $");
};
_global.fc2 = function (ctxt) {
var _local2 = "";
ctxt = ctxt + "";
var _local1 = ctxt.length - 1;
while (_local1 >= 0) {
_local2 = ctxt.charAt(_local1) + _local2;
if ((_local1 > 0) and (((ctxt.length - _local1) % 3) == 0)) {
_local2 = "'" + _local2;
}
_local1--;
}
return(_local2);
};
_global.fat = function (nick) {
nick = nick.toUpperCase();
if (lan == "en") {
if (nick.charAt(nick.length - 1) == "s") {
nick = nick + "' ";
} else {
nick = nick + "'s ";
}
return(nick + cl.pln01);
}
if (lan == "it") {
return(cl.pln01 + nick);
}
return(nick + cl.pln01);
};
String.prototype.charAt = function (index) {
return(substring(this, index + 1, 1));
};
String.prototype.concat = function () {
var _local4 = this.toString();
var _local3 = 0;
while (_local3 < arguments.length) {
_local4 = _local4 + arguments[_local3];
_local3++;
}
return(_local4);
};
String.prototype.indexOf = function (sub, i) {
if (i == null) {
i = 0;
}
var _local3 = sub.length;
var _local4 = (this.length - _local3) + 1;
while ((i <= _local4) && ((substring(this, 1 + (i++), _local3)) != sub)) {
}
return(((i <= _local4) ? (i - 1) : -1));
};
String.prototype.lastIndexOf = function (sub, i) {
size = sub.length;
((i == null) ? (i = (this.length - size) + 1) : (i++));
if (sub.length == 0) {
return(i - 1);
}
while ((i >= 0) && ((substring(this, i--, size)) != sub)) {
}
return(((i == -1) ? -1 : (i)));
};
String.prototype.slice = function (s, e) {
return(substring(this, s + 1, e - s));
};
String.prototype.split = function (d) {
if (d != null) {
var _local4 = new Array();
var _local7 = this.length;
var _local3 = 0;
var _local5 = 0;
if (d != "") {
var _local2 = 0;
while (_local2 <= _local7) {
if ((substring(this, _local2 + 1, 1)) == d) {
_local4[_local5] = substring(this, _local3 + 1, _local2 - _local3);
_local3 = _local2 + 1;
_local5++;
}
_local2++;
}
if (_local3 != _local2) {
_local4[_local5] = substring(this, _local3 + 1, _local2 - _local3);
}
} else {
var _local2 = 0;
while (_local2 < s) {
_local4[_local2] = substring(this, _local2 + 1, 1);
_local2++;
}
}
} else {
var _local4 = new Array(this.toString());
}
return(_local4);
};
String.prototype.substr = function (s, l) {
if (l == null) {
l = this.length - s;
}
return(substring(this, s + 1, l));
};
String.prototype.replaceChr = function (what, replace) {
var _local2 = this.split(what);
return(_local2.join(replace));
};
String.prototype.replace = function (_find, _replace) {
var _local2 = this.indexOf(_find);
if (_local2 != -1) {
var _local6 = this.substr(0, _local2);
_local2 = _local2 + _find.length;
var _local5 = this.substr(_local2, this.length);
var _local4 = (_local6 + _replace) + _local5;
return(_local4.replace(_find, _replace));
}
return(this);
};
_global.requestBubble = function (owner) {
if (_c.bubbles.b == null) {
_c.bubbles.b = [];
_c.bubbles.d = 0;
}
var _local1 = _c.bubbles.b.length;
_c.bubbles.d++;
_c.bubbles.attachMovie("voiceBubble", "b" + _c.bubbles.d, _c.bubbles.d, {_x:-100, _y:-100});
_c.bubbles.b[_local1] = _c.bubbles["b" + _c.bubbles.d];
owner.voice = _c.bubbles.b[_local1];
_c.bubbles.b[_local1].owner = owner;
owner.voice.setPos();
if (mirrorMode) {
owner.voice._xscale = -100;
}
};
_global.requestChoiceBubble = function (owner, x, y) {
if (_c.bubbles.b == null) {
_c.bubbles.b = [];
_c.bubbles.d = 0;
}
var _local1 = _c.bubbles.b.length;
_c.bubbles.d++;
_c.bubbles.attachMovie("choiceBubble", "b" + _c.bubbles.d, _c.bubbles.d, {_x:-100, _y:-100});
_c.bubbles.b[_local1] = _c.bubbles["b" + _c.bubbles.d];
owner.voice = _c.bubbles.b[_local1];
_c.bubbles.b[_local1].owner = owner;
owner.voice.setPos(x, y);
if (mirrorMode) {
owner.voice._xscale = -100;
}
};
_global.removeBubble = function (owner) {
var _local2 = 0;
var _local1 = 0;
while (_local1 < _c.bubbles.b.length) {
if (_c.bubbles.b[_local1] == owner.voice) {
_local2 = _local1;
break;
}
_local1++;
}
removeMovieClip(_c.bubbles.b[_local2]);
owner.voice = null;
delete _c.bubbles.b[_local2];
if (_c.bubbles.b.length == (_local2 - _local1)) {
}
_c.bubbles.b.splice(_local2, 1);
};
_global.bubbleOnTop = function (bubble) {
_c.bubbles.d++;
bubble.swapDepths(_c.bubbles.d);
if (d > 1000) {
var _local1 = 0;
while (_local1 < _c.bubbles.b.length) {
var _local2 = _c.bubbles.b[_local1].getDepth() - 1000;
_c.bubbles.b[_local1].swapDepths(_local2);
_local1++;
}
_c.bubbles.d = _c.bubbles.d - 1000;
}
return(_c.bubbles.d);
};
_global.createParticleSpray = function (o, sprite, init) {
o.as = [];
o.c = {};
o.c.sprite = sprite;
o.c.n = 0;
if (init.maxSprites != null) {
o.c.m = init.m;
} else {
o.c.m = 50;
}
if (init.o) {
o.c.o = {x:init.o[0], y:init.o[1], r:init.o[2], s:init.o[3], a:init.o[4]};
} else {
o.c.o = {x:0, y:0, r:0, s:0, a:100};
}
if (init.oV) {
o.c.oV = {x:init.oV[0], y:init.oV[1], r:init.oV[2], s:init.oV[3], a:init.oV[4]};
}
if (init.ta) {
o.c.ta = {x:init.ta[0], y:init.ta[1], r:init.ta[2], s:init.ta[3]};
}
if (init.s) {
o.c.s = {x:init.s[0], y:init.s[1], r:init.s[2], s:init.s[3], a:init.s[4]};
} else {
o.c.s = {x:1, y:1, r:10, s:5};
}
if (init.sV) {
o.c.sV = {x:init.sV[0], y:init.sV[1], r:init.sV[2], s:init.sV[3], a:init.sV[4]};
}
if (init.a) {
o.c.a = {x:init.a[0], y:init.a[1], r:init.a[2], s:init.a[3], a:init.a[4]};
} else {
o.c.a = {x:0, y:0, r:0, s:0};
}
if (init.aV) {
o.c.aV = {x:init.aV[0], y:init.aV[1], r:init.aV[2], s:init.aV[3], a:init.aV[4]};
}
if (init.t) {
o.c.t = init.t;
} else {
o.c.t = 100;
}
if (init.l) {
o.c.l = init.l;
} else {
o.c.l = 1000;
}
if (init.lV) {
o.c.lV = init.lV;
}
if (init.d) {
o.c.d = {s:init.d[0], a:init.d[1]};
} else {
o.c.d = {s:10, a:10};
}
if (init.dV) {
o.c.dV = {s:init.dV[0], a:init.dV[1]};
}
o.luTime = (o.laTime = cTimer);
o.addSprite = function () {
this.c.n++;
if (this.c.n >= 1000) {
this.c.n = 0;
}
this.attachMovie(this.c.sprite, "s" + this.c.n, 10 + this.c.n);
var _local4 = this["s" + this.c.n];
_local4._x = this.c.o.x;
_local4._y = this.c.o.y;
_local4._xscale = (_local4._yscale = this.c.o.s);
_local4._rotation = this.c.o.r;
_local4._alpha = this.c.o.a;
if (this.c.oV) {
_local4._x = _local4._x + (random(this.c.oV.x) - Math.round(this.c.oV.x / 2));
_local4._y = _local4._y + (random(this.c.oV.y) - Math.round(this.c.oV.y / 2));
_local4._xscale = (_local4._yscale = _local4._yscale + (random(this.c.oV.s) - Math.round(this.c.oV.s / 2)));
_local4._rotation = _local4._rotation + (random(this.c.oV.r) - Math.round(this.c.oV.r / 2));
_local4._alpha = _local4._alpha + (random(this.c.oV.a) - Math.round(this.c.oV.a / 2));
}
_local4.sx = this.c.s.x;
_local4.sy = this.c.s.y;
_local4.ss = this.c.s.s;
_local4.sr = this.c.s.r;
_local4.sa = this.c.s.a;
if (this.c.sV) {
_local4.sx = _local4.sx + (random(this.c.sV.x) - Math.round(this.c.sV.x / 2));
_local4.sy = _local4.sy + (random(this.c.sV.y) - Math.round(this.c.sV.y / 2));
_local4.ss = _local4.ss + (random(this.c.sV.s) - Math.round(this.c.sV.s / 2));
_local4.sr = _local4.sr + (random(this.c.sV.r) - Math.round(this.c.sV.r / 2));
_local4.sa = _local4.sa + (random(this.c.sV.a) - Math.round(this.c.sV.a / 2));
}
_local4.ax = this.c.a.x;
_local4.ay = this.c.a.y;
_local4.as = this.c.a.s;
_local4.ar = this.c.a.r;
_local4.aa = this.c.a.a;
if (this.c.aV) {
_local4.ax = _local4.ax + (random(this.c.aV.x) - Math.round(this.c.aV.x / 2));
_local4.ay = _local4.ay + (random(this.c.aV.y) - Math.round(this.c.aV.y / 2));
_local4.as = _local4.as + (random(this.c.aV.s) - Math.round(this.c.aV.s / 2));
_local4.ar = _local4.ar + (random(this.c.aV.r) - Math.round(this.c.aV.r / 2));
_local4.aa = _local4.aa + (random(this.c.aV.a) - Math.round(this.c.aV.a / 2));
}
if (this.c.ta) {
var _local3 = this.c.ta.x - _local4._x;
var _local2 = this.c.ta.y - _local4._y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local5;
_local2 = _local2 / _local5;
var _local6 = _local4.sx;
_local4.sx = _local6 * _local3;
_local4.sy = _local6 * _local2;
}
_local4.l = this.c.l;
if (this.c.lv) {
_local4.l = _local4.l + (random(this.c.lv) - Math.round(this.c.lv / 2));
}
_local4.d = {s:this.c.d.s, a:this.c.d.a};
if (this.c.dV) {
_local4.d.s = _local4.d.s + (random(this.c.dV.s) - Math.round(this.c.dV.s / 2));
_local4.d.a = _local4.d.a + (random(this.c.dV.a) - Math.round(this.c.dV.a / 2));
}
_local4.sTimer = getTimer();
_local4.id = this.as.length;
this.as.push(this["s" + this.c.n]);
};
o.update = function () {
while (((cTimer - this.laTime) > this.c.t) and (!o.c.stop)) {
this.laTime = this.laTime + this.c.t;
if (this.as.length < this.c.m) {
this.addSprite();
}
}
var _local3 = (cTimer - this.luTime) * 0.024;
this.luTime = cTimer;
var _local4 = [];
for (var _local5 in this.as) {
var _local2 = this.as[_local5];
_local2._x = _local2._x + (_local2.sx * _local3);
_local2._y = _local2._y + (_local2.sy * _local3);
_local2._xscale = (_local2._yscale = _local2._yscale + (_local2.ss * _local3));
_local2._rotation = _local2._rotation + (_local2.sr * _local3);
_local2._alpha = _local2._alpha + (_local2.sa * _local3);
if (_local2._alpha >= 100) {
_local2._alpha = 100;
_local2.sa = 0;
}
_local2.sx = _local2.sx + _local2.ax;
_local2.sy = _local2.sy + _local2.ay;
_local2.ss = _local2.ss + _local2.as;
_local2.sa = _local2.sa + _local2.aa;
if ((cTimer - _local2.sTimer) >= _local2.l) {
_local2._xscale = (_local2._yscale = _local2._yscale - (_local2.d.s * _local3));
_local2._alpha = _local2._alpha - (_local2.d.a * _local3);
if ((_local2._xscale <= 0) or (_local2._alpha <= 0)) {
_local4.push(_local5);
}
}
if (this.c.ta) {
if (_local2._y > this.c.ta.y) {
_local4.push(_local5);
}
}
}
for (var _local5 in _local4) {
removeMovieClip(this.as[_local4[_local5]]);
this.as.splice(_local4[_local5], 1);
}
if ((as.length == 0) and o.c.stop) {
delete this.onEnterFrame;
}
};
o.onEnterFrame = o.update;
};
_global.stopParticleSpray = function (o) {
o.c.stop = true;
};
stop();
this.onEnterFrame = function () {
delete this.onEnterFrame;
if (_url.indexOf("ungrounded.net") >= 0) {
interf.fader.go(function () {
_r.gotoAndStop("m0");
});
}
};
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("6add221d", this, 10301, true);
Frame 3
stop();
Frame 8
stop();
Frame 13
stop();
Frame 18
stop();
Frame 23
stop();
Frame 28
stop();
Frame 33
stop();
Symbol 2036 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 12 MovieClip Frame 1
text.autoSize = "left";
Symbol 15 MovieClip Frame 1
text.autoSize = "left";
Symbol 16 MovieClip Frame 1
function getText() {
this.txt = c.text.text;
return(this.txt);
}
function setFont(fid) {
this.fid = fid;
gotoAndStop(fid);
}
function setColor(col) {
this.col = col;
var _local2 = c.text.getTextFormat(c.text);
_local2.color = col;
c.text.setTextFormat(_local2);
}
function setAlign(a) {
if (a == "center") {
var _local2 = getTextWidth(this.txt, this.fid);
c._x = -Math.floor(_local2 / 2);
} else if (a == "right") {
var _local2 = getTextWidth(this.txt, this.fid);
c._x = -_local2;
} else {
c._x = 0;
}
}
function setVAlign(valign) {
if (align == "center") {
var _local1 = c._height;
c._y = -Math.floor(_local1 / 2);
} else if (align == "bottom") {
var _local1 = c._height;
c._y = -_local1;
} else {
c._y = 0;
}
}
function setTextBox(tbox) {
c.text._width = tbox.width;
c.text._height = tbox.height;
if (tbox.editable) {
c.text.type = "input";
c.text.selectable = true;
}
if (tbox.border) {
c.text.border = true;
}
if (tbox.multiLine) {
c.text.multiline = true;
}
if (tbox.wordWrap) {
c.text.wordWrap = true;
}
if (tbox.maxChars) {
c.text.maxChars = tbox.maxChars;
}
if (tbox.background) {
c.text.background = true;
}
}
function setText(txt) {
if (this.fid == null) {
this.fid = cl.f01;
}
if (this.fid != this._currentframe) {
setFont(this.fid);
return(undefined);
}
if (txt == null) {
txt = "";
}
this.txt = txt;
c.text.text = txt;
if (this.tbox != null) {
setTextBox(tbox);
} else {
c.text.autoSize = "left";
}
if (this.col != null) {
setColor(this.col);
}
if (this.align == null) {
this.align = "left";
}
setAlign(this.align);
if (this.valign) {
setVAlign(this.valign);
}
}
function init() {
setText(this.txt);
}
init();
stop();
Symbol 16 MovieClip Frame 2
init();
stop();
Symbol 16 MovieClip Frame 3
init();
stop();
Symbol 16 MovieClip Frame 4
init();
stop();
Symbol 97 MovieClip Frame 1
heights = [19, 34, 46, 61];
stop();
Symbol 101 MovieClip [choiceBubble] Frame 1
function init() {
this._visible = true;
ct0._visible = (ct1._visible = (ct2._visible = false));
var _local4 = (bn * fch[ct0.fid]) + (4 * (bn - 1));
var _local2 = 0;
while (_local2 < bgfx.heights.length) {
if (bgfx.heights[_local2] > _local4) {
lines = _local2 + 1;
break;
}
_local2++;
}
var _local3 = 0;
_local2 = 0;
while (_local2 < bn) {
if (this["ct" + _local2]._width > _local3) {
_local3 = this["ct" + _local2]._width;
}
_local2++;
}
var _local8 = Math.floor(_local3 / 10);
var _local7 = (lines - 1) * 20;
if (_local7 < 0) {
_local7 = 0;
}
var _local6 = (_local8 + _local7) - 1;
if (_local6 <= 0) {
_local6 = 1;
}
bgfx.gotoAndStop(_local6);
ct0.setAlign("center");
ct1.setAlign("center");
ct2.setAlign("center");
var _local5 = (fch[ct0.fid] + 2) / 2;
_local2 = 0;
while (_local2 < bn) {
this["ct" + _local2]._x = 0;
this["ct" + _local2]._y = Math.floor((_local2 - ((bn - 1) / 2)) * (fch[ct0.fid] + 4)) - _local5;
_local2++;
}
_local2 = 0;
while (_local2 < bn) {
this["bt" + _local2]._x = ((-_local3) / 2) - 2;
this["bt" + _local2]._y = this["ct" + _local2]._y;
this["bt" + _local2]._height = fch[ct0.fid] + 4;
this["bt" + _local2]._width = _local3 + 2;
this["bt" + _local2]._visible = false;
_local2++;
}
}
function doOpen(t, f) {
setPos();
if (this.fid == null) {
this.fid = cl.f01;
}
ct0.setFont(this.fid);
if (this.col == null) {
this.col = 0;
}
atxt = t;
atxt = atxt.split("\t");
onclose = f;
owner.doStopTalk();
clear();
doNext();
}
function setPos(x, y) {
if (this.owner) {
var _local2 = owner.getPos();
this._x = _local2._x;
this._y = _local2._y - 80;
}
if (x != undefined) {
this._x = x;
}
if (y != undefined) {
this._y = y;
}
}
function choice() {
delete this.onEnterFrame;
clear();
this._x = owner.char._x;
this._y = owner.char._y - 80;
showBts = true;
if (arguments.length == 1) {
var _local3 = arguments[0];
} else {
var _local3 = arguments;
}
owner.doStopTalk();
if (this.fid == null) {
this.fid = cl.f02;
}
ct0.setFont(this.fid);
ct0.setText(_local3[0].l);
ct0.setColor(255);
ct1.setFont(this.fid);
ct1.setText(_local3[1].l);
ct1.setColor(255);
ct2.setFont(this.fid);
ct2.setText(_local3[2].l);
ct2.setColor(255);
this.c = -1;
bn = 0;
i = 0;
while (i < _local3.length) {
initBtC(this["bt" + i]);
this["bt" + i].f = function () {
btRollOut();
onclose = this.oc;
close();
};
this["bt" + i].oc = _local3[i].f;
bn++;
i++;
}
align = "left";
gotoAndPlay ("open");
}
function showAll() {
var _local2 = 0;
while (_local2 < bn) {
this["ct" + _local2]._visible = true;
this["bt" + _local2]._visible = true;
_local2++;
}
}
function hideTxt() {
ct0._visible = (ct1._visible = (ct2._visible = false));
}
function close() {
clearInterval(nextInterval);
var _local2 = 0;
while (_local2 < bn) {
delete this["bt" + _local2].onRelease;
_local2++;
}
gotoAndPlay ("close");
if (_r.cursorB.o == this.bt) {
btRollOut();
}
}
function clear() {
var _local2 = 0;
while (_local2 < bn) {
removeMovieClip(this["bt" + _local2]);
_local2++;
}
bn = 0;
}
stop();
this._visible = false;
ct0._visible = (ct1._visible = (ct2._visible = (bt0._visible = (bt1._visible = (bt2._visible = false)))));
var status = 0;
var align = "";
var bn = 0;
var atxt = [];
var showBts = true;
stop();
Symbol 101 MovieClip [choiceBubble] Frame 2
init();
sound.playSFX("bubble");
Symbol 101 MovieClip [choiceBubble] Frame 6
showAll();
Symbol 101 MovieClip [choiceBubble] Frame 8
var i = 0;
while (i < bn) {
this["bt" + i].onRelease = this["bt" + i].f;
i++;
}
stop();
status = 2;
Symbol 101 MovieClip [choiceBubble] Frame 9
status = 0;
hideTxt();
bt._visible = false;
var i = 0;
while (i < bn) {
this["bt" + i]._xscale = 75;
this["bt" + i]._yscale = 75;
delete this["bt" + i].onRelease;
i++;
}
Symbol 101 MovieClip [choiceBubble] Frame 10
var i = 0;
while (i < bn) {
this["bt" + i]._xscale = 50;
this["bt" + i]._yscale = 50;
i++;
}
Symbol 101 MovieClip [choiceBubble] Frame 11
var i = 0;
while (i < bn) {
this["bt" + i]._xscale = 25;
this["bt" + i]._yscale = 25;
i++;
}
Symbol 101 MovieClip [choiceBubble] Frame 12
clear();
Symbol 101 MovieClip [choiceBubble] Frame 13
if (onclose != null) {
onclose();
}
removeBubble(this.owner);
Symbol 106 MovieClip [cursorBubble] Frame 1
function doClose() {
gotoAndStop (2);
}
if (close) {
doClose();
}
stop();
Symbol 187 MovieClip Frame 1
heights = [19, 34, 46, 61];
stop();
Symbol 189 MovieClip [voiceBubble] Frame 1
function init() {
status = 1;
if (bn > 1) {
initChoice();
return(undefined);
}
var _local7 = ct0.txt.split(newline);
var _local3 = _local7.length;
this._visible = true;
ct0._visible = false;
bt._width = ct0._width + 10;
bt._height = ct0._height + 10;
var _local6 = Math.floor(ct0._width / 10);
var _local5 = (_local3 - 1) * 20;
if (_local5 < 0) {
_local5 = 0;
}
var _local4 = (_local6 + _local5) - 1;
if (_local4 <= 0) {
_local4 = 1;
}
bgfx.gotoAndStop(_local4);
this.dontTalk = true;
var _local2 = 0;
while (_local2 < ct0.txt.length) {
if ((ct0.txt.charAt(_local2) != ".") and (ct0.txt.charAt(_local2) != " ")) {
this.dontTalk = false;
break;
}
_local2++;
}
if (!this.dontTalk) {
this.closeInterval = setInterval(this, "doNext", _local6 * (300 + ((_local3 - 1) * 125)));
} else {
this.closeInterval = setInterval(this, "doNext", ct0.txt.length * 1000);
}
ct0.setAlign("center");
ct0._y = Math.floor((18 - (bgfx.heights[_local3 - 1] / 2)) - (((_local3 * fch[ct0.fid]) + 2) / 2));
this.bt0._x = 10;
this.bt0._y = 22;
this.bt0._visible = false;
}
function open(t, f) {
showBts = true;
doOpen(t, f);
}
function openNB(t, f) {
showBts = false;
doOpen(t, f);
}
function doOpen(t, f) {
setPos();
if (this.fid == null) {
this.fid = cl.f01;
}
ct0.setFont(this.fid);
if (this.col == null) {
this.col = 0;
}
atxt = t;
atxt = atxt.split("\t");
onclose = f;
owner.doStopTalk();
clear();
doNext();
}
function setPos(x, y) {
if (this.owner) {
var _local2 = owner.getPos();
this._x = _local2._x;
this._y = _local2._y - 80;
}
if (x != undefined) {
this._x = x;
}
if (y != undefined) {
this._y = y;
}
}
function doNext() {
clearInterval(this.closeInterval);
if (atxt.length > 0) {
owner.doStopTalk();
clear();
if (checkEmote(atxt[0])) {
atxt.splice(0, 1);
doNext();
return(undefined);
}
if (showBts) {
bt._visible = true;
if (atxt.length > 1) {
initBtNext(bt);
} else {
initBtClose(bt);
}
bt.f = function () {
if (this._parent.status == 2) {
this._parent.doNext();
}
};
if (atxt.length > 1) {
bt.onPress = function () {
this._parent.nextInterval = setInterval(this, "f", 200);
this.f();
};
} else {
bt.onPress = function () {
btRollOut();
this.f();
};
}
bt.onRelease = function () {
clearInterval(this._parent.nextInterval);
};
bt.onReleaseOutside = function () {
btRollOut();
clearInterval(this._parent.nextInterval);
};
if ((_r.cursorB != null) and (atxt.length == 1)) {
_r.cursorB.doClose();
}
} else {
bt._visible = false;
bn = 0;
}
ct0.setFont(this.fid);
ct0.setText(atxt[0]);
ct0.col = this.col;
ct0.setColor(this.col);
atxt.splice(0, 1);
align = "left";
gotoAndPlay ("open");
} else {
close();
}
}
function showAll() {
ct0._visible = true;
var _local2 = 0;
while (_local2 < bn) {
this["bt" + _local2]._visible = true;
this["bt" + _local2]._xscale = 25;
this["bt" + _local2]._yscale = 25;
this["ct" + _local2]._visible = true;
_local2++;
}
}
function hideTxt() {
ct0._visible = (ct1._visible = (ct2._visible = (ct3._visible = false)));
}
function close() {
clearInterval(nextInterval);
var _local2 = 0;
while (_local2 < bn) {
delete this["bt" + _local2].onRelease;
_local2++;
}
gotoAndPlay ("close");
if (_r.cursorB.o == this.bt) {
btRollOut();
}
}
function clear() {
var _local2 = 0;
while (_local2 < bn) {
removeMovieClip(this["bt" + _local2]);
_local2++;
}
bn = 0;
}
stop();
this._visible = false;
ct0._visible = false;
var status = 0;
var align = "";
var bn = 0;
var atxt = [];
var showBts = true;
stop();
Symbol 189 MovieClip [voiceBubble] Frame 2
init();
sound.playSFX("bubble");
Symbol 189 MovieClip [voiceBubble] Frame 6
showAll();
Symbol 189 MovieClip [voiceBubble] Frame 7
var i = 0;
while (i < bn) {
this["bt" + i]._xscale = 50;
this["bt" + i]._yscale = 50;
i++;
}
Symbol 189 MovieClip [voiceBubble] Frame 8
if ((c != -1) and (!dontTalk)) {
owner.doTalk();
}
var i = 0;
while (i < bn) {
this["bt" + i]._xscale = 100;
this["bt" + i]._yscale = 100;
this["bt" + i].onRelease = this["bt" + i].f;
i++;
}
stop();
status = 2;
Symbol 189 MovieClip [voiceBubble] Frame 9
status = 0;
owner.doStopTalk();
hideTxt();
bt._visible = false;
var i = 0;
while (i < bn) {
this["bt" + i]._xscale = 75;
this["bt" + i]._yscale = 75;
delete this["bt" + i].onRelease;
i++;
}
Symbol 189 MovieClip [voiceBubble] Frame 10
var i = 0;
while (i < bn) {
this["bt" + i]._xscale = 50;
this["bt" + i]._yscale = 50;
i++;
}
Symbol 189 MovieClip [voiceBubble] Frame 11
var i = 0;
while (i < bn) {
this["bt" + i]._xscale = 25;
this["bt" + i]._yscale = 25;
i++;
}
Symbol 189 MovieClip [voiceBubble] Frame 12
clear();
Symbol 189 MovieClip [voiceBubble] Frame 13
if (onclose != null) {
onclose();
}
if (!dontRemove) {
removeBubble(this.owner);
}
Symbol 245 MovieClip Frame 1
if (this._parent.iconId) {
gotoAndStop(this._parent.iconId);
} else {
stop();
}
Symbol 245 MovieClip Frame 182
stop();
initBt(bt);
initButton(bt);
Symbol 245 MovieClip Frame 201
stop();
initBt(bt);
initButton(bt);
Symbol 245 MovieClip Frame 219
stop();
initBt(bt);
initButton(bt);
Symbol 245 MovieClip Frame 237
stop();
initBt(bt);
initButton(bt);
Symbol 245 MovieClip Frame 257
stop();
initBt(bt);
initButton(bt);
Symbol 245 MovieClip Frame 273
stop();
initBt(bt);
initButton(bt);
Symbol 245 MovieClip Frame 345
stop();
initBt(bt);
initButton(bt);
Symbol 245 MovieClip Frame 372
stop();
initBt(bt);
initButton(bt);
Symbol 245 MovieClip Frame 403
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 1
function doRemove() {
this.c = 0;
this._xscale = 90;
this._yscale = 110;
this.onEnterFrame = function () {
switch (c++) {
case 0 :
this._xscale = 120;
this._yscale = 80;
this._alpha = 100;
break;
case 1 :
this._xscale = 80;
this._yscale = 80;
this._alpha = 80;
break;
case 2 :
this._xscale = 50;
this._yscale = 50;
this._alpha = 50;
break;
case 3 :
this._xscale = 30;
this._yscale = 30;
this._alpha = 50;
case 4 :
delete this.onEnterFrame;
this.swapDepths(7073);
removeMovieClip(this);
}
};
}
function initButton(bt) {
bt.onRollOver = function () {
_i.label.show(cl.objn[this._parent.id], (this._parent._x + this._parent._parent._x) + this._parent._parent._parent._x, (this._parent._y + this._parent._parent._y) + this._parent._parent._parent._y);
if (_r.cursorI) {
if (_r.cursorI.id == this._parent.id) {
return(undefined);
}
} else {
gotoAndStop(this._parent.id + "_on");
}
};
bt.onRollOut = (bt.onReleaseOutside = function () {
_i.label.hide();
if (_r.cursorI) {
if (_r.cursorI.id == this._parent.id) {
return(undefined);
}
} else {
gotoAndStop(this._parent.id);
}
});
bt.onReleaseOutside = function () {
_i.label.hide();
gotoAndStop(this._parent.id);
};
bt.onPress = function () {
if (!canopencommand) {
return(undefined);
}
if (_r.cursorI) {
if (_r.cursorI.id == this._parent.id) {
removeMovieClip(_r.cursorI);
return(undefined);
}
if (gStatus.ooFunctions[(_r.cursorI.id + "_") + this._parent.id]) {
gStatus.ooFunctions[(_r.cursorI.id + "_") + this._parent.id]();
} else {
_char.cantCombineItems();
}
} else {
_inventory.selectItem(this._parent);
gotoAndStop(this._parent.id);
}
};
}
gotoAndStop(this.id);
if (this.popup) {
this.c = 0;
this._xscale = 30;
this._yscale = 30;
this._alpha = 50;
this.onEnterFrame = function () {
switch (c++) {
case 0 :
this._xscale = 50;
this._yscale = 50;
this._alpha = 50;
break;
case 1 :
this._xscale = 80;
this._yscale = 80;
this._alpha = 80;
break;
case 2 :
this._xscale = 120;
this._yscale = 80;
this._alpha = 100;
break;
case 3 :
this._xscale = 90;
this._yscale = 110;
break;
case 4 :
this._xscale = 100;
this._yscale = 100;
delete this.c;
delete this.onEnterFrame;
}
};
}
Symbol 295 MovieClip [inventory item] Frame 2
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 19
stop();
initBt(bt);
initButton(bt);
bt.onPress = function () {
if (!canopencommand) {
return(undefined);
}
this.onRollOut();
this._visible = false;
mkla.openGift();
};
Symbol 295 MovieClip [inventory item] Frame 34
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 59
stop();
initBt(bt);
initButton(bt);
bt.onPress = function () {
if (!canopencommand) {
return(undefined);
}
this.onRollOut();
mkla.readList();
};
Symbol 295 MovieClip [inventory item] Frame 72
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 92
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 114
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 139
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 157
stop();
initBt(bt);
initButton(bt);
bt.onPress = function () {
if (!canopencommand) {
return(undefined);
}
this.onRollOut();
this._visible = false;
msteve.openWallet();
};
Symbol 295 MovieClip [inventory item] Frame 173
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 192
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 210
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 227
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 247
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 263
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 277
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 306
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 330
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 354
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 378
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 405
stop();
initBt(bt);
initButton(bt);
Symbol 295 MovieClip [inventory item] Frame 436
stop();
initBt(bt);
initButton(bt);
Symbol 297 MovieClip [scissors] Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
stop();
id = "screwdriver";
me = this;
pos = 1;
sx = 1;
sy = 1;
x = _parent._x - 10;
y = _parent._y;
pickupDir = dirLeft;
gStatus.itemData[id] = {sx:sx, sy:sy};
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
this.pickUp = function () {
if (gStatus.bobInTheBack) {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
} else {
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch", g:true}, {t:"fu", f:function () {
mbob.doAction([{t:"tu", d:dirRight}, {t:"vo", l:cl.b10}, {ta:_char, t:"an", l:"touch_b", g:true}, {ta:_char, t:"vo", l:cl.s21}, {t:"co", c:true}]);
if (!gStatus.steveComm01) {
gStatus.steveComm01 = true;
mbob.doAction({ta:_char, t:"vo", l:cl.s22});
}
}}]);
}
};
gStatus.ooFunctions.screwdriver_ = function () {
_char.doAction({t:"vo", l:"whoops"});
removeMovieClip(_r.cursorI);
_inventory.removeItem("obj");
gStatus.itemData.objBroken = {sx:1, sy:1};
_inventory.addItem("objBroken");
};
Symbol 371 MovieClip Frame 1
stop();
_visible = false;
Symbol 375 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 1
function show() {
gotoAndStop (2);
}
function hide() {
gotoAndStop (1);
}
stop();
Symbol 376 MovieClip Frame 2
lab.fid = this.fid;
lab.txt = this.txt;
lab.col = this.col;
lab.align = "center";
lab.init();
Symbol 377 MovieClip Frame 1
function go(f, r) {
clearInterval(_fader.outInterval);
if (r == false) {
fader.fi_reset = false;
} else {
fader.fi_reset = true;
}
this._visible = true;
fader.fi_msec = 1000;
fader.fi_func = f;
fader.fi_time = getTimer();
this.doStop = false;
this.doShowLabel = false;
fader.gotoAndStop(1);
fader.onEnterFrame = fadeOut;
}
function goIn(f, r) {
clearInterval(_fader.outInterval);
if (r == false) {
fader.fi_reset = false;
} else {
fader.fi_reset = true;
}
this._visible = true;
fader.fi_msec = 1000;
fader.fi_func = f;
fader.fi_time = getTimer();
this.doStop = true;
fader.gotoAndStop(2);
fader.onEnterFrame = fadeOut;
}
function goOut() {
clearInterval(_fader.outInterval);
fader.fi_time = getTimer() - fader.fi_msec;
_fader.lab.hide();
fader.onEnterFrame = fadeIn;
}
function goLabel(f, r, l, t) {
clearInterval(this.outInterval);
_fader.lab.fid = cl.f02;
_fader.lab.col = 16777215 /* 0xFFFFFF */;
_fader.lab.txt = l;
this.doShowLabel = true;
goIn(f, r);
this.outInterval = setInterval(this, "goOut", t);
}
function fadeOut() {
var _local2 = (getTimer() - this.fi_time) / this.fi_msec;
var _local3 = Math.sin((_local2 * Math.PI) / 2);
this._xscale = (this._yscale = _local3 * 880);
this._rotation = _local2 * 90;
if (_local2 >= 1) {
this._xscale = (this._yscale = 890);
sound.stopSound();
_i.label.hide();
if (this.fi_reset) {
_r.gotoAndStop("reset");
}
_i.advPanel.reset();
_i.rankPoints.reset();
_i.bonusUnlocked.reset();
if (!_fader.doStop) {
this.onEnterFrame = fadeIn;
} else {
delete this.onEnterFrame;
}
if (_fader.doShowLabel) {
_fader.lab.show();
}
}
}
function fadeIn() {
if (this.fi_func) {
this.fi_func();
delete this.fi_func;
}
var _local2 = (getTimer() - this.fi_time) / this.fi_msec;
var _local3 = Math.sin((_local2 * Math.PI) / 2);
this._xscale = (this._yscale = _local3 * 880);
this._rotation = _local2 * 90;
if (_local2 >= 2) {
this._xscale = (this._yscale = 10);
delete this.fi_msec;
delete this.fi_time;
this._parent._visible = false;
delete this.onEnterFrame;
}
}
_global._fader = this;
fader._xscale = (fader._yscale = 1);
fader._x = 0;
this._visible = false;
this.doStop = false;
Symbol 380 MovieClip Frame 1
id = "bobShop";
initBt(bt);
bt.onRollOver = function () {
_i.label.show(cl.objn[this._parent.id], this._parent._x, this._parent._y);
};
bt.onRollOut = function () {
_i.label.hide();
};
bt.onPress = function () {
_i.map.goToZone(1);
_i.label.hide();
};
Symbol 381 MovieClip Frame 1
id = "bank";
initBt(bt);
bt.onRollOver = function () {
_i.label.show(cl.objn[this._parent.id], this._parent._x, this._parent._y);
};
bt.onRollOut = function () {
_i.label.hide();
};
bt.onPress = function () {
_i.label.hide();
_i.map.goToZone(2);
};
Symbol 382 MovieClip Frame 1
id = "park";
initBt(bt);
bt.onRollOver = function () {
_i.label.show(cl.objn[this._parent.id], this._parent._x, this._parent._y);
};
bt.onRollOut = function () {
_i.label.hide();
};
bt.onPress = function () {
_i.label.hide();
_i.map.goToZone(3);
};
Symbol 385 MovieClip Frame 1
function show() {
sound.playSFX("papershift");
canOpenCommand(false);
if (_cscene < 6) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
}
function hide() {
_i.label.hide();
gotoAndStop (1);
}
function goToZone(zone) {
if (_czone == zone) {
canOpenCommand(true);
hide();
return(undefined);
}
switch (zone) {
case 1 :
var l = "r1";
break;
case 2 :
var l = "r3";
break;
case 3 :
var l = "r6";
}
_global._czone = zone;
_i.fader.go(function () {
_r.gotoAndStop(l);
_i.map.hide();
}, true);
}
stop();
Symbol 385 MovieClip Frame 2
initBt(bt);
Symbol 385 MovieClip Frame 3
initBt(bt);
Symbol 393 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 1
function setWidth(w) {
this.w = w;
ctxt._x = Math.floor(w / 2);
bg._width = w;
sh._width = w;
bt._width = w;
}
function setText(t, fid) {
this.txt = t;
ctxt.col = 16777215 /* 0xFFFFFF */;
if (fid != null) {
ctxt.fid = fid;
}
ctxt.txt = t;
ctxt.init();
isset = true;
setAlignCenter();
}
function init(w, txt, fid) {
if (w != null) {
this.w = w;
}
if (txt != null) {
this.txt = txt;
}
if (fid != null) {
this.fid = fid;
}
if (this.w != null) {
setWidth(this.w);
}
if (this.txt != null) {
setText(this.txt, this.fid);
setAlignCenter();
}
}
isset = false;
bt.tabEnabled = false;
bt.useHandCursor = false;
ctxt.align = "center";
init();
bt.onPress = function () {
bg.gotoAndStop(3);
bg._x = bg._x + 1;
bg._y = bg._y + 1;
ctxt._x = ctxt._x + 1;
ctxt._y = ctxt._y + 1;
};
bt.onRollOver = function () {
bg.gotoAndStop(2);
onover();
};
bt.onRollOut = function () {
bg.gotoAndStop(1);
onrollout();
};
bt.onReleaseOutside = function () {
bg.gotoAndStop(1);
bg._x = bg._x - 1;
bg._y = bg._y - 1;
ctxt._x = ctxt._x - 1;
ctxt._y = ctxt._y - 1;
};
bt.onRelease = function () {
bg.gotoAndStop(1);
bg._x = bg._x - 1;
bg._y = bg._y - 1;
ctxt._x = ctxt._x - 1;
ctxt._y = ctxt._y - 1;
onclick();
};
Symbol 398 MovieClip Frame 1
function checkBorders(tx, ty) {
var _local1 = 4;
if (tx > ((Stage.width - 10) - (_inventory.bw / 2))) {
tx = (Stage.width - (_inventory.bw / 2)) - _local1;
}
if (tx < (10 + (_inventory.bw / 2))) {
tx = _local1 + (_inventory.bw / 2);
}
if (ty > ((Stage.height - 10) - (_inventory.bh / 2))) {
ty = (Stage.height - (_inventory.bh / 2)) - _local1;
}
if (ty < (10 + (_inventory.bh / 2))) {
ty = _local1 + (_inventory.bh / 2);
}
return({x:tx, y:ty});
}
_inventory.bw = 32;
_inventory.bh = 32;
initBt(bt);
bt.onRollOver = function () {
gotoAndStop (2);
};
bt.onRollOut = function () {
gotoAndStop (1);
};
bt.onPress = function () {
if (_r.cursorI) {
_inventory.moving = true;
_char.clear();
_inventory.unSelectItem();
return(undefined);
}
_inventory._mx = _xmouse;
_inventory._my = _ymouse;
_inventory.moving = false;
_inventory.onEnterFrame = function () {
if (!_inventory.moving) {
if ((Math.abs(this._xmouse - this._mx) > 5) or (Math.abs(this._ymouse - this._my) > 5)) {
_inventory.moving = true;
} else {
return(undefined);
}
}
var _local2 = checkBorders(_r._xmouse - this._mx, _r._ymouse - this._my);
_inventory._x = _local2.x;
_inventory._y = _local2.y;
};
};
bt.onRelease = function () {
if (!_inventory.moving) {
_inventory.bx = _inventory._x;
_inventory.by = _inventory._y;
_inventory.play();
_inventory.status = 1;
bt._visible = false;
}
delete _inventory.onEnterFrame;
};
bt.onReleaseOutside = function () {
gotoAndStop (1);
delete _inventory.onEnterFrame;
};
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 1
function getText(txt) {
this.txt = c.text.text;
return(this.txt);
}
function setFont(fid) {
this.fid = fid;
gotoAndStop(fid);
}
function setColor(col, cols) {
this.col = col;
this.cols = cols;
var _local2 = c.text.getTextFormat(c.text);
_local2.color = col;
c.text.setTextFormat(_local2);
tfs = s.text.getTextFormat(s.text);
tfs.color = cols;
s.text.setTextFormat(tfs);
}
function setAlign(align) {
if (align == "center") {
var _local2 = getTextWidth(this.txt, this.fid);
c._x = -Math.floor(_local2 / 2);
} else if (align == "right") {
var _local2 = getTextWidth(this.txt, this.fid);
c._x = -_local2;
} else {
c._x = 0;
}
s._x = c._x + 1;
s._y = c._y + 1;
}
function setVAlign(valign) {
if (align == "center") {
var _local1 = c._height;
c._y = -Math.floor(_local1 / 2);
} else if (align == "bottom") {
var _local1 = c._height;
c._y = -_local1;
} else {
c._y = 0;
}
s._x = c._x + 1;
s._y = c._y + 1;
}
function setTextBox(tbox) {
c.text._width = tbox.width;
c.text._height = tbox.height;
if (tbox.multiLine) {
c.text.multiline = true;
}
if (tbox.wordWrap) {
c.text.wordWrap = true;
}
if (tbox.editable) {
c.text.type = "input";
}
}
function setText(txt) {
if (this.fid == null) {
this.fid = cl.f01;
}
if (this.fid != this._currentframe) {
setFont(this.fid);
return(undefined);
}
if (txt == null) {
txt = "";
}
this.txt = txt;
c.text.text = txt;
s.text.text = txt;
if (this.tbox != null) {
setTextBox(tbox);
} else {
c.text.autoSize = "left";
s.text.autoSize = "left";
}
if (this.col != null) {
setColor(this.col, this.cols);
}
if (this.align == null) {
this.align = "left";
}
setAlign(this.align);
if (this.valign) {
setVAlign(this.valign);
}
}
function init() {
setText(this.txt);
}
init();
stop();
Symbol 404 MovieClip Frame 2
init();
stop();
Symbol 404 MovieClip Frame 3
init();
stop();
Symbol 404 MovieClip Frame 4
init();
stop();
Symbol 406 MovieClip Frame 1
function checkBorders(tx, ty) {
var _local1 = 4;
if (tx > ((Stage.width - 10) - (_inventory.w / 2))) {
tx = (Stage.width - (_inventory.w / 2)) - _local1;
}
if (tx < (10 + (_inventory.w / 2))) {
tx = _local1 + (_inventory.w / 2);
}
if (ty > ((Stage.height - 10) - (_inventory.h / 2))) {
ty = (Stage.height - (_inventory.h / 2)) - _local1;
}
if (ty < (10 + (_inventory.h / 2))) {
ty = _local1 + (_inventory.h / 2);
}
return({x:tx, y:ty});
}
function onShow() {
_inventory.c = 0;
_inventory.fx = _inventory._x;
_inventory.fy = _inventory._y;
var _local3 = checkBorders(_inventory.fx, _inventory.fy);
_inventory.tx = _local3.x;
_inventory.ty = _local3.y;
_inventory.onEnterFrame = function () {
_inventory.c++;
var _local2 = _inventory.c / 2;
_inventory._x = Math.round(_inventory.fx + ((_inventory.tx - _inventory.fx) * _local2));
_inventory._y = Math.round(_inventory.fy + ((_inventory.ty - _inventory.fy) * _local2));
if (_local2 >= 1) {
delete this.onEnterFrame;
}
};
addItems();
}
function onHide() {
_inventory.c = 0;
_inventory.fx = _inventory._x;
_inventory.fy = _inventory._y;
_inventory.tx = _inventory.bx;
_inventory.ty = _inventory.by;
_inventory.onEnterFrame = function () {
_inventory.c++;
var _local2 = _inventory.c / 2;
_inventory._x = Math.round(_inventory.fx + ((_inventory.tx - _inventory.fx) * _local2));
_inventory._y = Math.round(_inventory.fy + ((_inventory.ty - _inventory.fy) * _local2));
if (_local2 >= 1) {
delete this.onEnterFrame;
}
};
}
function addItem(item, popup) {
var _local3 = ((item.y * gStatus.iCells.length) + item.x) + 200;
var _local5 = ((item.x - (gStatus.iCells.length / 2)) * _inventory.bs) + (_inventory.bs / 2);
var _local4 = (((item.y - (gStatus.iCells[0].length / 2)) * _inventory.bs) + (_inventory.bs / 2)) + _inventory.cy;
if (item.sx > 0) {
_local5 = _local5 + (((item.sx - 1) / 2) * _inventory.bs);
}
if (item.sy > 0) {
_local4 = _local4 + (((item.sy - 1) / 2) * _inventory.bs);
}
this.attachMovie("inventory item", "i" + _local3, _local3, {id:item.id, i:item, popup:popup, _x:_local5, _y:_local4});
gStatus.iCells[item.x][item.y].mc = this["i" + _local3];
}
function removeItem(item) {
item.mc.doRemove();
}
function addItems() {
var _local2 = 0;
while (_local2 < gStatus.iCells[0].length) {
var _local1 = 0;
while (_local1 < gStatus.iCells.length) {
if (gStatus.iCells[_local1][_local2] and (!gStatus.iCells[_local1][_local2].owner)) {
addItem(gStatus.iCells[_local1][_local2]);
}
_local1++;
}
_local2++;
}
}
function removeItems() {
var _local2 = 0;
while (_local2 < (gStatus.iCells.length * gStatus.iCells[0].length)) {
removeMovieClip(this["i" + (_local2 + 200)]);
_local2++;
}
}
function resetCellsBg() {
var _local3 = 1;
while (_local3 <= gStatus.iCells[0].length) {
var _local2 = 1;
while (_local2 <= gStatus.iCells.length) {
this[("bg" + _local2) + _local3].gotoAndStop(1);
_local2++;
}
_local3++;
}
}
function highlightCell(x, y, c) {
if (c) {
this[("bg" + x) + y].gotoAndStop(2);
} else {
this[("bg" + x) + y].gotoAndStop(3);
}
}
labTitle.txt = "Inventory";
labTitle.fid = 2;
labTitle.col = 0;
labTitle.cols = 11184810 /* 0xAAAAAA */;
_inventory.w = 84;
_inventory.h = 100;
_inventory.bs = 40;
_inventory.cy = 9;
btClose.useHandCursor = false;
btClose.tabEnabled = false;
initBt(btTitle);
btTitle.onPress = function () {
_inventory._mx = _xmouse;
_inventory._my = _ymouse;
_inventory.onEnterFrame = function () {
var _local2 = checkBorders(_r._xmouse - this._mx, _r._ymouse - this._my);
_inventory._x = _local2.x;
_inventory._y = _local2.y;
_inventory.bx = _local2.x;
_inventory.by = _local2.y;
};
};
btTitle.onRollOver = function () {
gotoAndStop (2);
};
btTitle.onRollOut = function () {
gotoAndStop (1);
};
btTitle.onRelease = function () {
delete _inventory.onEnterFrame;
};
btTitle.onReleaseOutside = function () {
delete _inventory.onEnterFrame;
btRollOut();
};
var x = 1;
while (x <= gStatus.iCells.length) {
var y = 1;
while (y <= gStatus.iCells[0].length) {
initBt(this[("bt" + x) + y]);
this[("bt" + x) + y].x = x - 1;
this[("bt" + x) + y].y = y - 1;
this[("bt" + x) + y].onRollOver = function () {
if (_r.cursorI) {
_r.cursorI.icon.gotoAndStop(_r.cursorI.id + "_on");
var _local4 = 0;
if (_inventory.canMoveItem(this.x, this.y)) {
_local4 = 1;
}
var _local3 = this.x;
while (_local3 <= ((this.x + gStatus.iCells[_r.cursorI.item.x][_r.cursorI.item.y].sx) - 1)) {
var _local2 = this.y;
while (_local2 <= ((this.y + gStatus.iCells[_r.cursorI.item.x][_r.cursorI.item.y].sy) - 1)) {
highlightCell(_local3 + 1, _local2 + 1, _local4);
_local2++;
}
_local3++;
}
}
};
this[("bt" + x) + y].onRollOut = (this[("bt" + x) + y].onReleaseOutside = function () {
resetCellsBg();
if (_r.cursorI) {
_r.cursorI.icon.gotoAndStop(_r.cursorI.id);
}
});
this[("bt" + x) + y].onPress = function () {
if (_r.cursorI) {
_inventory.moveItem(this.x, this.y);
}
};
y++;
}
x++;
}
stop();
Symbol 412 MovieClip Frame 1
function addItem(id, tx, ty) {
var _local1 = {id:id, sx:gStatus.itemData[id].sx, sy:gStatus.itemData[id].sy};
if (_local1.sx == null) {
}
if (tx == null) {
var _local5 = false;
var _local3 = 0;
while (_local3 < gStatus.iCells[0].length) {
var _local2 = 0;
while (_local2 < gStatus.iCells.length) {
if (gStatus.iCells[_local2][_local3] == null) {
_local1.x = _local2;
_local1.y = _local3;
_local5 = true;
var _local6 = 0;
while (_local6 < _local1.sx) {
var _local4 = 0;
while (_local4 < _local1.sy) {
if ((_local6 > 0) or (_local4 > 0)) {
if (gStatus.iCells[_local2 + _local6][_local3 + _local4]) {
_local5 = false;
}
}
_local4++;
}
_local6++;
}
if (_local5) {
break;
}
}
_local2++;
}
if (_local5) {
break;
}
_local3++;
}
if (!_local5) {
return(false);
}
} else {
_local1.x = tx;
_local1.y = ty;
var _local6 = 0;
while (_local6 < _local1.sx) {
var _local4 = 0;
while (_local4 < _local1.sy) {
if (gStatus.iCells[tx + _local6][ty + _local4]) {
return(false);
}
_local4++;
}
_local6++;
}
}
gStatus.iCells[_local1.x][_local1.y] = _local1;
if ((_local1.sx > 0) or (_local1.sy > 0)) {
var _local6 = 0;
while (_local6 < _local1.sx) {
var _local4 = 0;
while (_local4 < _local1.sy) {
if ((_local6 > 0) or (_local4 > 0)) {
gStatus.iCells[_local1.x + _local6][_local1.y + _local4] = {owner:_local1};
}
_local4++;
}
_local6++;
}
}
content.addItem(_local1, true);
return(true);
}
function removeItem(id) {
var _local4 = 0;
while (_local4 < gStatus.iCells.length) {
var _local3 = 0;
while (_local3 < gStatus.iCells[_local4].length) {
if (gStatus.iCells[_local4][_local3].id == id) {
var _local5 = {x:_local4, y:_local3};
var _local2 = 0;
while (_local2 < gStatus.iCells[_local4][_local3].sx) {
var _local1 = 0;
while (_local1 < gStatus.iCells[_local4][_local3].sy) {
if ((_local2 > 0) or (_local1 > 0)) {
gStatus.iCells[_local4 + _local2][_local3 + _local1] = null;
}
_local1++;
}
_local2++;
}
break;
}
_local3++;
}
_local4++;
}
content.removeItem(gStatus.iCells[_local5.x][_local5.y]);
gStatus.iCells[_local5.x][_local5.y] = null;
}
function canMoveItem(x, y) {
var _local7 = _r.cursorI.item;
var _local5 = {x:gStatus.iCells[_local7.x][_local7.y].x, y:gStatus.iCells[_local7.x][_local7.y].y, sx:gStatus.iCells[_local7.x][_local7.y].sx, sy:gStatus.iCells[_local7.x][_local7.y].sy, tx:x, ty:y, id:gStatus.iCells[_local7.x][_local7.y].id};
if ((_local5.x == x) and (_local5.y == y)) {
return(true);
}
if (((_local5.x + _local5.sx) > gStatus.iCells.length) or ((_local5.y + _local5.sy) > gStatus.iCells[0].length)) {
return(false);
}
var _local6 = null;
if (gStatus.iCells[x][y]) {
if (!gStatus.iCells[x][y].owner) {
_local6 = {x:gStatus.iCells[x][y].x, y:gStatus.iCells[x][y].y, sx:gStatus.iCells[x][y].sx, sy:gStatus.iCells[x][y].sy, tx:_local5.x, ty:_local5.y, id:gStatus.iCells[x][y].id};
} else {
_local6 = {x:gStatus.iCells[x][y].owner.x, y:gStatus.iCells[x][y].owner.y, sx:gStatus.iCells[x][y].owner.sx, sy:gStatus.iCells[x][y].owner.sy, tx:_local5.x - (_local5.tx - gStatus.iCells[x][y].owner.x), ty:_local5.y - (_local5.ty - gStatus.iCells[x][y].owner.y), id:gStatus.iCells[x][y].owner.id};
}
if (_local6.tx < 0) {
_local6.tx = 0;
}
if (_local6.ty < 0) {
_local6.ty = 0;
}
if ((_local6.tx + _local6.sx) > gStatus.iCells.length) {
_local6.tx = gStatus.iCells.length - _local6.sx;
}
if ((_local6.ty + _local6.sy) > gStatus.iCells[0].length) {
_local6.ty = gStatus.iCells[0].length - _local6.sy;
}
}
var _local4 = 0;
while (_local4 < 2) {
switch (_local4) {
case 0 :
var _local15 = _local5;
var _local11 = _local6;
break;
case 1 :
_local15 = _local6;
_local11 = _local5;
}
if (_local15) {
var _local3 = _local15.tx;
while (_local3 <= ((_local15.tx + _local15.sx) - 1)) {
var _local2 = _local15.ty;
while (_local2 <= ((_local15.ty + _local15.sy) - 1)) {
if ((_local3 >= gStatus.iCells.length) or (_local2 >= gStatus.iCells[0].length)) {
return(undefined);
}
if (gStatus.iCells[_local3][_local2] != null) {
var _local1 = false;
if ((!_local1) and (gStatus.iCells[_local3][_local2].id == _local15.id)) {
_local1 = true;
}
if ((!_local1) and (gStatus.iCells[_local3][_local2].owner.id == _local15.id)) {
_local1 = true;
}
if (((!_local1) and _local11) and (gStatus.iCells[_local3][_local2].id == _local11.id)) {
_local1 = true;
}
if (((!_local1) and _local11) and (gStatus.iCells[_local3][_local2].owner.id == _local11.id)) {
_local1 = true;
}
if (!_local1) {
return(false);
}
}
_local2++;
}
_local3++;
}
}
_local4++;
}
return({a:_local5, b:_local6});
}
function moveItem(x, y) {
if (!canopencommand) {
return(undefined);
}
var _local2 = _r.cursorI.item;
if ((x == _local2.x) and (y == _local2.y)) {
_char.clear();
unSelectItem();
return(undefined);
}
var _local1 = canMoveItem(x, y);
if (!_local1) {
return(undefined);
}
if (_local1.a) {
removeItem(_local1.a.id);
}
if (_local1.b) {
removeItem(_local1.b.id);
}
if (_local1.a) {
addItem(_local1.a.id, _local1.a.tx, _local1.a.ty);
}
if (_local1.b) {
addItem(_local1.b.id, _local1.b.tx, _local1.b.ty);
}
_inventory.content.removeItems();
_inventory.content.addItems();
removeMovieClip(_r.cursorI);
}
function removeAllItems() {
var _local3 = 0;
while (_local3 < gStatus.iCells.length) {
var _local1 = 0;
while (_local1 < gStatus.iCells[_local3].length) {
if (!gStatus.iCells[_local3][_local1].owner) {
content.removeItem(gStatus.iCells[_local3][_local1]);
var _local4 = 0;
while (_local4 < gStatus.iCells[_local3][_local1].sx) {
var _local2 = 0;
while (_local2 < gStatus.iCells[_local3][_local1].sy) {
if ((_local4 > 0) or (_local2 > 0)) {
gStatus.iCells[_local3 + _local4][_local1 + _local2] = null;
}
_local2++;
}
_local4++;
}
gStatus.iCells[_local3][_local1] = null;
}
_local1++;
}
_local3++;
}
}
function selectItem(item) {
_char.char.bt._visible = true;
_r.attachMovie("cursorItem", "cursorI", 772, {_x:-50, _y:-50, id:item.id, iconId:item.id, item:item.i});
_r.cursorI.onEnterFrame = function () {
this._x = _r._xmouse + 19;
this._y = _r._ymouse + 32;
};
}
function unSelectItem() {
removeMovieClip(_r.cursorI);
_char.char.bt._visible = false;
}
_global._inventory = this;
this.status = 0;
stop();
if (_cscene == 1) {
_visible = false;
}
Symbol 412 MovieClip Frame 4
content.onShow();
Symbol 412 MovieClip Frame 7
initBt(btClose);
Symbol 412 MovieClip Frame 8
initBt(btClose);
Symbol 412 MovieClip Frame 11
stop();
btClose.onRelease = function () {
play();
};
Symbol 412 MovieClip Frame 12
content.onHide();
Symbol 413 MovieClip Frame 1
if (this._parent.toPiIconId) {
this.iconId = this._parent.toPiIconId;
delete this._parent.toPiIconId;
}
if (this._parent.dir == dirRight) {
icon._xscale = -100;
} else {
icon._xscale = 100;
}
Symbol 414 MovieClip Frame 1
function getText(txt) {
this.txt = c.text.text;
return(this.txt);
}
function setFont(fid) {
this.fid = fid;
gotoAndStop(fid);
}
function setColor(col, cols) {
this.col = col;
this.cols = cols;
var _local3 = c.text.getTextFormat(c.text);
_local3.color = col;
c.text.setTextFormat(_local3);
tfs1 = s1.text.getTextFormat(s1.text);
tfs1.color = cols;
s1.text.setTextFormat(tfs1);
tfs2 = s2.text.getTextFormat(s2.text);
tfs2.color = cols;
s2.text.setTextFormat(tfs2);
tfs3 = s3.text.getTextFormat(s3.text);
tfs3.color = cols;
s3.text.setTextFormat(tfs3);
tfs4 = s4.text.getTextFormat(s4.text);
tfs4.color = cols;
s4.text.setTextFormat(tfs4);
tfs5 = s5.text.getTextFormat(s5.text);
tfs5.color = cols;
s5.text.setTextFormat(tfs5);
tfs6 = s6.text.getTextFormat(s6.text);
tfs6.color = cols;
s6.text.setTextFormat(tfs6);
tfs7 = s7.text.getTextFormat(s7.text);
tfs7.color = cols;
s7.text.setTextFormat(tfs7);
tfs8 = s8.text.getTextFormat(s8.text);
tfs8.color = cols;
s8.text.setTextFormat(tfs8);
}
function setAlign(align) {
if (align == "center") {
var _local2 = getTextWidth(this.txt, this.fid);
c._x = -Math.floor(_local2 / 2);
} else if (align == "right") {
var _local2 = getTextWidth(this.txt, this.fid);
c._x = -_local2;
} else {
c._x = 0;
}
s1._x = c._x - 1;
s1._y = c._y;
s2._x = c._x + 1;
s2._y = c._y;
s3._x = c._x;
s3._y = c._y - 1;
s4._x = c._x;
s4._y = c._y + 1;
s5._x = c._x - 1;
s1._y = c._y - 1;
s6._x = c._x - 1;
s6._y = c._y + 1;
s7._x = c._x + 1;
s7._y = c._y - 1;
s8._x = c._x + 1;
s8._y = c._y + 1;
}
function setVAlign(valign) {
if (valign == "center") {
var _local1 = c._height;
c._y = -Math.floor(_local1 / 2);
} else if (valign == "bottom") {
var _local1 = c._height;
c._y = -_local1;
} else {
c._y = 0;
}
s1._x = c._x - 1;
s1._y = c._y;
s2._x = c._x + 1;
s2._y = c._y;
s3._x = c._x;
s3._y = c._y - 1;
s4._x = c._x;
s4._y = c._y + 1;
s5._x = c._x - 1;
s5._y = c._y - 1;
s6._x = c._x + 1;
s6._y = c._y - 1;
s7._x = c._x - 1;
s7._y = c._y + 1;
s8._x = c._x + 1;
s8._y = c._y + 1;
}
function setTextBox(tbox) {
c.text._width = tbox.width;
c.text._height = tbox.height;
if (tbox.multiLine) {
c.text.multiline = true;
}
if (tbox.wordWrap) {
c.text.wordWrap = true;
}
if (tbox.editable) {
c.text.type = "input";
}
}
function setText(txt) {
if (this.fid == null) {
this.fid = cl.f01;
}
if (this.fid != this._currentframe) {
setFont(this.fid);
return(undefined);
}
if (txt == null) {
txt = "";
}
this.txt = txt;
c.text.text = txt;
s1.text.text = txt;
s2.text.text = txt;
s3.text.text = txt;
s4.text.text = txt;
s5.text.text = txt;
s6.text.text = txt;
s7.text.text = txt;
s8.text.text = txt;
if (this.tbox != null) {
setTextBox(tbox);
} else {
c.text.autoSize = (s1.text.autoSize = (s2.text.autoSize = (s3.text.autoSize = (s4.text.autoSize = (s5.text.autoSize = (s6.text.autoSize = (s7.text.autoSize = (s8.text.autoSize = "left"))))))));
}
if (this.col != null) {
setColor(this.col, this.cols);
}
if (this.align == null) {
this.align = "left";
}
setAlign(this.align);
if (this.valign) {
setVAlign(this.valign);
}
}
function init() {
setText(this.txt);
}
init();
stop();
Symbol 414 MovieClip Frame 2
init();
stop();
Symbol 414 MovieClip Frame 3
init();
stop();
Symbol 414 MovieClip Frame 4
init();
stop();
Symbol 415 MovieClip Frame 1
function show(txt, x, y) {
ison = true;
_visible = true;
lab.setText(txt);
if ((x + lab.c._x) < 2) {
x = 2 - lab.c._x;
}
if ((x - lab.c._x) > (Stage.width - 2)) {
x = (Stage.width - 2) + lab.c._x;
}
if ((y - fch[cl.f02]) < 0) {
y = fch[cl.f02];
}
if ((y + fch[cl.f02]) > Stage.height) {
y = Stage.height - fch[cl.f02];
}
_x = x;
_y = y;
}
function hide() {
ison = false;
lab.setText("");
_visible = false;
_x = -50;
_y = -50;
}
lab.fid = cl.f02;
lab.col = 16777215 /* 0xFFFFFF */;
lab.cols = 0;
lab.align = "center";
lab.valign = "center";
_visible = false;
ison = false;
Symbol 417 MovieClip Frame 1
function checkBorders(tx, ty) {
var _local1 = 4;
if (tx > ((Stage.width - 10) - (_i.specialItem.bw / 2))) {
tx = (Stage.width - (_i.specialItem.bw / 2)) - _local1;
}
if (tx < (10 + (_i.specialItem.bw / 2))) {
tx = _local1 + (_i.specialItem.bw / 2);
}
if (ty > ((Stage.height - 10) - (_i.specialItem.bh / 2))) {
ty = (Stage.height - (_i.specialItem.bh / 2)) - _local1;
}
if (ty < (10 + (_i.specialItem.bh / 2))) {
ty = _local1 + (_i.specialItem.bh / 2);
}
return({x:tx, y:ty});
}
_i.specialItem.bw = 32;
_i.specialItem.bh = 32;
initBt(bt);
bt.onRollOver = function () {
gotoAndStop (2);
};
bt.onRollOut = function () {
gotoAndStop (1);
};
bt.onPress = function () {
if (_r.cursorI) {
_i.specialItem.moving = true;
_i.specialItem.cancelItem();
return(undefined);
}
_i.specialItem._mx = _xmouse;
_i.specialItem._my = _ymouse;
_i.specialItem.moving = false;
_i.specialItem.onEnterFrame = function () {
if (!_i.specialItem.moving) {
if ((Math.abs(this._xmouse - this._mx) > 5) or (Math.abs(this._ymouse - this._my) > 5)) {
_i.specialItem.moving = true;
} else {
return(undefined);
}
}
var _local2 = checkBorders(_r._xmouse - this._mx, _r._ymouse - this._my);
_i.specialItem._x = _local2.x;
_i.specialItem._y = _local2.y;
};
};
bt.onRelease = function () {
if (!_i.specialItem.moving) {
mkla.activateGoggles();
}
delete _i.specialItem.onEnterFrame;
};
bt.onReleaseOutside = function () {
gotoAndStop (1);
delete _i.specialItem.onEnterFrame;
};
stop();
Symbol 418 MovieClip Frame 1
function init() {
if (gStatus.arGogglesOn and (_char == mkla)) {
gotoAndStop ("arGoggles");
} else {
gotoAndStop (2);
}
}
init();
Symbol 418 MovieClip Frame 9
stop();
Symbol 422 MovieClip Frame 1
delete this.onEnterFrame;
stop();
Symbol 422 MovieClip Frame 3
this._x = _m._xmouse;
this._y = _m._ymouse;
if (mirrorMode) {
this.ico._x = -15;
} else {
this.ico._x = 15;
}
this.onEnterFrame = function () {
this._x = this._x + ((_m._xmouse - this._x) / 2);
this._y = this._y + ((_m._ymouse - this._y) / 2);
this.ico._rotation = this.ico._rotation + 10;
if (mirrorMode) {
this.ico._x = -15;
} else {
this.ico._x = 15;
}
};
stop();
Symbol 422 MovieClip Frame 9
gotoAndStop (1);
Symbol 424 Button
on (rollOver) {
_parent.removeTimer();
btRollOver();
}
on (rollOut) {
_parent.createTimer();
btRollOut();
}
Symbol 515 MovieClip Frame 7
moveItem(6, 13);
Symbol 515 MovieClip Frame 308
moveItem(6, 13);
Symbol 519 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 3
Symbol 520 MovieClip Frame 1
function initP(a) {
init(a);
setPosC();
}
function init(a) {
if (!canopencommand) {
return(undefined);
}
removeTimer();
closeCommPanels(this);
var _local2 = [];
if (a[0].n != null) {
_local2 = a;
} else {
i = 0;
while (i < (a.length / 2)) {
_local2[i] = {};
_local2[i].n = a[i * 2];
_local2[i].c = a[(i * 2) + 1];
i++;
}
}
if (_local2.length == 0) {
_local2[0] = {};
_local2[0].n = "nothing";
_local2[0].c = "";
}
if (status == 1) {
var _local4 = true;
var i = 0;
while (i < _local2.length) {
if ((command["bt" + (i + 1)].btlabel != _local2[i].n) or (command["bt" + (i + 1)].onclick != _local2[i].c)) {
_local4 = false;
}
i++;
}
if (_local4) {
return(undefined);
}
}
status = 1;
command.nbt = _local2.length;
command.gotoAndStop(_local2.length);
i = 0;
while (i < _local2.length) {
command[("bt" + (i + 1)) + "gfx"].gotoAndStop(_local2[i].n);
command["bt" + (i + 1)].gfx = command[("bt" + (i + 1)) + "gfx"];
command["bt" + (i + 1)].btlabel = _local2[i].n;
command["bt" + (i + 1)].onclick = _local2[i].c;
command["bt" + (i + 1)].onover = _local2[i].o;
command["bt" + (i + 1)].onout = _local2[i].t;
command["bt" + (i + 1)].tabEnabled = false;
command["bt" + (i + 1)].onRelease = function () {
if (typeof(this.onclick) == "string") {
owner.gotoAndPlay(this.onclick);
} else {
this.onclick();
}
close();
};
command["bt" + (i + 1)].onRollOut = function () {
btRollOut();
this.onout();
this.gfx.gotoAndStop(this.btlabel);
};
command["bt" + (i + 1)].onRollOver = function () {
btRollOver();
this.onover();
this.gfx.gotoAndStop(this.btlabel + "_on");
};
command["bt" + (i + 1)].onReleaseOutside = function () {
btRollOut();
this.onout();
this.gfx.gotoAndStop(this.btlabel);
};
i++;
}
_i.agentNamePanel.gotoAndStop(owner.char._name);
gotoAndPlay ("open");
}
function setPosC() {
var _local2 = owner.getPos();
this._x = _local2._x;
this._y = _local2._y + 15;
}
function close() {
if (status == 0) {
return(undefined);
}
status = 0;
gotoAndPlay ("close");
_i.agentNamePanel.gotoAndStop(1);
clearButtons();
btRollOut();
}
function clearButtons() {
i = 0;
while (i < command.nbt) {
delete command["bt" + (i + 1)].onclick;
delete command["bt" + (i + 1)].onover;
delete command["bt" + (i + 1)].onout;
delete command["bt" + (i + 1)].onRelease;
delete command["bt" + (i + 1)].onRollOut;
delete command["bt" + (i + 1)].onRollOver;
delete command["bt" + (i + 1)].onReleaseOutside;
command["bt" + (i + 1)].useHandCursor = false;
i++;
}
}
_visible = false;
status = 0;
bttl = 24;
stop();
owner = _char;
Symbol 520 MovieClip Frame 3
this._visible = true;
Symbol 520 MovieClip Frame 13
stop();
Symbol 520 MovieClip Frame 14
status = 0;
Symbol 522 MovieClip Frame 1
function doPlay(n) {
gotoAndStop(n + 1);
}
stop();
Symbol 522 MovieClip Frame 2
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
_inventory._visible = false;
mkla.doAction([{t:"vo", l:cl.k01}, {t:"vi", v:true}, {t:"go", o:_m.wbvan.wbvan, l:"down"}, {x:175, y:335}, {t:"fu", f:_c.cutscenes.nextStep}, {x:297}, {t:"ma", m:2}, {x:337}]);
});
steps.push(function () {
msteve.doAction([{id:"id", l:2000}, {t:"vo", l:cl.s01}, {t:"vi", v:true}, {t:"go", o:_m.wbvan.wbvan, l:"down"}, {x:175, y:335}, {t:"ps", s:"carclosedoor"}, {x:250}, {t:"tu", d:dirLeft}, {t:"go", o:_m.wbvan, l:"out"}, {t:"id", i:24}, {t:"tu", d:dirRight}, {t:"em", e:":D"}, {t:"id", i:24}, {t:"em", e:"^_^"}, {t:"vo", l:cl.s02, m:true, g:true}, {t:"tw", a:"a"}, {t:"tw", a:"a"}, {t:"tw", a:"a"}, {t:"tw", a:"a"}, {t:"vo", l:cl.s03}, {t:"tu", d:dirLeft}, {t:"em", e:":)"}, {t:"an", l:"startrtalk"}, {t:"vo", l:cl.s04}, {t:"go", o:_m.pmb, l:"in"}, {t:"em", e:":D"}, {t:"an", l:"stoprtalk"}, {t:"id", i:30}, {t:"vo", l:cl.s05}, {t:"go", o:_m.pmb, l:"ok"}, {t:"em", e:":D"}, {t:"id", i:30}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_global._cscene = 2;
sound.fadeOutMusic(500, true);
_i.fader.go(function () {
_r.gotoAndStop("r2");
sound.playMusicPattern(2, 3000);
}, true);
});
nextStep();
Symbol 522 MovieClip Frame 3
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
mkla.doAction({x:61});
mbob.doAction([{t:"vo", l:cl.b01}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mkla.doAction([{t:"vo", l:cl.k02}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mbob.char.toPiIconId = "gift";
mbob.doAction([{t:"vo", l:cl.b02}, {t:"tu", d:dirRight}, {t:"an", l:"pickup"}, {t:"id", i:2}, {t:"fu", f:function () {
_e.gift._visible = true;
mbob.char.pi._visible = false;
}}, {t:"id", i:2}, {t:"fu", f:_c.cutscenes.nextStep}, {t:"an", l:"pickup_b"}, {t:"id", i:4}]);
});
steps.push(function () {
gStatus.bobComm01 = true;
mkla.doAction([{t:"vo", l:cl.k03}, {t:"co", c:true}]);
});
nextStep();
Symbol 522 MovieClip Frame 4
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
mkla.doAction([{t:"vo", l:cl.k18}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mbob.doAction([{t:"vo", l:cl.b13}, {t:"tu", d:dirLeft}, {t:"tw", a:"b"}, {t:"vo", l:cl.b14}, {t:"an", l:"touch"}, {t:"pl", o:_e.shopTitle}, {t:"an", l:"touch_b"}, {t:"id", i:24}, {t:"an", l:"touch"}, {t:"fu", f:function () {
_e.shopTitle.tdisplay.play();
}}, {t:"vo", l:cl.b15}, {t:"an", l:"touch_b"}, {t:"id", i:12}, {t:"an", l:"touch"}, {t:"fu", f:function () {
_e.shopTitle.tdisplay.play();
}}, {t:"vo", l:cl.b15}, {t:"an", l:"touch_b"}, {t:"id", i:12}, {t:"an", l:"touch"}, {t:"fu", f:function () {
_e.shopTitle.tdisplay.play();
}}, {t:"vo", l:cl.b15}, {t:"an", l:"touch_b"}, {ta:mkla, t:"vo", l:cl["..."]}, {t:"id", i:12}, {t:"fu", f:mbob.doTurn}, {t:"id", i:12}, {t:"vo", l:cl.b16}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
gStatus.furScanUnlocked = true;
mkla.doAction([{t:"vo", l:cl.k19}, {t:"co", c:true}]);
});
nextStep();
Symbol 522 MovieClip Frame 5
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
msteve.doAction([{t:"em", e:":D"}, {t:"id", i:24}, {t:"vo", l:cl.s10, g:true}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
sound.playMusicPattern(3);
mkla.doAction([{t:"id", l:2000}, {x:291}, {t:"ma", m:0}, {x:221}, {t:"id", l:500}, {t:"tu", d:dirRight}, {t:"id", l:500}, {t:"vo", l:cl.k50}, {t:"tu", d:dirLeft}, {t:"id", l:500}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
msteve.doAction([{t:"vo", l:cl.s11}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.rain.doStart();
sound.playLoopSFX(2);
mkla.doAction([{t:"em", e:":O"}, {t:"tw", a:"a"}, {t:"id", i:24}, {t:"vo", l:cl.k51}, {t:"em", e:":O"}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
msteve.doAction([{t:"tu", d:dirLeft}, {t:"vo", l:cl.s12}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mkla.doAction([{t:"em", e:"|:S"}, {t:"vo", l:cl.k52}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
msteve.doAction([{t:"vo", l:cl.s13}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
sound.playLoopSFX(3, 2000);
gStatus.arGogglesBroken = true;
kla.glasses.gotoAndStop(5);
mkla.doAction([{t:"em", e:":O"}, {t:"tw", a:"a"}, {t:"vo", l:cl.k53}, {t:"vo", l:cl.k54}, {t:"em", e:":O"}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
msteve.doAction([{t:"vo", l:cl.s14}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mkla.doAction([{t:"vo", l:cl.k55}, {t:"em", e:":O"}, {t:"ma", m:2}, {t:"fu", f:function () {
sound.stopLoopSFX(3, 1000);
sound.panTo(sound.sfx.loop3, 100);
}}, {x:437, s:3}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
msteve.doAction([{t:"tu", d:dirRight}, {t:"vo", l:cl.s15}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_inventory.removeAllItems();
_inventory.addItem("wallet");
_global._cscene = 4;
_global._char = msteve;
sound.fadeOutMusic(500, true);
_i.fader.go(function () {
_r.gotoAndStop("r2");
sound.playMusicPattern(2, 3000);
}, true);
});
nextStep();
Symbol 522 MovieClip Frame 6
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
msteve.doAction({x:81});
mbob.doAction([{t:"vo", l:cl.b25}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
msteve.doAction([{t:"vo", l:cl.s16}, {ta:mbob, wta:true, t:"vo", l:cl.b26}, {t:"vo", l:cl.s17}, {ta:mbob, wta:true, t:"vo", l:cl.b27}, {t:"vo", l:cl.s18}, {ta:mbob, wta:true, t:"vo", l:cl.b28}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
gStatus.bobComm02 = true;
msteve.doAction([{t:"vo", l:cl.s19}, {t:"co", c:true}]);
});
nextStep();
Symbol 522 MovieClip Frame 7
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
msteve.doAction([{t:"vo", l:cl.s41}, {t:"id", l:1000}, {t:"vo", l:cl.s42}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
gStatus.arGogglesActive = true;
sound.fadeOutMusic(500, true);
_inventory.removeAllItems();
_fader.goLabel(function () {
sound.playMusicPattern(4, 3000);
_r.gotoAndStop("r4");
}, true, cl.ft01, 4000);
});
nextStep();
Symbol 522 MovieClip Frame 8
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
mkla.doAction([{t:"id", l:2000}, {t:"vo", l:cl.k56}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_global._cscene = 5;
_m.arEye.target = _m.arEye.getToCharPos();
mkla.doAction([{t:"tu", d:dirLeft}, {t:"vo", l:cl.k57}, {t:"co", c:true}]);
});
nextStep();
Symbol 522 MovieClip Frame 9
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
gStatus.cutTree = true;
_m.arEye.target = {x:278, y:220};
mkla.doAction([{t:"tu", d:dirRight}]);
_m.arEye.doAction([{t:"id", i:12}, {t:"tu", d:dirRight}, {t:"id", i:24}, {t:"vo", l:cl.e07}, {ta:mxmaTree1, t:"em", e:":("}, {t:"pl", o:_m.laserBeam}, {t:"id", i:150}, {t:"fu", f:function () {
_m.arEye.target = _m.arEye.getToCharPos(true);
}}, {t:"vo", l:cl.e08}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mkla.doAction([{t:"vo", l:cl.k60}, {t:"fu", f:_c.cutscenes.nextStep}]);
mxmaTree1.doAction([{x:460}]);
});
steps.push(function () {
mxmaTree1.doAction([{t:"vo", l:cl.x01}, {x:480}, {t:"id", l:1000}, {t:"tu", d:dirLeft}, {t:"vo", l:cl.x02}, {x:500}, {t:"id", l:1000}, {t:"tu", d:dirLeft}, {t:"vo", l:cl.x03}, {x:570}, {x:510, s:2}, {t:"vo", l:cl.x04}, {x:570, s:2}, {t:"vi", v:false}, {t:"co", c:true}]);
});
nextStep();
Symbol 522 MovieClip Frame 10
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
mkla.doAction([{x:150}, {t:"vo", l:cl.k63}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mxmaTree1.doAction([{t:"em", e:":("}, {t:"tw", a:"a"}]);
mxmaTree2.doAction([{t:"id", l:200}, {t:"tw", a:"a"}, {t:"tu", d:dirRight}, {t:"vo", l:cl.x05}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mxmaSpirit.doAction([{t:"vi", v:true}, {x:495, y:328, s:0.4}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mxmaTree2.doAction([{t:"tu", d:dirLeft}]);
mkla.doAction([{t:"vo", l:cl.k64}, {ta:mxmaSpirit, wta:true, t:"vo", l:cl.x06}, {t:"vo", l:cl.k65}, {ta:mxmaSpirit, wta:true, t:"vo", l:cl.x07}, {ta:mxmaSpirit, wta:true, x:463}, {ta:mxmaSpirit, wta:true, t:"vo", l:cl.x08}, {t:"vo", l:cl.k66}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mxmaSpirit.doAction([{t:"vo", l:cl.x09}, {t:"an", l:"attack"}, {t:"pl", o:_m.beam}, {t:"id", l:3000}, {t:"an", l:"attack_b"}, {t:"id", l:3000}, {ta:mkla, wta:true, t:"vo", l:cl.k67}, {t:"vo", l:cl.x10}, {ta:mxmaTree1, wta:true, t:"tu", d:dirRight}, {ta:mxmaTree1, wta:true, t:"vo", l:cl.x11}, {ta:mxmaTree2, wta:true, t:"tu", d:dirRight}, {t:"tw", a:"a"}, {t:"tw", a:"b"}, {t:"vo", l:cl.x12}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_global._czone = 2;
gStatus.arGooglesActive = false;
sound.fadeOutMusic(500, true);
_inventory.removeAllItems();
_fader.goLabel(function () {
sound.playMusicPattern(2, 3000);
_r.gotoAndStop("r3");
}, true, cl.ft03, 4000);
});
nextStep();
Symbol 522 MovieClip Frame 11
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
_global._cscene = 6;
msteve.doAction([{x:382}, {t:"ma", m:0}, {t:"vo", l:cl.s50}, {t:"tu", d:dirLeft}, {t:"vo", l:cl.s51}, {t:"an", l:"think"}, {t:"vo", l:cl.mmh}, {t:"id", l:1000}, {t:"tw", a:"a"}, {t:"em", e:":D"}, {t:"an", l:"think_b"}, {t:"vo", l:cl.s52}, {t:"tu", d:dirRight}, {t:"an", l:"indicate"}, {t:"vo", l:cl.s53}, {t:"an", l:"indicate_b"}, {t:"co", c:true}]);
_inventory.addItem("btcMap");
if (gStatus.gottaser) {
_inventory.addItem("taser");
} else {
_inventory.addItem("credits2");
}
});
nextStep();
Symbol 522 MovieClip Frame 12
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
mkla.doAction([{x:418}, {t:"tu", d:dirRight}]);
_m.furScanner.gotoAndPlay("in");
});
steps.push(function () {
mkla.doAction([{t:"tw", a:"a"}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.furScanner.talk(cl.v01);
});
steps.push(function () {
mkla.doAction([{t:"vo", l:cl.k13}, {x:465, y:326}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.furScanner.talk(cl.v02);
});
steps.push(function () {
_m.furScanner.stop();
_m.furScanner.onEnterFrame = function () {
delete this.onEnterFrame;
this.gotoAndPlay("cut");
};
});
steps.push(function () {
mkla.doAction([{t:"em", e:":O"}, {t:"tw", a:"a"}, {t:"vo", l:cl.k14}, {t:"em", e:":O"}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.furScanner.stop();
_m.furScanner.onEnterFrame = function () {
delete this.onEnterFrame;
this.gotoAndPlay("cut2");
};
mkla.doAction([{t:"id", i:30}, {t:"em", e:"\u00B0_\u00B0"}]);
});
steps.push(function () {
_m.furScanner.gotoAndPlay("in2");
mkla.doAction([{t:"em", e:";o;"}]);
});
steps.push(function () {
_m.furScanner.talk(cl.v03);
});
steps.push(function () {
mkla.doAction([{t:"em", e:";o;"}, {t:"id", l:1000}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.furScanner.talk(cl.v04);
});
steps.push(function () {
mkla.doAction([{t:"em", e:"|:S"}, {t:"tw", a:"b"}, {x:448, y:335}, {t:"vo", l:cl.k15}, {ta:mbob, wta:true, t:"vo", l:cl.b11}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.furScanner.talk(cl.v05);
});
steps.push(function () {
_m.furScanner.stop();
_m.furScanner.onEnterFrame = function () {
delete this.onEnterFrame;
this.gotoAndPlay("out");
};
});
steps.push(function () {
_e.shelves.play();
});
nextStep();
Symbol 522 MovieClip Frame 13
function nextStep(wait) {
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
msteve.doAction([{t:"ma", m:10}, {x:305}, {t:"vi", v:false}, {t:"vo", l:cl.s75}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
gStatus.arGooglesActive = true;
_inventory.removeAllItems();
sound.fadeOutMusic(500, true);
_fader.goLabel(function () {
sound.playMusicPattern(4, 3000);
_r.gotoAndStop("r5");
}, true, cl.ft04, 4000);
});
steps.push(function () {
if (gStatus.gotcubeRed) {
_inventory.addItem("cubeRed");
}
if (gStatus.gotcubeGreen) {
_inventory.addItem("cubeGreen");
}
if (gStatus.gotcubeBlue) {
_inventory.addItem("cubeBlue");
}
mkla.doAction([{t:"tu", d:dirLeft}, {t:"vo", l:cl.k69}, {t:"tu", d:dirRight}, {t:"fu", f:function () {
_m.arEye.target = _char;
}}, {t:"vo", l:cl.k70}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_global._cscene = 7;
_m.arEye.startFollow();
canOpenCommand(true);
});
nextStep();
Symbol 522 MovieClip Frame 14
function nextStep(wait) {
clearInterval(this.interval);
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
canOpenCommand(false);
_e.xTree.gotoAndPlay("out");
mkla.doAction([{t:"wb", x:210, s:0.5, d:dirRight}, {t:"id", l:500}, {t:"em", e:":D"}, {t:"tw", a:"a"}, {t:"vo", l:cl.k77}, {t:"em", e:":D"}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mxmaTree1.doAction([{t:"id", l:500}, {t:"ma", m:8}, {t:"vi", v:true}, {x:495, y:328}, {t:"ma", m:0}, {t:"em", e:":("}, {x:465, y:328}]);
mxmaTree2.doAction([{t:"ma", m:8}, {t:"vi", v:true}, {x:495, y:328}, {t:"ma", m:0}, {t:"em", e:":("}, {x:465, y:328}, {x:445, y:325}]);
mxmaSpirit.doAction([{t:"id", l:2000}, {t:"ma", m:8}, {t:"vi", v:true}, {x:495, y:328}, {t:"ma", m:0}, {t:"em", e:":("}, {ta:mkla, t:"em", e:":O"}, {ta:mkla, t:"tw", a:"b"}, {x:495, y:328}, {ta:mkla, t:"wb", x:190, s:0.5, d:dirRight}, {t:"vo", l:cl.x13}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.overLight.play();
mxmaSpirit.doAction([{t:"id", l:1000}, {t:"em", e:">_<"}, {t:"tw", a:"p"}, {t:"vo", l:cl.x14}, {t:"em", e:">_<"}, {t:"an", l:"aaah"}]);
mxmaTree1.doAction([{t:"id", l:1500}, {t:"em", e:">_<"}, {t:"tw", a:"p"}, {t:"vo", l:cl.x14}, {t:"em", e:">_<"}]);
mxmaTree2.doAction([{t:"id", l:1300}, {t:"em", e:">_<"}, {t:"tw", a:"p"}, {t:"vo", l:cl.x14}, {t:"em", e:">_<"}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
mkla.doAction([{t:"em", e:":O"}, {t:"tw", a:"a"}, {t:"vo", l:cl.k78}, {ta:_m.arEye, wta:true, t:"vo", l:cl.e10}, {ta:mxmaSpirit, wta:true, t:"vo", l:cl.x15}, {ta:mxmaSpirit, wta:true, t:"em", e:">_<"}, {t:"vo", l:cl.k79}, {x:280}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_global._cscene = 8;
gStatus.gotbatteries = false;
gStatus.gotwires = false;
gStatus.gotneonLights = false;
sound.fadeOutMusic(100, true);
sound.playLoopSFX(3, 100);
_r.gotoAndStop("r2");
nextStep(5000);
});
steps.push(function () {
mkla.getPos = function () {
return({_x:this.char._x + 20, _y:this.char._y + 35});
};
msteve.doAction([{t:"vo", l:cl.s78}, {t:"fu", f:function () {
_m.lightAndDark.play();
}}]);
});
steps.push(function () {
msteve.doAction([{t:"tw", a:"a"}, {t:"vo", l:cl.s79}, {ta:mkla, wta:true, t:"vo", l:cl.k80}, {t:"co", c:true}]);
});
nextStep();
Symbol 522 MovieClip Frame 15
function nextStep(wait) {
clearInterval(this.interval);
if (wait != null) {
this.interval = setInterval(this, "nextStep", wait);
return(undefined);
}
steps[cs]();
cs++;
}
stop();
this.cs = 0;
this.interval = 0;
this.steps = [];
steps.push(function () {
canOpenCommand(false);
_char.char.toPiIconId = "neonLightsOn";
msteve.doAction([{t:"vo", l:cl.s81}, {x:415, s:0.7}, {t:"vo", l:cl.s82}, {t:"an", l:"throw"}, {t:"pl", o:_m.neonThrown}, {t:"fu", f:function () {
_char.char.pi._visible = false;
}}]);
});
steps.push(function () {
_c.canComIcon.gotoAndPlay("hide");
_c.canComIcon._visible = false;
gStatus.arGogglesActive = true;
_global._cscene = 9;
_inventory._visible = false;
_inventory.removeAllItems();
sound.stopLoopSFX(3, 100);
sound.playMusicPattern(5);
_r.gotoAndStop("r5");
});
steps.push(function () {
mkla.doAction({t:"em", e:":O"});
mxmaSpirit.doAction([{t:"vo", l:cl.x16}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.overLightFinal.play();
mxmaSpirit.doAction([{t:"id", l:1500}, {t:"em", e:">_<"}, {t:"tw", a:"p"}, {t:"vo", l:cl.x17}, {t:"em", e:">_<"}, {t:"an", l:"aaah"}, {t:"fu", f:_c.cutscenes.nextStep}]);
mxmaTree1.doAction([{t:"id", l:1000}, {t:"em", e:">_<"}, {t:"tw", a:"p"}, {t:"vo", l:cl.x14}, {t:"em", e:">_<"}]);
mxmaTree2.doAction([{t:"id", l:1300}, {t:"em", e:">_<"}, {t:"tw", a:"p"}, {t:"vo", l:cl.x14}, {t:"em", e:">_<"}]);
});
steps.push(function () {
mkla.doAction([{t:"an", l:"indicate", g:true}, {t:"vo", l:cl.k81}, {t:"an", l:"indicate_b"}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.arEye.target = {x:85, y:247};
mkla.doAction([{t:"id", l:2000}, {t:"fu", f:function () {
_m.laserBeam.gotoAndPlay("b2");
}}, {t:"id", l:2000}, {t:"fu", f:function () {
mxmaTree1.expl.play();
}}, {t:"id", l:200}, {t:"fu", f:function () {
mxmaSpirit.expl.play();
}}, {t:"id", l:200}, {t:"fu", f:function () {
mxmaTree2.expl.play();
}}, {t:"id", l:200}, {t:"fu", f:_c.cutscenes.nextStep}]);
sound.fadeOutMusic(1000, true);
});
steps.push(function () {
mkla.doAction([{t:"em", e:":D"}, {t:"tw", a:"b"}, {t:"em", e:"^_^"}, {t:"id", l:1000}, {t:"tu", d:dirLeft}, {t:"em", e:"^_^"}, {t:"vo", l:cl.k82}, {t:"tu", d:dirRight}, {t:"em", e:"^_^"}, {t:"vo", l:cl.k83}, {t:"em", e:"^_^"}, {t:"tw", a:"b"}, {t:"em", e:":|"}, {t:"an", l:"think"}, {t:"vo", l:cl.k84}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e11, cl.e22, function () {
mkla.clear();
_c.cutscenes.nextStep();
});
mkla.doAction([{t:"id", l:2000}, {t:"an", l:"think_b"}, {t:"vo", l:cl.k85}]);
});
steps.push(function () {
sound.playMusicPattern(3);
_global._cscene = 10;
gStatus.arGogglesActive = false;
gStatus.arGogglesBroken = false;
_r.gotoAndStop("r1");
});
steps.push(function () {
msteve.doAction([{t:"em", e:":D"}, {t:"id", l:1000}, {t:"vo", l:cl.s83}, {ta:mryoh, wta:true, t:"vo", l:cl.r01}, {ta:mlucas, wta:true, t:"vo", l:cl.l02}, {t:"em", e:";o;"}, {t:"id", l:2000}, {ta:mkla, wta:true, x:286, s:1.5}, {ta:mkla, wta:true, t:"ma", m:0}, {ta:mkla, wta:true, t:"vo", l:cl.k86}, {ta:mkla, wta:true, t:"em", e:":D"}, {t:"tu", d:dirRight}, {t:"em", e:":D"}, {ta:mlucas, wta:true, t:"vo", l:cl.l03}, {ta:mkla, wta:true, t:"em", e:":|"}, {t:"em", e:":O"}, {t:"tw", a:"a"}, {t:"tu", d:dirLeft}, {t:"vo", l:cl.s84}, {t:"tu", d:dirRight}, {t:"vo", l:cl.s85}, {t:"tu", d:dirLeft}, {t:"em", e:":D"}, {t:"id", l:2000}, {ta:mlucas, wta:true, t:"vo", l:cl.l04}, {t:"vo", l:cl.s86}, {ta:mryoh, wta:true, t:"vo", l:cl.r02}, {ta:mkla, wta:true, t:"vo", l:cl.k87}, {ta:mryoh, t:"id", l:500}, {ta:mryoh, x:59, y:335, s:0.7}, {ta:mryoh, x:53, y:329}, {ta:mryoh, t:"vi", v:false}, {ta:mryoh, t:"fu", f:function () {
_m.wbvan.wbvan.gotoAndPlay("down");
}}, {ta:mlucas, x:59, y:335, s:0.7}, {ta:mlucas, x:53, y:329}, {ta:mlucas, t:"vi", v:false}, {ta:mlucas, t:"fu", f:function () {
_m.wbvan.wbvan.gotoAndPlay("down");
}}, {ta:mkla, t:"id", l:1000}, {ta:mkla, x:59, y:335, s:0.7}, {ta:mkla, x:53, y:329}, {ta:mkla, t:"vi", v:false}, {ta:mkla, t:"fu", f:function () {
_m.wbvan.wbvan.gotoAndPlay("down");
}}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
msteve.doAction([{t:"vo", l:cl.s87}, {x:59, y:335, s:0.7}, {x:53, y:329}, {t:"vi", v:false}, {t:"fu", f:function () {
sound.fadeOutMusic(800, true);
_m.wbvan.wbvan.gotoAndPlay("down");
}}, {t:"id", l:1000}, {t:"fu", f:function () {
_i.gotoAndStop(3);
sound.playMusic("wb_maintheme");
_m.wbvan.gotoAndPlay("out2");
}}]);
});
steps.push(function () {
sound.fadeOutMusic(3000, true);
_global._cscene = 11;
_r.gotoAndStop("r5");
});
steps.push(function () {
_e.sleigh.play();
});
steps.push(function () {
mjebediah.doAction([{t:"vi", v:true}, {x:153}, {t:"vo", l:cl.j11}, {t:"tw", a:"b"}, {t:"id", l:1000}, {t:"an", l:"look_back"}, {t:"id", l:500}, {t:"vo", l:cl.j12}, {t:"an", l:"look_back_b"}, {t:"id", l:500}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e12, cl.e23, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"vo", l:cl.j23}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e27, cl.e23, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"vo", l:cl.j13}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e13, cl.e23, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"vo", l:cl.j14}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e14, cl.e23, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"vo", l:cl.j15}, {t:"fu", f:function () {
_m.gotoAndStop(2);
}}, {t:"em", e:"|:S"}, {t:"tw", a:"a"}, {t:"an", l:"look_back"}, {t:"id", l:200}, {t:"an", l:"look_back_b"}, {t:"id", l:200}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e15, cl.e23, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"vo", l:cl.j16}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e16, cl.e23, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"id", l:200}, {t:"tw", a:"b"}, {t:"em", e:"|:S"}, {t:"id", l:1000}, {t:"fu", f:_c.cutscenes.nextStep}, {t:"tw", a:"a"}]);
});
steps.push(function () {
_m.alert.show(cl.e25, cl.e26, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"vo", l:cl.j17}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e18, cl.e23, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"vo", l:cl.j18}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e19, cl.e23, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"em", e:"|:S"}, {t:"tw", a:"a"}, {t:"vo", l:cl.j19}, {t:"tw", a:"b"}, {t:"em", e:":|"}, {t:"an", l:"look_back"}, {t:"id", l:3000}, {t:"an", l:"look_back_b"}, {t:"vo", l:cl.j20}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e20, cl.e23, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"vo", l:cl.j21}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.alert.show(cl.e21, cl.e22, function () {
_c.cutscenes.nextStep();
});
});
steps.push(function () {
mjebediah.doAction([{t:"em", e:":|"}, {t:"vo", l:cl.j22}, {t:"fu", f:_c.cutscenes.nextStep}]);
});
steps.push(function () {
_m.mjebediah.char.onEnterFrame = function () {
this._alpha = this._alpha - 10;
this._xscale = this._xscale - 30;
if (this._xscale < 10) {
this._xscale = 10;
}
this._yscale = this._yscale + 5;
if (_alpha <= 0) {
delete this.onEnterFrame;
this._visible = false;
}
};
nextStep(4000);
});
steps.push(function () {
_m.alert.show(cl.e24, cl.e23, function () {
getURL ("http://www.warbears.com");
});
});
nextStep();
Symbol 523 MovieClip Frame 1
_global._c = this;
Symbol 528 Button
on (release) {
_quality = "HIGH";
gotoAndStop (1);
}
Symbol 529 Button
on (release) {
_quality = "MEDIUM";
gotoAndStop (2);
}
Symbol 530 Button
on (release) {
_quality = "LOW";
gotoAndStop (3);
}
Symbol 531 MovieClip Frame 1
function init() {
if (_quality == "HIGH") {
gotoAndStop (1);
} else if (_quality == "MEDIUM") {
gotoAndStop (2);
} else if (_quality == "LOW") {
gotoAndStop (3);
}
stop();
initBt(bt1);
initBt(bt2);
initBt(bt3);
}
init();
Symbol 534 Button
on (press) {
this.bx = this._xmouse;
this.onEnterFrame = function () {
this._x = this._parent._xmouse - this.bx;
if (this._x < 0) {
this._x = 0;
} else if (this._x > 63) {
this._x = 63;
}
};
dragging = true;
}
on (release) {
delete this.onEnterFrame;
dragging = false;
}
on (releaseOutside) {
delete this.onEnterFrame;
dragging = false;
btRollOut();
}
Symbol 535 MovieClip Frame 1
initBt(bt);
Instance of Symbol 535 MovieClip "bt" in Symbol 536 MovieClip Frame 1
onClipEvent (enterFrame) {
if (dragging) {
var vol = Math.round((_x / 63) * 100);
_parent.owner.setVolume(vol);
_parent.volTxt.setText(vol);
if (vol == 0) {
_parent.volCheck.gotoAndStop(1);
} else {
_parent.volCheck.gotoAndStop(2);
}
}
}
Symbol 538 Button
on (press) {
if (_currentframe == 1) {
gotoAndStop (2);
doOn();
} else {
gotoAndStop (1);
doOff();
}
}
Symbol 540 MovieClip Frame 1
bt.useHandCursor = false;
bt.tabEnabled = false;
stop();
Symbol 540 MovieClip Frame 2
stop();
Symbol 545 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 1
function setWidth(w) {
this.w = w;
ctxt._x = Math.floor(w / 2);
bg._width = w;
sh._width = w;
bt._width = w;
}
function setText(t, fid) {
this.txt = t;
ctxt.col = 0;
if (fid != null) {
ctxt.fid = fid;
}
ctxt.txt = t;
ctxt.init();
isset = true;
setAlignCenter();
}
function init(w, txt, fid) {
if (w != null) {
this.w = w;
}
if (txt != null) {
this.txt = txt;
}
if (fid != null) {
this.fid = fid;
}
if (this.w != null) {
setWidth(this.w);
}
if (this.txt != null) {
setText(this.txt, this.fid);
setAlignCenter();
}
}
isset = false;
bt.tabEnabled = false;
bt.useHandCursor = false;
ctxt.align = "center";
init();
bt.onPress = function () {
bg.gotoAndStop(3);
bg._x = bg._x + 1;
bg._y = bg._y + 1;
ctxt._x = ctxt._x + 1;
ctxt._y = ctxt._y + 1;
};
bt.onRollOver = function () {
bg.gotoAndStop(2);
onover();
};
bt.onRollOut = function () {
bg.gotoAndStop(1);
onrollout();
};
bt.onReleaseOutside = function () {
bg.gotoAndStop(1);
bg._x = bg._x - 1;
bg._y = bg._y - 1;
ctxt._x = ctxt._x - 1;
ctxt._y = ctxt._y - 1;
};
bt.onRelease = function () {
bg.gotoAndStop(1);
bg._x = bg._x - 1;
bg._y = bg._y - 1;
ctxt._x = ctxt._x - 1;
ctxt._y = ctxt._y - 1;
onclick();
};
Symbol 547 MovieClip Frame 1
stop();
status = 0;
Symbol 547 MovieClip Frame 2
var sureCheck = false;
bgbt.useHandCursor = false;
bgbt.tabEnabled = false;
txtVolM.txt = sound.music.volume;
txtVolM.fid = 1;
barVolM.bt._x = Math.round((sound.music.volume / 100) * 63);
barVolM.volTxt = txtVolM;
barVolM.volCheck = cbMusic;
barVolM.owner = sound.music;
txtVolS.txt = sound.sfx.volume;
txtVolS.fid = 1;
barVolS.bt._x = Math.round((sound.sfx.volume / 100) * 63);
barVolS.volTxt = txtVolS;
barVolS.volCheck = cbSound;
barVolS.owner = sound.sfx;
cbAdjust.doOn = function () {
_global.autoAdjustQuality = true;
};
cbAdjust.doOff = function () {
_global.autoAdjustQuality = false;
};
if (_global.autoAdjustQuality) {
cbAdjust.gotoAndStop(2);
}
cbMusic.doOn = function () {
sound.music.setVolume(100);
txtVolM.setText(100);
barVolM.bt._x = 63;
};
cbMusic.doOff = function () {
sound.music.setVolume(0);
txtVolM.setText(0);
barVolM.bt._x = 0;
};
if (sound.music.volume > 0) {
cbMusic.gotoAndStop(2);
}
cbSound.doOn = function () {
sound.sfx.setVolume(100);
txtVolS.setText(100);
barVolS.bt._x = 63;
};
cbSound.doOff = function () {
sound.sfx.setVolume(0);
txtVolS.setText(0);
barVolS.bt._x = 0;
};
if (sound.sfx.volume > 0) {
cbSound.gotoAndStop(2);
}
labQual.txt = cl.in04;
labQual.col = 16777215 /* 0xFFFFFF */;
labQual.cols = 942441 /* 0x0E6169 */;
labVolM.txt = cl.in05;
labVolM.col = 16777215 /* 0xFFFFFF */;
labVolM.cols = 942441 /* 0x0E6169 */;
labVolS.txt = cl.in06;
labVolS.col = 16777215 /* 0xFFFFFF */;
labVolS.cols = 942441 /* 0x0E6169 */;
labAuto.txt = cl.in07;
labAuto.col = 16777215 /* 0xFFFFFF */;
labAuto.cols = 942441 /* 0x0E6169 */;
labFPS.txt = cl.in08;
labFPS.col = 16777215 /* 0xFFFFFF */;
labFPS.cols = 942441 /* 0x0E6169 */;
labHigh.txt = cl.in09;
labHigh.col = 16777215 /* 0xFFFFFF */;
labMedium.txt = cl.in10;
labMedium.col = 16777215 /* 0xFFFFFF */;
labLow.txt = cl.in11;
labLow.col = 16777215 /* 0xFFFFFF */;
bt1.txt = cl.bto1;
bt1.w = 80;
bt1.onclick = function () {
if (_parent.fader._visible) {
return(undefined);
}
if (!bt1.sureCheck) {
bt1.setText(cl.bto2);
bt1.sureCheck = true;
} else {
delete bt1.sureCheck;
sound.fadeOutMusic(200, true);
_parent.fader.go(function () {
_r.gotoAndStop("m0");
_i.gotoAndStop(1);
_i.optPanel.gotoAndStop(1);
}, true);
btRollOut();
}
};
bt2.txt = cl.bto3;
bt2.w = 40;
bt2.onclick = function () {
_i.optPanel.play();
};
Symbol 547 MovieClip Frame 9
stop();
status = 1;
bgbt.useHandCursor = false;
bgbt.tabEnabled = false;
Symbol 547 MovieClip Frame 10
initBt(bt);
Symbol 554 MovieClip Frame 1
function updateIns() {
timecount--;
if ((timecount < 0) && (!cleanup)) {
timecount = 1;
if (letcount == letcounts) {
t = letcount;
while (t < (letcount + 100)) {
if (((txt.charAt(t) == "#") || (txt.charAt(t) == "@")) || (txt.charAt(t) == "\u00A7")) {
left = t - letcount;
letcountl = t - letcount;
break;
}
t++;
}
left = -Math.floor((left / 2) * 10);
}
letcount++;
if ((txt.charAt(letcount - 1) == "@") || (txt.charAt(letcount - 1) == "\u00A7")) {
specchars = 0;
pagecount++;
linecount = 0;
letcounts = letcount;
timecount = 100;
cleanup = true;
i = letchecks + 1;
while (i <= letcount) {
var l = eval ("letter" + i);
l.cx = -1;
if (Math.random() > 0.5) {
l.cx = 1;
}
l.cy = Math.random();
l.xspeed = Math.random() * l.cx;
l.yspeed = 0;
i++;
}
if (txt.charAt(letcount - 1) == "\u00A7") {
_parent.letterEnd();
reset = true;
pagecount--;
repeatcound++;
}
return(undefined);
}
while (txt.charAt(letcount - 1) == "#") {
linecount++;
letcounts = letcount;
letcount++;
specchars++;
}
duplicateMovieClip (this.letter, "letter" + letcount, (txt.length - letcount) + 10);
var l = this["letter" + letcount];
l.status = 0;
l.lab.txt = txt.charAt(letcount - 1);
l.lab.fid = cl.f02;
l.lab.col = 16777215 /* 0xFFFFFF */;
l.lab.cols = 0;
l.lab.align = "center";
l._alpha = 0;
specchars = 1;
l.up = this["letter" + ((letcount - letcountl) - specchars)];
l.rad = sr[tid];
l.angle = (letcount - letcounts) * sa[tid];
l.dx = (((letcount - letcounts) - 1) * 10) + left;
l.dy = linecount * 14;
}
i = letchecks + 1;
while (i <= letcount) {
var l = eval ("letter" + i);
if (l.status == 0) {
if (l._alpha < 100) {
l._alpha = l._alpha + 10;
}
l.rad = l.rad - ir[tid];
if (l.rad < 0) {
l.rad = 0;
}
l.angle = l.angle + ia[tid];
l._x = Math.round((l.rad * Math.cos(l.angle)) + l.dx);
l._y = Math.round((l.rad * Math.sin(l.angle)) + l.dy);
if ((l._x == l.dx) && (l._y == l.dy)) {
l.status = 1;
if (this["letter" + (i - 1)].status) {
this["letter" + i].a._visible = false;
this["letter" + (i - 1)].c._visible = false;
}
if (this["letter" + (i + 1)].status) {
this["letter" + i].c._visible = false;
this["letter" + (i + 1)].a._visible = false;
}
if (this["letter" + i].up.status) {
this["letter" + i].b._visible = false;
this["letter" + i].up.d._visible = false;
}
if (this["letter" + ((i + letcountl) + (1 * linecount))].status) {
this["letter" + i].d._visible = false;
this["letter" + ((i + letcountl) + (1 * linecount))].b._visible = false;
}
}
}
i++;
}
}
function updateCleanUp() {
cleanup = false;
i = letchecks + 1;
while (i <= letcount) {
l = this["letter" + i];
if (l != undefined) {
l.a._visible = true;
l.b._visible = true;
l.c._visible = true;
l.d._visible = true;
l.xspeed = l.xspeed - (0.005 * l.cx);
if ((l.xspeed * l.cx) < 0) {
l.xspeed = 0;
}
l.yspeed = l.yspeed + (0.7 + (1 * l.cy));
l._x = l._x + l.xspeed;
l._y = l._y + (l.yspeed / 5);
if (l._y > 340) {
removeMovieClip(l);
} else {
cleanup = true;
}
}
i++;
}
if (!cleanup) {
tid++;
if (tid > 4) {
tid = 0;
}
letchecks = letcount;
if (reset) {
tid = 0;
reset = false;
pagecount = 0;
linecount = 0;
letcount = 0;
letcounts = 0;
timecount = 0;
letchecks = 0;
}
}
}
letter._visible = false;
var pagecount = 0;
var linecount = 0;
var letcount = 0;
var letcounts = 0;
var letcountl = 0;
var timecount = 0;
var letchecks = 0;
var specchars = 0;
var tid = 0;
var repeatcount = 0;
var cleanup = false;
var reset = false;
var ison = true;
var left = 0;
var txt = "";
txt = txt + cl.cr01;
txt = txt + "\u00A7";
var sr = new Array();
var sa = new Array();
var ir = new Array();
var ia = new Array();
sr[0] = 30;
sa[0] = 1.5;
ir[0] = 0.8;
ia[0] = 0.4;
sr[1] = 30;
sa[1] = 2.5;
ir[1] = 0.8;
ia[1] = 0.4;
sr[2] = 40;
sa[2] = 0.3;
ir[2] = 1;
ia[2] = 0.2;
sr[3] = 50;
sa[3] = 1.7;
ir[3] = 0.8;
ia[3] = 0.02;
sr[4] = 40;
sa[4] = -0.1;
ir[4] = 2;
ia[4] = 0.02;
this.onEnterFrame = function () {
if (!ison) {
return(undefined);
}
if ((!cleanup) || (timecount > 0)) {
updateIns();
} else {
updateCleanUp();
}
if (reset) {
delete this.onEnterFrame;
_c.cutscenes.nextStep();
}
};
Symbol 560 MovieClip Frame 1
function getText(txt) {
this.txt = c.text.text;
return(this.txt);
}
function setFont(fid) {
this.fid = fid;
gotoAndStop(fid);
}
function setColor(col, cols) {
this.col = col;
this.cols = cols;
var _local3 = c.text.getTextFormat(c.text);
_local3.color = col;
c.text.setTextFormat(_local3);
tfs1 = s1.text.getTextFormat(s1.text);
tfs1.color = cols;
s1.text.setTextFormat(tfs1);
tfs2 = s2.text.getTextFormat(s2.text);
tfs2.color = cols;
s2.text.setTextFormat(tfs2);
tfs3 = s3.text.getTextFormat(s3.text);
tfs3.color = cols;
s3.text.setTextFormat(tfs3);
tfs4 = s4.text.getTextFormat(s4.text);
tfs4.color = cols;
s4.text.setTextFormat(tfs4);
}
function setAlign(align) {
if (align == "center") {
var _local2 = getTextWidth(this.txt, this.fid);
c._x = -Math.floor(_local2 / 2);
} else if (align == "right") {
var _local2 = getTextWidth(this.txt, this.fid);
c._x = -_local2;
} else {
c._x = 0;
}
s1._x = c._x - 1;
s1._y = c._y;
s2._x = c._x + 1;
s2._y = c._y;
s3._x = c._x;
s3._y = c._y - 1;
s4._x = c._x;
s4._y = c._y + 1;
}
function setVAlign(valign) {
if (align == "center") {
var _local1 = fch[fid];
c._y = -Math.floor(_local1 / 2);
} else if (align == "bottom") {
var _local1 = fch[fid];
c._y = -_local1;
} else {
c._y = 0;
}
s1._x = c._x - 1;
s1._y = c._y;
s2._x = c._x + 1;
s2._y = c._y;
s3._x = c._x;
s3._y = c._y - 1;
s4._x = c._x;
s4._y = c._y + 1;
}
function setTextBox(tbox) {
c.text._width = tbox.width;
c.text._height = tbox.height;
if (tbox.multiLine) {
c.text.multiline = true;
}
if (tbox.wordWrap) {
c.text.wordWrap = true;
}
if (tbox.editable) {
c.text.type = "input";
}
}
function setText(txt) {
if (this.fid == null) {
this.fid = cl.f01;
}
if (this.fid != this._currentframe) {
setFont(this.fid);
return(undefined);
}
if (txt == null) {
txt = "";
}
this.txt = txt;
c.text.text = txt;
s1.text.text = txt;
s2.text.text = txt;
s3.text.text = txt;
s4.text.text = txt;
if (this.tbox != null) {
setTextBox(tbox);
} else {
c.text.autoSize = (s1.text.autoSize = (s2.text.autoSize = (s3.text.autoSize = (s4.text.autoSize = "left"))));
}
if (this.col != null) {
setColor(this.col, this.cols);
}
if (this.align == null) {
this.align = "left";
}
setAlign(this.align);
if (this.valign) {
setVAlign(this.valign);
}
}
function init() {
setText(this.txt);
}
init();
stop();
Symbol 560 MovieClip Frame 2
init();
stop();
Symbol 560 MovieClip Frame 3
init();
stop();
Symbol 560 MovieClip Frame 4
init();
stop();
Symbol 562 MovieClip Frame 1
stop();
lab1.txt = cl.ap01;
lab1.fid = cl.f02;
lab1.col = 16777215 /* 0xFFFFFF */;
lab1.cols = 0;
busy.onEnterFrame = function () {
this._rotation = this._rotation + 10;
};
Symbol 562 MovieClip Frame 2
function onLoadInit(mc) {
delete busy.onEnterFrame;
busy._visible = false;
}
stop();
lab1.txt = cl.ap02;
lab1.fid = cl.f02;
lab1.col = 16777215 /* 0xFFFFFF */;
lab1.cols = 0;
lab1.init();
lab2.txt = ((((this.ap + "/") + this.mp) + " (+") + this.ag) + ")";
lab2.fid = 2;
lab2.col = 16777215 /* 0xFFFFFF */;
lab2.cols = 0;
lab3.txt = cl.ap03;
lab3.fid = cl.f02;
lab3.col = 16777215 /* 0xFFFFFF */;
lab3.cols = 0;
lab4.txt = "+" + this.cg;
lab4.fid = 2;
lab4.align = "right";
lab4.col = 16777215 /* 0xFFFFFF */;
lab4.cols = 0;
this.mcLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip(((serverAddr + "img/awards/") + this.id) + ".jpg", mico);
Symbol 563 MovieClip Frame 1
function open(code) {
gotoAndPlay ("in");
this.createEmptyMovieClip("v_target", 100);
var _local2 = (((((serverAddr + "missions/giveaward.php?") + sn()) + "=") + sn()) + "&a=") + code;
loadVariables (_local2, v_target);
v_target.onEnterFrame = function () {
if (this.ok == 1) {
this._parent.c.id = this.id;
this._parent.c.ap = this.ap;
this._parent.c.mp = this.mp;
this._parent.c.ag = this.ag;
this._parent.c.cg = this.cg;
this._parent.c.play();
removeMovieClip(this);
}
};
}
function close() {
gotoAndPlay ("close");
}
stop();
this.status = 0;
this._visible = false;
Symbol 563 MovieClip Frame 2
this.status = 1;
this._visible = true;
Symbol 563 MovieClip Frame 7
stop();
Symbol 563 MovieClip Frame 8
this.status = 0;
Symbol 564 MovieClip Frame 1
_global._i = this;
stop();
Symbol 564 MovieClip Frame 2
bto.txt = cl.btm3;
bto.w = 54;
bto.onclick = function () {
optPanel.play();
};
startTimer();
stop();
Symbol 564 MovieClip Frame 3
stop();
if (_global.nick != "") {
awardPanel.onEnterFrame = function () {
delete this.onEnterFrame;
this.open(_r.updateCharData(_r.updateCharData2((((((((_r.acorn + ",") + _global.nick) + ",") + _global.passw) + ",") + 200) + ",") + _global.completed, true), true));
};
}
ricon.play();
delete this.onEnterFrame;
Symbol 565 MovieClip Frame 1
function ssetVolume(v) {
this.volume = v;
var _local2 = v * (this.fade / 100);
this.sound.setVolume(_local2);
}
function ssetFade(f) {
this.fade = f;
this.setVolume(this.volume);
}
function ssetPan(p) {
this.pan = p;
this.sound.setPan(this.pan);
}
function playSFX(id) {
sfx.sound.attachSound(id);
sfx.sound.start();
}
function playLoopSFX(id, msec) {
sfx["loop" + id].setFade(0);
sfx["loop" + id].sound.start(gap, 99999);
fadeTo(sfx["loop" + id], 100, msec);
}
function stopLoopSFX(id, msec) {
fadeTo(sfx["loop" + id], 0, msec, sfx["loop" + id].sound.stop);
}
function playMusic(id, msec) {
music.sound.attachSound(id);
if (msec) {
music.setFade(0);
fadeInMusic(msec);
} else {
music.setFade(100);
}
music.sound.start(0, 99999);
}
function stopMusic() {
music.sound.stop();
var _local1 = 0;
while (_local1 < music.tnames.length) {
music[music.tnames[_local1]].sound.stop();
_local1++;
}
}
function stopSound() {
sfx.sound.stop();
var _local1 = 1;
while (_local1 <= nloops) {
sfx["loop" + _local1].sound.stop();
_local1++;
}
}
function fadeTo(owner, to, msec, ondone) {
owner.fader.fl = msec;
owner.fader.fs = cTimer;
owner.fader.ff = owner.fade;
owner.fader.ft = to;
owner.fader.fo = ondone;
owner.fader.onEnterFrame = function () {
var _local2 = this._parent;
if (cTimer >= (this.fs + this.fl)) {
this.fo();
_local2.setFade(this.ft);
delete this.onEnterFrame;
} else {
_local2.setFade(this.ff + (((cTimer - this.fs) / this.fl) * (this.ft - this.ff)));
}
};
}
function panTo(owner, to, msec, ondone) {
owner.panner.pl = msec;
owner.panner.ps = cTimer;
owner.panner.pf = owner.pan;
owner.panner.pt = to;
owner.panner.po = ondone;
owner.panner.onEnterFrame = function () {
var _local2 = this._parent;
if (cTimer >= (this.ps + this.pl)) {
this.fo();
_local2.setPan(this.pt);
delete this.onEnterFrame;
} else {
_local2.setPan(this.pf + (((cTimer - this.ps) / this.pl) * (this.pt - this.pf)));
}
};
}
function fadeOutMusic(msec, s) {
if (s) {
fadeTo(music, 0, msec, function () {
stopMusic();
});
} else {
fadeTo(music, 0, msec);
}
}
function fadeInMusic(msec) {
fadeTo(music, 100, msec);
}
function playMusicPattern(p, msec) {
music["drum base a"].sound.onSoundComplete = nextMusicPart;
music["drum base b"].sound.onSoundComplete = nextMusicPart;
music["drum base c"].sound.onSoundComplete = nextMusicPart;
music["drum base d"].sound.onSoundComplete = nextMusicPart;
music["drum base e"].sound.onSoundComplete = nextMusicPart;
music["drum base f"].sound.onSoundComplete = nextMusicPart;
music["drum base g"].sound.onSoundComplete = nextMusicPart;
music.cpatt = p;
music.csubp = 0;
music.cbeat = 0;
nextMusicPart();
if (msec) {
music.setFade(0);
fadeInMusic(msec);
} else {
music.setFade(100);
}
}
function setPattern(n) {
if (n == music.cpatt) {
return(undefined);
}
music.topatt = n;
}
function setSubPattern(n) {
music.tosubp = n;
}
function nextMusicPart() {
var _local1 = 0.006;
music.cbeat = music.cbeat + 1;
if (music.topatt != null) {
if (music.topatt != music.cpatt) {
music.splash.sound.start(_local1);
music.cpatt = music.topatt;
}
delete music.topatt;
}
if (music.tosubp != null) {
music.csubp = music.tosubp;
delete music.tosubp;
}
switch (music.cpatt) {
case 1 :
if (music.cbeat < 8) {
music["drum base a"].sound.start(_local1);
} else {
music["drum base e"].sound.start(_local1);
}
if (music.cbeat == 8) {
music.splash.sound.start(_local1);
}
break;
case 2 :
var _local2 = music.cbeat % 9;
music["drum base c"].sound.start(_local1);
switch (_local2) {
case 1 :
music["line 01"].sound.start(_local1);
break;
case 2 :
music["line 02"].sound.start(_local1);
break;
case 3 :
music["line 03"].sound.start(_local1);
break;
case 5 :
music["line 03"].sound.start(_local1);
break;
case 7 :
music["line 04"].sound.start(_local1);
}
break;
case 3 :
music.cbeat = music.cbeat + 1;
music.csubp = 0;
delete music.tosubp;
if ((music.cbeat > 1) and (((music.cbeat - 4) % 8) == 0)) {
music["track funny"].sound.start(_local1);
}
music["drum base e"].sound.start(_local1);
break;
case 4 :
_local2 = music.cbeat % 12;
music["drum base g"].sound.start(_local1);
switch (_local2) {
case 1 :
music["line 09"].sound.start(_local1);
music["line 05"].sound.start(_local1);
break;
case 3 :
music["line 06"].sound.start(_local1);
break;
case 4 :
music["line 07"].sound.start(_local1);
break;
case 6 :
music["line 07"].sound.start(_local1);
break;
case 8 :
music["line 08"].sound.start(_local1);
break;
case 9 :
music["line 08"].sound.start(_local1);
break;
case 10 :
music["line 09"].sound.start(_local1);
break;
case 11 :
music["line 09"].sound.start(_local1);
}
break;
case 5 :
music["drum base a"].sound.start(_local1);
break;
case 6 :
music["drum base f"].sound.start(_local1);
if ((music.cbeat % 4) <= 2) {
break;
}
music["line 09"].sound.start(_local1);
}
}
var nloops = 7;
this.createEmptyMovieClip("music", 1);
music.createEmptyMovieClip("fader", 701);
music.createEmptyMovieClip("panner", 702);
music.volume = 100;
music.fade = 100;
music.pan = 0;
music.sound = new Sound(music);
music.tnames = [];
music.tnames.push("drum base a");
music.tnames.push("drum base b");
music.tnames.push("drum base c");
music.tnames.push("drum base d");
music.tnames.push("drum base e");
music.tnames.push("drum base f");
music.tnames.push("drum base g");
music.tnames.push("line 01");
music.tnames.push("line 02");
music.tnames.push("line 03");
music.tnames.push("line 04");
music.tnames.push("line 05");
music.tnames.push("line 06");
music.tnames.push("line 07");
music.tnames.push("line 08");
music.tnames.push("line 09");
music.tnames.push("line 10");
var i = 0;
while (i < music.tnames.length) {
music.createEmptyMovieClip(music.tnames[i], i);
music[music.tnames[i]].sound = new Sound(music[music.tnames[i]]);
music[music.tnames[i]].sound.attachSound(music.tnames[i]);
i++;
}
this.createEmptyMovieClip("sfx", 2);
sfx.volume = 100;
sfx.fade = 100;
sfx.pan = 0;
sfx.sound = new Sound(sfx);
var i = 1;
while (i <= nloops) {
sfx.createEmptyMovieClip("loop" + i, i);
sfx["loop" + i].volume = 100;
sfx["loop" + i].fade = 100;
sfx["loop" + i].pan = 0;
sfx["loop" + i].sound = new Sound(sfx["loop" + i]);
sfx["loop" + i].sound.attachSound("loop" + i);
sfx["loop" + i].createEmptyMovieClip("fader", 701);
sfx["loop" + i].createEmptyMovieClip("panner", 702);
i++;
}
sfx.setVolume = ssetVolume;
sfx.setFade = ssetFade;
var i = 1;
while (i <= nloops) {
sfx["loop" + i].setVolume = ssetVolume;
sfx["loop" + i].setFade = ssetFade;
sfx["loop" + i].setPan = ssetPan;
i++;
}
music.setVolume = function (v) {
this.volume = v;
var _local3 = v * (this.fade / 100);
this.sound.setVolume(_local3);
var _local2 = 0;
while (_local2 < tnames.length) {
this[tnames[_local2]].sound.setVolume(_local3);
_local2++;
}
};
music.setFade = ssetFade;
music.setPan = ssetPan;
Symbol 574 MovieClip Frame 1
function update() {
if (s == 0) {
return(undefined);
}
var _local1 = 1;
while (_local1 <= 15) {
doBush(_local1);
_local1++;
}
}
function doBush(i) {
var _local2 = this["b" + i];
if (_local2.c == -1) {
return(undefined);
}
if (this[("b" + i) + "b"]) {
var _local3 = this[("b" + i) + "b"];
}
_local2.c = _local2.c + (0.03 * this.s);
_local2._xscale = (_local3._xscale = 100 + (this.w * Math.sin(_local2.c)));
_local2._yscale = (_local3._yscale = 100 + (this.w * Math.sin(_local2.c)));
_local2._rotation = (_local3._rotation = _local2.r + (this.w * Math.sin(_local2.c + 2)));
}
function initBush(i) {
var _local2 = this["b" + i];
_local2.c = Math.random() * 5;
_local2.r = _local2._rotation;
}
function doStop() {
delete this.onEnterFrame;
}
this.w = 9;
this.s = 1;
var t = 1;
while (t <= 15) {
initBush(t);
t++;
}
this.onEnterFrame = update;
update();
Symbol 575 MovieClip Frame 1
status = 0;
if (_cscene < 5) {
stop();
} else {
gotoAndStop ("done");
}
Symbol 575 MovieClip Frame 2
canOpenCommand(false);
_e.gizmoTree._visible = false;
Symbol 575 MovieClip Frame 7
sound.playSFX("tree");
Symbol 575 MovieClip Frame 49
sound.playSFX("bump");
sound.playSFX("roof");
Symbol 575 MovieClip Frame 50
sound.playSFX("leaves");
_e.cubeGreen.gotoAndPlay("go");
Symbol 575 MovieClip Frame 64
sound.playSFX("leaves");
Symbol 575 MovieClip Frame 74
leaves.w = 7;
leaves.s = 1;
gStatus.cutTree = true;
_e.gizmoTree._visible = false;
stop();
Symbol 594 MovieClip Frame 1
status = "stop";
stop();
Symbol 594 MovieClip Frame 6
status = "smile";
stop();
Symbol 594 MovieClip Frame 11
status = "smile2";
stop();
Symbol 594 MovieClip Frame 16
status = "smile2";
stop();
Symbol 594 MovieClip Frame 26
status = "talk";
Symbol 594 MovieClip Frame 48
gotoAndPlay ("talk");
Symbol 594 MovieClip Frame 57
gotoAndPlay ("aaah");
Symbol 594 MovieClip Frame 62
gotoAndPlay ("grrr");
Symbol 600 MovieClip Frame 1
function blink() {
clearInterval(this.interval);
play();
}
status = "stop";
clearInterval(this.interval);
this.interval = setInterval(this, "blink", Math.floor(Math.random() * 7000) + 500);
stop();
Symbol 600 MovieClip Frame 8
gotoAndStop (1);
Symbol 600 MovieClip Frame 10
clearInterval(this.interval);
stop();
Symbol 621 MovieClip Frame 1
initBtC(bt);
id = "xmas tree";
bt.onPress = function () {
if (!_r.cursorI) {
this._visible = false;
return(undefined);
}
var _local2 = Array();
if (gStatus.ooFunctions[_r.cursorI.id + "_kla"]) {
_local2.push({t:"fu", f:gStatus.ooFunctions[_r.cursorI.id + "_kla"]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectOnMe();
}});
}
mkla.doAction(_local2);
};
function resetDir() {
if (this.dir == dirRight) {
this.bag.gotoAndStop("right");
} else {
this.bag.gotoAndStop("left");
}
}
resetDir();
status = "";
stop();
Symbol 621 MovieClip Frame 4
resetDir();
Symbol 621 MovieClip Frame 14
gotoAndPlay ("walk");
Symbol 621 MovieClip Frame 15
if (this.dir == 1) {
this.dir = 0;
this.bag.gotoAndStop("right");
} else {
this.dir = 1;
this.bag.gotoAndStop("left");
}
Symbol 621 MovieClip Frame 17
gotoAndPlay ("stop");
adone = true;
Symbol 625 Button
on (press) {
if (_currentframe == 1) {
_global.mute = true;
_global.inGameMusic = false;
sound.sfx.setVolume(0);
sound.music.setVolume(0);
gotoAndStop (2);
} else {
_global.mute = false;
_global.inGameMusic = true;
sound.sfx.setVolume(100);
sound.music.setVolume(100);
gotoAndStop (1);
}
}
Symbol 628 MovieClip Frame 1
bt.useHandCursor = false;
bt.tabEnabled = false;
stop();
if (mute) {
gotoAndStop (2);
}
Symbol 631 MovieClip Frame 1
stop();
status = 0;
Symbol 631 MovieClip Frame 2
var sureCheck = false;
bgbt.useHandCursor = false;
bgbt.tabEnabled = false;
txtVolM.txt = sound.music.volume;
txtVolM.fid = 1;
barVolM.bt._x = Math.round((sound.music.volume / 100) * 63);
barVolM.volTxt = txtVolM;
barVolM.volCheck = cbMusic;
barVolM.owner = sound.music;
txtVolS.txt = sound.sfx.volume;
txtVolS.fid = 1;
barVolS.bt._x = Math.round((sound.sfx.volume / 100) * 63);
barVolS.volTxt = txtVolS;
barVolS.volCheck = cbSound;
barVolS.owner = sound.sfx;
cbAdjust.doOn = function () {
_global.autoAdjustQuality = true;
};
cbAdjust.doOff = function () {
_global.autoAdjustQuality = false;
};
if (_global.autoAdjustQuality) {
cbAdjust.gotoAndStop(2);
}
cbMusic.doOn = function () {
sound.music.setVolume(100);
txtVolM.setText(100);
barVolM.bt._x = 63;
};
cbMusic.doOff = function () {
sound.music.setVolume(0);
txtVolM.setText(0);
barVolM.bt._x = 0;
};
if (sound.music.volume > 0) {
cbMusic.gotoAndStop(2);
}
cbSound.doOn = function () {
sound.sfx.setVolume(100);
txtVolS.setText(100);
barVolS.bt._x = 63;
};
cbSound.doOff = function () {
sound.sfx.setVolume(0);
txtVolS.setText(0);
barVolS.bt._x = 0;
};
if (sound.sfx.volume > 0) {
cbSound.gotoAndStop(2);
}
labQual.txt = cl.in04;
labQual.col = 16777215 /* 0xFFFFFF */;
labQual.cols = 942441 /* 0x0E6169 */;
labVolM.txt = cl.in05;
labVolM.col = 16777215 /* 0xFFFFFF */;
labVolM.cols = 942441 /* 0x0E6169 */;
labVolS.txt = cl.in06;
labVolS.col = 16777215 /* 0xFFFFFF */;
labVolS.cols = 942441 /* 0x0E6169 */;
labAuto.txt = cl.in07;
labAuto.col = 16777215 /* 0xFFFFFF */;
labAuto.cols = 942441 /* 0x0E6169 */;
labFPS.txt = cl.in08;
labFPS.col = 16777215 /* 0xFFFFFF */;
labFPS.cols = 942441 /* 0x0E6169 */;
labHigh.txt = cl.in09;
labHigh.col = 16777215 /* 0xFFFFFF */;
labMedium.txt = cl.in10;
labMedium.col = 16777215 /* 0xFFFFFF */;
labLow.txt = cl.in11;
labLow.col = 16777215 /* 0xFFFFFF */;
bt2.txt = cl.bto3;
bt2.w = 40;
bt2.onclick = function () {
_m.optPanel.play();
};
Symbol 631 MovieClip Frame 9
stop();
status = 1;
bgbt.useHandCursor = false;
bgbt.tabEnabled = false;
Symbol 631 MovieClip Frame 10
initBt(bt);
Symbol 635 MovieClip Frame 1
lab.fid = cl.f02;
lab.txt = cl.hlp08;
lab.col = 16777215 /* 0xFFFFFF */;
lab.tbox = {width:80, height:120, multiLine:true, wordWrap:true};
b1.gotoAndStop(this.bid);
b1._x = 10;
b1._y = 10;
b2.gotoAndStop(this.bid);
b2._x = 44;
b2._y = 10;
b3.gotoAndStop(this.bid);
b3._x = 78;
b3._y = 10;
b4.gotoAndStop(this.bid);
b4._x = 110;
b4._y = 10;
if (!seenBlocks[this.bid]) {
b1._visible = false;
b2._visible = false;
b3._visible = false;
b4._visible = false;
stop();
} else {
gotoAndStop (2);
}
Symbol 635 MovieClip Frame 2
lab.fid = cl.f02;
lab.txt = cl[("hlp0" + this.id) + "b"];
lab.col = 16777215 /* 0xFFFFFF */;
lab.tbox = {width:120, height:148, multiLine:true, wordWrap:true};
stop();
Symbol 636 MovieClip Frame 1
lab1.fid = cl.f02;
lab1.txt = cl.hlp01;
lab1.col = 16777215 /* 0xFFFFFF */;
lab1.tbox = {width:120, height:148, multiLine:true, wordWrap:true};
lab2.fid = cl.f02;
lab2.txt = cl.hlp02;
lab2.col = 16777215 /* 0xFFFFFF */;
lab2.tbox = {width:120, height:148, multiLine:true, wordWrap:true};
lab3.fid = cl.f02;
lab3.txt = cl.hlp03;
lab3.col = 16777215 /* 0xFFFFFF */;
lab3.tbox = {width:120, height:148, multiLine:true, wordWrap:true};
lab4.fid = cl.f02;
lab4.txt = cl.hlp04;
lab4.col = 16777215 /* 0xFFFFFF */;
lab4.tbox = {width:120, height:148, multiLine:true, wordWrap:true};
lab5.fid = cl.f02;
lab5.txt = cl.hlp05;
lab5.col = 16777215 /* 0xFFFFFF */;
lab5.tbox = {width:120, height:148, multiLine:true, wordWrap:true};
lab6.fid = cl.f02;
lab6.txt = cl.hlp06;
lab6.col = 16777215 /* 0xFFFFFF */;
lab6.tbox = {width:120, height:148, multiLine:true, wordWrap:true};
lab7.fid = cl.f02;
lab7.txt = cl.hlp07;
lab7.col = 16777215 /* 0xFFFFFF */;
lab7.tbox = {width:120, height:148, multiLine:true, wordWrap:true};
lab8.fid = cl.f02;
lab8.txt = cl.hlp08;
lab8.col = 16777215 /* 0xFFFFFF */;
lab8.tbox = {width:120, height:148, multiLine:true, wordWrap:true};
var i = 1;
while (i < 8) {
this["lab" + i]._x = (i - 1) * 140;
i++;
}
var i = 1;
while (i < 8) {
this["bp" + i]._x = ((i - 1) * 140) + 980;
this["bp" + i].id = i;
i++;
}
bp1.bid = 20;
bp2.bid = 10;
bp3.bid = 11;
bp4.bid = 12;
bp5.bid = 16;
bp6.bid = 22;
bp7.bid = 15;
Symbol 637 MovieClip Frame 1
function doNext() {
if (panel.tox < -12) {
return(undefined);
}
panel.tox = panel.tox - 1;
if (panel.tox == -12) {
btnext._visible = false;
}
btprev._visible = true;
panel.onEnterFrame = function () {
this._x = this._x + (((this.tox * 140) - this._x) / 3);
if (Math.abs((this.tox * 140) - this._x) < 1) {
this._x = this.tox * 140;
delete this.onEnterFrame;
}
};
}
function doPrev() {
if (panel.tox > -1) {
return(undefined);
}
panel.tox = panel.tox + 1;
if (panel.tox == 0) {
btprev._visible = false;
}
btnext._visible = true;
panel.onEnterFrame = function () {
this._x = this._x + (((this.tox * 140) - this._x) / 3);
if (Math.abs((this.tox * 140) - this._x) < 1) {
this._x = this.tox * 140;
delete this.onEnterFrame;
}
};
}
labTitle.fid = cl.f02;
labTitle.col = 16777215 /* 0xFFFFFF */;
labTitle.txt = cl.hlp00;
initBt(btnext);
initBt(btprev);
btprev._visible = false;
btnext.onPress = function () {
doNext();
};
btprev.onPress = function () {
doPrev();
};
if (_parent.tox == null) {
panel.tox = 0;
} else {
panel.tox = _parent.tox;
}
Symbol 638 MovieClip Frame 1
stop();
status = 0;
Symbol 638 MovieClip Frame 2
bt1.txt = cl.in13;
bt1.w = 40;
bt1.onclick = function () {
gotoAndPlay ("out");
};
Symbol 638 MovieClip Frame 9
stop();
status = 1;
bgbt.useHandCursor = false;
bgbt.tabEnabled = false;
Symbol 638 MovieClip Frame 10
initBt(bt);
Symbol 642 MovieClip Frame 1
stop();
Symbol 644 Button
on (release) {
gotoAndStop (2);
}
on (rollOver) {
_m.bear.bearVoice.openNB(cl.bc10);
}
Symbol 645 Button
on (release) {
_m.setLan("jp");
gotoAndStop (1);
}
Symbol 646 Button
on (release) {
_m.setLan("it");
gotoAndStop (1);
}
Symbol 647 Button
on (release) {
_m.setLan("en");
gotoAndStop (1);
}
Symbol 648 MovieClip Frame 1
switch (lan) {
case "en" :
lab.txt = "english";
lab.fid = alan.en.f01;
break;
case "it" :
lab.txt = "italiano";
lab.fid = alan.it.f01;
break;
case "jp" :
lab.txt = "\u65E5\u672C\u8A9E";
lab.fid = alan.jp.f01;
}
initBt(bt);
stop();
Symbol 648 MovieClip Frame 2
labEn.txt = "english";
labEn.fid = alan.en.f01;
labIt.txt = "italiano";
labIt.fid = alan.it.f01;
labJp.txt = "\u65E5\u672C\u8A9E";
labJp.fid = alan.jp.f01;
initBt(bt1);
initBt(bt2);
initBt(bt3);
stop();
Symbol 653 MovieClip Frame 1
stop();
Symbol 654 MovieClip Frame 1
function setWidth(w) {
this.w = w;
ctxt._x = Math.floor(w / 2);
bg._width = w;
sh._width = w;
bt._width = w;
}
function setText(t, fid) {
this.txt = t;
ctxt.col = 0;
if (fid != null) {
ctxt.fid = fid;
}
ctxt.txt = t;
ctxt.init();
isset = true;
setAlignCenter();
}
function init(w, txt, fid) {
if (w != null) {
this.w = w;
}
if (txt != null) {
this.txt = txt;
}
if (fid != null) {
this.fid = fid;
}
if (this.w != null) {
setWidth(this.w);
}
if (this.txt != null) {
setText(this.txt, this.fid);
setAlignCenter();
}
}
isset = false;
bt.tabEnabled = false;
bt.useHandCursor = false;
ctxt.align = "center";
init();
bt.onPress = function () {
bg.gotoAndStop(3);
bg._x = bg._x + 1;
bg._y = bg._y + 1;
ctxt._x = ctxt._x + 1;
ctxt._y = ctxt._y + 1;
};
bt.onRollOver = function () {
bg.gotoAndStop(2);
onover();
};
bt.onRollOut = function () {
bg.gotoAndStop(1);
onrollout();
};
bt.onReleaseOutside = function () {
bg.gotoAndStop(1);
bg._x = bg._x - 1;
bg._y = bg._y - 1;
ctxt._x = ctxt._x - 1;
ctxt._y = ctxt._y - 1;
};
bt.onRelease = function () {
bg.gotoAndStop(1);
bg._x = bg._x - 1;
bg._y = bg._y - 1;
ctxt._x = ctxt._x - 1;
ctxt._y = ctxt._y - 1;
onclick();
};
Symbol 669 MovieClip Frame 55
stop();
labTitle.txt = cl.in00;
labTitle.align = "right";
labTitle.col = 0;
labTitle.cols = 12638705 /* 0xC0D9F1 */;
labTitle.fid = cl.f02;
Symbol 671 Button
on (press) {
getURL ("http://www.warbears.com?from=ng", "_blank");
}
Symbol 675 MovieClip Frame 1
function setLan(nlan) {
_global.lan = nlan;
_global.cl = alan[lan];
_m.bt1.fid = cl.f01;
_m.bt1.txt = cl.btm1;
_m.bt1.init();
_m.bt2.fid = cl.f01;
_m.bt2.txt = cl.btm2;
_m.bt2.init();
_m.bt3.fid = cl.f01;
_m.bt3.txt = cl.btm3;
_m.bt3.init();
_m.bt4.fid = cl.f01;
_m.bt4.txt = cl.btm4;
_m.bt4.init();
}
sound.playMusicPattern(6, 1000);
if ((_global._m == this) and (_global.nick != "")) {
saveData();
}
_global._m = this;
_i.gotoAndStop(1);
stop();
bt1.txt = cl.btm1;
bt1.w = 77;
bt1.onclick = function () {
sound.fadeOutMusic(500, true);
startGame();
_fader.go(function () {
_r.gotoAndStop("r1");
}, true);
};
bt2.txt = cl.btm2;
bt2.w = 77;
bt2.onclick = function () {
helpPanel.play();
};
bt3.txt = cl.btm3;
bt3.w = 77;
bt3.onclick = function () {
optPanel.play();
};
bt4.txt = cl.btm4;
bt4.w = 77;
bt4.onclick = function () {
getURL ("http://www.warbears.com/missions.php?from=ng", "_blank");
};
Symbol 692 MovieClip Frame 1
_parent.initWalkButtons();
_parent.initExitButtons();
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 2
stop();
Symbol 720 MovieClip Frame 15
gotoAndPlay (6);
Symbol 721 MovieClip Frame 1
if (gStatus.arGogglesOn) {
if (gStatus.arGogglesBroken) {
if ((_cscene == 3) or (_cscene == 8)) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else if (gStatus.arGogglesActive) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
} else {
stop();
}
Symbol 731 MovieClip Frame 1
status = "stop";
stop();
Symbol 731 MovieClip Frame 6
status = "smile";
stop();
Symbol 731 MovieClip Frame 11
status = "smile2";
stop();
Symbol 731 MovieClip Frame 16
status = "smile2";
stop();
Symbol 731 MovieClip Frame 26
status = "talk";
Symbol 731 MovieClip Frame 48
gotoAndPlay ("talk");
Symbol 731 MovieClip Frame 55
stop();
Symbol 731 MovieClip Frame 61
gotoAndPlay ("aaah");
Symbol 731 MovieClip Frame 66
gotoAndPlay ("grrr");
Symbol 759 MovieClip Frame 1
function blink() {
clearInterval(this.interval);
play();
}
status = "stop";
clearInterval(this.interval);
this.interval = setInterval(this, "blink", Math.floor(Math.random() * 7000) + 500);
stop();
Symbol 759 MovieClip Frame 8
gotoAndStop (1);
Symbol 759 MovieClip Frame 10
status = "shut1";
clearInterval(this.interval);
stop();
Symbol 759 MovieClip Frame 15
status = "shut2";
clearInterval(this.interval);
stop();
Symbol 759 MovieClip Frame 20
status = "cry";
clearInterval(this.interval);
stop();
Symbol 759 MovieClip Frame 27
clearInterval(this.interval);
stop();
Symbol 759 MovieClip Frame 33
clearInterval(this.interval);
stop();
Symbol 938 MovieClip Frame 1
initBtC(bt);
id = "kla";
bt.onPress = function () {
if (!_r.cursorI) {
this._visible = false;
return(undefined);
}
var _local2 = Array();
if (gStatus.ooFunctions[_r.cursorI.id + "_kla"]) {
_local2.push({t:"fu", f:gStatus.ooFunctions[_r.cursorI.id + "_kla"]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectOnMe();
}});
}
mkla.doAction(_local2);
};
function resetDir() {
if (this.dir == dirRight) {
this.bag.gotoAndStop("right");
} else {
this.bag.gotoAndStop("left");
}
}
resetDir();
status = "";
stop();
Symbol 938 MovieClip Frame 4
resetDir();
Symbol 938 MovieClip Frame 14
gotoAndPlay ("walk");
Symbol 938 MovieClip Frame 15
resetDir();
Symbol 938 MovieClip Frame 21
stop();
adone = true;
Symbol 938 MovieClip Frame 22
resetDir();
Symbol 938 MovieClip Frame 27
gotoAndStop ("stop");
adone = true;
Symbol 938 MovieClip Frame 29
resetDir();
Symbol 938 MovieClip Frame 33
adone = true;
stop();
Symbol 938 MovieClip Frame 35
resetDir();
Symbol 938 MovieClip Frame 39
gotoAndStop (1);
adone = true;
Symbol 938 MovieClip Frame 41
resetDir();
Symbol 938 MovieClip Frame 45
adone = true;
stop();
Symbol 938 MovieClip Frame 48
resetDir();
Symbol 938 MovieClip Frame 54
gotoAndStop (1);
adone = true;
Symbol 938 MovieClip Frame 58
resetDir();
Symbol 938 MovieClip Frame 64
stop();
adone = true;
Symbol 938 MovieClip Frame 65
resetDir();
Symbol 938 MovieClip Frame 71
gotoAndStop ("stop");
adone = true;
Symbol 938 MovieClip Frame 72
resetDir();
Symbol 938 MovieClip Frame 81
stop();
adone = true;
Symbol 938 MovieClip Frame 82
resetDir();
Symbol 938 MovieClip Frame 92
gotoAndStop ("stop");
adone = true;
Symbol 938 MovieClip Frame 93
resetDir();
Symbol 938 MovieClip Frame 104
stop();
adone = true;
Symbol 938 MovieClip Frame 105
resetDir();
Symbol 938 MovieClip Frame 116
gotoAndStop (1);
adone = true;
Symbol 938 MovieClip Frame 141
stop();
adone = true;
Symbol 938 MovieClip Frame 165
gotoAndStop (1);
adone = true;
Symbol 938 MovieClip Frame 170
sound.playSFX("button");
Symbol 938 MovieClip Frame 192
gotoAndStop (1);
adone = true;
Symbol 938 MovieClip Frame 193
resetDir();
Symbol 938 MovieClip Frame 202
stop();
Symbol 938 MovieClip Frame 204
resetDir();
Symbol 938 MovieClip Frame 205
gotoAndPlay ("stop");
adone = true;
Symbol 938 MovieClip Frame 209
stop();
sound.playSFX("radio");
adone = true;
Symbol 938 MovieClip Frame 214
gotoAndPlay ("stop");
adone = true;
Symbol 938 MovieClip Frame 218
mouth.gotoAndStop("tongue");
Symbol 938 MovieClip Frame 220
stop();
adone = true;
Symbol 938 MovieClip Frame 224
stop();
adone = true;
Symbol 938 MovieClip Frame 229
stop();
adone = true;
Symbol 938 MovieClip Frame 237
stop();
adone = true;
Symbol 938 MovieClip Frame 238
mouth.gotoAndStop("stop");
Symbol 938 MovieClip Frame 246
gotoAndPlay ("stop");
adone = true;
Symbol 938 MovieClip Frame 247
if (this.dir == 1) {
this.dir = 0;
this.bag.gotoAndStop("right");
} else {
this.dir = 1;
this.bag.gotoAndStop("left");
}
Symbol 938 MovieClip Frame 249
gotoAndPlay ("stop");
adone = true;
Symbol 947 MovieClip Frame 1
_visible = false;
stop();
Symbol 948 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
function cantUseObjectsTogether() {
doAction([{t:"vo", l:cl.ik01}]);
}
function cantPickupItem() {
doAction([{t:"vo", l:cl.ik02}]);
}
function cantUseObjectOnMe() {
doAction([{t:"vo", l:cl.ik03}]);
}
function readList() {
clear();
doAction([{t:"co", c:false}, {t:"vo", l:cl.k40}, {t:"co", c:true}]);
}
function openGift() {
clear();
doAction([{t:"co", c:false}, {t:"vo", l:cl.k30}, {t:"ps", s:"paper_crumbling"}, {t:"fu", f:function () {
_inventory.removeItem("gift");
_inventory.addItem("arGoggles");
}}, {t:"em", e:":O"}, {t:"tw", a:"a"}, {t:"id", i:12}, {t:"vo", l:cl.k31}, {t:"co", c:true}]);
}
function activateGoggles() {
if (!canopencommand) {
return(undefined);
}
clear();
canOpenCommand(false);
gStatus.arGogglesActive = !gStatus.arGogglesActive;
doAction([{t:"an", l:"touch_glasses"}, {t:"fu", f:function () {
if (gStatus.arGogglesActive) {
_m.arEye.gotoAndPlay("open");
char.glasses.gotoAndStop(3);
} else {
_m.arEye.gotoAndPlay("close");
char.glasses.gotoAndStop(2);
}
}}]);
}
function openJumpMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "jump downright";
_local1[_local2++] = jump;
_c.comm.initP(_local1);
}
function jump() {
doAction([{t:"co", c:false}, {x:234, y:201}, {t:"id", l:500}, {t:"fu", f:function () {
_e.jkla.doJump();
}}]);
}
function openViewMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "view";
_local1[_local2++] = view;
_c.comm.initP(_local1);
}
function view() {
doAction([{t:"co", c:false}, {t:"fu", f:function () {
gStatus.gotcubeRed = true;
_inventory.addItem("cubeRed");
}}, {t:"ps", s:"cube in"}, {x:50}, {t:"vo", l:cl.k74}, {t:"co", c:true}]);
}
function goLeft() {
_e.bte1._visible = false;
_e.bte2._visible = false;
_e.jkla.char._x = 440;
_e.jkla.char._y = 310;
_e.jkla.char._rotation = 0;
_e.jkla.char.setDir(dirLeft);
doAction([{x:465, y:336}, {t:"ju", x:440, y:310}, {t:"fu", f:function () {
mkla._visible = false;
_global._char = _e.jkla;
kla._visible = false;
_e.jkla._visible = true;
}}, {ta:_e.jkla, wta:true, x:317, y:311}, {ta:_e.jkla, wta:true, x:240, y:307}, {ta:_e.jkla, wta:true, t:"ju", x:160, y:335, r:-90}, {t:"fu", f:function () {
_global._char = mkla;
mkla._visible = true;
kla._x = 160;
kla._y = 335;
mkla.status.pos = 1;
mkla.status.toPos = 1;
_e.jkla._visible = false;
}}, {t:"ma", m:7}, {t:"vo", l:cl.k68}, {t:"vi", v:true}, {x:221, y:335}, {t:"ma", m:0}, {t:"co", c:true}]);
}
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
stop();
mask._visible = false;
_global.mkla = this;
_global.kla = char;
id = "kla";
char._x = _m.initData.klaPos.x;
char._y = _m.initData.klaPos.y;
char.setDir(_m.initData.klaPos.d);
status.pos = (status.toPos = _m.initData.klaPos.pos);
if (_m.initData.klaPos.r) {
char._rotation = _m.initData.klaPos.r;
}
if (_m.initData.klaPos.m) {
mask.gotoAndStop(_m.initData.klaPos.m);
mask._visible = true;
char.setMask(mask);
}
if (_m.initData.klaPos.hidden) {
char._visible = false;
}
if (_m.initData.klaAct) {
doAction(_m.initData.klaAct);
delete _m.initData.klaAct;
}
Symbol 955 MovieClip Frame 1
stop();
Symbol 955 MovieClip Frame 2
stop();
Symbol 955 MovieClip Frame 3
sound.playSFX("gunshot");
Symbol 955 MovieClip Frame 8
gotoAndStop ("left");
Symbol 969 MovieClip Frame 1
status = "stop";
stop();
Symbol 969 MovieClip Frame 6
status = "smile";
stop();
Symbol 969 MovieClip Frame 11
status = "smile2";
stop();
Symbol 969 MovieClip Frame 16
status = "smile2";
stop();
Symbol 969 MovieClip Frame 26
status = "talk";
Symbol 969 MovieClip Frame 48
gotoAndPlay ("talk");
Symbol 969 MovieClip Frame 55
stop();
Symbol 969 MovieClip Frame 62
gotoAndPlay ("grrr");
Symbol 974 MovieClip Frame 1
stop();
Symbol 974 MovieClip Frame 2
stop();
Symbol 977 MovieClip Frame 1
stop();
Symbol 977 MovieClip Frame 2
stop();
Symbol 1057 MovieClip Frame 1
initBtC(bt);
id = "steve";
bt.onPress = function () {
if (!_r.cursorI) {
this._visible = false;
return(undefined);
}
var _local2 = Array();
if (gStatus.ooFunctions[_r.cursorI.id + "_steve"]) {
_local2.push({t:"fu", f:gStatus.ooFunctions[_r.cursorI.id + "_steve"]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectOnMe();
}});
}
msteve.doAction(_local2);
};
function resetDir() {
if (this.dir == dirRight) {
weapon.gotoAndStop("right");
earring.gotoAndStop("right");
belt.gotoAndStop("right");
} else {
weapon.gotoAndStop("left");
earring.gotoAndStop("left");
belt.gotoAndStop("left");
}
}
resetDir();
status = "";
stop();
Symbol 1057 MovieClip Frame 4
resetDir();
Symbol 1057 MovieClip Frame 14
gotoAndPlay ("walk");
Symbol 1057 MovieClip Frame 15
resetDir();
Symbol 1057 MovieClip Frame 21
stop();
adone = true;
Symbol 1057 MovieClip Frame 22
resetDir();
Symbol 1057 MovieClip Frame 27
gotoAndStop ("stop");
adone = true;
Symbol 1057 MovieClip Frame 28
resetDir();
Symbol 1057 MovieClip Frame 34
stop();
adone = true;
Symbol 1057 MovieClip Frame 35
resetDir();
Symbol 1057 MovieClip Frame 41
gotoAndStop ("stop");
adone = true;
Symbol 1057 MovieClip Frame 42
resetDir();
Symbol 1057 MovieClip Frame 51
stop();
adone = true;
Symbol 1057 MovieClip Frame 52
resetDir();
Symbol 1057 MovieClip Frame 62
gotoAndStop ("stop");
adone = true;
Symbol 1057 MovieClip Frame 63
resetDir();
Symbol 1057 MovieClip Frame 74
stop();
adone = true;
Symbol 1057 MovieClip Frame 75
resetDir();
Symbol 1057 MovieClip Frame 86
gotoAndStop (1);
adone = true;
Symbol 1057 MovieClip Frame 87
resetDir();
Symbol 1057 MovieClip Frame 97
stop();
adone = true;
Symbol 1057 MovieClip Frame 98
resetDir();
Symbol 1057 MovieClip Frame 102
adone = true;
stop();
Symbol 1057 MovieClip Frame 104
resetDir();
Symbol 1057 MovieClip Frame 108
gotoAndStop (1);
adone = true;
Symbol 1057 MovieClip Frame 110
resetDir();
Symbol 1057 MovieClip Frame 114
adone = true;
stop();
Symbol 1057 MovieClip Frame 117
resetDir();
Symbol 1057 MovieClip Frame 123
gotoAndStop (1);
adone = true;
Symbol 1057 MovieClip Frame 126
resetDir();
Symbol 1057 MovieClip Frame 132
stop();
adone = true;
Symbol 1057 MovieClip Frame 133
resetDir();
Symbol 1057 MovieClip Frame 139
gotoAndStop ("stop");
adone = true;
Symbol 1057 MovieClip Frame 145
stop();
adone = true;
sound.playSFX("radio");
Symbol 1057 MovieClip Frame 150
gotoAndPlay ("stop");
adone = true;
Symbol 1057 MovieClip Frame 151
resetDir();
if (this.dir == dirRight) {
this.dir = dirLeft;
} else {
this.dir = dirRight;
}
Symbol 1057 MovieClip Frame 153
gotoAndPlay ("stop");
adone = true;
Symbol 1058 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
function cantCombineItems() {
doAction([{t:"vo", l:cl.is01}]);
}
function cantPickupItem() {
doAction([{t:"vo", l:cl.is02}]);
}
function cantUseObjectOnMe() {
doAction([{t:"vo", l:cl.is03}]);
}
function openWallet() {
clear();
gStatus.openWallet = true;
gStatus.credits = 7;
doAction([{t:"co", c:false}, {t:"vo", l:cl.s35}, {t:"ps", s:"coins"}, {t:"fu", f:function () {
_inventory.removeItem("wallet");
_inventory.addItem("credits7");
_inventory.addItem("card");
}}, {t:"co", c:true}]);
}
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
stop();
mask._visible = false;
_global.msteve = this;
_global.steve = char;
id = "steve";
char._x = _m.initData.stevePos.x;
char._y = _m.initData.stevePos.y;
char.setDir(_m.initData.stevePos.d);
status.pos = (status.toPos = _m.initData.stevePos.pos);
if (_m.initData.stevePos.m) {
mask.gotoAndStop(_m.initData.stevePos.m);
mask._visible = true;
char.setMask(mask);
}
if (_m.initData.stevePos.hidden) {
char._visible = false;
}
if (_m.initData.steveAct) {
doAction(_m.initData.steveAct);
delete _m.initData.steveAct;
}
Symbol 1062 MovieClip Frame 1
stop();
Symbol 1062 MovieClip Frame 2
stop();
Symbol 1101 MovieClip Frame 1
this.fstatus = "notyet";
Symbol 1101 MovieClip Frame 3
stop();
Symbol 1101 MovieClip Frame 14
gotoAndPlay ("walk");
Symbol 1101 MovieClip Frame 16
if (rope.ison) {
rope._visible = !rope._visible;
}
Symbol 1101 MovieClip Frame 17
gotoAndStop (1);
Symbol 1102 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
stop();
mask._visible = false;
_global.mryoh = this;
_global.ryoh = ryoh;
id = "ryoh";
char._x = _m.initData.ryohPos.x;
char._y = _m.initData.ryohPos.y;
char.setDir(_m.initData.ryohPos.d);
status.pos = (status.toPos = _m.initData.ryohPos.pos);
if (_m.initData.ryohPos.r) {
char._rotation = _m.initData.ryohPos.r;
}
if (_m.initData.ryohPos.m) {
mask.gotoAndStop(_m.initData.ryohPos.m);
mask._visible = true;
char.setMask(mask);
}
if (_m.initData.ryohPos.hidden) {
char._visible = false;
}
if (_m.initData.ryohAct) {
doAction(_m.initData.ryohAct);
delete _m.initData.ryohAct;
}
Symbol 1111 MovieClip Frame 1
status = "stop";
stop();
Symbol 1111 MovieClip Frame 6
status = "smile";
stop();
Symbol 1111 MovieClip Frame 11
status = "smile2";
stop();
Symbol 1111 MovieClip Frame 16
status = "smile2";
stop();
Symbol 1111 MovieClip Frame 26
status = "talk";
Symbol 1111 MovieClip Frame 48
gotoAndPlay ("talk");
Symbol 1111 MovieClip Frame 55
stop();
Symbol 1111 MovieClip Frame 61
gotoAndPlay ("aaah");
Symbol 1111 MovieClip Frame 66
gotoAndPlay ("grrr");
Symbol 1136 MovieClip Frame 1
stop();
Symbol 1136 MovieClip Frame 13
gotoAndPlay ("walk");
Symbol 1136 MovieClip Frame 16
gotoAndStop (1);
Symbol 1137 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
stop();
mask._visible = false;
_global.mlucas = this;
_global.lucas = char;
char._x = _m.initData.lucasPos.x;
char._y = _m.initData.lucasPos.y;
char.setDir(_m.initData.lucasPos.d);
status.pos = _m.initData.lucasPos.pos;
if (_m.initData.lucasAct) {
doAction(_m.initData.lucasAct);
}
Symbol 1138 MovieClip Frame 1
function doStart() {
createParticleSpray(this, "rainSprite", {o:[0, 0, 0, 100], oV:[70, 0, 0, 100], s:[0, 0.5, 0, 0], a:[0, 0.1, 0, 0], sV:[0, 0, 0, 0], d:[0, 10], t:70, l:1400});
}
Symbol 1156 MovieClip Frame 1
stop();
Symbol 1156 MovieClip Frame 11
stop();
Symbol 1156 MovieClip Frame 16
stop();
Symbol 1157 MovieClip Frame 1
if (_cscene == 10) {
gotoAndStop ("done");
} else if (_cscene != 1) {
gotoAndStop (2);
} else {
gotoAndPlay ("go");
}
Symbol 1157 MovieClip Frame 12
sound.playSFX("vango");
Symbol 1157 MovieClip Frame 20
wbvan.gotoAndPlay("stop");
Symbol 1157 MovieClip Frame 27
_c.cutscenes.doPlay(1);
stop();
Symbol 1157 MovieClip Frame 28
sound.playSFX("vango");
wbvan.gotoAndPlay("start");
Symbol 1157 MovieClip Frame 58
stop();
Symbol 1157 MovieClip Frame 60
wbvan.gotoAndStop("done");
stop();
Symbol 1157 MovieClip Frame 67
sound.playSFX("vango");
wbvan.gotoAndPlay("start");
Symbol 1157 MovieClip Frame 104
stop();
Symbol 1257 MovieClip Frame 1
stop();
Symbol 1257 MovieClip Frame 6
stop();
Symbol 1257 MovieClip Frame 11
gotoAndStop (1);
Symbol 1257 MovieClip Frame 36
gotoAndStop (1);
Symbol 1257 MovieClip Frame 47
gotoAndPlay ("walk");
Symbol 1257 MovieClip Frame 56
gotoAndStop (1);
Symbol 1257 MovieClip Frame 96
stop();
Symbol 1271 MovieClip Frame 7
gotoAndPlay ("s1");
Symbol 1271 MovieClip Frame 14
gotoAndPlay ("s2");
Symbol 1275 MovieClip Frame 1
stop();
Symbol 1275 MovieClip Frame 10
stop();
Symbol 1276 MovieClip Frame 1
if (_cscene == 3) {
gotoAndStop ("prank");
} else {
gotoAndStop (2);
}
Symbol 1276 MovieClip Frame 3
sound.playLoopSFX(1, 500);
sound.sfx.loop1.setPan(-100);
sound.panTo(sfx.loop1, -20, 1000);
Symbol 1276 MovieClip Frame 35
this.onEnterFrame = function () {
var _local1 = Math.sin(cTimer / 500);
var _local3 = 80 + (15 * _local1);
var _local2 = 200 + (8 * _local1);
box._x = box._x + ((_local3 - box._x) / 24);
box._y = box._y + ((_local2 - box._y) / 24);
};
stop();
box.penguin.gotoAndPlay("bye");
Symbol 1276 MovieClip Frame 36
box.penguin.gotoAndPlay("armsup");
Symbol 1276 MovieClip Frame 44
box.penguin.gotoAndPlay("armsdown");
Symbol 1276 MovieClip Frame 51
box.penguin.gotoAndPlay("armsup");
Symbol 1276 MovieClip Frame 59
box.penguin.gotoAndPlay("armsdown");
Symbol 1276 MovieClip Frame 62
stop();
Symbol 1276 MovieClip Frame 63
this.onEnterFrame = function () {
var _local1 = Math.sin(cTimer / 500);
var _local3 = 197 + (15 * _local1);
var _local2 = 180 + (8 * _local1);
box._x = box._x + ((_local3 - box._x) / 24);
box._y = box._y + ((_local2 - box._y) / 24);
steve._x = box._x + 6;
steve._y = box._y - 27;
};
box.gotoAndStop("cloud");
stop();
Symbol 1277 MovieClip Frame 1
function init() {
this.initData = {};
if (_cscene == 1) {
sound.playMusicPattern(1);
setActiveChar(mkla);
startTimer();
initData.klaPos = {x:165, y:330, d:dirLeft, pos:1, hidden:true};
initData.stevePos = {x:165, y:330, d:dirLeft, pos:1, hidden:true};
initData.lucasPos = {x:-100, y:-100, hidden:true};
initData.ryohPos = {x:-100, y:-100, hidden:true};
gStatus.itemData.list = {sx:1, sy:1};
gStatus.iCells[0][0] = {id:"list", sx:1, sy:1, x:0, y:0};
_global.canopencommand = false;
canOpenCommand(false);
_c.onEnterFrame = function () {
delete this.onEnterFrame;
canOpenCommand(false);
};
} else if (_cscene == 3) {
setActiveChar(mkla);
initData.klaPos = {x:331, y:335, d:dirLeft, pos:1, m:2};
initData.stevePos = {x:0, y:0, d:dirRight, pos:1};
initData.klaAct = [{t:"co", c:false}];
initData.lucasPos = {x:-100, y:-100, hidden:true};
initData.ryohPos = {x:-100, y:-100, hidden:true};
_global.canopencommand = false;
_e.onEnterFrame = function () {
if (!debugGo) {
_global.debugGo = true;
return(undefined);
}
delete _global.debugGo;
delete this.onEnterFrame;
_c.cutscenes.doPlay(4);
canOpenCommand(false);
};
_inventory._visible = false;
_inventory.removeAllItems();
_i.specialItem._visible = false;
} else if (_cscene == 4) {
setActiveChar(msteve);
initData.klaPos = {x:-100, y:-100, hidden:true};
initData.lucasPos = {x:-100, y:-100, hidden:true};
initData.ryohPos = {x:-100, y:-100, hidden:true};
if (_froom == 2) {
initData.stevePos = {x:321, y:335, d:dirLeft, pos:1, m:2};
initData.steveAct = [{x:291}, {t:"ma", m:0}, {t:"co", c:true}];
} else {
initData.stevePos = {x:400, y:335, d:dirLeft, pos:1};
initData.steveAct = [{x:370}, {t:"ma", m:0}, {t:"co", c:true}];
}
_inventory._visible = true;
} else if (_cscene == 6) {
setActiveChar(msteve);
initData.klaPos = {x:-100, y:-100, hidden:true};
initData.lucasPos = {x:-100, y:-100, hidden:true};
initData.ryohPos = {x:-100, y:-100, hidden:true};
if (_froom == 2) {
initData.stevePos = {x:321, y:335, d:dirLeft, pos:1, m:2};
initData.steveAct = [{x:291}, {t:"ma", m:0}, {t:"co", c:true}];
} else if (gStatus.jebediahOnTree and gStatus.jebediahSafe) {
delete gStatus.jebediahOnTree;
initData.stevePos = {x:400, y:335, d:dirLeft, pos:1};
initData.steveAct = [{x:370}, {t:"vo", l:cl.s69}, {t:"co", c:true}];
} else {
initData.stevePos = {x:400, y:335, d:dirLeft, pos:1};
initData.steveAct = [{x:370}, {t:"co", c:true}];
}
_inventory._visible = true;
} else if (_cscene == 10) {
initData.klaPos = {x:336, y:335, m:2};
initData.lucasPos = {x:191, y:335, dir:dirRight};
initData.ryohPos = {x:149, y:335, dir:dirRight};
initData.stevePos = {x:237, y:335, d:dirLeft};
initData.steveAct = [{t:"fu", f:_c.cutscenes.nextStep}];
}
_global._froom = _croom;
}
function initWalkButtons() {
initBt(_e.btw1);
if (_cscene == 1) {
return(undefined);
}
_e.btw1.onPress = function () {
_m.walkTo(_char._xmouse);
};
}
function initExitButtons() {
if (_cscene == 1) {
_e.bte1._visible = false;
_e.bte2._visible = false;
_e.bte3._visible = false;
return(undefined);
}
initExitBt(_e.bte1);
initExitBt(_e.bte2, "r");
initExitBt(_e.bte3, "r");
_e.bte1.onPress = function () {
if (gStatus.gotbtcMap) {
var _local1 = [{t:"co", c:false}, {t:"fu", f:function () {
_i.map.show();
}}];
} else {
var _local1 = [{t:"vo", l:cl.s40}];
}
_m.walkTo(150, _char._y, _local1);
};
_e.bte3.onPress = function () {
if (gStatus.gotbtcMap) {
var _local1 = [{t:"co", c:false}, {t:"fu", f:function () {
_i.map.show();
}}];
} else {
var _local1 = [{t:"vo", l:cl.s40}];
}
_m.walkTo(400, _char._y, _local1);
};
_e.bte2.onPress = function () {
var _local1 = [{t:"co", c:false}, {t:"ma", m:2}, {x:337}, {t:"go", o:_r, l:"r2"}];
_m.walkTo(297, _char._y, _local1);
};
}
function walkTo(x, y, a, i) {
if (!canopencommand) {
return(undefined);
}
if (_r.cursorI and (!i)) {
_inventory.unSelectItem();
}
_m.arEye.target = _char;
_char.clear();
_c.comm.close();
_char.doAction({x:x});
if (a) {
_char.doAction(a);
}
}
function doMove(n) {
}
stop();
_global._m = this;
_global._e = _m.env;
_global._croom = 1;
if (_cscene == 1) {
_i.gotoAndStop(2);
}
btRollOut();
if (mirrorMode) {
_m._xscale = -100;
_m._x = 700;
} else {
_m._xscale = 100;
_m.x = 0;
}
init();
_global.cTimer = getTimer();
this.onEnterFrame = function () {
_global.cTimer = getTimer();
updateTimer();
};
Symbol 1292 MovieClip Frame 1
stop();
status = 0;
if (_cscene != 8) {
gotoAndPlay ("close");
}
Symbol 1292 MovieClip Frame 2
status = 1;
sound.playSFX("shopdoor");
Symbol 1292 MovieClip Frame 10
stop();
Symbol 1292 MovieClip Frame 11
sound.playSFX("shopdoor");
Symbol 1292 MovieClip Frame 19
stop();
Symbol 1304 MovieClip Frame 1
stop();
status = 0;
Symbol 1304 MovieClip Frame 2
status = 1;
sound.playSFX("dooropen");
Symbol 1304 MovieClip Frame 11
stop();
Symbol 1317 MovieClip Frame 1
stop();
Symbol 1317 MovieClip Frame 18
stop();
Symbol 1317 MovieClip Frame 35
stop();
Symbol 1317 MovieClip Frame 52
stop();
Symbol 1320 MovieClip Frame 1
if (gStatus.warbearsShop) {
gotoAndStop ("done");
} else {
stop();
}
Symbol 1320 MovieClip Frame 16
sound.playSFX("robo click");
Symbol 1320 MovieClip Frame 24
stop();
Symbol 1320 MovieClip Frame 57
sound.playSFX("robo click");
Symbol 1320 MovieClip Frame 61
stop();
Symbol 1327 MovieClip Frame 1
stop();
Symbol 1335 MovieClip Frame 1
function blink() {
clearInterval(interval);
play();
}
status = "stop";
clearInterval(interval);
interval = setInterval(this, "blink", Math.floor(Math.random() * 7000) + 500);
stop();
Symbol 1335 MovieClip Frame 8
gotoAndStop (1);
Symbol 1335 MovieClip Frame 10
status = "shut1";
clearInterval(interval);
stop();
Symbol 1335 MovieClip Frame 15
status = "shut2";
clearInterval(interval);
stop();
Symbol 1335 MovieClip Frame 20
status = "cry";
clearInterval(interval);
stop();
Symbol 1335 MovieClip Frame 27
clearInterval(interval);
stop();
Symbol 1344 MovieClip Frame 1
status = "stop";
stop();
Symbol 1344 MovieClip Frame 6
status = "smile";
stop();
Symbol 1344 MovieClip Frame 11
status = "smile2";
stop();
Symbol 1344 MovieClip Frame 16
status = "smile2";
stop();
Symbol 1344 MovieClip Frame 21
status = "talk";
Symbol 1344 MovieClip Frame 43
gotoAndPlay ("talk");
Symbol 1395 MovieClip Frame 1
function resetDir() {
if (this.dir == dirRight) {
this.logo.gotoAndStop("right");
} else {
this.logo.gotoAndStop("left");
}
}
resetDir();
status = "";
stop();
Symbol 1395 MovieClip Frame 2
resetDir();
Symbol 1395 MovieClip Frame 12
gotoAndPlay ("walk");
Symbol 1395 MovieClip Frame 13
resetDir();
Symbol 1395 MovieClip Frame 19
stop();
adone = true;
Symbol 1395 MovieClip Frame 20
resetDir();
Symbol 1395 MovieClip Frame 27
gotoAndStop ("stop");
adone = true;
Symbol 1395 MovieClip Frame 28
resetDir();
Symbol 1395 MovieClip Frame 34
stop();
adone = true;
Symbol 1395 MovieClip Frame 35
resetDir();
Symbol 1395 MovieClip Frame 42
gotoAndStop ("stop");
adone = true;
Symbol 1395 MovieClip Frame 43
if (this.dir == 1) {
this.dir = 0;
this.logo.gotoAndStop("right");
} else {
this.dir = 1;
this.logo.gotoAndStop("left");
}
Symbol 1395 MovieClip Frame 45
gotoAndStop (1);
adone = true;
Symbol 1396 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
function startIdle() {
mbob.idleInterval = setInterval(mbob, "doTurn", 2000);
}
function stopIdle() {
clearInterval(mbob.idleInterval);
}
function doTurn() {
if ((_char.char._x < this.char._x) and (_char.status.pos < 5)) {
doAction({t:"tu", d:dirLeft});
} else {
doAction({t:"tu", d:dirRight});
}
}
function placeOrder(o) {
stopIdle();
switch (o) {
case 1 :
if (!gStatus.orderedBullets) {
gStatus.orderedBullets = true;
doAction({t:"vo", l:cl.b32});
} else {
doAction({t:"vo", l:cl.b33});
}
var _local1 = cl.b34;
var _local2 = 2000;
break;
case 2 :
if (!gStatus.orderedFish) {
gStatus.orderedFish = true;
doAction([{t:"vo", l:cl.b35}, {ta:msteve, wta:true, t:"vo", l:cl.s31}]);
_local1 = cl.b37;
} else {
doAction([{t:"vo", l:cl.b36}, {t:"co", c:true}]);
return(undefined);
}
_local2 = 3000;
break;
case 3 :
if (!gStatus.orderedNuclear) {
gStatus.orderedNuclear = true;
doAction([{t:"vo", l:cl.b38}]);
} else {
doAction({t:"vo", l:cl.b39});
}
_local1 = cl.b40;
_local2 = 7000;
}
gStatus.bobInTheBack = true;
doAction([{t:"co", c:true}, {t:"ma", m:4}, {x:194}, {t:"id", l:_local2}, {t:"fu", f:function () {
gStatus.bobInTheBack = false;
}}, {x:165}, {t:"vo", l:_local1, g:true}, {x:115}, {t:"ma", m:0}, {t:"fu", f:startIdle}]);
}
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
stop();
_global.mbob = this;
startIdle();
Symbol 1408 MovieClip Frame 1
function doNext() {
if (this._currentframe < 4) {
nextFrame();
} else {
gotoAndStop (2);
}
}
stop();
this.interval = setInterval(this, "doNext", 4000);
gotoAndStop (2);
Symbol 1415 MovieClip Frame 1
stop();
Symbol 1415 MovieClip Frame 17
stop();
Symbol 1423 MovieClip Frame 1
stop();
Symbol 1423 MovieClip Frame 5
gotoAndPlay ("swim");
Symbol 1425 MovieClip Frame 1
function moveFish() {
clearInterval(this.interval);
this.interval = setInterval(this, "moveFish", Math.floor(Math.random() * 20000) + 3000);
fish.tx = random(12) - 6;
fish.ty = random(12) - 33;
fish.fx = fish._x;
fish.fy = fish._y;
fish.c = 0;
fish.gotoAndPlay("swim");
if (fish.tx > fish.fx) {
fish._xscale = 100;
} else {
fish._xscale = -100;
}
fish.onEnterFrame = function () {
this.c++;
if (this.c == 60) {
this.gotoAndStop(1);
this._x = this.tx;
this._y = this.ty;
delete this.onEnterFrame;
} else {
this._x = this.fx + ((this.tx - this.fx) * (this.c / 60));
this._y = this.fy + ((this.ty - this.fy) * (this.c / 60));
}
};
}
moveFish();
Symbol 1430 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
stop();
id = "neonLights";
me = this;
sx = 1;
sy = 1;
if (_cscene < 8) {
pos = 3;
pHeight = "low";
pDir = dirRight;
} else {
pos = 6;
pDir = dirLeft;
if (this._parent != _e) {
this._visible = false;
}
}
gStatus.itemData[id] = {sx:sx, sy:sy};
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
if (_char == mkla) {
this.onPickUp = function () {
if (gStatus.gotbatteries) {
_char.doAction([{t:"vo", l:cl.k43}]);
}
};
}
Symbol 1431 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
stop();
id = "btcMap";
me = this;
pos = 3;
sx = 1;
sy = 1;
gStatus.itemData[id] = {sx:sx, sy:sy};
pDir = dirRight;
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
if (_char.char.id == "kla") {
this.pickUp = function () {
_char.doAction([{t:"vo", l:cl.k42}]);
};
}
Symbol 1436 MovieClip Frame 1
stop();
Symbol 1436 MovieClip Frame 2
sound.playSFX("engine small");
Symbol 1436 MovieClip Frame 32
stop();
Symbol 1440 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
stop();
id = "wires";
me = this;
pos = 3;
sx = 1;
sy = 1;
gStatus.itemData[id] = {sx:sx, sy:sy};
pHeight = "high";
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
if (_cscene == 8) {
pos = 6;
pDir = dirRight;
if (this._parent != _e) {
this._visible = false;
}
}
if (this.isDisabled) {
bt._visible = false;
}
if (_char == mkla) {
this.onPickUp = function () {
_char.doAction([{t:"co", c:false}, {t:"vo", l:cl.k44}, {t:"tu", d:dirLeft}, {t:"vo", l:cl.k45}, {t:"em", e:":O"}, {t:"tw", a:"a"}, {t:"id", i:24}, {t:"vo", l:cl.k46}, {t:"fu", f:function () {
_global._cscene = 3;
gStatus.arGogglesActive = false;
sound.fadeOutMusic(500, true);
_i.fader.go(function () {
_r.gotoAndStop("r1");
}, true);
}}]);
};
}
Symbol 1442 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
stop();
id = "hackingDevice";
me = this;
pos = 3;
sx = 1;
sy = 1;
pHeight = "high";
gStatus.itemData[id] = {sx:sx, sy:sy};
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
if (_char.id == "kla") {
this.pickUp = function () {
_char.doAction([{t:"vo", l:cl.k42}]);
};
} else {
this.pickUp = function () {
if (_cscene < 6) {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup_high"}, {t:"id", i:2}, {t:"vo", l:cl.s38}, {t:"id", i:2}, {t:"an", l:"pickup_high_b"}, {t:"co", c:true}]);
} else {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup_high"}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
};
}
Symbol 1445 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "view";
_local1[_local2++] = view;
if (_char.id == "kla") {
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
}
_c.comm.initP(_local1);
}
stop();
id = "credits";
me = this;
pos = 3;
sx = 1;
sy = 1;
gStatus.itemData[id] = {sx:sx, sy:sy};
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
if (_char.id == "kla") {
this.pickUp = function () {
_char.doAction([{t:"vo", l:cl.k42}]);
};
this.view = function () {
_char.doAction([{t:"tu", d:dirLeft}, {t:"vo", l:cl.k47}, {ta:mbob, wta:true, t:"vo", l:cl.b19}, {t:"vo", l:cl.k48}, {ta:mbob, wta:true, t:"vo", l:cl.b20}, {t:"vo", l:cl.k49}, {ta:mbob, wta:true, t:"vo", l:cl.b21}, {t:"vo", l:cl["..."]}, {ta:mbob, wta:true, t:"vo", l:cl.b22}]);
};
}
Symbol 1451 MovieClip Frame 1
stop();
Symbol 1451 MovieClip Frame 2
sound.playSFX("engine small");
Symbol 1451 MovieClip Frame 32
stop();
Symbol 1454 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
stop();
id = "batteries";
me = this;
pos = 3;
sx = 1;
sy = 1;
gStatus.itemData[id] = {sx:sx, sy:sy};
if (_cscene == 8) {
pos = 6;
pDir = dirRight;
if (this._parent != _e) {
this._visible = false;
}
}
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
if (_char == mkla) {
this.onPickUp = function () {
if (gStatus.gotneonLights) {
_char.doAction([{t:"vo", l:cl.k43}]);
}
};
}
Symbol 1456 MovieClip Frame 1
stop();
Symbol 1456 MovieClip Frame 2
sound.playSFX("engine small");
Symbol 1456 MovieClip Frame 32
stop();
Symbol 1460 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
stop();
id = "taser";
me = this;
pos = 3;
sx = 1;
sy = 1;
pDir = dirLeft;
gStatus.itemData[id] = {sx:sx, sy:sy};
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
if (_char.char.id == "kla") {
this.pickUp = function () {
_char.doAction([{t:"vo", l:cl.k42}]);
};
}
Symbol 1473 MovieClip Frame 1
stop();
Symbol 1473 MovieClip Frame 2
sound.playSFX("engine small");
Symbol 1473 MovieClip Frame 46
stop();
Symbol 1474 MovieClip Frame 1
if (gStatus.warbearsShop) {
gotoAndStop ("done");
} else {
stop();
}
Symbol 1474 MovieClip Frame 2
sound.playSFX("engine big");
Symbol 1474 MovieClip Frame 13
tree.play();
Symbol 1474 MovieClip Frame 33
sound.playSFX("engine big");
Symbol 1474 MovieClip Frame 43
sound.playSFX("robo click");
Symbol 1474 MovieClip Frame 49
sound.playSFX("robo click");
Symbol 1474 MovieClip Frame 52
sound.playSFX("robo click");
Symbol 1474 MovieClip Frame 57
s1.play();
Symbol 1474 MovieClip Frame 65
s2.play();
Symbol 1474 MovieClip Frame 72
s3.play();
Symbol 1474 MovieClip Frame 79
s4.play();
Symbol 1474 MovieClip Frame 112
stop();
_e.shopTitle.play();
_e.shelvesItem.gotoAndStop("done");
canOpenCommand(true);
Symbol 1474 MovieClip Frame 113
stop();
_e.shelvesItem.gotoAndStop("done");
_e.shopTitle.gotoAndStop("done");
s1.gotoAndStop("done");
s2.gotoAndStop("done");
s3.gotoAndStop("done");
s4.gotoAndStop("done");
Symbol 1483 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if ((_char.id == "steve") and (!gStatus.steveComm01)) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
} else {
_local1[_local2++] = "operate";
_local1[_local2++] = operate;
}
_c.comm.initP(_local1);
}
function view() {
_char.doAction([{t:"vo", l:cl.s22}]);
}
function operate() {
_char.doAction({t:"co", c:false});
if (_char.id == "kla") {
if (!gStatus.klaComm01) {
gStatus.klaComm01 = true;
_char.doAction({t:"vo", l:cl.k10});
}
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch", g:true}, {t:"fu", f:function () {
mbob.clear();
mbob.doAction([{t:"tu", d:dirRight}, {t:"vo", l:cl.b10}, {ta:_char, t:"an", l:"touch_b", g:true}, {ta:_char, t:"vo", l:cl.k11}, {t:"co", c:true}]);
}}]);
} else if (gStatus.bobInTheBack) {
_char.doAction([{t:"an", l:"touch"}, {t:"fu", f:dotouch}, {t:"an", l:"touch_b"}, {t:"co", c:true}]);
} else {
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch", g:true}, {t:"fu", f:function () {
mbob.doAction([{t:"tu", d:dirRight}, {t:"vo", l:cl.b10}, {ta:_char, t:"an", l:"touch_b", g:true}, {ta:_char, t:"vo", l:cl.s21}, {t:"co", c:true}]);
mbob.doAction({ta:_char, t:"vo", l:cl.s23});
}}]);
}
}
function dotouch() {
play();
}
stop();
id = "toolbox";
me = this;
pos = 1;
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (_char.char._x < _x) {
var _local4 = _x - 20;
_local2.push({t:"tu", d:dirRight});
} else {
var _local4 = _x + 20;
_local2.push({t:"tu", d:dirLeft});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
if (gStatus.toolBoxOpen) {
gotoAndStop ("done");
}
Symbol 1483 MovieClip Frame 2
gStatus.toolBoxOpen = true;
Symbol 1483 MovieClip Frame 5
if (gStatus.gotscrewdriver) {
screwdriver._visible = false;
}
stop();
Symbol 1486 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (_char.id == "kla") {
_local1[_local2++] = "operate";
_local1[_local2++] = operate;
}
_c.comm.initP(_local1);
}
function operate() {
if (gStatus.furScanUnlocked and (!gStatus.warbearsShop)) {
gStatus.warbearsShop = true;
_e.btw2._visible = true;
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch"}, {t:"ps", s:"button"}, {t:"fu", f:function () {
_c.cutscenes.doPlay(11);
}}, {t:"an", l:"touch_b"}, {t:"tu", d:dirLeft}, {t:"id", i:24}]);
} else {
gStatus.triedButton = true;
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch"}, {t:"ps", s:"button"}, {t:"an", l:"touch_b"}, {t:"id", i:24}, {t:"vo", l:cl.k12}, {t:"co", c:true}]);
}
}
function doOperate() {
play();
}
stop();
id = "furScanButton";
me = this;
pos = 1;
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
var _local4 = _x - 20;
_local2.push({t:"tu", d:dirRight});
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
Symbol 1487 MovieClip Frame 1
stop();
Symbol 1487 MovieClip Frame 2
stop();
_e.shelves.s1.neonLights._visible = false;
_e.shelves.s1.btcMap._visible = false;
_e.shelves.s2.hackingDevice._visible = false;
_e.shelves.s2.wires._visible = false;
_e.shelves.s2.credits._visible = false;
_e.shelves.s3.batteries._visible = false;
_e.shelves.s4.taser._visible = false;
wires.isDisabled = true;
Symbol 1488 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "talk";
_local1[_local2++] = talk;
_c.comm.initP(_local1);
}
function talk() {
_char.doAction({t:"co", c:false});
var _local1 = [];
var _local3 = 0;
if (_char.id == "kla") {
if (!gStatus.warbearsShop) {
_local1[_local3++] = {l:cl.dkb[0], f:function () {
mbob.doTurn();
_char.doAction([{t:"vo", l:cl.k16}, {ta:mbob, wta:true, t:"vo", l:cl.b12}, {t:"vo", l:cl.k17}, {t:"co", c:true}]);
}};
}
if (gStatus.triedButton and (!gStatus.furScanUnlocked)) {
_local1[_local3++] = {l:cl.dkb[1], f:function () {
mbob.doTurn();
_c.cutscenes.doPlay(3);
}};
}
if ((gStatus.gotneonLights and gStatus.gotbatteries) and (!gStatus.gotwires)) {
_local1[_local3++] = {l:cl.dkb[2], f:function () {
mbob.doTurn();
_char.doAction([{t:"vo", l:cl.k21}, {ta:mbob, wta:true, t:"vo", l:cl.b18}, {t:"vo", l:cl.k22}, {t:"co", c:true}]);
}};
}
} else {
_local1[_local3++] = {l:cl.dsb[0], f:function () {
mbob.doTurn();
_char.doAction([{t:"vo", l:cl.s25}, {ta:mbob, wta:true, t:"vo", l:cl.b30}, {t:"vo", l:cl.s26}, {t:"co", c:true}]);
}};
if (gStatus.steveComm01) {
_local1[_local3++] = {l:cl.dsb[1], f:function () {
mbob.doTurn();
_char.doAction([{t:"vo", l:cl.s27}, {ta:mbob, wta:true, t:"vo", l:cl.b31}, {t:"ch", c:[{l:cl.dsb[3], f:function () {
_char.doAction([{t:"vo", l:cl.s29}, {t:"fu", f:function () {
mbob.placeOrder(1);
}}]);
}}, {l:cl.dsb[4], f:function () {
_char.doAction([{t:"vo", l:cl.s30}, {t:"fu", f:function () {
mbob.placeOrder(2);
}}]);
}}, {l:cl.dsb[5], f:function () {
_char.doAction([{t:"vo", l:cl.s32}, {t:"fu", f:function () {
mbob.placeOrder(3);
}}]);
}}]}]);
}};
}
}
_local1[_local3++] = {l:cl.dkb[3], f:function () {
mbob.doTurn();
_char.doAction([{t:"vo", l:cl.k20}, {t:"co", c:true}]);
}};
_char.doAction({t:"ch", c:_local1});
}
function use_credits7() {
_inventory.unSelectItem();
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch"}, {ta:mbob, wta:true, t:"vo", l:cl.b41}, {t:"an", l:"touch_b"}, {t:"co", c:true}]);
}
function use_credits5() {
_inventory.unSelectItem();
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch"}, {ta:mbob, wta:true, t:"vo", l:cl.b41}, {t:"an", l:"touch_b"}, {t:"co", c:true}]);
}
function use_credits400() {
_inventory.unSelectItem();
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch"}, {ta:mbob, wta:true, t:"vo", l:cl.b41}, {t:"an", l:"touch_b"}, {t:"co", c:true}]);
}
function use_card() {
_inventory.unSelectItem();
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch"}, {ta:mbob, wta:true, t:"vo", l:cl.b52}, {t:"an", l:"touch_b"}, {t:"co", c:true}]);
}
function use_credits2() {
_inventory.unSelectItem();
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch"}, {ta:mbob, wta:true, t:"vo", l:cl.b41}, {t:"an", l:"touch_b"}, {t:"co", c:true}]);
}
function use_btcMap() {
_inventory.unSelectItem();
_char.char.toPiIconId = "btcMap";
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup"}]);
if (gStatus.btcMapPaid) {
_char.doAction([{t:"id", i:6}, {ta:mbob, wta:true, t:"vo", l:cl.b51}, {t:"an", l:"pickup_b"}, {t:"co", c:true}]);
return(undefined);
}
_char.doAction([{ta:mbob, wta:true, t:"vo", l:cl.b47}, {t:"an", l:"pickup_b"}, {t:"fu", f:function () {
delete _char.char.toPiIconId;
}}]);
if (!gStatus.openWallet) {
_char.doAction([{t:"id", i:6}, {ta:mbob, wta:true, t:"vo", l:cl.b42}, {t:"co", c:true}]);
return(undefined);
}
_char.doAction([{t:"id", i:6}, {ta:mbob, wta:true, t:"an", l:"touch"}, {t:"an", l:"touch"}, {t:"ps", s:"coins"}, {t:"id", i:6}, {t:"fu", f:function () {
_inventory.removeItem("credits" + gStatus.credits);
gStatus.credits = gStatus.credits - 5;
if (gStatus.credits > 0) {
_inventory.addItem("credits" + gStatus.credits);
}
gStatus.btcMapPaid = true;
}}, {ta:mbob, wta:true, t:"an", l:"touch_b"}, {t:"an", l:"touch_b"}, {ta:mbob, wta:true, t:"vo", l:cl.b50}, {t:"co", c:true}]);
}
function use_taser() {
_inventory.unSelectItem();
_char.char.toPiIconId = "taser";
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup"}]);
if (gStatus.taserPaid) {
_char.doAction([{t:"id", i:6}, {ta:mbob, wta:true, t:"vo", l:cl.b51}, {t:"an", l:"pickup_b"}, {t:"co", c:true}]);
return(undefined);
}
_char.doAction([{ta:mbob, wta:true, t:"vo", l:cl.b48}, {t:"an", l:"pickup_b"}, {t:"fu", f:function () {
delete _char.char.toPiIconId;
}}]);
if (!gStatus.openWallet) {
_char.doAction([{t:"id", i:6}, {ta:mbob, wta:true, t:"vo", l:cl.b42}, {t:"co", c:true}]);
return(undefined);
}
_char.doAction([{t:"id", i:6}, {ta:mbob, wta:true, t:"an", l:"touch"}, {t:"an", l:"touch"}, {t:"ps", s:"coins"}, {t:"id", i:6}, {t:"fu", f:function () {
_inventory.removeItem("credits" + gStatus.credits);
gStatus.credits = gStatus.credits - 2;
if (gStatus.credits > 0) {
_inventory.addItem("credits" + gStatus.credits);
}
gStatus.taserPaid = true;
}}, {ta:mbob, wta:true, t:"an", l:"touch_b"}, {t:"an", l:"touch_b"}, {ta:mbob, wta:true, t:"vo", l:cl.b50}, {t:"co", c:true}]);
}
function use_hackingDevice() {
_inventory.unSelectItem();
_char.char.toPiIconId = "hackingDevice";
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup"}]);
if (gStatus.hackingDevicePaid) {
_char.doAction([{t:"id", i:6}, {ta:mbob, wta:true, t:"vo", l:cl.b51}, {t:"an", l:"pickup_b"}, {t:"co", c:true}]);
return(undefined);
}
_char.doAction([{ta:mbob, wta:true, t:"vo", l:cl.b49}, {t:"an", l:"pickup_b"}, {t:"fu", f:function () {
delete _char.char.toPiIconId;
}}]);
if (gStatus.credits != 400) {
_char.doAction([{t:"id", i:6}, {ta:mbob, wta:true, t:"vo", l:cl.b42}, {t:"co", c:true}]);
return(undefined);
}
_char.doAction([{t:"id", i:6}, {ta:mbob, wta:true, t:"an", l:"touch"}, {t:"an", l:"touch"}, {t:"id", i:6}, {t:"ps", s:"coins"}, {t:"fu", f:function () {
_inventory.removeItem("credits" + gStatus.credits);
gStatus.credits = gStatus.credits - 400;
if (gStatus.credits > 0) {
_inventory.addItem("credits" + gStatus.credits);
}
gStatus.hackingDevicePaid = true;
}}, {ta:mbob, wta:true, t:"an", l:"touch_b"}, {t:"an", l:"touch_b"}, {ta:mbob, wta:true, t:"vo", l:cl.b53}, {t:"vo", l:cl.s71}, {t:"co", c:true}]);
}
stop();
id = "bob";
pos = 1;
me = this;
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (_char.char._x < _x) {
var _local4 = _x - 35;
_local2.push({t:"tu", d:dirRight});
} else {
var _local4 = _x + 35;
_local2.push({t:"tu", d:dirLeft});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
Symbol 1489 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
stop();
id = "gift";
me = this;
pos = 1;
sx = 1;
sy = 1;
pDir = dirRight;
gStatus.itemData[id] = {sx:sx, sy:sy};
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
if (!gStatus.bobComm01) {
_visible = false;
}
gStatus.itemData.arGoggles = {sx:1, sy:1};
gStatus.ooFunctions.arGoggles_kla = function () {
_char.doAction([{t:"co", c:false}, {t:"vo", l:cl.k32}, {t:"an", l:"glasses_off"}, {t:"id", i:12}, {t:"fu", f:function () {
gStatus.arGogglesOn = true;
_inventory.removeItem("arGoggles");
_i.specialItem.gotoAndPlay("arGoggles_on");
}}, {t:"an", l:"glasses_on"}, {t:"co", c:true}]);
removeMovieClip(_r.cursorI);
};
Symbol 1494 MovieClip Frame 1
stop();
Symbol 1494 MovieClip Frame 2
status = 1;
Symbol 1494 MovieClip Frame 9
stop();
Symbol 1500 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "view";
_local1[_local2++] = view;
_local1[_local2++] = "operate";
_local1[_local2++] = operate;
_c.comm.initP(_local1);
}
function operate() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch"}, {t:"ps", s:"button"}, {t:"id", l:500}, {t:"an", l:"touch_b"}, {t:"id", l:500}, {t:"ps", s:"puzzle3"}, {t:"id", l:500}, {t:"vo", l:cl.s72}, {t:"co", c:true}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function use_hackingDevice() {
_inventory.unSelectItem();
if (gStatus.hackingDevicePaid) {
gStatus.doorUnlocked = true;
_inventory.removeItem("hackingDevice");
_char.char.toPiIconId = "hackingDevice";
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup"}, {t:"id", i:2}, {t:"ps", s:"robo click"}, {t:"fu", f:function () {
me.gotoAndStop(2);
_char.char.pi._visible = false;
}}, {t:"id", i:2}, {t:"an", l:"pickup_b"}, {t:"vo", l:cl.s73}, {t:"id", l:500}, {t:"ps", s:"puzzle2"}, {t:"id", l:500}, {t:"fu", f:function () {
me.gotoAndStop(3);
_e.ldoor.play();
_e.bte2._visible = true;
}}, {t:"id", l:200}, {t:"vo", l:cl.s74}, {t:"co", c:true}]);
} else {
_char.char.toPiIconId = "hackingDevice";
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup"}, {ta:_e.speaker1, wta:true, t:"vo", l:cl.b44}, {t:"vo", l:cl.s36}, {ta:_e.speaker1, wta:true, t:"vo", l:cl.b45}, {t:"vo", l:cl.s37}, {t:"an", l:"pickup_b"}, {t:"co", c:true}]);
}
}
stop();
id = "doorPanel";
me = this;
pos = 5;
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
var _local4 = _x - 20;
_local2.push({t:"tu", d:dirRight});
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
Symbol 1519 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
function getPos() {
return({_x:this._x, _y:this._y + 40});
}
function doTalk() {
if (status.mute) {
return(undefined);
}
mbob.char.mouth.gotoAndPlay("talk");
if (_e.mic.status != 1) {
_e.mic.play();
}
}
function doStopTalk() {
mbob.char.mouth.gotoAndStop("stop");
}
stop();
this.interval = setInterval(this, "play", 3000);
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
Symbol 1519 MovieClip Frame 6
stop();
Symbol 1519 MovieClip Frame 16
stop();
Symbol 1519 MovieClip Frame 23
gotoAndStop (2);
Symbol 1523 MovieClip Frame 1
stop();
Symbol 1524 MovieClip Frame 1
_parent.initWalkButtons();
_parent.initExitButtons();
if (_cscene > 7) {
gotoAndStop (3);
} else if (_cscene > 3) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1532 MovieClip Frame 1
status = "stop";
stop();
Symbol 1532 MovieClip Frame 6
status = "smile";
stop();
Symbol 1532 MovieClip Frame 11
status = "smile2";
stop();
Symbol 1532 MovieClip Frame 16
status = "smile2";
stop();
Symbol 1532 MovieClip Frame 21
status = "talk";
sound.playSFX("edude");
Symbol 1532 MovieClip Frame 43
gotoAndPlay ("talk");
Symbol 1535 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "talk";
_local1[_local2++] = talk;
_c.comm.initP(_local1);
}
function talk() {
var _local1 = [];
var _local2 = 0;
if (_cscene == 2) {
_local1[_local2++] = {l:cl.dka[0], f:function () {
_char.doAction([{t:"vo", l:cl.k35}, {t:"fu", f:function () {
_m.arEye.findBob();
}}]);
}};
if (gStatus.gotneonLights and gStatus.gotbatteries) {
_local1[_local2++] = {l:cl.dka[1], f:function () {
_char.doAction([{t:"vo", l:cl.k37}, {t:"fu", f:function () {
_m.arEye.findWires();
}}]);
}};
}
} else if (_cscene == 5) {
if (gStatus.seenTree and (!gStatus.cutTree)) {
_local1[_local2++] = {l:cl.dka2[0], f:function () {
_char.doAction([{t:"vo", l:cl.k59}, {t:"fu", f:function () {
_m.arEye.cutTree();
}}]);
}};
}
} else if (_cscene == 7) {
if ((!gStatus.gotcubeRed) and gStatus.klaComm03) {
_local1[_local2++] = {l:cl.dka2[1], f:function () {
_char.doAction([{t:"vo", l:cl.k61}, {t:"fu", f:function () {
_m.arEye.findRedCube();
}}]);
}};
}
}
_local1[_local2++] = {l:cl.dka2[2], f:function () {
_char.doAction([{t:"vo", l:cl.k39}, {t:"co", c:true}]);
}};
_char.doAction([{t:"co", c:false}, {t:"ch", c:_local1}]);
}
stop();
id = "eye";
pos = 1;
me = this;
initBtS(bt);
bt.onPress = function () {
if (!canopencommand) {
return(undefined);
}
mkla.clear();
if (!_m.arEye.target.waiting) {
_m.arEye.target = _m.arEye.getToCharPos();
_m.arEye.target.waiting = true;
_m.arEye.dontTurn = true;
if (_char.char._x > _m.arEye.char._x) {
_char.doAction({t:"tu", d:dirLeft});
_m.arEye.doAction({t:"tu", d:dirRight});
} else {
_char.doAction({t:"tu", d:dirRight});
_m.arEye.doAction({t:"tu", d:dirLeft});
}
_m.arEye.doAction({t:"vo", l:cl.e03});
}
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
this._parent["use_" + _r.cursorI.id]();
} else {
_char.cantUseObjectsTogether();
}
} else {
_char.doAction({t:"fu", f:openMenu});
}
};
stop();
Symbol 1538 MovieClip Frame 1
function updatePos() {
var _local1 = Math.sin(cTimer / 500);
if (target.id == "kla") {
dontTurn = false;
var _local4 = getToCharPos();
var _local2 = _local4.x;
var _local5 = _local4.y + (7 * _local1);
var _local3 = _local4.d;
} else if (target) {
var _local2 = target.x + (7 * _local1);
var _local5 = target.y + (4 * _local1);
} else {
var _local2 = char._x + (7 * _local1);
var _local5 = char._y + (4 * _local1);
}
if ((_local2 - char._x) < -40) {
var _local3 = dirLeft;
} else if ((_local2 - char._x) > 40) {
var _local3 = dirRight;
}
if (!dontTurn) {
if (_local3 == dirLeft) {
char.prevFrame();
} else {
char.nextFrame();
}
}
char._x = char._x + ((_local2 - char._x) / 24);
char._y = char._y + ((_local5 - char._y) / 24);
if (voice._visible) {
voice.setPos();
}
updateTrail();
}
function getToCharPos(opposite) {
var _local1 = _char.char._y - 50;
if ((_char.char.dir == dirLeft) and (!opposite)) {
var _local2 = _char.char._x + 35;
var _local3 = dirLeft;
} else {
var _local2 = _char.char._x - 35;
var _local3 = dirRight;
}
return({x:_local2, y:_local1, d:_local3});
}
function updateTrail() {
apos.push({x:char._x, y:char._y});
apos.splice(0, 1);
var _local2 = 1;
while (_local2 <= 4) {
this["s" + _local2]._x = apos[(_local2 * 3) - 1].x;
this["s" + _local2]._y = apos[(_local2 * 3) - 1].y;
_local2++;
}
}
function startFollow(target) {
if (!target) {
this.target = _char;
} else {
this.target = target;
}
this.dontTurn = false;
this.onEnterFrame = updatePos;
var _local2 = 1;
while (_local2 <= 4) {
this["s" + _local2]._x = char._x;
this["s" + _local2]._y = char._y;
_local2++;
}
apos = [];
_local2 = 0;
while (_local2 < 12) {
apos.push({x:char._x, y:char._y});
_local2++;
}
s1._alpha = 40;
s2._alpha = 50;
s3._alpha = 60;
s4._alpha = 70;
}
function findBob() {
target = {x:270, y:270};
doAction([{t:"id", i:24}, {t:"vo", l:cl.e04}, {t:"go", o:_m.scan, l:"on"}, {t:"id", i:70}, {t:"go", o:_m.scan, l:"bob"}, {t:"id", i:12}, {t:"vo", l:cl.e05}, {t:"id", i:12}, {ta:mkla, twa:true, t:"em", e:":D"}, {ta:mkla, twa:true, t:"tw", a:"a"}, {ta:mkla, twa:true, t:"vo", l:cl.k36}, {t:"go", o:_m.scan, l:"stop"}, {t:"co", c:true}]);
}
function findWires() {
target = {x:370, y:270};
doAction([{t:"id", i:24}, {t:"vo", l:cl.e04}, {t:"go", o:_m.scan, l:"on"}, {t:"id", i:70}, {t:"go", o:_m.scan, l:"wires"}, {t:"id", i:12}, {t:"vo", l:cl.e06}, {t:"id", i:12}, {ta:mkla, twa:true, t:"em", e:":D"}, {ta:mkla, twa:true, t:"tw", a:"a"}, {ta:mkla, twa:true, t:"vo", l:cl.k38}, {t:"go", o:_m.scan, l:"stop"}, {t:"fu", f:function () {
_e.shelvesItem.wires.bt._visible = true;
}}, {t:"co", c:true}]);
}
function findRedCube() {
target = {x:290, y:162};
if (_char.char._x > 290) {
_char.doAction({t:"tu", d:dirLeft});
} else {
_char.doAction({t:"tu", d:dirRight});
}
doAction([{t:"id", i:24}, {t:"vo", l:cl.e04}, {t:"ps", s:"scan"}, {t:"fu", f:function () {
_m.arEye.target = {x:280, y:162};
}}, {t:"id", l:1000}, {t:"tu", d:dirRight}, {t:"fu", f:function () {
_m.arEye.target = {x:300, y:162};
}}, {t:"id", l:1000}, {t:"tu", d:dirLeft}, {t:"fu", f:function () {
_m.arEye.target = {x:280, y:162};
}}, {t:"id", l:1000}, {t:"tu", d:dirRight}, {t:"fu", f:function () {
_m.arEye.target = {x:300, y:162};
}}]);
if (_char.dir == dirRight) {
doAction({t:"tu", d:dirLeft});
} else {
doAction({t:"tu", d:dirRight});
}
doAction([{t:"fu", f:function () {
_m.arEye.target = _m.arEye.getToCharPos(true);
}}, {t:"vo", l:cl.e09}, {ta:mkla, twa:true, t:"vo", l:cl["..."]}, {ta:mkla, twa:true, t:"vo", l:cl.k62}, {t:"co", c:true}]);
}
function cutTree() {
_c.cutscenes.doPlay(8);
}
function getPos() {
return({_x:this.char._x, _y:this.char._y + 30});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
this.onEnterFrame = this.updatePos;
return(undefined);
}
status.acting = true;
updatePos();
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "tu" :
if (a[0].d == dirLeft) {
char.prevFrame();
} else {
char.nextFrame();
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
var apos = [{x:0, y:0}, {x:0, y:0}, {x:0, y:0}, {x:0, y:0}, {x:0, y:0}, {x:0, y:0}, {x:0, y:0}, {x:0, y:0}, {x:0, y:0}, {x:0, y:0}, {x:0, y:0}, {x:0, y:0}];
var target = null;
var dontTurn = false;
status = {};
status.acting = false;
status.mute = false;
a = [];
this.coflag = canopencommand;
if ((_cscene == 6) and (_char == mkla)) {
char._x = 42;
char._y = 234;
char.gotoAndStop(12);
var t = {x:42, y:234};
startFollow(t);
stop();
} else if (gStatus.arGogglesActive and (((((_cscene == 2) or (_cscene == 4)) or (_cscene == 5)) or (_cscene == 7)) or (_cscene == 9))) {
char._y = _char.char._y - 50;
if (_char.char.dir == dirLeft) {
char._x = _char.char._x + 35;
} else {
char._x = _char.char._x - 35;
}
gotoAndStop ("done");
} else {
stop();
_visible = false;
}
Symbol 1538 MovieClip Frame 2
sound.playSFX("rearrange");
char._y = _char.char._y - 50;
if (_char.char.dir == dirLeft) {
char._x = _char.char._x + 35;
} else {
char._x = _char.char._x - 35;
}
this.onEnterFrame = function () {
_visible = true;
char._xscale = dummy._xscale;
char._yscale = dummy._yscale;
char._alpha = dummy._alpha;
};
this.coflag = canopencommand;
if (!gStatus.klaComm02) {
canOpenCommand(false);
}
Symbol 1538 MovieClip Frame 15
startFollow();
if (gStatus.klaComm02) {
stop();
canOpenCommand(true);
}
Symbol 1538 MovieClip Frame 16
startFollow();
Symbol 1538 MovieClip Frame 22
gStatus.klaComm02 = true;
mkla.clear();
target = getToCharPos();
target.waiting = true;
dontTurn = true;
if (_char.char._x > _m.arEye.char._x) {
_char.doAction({t:"tu", d:dirLeft});
doAction({t:"tu", d:dirRight});
} else {
_char.doAction({t:"tu", d:dirRight});
doAction({t:"tu", d:dirLeft});
}
doAction([{t:"vo", l:cl.e01}, {t:"pl"}]);
stop();
Symbol 1538 MovieClip Frame 23
_char.doAction([{t:"em", e:":O"}, {t:"tw", a:"a"}, {t:"id", i:24}, {t:"vo", l:cl.k33}, {t:"pl", o:_m.arEye}]);
mbob.doAction([{t:"id", l:3000}, {t:"vo", l:cl.b17}]);
stop();
Symbol 1538 MovieClip Frame 24
doAction([{t:"vo", l:cl.e02}, {t:"pl"}]);
stop();
Symbol 1538 MovieClip Frame 25
_char.doAction([{t:"vo", l:cl.k34}, {t:"co", c:true}]);
stop();
Symbol 1538 MovieClip Frame 26
this.onEnterFrame = function () {
char._xscale = dummy._xscale;
char._yscale = dummy._yscale;
char._alpha = dummy._alpha;
};
Symbol 1538 MovieClip Frame 36
canOpenCommand(true);
Symbol 1546 MovieClip Frame 1
if (mbob.char.dir == dirRight) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1550 MovieClip Frame 1
stop();
Symbol 1550 MovieClip Frame 7
sound.playSFX("scan");
Symbol 1550 MovieClip Frame 73
gotoAndStop (1);
Symbol 1550 MovieClip Frame 75
sound.playSFX("scan ok");
lab.fid = cl.f02;
lab.txt = "BOB";
lab.col = 13434624 /* 0xCCFF00 */;
lab.cols = 6651138 /* 0x657D02 */;
lab.init();
Symbol 1550 MovieClip Frame 89
gotoAndPlay ("bob");
Symbol 1550 MovieClip Frame 90
sound.playSFX("scan ok");
lab.fid = cl.f02;
lab.txt = "WIRES";
lab.col = 13434624 /* 0xCCFF00 */;
lab.cols = 6651138 /* 0x657D02 */;
lab.init();
Symbol 1550 MovieClip Frame 104
gotoAndPlay ("wires");
Symbol 1557 MovieClip Frame 1
stop();
Symbol 1557 MovieClip Frame 15
gotoAndPlay ("go");
Symbol 1557 MovieClip Frame 23
stop();
Symbol 1558 MovieClip Frame 1
function doTalk() {
delete _m.furScanner.dostop;
_m.furScanner.gotoAndPlay("talk");
}
function doStopTalk() {
_m.furScanner.dostop = true;
}
function getPos() {
return({_x:501, _y:314});
}
function talk(lab) {
this.label = lab;
if (this.voice != null) {
removeBubble(this);
}
requestBubble(this);
this.onEnterFrame = function () {
voice.open(this.label);
voice.onclose = function () {
_c.cutscenes.nextStep();
};
delete this.onEnterFrame;
};
}
stop();
Symbol 1558 MovieClip Frame 2
sound.playSFX("engine small");
Symbol 1558 MovieClip Frame 29
sound.playSFX("robo click");
Symbol 1558 MovieClip Frame 35
stop();
_c.cutscenes.nextStep();
Symbol 1558 MovieClip Frame 45
if (dostop) {
delete dostop;
stop();
} else {
gotoAndPlay ("talk");
}
Symbol 1558 MovieClip Frame 47
sound.playSFX("engine small");
Symbol 1558 MovieClip Frame 86
sound.playSFX("engine small");
Symbol 1558 MovieClip Frame 94
stop();
_c.cutscenes.nextStep();
Symbol 1558 MovieClip Frame 95
c.play();
sound.playSFX("cutter");
Symbol 1558 MovieClip Frame 143
c.gotoAndPlay("stop");
Symbol 1558 MovieClip Frame 185
stop();
_c.cutscenes.nextStep();
Symbol 1558 MovieClip Frame 186
sound.playSFX("engine small");
Symbol 1558 MovieClip Frame 220
stop();
_c.cutscenes.nextStep();
Symbol 1594 MovieClip Frame 1
sound.playSFX("loop3");
Symbol 1594 MovieClip Frame 7
sound.playSFX("loop3");
Symbol 1594 MovieClip Frame 15
sound.playSFX("loop3");
Symbol 1594 MovieClip Frame 26
sound.playSFX("loop3");
Symbol 1594 MovieClip Frame 33
stop();
_m.lightAndDark.play();
Symbol 1596 MovieClip Frame 1
if (_cscene == 8) {
gotoAndStop (2);
}
stop();
Symbol 1596 MovieClip Frame 2
stop();
Symbol 1596 MovieClip Frame 4
stop();
Symbol 1596 MovieClip Frame 5
_c.cutscenes.nextStep();
stop();
Symbol 1617 MovieClip Frame 1
stop();
Symbol 1617 MovieClip Frame 21
_c.cutscenes.nextStep();
stop();
Symbol 1618 MovieClip Frame 1
function init() {
this.initData = {};
if (_cscene == 2) {
setActiveChar(mkla);
initData.klaPos = {x:51, y:335, d:dirRight, pos:1};
initData.stevePos = {x:-100, y:-100, hidden:true};
if (!gStatus.bobComm01) {
_c.cutscenes.doPlay(2);
_inventory._visible = true;
} else {
initData.klaAct = [{x:61}, {t:"co", c:true}];
}
}
if ((_cscene == 4) or (_cscene == 6)) {
setActiveChar(msteve);
initData.klaPos = {x:-100, y:-100, hidden:true};
initData.stevePos = {x:51, y:335, d:dirRight, pos:1};
if (!gStatus.bobComm02) {
_c.cutscenes.doPlay(5);
_inventory._visible = true;
} else {
initData.steveAct = [{x:61}, {t:"co", c:true}];
}
}
if (_cscene == 8) {
setActiveChar(msteve);
initData.klaPos = {x:479, y:151, r:126, d:dirLeft};
initData.klaAct = [{t:"fu", f:function () {
kla.gotoAndPlay("walk");
}}];
initData.stevePos = {x:345, y:248, d:dirRight, pos:6};
initData.steveAct = [{t:"em", e:":O"}];
gStatus.ooFunctions.neonLights_batteries = (gStatus.ooFunctions.batteries_neonLights = function () {
_char.doAction({t:"vo", l:cl.is04});
});
gStatus.ooFunctions.neonLights_wires = (gStatus.ooFunctions.wires_neonLights = function () {
_inventory.unSelectItem();
_inventory.removeItem("neonLights");
_inventory.removeItem("wires");
_inventory.addItem("neonLightsWired");
_char.doAction({t:"vo", l:cl.is05});
});
gStatus.ooFunctions.neonLights_batteriesWired = (gStatus.ooFunctions.batteriesWired_neonLights = function () {
_inventory.unSelectItem();
_inventory.removeItem("neonLights");
_inventory.removeItem("batteriesWired");
_inventory.addItem("neonLightsOn");
_c.cutscenes.doPlay(14);
});
gStatus.ooFunctions.batteries_wires = (gStatus.ooFunctions.wires_batteries = function () {
_inventory.unSelectItem();
_inventory.removeItem("batteries");
_inventory.removeItem("wires");
_inventory.addItem("batteriesWired");
_char.doAction({t:"vo", l:cl.is05});
});
gStatus.ooFunctions.batteries_neonLightsWired = (gStatus.ooFunctions.neonLightsWired_batteries = function () {
_inventory.unSelectItem();
_inventory.removeItem("batteries");
_inventory.removeItem("neonLightsWired");
_inventory.addItem("neonLightsOn");
_c.cutscenes.doPlay(14);
});
}
_global._froom = _croom;
}
function initWalkButtons() {
initBt(_e.btw1);
initBt(_e.btw2);
initBt(_e.btw3);
initBt(_e.btw4);
if (_cscene < 4) {
_e.btw3._visible = false;
}
if (_cscene < 8) {
_e.btw4._visible = false;
} else {
_e.btw1._visible = false;
_e.btw2._visible = false;
_e.btw3._visible = false;
}
if (!gStatus.warbearsShop) {
_e.btw2._visible = false;
}
_e.btw1.onPress = function () {
_char.status.toPos = 1;
_m.walkTo(_char._xmouse);
};
_e.btw2.onPress = function () {
_char.status.toPos = 3;
_m.walkTo(_char._xmouse);
};
_e.btw3.onPress = function () {
_char.status.toPos = 5;
_m.walkTo(_char._xmouse);
};
_e.btw4.onPress = function () {
_char.status.toPos = 6;
_m.walkTo(_char._xmouse);
};
}
function initExitButtons() {
initExitBt(_e.bte1);
initExitBt(_e.bte2, "r");
_e.bte2._visible = false;
_e.bte1.onPress = function () {
if (_char.id == "kla") {
var _local2 = [{t:"co", c:false}, {t:"tu", d:dirLeft}, {t:"an", l:"touch"}, {t:"vo", l:cl.k41}, {t:"an", l:"touch_b"}, {t:"co", c:true}];
} else {
var _local1 = true;
if (gStatus.gotbtcMap and (!gStatus.btcMapPaid)) {
delete gStatus.gotbtcMap;
_inventory.removeItem("btcMap");
_local1 = false;
}
if (gStatus.gottaser and (!gStatus.taserPaid)) {
delete gStatus.gottaser;
_inventory.removeItem("taser");
_local1 = false;
}
if (gStatus.gothackingDevice and (!gStatus.hackingDevicePaid)) {
delete gStatus.gothackingDevice;
_inventory.removeItem("hackingDevice");
_local1 = false;
}
var _local2 = [{t:"co", c:false}, {t:"tu", d:dirLeft}, {t:"an", l:"touch"}];
if (!_local1) {
_local2.push({t:"fu", f:function () {
mbob.clear();
}}, {ta:mbob, wta:true, t:"vo", l:cl.b46}, {t:"vo", l:cl.s37});
}
_local2.push({t:"go", o:_e.door, l:"open"}, {t:"an", l:"touch_b"}, {t:"ma", m:3}, {x:30}, {t:"go", o:_r, l:"r1"});
}
_char.status.toPos = 1;
_m.walkTo(61, _char._y, _local2);
};
_e.bte2.onPress = function () {
var _local1 = [{t:"co", c:false}, {t:"fu", f:function () {
_c.cutscenes.doPlay(12);
}}];
_char.status.toPos = 5;
_m.walkTo(225, _char._y, _local1);
};
}
function walkTo(x, y, a, i) {
if (!canopencommand) {
return(undefined);
}
if (_r.cursorI and (!i)) {
_inventory.unSelectItem();
}
_m.arEye.target = _char;
_char.clear();
_c.comm.close();
if (_char.status.toPos != _char.status.pos) {
var _local2 = (_char.status.pos + "_") + _char.status.toPos;
switch (_local2) {
case "1_2" :
case "1_3" :
_char.doAction([{x:441, y:335}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
if (_local2 == "1_2") {
break;
}
case "2_3" :
_char.doAction([{x:408, y:309, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 3;
}}]);
break;
case "3_2" :
case "3_1" :
_char.doAction([{x:408, y:309}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
if (_local2 == "3_2") {
} else {
_char.doAction([{x:441, y:335, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 1;
}}]);
break;
_char.doAction([{x:408, y:309}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
_char.doAction([{x:441, y:335, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 1;
}}]);
_char.doAction([{x:190, y:335}, {t:"co", c:false}, {t:"ma", m:5}, {x:157}, {t:"ma", m:9}, {x:172}, {x:85, y:248}, {t:"ma", m:0}, {x:95, y:248}, {t:"fu", f:function () {
_char.status.pos = 5;
}}, {t:"co", c:true}]);
break;
_char.doAction([{x:95, y:248}, {t:"co", c:false}, {t:"ma", m:5}, {x:85, y:248}, {t:"ma", m:9}, {x:172, y:335}, {x:157}, {t:"ma", m:5}, {x:190, y:335}, {t:"ma", m:0}, {t:"fu", f:function () {
_char.status.pos = 1;
}}, {t:"co", c:true}]);
if (_local2 == "5_1") {
} else {
_char.doAction([{x:441, y:335}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
if (_local2 == "5_2") {
} else {
_char.doAction([{x:408, y:309, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 3;
}}]);
break;
return(undefined);
}
}
}
case "2_1" :
_char.doAction([{x:441, y:335, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 1;
}}]);
break;
case "3_5" :
_char.doAction([{x:408, y:309}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
case "2_5" :
_char.doAction([{x:441, y:335, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 1;
}}]);
case "1_5" :
_char.doAction([{x:190, y:335}, {t:"co", c:false}, {t:"ma", m:5}, {x:157}, {t:"ma", m:9}, {x:172}, {x:85, y:248}, {t:"ma", m:0}, {x:95, y:248}, {t:"fu", f:function () {
_char.status.pos = 5;
}}, {t:"co", c:true}]);
break;
case "5_1" :
case "5_2" :
case "5_3" :
_char.doAction([{x:95, y:248}, {t:"co", c:false}, {t:"ma", m:5}, {x:85, y:248}, {t:"ma", m:9}, {x:172, y:335}, {x:157}, {t:"ma", m:5}, {x:190, y:335}, {t:"ma", m:0}, {t:"fu", f:function () {
_char.status.pos = 1;
}}, {t:"co", c:true}]);
if (_local2 == "5_1") {
} else {
_char.doAction([{x:441, y:335}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
if (_local2 == "5_2") {
} else {
_char.doAction([{x:408, y:309, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 3;
}}]);
break;
return(undefined);
}
}
case "6_1" :
case "6_2" :
case "6_3" :
case "6_4" :
case "6_5" :
return(undefined);
}
}
switch (_char.status.toPos) {
case 1 :
_char.doAction({x:x});
break;
case 2 :
_char.doAction({x:x, y:((x - 217) * 1.4) + 217, s:0.7});
break;
case 3 :
_char.doAction({x:x});
break;
case 5 :
_char.doAction({x:x});
break;
case 6 :
if (x > 415) {
x = 415;
a = [{t:"vo", l:cl.s80}];
}
_char.doAction({x:x});
}
if (a) {
_char.doAction(a);
}
}
function doMove(n) {
}
stop();
_global._m = this;
_global._e = _m.env;
_global._croom = 2;
_i.gotoAndStop(2);
btRollOut();
canOpenCommand(false);
if (mirrorMode) {
_m._xscale = -100;
_m._x = 700;
} else {
_m._xscale = 100;
_m.x = 0;
}
init();
_global.cTimer = getTimer();
this.onEnterFrame = function () {
_global.cTimer = getTimer();
updateTimer();
};
Symbol 1642 MovieClip Frame 1
this.down = false;
stop();
Symbol 1642 MovieClip Frame 17
this.down = true;
stop();
Symbol 1642 MovieClip Frame 26
stop();
Symbol 1664 MovieClip Frame 1
function blink() {
clearInterval(this.interval);
play();
}
status = "stop";
clearInterval(this.interval);
this.interval = setInterval(this, "blink", Math.floor(Math.random() * 7000) + 500);
stop();
Symbol 1664 MovieClip Frame 8
gotoAndStop (1);
Symbol 1664 MovieClip Frame 10
status = "shut1";
clearInterval(this.interval);
stop();
Symbol 1664 MovieClip Frame 15
status = "shut2";
clearInterval(this.interval);
stop();
Symbol 1664 MovieClip Frame 20
status = "cry";
clearInterval(this.interval);
stop();
Symbol 1664 MovieClip Frame 27
clearInterval(this.interval);
stop();
Symbol 1664 MovieClip Frame 33
clearInterval(this.interval);
stop();
Symbol 1668 MovieClip Frame 1
status = "stop";
stop();
Symbol 1668 MovieClip Frame 6
status = "smile";
stop();
Symbol 1668 MovieClip Frame 11
status = "smile2";
stop();
Symbol 1668 MovieClip Frame 16
status = "smile2";
stop();
Symbol 1668 MovieClip Frame 21
status = "talk";
Symbol 1668 MovieClip Frame 43
gotoAndPlay ("talk");
Symbol 1712 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "talk";
_local1[_local2++] = talk;
_c.comm.initP(_local1);
}
function talk() {
_char.doAction([{t:"co", c:false}, {t:"vo", l:cl.s54}]);
var _local1 = [];
var _local5 = 0;
if (!gStatus.jebediahOnTree) {
if (!gStatus.steveComm02) {
gStatus.steveComm02 = true;
_char.doAction([{ta:mjebediah, wta:true, t:"vo", l:cl.j01}, {t:"vo", l:cl.s55}]);
}
_local1[_local5++] = {l:cl.dsj[0], f:function () {
_char.doAction([{t:"vo", l:cl.s56}, {ta:mjebediah, wta:true, t:"vo", l:cl.j02}, {t:"vo", l:cl.s57}, {t:"an", l:"touch"}, {t:"vo", l:cl.s58}, {ta:mjebediah, wta:true, t:"vo", l:cl.j03}, {t:"an", l:"touch_b"}, {t:"vo", l:cl.s59}, {t:"co", c:true}]);
}};
if (!gStatus.steveComm03) {
_local1[_local5++] = {l:cl.dsj[1], f:function () {
_char.doAction([{t:"vo", l:cl.s60}, {ta:mjebediah, wta:true, t:"vo", l:cl.j04}, {t:"vo", l:cl.s61}, {ta:mjebediah, wta:true, t:"vo", l:cl.j05}, {t:"vo", l:cl.s62}, {ta:mjebediah, wta:true, t:"vo", l:cl.j06}, {t:"vo", l:cl.s63}, {t:"co", c:true}]);
}};
} else {
_local1[_local5++] = {l:cl.dsj[2], f:function () {
_char.doAction([{t:"vo", l:cl.s64}, {ta:mjebediah, wta:true, t:"vo", l:cl.j07}, {t:"vo", l:cl.s65}, {ta:mjebediah, wta:true, t:"vo", l:cl.j08}, {t:"fu", f:function () {
mjebediah.doDrink();
}}, {t:"em", e:":D"}, {t:"co", c:true}]);
}};
}
_local1[_local5++] = {l:cl.dsj[3], f:function () {
mbob.doTurn();
_char.doAction([{t:"vo", l:cl.k20}, {t:"co", c:true}]);
}};
_char.doAction({t:"ch", c:_local1});
} else {
gStatus.jebediahSafe = true;
_char.doAction([{ta:mjebediah, wta:true, t:"vo", l:cl.j09}, {t:"tu", d:dirLeft}, {t:"vo", l:cl.s67}, {t:"tu", d:dirRight}, {t:"vo", l:cl.s68}, {t:"fu", f:function () {
_fader.goLabel(function () {
_inventory.addItem("credits400");
gStatus.credits = 400;
_r.gotoAndStop("r1");
}, true, cl.ft03, 2000);
}}]);
}
}
function use_taser() {
_char.doAction({t:"vo", l:cl.is06});
}
stop();
id = "jebediah";
pos = 1;
me = this;
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
var _local3 = _x - 35;
if (gStatus.jebediahOnTree) {
_local3 = _x - 70;
}
_local2.push({t:"tu", d:dirRight});
var _local4 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local3, _local4, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local3, _local4, _local2);
}
};
function resetDir() {
if (this.dir == dirRight) {
this.bag.gotoAndStop("right");
} else {
this.bag.gotoAndStop("left");
}
}
resetDir();
status = "";
stop();
Symbol 1712 MovieClip Frame 4
resetDir();
Symbol 1712 MovieClip Frame 14
gotoAndPlay ("walk");
Symbol 1712 MovieClip Frame 22
adone = true;
stop();
Symbol 1712 MovieClip Frame 31
adone = true;
gotoAndStop (1);
Symbol 1713 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
function doDrink() {
char.bt._visible = false;
doAction([{x:189}, {t:"fu", f:function () {
gStatus.jebediahDrinking = true;
_m.fountain.water.gotoAndPlay(2);
}}]);
}
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
wsp = 30;
stop();
mask._visible = false;
_global.mjebediah = this;
_global.jebediah = char;
id = "jebediah";
char._x = _m.initData.jebediahPos.x;
char._y = _m.initData.jebediahPos.y;
if (_m.initData.jebediahPos.r) {
char._rotation = _m.initData.jebediahPos.r;
}
char.setDir(_m.initData.jebediahPos.d);
status.pos = (status.toPos = _m.initData.jebediahPos.pos);
if (_m.initData.jebediahPos.m) {
mask.gotoAndStop(_m.initData.jebediahPos.m);
mask._visible = true;
char.setMask(mask);
}
if (_m.initData.jebediahPos.hidden) {
char._visible = false;
}
if (_m.initData.jebediahAct) {
doAction(_m.initData.jebediahAct);
delete _m.initData.jebediahAct;
}
Symbol 1720 MovieClip Frame 1
function update() {
if (s == 0) {
return(undefined);
}
var _local1 = 1;
while (_local1 <= 15) {
doBush(_local1);
_local1++;
}
}
function doBush(i) {
var _local2 = this["b" + i];
if (_local2.c == -1) {
return(undefined);
}
if (this[("b" + i) + "b"]) {
var _local3 = this[("b" + i) + "b"];
}
_local2.c = _local2.c + (0.03 * this.s);
_local2._xscale = (_local3._xscale = 100 + (this.w * Math.sin(_local2.c)));
_local2._yscale = (_local3._yscale = 100 + (this.w * Math.sin(_local2.c)));
_local2._rotation = (_local3._rotation = _local2.r + (this.w * Math.sin(_local2.c + 2)));
}
function initBush(i) {
var _local2 = this["b" + i];
_local2.c = Math.random() * 5;
_local2.r = _local2._rotation;
}
function doStop() {
delete this.onEnterFrame;
}
this.w = 9;
this.s = 1;
var t = 1;
while (t <= 15) {
initBush(t);
t++;
}
this.onEnterFrame = update;
update();
Symbol 1721 MovieClip Frame 1
status = 0;
stop();
Symbol 1722 MovieClip Frame 1
_parent.initWalkButtons();
_parent.initExitButtons();
Symbol 1723 MovieClip Frame 1
function init() {
this.initData = {};
if (_cscene == 5) {
initData.stevePos = {x:290, y:335, d:dirLeft, pos:1, m:6};
initData.jebediahPos = {x:-100, y:-100, hidden:true};
_e.onEnterFrame = function () {
delete this.onEnterFrame;
_c.cutscenes.doPlay(10);
canOpenCommand(false);
};
} else {
initData.stevePos = {x:580, y:335, d:dirLeft, pos:1};
initData.steveAct = [{x:500}, {t:"co", c:true}];
initData.jebediahPos = {x:432, y:192, r:30, d:dirLeft, pos:1};
if (!gStatus.jebediahOnTree) {
initData.jebediahPos.hidden = true;
}
canOpenCommand(true);
}
setActiveChar(msteve);
_global._froom = _croom;
}
function initWalkButtons() {
initBt(_e.btw1);
if (_cscene == 1) {
return(undefined);
}
_e.btw1.onPress = function () {
_m.walkTo(_char._xmouse);
};
}
function initExitButtons() {
initExitBt(_e.bte1, "r");
initExitBt(_e.bte2);
if (_cscene > 4) {
_e.bte2._visible = false;
}
_e.bte1.onPress = function () {
var _local1 = [{t:"co", c:false}, {t:"fu", f:function () {
_i.map.show();
}}];
_m.walkTo(500, _char._y, _local1);
};
_e.bte2.onPress = function () {
var _local1 = [{t:"co", c:false}, {t:"ma", m:6}, {x:290}, {t:"tu", d:dirLeft}, {t:"an", l:"touch"}, {t:"an", l:"touch_b"}, {t:"fu", f:function () {
_c.cutscenes.doPlay(6);
}}];
_m.walkTo(342, _char._y, _local1);
};
}
function walkTo(x, y, a, i) {
if (!canopencommand) {
return(undefined);
}
if (_r.cursorI and (!i)) {
_inventory.unSelectItem();
}
_m.arEye.target = _char;
_char.clear();
_c.comm.close();
if (_char.status.toPos != _char.status.pos) {
var _local1 = (_char.status.pos + "_") + _char.status.toPos;
switch (_local1) {
case "1_2" :
case "1_3" :
_char.doAction([{x:302, y:335}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
if (_local1 == "1_2") {
break;
}
case "2_3" :
_char.doAction([{x:217, y:217, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 3;
}}]);
break;
case "3_2" :
case "3_1" :
_char.doAction([{x:217, y:217}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
if (_local1 == "3_2") {
} else {
_char.doAction([{x:302, y:335, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 1;
}}]);
}
case "2_1" :
_char.doAction([{x:302, y:335, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 1;
}}]);
}
}
switch (_char.status.toPos) {
case 1 :
_char.doAction({x:x});
break;
case 2 :
_char.doAction({x:x, y:((x - 217) * 1.4) + 217, s:0.7});
break;
case 3 :
_char.doAction({x:x});
}
if (a) {
_char.doAction(a);
}
}
function doMove(n) {
}
stop();
_global._m = this;
_global._e = _m.env;
_global._croom = 3;
_i.gotoAndStop(2);
btRollOut();
if (mirrorMode) {
_m._xscale = -100;
_m._x = 700;
} else {
_m._xscale = 100;
_m.x = 0;
}
init();
_global.cTimer = getTimer();
this.onEnterFrame = function () {
_global.cTimer = getTimer();
updateTimer();
};
Symbol 1725 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
function doJump() {
char._x = 234;
char._y = 201;
char._rotation = 0;
char.setDir(dirRight);
_global._char = this;
_e.jkla._visible = true;
mkla._visible = false;
doAction([{t:"co", c:false}, {t:"ju", x:250, y:307, b:false}, {t:"ps", s:"leaves"}, {x:317, y:310, s:0.7}, {x:440, y:310, s:0.7}, {t:"fu", f:function () {
_e.jkla._visible = false;
_global._char = mkla;
mkla._visible = true;
kla._x = 440;
kla._y = 310;
mkla.status.pos = 4;
mkla.status.toPos = 4;
_e.bte1._visible = true;
_e.bte2._visible = true;
mkla.doAction([{t:"ju", x:464, y:335}, {t:"co", c:true}]);
}}]);
}
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
stop();
_visible = false;
char.setDir(dirRight);
id = "kla";
Symbol 1728 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "view";
_local1[_local2++] = view;
_c.comm.initP(_local1);
}
function view() {
gStatus.seenTree = true;
_char.doAction([{t:"vo", l:cl.k58}]);
}
stop();
id = "tree";
pos = 1;
me = this;
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
var _local4 = 245;
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"tu", d:dirRight}, {t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
Symbol 1729 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
function update() {
this._y = by + (Math.sin(cTimer / 700) * 2);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"ps", s:"cube in"}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
stop();
id = "cubeBlue";
me = this;
pos = 3;
sx = 1;
sy = 1;
gStatus.itemData[id] = {sx:sx, sy:sy};
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
var by = _y;
if (!gStatus["got" + id]) {
this.onEnterFrame = update;
update();
}
Symbol 1735 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
if (cl["objd_" + _char.char.id][id]) {
_local1[_local2++] = "view";
_local1[_local2++] = view;
}
_local1[_local2++] = "pickup";
_local1[_local2++] = pickUp;
_c.comm.initP(_local1);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
function view() {
_char.doAction([{t:"vo", l:cl["objd_" + _char.char.id][id]}]);
}
function doPickUp() {
var _local1 = _inventory.addItem(id);
if (_local1) {
_visible = false;
_char.char.pi.iconId = id;
_char.char.pi.icon.gotoAndStop(id);
gStatus["got" + id] = true;
} else {
_char.cantPickupItem();
}
_char.doAction([{t:"id", i:2}, {t:"an", l:("pickup" + pHeight) + "_b"}, {t:"co", c:true}]);
me.onPickUp();
if (_local1) {
me.swapDepths(70077);
removeMovieClip(me);
}
}
function update() {
this._y = by + (Math.sin((cTimer / 700) + 300) * 2);
}
function pickUp() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"pickup" + pHeight}, {t:"ps", s:"cube in"}, {t:"id", i:2}, {t:"fu", f:doPickUp}]);
}
stop();
id = "cubeGreen";
me = this;
pos = 1;
sx = 1;
sy = 1;
pHeight = "low";
gStatus.itemData[id] = {sx:sx, sy:sy};
if (gStatus["got" + id]) {
_visible = false;
}
if (!x) {
x = _x;
}
if (!y) {
y = _y;
}
if (!pHeight) {
pHeight = "";
} else {
pHeight = "_" + pHeight;
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (pDir == null) {
if (_char.char._x > x) {
pDir = dirRight;
}
}
if (pDir == dirRight) {
var _local4 = x + 20;
_local2.push({t:"tu", d:dirLeft});
} else {
var _local4 = x - 20;
_local2.push({t:"tu", d:dirRight});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
var by = _y;
if (!gStatus["got" + id]) {
this.onEnterFrame = update;
update();
}
Symbol 1736 MovieClip Frame 1
if (_cscene < 5) {
stop();
} else {
gotoAndStop ("done");
}
Symbol 1736 MovieClip Frame 22
stop();
Symbol 1737 MovieClip Frame 1
_parent.initWalkButtons();
_parent.initExitButtons();
Symbol 1740 MovieClip Frame 1
stop();
Symbol 1740 MovieClip Frame 2
function update() {
if (s == 0) {
return(undefined);
}
var _local2 = true;
for (var _local3 in this) {
if (typeof(this[_local3]) == "movieclip") {
if (doP(this[_local3])) {
_local2 = false;
}
}
}
if (_local2) {
delete this.onEnterFrame;
}
}
function doP(b) {
if ((Math.abs(b.sx) <= 0.4) and (Math.abs(b.sy) <= 0.4)) {
return(false);
}
b._x = b._x + b.sx;
b._y = b._y + b.sy;
if (b.sx > 0) {
b.sx = b.sx - 0.4;
} else {
b.sx = b.sx + 0.4;
}
if (b.sy > 0) {
b.sy = b.sy - 0.4;
} else {
b.sy = b.sy + 0.4;
}
return(true);
}
function initP(b) {
b.sx = (Math.random() * 30) - 15;
b.sy = (Math.random() * 30) - 15;
}
function doStop() {
delete this.onEnterFrame;
}
sound.playSFX("expl");
_parent.char._visible = false;
stop();
for (var n in this) {
if (typeof(this[n]) == "movieclip") {
initP(this[n]);
}
}
this.onEnterFrame = update;
update();
Symbol 1741 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
stop();
mask._visible = false;
_global.mxmaTree1 = this;
id = "xmaTree1";
char._x = _m.initData.xmaTree1Pos.x;
char._y = _m.initData.xmaTree1Pos.y;
char.setDir(_m.initData.xmaTree1Pos.d);
status.pos = (status.toPos = _m.initData.xmaTree1Pos.pos);
if (_m.initData.xmaTree1Pos.m) {
mask.gotoAndStop(_m.initData.xmaTree1Pos.m);
mask._visible = true;
char.setMask(mask);
}
if (_m.initData.xmaTree1Pos.hidden) {
char._visible = false;
}
if (_m.initData.xmaTree1Act) {
doAction(_m.initData.xmaTree1Act);
delete _m.initData.xmaTree1Act;
}
Symbol 1755 MovieClip Frame 14
gotoAndPlay (5);
Symbol 1755 MovieClip Frame 19
stop();
Symbol 1757 MovieClip Frame 1
stop();
Symbol 1757 MovieClip Frame 2
sound.playLoopSFX(4, 200);
Symbol 1757 MovieClip Frame 38
beam.gotoAndPlay("out");
sound.stopLoopSFX(4, 500);
Symbol 1757 MovieClip Frame 58
_e.tree.gotoAndPlay("fall");
stop();
Symbol 1758 MovieClip Frame 1
function init() {
this.initData = {};
if (_cscene == 4) {
initData.klaPos = {x:176, y:335, d:dirRight, pos:1};
initData.xmaTree1Pos = {x:570, y:337, d:dirLeft, pos:1};
initData.xmaTree1Act = [{x:510}];
gStatus.arGogglesOn = true;
gStatus.arGogglesActive = true;
_i.specialItem._visible = false;
_global.canopencommand = false;
_e.onEnterFrame = function () {
delete this.onEnterFrame;
_c.cutscenes.doPlay(7);
canOpenCommand(false);
};
} else {
initData.klaPos = {x:570, y:335, d:dirRight, pos:4};
initData.xmaTree1Pos = {x:-100, y:-100, hidden:true};
gStatus.arGogglesOn = true;
gStatus.arGogglesActive = true;
_i.specialItem._visible = false;
initData.klaAct = [{x:510}, {t:"co", c:true}];
}
setActiveChar(mkla);
_global._froom = _croom;
}
function initWalkButtons() {
initBt(_e.btw1);
initBt(_e.btw2);
initBt(_e.btw3);
initBt(_e.btw4);
_e.btw1.onPress = function () {
if (_char.status.pos == 4) {
return(undefined);
}
_char.status.toPos = 1;
_m.walkTo(_char._xmouse);
};
_e.btw2.onPress = function () {
if (_char.status.pos == 4) {
return(undefined);
}
_char.status.toPos = 2;
_m.walkTo(_char._xmouse);
};
_e.btw3.onPress = function () {
if (_char.status.pos == 4) {
return(undefined);
}
_char.status.toPos = 3;
_m.walkTo(_char._xmouse);
};
_e.btw4.onPress = function () {
if (_char.status.pos != 4) {
return(undefined);
}
_char.status.toPos = 4;
_m.walkTo(_char._xmouse);
};
}
function initExitButtons() {
initExitBt(_e.bte1, "r");
initExitBt(_e.bte2);
if (_cscene < 5) {
_e.bte1._visible = false;
_e.bte2._visible = false;
}
_e.bte1.onPress = function () {
var _local1 = [{t:"co", c:false}, {x:560}, {t:"go", o:_r, l:"r5"}];
_char.status.toPos = 4;
_m.walkTo(530, _char._y, _local1);
};
_e.bte2.onPress = function () {
var _local1 = [{t:"co", c:false}, {t:"fu", f:function () {
mkla.goLeft();
}}];
_char.status.toPos = 4;
_m.walkTo(460, 336, _local1);
};
}
function walkTo(x, y, a, i) {
if (!canopencommand) {
return(undefined);
}
if (_r.cursorI and (!i)) {
_inventory.unSelectItem();
}
_m.arEye.target = _char;
_char.clear();
_c.comm.close();
if (_char.status.toPos != _char.status.pos) {
var _local2 = (_char.status.pos + "_") + _char.status.toPos;
switch (_local2) {
case "1_2" :
case "1_3" :
_char.doAction([{x:118, y:335}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
if (_local2 == "1_2") {
break;
}
case "2_3" :
_char.doAction([{x:33, y:228, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 3;
}}]);
break;
case "3_2" :
case "3_1" :
_char.doAction([{x:33, y:228}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
if (_local2 == "3_2") {
} else {
_char.doAction([{x:118, y:335, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 1;
}}]);
break;
_char.doAction({x:440});
return(undefined);
}
case "2_1" :
_char.doAction([{x:118, y:335, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 1;
}}]);
break;
case "4_1" :
case "4_2" :
case "4_3" :
_char.doAction({x:440});
return(undefined);
}
}
switch (_char.status.toPos) {
case 1 :
_char.doAction({x:x});
break;
case 2 :
_char.doAction({x:x, y:((x - 33) * 1.258) + 228, s:0.7});
break;
case 3 :
_char.doAction({x:x, y:228 - ((x - 33) * 0.112), s:0.9});
break;
case 4 :
_char.doAction({x:x});
}
if (a) {
_char.doAction(a);
} else if ((gStatus.cutTree and (_char.status.toPos == 3)) and (x > 150)) {
_char.doAction({t:"fu", f:mkla.openJumpMenu});
} else if (((!gStatus.gotcubeRed) and (_char.status.toPos == 1)) and (x < 30)) {
_char.doAction({t:"fu", f:mkla.openViewMenu});
}
}
function doMove(n) {
}
stop();
_global._m = this;
_global._e = _m.env;
_global._croom = 4;
_i.gotoAndStop(2);
btRollOut();
if (mirrorMode) {
_m._xscale = -100;
_m._x = 700;
} else {
_m._xscale = 100;
_m.x = 0;
}
init();
_global.cTimer = getTimer();
this.onEnterFrame = function () {
_global.cTimer = getTimer();
updateTimer();
};
Symbol 1813 MovieClip Frame 1
heights = [19, 34, 46, 61];
Symbol 1815 MovieClip Frame 1
function init() {
status = 1;
if (bn > 1) {
initChoice();
return(undefined);
}
var _local6 = ct0.txt.split(newline);
var _local2 = _local6.length;
this._visible = true;
ct0._visible = (ct1._visible = (ct2._visible = (ct3._visible = false)));
bt._width = ct0._width + 20;
bt._height = ct0._height + 10;
var _local5 = Math.floor(ct0._width / 10);
var _local4 = (_local2 - 1) * 20;
if (_local4 < 0) {
_local4 = 0;
}
var _local3 = (_local5 + _local4) - 1;
if (_local3 <= 0) {
_local3 = 1;
}
bgfx.gotoAndStop(_local3);
this.c = _local5 * (7 + ((_local2 - 1) * 3));
ct0._x = 20;
ct0._y = Math.floor((-((_local2 * fch[ct0.fid]) + 2)) / 2);
}
function initChoice() {
this._visible = true;
ct0._visible = (ct1._visible = (ct2._visible = (ct3._visible = false)));
var _local4 = (bn * fch[ct0.fid]) + (4 * (bn - 1));
var _local2 = 0;
while (_local2 < bgfx.heights.length) {
if (bgfx.heights[_local2] > _local4) {
lines = _local2 + 1;
break;
}
_local2++;
}
var _local3 = 0;
_local2 = 0;
while (_local2 < bn) {
if (Math.floor(this["ct" + _local2]._width / 10) > _local3) {
_local3 = Math.floor(this["ct" + _local2]._width / 10);
}
_local2++;
}
var _local8 = (lines - 1) * 20;
if (_local8 < 0) {
_local8 = 0;
}
var _local7 = (_local3 + _local8) - 1;
if (_local7 <= 0) {
_local7 = 1;
}
bgfx.gotoAndStop(_local7);
ct0.setAlign("center");
ct1.setAlign("center");
ct2.setAlign("center");
ct3.setAlign("center");
var _local6 = 18 - (bgfx.heights[lines - 1] / 2);
var _local5 = (fch[ct0.fid] + 2) / 2;
_local2 = 0;
while (_local2 < bn) {
this["ct" + _local2]._y = (Math.floor((_local2 - ((bn - 1) / 2)) * (fch[ct0.fid] + 4)) + _local6) - _local5;
_local2++;
}
_local2 = 0;
while (_local2 < bn) {
this["bt" + _local2]._x = ct0.c._x - 15;
this["bt" + _local2]._y = this["ct" + _local2]._y + 9;
this["bt" + _local2]._visible = false;
if (bn > 0) {
this["ct" + _local2].c._x = ct0.c._x;
}
_local2++;
}
}
function open(t, f) {
showBts = true;
doOpen(t, f);
}
function openNB(t, f) {
showBts = false;
doOpen(t, f);
}
function doOpen(t, f) {
setPos();
if (this.fid == null) {
this.fid = cl.f01;
}
ct0.setFont(this.fid);
if (this.col == null) {
this.col = 0;
}
atxt = t;
atxt = atxt.split("\t");
onclose = f;
owner.doStopTalk();
clear();
doNext();
}
function setPos(x, y) {
if (this.owner) {
var _local2 = owner.getPos();
this._x = _local2._x;
this._y = _local2._y - 80;
}
if (x != undefined) {
this._x = x;
}
if (y != undefined) {
this._y = y;
}
}
function doNext() {
delete this.onEnterFrame;
if (atxt.length > 0) {
owner.doStopTalk();
clear();
if (checkEmote(atxt[0])) {
atxt.splice(0, 1);
doNext();
return(undefined);
}
if (showBts) {
bt._visible = true;
if (atxt.length > 1) {
initBtNext(bt);
} else {
initBtClose(bt);
}
bt.f = function () {
if (this._parent.status == 2) {
this._parent.doNext();
}
};
if (atxt.length > 1) {
bt.onPress = function () {
this._parent.nextInterval = setInterval(this, "f", 200);
this.f();
};
} else {
bt.onPress = function () {
btRollOut();
this.f();
};
}
bt.onRelease = function () {
clearInterval(this._parent.nextInterval);
};
bt.onReleaseOutside = function () {
btRollOut();
clearInterval(this._parent.nextInterval);
};
if ((_r.cursorB != null) and (atxt.length == 1)) {
_r.cursorB.doClose();
}
} else {
bt._visible = false;
bn = 0;
}
ct0.setFont(this.fid);
ct0.setText(atxt[0]);
ct0.col = this.col;
ct0.setColor(this.col);
ct1.setText("");
ct2.setText("");
ct3.setText("");
atxt.splice(0, 1);
align = "left";
gotoAndPlay ("open");
} else {
close();
}
}
function choice() {
delete this.onEnterFrame;
clear();
this._x = owner.char._x;
this._y = owner.char._y - 80;
showBts = true;
if (arguments.length == 1) {
var _local4 = arguments[0];
} else {
var _local4 = arguments;
}
owner.doStopTalk();
if (this.fid == null) {
this.fid = cl.f02;
}
ct0.setFont(this.fid);
ct0.setText(_local4[0]);
ct0.setColor(255);
ct1.setFont(this.fid);
ct1.setText(_local4[2]);
ct1.setColor(255);
ct2.setFont(this.fid);
ct2.setText(_local4[4]);
ct2.setColor(255);
ct3.setFont(this.fid);
ct3.setText(_local4[6]);
ct3.setColor(255);
this.c = -1;
bn = 0;
i = 0;
while (i < _local4.length) {
var _local3 = (_local4.length - i) - 1;
attachMovie("btchoice", "bt" + Math.floor(_local3 / 2), 50 + i);
initBt(this.bt0);
this["bt" + Math.floor(_local3 / 2)].f = function () {
btRollOut();
onclose = this.oc;
close();
};
this["bt" + Math.floor(_local3 / 2)].oc = _local4[_local3];
bn++;
i = i + 2;
}
align = "left";
gotoAndPlay ("open");
}
function showAll() {
ct0._visible = true;
var _local2 = 0;
while (_local2 < bn) {
this["bt" + _local2]._visible = true;
this["bt" + _local2]._xscale = 25;
this["bt" + _local2]._yscale = 25;
this["ct" + _local2]._visible = true;
_local2++;
}
}
function hideTxt() {
ct0._visible = (ct1._visible = (ct2._visible = (ct3._visible = false)));
}
function close() {
clearInterval(nextInterval);
btRollOut();
var _local2 = 0;
while (_local2 < bn) {
delete this["bt" + _local2].onRelease;
_local2++;
}
gotoAndPlay ("close");
}
function clear() {
var _local2 = 0;
while (_local2 < bn) {
removeMovieClip(this["bt" + _local2]);
_local2++;
}
bn = 0;
}
stop();
this._visible = (ct0._visible = (ct1._visible = (ct2._visible = (ct3._visible = false))));
var status = 0;
var align = "";
var bn = 0;
var atxt = [];
var showBts = true;
stop();
Symbol 1815 MovieClip Frame 2
init();
sound.playSFX("bubble");
Symbol 1815 MovieClip Frame 6
showAll();
Symbol 1815 MovieClip Frame 8
status = 2;
if (c != -1) {
if (ct0.txt == "nyahahah!") {
owner.doLaugh();
} else {
var i = 0;
while (i < ct0.txt.length) {
if ((ct0.txt.charAt(i) != ".") and (ct0.txt.charAt(i) != " ")) {
owner.doTalk();
break;
}
i++;
}
}
this.onEnterFrame = function () {
this.c--;
if (this.c <= 0) {
doNext();
}
};
}
stop();
Symbol 1815 MovieClip Frame 9
status = 0;
owner.doStopTalk();
Symbol 1815 MovieClip Frame 12
clear();
Symbol 1815 MovieClip Frame 13
if (onclose != null) {
onclose();
}
Symbol 1826 MovieClip Frame 1
function blink() {
clearInterval(this.interval);
play();
}
status = "stop";
clearInterval(this.interval);
this.interval = setInterval(this, "blink", Math.floor(Math.random() * 7000) + 500);
stop();
Symbol 1826 MovieClip Frame 8
gotoAndStop (1);
Symbol 1826 MovieClip Frame 10
status = "shut1";
clearInterval(this.interval);
stop();
Symbol 1826 MovieClip Frame 15
status = "shut2";
clearInterval(this.interval);
stop();
Symbol 1826 MovieClip Frame 20
status = "cry";
clearInterval(this.interval);
stop();
Symbol 1826 MovieClip Frame 27
clearInterval(this.interval);
stop();
Symbol 1826 MovieClip Frame 33
clearInterval(this.interval);
stop();
Symbol 1835 MovieClip Frame 1
status = "stop";
stop();
Symbol 1835 MovieClip Frame 6
status = "smile";
stop();
Symbol 1835 MovieClip Frame 11
status = "smile2";
stop();
Symbol 1835 MovieClip Frame 16
status = "smile2";
stop();
Symbol 1835 MovieClip Frame 26
status = "talk";
Symbol 1835 MovieClip Frame 32
gotoAndPlay ("talk");
Symbol 1835 MovieClip Frame 35
gotoAndPlay ("aaah");
Symbol 1879 MovieClip Frame 1
initBtC(bt);
id = "kla";
bt.onPress = function () {
if (!_r.cursorI) {
this._visible = false;
return(undefined);
}
var _local2 = Array();
if (gStatus.ooFunctions[_r.cursorI.id + "_kla"]) {
_local2.push({t:"fu", f:gStatus.ooFunctions[_r.cursorI.id + "_kla"]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectOnMe();
}});
}
mkla.doAction(_local2);
};
function resetDir() {
if (this.dir == dirRight) {
this.bag.gotoAndStop("right");
} else {
this.bag.gotoAndStop("left");
}
}
resetDir();
status = "";
stop();
Symbol 1879 MovieClip Frame 4
resetDir();
Symbol 1879 MovieClip Frame 14
gotoAndPlay ("walk");
Symbol 1879 MovieClip Frame 21
stop();
adone = true;
Symbol 1879 MovieClip Frame 29
gotoAndStop (1);
adone = true;
Symbol 1879 MovieClip Frame 35
stop();
adone = true;
Symbol 1879 MovieClip Frame 41
if (this.dir == 1) {
this.dir = 0;
this.bag.gotoAndStop("right");
} else {
this.dir = 1;
this.bag.gotoAndStop("left");
}
Symbol 1879 MovieClip Frame 43
gotoAndPlay ("stop");
adone = true;
Symbol 1882 MovieClip Frame 1
stop();
Symbol 1882 MovieClip Frame 2
sound.playLoopSFX(7, 2000);
sound.sfx.loop7.setPan(-100);
Symbol 1882 MovieClip Frame 48
bubble.open(cl.x18);
bubble.onclose = function () {
_e.sleigh.play();
};
stop();
Symbol 1882 MovieClip Frame 51
sound.panTo(sound.sfx.loop7, 100, 5000);
Symbol 1882 MovieClip Frame 166
sound.stopLoopSFX(7, 2000);
Symbol 1882 MovieClip Frame 210
stop();
_c.cutscenes.nextStep();
Symbol 1888 MovieClip Frame 1
function update() {
if (s == 0) {
return(undefined);
}
for (var _local2 in this) {
if (typeof(this[_local2]) == "movieclip") {
doBush(this[_local2]);
}
}
}
function doBush(b) {
if (b.c == -1) {
return(undefined);
}
b.c = b.c + (0.03 * this.s);
b._xscale = 100 + (this.w * Math.sin(b.c));
b._yscale = 100 + (this.w * Math.sin(b.c));
b._rotation = b.r + (this.w * Math.sin(b.c + 2));
}
function initBush(b) {
b.c = Math.random() * 5;
b.r = b._rotation;
}
function doStop() {
delete this.onEnterFrame;
}
stop();
this.w = 3;
this.s = 1;
for (var n in this) {
if (typeof(this[n]) == "movieclip") {
initBush(this[n]);
}
}
this.onEnterFrame = update;
update();
Symbol 1889 MovieClip Frame 1
if (((_cscene > 5) and (_cscene < 9)) or (_cscene == 11)) {
gotoAndStop ("ready");
} else {
stop();
}
Symbol 1889 MovieClip Frame 5
function doNext() {
if (_currentframe == 9) {
gotoAndStop (6);
} else {
nextFrame();
}
}
this.blinkInterval = setInterval(this, "doNext", 5000);
nextFrame();
Symbol 1889 MovieClip Frame 6
gStatus.treeColor = 0;
stop();
Symbol 1889 MovieClip Frame 7
gStatus.treeColor = 1;
Symbol 1889 MovieClip Frame 8
gStatus.treeColor = 2;
Symbol 1889 MovieClip Frame 9
gStatus.treeColor = 3;
Symbol 1889 MovieClip Frame 10
sound.playSFX("xmas off");
Symbol 1889 MovieClip Frame 20
stop();
Symbol 1899 MovieClip Frame 1
stop();
Symbol 1900 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "view";
_local1[_local2++] = view;
_c.comm.initP(_local1);
}
function view() {
_char.doAction([{t:"vo", l:cl.k71}]);
}
function use_cubeRed() {
_inventory.unSelectItem();
_inventory.removeItem("cubeRed");
canOpenCommand(false);
_char.clear();
_char.char.toPiIconId = "cubeRed";
_char.doAction({t:"co", c:false});
if ((me.w == 0) and (!gStatus.klaComm04)) {
gStatus.klaComm04 = true;
_char.doAction({t:"vo", l:cl.k75});
}
_char.doAction([{t:"tu", d:dirRight}, {t:"an", l:"pickup"}, {t:"fu", f:function () {
if (gStatus.treeColor == 1) {
gStatus.sockets[_e.gizmoSockets.w] = 1;
_e.gizmoSockets["s" + _e.gizmoSockets.w].gotoAndStop(2);
} else {
gStatus.sockets[_e.gizmoSockets.w] = 4;
_e.gizmoSockets["s" + _e.gizmoSockets.w].gotoAndStop(5);
}
_e.gizmoSockets.w++;
_char.char.pi._visible = false;
}}, {t:"ps", s:"cube out"}, {t:"id", i:2}, {t:"an", l:"pickup_b"}, {t:"fu", f:function () {
_e.gizmoSockets.checkAll();
}}]);
}
function use_cubeGreen() {
_inventory.unSelectItem();
_inventory.removeItem("cubeGreen");
canOpenCommand(false);
_char.clear();
_char.char.toPiIconId = "cubeGreen";
_char.doAction({t:"co", c:false});
if ((me.w == 0) and (!gStatus.klaComm04)) {
gStatus.klaComm04 = true;
_char.doAction({t:"vo", l:cl.k75});
}
_char.doAction([{t:"tu", d:dirRight}, {t:"an", l:"pickup"}, {t:"fu", f:function () {
if (gStatus.treeColor == 2) {
gStatus.sockets[_e.gizmoSockets.w] = 2;
_e.gizmoSockets["s" + _e.gizmoSockets.w].gotoAndStop(3);
} else {
gStatus.sockets[_e.gizmoSockets.w] = 5;
_e.gizmoSockets["s" + _e.gizmoSockets.w].gotoAndStop(6);
}
_e.gizmoSockets.w++;
_char.char.pi._visible = false;
}}, {t:"ps", s:"cube out"}, {t:"id", i:2}, {t:"an", l:"pickup_b"}, {t:"fu", f:function () {
_e.gizmoSockets.checkAll();
}}]);
}
function use_cubeBlue() {
_inventory.unSelectItem();
_inventory.removeItem("cubeBlue");
canOpenCommand(false);
_char.clear();
_char.char.toPiIconId = "cubeBlue";
_char.doAction({t:"co", c:false});
if ((me.w == 0) and (!gStatus.klaComm04)) {
gStatus.klaComm04 = true;
_char.doAction({t:"vo", l:cl.k75});
}
_char.doAction([{t:"tu", d:dirRight}, {t:"an", l:"pickup"}, {t:"fu", f:function () {
if (gStatus.treeColor == 3) {
gStatus.sockets[_e.gizmoSockets.w] = 3;
_e.gizmoSockets["s" + _e.gizmoSockets.w].gotoAndStop(4);
} else {
gStatus.sockets[_e.gizmoSockets.w] = 6;
_e.gizmoSockets["s" + _e.gizmoSockets.w].gotoAndStop(7);
}
_e.gizmoSockets.w++;
_char.char.pi._visible = false;
}}, {t:"ps", s:"cube out"}, {t:"id", i:2}, {t:"an", l:"pickup_b"}, {t:"fu", f:function () {
_e.gizmoSockets.checkAll();
}}]);
}
function checkAll() {
if ((_e.gizmoSockets.w == 2) and (!gStatus.gotcubeRed)) {
gStatus.klaComm03 = true;
_char.doAction([{t:"vo", l:cl.k72}, {t:"co", c:true}]);
return(undefined);
}
if (_e.gizmoSockets.w < 3) {
_char.doAction({t:"co", c:true});
return(undefined);
}
var _local6 = false;
var _local1 = 0;
while (_local1 < 3) {
if (gStatus.sockets[_local1] > 3) {
_local6 = true;
break;
}
_local1++;
}
if (_local6) {
_e.gizmoSockets.w = 0;
_char.doAction({t:"vo", l:cl.k76});
_local1 = 0;
while (_local1 < 3) {
_char.doAction([{x:(me._x + me["s" + _local1]._x) - 20}, {t:"tu", d:dirRight}, {t:"an", l:"pickup"}, {t:"ps", s:"cube in"}, {t:"fu", f:function () {
var _local1 = "";
switch (gStatus.sockets[_e.gizmoSockets.w]) {
case 1 :
case 4 :
_local1 = "cubeRed";
break;
case 2 :
case 5 :
_local1 = "cubeGreen";
break;
case 3 :
case 6 :
_local1 = "cubeBlue";
}
_char.char.pi.iconId = _local1;
_char.char.pi.icon.gotoAndStop(_local1);
_inventory.addItem(_local1);
_e.gizmoSockets["s" + w].gotoAndStop(1);
_e.gizmoSockets.w++;
}}, {t:"an", l:"pickup_b"}]);
_local1++;
}
_char.doAction([{t:"fu", f:function () {
gStatus.sockets = [0, 0, 0];
_e.gizmoSockets.w = 0;
}}, {t:"co", c:true}]);
} else {
_e.gizmoSockets.bt._visible = false;
_c.cutscenes.doPlay(13);
}
}
stop();
id = "sockets";
pos = 1;
me = this;
w = 0;
if ((!gStatus.sockets) or (_cscene == 11)) {
gStatus.sockets = [0, 0, 0];
} else {
if (gStatus.sockets[0] != 0) {
s0.gotoAndStop(gStatus.sockets[0] + 1);
w++;
}
if (gStatus.sockets[1] != 0) {
s1.gotoAndStop(gStatus.sockets[1] + 1);
w++;
}
if (gStatus.sockets[2] != 0) {
s2.gotoAndStop(gStatus.sockets[2] + 1);
w++;
}
}
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
var _local4 = (me._x + me["s" + me.w]._x) - 20;
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"tu", d:dirRight}, {t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
Symbol 1901 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "view";
_local1[_local2++] = view;
_c.comm.initP(_local1);
}
function view() {
_char.doAction([{t:"vo", l:cl.objd_kla.xtree}]);
}
stop();
id = "xtree";
pos = 1;
me = this;
initBtS(bt);
bt.onPress = function () {
var _local1 = Array();
if (_char.char._x > _x) {
_local1.push({t:"tu", d:dirLeft});
} else {
_local1.push({t:"tu", d:dirRight});
}
if (_r.cursorI) {
_local1.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.doAction(_local1);
};
Symbol 1902 MovieClip Frame 1
_parent.initWalkButtons();
_parent.initExitButtons();
stop();
Symbol 1903 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
stop();
mask._visible = false;
_global.mxmaTree2 = this;
id = "xmaTree2";
char._x = _m.initData.xmaTree2Pos.x;
char._y = _m.initData.xmaTree2Pos.y;
char.setDir(_m.initData.xmaTree2Pos.d);
status.pos = (status.toPos = _m.initData.xmaTree2Pos.pos);
if (_m.initData.xmaTree2Pos.m) {
mask.gotoAndStop(_m.initData.xmaTree2Pos.m);
mask._visible = true;
char.setMask(mask);
}
if (_m.initData.xmaTree2Pos.hidden) {
char._visible = false;
}
if (_m.initData.xmaTree2Act) {
doAction(_m.initData.xmaTree2Act);
delete _m.initData.xmaTree2Act;
}
Symbol 1908 MovieClip Frame 1
stop();
Symbol 1908 MovieClip Frame 2
function update() {
if (s == 0) {
return(undefined);
}
var _local2 = true;
for (var _local3 in this) {
if (typeof(this[_local3]) == "movieclip") {
if (doP(this[_local3])) {
_local2 = false;
}
}
}
if (_local2) {
delete this.onEnterFrame;
}
}
function doP(b) {
if ((Math.abs(b.sx) <= 0.4) and (Math.abs(b.sy) <= 0.4)) {
return(false);
}
b._x = b._x + b.sx;
b._y = b._y + b.sy;
if (b.sx > 0) {
b.sx = b.sx - 0.4;
} else {
b.sx = b.sx + 0.4;
}
if (b.sy > 0) {
b.sy = b.sy - 0.4;
} else {
b.sy = b.sy + 0.4;
}
return(true);
}
function initP(b) {
b.sx = (Math.random() * 30) - 15;
b.sy = (Math.random() * 30) - 15;
}
function doStop() {
delete this.onEnterFrame;
}
sound.playSFX("expl");
_parent.char._visible = false;
stop();
for (var n in this) {
if (typeof(this[n]) == "movieclip") {
initP(this[n]);
}
}
this.onEnterFrame = update;
update();
Symbol 1909 MovieClip Frame 1
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y});
}
return({_x:this.char._x, _y:this.char._y});
}
function doAction(i) {
if ((i.length == 0) or (i.length == null)) {
i = [i];
}
this.a = this.a.concat(i);
status.acting = true;
this.onEnterFrame = this.doUpdate;
}
function clear() {
this.a = [];
voice.close();
char.gotoAndStop(1);
}
function doUpdate() {
if (a.length == 0) {
status.acting = false;
delete this.onEnterFrame;
return(undefined);
}
status.acting = true;
if ((a[0].ta != null) and (a[0].ta != this)) {
if (!a[0].ata) {
a[0].ta.doAction([a[0]]);
a[0].ata = true;
if (!a[0].wta) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (!a[0].ta.status.acting) {
a.splice(0, 1);
doUpdate();
}
return(undefined);
}
if (a[0].fx == null) {
if (a[0].d == null) {
if (a[0].x < char._x) {
if (a[0].t != "wa") {
a[0].d = dirLeft;
} else {
a[0].d = dirRight;
}
} else if (a[0].x > char._x) {
if (a[0].t != "wb") {
a[0].d = dirRight;
} else {
a[0].d = dirLeft;
}
} else {
a[0].d = char.dir;
}
if (char.dir != a[0].d) {
a.splice(0, 0, {t:"tu", d:a[0].d});
}
}
a[0].fx = char._x;
a[0].fy = char._y;
a[0].fr = char._rotation;
a[0].ft = cTimer;
a[0].ct = a[0].ft;
if (a[0].x == null) {
a[0].x = a[0].fx;
}
if (a[0].y == null) {
a[0].y = a[0].fy;
}
if (a[0].r == null) {
a[0].r = a[0].fr;
}
a[0].dx = a[0].x - a[0].fx;
a[0].dy = a[0].y - a[0].fy;
a[0].dr = a[0].r - a[0].fr;
if (a[0].s == null) {
a[0].s = 1;
}
if (a[0].t == null) {
a[0].t = "wa";
}
a[0].cf = 0;
switch (a[0].t) {
case "wa" :
case "wb" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("walk");
break;
case "sw" :
a[0].l = (Math.abs(a[0].dx) / (wsp * a[0].s)) * 1000;
char.gotoAndPlay("swim");
break;
case "tu" :
if (a[0].d == "l") {
a[0].d = 0;
} else if (a[0].d == "r") {
a[0].d = 1;
}
if (char.dir == a[0].d) {
a.splice(0, 1);
doUpdate();
return(undefined);
}
char.gotoAndPlay("turn");
break;
case "ju" :
if (a[0].snd) {
a[0].sdone = false;
}
char.gotoAndPlay("jstart");
break;
case "bo" :
a[0].c = 0;
if (a[0].snd) {
a[0].ls = 0;
}
break;
case "vo" :
if (this.voice != null) {
removeBubble(this);
}
if (a[0].m) {
status.mute = true;
}
requestBubble(this);
return(undefined);
case "ch" :
requestChoiceBubble(this, a[0].bx, a[0].by);
return(undefined);
case "an" :
char.gotoAndPlay(a[0].l);
char.adone = false;
return(undefined);
case "de" :
this.swapDepths(a[0].d);
a.splice(0, 1);
doUpdate();
return(undefined);
case "vi" :
char._visible = a[0].v;
a.splice(0, 1);
doUpdate();
return(undefined);
case "fu" :
a[0].f();
a.splice(0, 1);
doUpdate();
return(undefined);
case "go" :
if (a[0].o) {
a[0].o.gotoAndPlay(a[0].l);
} else {
gotoAndPlay(a[0].l);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "pl" :
if (a[0].o) {
a[0].o.play();
} else {
play();
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "ma" :
if (a[0].m != 0) {
mask.gotoAndStop(a[0].m);
mask._visible = true;
char.setMask(mask);
} else {
mask._visible = false;
char.setMask(null);
}
a.splice(0, 1);
doUpdate();
return(undefined);
case "co" :
canOpenCommand(a[0].c);
a.splice(0, 1);
doUpdate();
return(undefined);
case "ps" :
sound.playSFX(a[0].s);
a.splice(0, 1);
doUpdate();
return(undefined);
}
}
a[0].cf++;
switch (a[0].t) {
case "wa" :
case "wb" :
case "sw" :
var _local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 >= 1) {
char._x = a[0].x;
char._y = a[0].y;
char.gotoAndStop(1);
a.splice(0, 1);
} else {
char._x = a[0].fx + (a[0].dx * _local4);
if (a[0].dy) {
if (a[0].t == "wa") {
char._y = a[0].fy + (a[0].dy * _local4);
} else {
char._y = a[0].fy + (Math.sin(_m.objects.mboat.dy * 5) * 5);
}
}
char._rotation = a[0].fr + (a[0].dr * _local4);
}
if (voice._visible) {
voice._x = Math.floor(char._x);
}
break;
case "tu" :
if (a[0].cf == 3) {
char.setDir(a[0].d);
a.splice(0, 1);
}
break;
case "ju" :
if (a[0].cf == 1) {
a[0].dist = Math.sqrt((a[0].dx * a[0].dx) + (a[0].dy * a[0].dy));
if (a[0].l == null) {
a[0].l = 500 + ((a[0].dist / 200) * 500);
}
if (a[0].ka == null) {
if (a[0].y > a[0].fy) {
a[0].ka = 0.3;
} else {
a[0].ka = 0;
}
}
if (a[0].kb == null) {
if (a[0].y < a[0].fy) {
a[0].kb = 0.7;
} else {
a[0].kb = 1;
}
}
a[0].pka = Math.PI * a[0].ka;
a[0].pkb = Math.PI * a[0].kb;
if (a[0].pka > 0) {
a[0].sd = Math.sin(a[0].pka);
a[0].sk = Math.sin(a[0].pkb) - a[0].sd;
} else {
a[0].sd = 0;
a[0].sk = Math.sin(a[0].pkb);
}
if (a[0].y != a[0].fy) {
a[0].yc = a[0].dy / a[0].sk;
} else {
a[0].yc = (-a[0].dist) / 2;
}
if ((a[0].b == null) or (a[0].b == true)) {
a.splice(1, 0, {t:"bo", n:1, s:10, l:500, e:3, snd:a[0].snd});
}
} else if (a[0].cf == 7) {
a[0].ft = cTimer;
char._yscale = 90;
} else if (a[0].cf == 8) {
char._yscale = 100;
_local4 = (cTimer - a[0].ft) / a[0].l;
if (a[0].snd) {
if (a[0].ks == null) {
a[0].ks = 1;
}
if (!a[0].sdone) {
if (_local4 >= a[0].ks) {
sound.playSFX(a[0].snd);
a[0].sdone = true;
}
}
}
if (_local4 < 1) {
a[0].cf--;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + ((Math.sin(a[0].pka + (_local4 * (a[0].pkb - a[0].pka))) - a[0].sd) * a[0].yc);
if (a[0].fr != a[0].r) {
char._rotation = a[0].fr + (a[0].dr * _local4);
}
} else {
char.play();
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
a.splice(0, 1);
break;
}
}
break;
case "bo" :
if (a[0].s == null) {
a[0].s = a[0].n * 10;
}
if (a[0].e == null) {
a[0].e = 0;
}
_local4 = (cTimer - a[0].ft) / a[0].l;
if (_local4 < 1) {
var _local6 = Math.floor(_local4 * a[0].n);
if (a[0].snd) {
if (_local6 > a[0].ls) {
sound.playSFX(a[0].snd);
a[0].ls++;
}
}
var _local3 = Math.sin(((_local4 * 2) * Math.PI) * a[0].n);
var _local5 = (a[0].n - _local6) * a[0].s;
char._x = a[0].fx + (a[0].dx * _local4);
char._y = a[0].fy + (a[0].dy * _local4);
if (_local3 > 0) {
char._xscale = 100 + (_local5 * _local3);
char._yscale = 100 - (_local5 * _local3);
} else {
char._xscale = 100 - (_local5 * _local3);
char._yscale = 100 + (_local5 * _local3);
char._y = char._y + ((a[0].e * _local3) * ((a[0].n - _local6) / a[0].n));
}
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
} else {
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
char._x = a[0].x;
char._y = a[0].y;
char._rotation = a[0].r;
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
a.splice(0, 1);
break;
}
break;
case "vo" :
if (a[0].cf == 1) {
voice.open(a[0].l);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "ch" :
if (a[0].cf == 1) {
voice.choice(a[0].c);
}
if ((!voice) or (a[0].cf and a[0].g)) {
a.splice(0, 1);
delete status.mute;
}
break;
case "an" :
if (char.adone or a[0].g) {
a.splice(0, 1);
}
break;
case "id" :
if (a[0].l) {
if ((cTimer - a[0].ft) >= a[0].l) {
a.splice(0, 1);
}
} else if (a[0].cf == a[0].i) {
a.splice(0, 1);
}
break;
case "tw" :
switch (a[0].a) {
case "a" :
switch (a[0].cf) {
case 1 :
char._xscale = 95;
char._yscale = 105;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 96.7;
char._yscale = 103.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = 98.5;
char._yscale = 101.7;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 4 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
}
break;
case "c" :
switch (a[0].cf) {
case 1 :
char._xscale = 105;
char._yscale = 95;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 2 :
char._xscale = 102.5;
char._yscale = 97.5;
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
case 3 :
char._xscale = (char._yscale = 100);
a.splice(0, 1);
if (char.dir != dirRight) {
break;
}
char._xscale = -100;
}
break;
case "b" :
switch (a[0].cf) {
case 15 :
char._xscale = (char._yscale = 100);
if (char.dir == dirRight) {
char._xscale = -100;
}
a.splice(0, 1);
break;
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
char._xscale = 100 - (5 * (a[0].cf / 7));
char._yscale = 100 + (5 * (a[0].cf / 7));
if (char.dir == dirRight) {
char._xscale = -char._xscale;
}
break;
default :
char._xscale = 95 + (5 * ((a[0].cf - 7) / 7));
char._yscale = 105 - (5 * ((a[0].cf - 7) / 7));
if (char.dir != dirRight) {
break;
}
char._xscale = -char._xscale;
}
break;
case "d" :
switch (a[0].cf) {
case 1 :
char.gotoAndPlay("die");
var _local2 = {x:-0.7, y:-0.3, r:2.3, xs:100};
case 2 :
_local2 = {x:-3.7, y:-2, r:17, xs:100};
break;
case 3 :
_local2 = {x:-6.7, y:-3.6, r:32, xs:100};
break;
case 4 :
_local2 = {x:-9.8, y:-5.4, r:47, xs:100};
if (a[0].snd) {
sound.playSFX(a[0].snd);
}
break;
case 5 :
_local2 = {x:-12.8, y:-7, r:62, xs:100};
break;
case 6 :
_local2 = {x:-17.6, y:-9.8, r:88, xs:85};
break;
case 7 :
_local2 = {x:-16.3, y:-12.4, r:88, xs:93};
break;
case 8 :
_local2 = {x:-15.1, y:-15.1, r:88, xs:100};
break;
case 9 :
_local2 = {x:-13.8, y:-12.8, r:88, xs:93};
break;
case 10 :
_local2 = {x:-12.6, y:-10.4, r:88, xs:88};
break;
case 11 :
_local2 = {x:-12.7, y:-10.7, r:85, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].x != a[0].fx) {
char._x = char._x + (((a[0].x - a[0].fx) / 11) * a[0].cf);
}
if (a[0].y != a[0].fy) {
char._y = char._y + (((a[0].y - a[0].fy) / 11) * a[0].cf);
}
if (a[0].cf == 11) {
a.splice(0, 1);
}
break;
case "p" :
switch (a[0].cf) {
case 1 :
_local2 = {x:0.7, y:-1.2, r:10, xs:90};
break;
case 2 :
_local2 = {x:0.6, y:-1.1, r:8.8, xs:91.1};
break;
case 3 :
_local2 = {x:0.4, y:-0.7, r:5.5, xs:94};
break;
case 4 :
_local2 = {x:0, y:0, r:0, xs:100};
}
char._y = a[0].fy + _local2.y;
if (char.dir == dirLeft) {
char._x = a[0].fx + _local2.x;
char._xscale = _local2.xs;
char._rotation = a[0].fr + _local2.r;
} else {
char._x = a[0].fx - _local2.x;
char._xscale = -_local2.xs;
char._rotation = a[0].fr - _local2.r;
}
if (a[0].cf != 4) {
break;
}
a.splice(0, 1);
}
break;
case "em" :
switch (a[0].e) {
case ":|" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case ":)" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile");
a.splice(0, 1);
break;
case ":(" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("sad");
a.splice(0, 1);
break;
case ":O" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case "^_^" :
char.eyes.gotoAndStop("shut2");
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ":D" :
char.eyes.gotoAndStop(1);
char.mouth.gotoAndStop("smile2");
a.splice(0, 1);
break;
case ";_;" :
char.eyes.gotoAndStop("cry");
char.mouth.gotoAndStop(1);
a.splice(0, 1);
break;
case "|:S" :
char.eyes.gotoAndStop("mmh");
char.mouth.gotoAndPlay(1);
a.splice(0, 1);
break;
case ">:|" :
char.eyes.gotoAndStop("angry");
a.splice(0, 1);
break;
case ">_<" :
char.eyes.gotoAndStop("aaah");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ">:S" :
char.eyes.gotoAndStop("angry");
char.mouth.gotoAndPlay("grrr");
a.splice(0, 1);
break;
case "\u00B0_\u00B0" :
char.eyes.gotoAndStop("uh");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
break;
case ";o;" :
char.eyes.gotoAndStop("uh cry");
char.mouth.gotoAndPlay("aaah");
a.splice(0, 1);
}
}
}
function doTalk() {
if (status.mute) {
return(undefined);
}
char.mouth.gotoAndPlay("talk");
}
function doStopTalk() {
char.mouth.gotoAndStop("stop");
}
function doChat(a, mins, maxs, fl) {
if (a == null) {
delete chatArray;
delete chatFirst;
delete chatMinS;
delete chatMaxS;
clearInterval(chatInterval);
delete chatInterval;
return(undefined);
}
var _local5 = 0;
while (_local5 < (a.length * 5)) {
var _local4 = Math.floor(Math.random() * a.length);
var _local3 = Math.floor(Math.random() * a.length);
var _local6 = a[_local4];
a[_local4] = a[_local3];
a[_local3] = _local6;
_local5++;
}
this.chatArray = a;
this.chatFirst = fl;
this.chatMinS = mins;
this.chatMaxS = maxs;
this.chatInterval = 0;
this.chatCursor = 0;
doNextChat(true);
}
function doNextChat(skip) {
clearInterval(chatInterval);
chatInterval = setInterval(this, "doNextChat", Math.floor(Math.random() * ((chatMaxS - chatMinS) + 1)) + chatMinS);
if (((!char._visible) or skip) or (!canopencommand)) {
return(undefined);
}
if (chatFirst != null) {
voice.openNB(chatFirst);
delete chatFirst;
} else {
voice.openNB(chatArray[chatCursor++]);
if (chatCursor >= chatArray.length) {
chatCursor = 0;
}
}
}
function stopChat() {
clearInterval(chatInterval);
}
function getPos() {
if (char.dir == dirRight) {
return({_x:this.char._x, _y:this.char._y - 20});
}
return({_x:this.char._x, _y:this.char._y - 20});
}
if (char.dir == null) {
char.dir = dirLeft;
}
char.setDir = function (d) {
this.dir = d;
if (d == dirLeft) {
this._xscale = 100;
} else {
this._xscale = -100;
}
char.resetDir();
};
status = {};
status.acting = false;
status.mute = false;
a = [];
wsp = 70;
stop();
mask._visible = false;
_global.mxmaSpirit = this;
id = "xmaSpirit";
char._x = _m.initData.xmaSpiritPos.x;
char._y = _m.initData.xmaSpiritPos.y;
char.setDir(_m.initData.xmaSpiritPos.d);
status.pos = (status.toPos = _m.initData.xmaSpiritPos.pos);
if (_m.initData.xmaSpiritPos.m) {
mask.gotoAndStop(_m.initData.xmaSpiritPos.m);
mask._visible = true;
char.setMask(mask);
}
if (_m.initData.xmaSpiritPos.hidden) {
char._visible = false;
}
if (_m.initData.xmaSpiritAct) {
doAction(_m.initData.xmaSpiritAct);
delete _m.initData.xmaSpiritAct;
}
Symbol 1912 MovieClip Frame 1
if (_cscene == 6) {
gotoAndStop ("done");
} else {
stop();
}
Symbol 1912 MovieClip Frame 2
sound.playLoopSFX(6, 100);
sound.sfx.loop6.setPan(100);
sound.panTo(sound.sfx.loop6, -100, 2000);
var d = 100;
this.onEnterFrame = function () {
var _local3 = random(50) + 50;
var _local4 = random(360);
d++;
if (gizmo) {
this.attachMovie("snowFlake", "s" + d, d, {_x:gizmo._x, _y:gizmo._y, _yscale:_local3, _xscale:_local3, _rotation:_local4});
}
var _local2 = d - 50;
while (_local2 >= 100) {
this["s" + _local2]._xscale = (this["s" + _local2]._yscale = this["s" + _local2]._yscale - 10);
if (this["s" + _local2]._xscale <= 10) {
removeMovieClip(this["s" + _local2]);
}
_local2--;
}
};
Symbol 1912 MovieClip Frame 68
sound.playSFX("icecrack");
Symbol 1912 MovieClip Frame 92
sound.stopLoopSFX(6, 2000);
Symbol 1912 MovieClip Frame 253
delete this.onEnterFrame;
stop();
Symbol 1912 MovieClip Frame 274
stop();
Symbol 1925 MovieClip Frame 14
gotoAndPlay (5);
Symbol 1925 MovieClip Frame 19
stop();
Symbol 1926 MovieClip Frame 1
if (_cscene == 6) {
gotoAndPlay ("1");
} else {
stop();
}
Symbol 1926 MovieClip Frame 2
sound.playLoopSFX(4, 200);
Symbol 1926 MovieClip Frame 81
beam.gotoAndPlay("out");
sound.stopLoopSFX(4, 500);
Symbol 1926 MovieClip Frame 84
_m.beam.gotoAndPlay("fade");
Symbol 1926 MovieClip Frame 86
_c.cutscenes.nextStep();
stop();
Symbol 1926 MovieClip Frame 87
sound.playLoopSFX(4, 200);
Symbol 1926 MovieClip Frame 114
beam.gotoAndPlay("out");
sound.stopLoopSFX(4, 500);
Symbol 1926 MovieClip Frame 120
_e.tree.gotoAndPlay("fall");
stop();
Symbol 1932 MovieClip Frame 1
stop();
Symbol 1932 MovieClip Frame 2
sound.playSFX("lights");
Symbol 1932 MovieClip Frame 23
stop();
stop();
Symbol 1933 MovieClip Frame 1
stop();
Symbol 1933 MovieClip Frame 2
sound.playSFX("lights");
Symbol 1933 MovieClip Frame 27
stop();
Symbol 1940 MovieClip Frame 1
stop();
Symbol 1941 MovieClip Frame 1
function setWidth(w) {
this.w = w;
ctxt._x = Math.floor(w / 2);
bg._width = w;
sh._width = w;
bt._width = w;
}
function setText(t, fid) {
this.txt = t;
ctxt.col = 0;
if (fid != null) {
ctxt.fid = fid;
}
ctxt.txt = t;
ctxt.init();
isset = true;
setAlignCenter();
}
function init(w, txt, fid) {
if (w != null) {
this.w = w;
}
if (txt != null) {
this.txt = txt;
}
if (fid != null) {
this.fid = fid;
}
if (this.w != null) {
setWidth(this.w);
}
if (this.txt != null) {
setText(this.txt, this.fid);
setAlignCenter();
}
}
isset = false;
bt.tabEnabled = false;
bt.useHandCursor = false;
ctxt.align = "center";
init();
bt.onPress = function () {
bg.gotoAndStop(3);
bg._x = bg._x + 1;
bg._y = bg._y + 1;
ctxt._x = ctxt._x + 1;
ctxt._y = ctxt._y + 1;
};
bt.onRollOver = function () {
bg.gotoAndStop(2);
onover();
};
bt.onRollOut = function () {
bg.gotoAndStop(1);
onrollout();
};
bt.onReleaseOutside = function () {
bg.gotoAndStop(1);
bg._x = bg._x - 1;
bg._y = bg._y - 1;
ctxt._x = ctxt._x - 1;
ctxt._y = ctxt._y - 1;
};
bt.onRelease = function () {
bg.gotoAndStop(1);
bg._x = bg._x - 1;
bg._y = bg._y - 1;
ctxt._x = ctxt._x - 1;
ctxt._y = ctxt._y - 1;
onclick();
};
Symbol 1942 MovieClip Frame 1
function show(l, b, f) {
sound.playSFX("alert");
this.l = l;
this.b = b;
this.f = f;
gotoAndStop (3);
}
stop();
Symbol 1942 MovieClip Frame 3
lab.txt = l;
lab.fid = cl.f02;
lab.init();
bt.txt = b;
bt.w = 120;
bt.onclick = function () {
_m.alert.f();
_m.alert.gotoAndStop(1);
};
bt.fid = cl.f02;
bt.init();
stop();
Symbol 1943 MovieClip Frame 1
function init() {
this.initData = {};
if (_cscene == 5) {
initData.klaPos = {x:20, y:355, d:dirRight, pos:1};
initData.xmaTree1Pos = {x:374, y:311, d:dirLeft, pos:1};
initData.xmaTree2Pos = {x:418, y:311, d:dirLeft, pos:1};
initData.xmaSpiritPos = {x:550, y:374, d:dirLeft, pos:1, hidden:true, m:8};
initData.jebediahPos = {x:-100, y:-100, hidden:true};
_global.canopencommand = false;
_e.onEnterFrame = function () {
delete this.onEnterFrame;
_c.cutscenes.doPlay(9);
_global.canopencommand = false;
canOpenCommand(false);
};
_i.specialItem._visible = false;
} else if (_cscene == 6) {
initData.klaPos = {x:150, y:355, d:dirRight, pos:1};
initData.xmaTree1Pos = {x:550, y:394, d:dirLeft, pos:1, hidden:true};
initData.xmaTree2Pos = {x:550, y:394, d:dirLeft, pos:1, hidden:true};
initData.xmaSpiritPos = {x:550, y:394, d:dirLeft, pos:1, hidden:true};
initData.jebediahPos = {x:-100, y:-100, hidden:true};
} else if (_cscene == 9) {
initData.klaPos = {x:150, y:355, d:dirRight, pos:1};
initData.klaAct = [{t:"fu", f:_c.cutscenes.nextStep}];
initData.xmaTree1Pos = {x:247, y:355, d:dirLeft, pos:1};
initData.xmaSpiritPos = {x:276, y:355, d:dirLeft, pos:1};
initData.xmaTree2Pos = {x:305, y:355, d:dirLeft, pos:1};
initData.jebediahPos = {x:-100, y:-100, hidden:true};
} else if (_cscene == 11) {
initData.klaPos = {x:-100, y:-100, hidden:true};
initData.xmaTree1Pos = {x:-100, y:-100, hidden:true};
initData.xmaTree2Pos = {x:-100, y:-100, hidden:true};
initData.xmaSpiritPos = {x:-100, y:-100, hidden:true};
initData.jebediahPos = {x:-20, y:355, hidden:true};
initData.jebediahAct = [{t:"fu", f:_c.cutscenes.nextStep}];
} else {
initData.klaPos = {x:20, y:355, d:dirRight, pos:1};
initData.klaAct = [{x:50}, {t:"co", c:true}];
initData.xmaTree1Pos = {x:550, y:394, d:dirLeft, pos:1, hidden:true};
initData.xmaTree2Pos = {x:550, y:394, d:dirLeft, pos:1, hidden:true};
initData.xmaSpiritPos = {x:550, y:394, d:dirLeft, pos:1, hidden:true};
initData.jebediahPos = {x:-100, y:-100, hidden:true};
}
setActiveChar(mkla);
_global._froom = _croom;
}
function initWalkButtons() {
initBt(_e.btw1);
if (_cscene == 1) {
return(undefined);
}
_e.btw1.onPress = function () {
_m.walkTo(_char._xmouse);
};
}
function initExitButtons() {
if (_cscene == 1) {
_e.bte1._visible = false;
_e.bte2._visible = false;
_e.bte3._visible = false;
return(undefined);
}
initExitBt(_e.bte1);
_e.bte1.onPress = function () {
var _local1 = [{t:"co", c:false}, {x:-30}, {t:"go", o:_r, l:"r4"}];
_m.walkTo(30, _char._y, _local1);
};
}
function walkTo(x, y, a, i) {
if (!canopencommand) {
return(undefined);
}
if (_r.cursorI and (!i)) {
_inventory.unSelectItem();
}
_m.arEye.target = _char;
_char.clear();
_c.comm.close();
_char.doAction({x:x});
if (a) {
_char.doAction(a);
}
}
function doMove(n) {
}
stop();
_global._m = this;
_global._e = _m.env;
_global._croom = 5;
btRollOut();
if (mirrorMode) {
_m._xscale = -100;
_m._x = 700;
} else {
_m._xscale = 100;
_m.x = 0;
}
init();
_global.cTimer = getTimer();
this.onEnterFrame = function () {
_global.cTimer = getTimer();
updateTimer();
};
stop();
Symbol 1947 MovieClip Frame 1
stop();
Symbol 1947 MovieClip Frame 2
sound.playSFX("fall");
Symbol 1992 MovieClip Frame 1
stop();
Symbol 1992 MovieClip Frame 2
sound.playSFX("loop3");
Symbol 1992 MovieClip Frame 16
gotoAndPlay (7);
Symbol 1993 MovieClip Frame 1
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "operate";
_local1[_local2++] = operate;
_c.comm.initP(_local1);
}
function operate() {
_char.doAction([{t:"co", c:false}, {t:"an", l:"touch"}, {t:"fu", f:doOperate}, {t:"an", l:"touch_b"}, {t:"co", c:true}]);
}
function doOperate() {
play();
}
stop();
id = "circuitLocker";
me = this;
pos = 1;
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (_char.char._x < _x) {
var _local4 = _x - 20;
_local2.push({t:"tu", d:dirRight});
} else {
var _local4 = _x + 20;
_local2.push({t:"tu", d:dirLeft});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
stop();
if (gStatus.panelStatus == 1) {
gotoAndStop ("o2");
} else if (gStatus.panelStatus == 2) {
gotoAndStop ("o3");
}
Symbol 1993 MovieClip Frame 3
sound.playSFX("openlock");
gStatus.panelStatus = 1;
Symbol 1993 MovieClip Frame 11
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "view";
_local1[_local2++] = view;
_c.comm.initP(_local1);
}
function view() {
gStatus.steveComm01 = true;
_char.doAction([{t:"co", c:false}, {t:"vo", l:cl["objd_" + _char.id].circuitPanel}, {t:"co", c:true}]);
}
function use_screwdriver() {
_inventory.unSelectItem();
_inventory.removeItem("screwdriver");
_char.char.toPiIconId = "screwdriver";
_char.doAction([{t:"co", c:false}, {t:"tu", d:dirRight}, {t:"an", l:"pickup"}, {t:"id", l:200}, {t:"fu", f:function () {
play();
}}, {t:"id", i:2}, {t:"an", l:"pickup_b"}, {t:"co", c:true}]);
}
stop();
id = "circuitPanel";
me = this;
pos = 1;
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
if (_char.char._x < _x) {
var _local4 = _x - 20;
_local2.push({t:"tu", d:dirRight});
} else {
var _local4 = _x + 20;
_local2.push({t:"tu", d:dirLeft});
}
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
stop();
Symbol 1993 MovieClip Frame 13
gStatus.panelStatus = 2;
Symbol 1993 MovieClip Frame 20
function openMenu() {
var _local1 = [];
var _local2 = 0;
_local1[_local2++] = "view";
_local1[_local2++] = view;
_c.comm.initP(_local1);
}
function view() {
_char.doAction([{t:"co", c:false}, {t:"vo", l:cl["objd_" + _char.id].circuit}, {t:"co", c:true}]);
}
function use_taser() {
_inventory.unSelectItem();
_char.char.toPiIconId = "taser";
_char.doAction([{t:"co", c:false}, {t:"tu", d:dirRight}, {t:"an", l:"pickup"}, {t:"fu", f:function () {
_e.circuitLocker.electric.gotoAndPlay(2);
_m.fountain.water.goBig();
if (!gStatus.jebediahDrinking) {
_m.fountain.water.gotoAndPlay(2);
} else {
mjebediah.doAction([{t:"em", e:">_<"}, {t:"tw", a:"a"}, {t:"vo", l:cl.j10}]);
}
}}, {t:"id", l:500}, {t:"fu", f:function () {
_e.circuitLocker.electric.gotoAndStop(1);
}}, {t:"an", l:"pickup_b"}, {t:"tu", d:dirLeft}, {t:"id", l:500}, {t:"fu", f:function () {
_m.fountain.water.goSmall();
if (!gStatus.jebediahDrinking) {
_m.fountain.water.dostop = true;
}
}}]);
if (gStatus.jebediahDrinking and (!gStatus.jebediahOnTree)) {
_inventory.removeItem("taser");
_char.doAction([{t:"id", l:1000}, {t:"tu", d:dirRight}, {t:"fu", f:function () {
_char.char.toPiIconId = "taser";
_char.char.pi.gotoAndStop("taser");
}}, {t:"an", l:"pickup"}, {t:"fu", f:function () {
_e.circuitLocker.electric.gotoAndPlay(2);
_m.fountain.water.goBig();
_m.fountain.water.gotoAndPlay(2);
}}, {t:"id", l:1000}, {t:"fu", f:function () {
_e.circuitLocker.electric.gotoAndStop(1);
}}, {t:"an", l:"pickup_b"}, {t:"tu", d:dirLeft}, {t:"fu", f:function () {
_m.fountain.water.gotoAndPlay("xplode");
_m.fountain.water._yscale = 100;
gStatus.jebediahOnTree = true;
mjebediah.onEnterFrame = function () {
this.char._y = this.char._y - 50;
this.char._rotation = this.char._rotation + 5;
};
}}, {t:"id", l:1000}, {t:"em", e:":O"}, {t:"tw", a:"a"}, {t:"pl", o:_e.granpsFlying}, {t:"id", l:1000}, {t:"vo", l:cl.s66}, {t:"em", e:":O"}]);
}
if (!gStatus.steveComm03) {
gStatus.steveComm03 = true;
_char.doAction([{t:"em", e:"^_^"}, {t:"id", l:1000}, {t:"vo", l:cl.s70}, {t:"em", e:":D"}]);
}
_char.doAction([{t:"co", c:true}]);
}
stop();
id = "circuitPanel";
me = this;
pos = 1;
initBtS(bt);
bt.onPress = function () {
var _local2 = Array();
var _local4 = _x - 30;
_local2.push({t:"tu", d:dirRight});
var _local3 = _y;
if (_r.cursorI) {
if (this._parent["use_" + _r.cursorI.id]) {
_local2.push({t:"fu", f:this._parent["use_" + _r.cursorI.id]});
} else {
_local2.push({t:"fu", f:function () {
_char.cantUseObjectsTogether();
}});
}
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2, true);
} else {
_local2.push({t:"fu", f:openMenu});
_char.status.toPos = pos;
_m.walkTo(_local4, _local3, _local2);
}
};
delete this.use_screwDriver;
Symbol 1994 MovieClip Frame 1
_parent.initWalkButtons();
_parent.initExitButtons();
Symbol 2033 MovieClip Frame 1
function goBig() {
sound.playSFX("splash 1");
this.onEnterFrame = function () {
this._yscale = this._yscale + 20;
if (this._yscale >= 300) {
this._yscale = 300;
delete this.onEnterFrame;
}
};
}
function goSmall() {
this.onEnterFrame = function () {
this._yscale = this._yscale - 20;
if (this._yscale <= 100) {
this._yscale = 100;
delete this.onEnterFrame;
}
};
}
stop();
Symbol 2033 MovieClip Frame 2
sound.playLoopSFX(5, 300);
Symbol 2033 MovieClip Frame 21
if (dostop != true) {
gotoAndPlay (10);
} else {
delete dostop;
}
Symbol 2033 MovieClip Frame 22
sound.stopLoopSFX(5, 300);
Symbol 2033 MovieClip Frame 27
stop();
Symbol 2033 MovieClip Frame 28
sound.stopLoopSFX(5, 100);
sound.playSFX("splash 2");
Symbol 2033 MovieClip Frame 42
gotoAndPlay ("stop");
Symbol 2034 MovieClip Frame 1
function init(d, p) {
this.dir = d * 1;
this.part = p * 1;
gotoAndStop((dir + ((part - 1) * 4)) + 1);
addDockPoint(this, 1, {x:1, y:0, dir:3});
addDockPoint(this, 1, {x:0, y:1, dir:4});
addDockPoint(this, 1, {x:0, y:-1, dir:2});
addDockPoint(this, 1, {x:-1, y:0, dir:1});
}
function operate(char) {
if (char == undefined) {
char = this._parent._parent.owner;
}
var _local3 = char.dock;
char.clip.doFace(_local3.dockPoint(char.dockPoint).dir);
char.clip.doOperate();
if (char == me) {
_root.comm.close();
sendCommand(0);
if (_local3.water._currentframe == 1) {
sendObjStatus(_local3, "s1");
} else {
sendObjStatus(_local3, "");
}
}
if (_local3.water._currentframe != 1) {
_local3.water.dostop = true;
} else {
delete _local3.water.dostop;
_local3.water.gotoAndPlay(1);
}
_local3.undock(char);
}
function setStatus(comm) {
var _local2 = 0;
while (_local2 < comm.length) {
if (comm[_local2] == "s1") {
this.water.play();
}
_local2++;
}
}
stop();
this.sx = 1;
this.sy = 1;
init(1, 1);
this.cp = ["operate", operate];
Symbol 2035 MovieClip Frame 1
function init() {
this.initData = {};
initData.stevePos = {x:100, y:335, d:dirRight, pos:1};
initData.steveAct = [{x:210}, {t:"co", c:true}];
initData.jebediahPos = {x:263, y:335, d:dirLeft, pos:1};
if (gStatus.jebediahSafe or gStatus.jebediahOnTree) {
initData.jebediahPos.hidden = true;
}
setActiveChar(msteve);
_global._froom = _croom;
}
function initWalkButtons() {
initBt(_e.btw1);
_e.btw1.onPress = function () {
_char.status.toPos = 1;
_m.walkTo(_char._xmouse);
};
}
function initExitButtons() {
initExitBt(_e.bte1);
_e.bte1.onPress = function () {
var _local1 = [{t:"co", c:false}, {t:"fu", f:function () {
_i.map.show();
}}];
_m.walkTo(140, _char._y, _local1);
};
}
function walkTo(x, y, a, i) {
if (!canopencommand) {
return(undefined);
}
if (_r.cursorI and (!i)) {
_inventory.unSelectItem();
}
_m.arEye.target = _char;
_char.clear();
_c.comm.close();
if (_char.status.toPos != _char.status.pos) {
var _local2 = (_char.status.pos + "_") + _char.status.toPos;
switch (_local2) {
case "1_2" :
case "1_3" :
_char.doAction([{x:118, y:335}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
if (_local2 == "1_2") {
break;
}
case "2_3" :
_char.doAction([{x:33, y:228, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 3;
}}]);
break;
case "3_2" :
case "3_1" :
_char.doAction([{x:33, y:228}, {t:"fu", f:function () {
_char.status.pos = 2;
}}]);
if (_local2 == "3_2") {
} else {
_char.doAction([{x:118, y:335, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 1;
}}]);
}
case "2_1" :
_char.doAction([{x:118, y:335, s:0.7}, {t:"fu", f:function () {
_char.status.pos = 1;
}}]);
}
}
switch (_char.status.toPos) {
case 1 :
_char.doAction({x:x});
break;
case 2 :
_char.doAction({x:x, y:((x - 33) * 1.258) + 228, s:0.7});
break;
case 3 :
_char.doAction({x:x, y:228 - ((x - 33) * 0.054), s:0.7});
}
if (a) {
_char.doAction(a);
}
}
function doMove(n) {
}
stop();
_global._m = this;
_global._e = _m.env;
_global._croom = 6;
_i.gotoAndStop(2);
btRollOut();
if (mirrorMode) {
_m._xscale = -100;
_m._x = 700;
} else {
_m._xscale = 100;
_m.x = 0;
}
init();
_global.cTimer = getTimer();
this.onEnterFrame = function () {
_global.cTimer = getTimer();
updateTimer();
};