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

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

Hetherdale - can you uncover the secrets of Hetherdale-.swf

This is the info page for
Flash #92067

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { function timer1() { if (!_root.altloader) { a = _root.getBytesLoaded(); _root.bwarray.push(a - _root.previousbytes); _root.bwarray.shift(); bandwidth = 0; i = 0; while (i < 10) { bandwidth += bwarray[i]; ++i; } bandwidth /= 10; if (isNaN(bandwidth) || bandwidth == undefined || bandwidth == 0 || bandwidth == Infinity || bandwidth == -Infinity || bandwidth < 1) { _root.mc_loadingerror._visible = true; _root.mc_countdown2._visible = false; _root.mc_countdown._visible = false; } _root.previousbytes = _root.getBytesLoaded(); remaintime = (_root.getBytesTotal() - _root.getBytesLoaded()) / bandwidth; c = Math.floor(remaintime); b = remaintime.toString(); _root.mc_countdown.countdown.text = c; } } stop(); _root.mc_countdown2._visible = false; _root.mc_loadingerror._visible = false; _root.fremek = 0; var rightClick = new ContextMenu(); rightClick.hideBuiltInItems(); _root.menu = rightClick; _root.mc_sitelock._visible = false; _root.sitelocked = false; var invalidAdDomains = ['www8.agame.com', '3.xiaoyouxi.cn', 'files.game.com.cn', 'files.game.asia', 'agame.com', 'cdn.kaisergames.de', 'andkon.com', 'gamezhero.com', 'freeonlinegames.com', 'redherringlabs.com']; var filterad = false; currentDomain = (_root._url.split('/'))[2]; ad = 0; while (ad < invalidAdDomains.length) { var d = invalidAdDomains[ad].split('.'); var e = currentDomain.split('.'); d.reverse(); e.reverse(); var egyenlo = true; rut = 0; while (rut < d.length) { if (d[rut] != e[rut]) { egyenlo = false; break; } ++rut; } if (egyenlo) { filterad = true; break; } ++ad; } trace(filterad); if (!filterad) { var CPMStarContentSpotID = '1956Q5997B978'; System.security.allowDomain('server.cpmstar.com', 'bubblebox.com'); adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID); } _root.altloader = false; gbt = _root.getBytesTotal(); if (isNaN(gbt) || gbt == undefined || gbt == 0 || gbt == Infinity || gbt == -Infinity) { _root.mc_countdown2._visible = true; _root.mc_countdown._visible = false; _root.altloader = true; } else { _root.mc_countdown2._visible = false; _root.mc_countdown._visible = true; _root.altloader = false; } clearInterval(); bwtimer = setInterval(timer1, 1000); bwarray = [100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000, 100000]; _root.previousbytes = 1; } movieClip 3 { } movieClip 4 { } instance mc_loader of movieClip 4 { onClipEvent (enterFrame) { if (_root.altloader) { if (_root.fremek <= _root._framesloaded) { _root.fremek = _root._framesloaded + 1; szazalek = (_root._framesloaded / _root._totalframes) * 100; ft = 100 / _root._totalframes; } else { ft /= 2; szazalek += ft; } } else { szazalek = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; } _root.mc_loader.mc_progressbar._width = szazalek; if (_root._framesloaded >= _root._totalframes) { if (!_root.sitelocked) { _root.gotoAndStop(3); } } } } movieClip 8 { } movieClip 10 { } movieClip 11 { frame 1 { stop(); this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.onReleaseOutside = function () { this.gotoAndStop(1); }; } } instance mc_bubblebox of movieClip 11 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1747&subid=loading_screen', '_blank'); } } movieClip 13 { } // unknown tag 88 length 98 movieClip 17 { } movieClip 21 { } movieClip 24 { } instance mc_loadingerror of movieClip 24 { onClipEvent (release) { getURL('javascript:window.location.reload();', ''); } } movieClip 28 { } movieClip 31 ii3 { } movieClip 34 ii4 { } movieClip 37 ii5 { } movieClip 40 ii7 { } movieClip 43 ii8 { } movieClip 46 ii9 { } movieClip 49 ii11 { } movieClip 52 ii12 { } movieClip 55 ii13 { } movieClip 58 ii18 { } movieClip 61 ii31 { } movieClip 64 ii33 { } movieClip 67 ii34 { } movieClip 70 ii36 { } movieClip 73 ii37 { } movieClip 76 ii40 { } movieClip 79 ii41 { } movieClip 82 ii58 { } movieClip 85 ii62 { } movieClip 87 ii63 { } movieClip 90 ii64 { } movieClip 93 ii66 { } movieClip 96 ii67 { } movieClip 99 ii72 { } movieClip 101 ii75 { } movieClip 102 ii77 { } movieClip 105 ii86 { } movieClip 108 ii87 { } movieClip 111 ii88 { } movieClip 114 ii89 { } movieClip 117 ii99 { } movieClip 120 ii101 { } movieClip 123 ii102 { } movieClip 126 ii108 { } movieClip 129 ii109 { } movieClip 132 ii110 { } movieClip 135 ii117 { } movieClip 138 ii133 { } movieClip 141 ii134 { } movieClip 144 ii137 { } movieClip 147 ii138 { } movieClip 148 ii140 { } movieClip 151 ii141 { } movieClip 154 ii144 { } movieClip 157 ii145 { } movieClip 160 ii146 { } movieClip 163 ii149 { } movieClip 164 ii150 { } movieClip 166 ii151 { } movieClip 168 ii152 { } movieClip 170 ii153 { } movieClip 172 ii154 { } movieClip 175 ii155 { } movieClip 178 ii158 { } movieClip 181 ii159 { } movieClip 184 ii161 { } movieClip 186 ii173 { } movieClip 187 ii174 { } movieClip 190 ii184 { } movieClip 191 ii190 { } movieClip 194 ii199 { } movieClip 197 ii201 { } movieClip 200 ii203 { } movieClip 203 ii206 { } movieClip 205 ii207 { } movieClip 206 ii211 { } movieClip 207 ii213 { } movieClip 208 ii215 { } movieClip 211 ii217 { } movieClip 213 ii222 { } movieClip 215 ii223 { } movieClip 218 ii229 { } movieClip 221 ii230 { } movieClip 224 ii244 { } movieClip 227 ii246 { } movieClip 229 ii248 { } movieClip 232 ii252 { } movieClip 234 ii253 { } movieClip 237 ii270 { } movieClip 250 { frame 13 { stop(); } } movieClip 282 { } movieClip 313 { } movieClip 344 { } movieClip 375 { } movieClip 378 { } movieClip 381 { } movieClip 384 { } movieClip 426 { } movieClip 427 { } movieClip 459 { } movieClip 490 { frame 15 { gotoAndPlay(1); } } movieClip 521 { } movieClip 552 { } movieClip 555 { } movieClip 558 { } movieClip 561 { } movieClip 602 { } movieClip 643 { } movieClip 644 fig { frame 1 { stop(); } } frame 3 { _root.mc_bubblebox.gotoAndPlay(2); clearInterval(bwtimer); } movieClip 646 { } movieClip 676 { } movieClip 677 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 678 { } movieClip 679 { frame 1 { stop(); } frame 2 { play(); } frame 161 { stop(); _root.gotoAndStop(4); } } instance mc_bubblebox of movieClip 679 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1747&subid=splash', '_blank'); } } frame 4 { _root.mc_redherringsplash.gotoAndPlay(2); } movieClip 681 { } movieClip 685 { } movieClip 686 { frame 57 { stop(); } } movieClip 688 { } movieClip 689 { frame 1 { stop(); } frame 2 { play(); } frame 144 { stop(); _root.gotoAndStop(11); } } frame 11 { function fpsfunc() { _root.fpstext.text = _root.fpsnum + 'fps'; _root.fpsnum = 0; } function initgd() { _root.gd = new Array(); n = 0; while (n <= 350) { gd.push({'itemname': '', 'itemdescription': 'item' + n + ' description', 'hint': 'hint' + n, 'req': [1], 'pickupable': false, 'fixedpickupable': false, 'inventory_happened': false, 'visibleininventory': true, 'stateneeded': 1, 'numberofstates': 1, 'itemstate': 1, 'lockstate': false, 'neededinhand': 0, 'messages': ['', '', '', '', '', '', '', '', '', ''], 'exit': false, 'onstage': true, 'dialog': [''], 'combinewith': 0, 'resultitem': 0, 'disappears': false, 'hh': true, 'itemstoshow': [0], 'itemstohide': [0], 'room': 0, 'startnode': [0, 0], 'node': [0, 0], 'wrongitems': [0]}); ++n; } gd[0].inventory_happened = false; gd[1].inventory_happened = true; gd[1].messages = ['Drop an item here from the inventory to examine it.', '', '', '', '', '', '', '', '', '']; gd[2].itemname = 'LUGGAGE'; gd[2].node = [5, 3]; gd[2].messages = ['I’ve got everything I needed for now from my luggage.', '', '', '', '', '', 'I took out a hairpin, my make-up kit and a towel. I\'ll come back for the rest later. I need to get to the camp as soon as possible.', '', 'I don\'t want to put that back into my luggage.']; gd[3].itemname = 'HAIRPIN'; gd[3].itemdescription = 'I use this to hold my hair together. I also learned how to pick locks with it in college.'; gd[3].pickupable = true; gd[3].disappears = true; gd[3].messages = ['The hairpin has two purposes: to hold my hair together and to pick locks.', '', '', '', '', '', '', '', '']; gd[4].itemname = 'MAKE-UP KIT'; gd[4].itemdescription = 'Never leave home without it.'; gd[4].pickupable = true; gd[4].disappears = true; gd[4].messages = ['I don\'t want to paint that.', '', '', '', '', '', '', '', '']; gd[5].itemname = 'TOWEL'; gd[5].itemdescription = 'Any woman who can walk the length and breadth of the jungle, rough it, slum it, struggle against terrible odds, win through, and still knows where her towel is, is clearly a woman to be reckoned with.'; gd[5].pickupable = true; gd[5].messages = ['I don\'t want to wipe that clean.', '', '', '', '', '', '', '', '']; gd[6].itemname = 'SHED'; gd[6].neededinhand = 3; gd[6].numberofstates = 2; gd[6].stateneeded = 2; gd[6].lockstate = true; gd[6].node = [3, 14]; gd[6].itemstoshow = [7, 8]; gd[6].messages = ['There\'s nothing else I can use in there.', 'It\'s a small shed. There\'s a lock on it. They probably store tools and other stuff in there. Hm... I wonder who \'they\' are...', 'That won\'t help me open the shed\'s lock.', '', 'There was a claw-hammer and a flare inside.', '', '', '', 'I don\'t want to put that back into the shed.', 'Wrongitem message']; gd[7].itemname = 'MAGNESIUM FLARE'; gd[7].itemdescription = 'I guess they use this to signal planes.'; gd[7].pickupable = true; gd[7].node = [6, 14]; gd[7].disappears = true; gd[7].messages = ['I don\'t want to light that up.', '', '', '', '', '', '', '', '']; gd[8].itemname = 'CLAW HAMMER'; gd[8].itemdescription = 'I can use this to hit stuff and to remove nails.'; gd[8].pickupable = true; gd[8].node = [6, 14]; gd[8].messages = ['That doesn\'t need hammering and/or nail removal.', '', '', '', '', '', '', '', '']; gd[9].itemname = 'NAILS'; gd[9].itemdescription = 'A couple of nails I got from the shed.'; gd[9].pickupable = true; gd[9].disappears = true; gd[9].messages = ['I don\'t want to nail those together.', '', '', '', '', '', '', '', '']; gd[10].itemname = 'CANOPY'; gd[10].neededinhand = 8; gd[10].numberofstates = 2; gd[10].stateneeded = 2; gd[10].itemstoshow = [11]; gd[10].node = [3, 14]; gd[10].messages = ['', 'It\'s a canopy, stretched out by the side of the shed. It\'s nailed tight to the shed and pegged to the ground. I can\'t remove it by hand.', 'That won\'t help me remove the canopy. I need something I can get the nails out with.', '', 'There was a rope-ladder and a wheel-chock underneath the canopy. I also took the nails.', '', '', '', '']; gd[11].itemname = 'CANOPY'; gd[11].itemdescription = 'It\'s made of thick canvas. And it\'s soaking wet from the rain.'; gd[11].pickupable = true; gd[11].node = [3, 13]; gd[11].onstage = false; gd[11].disappears = true; gd[11].messages = ['I don\'t want to cover that.', '', '', '', '', 'I can simply pick that up now.', '', '', '']; gd[12].itemname = 'ROPE LADDER'; gd[12].itemdescription = 'It\'s about 15 feet long.'; gd[12].pickupable = true; gd[12].onstage = false; gd[12].node = [5, 15]; gd[12].combinewith = 13; gd[12].resultitem = 18; gd[12].disappears = true; gd[12].messages = ['I don\'t want to tie the ladder to that.', '', '', '', '', 'I can just pick that up.', '', '', '']; gd[13].itemname = 'CHOCK'; gd[13].itemdescription = 'I think they put this under the wheel of the plane so it won\'t roll away. There\'s a hole on the thick end where I think it used to have a rope, but now it\'s gone.'; gd[13].pickupable = true; gd[13].onstage = false; gd[13].node = [5, 15]; gd[13].combinewith = 12; gd[13].resultitem = 18; gd[13].disappears = true; gd[13].messages = ['I don\'t want to chock that.', '', '', '', '', 'Why don\'t I just pick that up...?', '', '', '']; gd[14].itemname = 'DARK JUNGLE PATH'; gd[14].neededinhand = 7; gd[14].room = 13; gd[14].itemstohide = [14]; gd[14].itemstoshow = [15]; gd[14].node = [1, 22]; gd[14].startnode = [15, 0]; gd[14].messages = ['', 'It\'s a dark path that leads into the jungle. I could try to see if I can find the camp going this way, but it\'s pitch black in there.', 'That won\'t help me see in the dark.', '', '', '', '', '', '']; gd[15].itemname = 'ALREADY EXPLORED JUNGLE PATH'; gd[15].room = 13; gd[15].onstage = false; gd[15].node = [1, 22]; gd[15].startnode = [15, 0]; gd[15].messages = ['', '', '', '', '', 'I\'ve pretty much got this part of the jungle mapped out. I can just walk along the path nicely.', '', '', 'I\'ve pretty much got this part of the jungle mapped out. I can just walk along the path nicely.']; gd[16].itemname = 'WALK TO AIRSTRIP'; gd[16].room = 12; gd[16].node = [15, 0]; gd[16].startnode = [1, 22]; gd[16].messages = ['', '', '', '', '', 'I know my way to the airstrip now. I can simply walk over there.', '', '', 'I know my way to the airstrip now. I can simply walk over there.']; gd[17].itemname = 'BURNING TREE TRUNK'; gd[17].neededinhand = 11; gd[17].numberofstates = 2; gd[17].stateneeded = 2; gd[17].lockstate = true; gd[17].itemstoshow = [19, 21, 22]; gd[17].itemstohide = [23, 60]; gd[17].node = [15, 2]; gd[17].messages = ['The fire is out, I can walk across now.', 'This huge tree trunk seems to have been hit by lightning just recently. It\'s churning fiery hot, despite the rain. It\'ll be a while before the rain puts it out.', 'I need something I can cover the embers with. Something large.', '', 'I used the wet canopy to cover the embers. I can now get across safely.', '', '', '', 'I\'ve done enough to the tree. Let\'s leave it alone.']; gd[18].itemname = 'ROPE LADDER WITH CHOCK'; gd[18].itemdescription = 'I have tied the chock to the rope-ladder. Now it\'s easier to throw.'; gd[18].pickupable = true; gd[18].disappears = true; gd[18].messages = ['I don\'t wanna tie the ladder to that.', '', '', '', '', 'I tied the chock to one end of the rope-ladder. Now it has a pretty decent anchorage.', '', '', '']; gd[19].itemname = 'SPIKE SHAPED ROCK'; gd[19].numberofstates = 2; gd[19].stateneeded = 2; gd[19].lockstate = true; gd[19].neededinhand = 18; gd[19].wrongitems = [12]; gd[19].node = [6, 8]; gd[19].onstage = false; gd[19].itemstohide = [21]; gd[19].itemstoshow = [24]; gd[19].messages = ['', 'It\'s a spiked rock on the other side of the rift. Maybe I can anchor something to it.', 'I need something with good anchorage.', '', 'I threw the ladder across the rift. It got stuck on the other side, thanks to the chock.', '', '', '', '', 'Good idea. But I can\'t aim with the ladder very good because it\'s too light. I need a weight on one end.']; gd[20].itemname = 'HAND GRENADES'; gd[20].node = [6, 17]; gd[20].neededinhand = 8; gd[20].stateneeded = 2; gd[20].messages = ['A crate full of grenades. It\'s nailed shut.', 'A crate full of grenades. It\'s nailed shut.', 'That won\'t help me open the crate.', '', 'The nails are too small, I can\'t pull them out.', 'That won\'t help me open the crate.', 'A crate full of grenades. It\'s nailed shut.', '', 'That won\'t help me open the crate.']; gd[21].itemname = ''; gd[21].node = [6, 8]; gd[21].onstage = false; gd[21].messages = ['I can\'t walk there, there\'s a gaping rift crossing the path.', '', '', '', '', '', 'I can\'t walk there, there\'s a gaping rift crossing the path.', '', '']; gd[22].itemname = 'A JUMBLE OF ROOTS'; gd[22].node = [6, 8]; gd[22].onstage = false; gd[22].numberofstates = 2; gd[22].stateneeded = 2; gd[22].lockstate = true; gd[22].req = [0]; gd[22].messages = ['It\'s the roots of the tree that fell down after getting hit by lightning.', '', '', '', '', 'I\'d better leave these roots alone and find a way across the rift.', '', 'It\'s the roots of the tree that fell down after getting hit by lightning. There\'s no way I can climb across here.', '']; gd[23].itemname = ''; gd[23].node = [15, 3]; gd[23].messages = ['I can\'t go there, the fire is blocking my way.', '', '', '', '', '', 'I can\'t go there, the fire is blocking my way.', '', '']; gd[24].itemname = 'TOP OF STAIRS'; gd[24].room = 14; gd[24].node = [0, 1]; gd[24].startnode = [9, 1]; gd[24].onstage = false; gd[24].messages = ['', '', '', '', '', 'I can just walk there.', '', '', '']; gd[25].itemname = 'dialogus carrow-val'; gd[25].dialog = ['1CARROW:\rMiss Montrose, over here!', '1HEATHER:\rDear God, you startled me...! Who are you, sir?', '1CARROW:\rMy name is James Carrow, I\'m working on the dig with Prof. Harbach.', '1HEATHER:\rSo this is Dr. Harbach\'s camp?', '1CARROW:\rYes. But we can talk about that later. Right now you need to come inside. I\'ll tell you everything tomorrow. Come!', '']; gd[26].itemname = 'TENT'; gd[26].node = [6, 5]; gd[26].messages = ['', '', '', '', '', 'I\'d better get into that tent quickly.', '', '', '']; gd[27].itemname = 'CARROW'; gd[27].itemstoshow = [29]; gd[27].itemstohide = [28]; gd[27].node = [6, 5]; gd[27].messages = ['I should leave him to his business', '', '', '', '', 'I don\'t want to give that to Mr. Carrow.', '', '', 'I don\'t want to give that to Mr. Carrow.']; gd[27].dialog = ['1HEATHER:\rHello there, Mr. Carrow.', '1CARROW:\rMiss Montrose...', '1HEATHER:\rThanks for the shelter last night. It was really coming down.', '1CARROW:\rNo problem. I hope you liked your tent.', '1HEATHER:\rYes, thank you.', '1CARROW:\rThe professor mentioned that you\'d be arriving soon, but I didn\'t think it\'d be in the middle of the night.', '1HEATHER:\rI was fortunate to be able to rent a plane. It was very hard, mind you. And expensive. Plus the pilot seemed reluctant to fly me here. He kept going on about this place being cursed. Which is absurd, of course.', '1CARROW:\rActually... the closer we get to the ruins, the creepier it seems to me.', '1HEATHER:\rWhat\'s that supposed to mean...?', '1CARROW:\rLook... I don\'t want to freak you out. So never mind. I\'ll let you make up your own mind.', '1HEATHER:\rWell, not very reassuring... But okay. So where\'s the Professor? What\'s been going on here? I\'m really anxious to see the city.', '1CARROW:\rWe got here two weeks ago. Professor Harbach and Mr. Ashcroft -- I\'ll tell you about him later -- flew in just like you did. I drove a tub car with Burke so we could move around more easily between the camp and the closest settlement. Bringing supplies and whatnot... \tBut the car broke down yesterday at the dig. The Germans still have a long way to go when it comes to making cars...', '1HEATHER:\rWho\'s Burke?', '1CARROW:\rHe\'s a hunter and an demolitions expert. I usually work with him on most jobs, whenever I can. But three days ago he got stung by some local plant, and he\'s pretty much been unconscious since then. I plan to drive out to Shansoonoo later for some medicine after fixing the car.', '1CARROW:\rI hope he\'ll get better. If he doesn\'t we can\'t use the explosives.', '1HEATHER:\rWhy is that?', '1CARROW:\rA couple of days ago he lost one of his grenades. He got so mad that he locked the rest of them in a crate and refused to tell us the combination to its lock.', '1HEATHER:\rAnd this Ashcroft person you mentioned?', '1CARROW:\rHe\'s a royal pain in the ass... Pardon my language. Uptight, snobby and not very personable. I don\'t know why Professor Harbach puts up with him. I guess it\'s because of his money. If it wasn\'t for him, we wouldn\'t be here.', '1CARROW:\rAnyway... As soon as we arrived, Dr. Harbach and Ashcroft started snooping around immediately. I\'m just a hired hand here, so I do what I can to help them. Carrying stuff, minding the camp, and so on. To be honest, much of what they talk about makes little sense to me. I don\'t believe in any of this supernatural nonsense.', '1HEATHER:\rSo where are they?', '1CARROW:\rThey found some old furnaces and they set up camp right next to them. They took the car, but as I said, it broke down. So you\'ll have to walk. It\'s a couple of miles north of here.', '1HEATHER:\rThank you, I\'ll go find them. Have a nice day.', '1CARROW:\rYou too, Miss Montrose.', '1CARROW:\rOh, I\'ll get your luggage from the airstrip as soon as possible.', '1HEATHER:\rThanks.', '']; gd[28].itemname = 'ILL MAN'; gd[28].node = [6, 9]; gd[28].messages = ['He seems to be ill and sleeping. He looks bad.', '', '', '', '', 'It\'ll take a lot more than that to heal him.', 'It\'s a man. He seems to be ill and sleeping. He looks bad.', '', 'It\'ll take a lot more than that to heal him.']; gd[29].itemname = 'BURKE'; gd[29].node = [5, 9]; gd[29].onstage = false; gd[29].dialog = ['1CARROW:\rHe\'s been like that for three days now.', '1HEATHER:\rHow did it happen?', '1CARROW:\rHe wandered off towards the west looking for some pipe weed. I found him the same evening near the river, semi-conscious and with a huge red spot on his arm. He was mumbling incoherently about a village and some locals. Which is weird, because within a thirty mile radius there\'s no one here but us. The next settlement is Shansoonoo, to the south.', '']; gd[29].messages = ['He\'s ill. I should try to help him if I can.', '', '', '', '', '', '', '', 'It\'ll take a lot more than that to heal him.']; gd[30].itemname = ''; gd[31].itemname = 'TELEGRAM'; gd[31].itemdescription = 'It reads: \'The Nazis annexed Austria yesterday. There is hope. Fuller.\'.'; gd[31].disappears = true; gd[31].pickupable = true; gd[31].node = [5, 16]; gd[31].dialog = ['1HEATHER:\rIt reads: \'The Nazis annexed Austria yesterday. There is hope. Fuller.\'.', '1CARROW:\rYeah, that came in yesterday. I\'m sure Ashcroft will be happy to hear that. His buddy keeps sending news every other day. Not that any of that makes any difference here.', '1HEATHER:\rWhy should the occupation of Austria make him happy?', '1CARROW:\rThe only reason he\'s not a nazi is that he wasn\'t born in Germany. Anyway, if you show him that, he\'ll like you for sure.', '1CARROW:\r... For about five minutes. Then he\'ll find a reason to dislike you.', '']; gd[31].messages = ['No use.', '', '', '', '', 'I can just pick that up.', '', '', '']; gd[32].itemname = 'GUITAR'; gd[32].node = [6, 4]; gd[32].messages = ['I don\'t need any more strings.', '', '', '', '', 'I don\'t need that to play the guitar.', 'I took one of the strings (the thick E-string). It had two more missing anyway... Now it has three.', '', 'I don\'t need that to play the guitar.']; gd[33].itemname = 'E-STRING, THE THICK ONE'; gd[33].itemdescription = 'It\'s a thick wound string from Carrow\'s guitar.'; gd[33].pickupable = true; gd[33].combinewith = 62; gd[33].resultitem = 63; gd[33].disappears = true; gd[33].messages = ['I don\'t want to tie the string to that.', '', '', '', '', '', '', '', '']; gd[34].itemname = 'RATHER LARGE DRUMSTICK'; gd[34].itemdescription = 'I think it used to belong to some large fowl. Though I don\'t know if there are any turkeys around here.'; gd[34].pickupable = true; gd[34].node = [6, 7]; gd[34].disappears = true; gd[34].messages = ['I could hit that with the drumstick, but I\'m not in the mood.', '', '', '', '', 'I can just pick that up.', '', '', '']; gd[35].itemname = 'WALK TO JUNGLE'; gd[35].node = [0, 12]; gd[35].room = 16; gd[35].startnode = [3, 19]; gd[35].messages = ['', '', '', '', '', 'I can just walk into the jungle. It\'s broad daylight, nothing to fear there. Except for the predators. And the poisonous plants...', '', '', '']; gd[36].itemname = 'STEEL ROD'; gd[36].itemdescription = 'It\'s a three foot long steel rod.'; gd[36].neededinhand = 8; gd[36].pickupable = true; gd[36].node = [2, 15]; gd[36].messages = ['I might damage it.', 'It\'s a steel rod. It\'s wedged firmly between two rocks.', 'That won\'t get the steel rod out.', '', 'I managed to loosen the rod with the claw-hammer. After that it came out easy.', '', '', '', '']; gd[37].itemname = 'SHORTER PLANK'; gd[37].numberofstates = 2; gd[37].fixedpickupable = true; gd[37].node = [2, 14]; gd[37].messages = ['I got hold of the shorter plank. I can\'t carry it around, but I can use it on something.', '', 'I don\'t want to put the plank there.', '', '', 'I think I can just pick that up.', 'I got hold of the shorter plank. I can\'t carry it around, but I can use it on something.', '', '']; gd[38].itemname = 'PLANK'; gd[38].neededinhand = 37; gd[38].itemstohide = [37, 38]; gd[38].itemstoshow = [39]; gd[38].node = [2, 14]; gd[38].visibleininventory = false; gd[38].messages = ['', 'It\'s a large plank. Carrow must have used it for something. Maybe to build a bridge.', 'That won\'t make the plank larger.', '', 'I put the smaller plank onto the larger one.', '', '', '', '']; gd[39].itemname = 'ALIGNED PLANKS'; gd[39].neededinhand = 9; gd[39].itemstoshow = [41]; gd[39].itemstohide = [39]; gd[39].onstage = false; gd[39].node = [2, 14]; gd[39].messages = ['', 'If I move them, they\'ll come apart. I need something to fix them together.', 'That won\'t hold the planks together.', '', 'I used the nails and the hammer to extend the large plank with the small one. Now it\'s long enough to reach across the ditch.', '', '', '', '']; gd[40].itemname = 'SHELL'; gd[40].itemdescription = 'It\'s a small shell.'; gd[40].pickupable = true; gd[40].node = [4, 8]; gd[40].disappears = true; gd[40].messages = ['I don’t want to put a shell on that.', '', '', '', '', 'I can just pick that up.', '', '', '']; gd[41].itemname = 'EXTENDED LONG PLANK'; gd[41].onstage = false; gd[41].numberofstates = 2; gd[41].fixedpickupable = true; gd[41].node = [2, 14]; gd[41].visibleininventory = false; gd[41].messages = ['I can now walk across.', '', '', '', 'I put the extended plank across the ditch. I can now walk across.', 'I can simply pick it up.', '', '', '']; gd[42].itemname = 'DEEP DITCH'; gd[42].neededinhand = 41; gd[42].numberofstates = 2; gd[42].stateneeded = 2; gd[42].lockstate = true; gd[42].node = [2, 13]; gd[42].itemstohide = [41, 43]; gd[42].messages = ['It\'s a deep ditch. I can\'t jump across it. I can see a bunch of broken wooden planks on the bottom. I guess Carrow had built a bridge here, which was washed away by the storm last night. Now the ditch is almost completely dry.', 'It\'s a deep ditch. I can\'t jump across it. I can see a bunch of broken wooden planks on the bottom. I guess Carrow had built a bridge here, which was washed away by the storm last night. Now the ditch is almost completely dry.', 'I don\'t want to throw that into the ditch.', '', '', 'I don\'t want to throw that into the ditch.', '', '', 'I don\'t want to throw that into the ditch.']; gd[43].itemname = ''; gd[43].node = [2, 13]; gd[43].messages = ['', 'It\'s a deep ditch. I can\'t jump across it. I can see a bunch of broken wooden planks on the bottom. I guess Carrow had built a bridge here, which was washed away by the storm last night. Now the ditch is almost completely dry.', '', '', '', '', '', '', '']; gd[44].itemname = 'WALK TO JUNGLE'; gd[44].startnode = [5, 19]; gd[44].node = [0, 8]; gd[44].room = 17; gd[44].messages = ['', '', '', '', '', 'I can just walk there.', '', '', '']; gd[45].itemname = 'WALK TO JUNGLE'; gd[45].node = [3, 19]; gd[45].startnode = [0, 12]; gd[45].room = 15; gd[45].messages = ['', '', '', '', '', 'I can just walk there.', '', '', '']; gd[46].itemname = ''; gd[46].node = [4, 12]; gd[46].messages = ['I can\'t walk across the river.', '', '', '', '', '', 'I can\'t walk across the river.', '', '']; gd[47].itemname = 'PROFESSOR HARBACH'; gd[47].node = [6, 6]; gd[47].itemstohide = [47]; gd[47].itemstoshow = [48]; gd[47].dialog = ['1HARBACH:\rMiss Montrose! I\'m glad you made it!', '1HEATHER:\rYes, me too. That flight will give me nightmares for a while.', '1HEATHER:\rI\'m sorry, Professor. It\'s good to finally meet you. But you must understand that the circumstances in which we do are more than peculiar. If you hadn\'t sent that large envelope with all your photographs and research material, I would have taken you for a con-man...', '1HARBACH:\rBut Miss Montrose! I\'m a well-respected archeologist and scholar.', '1HEATHER:\rYes, I know that now. After confirming your existence and sanity with your colleague at Cambridge.', '1HARBACH:\rAgain... Miss Montrose...!', '1HEATHER:\rI\'m sorry Professor, but put yourself in my shoes: What would you do after receiving a package that claims that the imaginary city of your favorite poet exists, and an invitation... no, a request to fly to Africa immediately?', '1HARBACH:\rWell...', '1HEATHER:\rYes?', '1HARBACH:\rWell... I...', '1HEATHER:\rSee, not an easy question.', '1HARBACH:\rI must admit, amidst all my excitement I failed to consider the implications of my... request. And I do apologize for the inconvenience.', '1HEATHER:\rIf in the end it turns out to be worth it, consider everything forgiven. Plus now that I\'m here, I confess that I\'m very excited about all this.', '1HARBACH:\rI\'m glad. We\'ll need your expertise to find the lost city of Lord Dunmore. The papers you published on him were invaluable during my research. Without them we might still be in England.', '1HEATHER:\rHow can I help?', '1HARBACH:\rTo be honest, we have reached a dead end. We managed to find the ruins of some houses a few miles back down the road. You might have seen them on the shores of that deep ditch. The people who lived there must have been craftsmen. But it\'s all grown in, the foliage is too thick to do any real work there. We\'re waiting for Mr. Burke to get better so he and Mr. Carrow can cut through the shrubbery.', '1HARBACH:\rSo we moved up here to the riverbank after we\'d found the remains of these two furnaces. Mr. Ashcroft and I set up camp here so we can work faster.', '1HARBACH:\rWhat prompted me to beckon you over here to Africa was the inscription we found on the wall of the other furnace. It seems to be in English and written by the hand of Lord Dunmore. This was actually the first thing we found.', '1HARBACH:\rWell... To be honest, it wasn\'t us who found it, it was a local hunter who brought some meat down to the market at Shansoonoo. It was by sheer luck that the information was relayed to me. He was just going on about some \'cursed marks\' on the wall. That\'s what started this whole expedition.', '1HEATHER:\rI remember those from your photos. Unbelievable. I\'ll go check it out immediately.', '1HARBACH:\rI must admit, my literary knowledge is far inferior to compared to yours. I tried to make sense of it, but this is precisely the thing that you excel at. Interpreting the mind of this crazy... sorry... mentally challenged individual. I hope you can help us move forward. This will be an exceptional find.', '1HEATHER:\rAll right, professor. I\'ll do what I can. I\'m also eager to solve the mystery of the city.', '1HARBACH:\rMiss Montrose... One more thing. Although being a man of science, and total disbeliever in all that is supernatural, I must urge you to keep your eyes open and watch your step.', '1HEATHER:\rWhat exactly do you mean? Has something happened?', '1HARBACH:\rAside from Mr. Burke getting ill, nothing specific. Although one might look upon Mr. Burke\'s condition as a sign, I choose to see it as pure bad luck.', '1HARBACH:\rBut there\'s something about this place... Mr. Ashcroft and I disagree on a lot of things, but I concur with him on this point: this place is special.', '1HEATHER:\rGood special or bad special?', '1HARBACH:\rSorry dear. That\'s all I can say without discrediting myself as a rational scholar.', '1HEATHER:\rGuess I\'ll have to settle for this. I\'ll check that inscription.', '1HARBACH:\rThank you dear. Let me know if you figure something out.', '']; gd[47].messages = ['I\'ll just leave him to his work.', '', '', '', '', 'I don\'t want to give him that.', '', '', 'I don\'t want to give him that.']; gd[48].itemname = 'HARBACH'; gd[48].node = [6, 6]; gd[48].onstage = false; gd[48].dialog = ['1HEATHER:\rProfessor, is there anything else you can tell me about the city?', '1HARBACH:\rWe can\'t find the entrance to it. That\'s about it. As a person, I wouldn\'t recommend this, but as an archeologist doing his job, I\'d say you should talk to Mr. Ashcroft over there. Maybe he\'ll be able to help you.', '1HEATHER:\rThank you professor.', '']; gd[48].messages = ['I\'ll just leave him to his work.', '', '', '', '', 'I don\'t want to give him that.', '', '', 'I don\'t want to give him that.']; gd[49].itemname = 'MAN'; gd[49].node = [5, 10]; gd[49].req = [47]; gd[49].itemstohide = [49]; gd[49].itemstoshow = [51]; gd[49].dialog = ['1HEATHER:\rHello there.', '1ASHCROFT:\rGood morning. You must be Dr. Montrose.', '1HEATHER:\rNice to meet you. And you must be Mr. Ashcroft...', '1ASHCROFT:\rDoctor, if I may ask.', '1HEATHER:\rErr... Sure... Doctor.', '1ASHCROFT:\rThe professor seems to be enjoying giving me the discourtesy whenever he can by addressing me improperly. The others chose to follow his lead on this.', '1HEATHER:\rI meant no disrespect.', '1ASHCROFT:\rDon\'t worry dear, I\'m sure you\'ll make up for it somehow.', '1HEATHER:\rI\'m sure.', '1HEATHER:\rSo Doctor, the professor tells me that you\'re kind of stuck and need my help to get moving again.', '1ASHCROFT:\rYes, we are. And it pains me greatly to have to rely on you people to finally get to where I... where we want to be.', '1HEATHER:\rAs far as I know it was us people that got you here in the first place; Professor Harbach and my publications.', '1ASHCROFT:\rYes. I should say \'very exciting\', but I won\'t. Because it was my money that got you here.', '1HEATHER:\rDoctor... Why are you here? You don\'t seem to care about the research yet I assume you went through a lot of trouble to get here.', '1ASHCROFT:\rIndeed. My interests are less of a scientific nature and more of a... let\'s say sociological.', '1HEATHER:\rWhat\'s that supposed to mean?', '1ASHCROFT:\rNever you mind. But as long as you\'re here, you might as well make yourself useful. Though I can\'t say that I share the Professor\'s faith in you. It\'s one thing to flip through a few pages of poems and another to recover something truly brilliant. This is not Oxford. This is Hetherdale. You\'ll find that out before long.', '1HEATHER:\rI already did. At Oxford I\'m usually treated with respect.', '1ASHCROFT:\rRespect is earned, not given away. You\'ve yet to earn mine.', '1HEATHER:\rI\'ll let you get back to your work.', '']; gd[49].messages = ['', '', '', '', '', 'I don\'t want to give him that. I don\'t even know who that is.', '', 'I better talk to the professor first.', '']; gd[50].itemname = 'nincs viz'; gd[50].onstage = false; gd[51].itemname = 'ASHCROFT'; gd[51].onstage = false; gd[51].node = [5, 10]; gd[51].numberofstates = 2; gd[51].stateneeded = 2; gd[51].lockstate = true; gd[51].neededinhand = 31; gd[51].itemstohide = [27]; gd[51].itemstoshow = [52]; gd[51].dialog = ['1HEATHER:\rDoctor! Mr. Carrow said you might be interested in this telegram.', '1ASHCROFT:\rLet me see... \'Germany... mmm... mmm...\'', '1ASHCROFT:\rThis is excellent news. The Germans have finally made up their mind. I knew that under the leadership of Hitler they\'ll aspire to something greater.', '1ASHCROFT:\rSee, Professor, this is what distinguishes the Germans from our overcivilized Anglo-Saxon race. They simply take what they want.', '1HARBACH:\rForgive me if I don\'t share your enthusiasm. The only reason you have the guts to say this is that we are in the middle of the jungle. At home you\'d be arrested for treason.', '1ASHCROFT:\rWhat do you think, Miss Montrose?', '1HEATHER:\rI think this has nothing to do with why we\'re here.', '1ASHCROFT:\rYou\'re right. We\'re here to find the City of Hetherdale. And to do that I need your help. I need an axe from the camp. Would you be so kind to get me one? When you\'re there, Ask Mr. Carrow.', '1ASHCROFT:\rI\'ve drawn a map, but I don\'t need it anymore, so here you go. Look it over. See if you can find anything we might have missed. I won\'t deny the importance of a fresh set of eyes.', '1HEATHER:\rThe sooner this conversation ends the better... I\'ll leave to your work, Doctor. And thanks for the map.', '']; gd[51].messages = ['He wants an axe, and I don\'t want to talk to him.', 'I don\'t want to talk to him, unless I really have to. Or unless I have something to show him.', 'That won\'t make him more sociable.', '', '', '', '', '', 'He doesn\'t need that. He needs an axe.']; gd[52].itemname = 'CARROW'; gd[52].numberofstates = 2; gd[52].stateneeded = 2; gd[52].lockstate = true; gd[52].onstage = false; gd[52].node = [6, 5]; gd[52].itemstohide = [47, 48, 51]; gd[52].itemstoshow = [59, 61, 62, 64]; gd[52].dialog = ['1HEATHER:\rMr. Carrow.', '1CARROW:\rYes Miss Montrose?', '1HEATHER:\rMr. Ashcroft needs an axe for something. He sent me to get it for him.', '1CARROW:\rSure thing, here you go.', '1HEATHER:\rThank you.', '']; gd[52].messages = ['I already got the axe.', '', '', '', '', 'I don\'t want to give him that.', '', '', 'I don\'t want to give him that.']; gd[53].itemname = 'WALK TO JUNGLE'; gd[53].node = [5, 19]; gd[53].startnode = [0, 8]; gd[53].room = 16; gd[53].messages = ['', '', '', '', '', 'I can just walk there.', '', '', 'I can just walk there.']; gd[54].inventory_happened = true; gd[55].itemname = 'CAMP'; gd[55].room = 15; gd[55].startnode = [0, 12]; gd[56].itemname = 'DEEP DITCH'; gd[56].room = 16; gd[56].startnode = [3, 18]; gd[57].itemname = 'DIG'; gd[57].room = 17; gd[57].startnode = [5, 19]; gd[58].itemname = 'AXE'; gd[58].itemdescription = 'The axe looks worn. The head is loose on the helve.'; gd[58].pickupable = true; gd[58].messages = ['I don\'t want to chop that up.', '', '', '', '', '', '', '', '']; gd[59].itemname = 'HARBACH'; gd[59].onstage = false; gd[59].node = [7, 3]; gd[59].dialog = ['1HARBACH:\rDr. Montrose, take a look at this!', '1HEATHER:\rWhat is it, Professor?', '1HARBACH:\rWe have uncovered items that used to belong to Lord Dunmore. It seems he had more than one camp.', '1HEATHER:\rYes. In his poems he only mentions the one next to the temple.', '1HARBACH:\rThat\'s where he used to see his deceased lover, right?', '1HEATHER:\rWell I\'m not sure if he saw her, but he certainly thought he did. These visions produced some truly amazing poetry.', '1HEATHER:\rWhat about the items?', '1HARBACH:\rAn almost totally decomposed bunch of papers, which I dare not touch for fear of disintegrating them with the slightest touch.', '1HARBACH:\rWe also found a compass and a crossbow.', '1HARBACH:\rWe\'ll take a look at the compass with Ashcroft, then I\'ll come up with a way to remove the papers. But you can take the crossbow, it has no real value. You can get a similar one at any antique weapons dealer. It was a fairly common model at the time.', '1HEATHER:\rThank you Professor.', '']; gd[59].messages = ['I don\'t want to bother him.', '', '', '', '', 'He doesn\'t need it.', '', '', 'He doesn’t need it.']; gd[60].itemname = ''; gd[60].node = [15, 3]; gd[60].messages = ['I can\'t go there, the fire is blocking my way.', '', '', '', '', '', 'I can\'t go there, the fire is blocking my way.', '', '']; gd[61].itemname = 'ASHCROFT'; gd[61].neededinhand = 58; gd[61].node = [7, 1]; gd[61].onstage = false; gd[61].dialog = ['1HEATHER:\rDr. Ashcroft, here\'s the axe you asked for.', '1ASHCROFT:\rMiss, can\'t you see I\'m busy here? We\'ve uncovered some new items that might bring us closer to the city. Keep your axe and leave me to my work.', '1HEATHER:\rOkay... More axe for me then.', '']; gd[61].messages = ['I don’t want to talk to him, he\'s rude.', 'I don\'t want to talk to him unless I really need to. Or unless I have that axe he asked for.', 'He wants an axe, not that.', '', '', 'He wanted an axe, not that.', '', '', 'He didn\'t want the axe, why would he want that?']; gd[62].itemname = 'BROKEN CROSSBOW'; gd[62].req = [59]; gd[62].itemdescription = 'The crossbow doesn\'t have a string. Otherwise it looks fine, which is amazing after being underground for many years.'; gd[62].pickupable = true; gd[62].combinewith = 33; gd[62].resultitem = 63; gd[62].onstage = false; gd[62].node = [7, 5]; gd[62].disappears = true; gd[62].messages = ['The crossbow doesn\'t work. It needs a string.', '', '', '', '', 'I can simply pick that up.', 'The Professor said it\'s worthless, so he won\'t mind if I take it.', 'It\'s probably from the dig. I should ask the Professor first if I can take it.', '']; gd[63].itemname = 'CROSSBOW'; gd[63].itemdescription = 'The crossbow is ready to fire.'; gd[63].pickupable = true; gd[63].messages = ['I can\'t shoot that.', '', '', '', '', 'I tied the string to the crossbow. Now all I need is some arrows.', '', '', '']; gd[64].itemname = 'CHISELS'; gd[64].itemdescription = 'They use these to wedge them between rocks to loosen the ground.'; gd[64].pickupable = true; gd[64].onstage = false; gd[64].node = [6, 6]; gd[64].disappears = true; gd[64].messages = ['I don\'t want to stick the chisels in there.', '', '', '', '', 'I can just pick those up.', 'I guess he won\'t need those anymore. But if he does... I don\'t care.', '', '']; gd[65].itemname = 'WALL'; gd[65].node = [1, 4]; gd[65].neededinhand = 64; gd[65].itemstoshow = [68]; gd[65].itemstohide = [65]; gd[65].wrongitems = [8]; gd[65].messages = ['', 'It\'s twice as high as me. I can\'t climb it, there\'s nothing to grab hold of.', 'That won\'t help me climb the wall.', '', 'I wedged the chisels between the cracks in the wall. I think I can climb it now.', '', '', '', '', 'I could stick the hammer in the cracks and pull myself up, but that wouldn\'t get me all the way to the top.']; gd[66].itemname = 'WINCH CHAIN'; gd[66].itemdescription = 'A 15-feet long chain.'; gd[66].pickupable = true; gd[66].node = [8, 11]; gd[66].disappears = true; gd[66].messages = ['I don\'t want to tie the chain to that.', '', '', '', '', 'I can just pick that up.', '', '', '']; gd[67].itemname = 'ENGINE OIL'; gd[67].itemdescription = 'Some motor oil for the car.'; gd[67].pickupable = true; gd[67].node = [7, 11]; gd[67].disappears = true; gd[67].messages = ['I don\'t want to lubricate that.', '', '', '', '', 'I can just pick that up.', '', '', '']; gd[68].itemname = 'CLIMB WALL'; gd[68].room = 18; gd[68].node = [1, 4]; gd[68].startnode = [6, 19]; gd[68].onstage = false; gd[68].itemstoshow = [69]; gd[68].messages = ['', '', '', '', '', 'Thanks to the chisels I can climb that wall now.', '', '', '']; gd[69].itemname = 'DAM'; gd[69].room = 18; gd[69].startnode = [6, 19]; gd[69].onstage = false; gd[70].itemname = 'DAM'; gd[70].neededinhand = 72; gd[70].stateneeded = 2; gd[70].wrongitems = [8, 36, 58]; gd[70].itemstoshow = [80]; gd[70].node = [4, 6]; gd[70].messages = ['It\'s an artificial dam made from huge bricks. There\'s a dry riverbed stretching towards the south.', 'It\'s an artificial dam made from huge bricks. There\'s a dry riverbed stretching towards the south.', 'I can\'t use that to demolish the dam.', '', 'That\'s a good idea, but the bricks are pretty tight. The explosion wouldn\'t have enough power to blow up the dam. I need to choke the detonation.', 'I can\'t use that to demolish the dam.', 'It\'s an artificial dam made from huge bricks. There\'s a dry riverbed stretching towards the south.', '', 'I can\'t use that to demolish the dam.', 'I could demolish the dam with that, but I\'m standing on it, so I\'d rather not. I need to find a way to destroy it from a distance.']; gd[71].itemname = 'LEAF'; gd[71].node = [6, 18]; gd[71].messages = ['There\'s nothing else there.', '', '', '', '', 'I don\'t want to hide that under the leaf.', 'There was a hand-grenade underneath the leaf.', '', 'I don\'t want to hide that under the leaf.']; gd[72].itemname = 'HAND-GRENADE'; gd[72].itemdescription = 'A hand-grenade. I better be careful with this.'; gd[72].pickupable = true; gd[72].disappears = true; gd[72].messages = ['I don\'t want to blow that up.', '', '', '', '', '', '', '', '']; gd[73].itemname = 'RIVER'; gd[73].numberofstates = 2; gd[73].stateneeded = 2; gd[73].lockstate = true; gd[73].node = [4, 10]; gd[73].neededinhand = 72; gd[73].itemstohide = [46, 70, 83]; gd[73].itemstoshow = [50, 74, 80, 78, 106]; gd[73].messages = ['The river is now flowing towards the south.', 'The river is wide. It\'s flowing towards the east. This might be the same river I saw at the furnaces where the Professor is working. There\'s an artificial dam that prevents it from flowing to the south.', 'I don\'t want to throw that into the river.', '', 'Okay, that was careless, I admit. And I should\'ve been standing a lot further away... But the river is now flowing towards the south. The eastern riverbed has revealed three underwater tombs.', '', '', '', 'I\'ve meddled enough with the river. I\'d better leave it alone.']; gd[74].itemname = 'TOMBSTONE'; gd[74].neededinhand = 66; gd[74].itemstoshow = [75]; gd[74].itemstohide = [74]; gd[74].wrongitems = [8, 36, 58, 64]; gd[74].onstage = false; gd[74].node = [2, 13]; gd[74].messages = ['', 'The tombstone is made of rock. There\'s a hook on it.', 'That won\'t help me slide the tombstone open.', '', 'I have attached the chain to the hook in the tombstone.', '', '', '', '', 'It doesn\'t provide enough leverage. Plus I\'m not strong enough. I need to find another way.']; gd[75].itemname = 'TOMBSTONE WITH CHAIN ATTACHED'; gd[75].numberofstates = 2; gd[75].onstage = false; gd[75].fixedpickupable = true; gd[75].node = [3, 16]; gd[75].messages = ['I pulled on the chain, but the tombstone won\'t budge.', '', '', '', '', 'That won\'t help me pull the chain harder.', 'I pulled on the chain, but the tombstone won\'t budge.', '', '']; gd[76].itemname = 'STUMP'; gd[76].neededinhand = 75; gd[76].itemstohide = [75]; gd[76].itemstoshow = [77, 79]; gd[76].node = [4, 10]; gd[76].messages = ['The stump has done all it can for me.', 'The stump and the tree trunk make a \'V\' shape.', 'I don\'t want to put that there.', '', 'I threw the chain over the stump.', '', '', '', '']; gd[77].itemname = 'CHAIN END'; gd[77].numberofstates = 2; gd[77].fixedpickupable = true; gd[77].onstage = false; gd[77].node = [4, 8]; gd[77].messages = ['I tugged at the chain with all my weight, but the tombstone still won\'t budge.', '', '', '', '', 'That won\'t help me pull the chain harder.', 'I tugged at the chain with all my weight, but the tombstone still won\'t budge.', '', '']; gd[78].itemname = 'LOOSE BRICK'; gd[78].onstage = false; gd[78].neededinhand = 77; gd[78].itemstohide = [77, 78]; gd[78].itemstoshow = [79, 81]; gd[78].wrongitems = [8, 36, 58]; gd[78].node = [4, 8]; gd[78].messages = ['', 'I can probably dislodge that brick with something.', 'That won\'t help me move that brick.', '', 'I\'ve tied the end of the chain to the loose brick.', '', '', '', '', 'That\'s a good idea. I\'ll need something long, strong and thin to move that brick. But I don\'t want to waste it, I could use it as a weight.']; gd[79].itemname = 'TOMBSTONE'; gd[79].neededinhand = 67; gd[79].onstage = false; gd[79].node = [2, 13]; gd[79].messages = ['The tombstone is now all oiled up, ready to open.', 'I still can\'t move the tombstone.', 'That won\'t help me loosen the tombstone.', '', 'I have poured the motor oil all the way around the tombstone\'s edge.', '', '', '', 'I\'ve oiled up the tombstone. Now I should try opening it by moving that big brick.']; gd[80].itemname = 'DEEP DITCH'; gd[80].onstage = false; gd[80].node = [2, 11]; gd[80].messages = ['The ditch is now full of water. I think after I blew up the dam the water from the river got redirected here.', 'The ditch is now full of water. I think after I blew up the dam the water from the river got redirected here.', 'I don\'t want to throw that into the ditch.', '', '', 'I don\'t want to throw that into the ditch.', 'The ditch is now full of water. I think after I blew up the dam the water from the river got redirected here.', '', 'I don\'t want to throw that into the ditch.']; gd[81].itemname = 'LOOSE BRICK'; gd[81].req = [79]; gd[81].neededinhand = 36; gd[81].numberofstates = 2; gd[81].stateneeded = 2; gd[81].lockstate = true; gd[81].onstage = false; gd[81].itemstoshow = [82]; gd[81].itemstohide = [79]; gd[81].node = [4, 8]; gd[81].messages = ['', 'I can\'t move the brick by hand.', 'That won\'t help me move the brick.', 'I wedged the steel rod between the cracks. The brick started to move, and tightened the chain, but the tombstone still won\'t move. Maybe it needs some lubricant.', 'I dislodged the brick. It fell down into the river and pulled the tombstone open.', '', '', '', '']; gd[82].itemname = 'OPEN GRAVE'; gd[82].onstage = false; gd[82].itemstoshow = [93, 94]; gd[82].itemstohide = [59, 61]; gd[82].node = [2, 15]; gd[82].messages = ['I\'ve done enough grave robbery for today.', '', '', '', '', 'I don\'t want to put that into the grave.', 'There was an obsidian necklace, a ceremonial spear and a ceremonial plume inside. Aside from the corpse of course.', '', 'I don\'t want to put that into the grave.']; gd[83].itemname = ''; gd[83].node = [3, 16]; gd[83].messages = ['', 'I can\'t walk across the river.', '', '', '', '', 'I can\'t walk across the river.', '', '']; gd[84].inventory_happened = true; gd[85].inventory_happened = true; gd[86].itemname = 'WHITE FLOWERS'; gd[86].itemdescription = 'This plant has white flowers and a bulby root. Smells a bit like garlic.'; gd[86].pickupable = true; gd[86].node = [7, 14]; gd[86].combinewith = 153; gd[86].resultitem = 154; gd[86].disappears = true; gd[86].wrongitems = [133, 151]; gd[86].messages = ['No point in using the flower on that.', '', '', '', '', 'I can just pick those up.', 'Looks like I uprooted them.', '', '', 'That\'s the correct ingredient, but it goes later into the bowl...']; gd[87].itemname = 'OBSIDIAN NECKLACE'; gd[87].itemdescription = 'The necklace\'s ornaments are made of obsidian. They look like small spearheads.'; gd[87].pickupable = true; gd[87].combinewith = 108; gd[87].resultitem = 109; gd[87].disappears = true; gd[87].messages = ['I don\'t want to attach the necklace to that.', '', '', '', '', '', '', '', '']; gd[88].itemname = 'CEREMONIAL SPEAR'; gd[88].itemdescription = 'It\'s a long spear. Looks fancy.'; gd[88].pickupable = true; gd[88].disappears = true; gd[88].messages = ['I don\'t want to poke that with the spear.', '', '', '', '', '', '', '', '']; gd[89].itemname = 'PLUME'; gd[89].itemdescription = 'It was on the head of the dead guy in the tomb. It\'s made of small feathers. It has some blue powder on it. The powder is very fine, but I don\'t know what it is. If only I had a way to examine it more closely...'; gd[89].pickupable = true; gd[89].combinewith = 109; gd[89].resultitem = 110; gd[89].disappears = false; gd[89].wrongitems = [108]; gd[89].messages = ['I could decorate that with the plume. But why should I?', '', '', '', '', '', '', '', '', 'I could make arrows, but I need arrowheads first.']; gd[90].itemname = ''; gd[90].node = [2, 8]; gd[91].itemname = 'MICROSCOPE'; gd[91].neededinhand = 89; gd[91].itemstoshow = [95]; gd[91].node = [5, 15]; gd[91].messages = ['It\'s a small portable microscope.', 'It\'s a small portable microscope.', 'I don\'t want to magnify that.', '', 'The blue dust on the plume seems to be pollen. I think I saw some bushes with blue flowers near the furnaces.', '', '', '', 'I already examined everything I wanted.']; gd[93].itemname = 'HARBACH'; gd[93].onstage = false; gd[93].node = [1, 6]; gd[93].dialog = ['1HARBACH:\rMiss Montrose! Where were you? Did you hear that explosion? What happened?', '1HEATHER:\rIt\'s all right, Professor. It was me. I changed the direction of the river. It seems that Dunmore experienced more than just visions.', '1HARBACH:\rWhat do you mean?', '1HEATHER:\rI found graves in the riverbed. And that means someone actually was living here. Which in return means that Lord Dunmore might have actually met some of the natives. I think they were the ones that dug those graves.', '1HARBACH:\rUnderwater burial is very difficult. A simple dead man would not receive such attention.', '1HEATHER:\rThat\'s for sure. A simple dead man also rarely has obsidian necklaces.', '1HARBACH:\rYou mean you opened them?!', '1HEATHER:\rErr... Just one of them. Was that a mistake?', '1HARBACH:\rArcheology is a delicate matter. You should have come straight to me.', '1HEATHER:\rI didn\'t want to bother you until I was sure...', '1HARBACH:\rIt\'s all right. Next time, see me first.', '1HARBACH:\rSo you found an obsidian necklace... what else?', '1HEATHER:\rThis spear, and an ornamental plume that has some blue dust on it.', '1HARBACH:\rLet me see those.', '1HARBACH:\rHmm...', '1HARBACH:\rThe necklace is unique. I\'ve never seen anything like it before.', '1HARBACH:\rThe spear has beautiful ornaments. And the plume... Looks like they chose the feathers of the plume very carefully to produce this pattern.', '1HARBACH:\rI think the man these items belonged to must have been a respected person among his people. A king or priest of some sort. Perhaps a shaman.', '1HEATHER:\rThat concurs with the inscription of Dunmore at the furnaces. I think he might have witnessed the funeral, and wrote that two-liner right there and then, at his camp.', '1HARBACH:\rSo he actually met these people. Amazing.', '1HEATHER:\rYou were right. I would have never imagined. He was actually here. This sheds a new light on everything.', '1HARBACH:\rWhat do you mean by that?', '1HEATHER:\rWell... It just struck me that Dunmore wrote some pretty spooky stuff about the natives.. the Shades as he called them. Until now I thought all that came from the depths of his mind.', '1HEATHER:\rBut now that we have proof that he was here -- proof we didn\'t have until now --, it makes me wonder what else might be real and not fictional.', '1HARBACH:\rHow spooky?', '1HEATHER:\rHave you read Poe?', '1HARBACH:\rSome.', '1HEATHER:\rWell, spookier than that.', '1HARBACH:\rOh...', '1HEATHER:\rRight. Now imagine that some of that stuff is real and it might be nearby.', '1HARBACH:\rOh dear... I never thought about it that way. Again, your expertise provides fresh insight into this matter. Thank you, Dr. Montrose.', '1HARBACH:\rSay, would you mind taking these artifacts down to the camp for me? I have something to discuss with Mr. Ashcroft.', '1HEATHER:\rSure, Professor.', '']; gd[93].messages = ['Let\'s not bother him.', '', '', '', '', 'He doesn\'t need it.', '', '', 'He doesn\'t need it.']; gd[94].itemname = 'ASHCROFT'; gd[94].node = [1, 6]; gd[94].onstage = false; gd[94].dialog = ['1ASHCROFT:\rSome explosion there...', '1HEATHER:\rI\'ve found some graves that prove that Dunmore was actually here.', '1ASHCROFT:\rWe already knew that.', '1HEATHER:\rNo, we didn\'t. We suspected it.', '1ASHCROFT:\rWell, I was sure. Or rather... I had faith in it. As I\'m starting to have faith in you. Since you arrived, things seem to be progressing at quite a pace.', '1HEATHER:\rI want your respect and you give me faith. What a deal.', '1ASHCROFT:\rWhen you get older, you\'ll find that faith will get you a lot further than respect.', '1HEATHER:\rWell, when I get older, I\'ll let you know how that went for me.', '']; gd[94].messages = ['I\'ll just leave him alone. He\'d just insult me anyway.', '', '', '', '', 'I\'d better hold on to that.', '', '', 'I\'d better hold on to that.']; gd[95].itemname = 'BUSH WITH BLUE FLOWERS'; gd[95].onstage = false; gd[95].neededinhand = 58; gd[95].numberofstates = 2; gd[95].stateneeded = 2; gd[95].lockstate = true; gd[95].itemstoshow = [96]; gd[95].node = [0, 3]; gd[95].messages = ['', 'It\'s a thick bush that has bright blue flowers. The flowers even have blue pollen.', 'That won\'t help me get through these bushes.', '', 'There was a secret staircase behind the bush!', '', '', '', '']; gd[96].itemname = 'WALK TO JUNGLE'; gd[96].onstage = false; gd[96].itemstohide = [52, 93, 94, 96]; gd[96].itemstoshow = [97, 98, 100, 103, 104, 105]; gd[96].node = [0, 3]; gd[96].messages = ['', '', '', '', '', 'I can just walk there.', '', '', '']; gd[97].itemname = 'WALK TO JUNGLE'; gd[97].room = 19; gd[97].onstage = false; gd[97].node = [0, 3]; gd[97].startnode = [9, 2]; gd[97].messages = ['', '', '', '', '', 'I can just walk there.', '', '', '']; gd[98].itemname = 'LUGGAGE'; gd[98].onstage = false; gd[98].node = [5, 15]; gd[98].messages = ['I got everything I need from my luggage.', '', '', '', '', 'I don\'t want to put that into my luggage.', 'Mr. Carrow has brought my luggage from the airstrip. I took a pair of stockings, a lighter and some boot polish from it.', '', 'I don\'t want to put that into my luggage.']; gd[99].itemname = 'STOCKINGS'; gd[99].itemdescription = 'A pair of ladies stockings.'; gd[99].pickupable = true; gd[99].combinewith = 137; gd[99].resultitem = 138; gd[99].disappears = true; gd[99].messages = ['I don\'t want to wrap those into the stockings.', '', '', '', '', '', '', '', '']; gd[100].itemname = 'RAMPARTS'; gd[100].room = 19; gd[100].startnode = [9, 2]; gd[100].onstage = false; gd[101].itemname = 'LIGHTER'; gd[101].itemdescription = 'A lighter. It makes fire. Nothing special.'; gd[101].pickupable = true; gd[101].combinewith = 145; gd[101].resultitem = 146; gd[101].messages = ['I don\'t want to light that on fire.', '', '', '', '', '', '', '', '']; gd[102].itemname = 'BOOT-POLISH'; gd[102].itemdescription = 'It makes my boot waterproof. In fact I have polished my boot with it as soon as I got it out from my luggage. I can now wade through water.'; gd[102].pickupable = true; gd[102].itemstoshow = [107]; gd[102].itemstohide = [106]; gd[102].messages = ['I don\'t want to make that waterproof.', '', '', '', '', '', '', '', '']; gd[103].itemname = 'HARBACH'; gd[103].onstage = false; gd[103].node = [5, 11]; gd[103].dialog = ['1HARBACH:\rDr. Montrose, have you seen the ramparts?', '1HEATHER:\rI took a glimpse yesterday, but then it got dark, so I came back. Have you been there?', '1HARBACH:\rYes, I just got back. That wall looks amazing, don\'t you think? I\'m currently trying to figure out how to get over it.', '1HARBACH:\rI think we should proceed carefully, but Mr. Ashcroft doesn\'t really care about the archeological value of this place. To be honest, I\'m a bit dubious about his purpose here. He seems interested only in the end, whatever that may be. He is absolutely unconcerning about the means.', '1HEATHER:\rBut you must have known from the beginning that you two have different values.', '1HARBACH:\rOf course my dear. All that nonsense about faith and his beliefs are of little interest to me. If you ask me, man shouldn\'t meddle with these sort of things.', '1HEATHER:\rWhat things?', '1HARBACH:\rYou know... The superstitious kind. Visions, omens and magic.', '1HEATHER:\rYes, sure. But what do these things have anything to do with us? Why did you even bring it up?', '1HARBACH:\rMr. Ashcroft.', '1HEATHER:\rWhat about him?', '1HARBACH:\rBefore we started out on our expedition, I did a little research on him too.', '1HARBACH:\rIt turns out that he is well known in certain circles. Obscure companies whose members gather and practice \'magic\'. Now you must understand that any person who deals with such matters, instantly discredits himself before me.', '1HARBACH:\rAnd still... there\'s something about this Ashcroft character. Even though I disliked him from the beginning, he somehow managed to convince me to let him fund this project.', '1HEATHER:\rIt must have been an offer you couldn\'t refuse. You shouldn\'t feel guilty about this.', '1HARBACH:\rI wish that were true. He twisted and turned every word until I found myself on a plane on my way to Africa. And while this was my idea, I can\'t deny that he has more influence over me and the dig than I\'m comfortable with.', '1HEATHER:\rWhere is he now?', '1HARBACH:\rAt the ramparts. He\'s trying to find a way in. Maybe you should talk to him. I think I\'ll go for a walk to clear my head.', '1HEATHER:\rAll right, Professor.', '']; gd[103].messages = ['I\'ve heard all he has to say. I should go see Ashcroft.', '', '', '', '', 'I\'d better hold on to those.', '', '', 'I\'d better hold on to those.']; gd[104].itemname = 'ASHCROFT'; gd[104].onstage = false; gd[104].node = [8, 15]; gd[104].itemstohide = [103]; gd[104].dialog = ['1HEATHER:\rDr. Ashcroft.', '1ASHCROFT:\rYes, Miss Montrose?', '1HEATHER:\rSome wall.', '1ASHCROFT:\rYes. I walked along it as far as I could, but the dense foliage makes it very difficult. I don\'t think there\'s any way we can get through.', '1HEATHER:\rCan\'t someone climb it?', '1ASHCROFT:\rI don\'t think so. I\'ll ask Carrow later.', '1ASHCROFT:\rI think we\'ll have to detonate.', '1HEATHER:\rWhy would we do that?', '1ASHCROFT:\rWell, that\'s strange, coming from you. Yesterday you blew up a whole dam. Suddenly you have concerns? You enjoyed it, admit it.', '1HETHER:\rProfessor Harbach was right, I should have consulted him first.', '1ASHCROFT:\rLook, Miss. Let\'s not beat around the bush. We both know that the Professor is a great scholar, but not a great man. It takes a man to get to where I want to go. And where I want to go is over that wall.', '1ASHCROFT:\rNow, one can ponder how invaluable this wall is, or one can realise that demolishing a section of it won\'t make any real difference. Not to you, not to me, and not even to the good Professor. The answers we\'re looking for are on the other side.', '1HEATHER:\rI don\'t know...', '1ASHCROFT:\rWe all want the same thing, but for different reasons. We want to find the city. I\'m certain we\'re near. I can feel it.', '1HEATHER:\rWhat are your reasons, Dr. Ashcroft? If the city really exists -- and from the looks of it, it does --, it\'ll be the archeological find of the century. But what do you hope to find there?', '1ASHCROFT:\rKnowledge, just like you. The only difference between us is that I\'ll be able to use that knowledge.', '1HEATHER:\rI don\'t understand.', '1ASHCROFT:\rYou\'re not supposed to. You\'re supposed to help me blow up the wall. That\'s what going to get us forward.', '1ASHCROFT:\rThink about it.', '1HEATHER:\rI\'ll see...', '']; gd[104].messages = ['I don\'t like him.', '', '', '', '', '', '', '', 'Why would I want to give him anything? He\'s rude.']; gd[105].itemname = 'CARROW'; gd[105].onstage = false; gd[105].node = [6, 6]; gd[105].dialog = ['1HEATHER:\rMr. Carrow...', '1CARROW:\rYes?', '1HEATHER:\rHow\'s Mr. Burke?', '1CARROW:\rStill the same.', '1CARROW:\rI thought about driving him to Shansoonoo to the hospital, but he\'s very weak. After I fix the car, I think I\'ll risk the trip anyway. There\'s nothing I can do for him here.', '1HEATHER:\rCan I help?', '1CARROW:\rNot unless you figure out what\'s wrong with him and find a cure.', '1CARROW:\rOr maybe some local medicine could help. But as I said, there\'s no one here but us.', '1HEATHER:\rActually, that might not be true.', '1CARROW:\rHow come?', '1HEATHER:\rYesterday I found some graves that were made by the natives, the Shades.', '1HEATHER:\rUntil now I believed that Dunmore\'s poems were a fairy tale. But yesterday we uncovered proof that he actually was here. He wrote extensively about the shades. The graves prove their existence. What if they\'re still around?', '1CARROW:\rI didn\'t want to bring this up... I thought it might scare you. But now I see that I shouldn\'t worry about that.', '1CARROW:\rSometimes I hear things from the jungle. Now I\'ve spent a lot of time in the jungle and I know the noises it makes. But I\'ve never heard anything like this before.', '1CARROW:\rI can\'t really describe it. It\'s like I\'m hearing it, and I\'m not. At the same time.', '1HEATHER:\rHow can that be?', '1CARROW:\rI don\'t know. It doesn\'t make sense.', '1CARROW:\rWhere did you find those graves anyway?', '1HEATHER:\rTowards the west.', '1CARROW:\rThat\'s where Burke was stung by that thing.', '1CARROW:\rMaybe you should look around there. I\'ll try to fix the car in the meantime.', '1HEATHER:\rAll right.', '1HEATHER:\rOh, one more thing. We might need some explosives. I\'ve seen that crate over there and...', '1CARROW:\rFor what?', '1HEATHER:\rWell... Dr. Ashcroft might want to use them to get into the city. I\'ve found a high wall yesterday.', '1CARROW:\rI see. Well, I\'d love to help, but the crate has a combination lock and only Burke knows the combination. If you manage to get him well before I ship him out to Shansoonoo, he might tell you the code.', '1HEATHER:\rThank you. See you around.', '1CARROW:\rHave a nice day.', '']; gd[106].itemname = 'STREAM'; gd[106].req = [102]; gd[106].node = [2, 10]; gd[106].onstage = false; gd[106].messages = ['', '', '', '', '', 'I don\'t want to throw that into the stream.', '', 'It\'s not too deep, but my boots are not watertight. And I\'m not going into the water without watertight boots.', '']; gd[107].itemname = 'FOLLOW STREAM INTO JUNGLE'; gd[107].onstage = false; gd[107].node = [1, 5]; gd[107].room = 20; gd[107].startnode = [9, 18]; gd[107].itemstoshow = [111]; gd[107].messages = ['', '', '', '', '', 'I can just walk there.', '', '', 'I can just walk there.']; gd[108].itemname = 'REED'; gd[108].itemdescription = 'A couple of pieces of long and straight reed.'; gd[108].pickupable = true; gd[108].neededinhand = 58; gd[108].combinewith = 87; gd[108].resultitem = 109; gd[108].disappears = true; gd[108].node = [4, 17]; gd[108].wrongitems = [89]; gd[108].messages = ['I don\'t want to attach that to the reed.', 'The reed is long and straight. I\'ll need something to chop it off with.', 'That won\'t help me harvest the reed.', '', 'I\'ve got a couple of nice clean pieces of reed.', '', '', '', '', 'I could make arrows, but I need arrowheads first.']; gd[109].itemname = 'ARROWS WITHOUT FLETCHING'; gd[109].itemdescription = 'I have attached little spearheads from the necklace onto the reed. But to make them into arrows they still need fletching.'; gd[109].pickupable = true; gd[109].combinewith = 89; gd[109].resultitem = 110; gd[109].disappears = true; gd[109].messages = ['I don\'t want to attach that to the arrows.', '', '', '', '', 'I\'ve attached the arrow-shaped pieces to the reed.', '', '', '']; gd[110].itemname = 'ARROWS'; gd[110].itemdescription = 'A couple of hand-made arrows.'; gd[110].pickupable = true; gd[110].combinewith = 140; gd[110].resultitem = 145; gd[110].wrongitems = [155, 134]; gd[110].messages = ['I don\'t want to stick the arrows into that.', '', '', 'I need that hanky for now.', '', 'I have arrows.', '', '', '', 'That might be a good idea, but later...']; gd[111].itemname = 'POND'; gd[111].onstage = false; gd[111].room = 20; gd[111].startnode = [9, 18]; gd[112].itemname = 'DRUM'; gd[112].neededinhand = 34; gd[112].stateneeded = 2; gd[112].node = [1, 5]; gd[112].wrongitems = [8, 36, 58, 88]; gd[112].messages = ['', 'The drum seems to be in pretty good condition. As is someone were looking after it. I tried to hit it with my fist, but the sound it made was pretty weak.', 'I might damage the drum. Let\'s use something else.', '', 'Wow. After I had beaten the drum, I think I saw someone in the jungle just for a second. But the they disappeared. Maybe they\'re afraid of me...', '', '', '', '', 'I might break the skin on the drum. Besides I think I need the proper drumstick to use the drum. This might not produce the perfect sound.']; gd[113].itemname = 'NATIVE'; gd[113].stateneeded = 2; gd[114].itemname = 'STATUE'; gd[114].inventory_happened = true; gd[114].node = [1, 6]; gd[114].messages = ['This statue looks a lot like that painting I saw on the wall of that old house, near the deep ditch.', '', '', '', '', '', '', '', 'I don\'t want to do that to the statue.']; gd[115].itemname = 'BIRD'; gd[115].numberofstates = 2; gd[115].stateneeded = 2; gd[115].lockstate = true; gd[115].neededinhand = 63; gd[115].req = [110]; gd[115].itemstohide = [115]; gd[115].itemstoshow = [116]; gd[115].node = [8, 3]; gd[115].messages = ['', 'It looks like a parrot. It has bright red feathers.', 'That won\'t help me catch the bird.', 'I have no arrows.', 'Sorry.', '', '', '', '']; gd[116].itemname = 'DEAD BIRD'; gd[116].onstage = false; gd[116].node = [8, 2]; gd[116].messages = ['I\'ve got all the feathers I need.', '', '', '', '', 'Let\'s not do that.', 'I took one red tail feather.', '', 'I\'ve done enough damage.']; gd[117].itemname = 'CRIMSON TAIL FEATHER'; gd[117].itemdescription = 'A large and very red feather.'; gd[117].pickupable = true; gd[117].disappears = true; gd[117].messages = ['I don\'t want to waste this nice feather on that.', '', '', '', '', '', '', '', '']; gd[118].itemname = 'HELMET'; gd[118].neededinhand = 117; gd[118].numberofstates = 2; gd[118].stateneeded = 2; gd[118].lockstate = true; gd[118].node = [1, 6]; gd[118].messages = ['Looking good so far...', 'There are three holes on the tip of the helmet.', 'If I\'m gonna stick something into the helmet, it\'s not going to be that.', '', '', '', '', '', 'The helmet is already nice enough.']; gd[119].itemname = 'FACE'; gd[119].numberofstates = 2; gd[119].stateneeded = 2; gd[119].lockstate = true; gd[119].neededinhand = 4; gd[119].node = [1, 6]; gd[119].messages = ['Sweet.', 'It looks like someone smeared paint over the statue\'s face, then wiped it off.', 'I\'m not going to.', '', '', '', '', '', 'No way.']; gd[120].itemname = 'HARBACH'; gd[120].onstage = false; gd[120].itemstohide = [160]; gd[120].node = [1, 6]; gd[120].dialog = ['1HEATHER:\rProfessor! I\'m glad you\'re back. I have important news.', '1HARBACH:\rYes?', '1HEATHER:\rI\'ve found the natives.', '1HARBACH:\rWhere?', '1HEATHER:\rFurther to the west, along the river. They hide pretty well. In fact they call themselves \'Shades\'.', '1HARBACH:\rThat\'s extraordinary. Dunmore mentioned ghost people he called Shades. So they are real?', '1HEATHER:\rWait, there\'s more. They speak English. Well, at least their shaman does.', '1HARBACH:\rHow is that possible?', '1HEATHER:\rWell, according to him, Dunmore taught them. He said Dunmore came from the city and he brought the word of the spirit that shows the way.', '1HEATHER:\rThen I guess he stayed with them long enough for him to teach them English. They think he was a prophet.', '1HARBACH:\rI see.', '1HEATHER:\rDo you? Because I don\'t.', '1HARBACH:\rWell, we know now that we can take Dunmore\'s poems a lot more literally than we previously thought we could.', '1HARBACH:\rAnd from that we can deduce what had happened.', '1HARBACH:\rGive me a moment to think...', '1HARBACH:\rMmm...', '1HARBACH:\r... he must have...', '1HARBACH:\r... then he...', '1HARBACH:\r...', '1HARBACH:\rAll right. Here\'s what I think happened.', '1HARBACH:\rDunmore arrived from the north. We know that, because he mentions a city that still exists today about a hundred miles to the north of here', '1HARBACH:\rSo he came from the north, he found the city of Hetherdale, maybe by accident, and set up camp near the temple.', '1HARBACH:\rHe spent some time there, and he had hallucinations. We know that from the poems too.', '1HARBACH:\rThen something happened to him. We know that from his poem Rope\'s End.', '1HARBACH:\rAfter that he somehow ended up at the village of these Shades.', '1HARBACH:\rAnd for some reason they thought he was a prophet. It must have to do with what happened to him at the temple.', '1HARBACH:\rFrom his writings it seemed he simply went mad. In many primitive cultures madness is considered a gift. Often the insane are revered like sacred people.', '1HARBACH:\rMaybe that\'s why they called him a prophet.', '1HEATHER:\rI\'m impressed, Professor.', '1HARBACH:\rThank you dear. Mind you, this is all speculation.', '1HARBACH:\rNevertheless, I think I\'ll go and see them right away. Could you direct me to them?', '1HEATHER:\rWell you\'ll have to climb a wall.', '1HARBACH:\rThe one you put the chisels in?', '1HEATHER:\rYes.', '1HARBACH:\rThat won\'t be a problem.', '1HEATHER:\rAll right. You climb that wall, keep west. At the dam, follow the stream to the north. At the pond turn west. Keep straight to the west. Their village is on a clearing about two miles from the pond.', '1HARBACH:\rThank you.', '1HEATHER:\rOne more thing. It looks like Mr. Ashcroft has made up his mind about blowing up the ramparts. What do you think we should do?', '1HARBACH:\rWell, after all you\'ve told me, I admit I agree with him. We need to get into the city. I have to find out what happened to Dunmore at the temple.', '1HEATHER:\rWell... Okay. Thanks for your time.', '1HARBACH:\rSee you later, dear.', '']; gd[120].messages = ['Let\'s not bother him.', '', '', '', '', 'He doesn\'t want it.', '', '', 'He doesn\'t want it.']; gd[121].itemname = 'BELT'; gd[121].numberofstates = 2; gd[121].stateneeded = 2; gd[121].lockstate = true; gd[121].neededinhand = 40; gd[121].node = [1, 6]; gd[121].messages = ['The shell fits snugly into the oval recess.', 'There\'s an oval dent on the belt. Something\'s missing here.', 'His belt needs something else.', '', '', '', '', '', 'Why?']; gd[122].itemname = 'HAND'; gd[122].numberofstates = 2; gd[122].stateneeded = 2; gd[122].lockstate = true; gd[122].neededinhand = 88; gd[122].node = [1, 6]; gd[122].messages = ['The spear fits perfectly.', 'There\'s something missing from his hand.', 'Not a good idea.', '', '', '', '', '', 'Nah...']; gd[123].itemname = 'szobor placeholder'; gd[123].numberofstates = 2; gd[123].stateneeded = 2; gd[123].lockstate = true; gd[123].req = [118, 119, 121, 122]; gd[123].itemstohide = [112, 113, 114]; gd[123].itemstoshow = [124, 125]; gd[123].messages = ['', '', '', '', '', '', 'The statue is all dressed up.', 'That looks good. I should keep going.', '']; gd[124].itemname = 'DRESSED UP STATUE'; gd[124].onstage = false; gd[124].node = [1, 6]; gd[124].messages = ['I have dressed up the statue to resemble the picture I saw on the wall.', '', '', '', '', 'Nothing I do will make this statue more beautiful.', 'I have dressed up the statue to resemble the picture I saw on the wall.', '', 'Nothing I do will make this statue more beautiful.']; gd[125].itemname = 'DRUM'; gd[125].onstage = false; gd[125].neededinhand = 34; gd[125].wrongitems = [8, 36, 58, 88]; gd[125].node = [1, 5]; gd[125].itemstoshow = [126]; gd[125].messages = ['The drum seems to be in pretty good condition. As is someone were looking after it.', 'The drum seems to be in pretty good condition. As is someone were looking after it.', 'I might damage the drum. Let\'s use something else.', '', 'Okay, that is creepy. A dark skinned man just appeared from behind that tree.', '', '', '', 'Enough music already.', 'I might break the skin on the drum. Besides I think I need the proper drumstick to use the drum. This might not produce the perfect sound.']; gd[126].itemname = 'NATIVE'; gd[126].onstage = false; gd[126].numberofstates = 2; gd[126].stateneeded = 2; gd[126].lockstate = true; gd[126].dialog = ['1HEATHER:\rUmm... Hello there...', '1NATIVE:\rKom...', '1HEATHER:\rErr... Okay... let\'s not do anything wild here...', '1NATIVE:\rKom...', '1This is impossible! I think he\'s saying \'come\'.', '']; gd[126].itemstohide = [126]; gd[126].itemstoshow = [127]; gd[126].node = [1, 5]; gd[126].messages = ['', '', '', '', '', 'I need that.', '', '', '']; gd[127].itemname = 'FOLLOW NATIVE INTO JUNGLE'; gd[127].onstage = false; gd[127].room = 21; gd[127].node = [1, 5]; gd[127].startnode = [3, 19]; gd[127].itemstoshow = [128, 129]; gd[127].itemstohide = [127]; gd[127].messages = ['', '', '', '', '', 'I need that.', '', '', '']; gd[128].itemname = 'WALK TO JUNGLE'; gd[128].room = 21; gd[128].node = [1, 5]; gd[128].onstage = false; gd[128].startnode = [3, 19]; gd[128].messages = ['', '', '', '', '', 'I don\'t want to throw that into the jungle.', '', '', '']; gd[129].itemname = 'VILLAGE OF SHADES'; gd[129].room = 21; gd[129].startnode = [3, 19]; gd[129].onstage = false; gd[130].inventory_happened = true; gd[131].itemname = 'SHAMAN'; gd[131].node = [3, 6]; gd[131].itemstohide = [104]; gd[131].itemstoshow = [134, 135, 160]; gd[131].dialog = ['1HEATHER:\rHello...', '1SHAMAN:\r[...speaking native...]', '1HEATHER:\rUmm... Sorry, I don\'t understand...', '1SHAMAN:\rYou speak the prophet\'s tongue.', '1HEATHER:\rAnd you speak English.', '1SHAMAN:\rDo I?', '1HEATHER:\rWait... What do you mean the prophet\'s tongue?', '1SHAMAN:\rThe prophet Dahn-Mor.', '1HEATHER:\rDunmore? Did you say Dunmore?', '1SHAMAN:\rYes.', '1SHAMAN:\rWho are you?', '1HEATHER:\rMy name is Heather.', '1SHAMAN:\rI am Mazum.', '1HEATHER:\rHi there. So how come you speak English?', '1SHAMAN:\rThe prophet Dahn-Mor taught us.', '1HEATHER:\rThat\'s impossible. He lived more than a hundred years ago.', '1SHAMAN:\rHe taught my father\'s father. My father taught me.', '1HEATHER:\rAmazing. Who are you people?', '1SHAMAN:\rWe are Shades. Children of Mordighan.', '1HEATHER:\rSo Dunmore was here and he taught you people English.', '1SHAMAN:\rYes.', '1HEATHER:\rOkay... I know we just met, but... Could you tell me the whole story?', '1SHAMAN:\rWhat story?', '1SHAMAN:\rThe one about Dunmore. The prophet.', '1SHAMAN:\rHe came many many moons after we left the city. He brought back the ancient word of Mordighan.', '1HEATHER:\rWho\'s this Mordighan character?', '1SHAMAN:\rThe spirit of the Earth. He helped us. But not any more. We abandoned him after the last shaman who spoke the word of Mordighan has betrayed us.', '1HEATHER:\rAnd what is this city you mentioned?', '1SHAMAN:\rThe old city where my ancestors lived. Where Mordighan lives.', '1HEATHER:\rSo this spirit lives in the city?', '1SHAMAN:\rUnder the city.', '1HEATHER:\rAnd what does he do there?', '1SHAMAN:\rHe shows the way. For those who are worthy.', '1HEATHER:\rSo Dunmore came from the city and he brought the word of the spirit that shows the way.', '1SHAMAN:\rYes.', '1HEATHER:\rCan you tell me where this city is?', '1SHAMAN:\rTurn your back to the sun when it is the highest on the sky.', '1SHAMAN:\rYou wish to go the city?', '1HEATHER:\rYes, that\'s why we\'re here.', '1SHAMAN:\rYou wish to see Mordighan?', '1HEATHER:\rWell, I don\'t know. Do I?', '1SHAMAN:\rOnly the strong may see him.', '1HEATHER:\rI understand.', '1HEATHER:\rActually I don\'t, but thanks anyway.', '1HEATHER:\rSo what\'s wrong with your friend over there?', '1SHAMAN:\rHe has been stung by the daraj-plant. But I have made medicine. He will be healed.', '1HEATHER:\rCan you tell me what\'s in the medicine?', '1SHAMAN:\rThe root of the feher-flower, the mouth of the hoosheveo-plant and honey.', '1HEATHER:\rUmm... Okay. Thanks. I only understood honey. Maybe Carrow knows the rest.', '1HEATHER:\rWell thank you for everything. I\'ll let you get back to business.', '1SHAMAN:\rYes.', '1HEATHER:\rWell... Bye.', '']; gd[131].messages = ['I don\'t want to bother him.', '', '', '', '', 'He doesn\'t seem to want it.', '', '', 'He doesn\'t seem to want it.']; gd[132].itemname = 'ILL NATIVE'; gd[132].node = [3, 8]; gd[132].messages = ['He looks bad. There\'s a big red spot on his right arm. Something must have bit him.', '', '', '', '', 'He can\'t take it, he\'s unconscious.', 'He looks bad. There\'s a big red spot on his right arm. Something must have bit him.', '', 'He can\'t take it, he\'s unconscious.']; gd[133].itemname = 'BOWL'; gd[133].itemdescription = 'An empty bowl that had the shaman\'s medicine in it. Phew, it stinks!'; gd[133].pickupable = true; gd[133].itemstohide = [105]; gd[133].node = [3, 7]; gd[133].combinewith = 149; gd[133].resultitem = 151; gd[133].disappears = true; gd[133].wrongitems = [144, 86]; gd[133].messages = ['Let\'s not put that into the bowl.', '', '', '', '', 'I don\'t want to put that into the bowl.', 'Phew, it smells of rotten meat.', '', '', 'That\'s the correct ingredient, but it goes later into the bowl...']; gd[134].itemname = 'CARROW\'S HANDKERCHIEF'; gd[134].itemdescription = 'It\'s a white handkerchief. It has the initials J.C. on it. I think it belongs to Carrow.'; gd[134].pickupable = true; gd[134].onstage = false; gd[134].node = [6, 2]; gd[134].combinewith = 110; gd[134].resultitem = 145; gd[134].disappears = true; gd[134].messages = ['That won\'t work.', '', '', '', '', 'Nah...', '', '', '']; gd[135].itemname = 'CARROW'; gd[135].neededinhand = 134; gd[135].node = [6, 6]; gd[135].onstage = false; gd[135].itemstohide = [29]; gd[135].itemstoshow = [156]; gd[135].dialog = ['1HEATHER:\rIs this yours?', '1CARROW:\rYep. I was poking around in the bushes when I grabbed some plant and it stank up my hand. I tried to wipe it down with my handkerchief, but the only thing I managed to achieve was to make the cloth smelly too. So I washed and hung it out to dry.', '1HEATHER:\rWhat kind of plant?', '1CARROW:\rIt looked like some carnivorous plant.', '1HEATHER:\rOh, as long as we\'re talking about plants. Do you know what a feher-plant or a hoosh... hooshee.. something plant is?', '1CARROW:\rThe feher has a white flower and it\'s got a bulby root just like an onion or garlic. The other one is the carnivorous plant I grabbed accidentally.', '1HEATHER:\rWhere did that happen?', '1CARROW:\rNear the old houses, by that deep ditch.', '1CARROW:\rListen, I\'d love to chat, but Ashcroft has been bugging me about detonating that wall you found. So I\'m gonna go ahead and carry all the equipment I can to the ramparts.', '1HEATHER:\rI\'m still not sure that blowing up the wall is a good idea.', '1CARROW:\rIt\'s not my call. They pay me, so I do what they tell me. Sorry, but that\'s how it works.', '1HEATHER:\rSure, no problem.', '1CARROW:\rAfter the equipment is there, I hope I\'ll finally be able to fix the car. That genius Ashcroft doesn\'t seem to get that in order to detonate, we need the combination of that crate. And for that, we need Burke awake. And unless there\'s a miracle, that will only happen at the hospital.', '1HEATHER:\rI met some of the locals, they told me about a medicine that heals such injuries.', '1CARROW:\rThen go ahead and prepare it. If your concoction works, you might spare me a trip to Shansoonoo.', '1CARROW:\rListen, I really gotta go.', '1HEATHER:\rSure. See you.', '']; gd[135].messages = ['He\'s busy, I\'ll let him be.', 'I don\'t want to bother him unless I have a reason.', 'He doesn\'t need it.', '', '', '', '', '', 'He doesn\'t want it.']; gd[136].itemname = 'THICK SHRUBBERY'; gd[136].numberofstates = 2; gd[136].stateneeded = 2; gd[136].lockstate = true; gd[136].req = [135]; gd[136].itemstohide = [135]; gd[136].itemstoshow = [142, 175, 176, 177, 178]; gd[136].node = [3, 3]; gd[136].messages = ['That carnivorous plant was the only thing interesting in the bushes.', '', '', '', '', 'Let\'s not hide that in the bushes.', 'Wow, there\'s that carnivorous plant Carrow mentioned. Phew, it stinks.', 'It\'s dense and thick. I don\'t want to poke around in there unless I have a reson.', 'Let\'s not hide that in the bushes.']; gd[137].itemname = 'FORKED TWIG'; gd[137].itemdescription = 'It\'s a strong twig that has a forked end.'; gd[137].pickupable = true; gd[137].combinewith = 99; gd[137].resultitem = 138; gd[137].disappears = true; gd[137].node = [8, 18]; gd[137].messages = ['Don\'t bother.', '', '', '', '', 'I don\'t wanna.', '', '', '', '']; gd[138].itemname = 'BUTTERFLY-NET'; gd[138].itemdescription = 'I made a butterfly-net from the twig and my stockings.'; gd[138].pickupable = true; gd[138].disappears = true; gd[138].messages = ['I can\'t catch that.', '', '', '', '', 'I now have a butterfly-net.', '', '', '']; gd[139].itemname = 'BUTTERFLIES'; gd[139].neededinhand = 138; gd[139].node = [8, 8]; gd[139].messages = ['I hope you won\'t miss your little friend.', 'A bunch of blue butterflies. They move pretty fast. But they look happy.', 'That won\'t help me catch the butterflies.', '', 'I managed to catch one of the butterflies.', '', '', '', 'I already have a butterfly, let\'s not bother them anymore.']; gd[140].itemname = 'CARROW\'S HANDKERCHIEF'; gd[140].itemdescription = 'It\'s a white handkerchief. I think it belongs to Carrow. It has the initials J.C. on it.'; gd[140].pickupable = true; gd[140].combinewith = 110; gd[140].resultitem = 145; gd[140].disappears = true; gd[140].messages = ['I don\'t want to wrap that into the hanky.', '', '', '', '', '', '', '', '']; gd[141].itemname = 'BUTTERFLY'; gd[141].itemdescription = 'It\'s a blue-black butterfly.'; gd[141].pickupable = true; gd[141].disappears = true; gd[141].messages = ['I\'m afraid it\'ll fly away.', '', '', '', '', '', '', '', '']; gd[142].itemname = 'CARNIVOROUS PLANT'; gd[142].neededinhand = 141; gd[142].itemstohide = [142]; gd[142].itemstoshow = [143]; gd[142].onstage = false; gd[142].node = [3, 3]; gd[142].messages = ['', 'Phew... The stink is unbearable. I\'m not going near that thing.', 'I don\'t think it\'s gonna eat that.', '', 'I fed it the butterfly. Wow, it doesn\'t stink that much now.', '', '', '', '']; gd[143].itemname = 'WELL-FED CARNIVOROUS PLANT'; gd[143].onstage = false; gd[143].node = [3, 3]; gd[143].messages = ['I already got a petal.', '', '', '', '', 'It doesn\'t stink now. I think I can just pick it up.', 'Still stinky, but I think I\'ll manage.', '', 'Why would I do that?']; gd[144].itemname = 'CARNIVOROUS PLANT'; gd[144].itemdescription = 'It\'s a carnivorous plant. Phew... it stinks!'; gd[144].pickupable = true; gd[144].combinewith = 151; gd[144].resultitem = 153; gd[144].disappears = true; gd[144].wrongitems = [133]; gd[144].messages = ['No, no...', '', '', '', '', '', '', '', '', 'That\'s the correct ingredient, but it goes later into the bowl...']; gd[145].itemname = 'FLAMMABLE ARROW'; gd[145].itemdescription = 'I have wrapped the handkerchief around the head of one of my arrows.'; gd[145].pickupable = true; gd[145].req = [135]; gd[145].disappears = true; gd[145].combinewith = 101; gd[145].resultitem = 146; gd[145].messages = ['I can use this to light something on fire from a distance. But not that.', '', '', '', '', 'I have wrapped the handkerchief around the head of one of the arrows.', '', '', '']; gd[146].itemname = 'FLAMING ARROW'; gd[146].itemdescription = 'I\'ve lit the flammable arrow. Better use it quick.'; gd[146].pickupable = true; gd[146].messages = ['', '', '', '', '', 'I\'ve lit the flammable arrow. Better use it quick.', '', '', '']; gd[147].itemname = 'BUZZING BEEHIVE'; gd[147].req = [146]; gd[147].neededinhand = 63; gd[147].itemstohide = [147]; gd[147].itemstoshow = [148]; gd[147].node = [8, 5]; gd[147].messages = ['', 'I\'m not going near, they might get angry.', 'That\'s not the way to get rid of the bees.', 'That\'s a good idea, but I don\'t have anything I can smoke them out with.', 'I shot the flaming arrow into the hole. The smoke drove the bees away.', '', '', '', '']; gd[148].itemname = 'ABANDONED BEEHIVE'; gd[148].onstage = false; gd[148].node = [8, 1]; gd[148].messages = ['I\'ve taken all the honey I need.', '', '', '', '', 'I don\'t want to hide that there.', 'There was a honeycomb inside.', '', 'I don\'t want to hide that there.']; gd[149].itemname = 'HONEYCOMB'; gd[149].itemdescription = 'Mmm... sweet...'; gd[149].pickupable = true; gd[149].combinewith = 133; gd[149].resultitem = 151; gd[149].disappears = true; gd[149].messages = ['That doesn\'t need honey.', '', '', '', '', '', '', '', '']; gd[150].itemname = 'ARROWS'; gd[150].itemdescription = 'A couple of hand-made arrows.'; gd[150].pickupable = true; gd[150].combinewith = 155; gd[150].resultitem = 161; gd[150].messages = ['Careful, they\'re sharp.', '', '', '', '', '', '', '', '']; gd[151].itemname = 'BOWL WITH HONEY'; gd[151].itemdescription = 'I\'ve put the honey into the bowl. I still need a couple of ingredients for the healing potion.'; gd[151].pickupable = true; gd[151].combinewith = 144; gd[151].resultitem = 153; gd[151].disappears = true; gd[151].wrongitems = [86]; gd[151].messages = ['I don\'t want to put that into the bowl.', '', '', '', '', 'I\'ve put the honey in the bowl. I\'ve got some leftover beeswax.', '', '', '', 'That\'s the correct ingredient, but it goes later into the bowl...']; gd[152].itemname = 'BEESWAX'; gd[152].itemdescription = 'A gob of wax.'; gd[152].pickupable = true; gd[152].disappears = true; gd[152].combinewith = 159; gd[152].resultitem = 184; gd[152].messages = ['I don\'t want to wax that.', '', '', '', '', '', '', '', '']; gd[153].itemname = 'ALMOST DONE HEALING POTION'; gd[153].itemdescription = 'The healing potion is almost done. It still needs one ingredient.'; gd[153].pickupable = true; gd[153].combinewith = 86; gd[153].resultitem = 154; gd[153].disappears = true; gd[153].messages = ['I don\'t want to put that into the bowl.', '', '', '', '', 'I\'ve put the carnivorous plant into the bowl.', '', '', '']; gd[154].itemname = 'HEALING POTION'; gd[154].itemdescription = 'A bowl of healing potion. I hope this will help Mr. Burke.'; gd[154].pickupable = true; gd[154].disappears = true; gd[154].messages = ['That doesn\'t need healing.', '', '', '', '', 'All the ingredient\'s are in there. I\'ve mashed it up. It\'s done.', '', '', '']; gd[155].itemname = 'CLOTHES-LINE'; gd[155].itemdescription = 'A long piece of thin clothes-line.'; gd[155].req = [134]; gd[155].pickupable = true; gd[155].combinewith = 150; gd[155].resultitem = 161; gd[155].disappears = true; gd[155].node = [6, 2]; gd[155].wrongitems = [110]; gd[155].messages = ['I don\'t want to tie the rope to that.', '', '', '', '', 'I can just pick that up.', '', 'I\'ll have to come back for that later.', '', 'That might be a good idea, but later...']; gd[156].itemname = 'BURKE'; gd[156].onstage = false; gd[156].neededinhand = 154; gd[156].dialog = ['1I\'m gonna feed him this. Let\'s hope it works.', '1...', '1I think he\'s coming around. Wow, this stuff works fast.', '1HEATHER:\rMr. Burke...?', '1BURKE:\rUgh...', '1HEATHER:\rMr. Burke, how are you feeling?', '1BURKE:\rWhat...? Who are you?', '1HEATHER:\rMy name is Heather Montrose. I\'m here at the request of Professor Harbach. How are you feeling?', '1BURKE:\rMy head hurts. Where am I?', '1HEATHER:\rAt your camp. Mr. Carrow brought you here after that plant stung you.', '1HEATHER:\rI\'ve given you some medicine.', '1BURKE:\rThe Professor mentioned that a lady from England is gonna be coming to visit us. Are you a doctor?', '1HEATHER:\rWell... Technically yes, but not the medical kind.', '1BURKE:\rThen how...?', '1HEATHER:\rI made the potion using a local recipe. You\'re going to get better soon.', '1HEATHER:\rListen, I know you just regained consciousness, but I need your help. I\'m here to help the professor with the dig and we need the combination of the crate that contains the dynamite.', '1BURKE:\rEww... This tastes horrible...', '1HEATHER:\rWhat? Ah... The potion. Sorry about that.', '1HEATHER:\rNow Mr. Burke, the combination.', '1BURKE:\rI don\'t think I should. You\'re not an expert and I\'m afraid that...', '1HEATHER:\rYes, you\'re right, but we really need those explosives. Mr. Carrow has already set up the equipment at the ramparts. All we need is the dynamite.', '1BURKE:\rAll right. It\'s 751-239.', '1BURKE:\rBut be careful with the explosives. Do you know how to handle them?', '1HEATHER:\rI\'ll manage.', '1BURKE:\rReassuring...', '1HEATHER:\rI\'ll be fine. And so will you. After some rest.', '1HEATHER:\rI have to go now, but I\'ll let Mr. Carrow know that you\'re OK.', '1BURKE:\rThank you.', '1HEATHER:\rSee you later.', '']; gd[156].node = [5, 9]; gd[156].messages = ['He needs rest.', 'He\'s still unconscious.', 'That\'s not going to wake him.', '', '', '', '', '', 'He doesn\'t need it.']; gd[157].itemname = 'EXPLOSIVES'; gd[157].req = [156]; gd[157].node = [5, 16]; gd[157].messages = ['I\'ve got all the dynamite I need.', '', '', '', '', 'I don\'t want to put that into the crate.', 'I took some dynamite and a length of fuse.', 'I don\'t know the combination to the lock.', 'I don\'t want to put that into the crate.']; gd[158].itemname = 'STICKS OF DYNAMITE'; gd[158].itemdescription = 'I better be very careful with those.'; gd[158].pickupable = true; gd[158].messages = ['I don\'t want to blow that up.', '', '', '', '', '', '', '', '']; gd[159].itemname = 'FUSE'; gd[159].itemdescription = 'I can use this to detonate the dynamite from a distance. Always a good idea.'; gd[159].pickupable = true; gd[159].combinewith = 152; gd[159].resultitem = 184; gd[159].messages = ['I don\'t want to remotely detonate that.', '', '', '', '', '', '', '', '']; gd[160].itemname = 'ASHCROFT '; gd[160].onstage = false; gd[160].itemstoshow = [120]; gd[160].itemstohide = [103]; gd[160].node = [8, 15]; gd[160].dialog = ['1HEATHER:\rDr. Ashcroft, I thought you might be interested: I met some of the locals.', '1ASHCROFT:\rAmazing. What can you tell me?', '1HEATHER:\rWell, I spoke to the shaman and...', '1ASHCROFT:\rWhat do you mean \'spoke to him\'?', '1HEATHER:\rThey speak English. They call themselves the Shades.', '1ASHCROFT:\rThe same Shades that Dunmore mentions in his writings?', '1HEATHER:\rYes. In fact they had met him. The shaman told me that he was a prophet and he brought back to them the words of Mordighan. They said he\'s a...', '1ASHCROFT:\rI know who he is. So he\'s really been there.', '1HEATHER:\rBut how can you know, I\'ve just... Wait, been where?', '1ASHCROFT:\rThank you for the news, Miss Montrose.', '1HEATHER:\rYou can\'t just dismiss me like that. You owe me an explanation.', '1ASHCROFT:\rNo I don\'t. But I\'m going to provide one anyway.', '1ASHCROFT:\rEveryone interprets Dunmore\'s poetry in different ways. You look for poetic value, Harbach is excited about the archeological implications. But I\'m the one who considers the spiritual aspect of them.', '1ASHCROFT:\rYou don\'t see what they really mean, because it\'s not your eyes you have to look with.', '1ASHCROFT:\rI see patterns you do not. And I seek a different kind of knowledge from yours. A kind that you would be unprepared to comprehend, should the occasion arise.', '1ASHCROFT:\rThe kind that Dunmore unwillingly obtained while living in the city.', '1ASHCROFT:\rObtained from Mordighan.', '1HEATHER:\rBut who is...?', '1ASHCROFT:\rEnough. We don\'t have time for this.', '1HEATHER:\rYou expect me to believe all this?', '1ASHCROFT:\rNo. I expect you to blow up this wall.', '1HEATHER:\rWe\'ll see what the Professor has to say about that.', '1ASHCROFT:\rPlease.', '1HEATHER:\rWell I hope you\'re still here, when I do light the fuse. If I light it.', '1ASHCROFT:\rGood day, Miss Montrose.', '']; gd[160].messages = ['I don\'t want to talk to him.', '', '', '', '', '', '', '', 'He doesn\'t need it.']; gd[161].itemname = 'ARROW WITH CLOTHESLINE'; gd[161].itemdescription = 'I have tied the clothes-line to one of the arrows.'; gd[161].pickupable = true; gd[161].disappears = true; gd[161].messages = ['Nah...', '', '', '', '', 'I have tied the clothes-line to one of the arrows.', '', '', '']; gd[162].itemname = 'DANGLING VINE'; gd[162].neededinhand = 63; gd[162].req = [161]; gd[162].itemstohide = [162]; gd[162].itemstoshow = [163]; gd[162].node = [8, 5]; gd[162].messages = ['', 'It\'s a thick vine that got stuck on that branch. I can\'t reach it.', 'That won\'t get the vine down.', 'I could shoot an arrow up there, but that wouldn\'t bring down the vine.', 'Nice shot. The clothesline is now dangling from the vine.', '', '', '', '']; gd[163].itemname = 'CLOTHESLINE HANGING FROM VINE'; gd[163].onstage = false; gd[163].numberofstates = 2; gd[163].stateneeded = 2; gd[163].lockstate = true; gd[163].itemstohide = [164, 227]; gd[163].node = [8, 5]; gd[163].messages = ['I think it\'s strong enough to hold my weight.', '', '', '', '', 'I can simply tug at that.', 'The end of the vine has fallen down.', '', 'No.']; gd[164].itemname = 'WALL'; gd[164].node = [8, 9]; gd[164].messages = ['I can\'t climb that wall.', '', '', '', '', 'I can\'t climb that wall.', 'I can\'t climb that wall.', '', 'I can\'t climb that wall.']; gd[165].itemname = 'CRACK IN WALL'; gd[165].neededinhand = 158; gd[165].itemstohide = [165]; gd[165].itemstoshow = [166]; gd[165].node = [0, 5]; gd[165].messages = ['', 'A couple of bricks have fallen out of the wall here.', 'I don\'t want to stick that into the crack.', '', 'I have placed sticks of dynamite into the cranny.', '', '', '', '']; gd[166].itemname = 'CRACK RIGGED WITH DYNAMITE'; gd[166].neededinhand = 159; gd[166].onstage = false; gd[166].itemstohide = [166]; gd[166].itemstoshow = [167, 173]; gd[166].node = [0, 5]; gd[166].messages = ['', 'The crack has now dynamite in it.', 'That won\'t help me blow up the dynamite.', '', 'I have attached the fuse to the dynamite.', '', '', '', '']; gd[167].itemname = 'ARMED DYNAMITE'; gd[167].onstage = false; gd[167].node = [0, 5]; gd[167].wrongitems = [101]; gd[167].messages = ['The dynamite is armed with the fuse and ready to detonate.', '', '', '', '', 'That won\'t help me detonate the dynamite.', 'The dynamite is armed with the fuse and ready to detonate.', '', 'That won\'t help me detonate the dynamite.', 'I don\'t want to blow myself up.']; gd[168].inventory_happened = true; gd[169].itemname = 'CRACK IN WALL'; gd[169].neededinhand = 158; gd[169].itemstohide = [169]; gd[169].itemstoshow = [171]; gd[169].node = [0, 9]; gd[169].messages = ['', 'A couple of bricks have fallen out of the wall here.', 'I don\'t want to stick that into the crack.', '', 'I have placed sticks of dynamite into the cranny.', '', '', '', '']; gd[170].inventory_happened = true; gd[171].itemname = 'CRACK RIGGED WITH DYNAMITE'; gd[171].neededinhand = 159; gd[171].onstage = false; gd[171].itemstohide = [171]; gd[171].itemstoshow = [172, 174]; gd[171].node = [0, 9]; gd[171].messages = ['', 'The crack has now dynamite in it.', 'That won\'t help me blow up the dynamite.', '', 'I have attached the fuse to the dynamite.', '', '', '', '']; gd[172].itemname = 'ARMED DYNAMITE'; gd[172].onstage = false; gd[172].node = [0, 9]; gd[172].wrongitems = [101]; gd[172].messages = ['The dynamite is armed with the fuse and ready to detonate.', '', '', '', '', 'That won\'t help me detonate the dynamite.', 'The dynamite is armed with the fuse and ready to detonate.', '', 'That won\'t help me detonate the dynamite.', 'I don\'t want to blow myself up.']; gd[173].itemname = 'FUSE'; gd[173].node = [8, 7]; gd[173].numberofstates = 2; gd[173].stateneeded = 2; gd[173].onstage = false; gd[173].fixedpickupable = true; gd[173].messages = ['', '', '', '', '', 'I don\'t want to attach that to the fuse.', '', '', '']; gd[174].itemname = 'FUSE'; gd[174].node = [8, 9]; gd[174].numberofstates = 2; gd[174].stateneeded = 2; gd[174].onstage = false; gd[174].fixedpickupable = true; gd[174].messages = ['', '', '', '', '', 'I don\'t want to attach that to the fuse.', '', '', '']; gd[175].itemname = 'FUSE EXTENSION'; gd[175].node = [9, 6]; gd[175].numberofstates = 2; gd[175].stateneeded = 2; gd[175].lockstate = true; gd[175].neededinhand = 173; gd[175].wrongitems = [101]; gd[175].onstage = false; gd[175].itemstohide = [173]; gd[175].messages = ['The fuse coming from the wall and the one coming from the riverbank are now tied together.', 'It\'s a long piece of fuse coming up from the riverbank. Burke probably set this up.', 'I don\'t want to tie that to the fuse.', '', 'I have tied the two ends together.', '', '', '', 'That won\'t light the fuse.', 'If I light the fuse here, the wall is going to dome down on me. I need to move further away.']; gd[176].itemname = 'FUSE EXTENSION'; gd[176].node = [9, 9]; gd[176].numberofstates = 2; gd[176].stateneeded = 2; gd[176].lockstate = true; gd[176].neededinhand = 174; gd[176].wrongitems = [101]; gd[176].onstage = false; gd[176].itemstohide = [174]; gd[176].messages = ['The fuse coming from the wall and the one coming from the riverbank are now tied together.', 'It\'s a long piece of fuse coming up from the riverbank. Carrow probably set this up.', 'I don\'t want to tie that to the fuse.', '', 'I have tied the two ends together.', '', '', '', 'That won\'t light the fuse.', 'If I light the fuse here, the wall is going to dome down on me. I need to move further away.']; gd[177].itemname = 'FUSE ENDS'; gd[177].node = [0, 5]; gd[177].neededinhand = 101; gd[177].onstage = false; gd[177].numberofstates = 2; gd[177].stateneeded = 2; gd[177].lockstate = true; gd[177].req = [175, 176, 120]; gd[177].itemstohide = [163, 167, 172, 175, 176]; gd[177].itemstoshow = [164, 179]; gd[177].messages = ['', 'These two lengths of fuse are probably coming down from the ramparts. It must have been Carrow who set them up.', 'That won\'t light the fuses.', 'I need to set up the explosives before I light the fuses and I better run this by Professor Harbach once again.', 'That was loud...', 'That won\'t light the fuse.', '', '', '']; gd[178].itemname = 'CARROW'; gd[178].onstage = false; gd[178].node = [1, 5]; gd[178].messages = ['It\'s Mr. Carrow.', '', '', '', '', 'He doesn\'t need it.', 'It\'s Mr. Carrow.', '', 'He doesn\'t need it.']; gd[179].itemname = 'CLIMB ACROSS RUBBLE'; gd[179].onstage = false; gd[179].room = 22; gd[179].node = [9, 9]; gd[179].itemstoshow = [181]; gd[179].startnode = [3, 19]; gd[179].messages = ['', '', '', '', '', 'I don\'t want to bury that under the rubble.', '', '', '']; gd[180].itemname = 'WALK TO RAMPARTS'; gd[180].room = 19; gd[180].node = [2, 19]; gd[180].startnode = [9, 2]; gd[181].itemname = 'TEMPLE GATES'; gd[181].onstage = false; gd[181].room = 22; gd[181].startnode = [3, 19]; gd[182].itemname = 'OLD PAVEMENT'; gd[182].node = [2, 14]; gd[183].itemname = 'kutbaeses placeholder'; gd[183].itemstohide = [182, 180]; gd[183].itemstoshow = [200, 204, 250]; gd[183].dialog = ['1CARROW:\rMiss Montrose!', '1HARBACH:\rMiss Montrose, can you hear me?!', '1HEATHER:\r(sigh)...', '1CARROW:\rAre you all right?', '1HEATHER:\rYes...', '1HEATHER:\rMy back...', '1HARBACH:\rShe\'s OK!', '1ASHCROFT:\rOh jolly...', '1CARROW:\rI\'m so glad we found you.', '1CARROW:\rWe were worried after you didn\'t show up at the camp last night.', '1CARROW:\rWe started looking for you first thing in the morning.', '1HEATHER:\rI\'m all right.', '1HEATHER:\rThere is a pond down here; it broke my fall. That\'s why I\'m still alive, I think.', '1CARROW:\rI\'ll go get a rope.', '1ASHCROFT:\rThat\'s a good idea, Mr. Carrow. In the meantime I\'ll explore the temple with Professor Harbach. Nicely done, Miss Montrose.', '1HEATHER:\rAnd I\'m going to see if there\'s a way out of here.', '1HARBACH:\rBe careful, dear.', '1HEATHER:\rDon\'t worry, I\'ll be fine.', '']; gd[184].itemname = 'CANDLE'; gd[184].itemdescription = 'It\'s a candle made from beeswax and a piece of fuse.'; gd[184].pickupable = true; gd[184].disappears = true; gd[184].messages = ['I don\'t want to shed light on that.', '', '', '', '', 'I\'ve got a candle.', '', '', '']; gd[185].itemname = 'CANDLE-STAND'; gd[185].neededinhand = 184; gd[185].itemstoshow = [186]; gd[185].node = [2, 6]; gd[185].messages = ['I\'ve installed a candle on it.', 'It\'s a candle-stand. This is pretty much all I can see in this room. The rest is pitch black.', 'I don\'t want to put that on the stand.', '', 'It fits perfectly.', '', '', '', 'There\'s no room there for that.']; gd[186].itemname = 'CANDLE'; gd[186].onstage = false; gd[186].neededinhand = 101; gd[186].itemstohide = [30, 186]; gd[186].itemstoshow = [187, 188, 189, 190, 191, 192, 193, 194, 206, 207, 208, 214, 216, 218, 219, 263]; gd[186].node = [2, 6]; gd[186].messages = ['', 'It\'s the candle I made from the beeswax and a piece of fuse.', 'That won\'t light the candle.', '', 'That\'s better.', '', '', '', '']; gd[187].itemname = 'CANDLE burning'; gd[187].onstage = false; gd[187].node = [2, 6]; gd[187].messages = ['The candle is burning steadily. Wait... The flame is tilting towards those tombstones.', '', '', '', '', 'Let\'s be careful with that candle. It\'s my only steady light-source down here.', 'The candle is burning steadily. Wait... The flame is tilting towards those tombstones.', '', 'Let\'s be careful with that candle. It\'s my only steady light-source down here.']; gd[188].itemname = 'LEFT TOMBSTONE'; gd[188].neededinhand = 101; gd[188].node = [0, 15]; gd[188].wrongitems = [8, 36, 58]; gd[188].onstage = false; gd[188].messages = ['I\'ve checked the air-flow around this slab. The flame of the lighter was tilting towards the other two slabs.', 'It looks like a tombstone.', 'That won\'t help me move the slab.', '', 'The flame is tilting towards the other two tombstones.', '', '', '', 'That won\'t help me move the slab.', 'I can\'t wedge it between the stone and the wall.']; gd[189].itemname = 'MIDDLE TOMBSTONE'; gd[189].neededinhand = 101; gd[189].wrongitems = [8, 36, 58]; gd[189].node = [2, 15]; gd[189].onstage = false; gd[189].messages = ['I\'ve checked the air-flow around this tombstone. The flame of the lighter was tilting towards the one to the right.', 'It looks like a tombstone.', 'That won\'t help me move the slab.', '', 'The flame is tilting towards the other tombstone to the right.', '', '', '', 'That won\'t help me move the slab.', 'I can\'t wedge it between the stone and the wall.']; gd[190].itemname = 'CHAIN'; gd[190].itemdescription = 'I think they used this chain to pull up the water from that underground chamber where I found it.'; gd[190].pickupable = true; gd[190].node = [5, 6]; gd[190].onstage = false; gd[190].messages = ['I don\'t want to tie the chain to that.', '', '', '', '', 'I can just pick that up, I think.', '', '', '']; gd[191].itemname = 'RIGHT TOMBSTONE'; gd[191].neededinhand = 101; gd[191].wrongitems = [8, 36, 58]; gd[191].node = [5, 17]; gd[191].onstage = false; gd[191].messages = ['I\'ve checked the air-flow around this tombstone. The flame of the lighter was tilting towards the crack between the wall and this stone.', 'It looks like a tombstone. It\'s not a perfect fit, there\'s a crack between the stone and the wall.', 'That won\'t help me move the slab.', '', 'The flame is tilting towards the crack between the wall and this tombstone.', '', '', '', 'That won\'t help me move the slab.', 'I\'ve wedged it in the crack, but it won\'t budge. I need to find another way to move it.']; gd[192].itemname = 'LEFT RING'; gd[192].neededinhand = 190; gd[192].node = [0, 15]; gd[192].onstage = false; gd[192].messages = ['It\'s a metal ring embedded into the tombstone.', 'It\'s a metal ring embedded into the tombstone.', 'I don\'t want to tie anything to it unless I have a reason.', '', 'That might be a good idea, but I\'m not opening any of the tombs without a reason.', 'I don\'t want to tie anything to it unless I have a reason.', 'It\'s a metal ring embedded into the tombstone.', '', 'I don\'t want to tie anything to it unless I have a reason.']; gd[193].itemname = 'MIDDLE RING'; gd[193].neededinhand = 190; gd[193].node = [2, 15]; gd[193].onstage = false; gd[193].messages = ['It\'s a metal ring embedded into the tombstone.', 'It\'s a metal ring embedded into the tombstone.', 'I don\'t want to tie anything to it unless I have a reason.', '', 'That might be a good idea, but I\'m not opening any of the tombs without a reason.', 'I don\'t want to tie anything to it unless I have a reason.', 'It\'s a metal ring embedded into the tombstone.', '', 'I don\'t want to tie anything to it unless I have a reason.']; gd[194].itemname = 'RIGHT RING'; gd[194].neededinhand = 190; gd[194].req = [191]; gd[194].itemstohide = [194]; gd[194].itemstoshow = [195]; gd[194].node = [5, 17]; gd[194].onstage = false; gd[194].messages = ['', 'It\'s a metal ring embedded into the tombstone.', 'That won\'t help me pull on the ring.', 'That might be a good idea, but I\'m not opening any of the tombs without a reason.', 'I\'ve tied the chain to the ring.', '', '', '', '']; gd[195].itemname = 'CHAIN ATTACHED TO RIGHT RING'; gd[195].itemstohide = [195]; gd[195].itemstoshow = [196]; gd[195].onstage = false; gd[195].node = [7, 15]; gd[195].messages = ['', '', '', '', '', 'I think I can just pull on that.', 'The tomb is open.', '', '']; gd[196].itemname = 'TOMB'; gd[196].neededinhand = 101; gd[196].itemstohide = [196]; gd[196].itemstoshow = [197]; gd[196].onstage = false; gd[196].node = [4, 17]; gd[196].messages = ['', 'I\'m not going in there without a light. I can\'t see a thing.', 'I don\'t want to to put that into the tomb.', '', 'Wow, it\'s not a tomb. It\'s actually a hidden passage.', 'I don\'t want to to put that into the tomb.', 'Wow, it\'s not a tomb. It\'s actually a hidden passage.', '', '']; gd[197].itemname = 'PASSAGE'; gd[197].onstage = false; gd[197].room = 22; gd[197].startnode = [0, 14]; gd[197].node = [4, 17]; gd[197].itemstoshow = [198, 199]; gd[197].itemstohide = [55, 56, 57, 69, 100, 111, 129]; gd[197].messages = ['', '', '', '', '', 'I don\'t want to throw that into the passage.', 'I\'m glad I made it out.', '', '']; gd[198].itemname = 'HIDDEN HALLWAY TO EMBALMING ROOM'; gd[198].onstage = false; gd[198].room = 23; gd[198].startnode = [5, 17]; gd[198].node = [0, 14]; gd[198].messages = ['', '', '', '', '', 'I don\'t want to throw that into the passage.', '', '', 'I don\'t want to throw that into the passage.']; gd[199].itemname = 'FIREWOOD'; gd[199].node = [4, 5]; gd[199].itemdescription = 'Small pieces of wood.'; gd[199].pickupable = true; gd[199].onstage = false; gd[199].disappears = true; gd[199].messages = ['I don\'t want to light a fire.', '', '', '', '', 'I can just pick that up.', '', '', '']; gd[200].itemname = 'REMAINS OF CAMP'; gd[200].node = [6, 2]; gd[200].onstage = false; gd[200].messages = ['', '', '', '', '', 'I can search there by hand.', 'I\'ve found a quill and an old piece of paper.', '', '']; gd[201].itemname = 'PAGE FROM DUNMORE\'S JOURNAL'; gd[201].pickupable = true; gd[202].itemname = 'SEARCH UNDER RUBBLE'; gd[202].node = [7, 9]; gd[202].onstage = false; gd[202].messages = ['There\'s nothing else there.', '', '', '', '', 'I don\'t want to hide that under the rubble.', 'There was a small clay bottle and a book under the rubble.', '', 'I don\'t want to hide that under the rubble.']; gd[203].itemname = 'QUILL'; gd[203].itemdescription = 'I think this was Dunmore\'s quill. It\'s quite chilling to hold something in my hand that used to belong to him.'; gd[203].pickupable = true; gd[203].disappears = true; gd[203].messages = ['It has no ink in it.', '', '', '', '', '', '', '', '']; gd[204].itemname = 'DOOR'; gd[204].node = [1, 4]; gd[204].onstage = false; gd[204].neededinhand = 58; gd[204].itemstoshow = [224]; gd[204].itemstohide = [204]; gd[204].dialog = ['1I\'ve widened the crack with the axe. Unfortunately the axe broke in the process.', '1There\'s a heavy wooden beam on the other side of the door. Looks like someone blocked the door from the insi...', '1Oh my god...!', '1The professor!', '1HEATHER:\rProfessor!', '1HEATHER:\rCan you hear me?', '1HARBACH:\rHelp...', '1HEATHER:\rWhat happened?', '1HARBACH:\rAsh... Ashcroft...', '1HARBACH:\rHelp...', '1I\'ve got to help him. He\'s going to die if I don\'t.', '']; gd[204].messages = ['', 'There\'s a crack on the door, but it\'s too small, I can\'t see a thing. I need to widen it.', 'I don\'t want to stick that into the crack.', '', '', '', '', '', '']; gd[206].itemname = 'PITCHER FULL OF EMBALMING OIL'; gd[206].node = [4, 9]; gd[206].itemdescription = 'I think they used this during the embalming process.'; gd[206].pickupable = true; gd[206].disappears = true; gd[206].onstage = false; gd[206].messages = ['That doesn\'t need embalming oil.', '', '', '', '', 'I don\'t want to put that into the pitcher.', '', '', '']; gd[207].itemname = 'BOWL OF EMBALMING SALT'; gd[207].node = [4, 10]; gd[207].itemdescription = 'Salt from the depths of the earth.'; gd[207].pickupable = true; gd[207].disappears = true; gd[207].onstage = false; gd[207].messages = ['That doesn\'t need embalming salt.', '', '', '', '', 'I don\'t want to put that into the bowl.', '', '', '']; gd[208].itemname = 'RECESS WITH DRAGON SYMBOL'; gd[208].node = [0, 8]; gd[208].neededinhand = 199; gd[208].itemstohide = [208]; gd[208].itemstoshow = [209]; gd[208].onstage = false; gd[208].messages = ['', 'It\'s a picture of a dragon\'s head. There\'s a small recess underneath it.', 'That won\'t produce flames.', '', 'I\'ve put the firewood into the recess.', '', '', '', '']; gd[209].itemname = 'DRAGON-RECESS WITH FIREWOOD'; gd[209].node = [0, 8]; gd[209].onstage = false; gd[209].neededinhand = 206; gd[209].wrongitems = [101]; gd[209].itemstohide = [209]; gd[209].itemstoshow = [210]; gd[209].messages = ['', 'I\'ve put the firewood under the dragon symbol.', 'That won\'t light the wood on fire.', '', 'I\'ve poured the oil over the firewood.', '', '', '', '', 'The wood is wet, it won\'t catch on fire.']; gd[210].itemname = 'DRAGON-RECESS WITH OILED FIREWOOD'; gd[210].node = [0, 8]; gd[210].onstage = false; gd[210].neededinhand = 101; gd[210].numberofstates = 2; gd[210].stateneeded = 2; gd[210].lockstate = true; gd[210].messages = ['I managed to light the wood on fire. It\'s burning nicely.', 'Thanks to the oil the wood should catch on fire a lot easily now.', 'That won\'t light the wood on fire.', '', 'It\'s burning nicely.', '', '', '', 'I might burn it.']; gd[211].itemname = 'EMPTY PITCHER'; gd[211].itemdescription = 'The pitcher is empty.'; gd[211].pickupable = true; gd[211].disappears = true; gd[211].messages = ['I don\'t want to put that into the pitcher.', '', '', '', '', '', '', '', '']; gd[212].itemname = 'POND'; gd[212].node = [5, 4]; gd[212].neededinhand = 211; gd[212].wrongitems = [215]; gd[212].messages = ['It\'s a pond. There\'s a portcullis on the far side. It looks like it has an underground connection with another room.', 'It\'s a pond. There\'s a portcullis on the far side. It looks like it has an underground connection with another room.', 'That doesn\'t need water.', '', 'The pitcher is now full of water. ', '', '', '', 'That doesn\'t need water', 'I should use something else to carry water around.']; gd[213].itemname = 'PITCHER FULL OF WATER'; gd[213].itemdescription = 'It\'s full of water.'; gd[213].pickupable = true; gd[213].disappears = true; gd[213].messages = ['That doesn\'t need water.', '', '', '', '', '', '', '', '']; gd[214].itemname = 'RECESS WITH EARTH-WORM SYMBOL'; gd[214].node = [0, 10]; gd[214].neededinhand = 207; gd[214].numberofstates = 2; gd[214].stateneeded = 2; gd[214].lockstate = true; gd[214].onstage = false; gd[214].messages = ['The recess now has salt in it.', 'It\'s a picture of a worm. There\'s a recess underneath it.', 'I don\'t want to put that there.', '', 'I\'ve poured the salt from the bowl into the recess. The bowl is now empty.', '', '', '', 'I don\'t want to put that there.']; gd[215].itemname = 'EMPTY BOWL'; gd[215].itemdescription = 'The bowl is empty.'; gd[215].pickupable = true; gd[215].disappears = true; gd[215].messages = ['I don\'t want to put that into the bowl.', '', '', '', '', '', '', '', '']; gd[216].itemname = 'RECESS WITH FISH SYMBOL'; gd[216].node = [0, 12]; gd[216].neededinhand = 213; gd[216].numberofstates = 2; gd[216].stateneeded = 2; gd[216].lockstate = true; gd[216].onstage = false; gd[216].messages = ['The pitcher full of water is in the recess.', 'It\'s a picture of a fish. There\'s a recess underneath it.', 'I don\'t want to put that in there.', '', 'I\'ve put the pitcher inside the fish-recess.', '', '', '', 'I don\'t want to put that in there.']; gd[217].itemname = 'SMALL CLAY BOTTLE'; gd[217].itemdescription = 'It\'s a small clay bottle. It\'s corked.'; gd[217].pickupable = true; gd[217].disappears = true; gd[217].combinewith = 222; gd[217].resultitem = 223; gd[217].messages = ['I\'m not sure what\'s inside the bottle. Better not waste it.', '', '', '', '', '', '', '', '']; gd[218].itemname = 'BOTTOM RECESS'; gd[218].node = [0, 10]; gd[218].neededinhand = 215; gd[218].numberofstates = 2; gd[218].stateneeded = 2; gd[218].lockstate = true; gd[218].onstage = false; gd[218].wrongitems = [206, 211]; gd[218].messages = ['I\'ve put the bowl into the recess.', 'This recess is beneath the upper three. There\'s a small hole on the roof of it. Looks like it\'s supposed to collect whatever comes out from the top.', 'I don\'t want to put that in there.', '', 'Fits nicely.', '', '', '', 'I don\'t want to put that in there.', 'It won\'t fit, it\'s too big.']; gd[219].itemname = 'LARGE SYMBOL'; gd[219].node = [0, 10]; gd[219].req = [210, 214, 216, 218]; gd[219].itemstohide = [218]; gd[219].itemstoshow = [221]; gd[219].onstage = false; gd[219].messages = ['I pushed it again, but nothing happened. Looks like I only had the ingredients for one bowl.', '', '', '', '', '', 'I pushed the button with the figure. It produced some sort of liquid which is now in the bowl underneath the symbol.', 'It\'s a drawing of a stick-figure. Wait... It looks like that drummer figure I saw on the fresco at the deep ditch. It sticks out from the wall, like a button. I don\'t want to push it until I figure out how this thing works. Whatever this is.', 'Why?']; gd[220].itemname = 'journal page dialog placeholder'; gd[220].itemstoshow = [231, 232, 233, 234, 235]; gd[220].dialog = ['1HEATHER:\rIt\'s a handwritten page. I think Dunmore wrote this. It\'s been torn from a book. It\'s all blurry, but I can make out two passages. The first one is:', '1HEATHER:\r\'... the temple follow the path of death to find knowledge...\'', '1HEATHER:\rAnd the other:', '1HEATHER:\r\'... so I\'ve buried them at the foot of the pillar...\'', '']; gd[221].itemname = 'BOTTOM RECESS'; gd[221].node = [0, 10]; gd[221].onstage = false; gd[221].messages = ['The recess is empty.', '', '', '', '', 'The bowl is already in there. There\'s no room. And why would I put it there anyway?', 'I\'ve taken out the bowl. It\'s full of some kind of liquid. Wait... It\'s the same color as the cloth on that mummy over there. Maybe they used this stuff on their dead.', '', 'I don\'t want to put that there.']; gd[222].itemname = 'BOWL FULL OF BROWN LIQUID'; gd[222].itemdescription = 'It\'s full of some kind of liquid. Wait... It\'s the same color as the cloth on that mummy I saw in the embalming room. Maybe this is some sort of embalming acid.'; gd[222].pickupable = true; gd[222].disappears = true; gd[222].combinewith = 217; gd[222].resultitem = 223; gd[222].messages = ['I think this is some sort of embalming acid, so I better be careful with it, even though it doesn\'t seem strong.', '', '', '', '', '', '', '', '']; gd[223].itemname = 'STRONG ACID'; gd[223].itemdescription = 'It\'s a bowl of strong acid. It\'s green and it\'s bubbling slowly.'; gd[223].pickupable = true; gd[223].disappears = true; gd[223].messages = ['I don\'t want to burn through that.', '', '', '', '', 'I\'ve poured the contents of the clay bottle into the brown liquid. It\'s green now, and it\'s bubbling slowly.', '', '', '']; gd[224].itemname = 'HOLE ON DOOR-WING'; gd[224].node = [1, 4]; gd[224].onstage = false; gd[224].neededinhand = 223; gd[224].itemstohide = [224]; gd[224].itemstoshow = [225]; gd[224].wrongitems = [222]; gd[224].messages = ['', 'I made a hole on the door with the axe. I can see the Professor in the temple. He needs my help. There\'s a heavy beam blocking the door from the inside.', 'That won\'t get rid of the beam.', '', 'The acid has eaten through the beam. I managed to open the door.', '', '', '', '', 'That\'s a good idea, but the acid is not strong enough.']; gd[225].itemname = 'ENTER TEMPLE'; gd[225].onstage = false; gd[225].room = 24; gd[225].startnode = [8, 19]; gd[225].node = [1, 4]; gd[225].itemstoshow = [226]; gd[225].messages = ['', '', '', '', '', 'I don\'t want to throw that into the temple.', '', '', '']; gd[226].itemname = 'TEMPLE'; gd[226].onstage = false; gd[226].room = 24; gd[226].startnode = [8, 19]; gd[227].itemname = ''; gd[227].node = [8, 5]; gd[228].itemname = 'HARBACH'; gd[228].node = [6, 10]; gd[228].dialog = ['1HEATHER:\rProfessor! What happened?!', '1HARBACH:\rAshcroft...', '1HARBACH:\rAshcroft attacked me... I was examining the tombs when he grabbed me from behind... Then he tied me down and...', '1HARBACH:\r... and cut my wrists...', '1HEATHER:\rMy god! I\'ll go get Mr. Carrow...', '1HARBACH:\rIt\'s too late... I\'ve lost too much blood...', '1HARBACH:\rListen, you have to stop him. He\'s mad...', '1HARBACH:\rAfter he tied me down... he went on about how my sacrifice will make him all-knowing and powerful. I...', '1HARBACH:\r... I knew he was a bad person, but I never suspected he is evil.', '1HEATHER:\rProfessor, spare your strength!', '1HARBACH:\rNo, I have to tell you everything I know... so you can stop him.', '1HARBACH:\rListen... After Ashcroft tied me down... he disappeared for a while.', '1HARBACH:\rWhen he came back... after I had bled helplessly... he talked to me. And when I tried to respond... He knew what I was going to say. He spoke to me about my childhood... about events that only I know about.', '1HARBACH:\rThen I saw the Shades. I saw the shaman. He... He was here. He stood there and just looked at me. Then he disappeared.', '1HARBACH:\rAnd then...', '1HARBACH:\rThen I saw...', '1HARBACH:\rDunmore...!', '1HEATHER:\rProfessor, you have lost a lot of blood, you\'re imagining things...', '1HARBACH:\rNo, this is real... There is something down there, I know that now...', '1HARBACH:\rAnd Ashcroft is somehow using it... After I\'m gone, you will have very little time. You have to find him and stop him.', '1HARBACH:\rStop him! You hear me?', '1HEATHER:\rYes, but first I\'ll get you out of here.', '1HARBACH:\rToo late...', '1HARBACH:\rStop him...', '1HARBACH:\rHurry...', '1HEATHER:\rProfessor Harbach...?', '1HEATHER:\rProfessor...?', '1He\'s dead.', '']; gd[228].messages = ['He\'s dead.', '', '', '', '', 'He looks bad... Let\'s not bother him with that.', '', '', 'He\'s dead. I should leave him alone.']; gd[229].itemname = 'TORCH'; gd[229].itemdescription = 'It\'s a burned-out torch. Its end is basically a piece of charcoal.'; gd[229].pickupable = true; gd[229].node = [6, 12]; gd[229].messages = ['I don\'t want to paint that black.', '', '', '', '', 'No way.', '', '', '']; gd[230].itemname = 'DUNMORE\'S JOURNAL'; gd[230].pickupable = true; gd[231].itemname = 'NATIVE ART'; gd[231].onstage = false; gd[231].numberofstates = 2; gd[231].stateneeded = 2; gd[231].lockstate = true; gd[231].neededinhand = 5; gd[231].node = [0, 4]; gd[231].messages = ['It\'s a picture of a palm tree.', 'It\'s a wall-painting. But I can\'t make out what it is. There\'s a layer of thick dust on it.', 'That won\'t get rid of the dust.', '', 'I removed the dust with the towel.', '', '', '', 'The picture is already clean.']; gd[232].itemname = 'NATIVE ART'; gd[232].onstage = false; gd[232].numberofstates = 2; gd[232].stateneeded = 2; gd[232].lockstate = true; gd[232].neededinhand = 5; gd[232].node = [0, 7]; gd[232].messages = ['It\'s a picture of a river. I think.', 'It\'s a wall-painting. But I can\'t make out what it is. There\'s a layer of thick dust on it.', 'That won\'t get rid of the dust.', '', 'I removed the dust with the towel.', '', '', '', 'The picture is already clean.']; gd[233].itemname = 'NATIVE ART'; gd[233].onstage = false; gd[233].numberofstates = 2; gd[233].stateneeded = 2; gd[233].lockstate = true; gd[233].neededinhand = 5; gd[233].node = [0, 10]; gd[233].messages = ['It\'s a picture of the sun.', 'It\'s a wall-painting. But I can\'t make out what it is. There\'s a layer of thick dust on it.', 'That won\'t get rid of the dust.', '', 'I removed the dust with the towel.', '', '', '', 'The picture is already clean.']; gd[234].itemname = 'NATIVE ART'; gd[234].onstage = false; gd[234].numberofstates = 2; gd[234].stateneeded = 2; gd[234].lockstate = true; gd[234].neededinhand = 5; gd[234].itemstohide = [238]; gd[234].itemstoshow = [241]; gd[234].node = [0, 13]; gd[234].dialog = ['1I removed the dust with the towel. There\'s a picture of a skull here.', '1Wait, let me check that page once more from Dunmore\'s journal.', '1\'... the temple follow the path of death to find knowledge...\'', '1I don\'t think this is a coincidence.', '']; gd[234].messages = ['It\'s a picture of a skull. Scary.', 'It\'s a wall-painting. But I can\'t make out what it is. There\'s a layer of thick dust on it.', 'That won\'t get rid of the dust.', '', 'I removed the dust with the towel.', '', '', '', 'The picture is already clean.']; gd[235].itemname = 'NATIVE ART'; gd[235].onstage = false; gd[235].numberofstates = 2; gd[235].stateneeded = 2; gd[235].lockstate = true; gd[235].neededinhand = 5; gd[235].node = [0, 16]; gd[235].messages = ['It\'s a picture of some fat little animal.', 'It\'s a wall-painting. But I can\'t make out what it is. There\'s a layer of thick dust on it.', 'That won\'t get rid of the dust.', '', 'I removed the dust with the towel.', '', '', '', 'The picture is already clean.']; gd[236].itemname = 'DARK PASSAGEWAY'; gd[236].node = [6, 7]; gd[236].messages = ['It must be a maze. I\'m not going in there without directions. Besides, I can hear strange voices from inside. This whole place is making me dizzy.', '', '', '', '', '', 'It must be a maze. I\'m not going in there without directions. Besides, I can hear strange voices from inside. This whole place is making me dizzy.', '', '']; gd[237].itemname = 'DARK PASSAGEWAY'; gd[237].node = [6, 10]; gd[237].messages = ['It must be a maze. I\'m not going in there without directions. Besides, I can hear strange voices from inside. This whole place is making me dizzy.', '', '', '', '', '', 'It must be a maze. I\'m not going in there without directions. Besides, I can hear strange voices from inside. This whole place is making me dizzy.', '', '']; gd[238].itemname = 'DARK PASSAGEWAY'; gd[238].node = [6, 13]; gd[238].messages = ['It must be a maze. I\'m not going in there without directions. Besides, I can hear strange voices from inside. This whole place is making me dizzy.', '', '', '', '', '', 'It must be a maze. I\'m not going in there without directions. Besides, I can hear strange voices from inside. This whole place is making me dizzy.', '', '']; gd[239].itemname = 'DARK PASSAGEWAY'; gd[239].node = [6, 16]; gd[239].messages = ['It must be a maze. I\'m not going in there without directions. Besides, I can hear strange voices from inside. This whole place is making me dizzy.', '', '', '', '', '', 'It must be a maze. I\'m not going in there without directions. Besides, I can hear strange voices from inside. This whole place is making me dizzy.', '', '']; gd[240].inventory_happened = true; gd[241].itemname = 'PASSAGEWAY TO CRYPT'; gd[241].onstage = false; gd[241].room = 25; gd[241].startnode = [7, 19]; gd[241].node = [6, 13]; gd[241].itemstoshow = [242]; gd[241].messages = ['', '', '', '', '', 'I don\'t want to throw that in there.', '', 'I\'m not going in there without a light.', 'I don\'t want to throw that in there.']; gd[242].itemname = 'CRYPT'; gd[242].room = 25; gd[242].startnode = [7, 19]; gd[242].onstage = false; gd[243].itemname = 'GUARDIAN'; gd[243].itemstohide = [243]; gd[243].itemstoshow = [256]; gd[243].node = [3, 10]; gd[243].dialog = ['1HEATHER:\rOh my god...', '1GUARDIAN:\r[speaking native]', '1I think it\'s warning me not to go closer.', '']; gd[243].messages = ['', 'It looks like a ghost. I think I might be going crazy too...', 'That won\'t scare him away.', '', '', '', '', '', '']; gd[244].itemname = 'NECRONOMICON'; gd[244].itemdescription = 'There\'s a chapter called \'Banishing dead souls\'. It says you need two things for this spell: A pentagram (see illustration), and a shroud that has the appropriate runes (see page 98) on it written in blood. And the spell... Ah, drat. The sentence continues on the next page, which has been torn out.'; gd[244].pickupable = true; gd[244].node = [7, 12]; gd[244].messages = ['That doesn\'t need black magic.', '', '', '', '', 'I can just pick that up.', '', '', '']; gd[245].itemname = 'TORN PAGE'; gd[245].neededinhand = 36; gd[245].itemstohide = [245]; gd[245].itemstoshow = [246]; gd[245].node = [8, 8]; gd[245].messages = ['', 'It\'s a piece of paper that got stuck on that root. I can\'t reach it.', 'I can\'t reach it with that.', '', 'Drat. The paper drifted away in the stream.', '', '', '', '']; gd[246].itemname = 'TORN PAGE'; gd[246].itemdescription = 'It\'s a page from a book. It has a sentence on it that seems to start on a previous page.'; gd[246].onstage = false; gd[246].pickupable = true; gd[246].node = [1, 5]; gd[246].messages = ['I don\'t want to cast a spell on that.', 'It\'s that piece of paper that drifted', 'I can\'t reach it with that.', '', 'Got it!', '', '', '', '']; gd[247].itemname = 'BLOOD DRAIN'; gd[247].neededinhand = 203; gd[247].node = [8, 7]; gd[247].messages = ['', 'It\'s full of the Professor\'s blood. There\'s a drain at the head of the altar. It\'s funneling the blood downwards.', 'I can\'t soak the blood up with that.', '', 'I have filled the quill with blood.', '', '', '', '']; gd[248].itemname = 'BLOOD-FILLED QUILL'; gd[248].itemdescription = 'I have filled the quill with blood.'; gd[248].pickupable = true; gd[248].combinewith = 252; gd[248].resultitem = 253; gd[248].messages = ['I don\'t want to write on that.', '', '', '', '', '', '', '', '']; gd[249].itemname = 'TOMB'; gd[249].neededinhand = 36; gd[249].wrongitems = [8]; gd[249].itemstohide = [249]; gd[249].itemstoshow = [251]; gd[249].node = [2, 16]; gd[249].messages = ['', 'It\'s a tomb.', 'That won\'t help me open the tomb.', '', 'I managed to loosen a few bricks. There\'s a corpse inside. It\'s covered with a shroud.', '', '', '', '', 'It\'s not strong enough. I need something else.']; gd[250].itemname = 'HOLE IN THE GROUND'; gd[250].onstage = false; gd[250].node = [2, 14]; gd[250].messages = ['That\'s where the pavement caved in and I fell down.', '', '', '', '', 'I don\'t want to throw that down there.', 'That\'s where the pavement caved in and I fell down.', '', 'I don\'t want to throw that down there.']; gd[251].itemname = 'OPEN TOMB'; gd[251].onstage = false; gd[251].node = [2, 16]; gd[251].messages = ['I don\'t need anything else from the tomb.', '', '', '', '', 'I don\'t want to put that into the tomb.', 'I took the shroud.', '', 'I don\'t want to put that into the tomb.']; gd[252].itemname = 'SHROUD'; gd[252].itemdescription = 'Not long ago it was covering a dead body.'; gd[252].pickupable = true; gd[252].disappears = true; gd[252].combinewith = 248; gd[252].resultitem = 253; gd[252].messages = ['I don\'t want to cover that.', '', '', '', '', '', '', '', '']; gd[253].itemname = 'MAGIC SHROUD'; gd[253].req = [244]; gd[253].itemdescription = 'I have written the runes specified in the book on it with the bloody quill.'; gd[253].pickupable = true; gd[253].disappears = true; gd[253].messages = ['I don\'t want to cover that with the shroud.', '', '', 'I don\'t know what to write on it.', '', 'I\'ve written the spell in blood onto the shroud.', '', '', '']; gd[254].itemname = 'BLURRED SYMBOL'; gd[254].neededinhand = 229; gd[254].itemstohide = [254]; gd[254].itemstoshow = [255]; gd[254].node = [3, 13]; gd[254].wrongitems = [253]; gd[254].messages = ['', 'It looks like a pentagram drawn with charcoal, but it\'s blurred. There are also footprints. I think someone had drawn this here, then walked over it a few times. It must have been Ashcroft. It is possible that he was the one who summoned that guardian ghost?', 'That won\'t restore the blurred symbol.', '', 'I\'ve restored the pentagram with the charred end of the torch.', '', '', '', '', 'I need to restore the symbol first.']; gd[255].itemname = 'NEWLY DRAWN SYMBOL'; gd[255].onstage = false; gd[255].neededinhand = 253; gd[255].numberofstates = 2; gd[255].stateneeded = 2; gd[255].lockstate = true; gd[255].node = [3, 13]; gd[255].messages = ['The pentagram is covered with the shroud.', 'It\'s a brand new pentagram.', 'I don\'t want to put that onto the symbol.', '', 'I\'ve covered the pentagram with the shroud.', '', '', '', 'I don\'t want to put that onto the shroud.']; gd[256].itemname = 'GUARDIAN'; gd[256].neededinhand = 246; gd[256].onstage = false; gd[256].req = [255]; gd[256].node = [3, 10]; gd[256].itemstohide = [257]; gd[256].wrongitems = [244]; gd[256].numberofstates = 2; gd[256].stateneeded = 2; gd[256].lockstate = true; gd[256].messages = ['', 'It looks like a ghost. I think I might be going crazy too...', 'That won\'t make it go away.', 'The spell didn\'t work. Something\'s missing.', 'The ghost disappeared.', '', '', '', '', 'The page that has the right spell has been torn from the book.']; gd[257].itemname = ''; gd[257].node = [3, 10]; gd[257].messages = ['That ghost-thing won\'t let me go there.', '', '', '', '', '', 'That ghost-thing won\'t let me go there.', '', '']; gd[258].itemname = 'DARK PASSAGEWAY'; gd[258].room = 26; gd[258].startnode = [0, 8]; gd[258].itemstoshow = [259]; gd[258].node = [0, 2]; gd[258].messages = ['', '', '', '', '', 'I don\'t want to throw that in there.', '', '', '']; gd[260].itemname = 'ashcroft dialog placeholder'; gd[260].dialog = ['1ASHCROFT:\rMiss Montrose. Welcome.', '1HEATHER:\rWhat have you done, you murderer?!', '1ASHCROFT:\rWhat I had to.', '1HEATHER:\rYou killed the Professor.', '1ASHCROFT:\rHe was a necessary sacrifice I had to make.', '1HEATHER:\rBut why?', '1ASHCROFT:\rI expect it will be like waking up after a long dream. Like coming up for a breath of air after being underwater. Except I was born asleep, born underwater.', '1HEATHER:\rWhat are you talking about?', '1ASHCROFT:\rBlood is the symbol of life, Miss Montrose. You should know that.', '1ASHCROFT:\rThis place takes away life. But for those who are prepared and strong in the mind, in return it provides wisdom, foresight, a widened awareness of the universe.', '1HEATHER:\rThat\'s why you killed Harbach?', '1ASHCROFT:\rI didn\'t kill him, I merely made a few cuts. It\'s his fault that he bled to death.', '1ASHCROFT:\rBut I am going to kill you.', '1ASHCROFT:\rAnd I\'m going to give your blood to Mordighan after you have died.', '1HEATHER:\rYou are crazy.', '1ASHCROFT:\rMaybe.', '1HEATHER:\rI have a crossbow. I\'ll use it if I have to.', '1HEATHER:\rI\'m guessing your blood will be as good a sacrifice as anyone\'s.', '1ASHCROFT:\rDon\'t even think about it.', '1ASHCROFT:\rYou have no idea how to handle the power emanating from this place. If you kill me, you might die too, you know...', '1HEATHER:\rI don\'t believe you. I can feel that there\'s something about this place, but...', '1ASHCROFT:\rWhy do you think Dunmore went insane? He wasn\'t strong enough. And neither are you. If you kill me, you will suffer his fate.', '1ASHCROFT:\rAnyway, it\'s too late now. It has begun. It\'s either you or me...', '']; gd[261].itemname = ''; gd[261].node = [0, 4]; gd[261].itemstohide = [264]; gd[261].messages = ['I better not move. He looks like he means it.', '', '', '', '', '', '', '', '']; gd[262].itemname = ''; gd[262].onstage = false; gd[262].node = [0, 0]; gd[262].messages = ['I better not move. He looks like he means it.', '', '', '', '', 'I better not move. He looks like he means it.', 'I better not move. He looks like he means it.', '', 'I better not move. He looks like he means it.']; gd[263].itemname = 'MUMMY'; gd[263].onstage = false; gd[263].node = [0, 11]; gd[263].messages = ['It\'s wrapped into cloth. It has a brownish color.', '', '', '', '', 'He doesn\'t need it. He\'s dead.', 'It\'s wrapped into cloth. It has a brownish color.', '', 'He doesn\'t need it. He\'s dead.']; gd[264].itemname = 'DEEP SHAFT'; gd[264].node = [0, 4]; gd[264].itemstohide = [264]; gd[264].itemstoshow = [269]; gd[266].itemname = 'ROCKS'; gd[266].node = [0, 4]; gd[266].itemstohide = [264]; gd[266].itemstoshow = [269]; gd[266].messages = ['It\'s a pile of rocks.', '', '', '', '', 'I better not move. He looks like he means it.', 'It\'s a pile of rocks.', '', 'I better not move. He looks like he means it.']; gd[267].itemname = 'TORCH'; gd[267].node = [0, 4]; gd[267].itemstohide = [264]; gd[267].itemstoshow = [269]; gd[267].messages = ['It\'s the only light source besides that blue glow.', '', '', '', '', 'I better not move. He looks like he means it.', 'It\'s the only light source besides that blue glow.', '', 'I better not move. He looks like he means it.']; gd[268].itemname = 'ASHCROFT'; gd[268].node = [0, 4]; gd[268].itemstohide = [264]; gd[268].itemstoshow = [269]; gd[268].wrongitems = [63]; gd[268].dialog = ['1ASHCROFT:\rI said don\'t move!', '']; gd[268].messages = ['He\'s holding me at gunpoint.', '', '', '', '', 'That won\'t get rid of him.', '', '', 'That won\'t get rid of him.', 'Good thinking, but he has a gun. I need to distract him. I wish it was darker in here...']; gd[269].itemname = 'DEEP SHAFT'; gd[269].onstage = false; gd[269].itemstohide = [261, 264, 266, 267, 268, 269]; gd[269].itemstoshow = [270, 271, 262, 272, 273]; gd[269].node = [0, 0]; gd[269].messages = ['', 'I need that.', '', 'It\'s a deep shaft. There\'s a strange glow coming from it. It\'s making me dizzy.', '', '', '', '', '']; gd[270].itemname = 'ROCKS'; gd[270].onstage = false; gd[270].numberofstates = 2; gd[270].fixedpickupable = true; gd[270].node = [0, 0]; gd[270].messages = ['It\'s a small pile of rocks. I think I can reach them with my foot without Ashcroft noticing.', '', '', '', '', 'I don\'t want to put that on the rocks.', 'It\'s a small pile of rocks. I think I can reach them with my foot without Ashcroft noticing.', '', 'I don\'t want to put that on the rocks.']; gd[271].itemname = 'DEEP SHAFT'; gd[271].numberofstates = 100000; gd[271].stateneeded = 100000; gd[271].onstage = false; gd[271].neededinhand = 270; gd[271].node = [0, 0]; gd[271].messages = ['', 'It\'s a deep shaft. There\'s a strange glow coming from it. It\'s making me dizzy.', 'I\'ll run out of items, if I keep that up. I need to find something else I can throw in there.', '', 'The rock made a loud noise as it fell down. It distracted Ashcroft for a moment.', '', '', '', '']; gd[272].itemname = 'ASHCROFT'; gd[272].onstage = false; gd[272].numberofstates = 2; gd[272].stateneeded = 2; gd[272].node = [0, 0]; gd[272].wrongitems = [63]; gd[272].messages = ['', '', '', '', '', 'That won\'t help me get rid of him.', 'He\'s holding me at gunpoint.', '', 'Whatever I do, I don\'t have enough time. But if it was darker, maybe he wouldn\'t see me move.', 'Good thinking, but he has a gun. I need to distract him. I wish it was darker in here...']; gd[273].itemname = 'TORCH'; gd[273].onstage = false; gd[273].neededinhand = 5; gd[273].req = [272]; gd[273].node = [5, 12]; gd[273].messages = ['', 'Besides the glow coming from the shaft, this torch is the only light source in the room.', 'That won\'t put out the torch.', 'I could use that to put out the torch, but first I need to distract Ascroft somehow.', 'HOPP, VEGE A JATEKNAK, JON AZ OUTRO. NYERTEL, BASZKI.', '', '', '', '']; gd[274].itemname = 'TIRE TRACKS'; gd[274].node = [6, 20]; gd[274].messages = ['Looks like a pair of tracks. Someone was driving a car here. That\'s good news. I think...', '', '', '', '', 'I don\'t want to put that there.', 'Looks like a pair of tracks. Someone was driving a car here. That\'s good news. I think...', '', 'I don\'t want to put that there.']; gd[275].itemname = 'HUGE TREE'; gd[275].node = [7, 27]; gd[275].messages = ['The storm must have torn this tree down. It\'s blocking the road. I can\'t get across it.', '', '', '', '', 'No use.', 'The storm must have torn this tree down. It\'s blocking the road. I can\'t get across it.', '', 'No use.']; gd[276].itemname = 'STATUE'; gd[276].node = [15, 2]; gd[276].messages = ['It\'s holding a spear.', '', '', '', '', 'I\'d better leave it alone.', 'It\'s holding a spear.', '', 'I\'d better leave it alone.']; gd[277].itemname = 'FRESCO'; gd[277].node = [1, 16]; gd[277].messages = ['The painting has two figures on it. The large one has ceremonial painting on its face. It has a shell on his belt and a red feather in its helmet. It\'s holding a spear in its hand. The other one is just a stick figure. It seems to be beating a drum.', '', '', '', '', 'I better not. I don’t\' want to peel off the paint.', 'The painting has two figures on it. The large one has ceremonial painting on its face. It has a shell on his belt and a red feather in its helmet. It\'s holding a spear in its hand. The other one is just a stick figure. It seems to be beating a drum.', '', 'I better not. I don’t\' want to peel off the paint.']; gd[278].itemname = 'WALK TO JUNGLE'; gd[278].node = [7, 19]; gd[278].room = 16; gd[278].startnode = [2, 4]; gd[279].itemname = 'WALK TO JUNGLE'; gd[279].node = [9, 0]; gd[279].room = 17; gd[279].startnode = [0, 3]; gd[300].itemname = 'FOLLOW STREAM'; gd[300].node = [9, 17]; gd[300].room = 18; gd[300].startnode = [1, 5]; gd[301].itemname = 'WALK TO JUNGLE'; gd[301].node = [3, 19]; gd[301].room = 20; gd[301].startnode = [1, 5]; gd[302].itemname = 'HUNTER'; gd[302].node = [3, 12]; gd[302].messages = ['He\'s not very conversable. I think he\'s the one I saw in the jungle after I had beaten the drum.', '', '', '', '', 'He doesn\'t need it.', '', '', 'He doesn\'t need it.']; gd[302].dialog = ['1HEATHER:\rHi.', '1HUNTER:\rHai.', '1HUNTER:\r...', '1HEATHER:\rWell, that went well...', '']; gd[303].itemname = 'WALK OUTSIDE'; gd[303].node = [7, 19]; gd[303].room = 22; gd[303].startnode = [1, 4]; gd[304].itemname = 'WALK TO TEMPLE'; gd[304].node = [4, 19]; gd[304].room = 24; gd[304].startnode = [6, 13]; gd[306].itemname = 'CAR'; gd[306].node = [5, 12]; gd[306].messages = ['It\'s a car.', '', '', '', '', 'I don\'t want to drive around. Besides, it\'s broken.', 'It\'s a car.', '', 'I don\'t want to drive around. Besides, it\'s broken.']; gd[307].itemname = 'INSCRIPTION'; gd[307].node = [7, 2]; gd[307].messages = ['It\'s an old wall with an inscription on it. The part that I can make out reads: \'... I do not want to go back. The things I have seen are horrible beyond belief. I don\'t even trust my bow anymore. Thank God, from this day on the other side is guarded by the shaman sleeping underwater...\'. This must have been written by Dunmore himself.', '', '', '', '', 'I\'d better leave it alone, it seems old.', 'It\'s an old wall with an inscription on it. The part that I can make out reads: \'... I do not want to go back. The things I have seen are horrible beyond belief. I don\'t even trust my bow anymore. Thank God, from this day on the other side is guarded by the shaman sleeping underwater...\'. This must have been written by Dunmore himself.', '', 'I\'d better leave it alone, it seems old.']; gd[308].itemname = 'STATUES'; gd[308].node = [1, 8]; gd[308].messages = ['The statues are guarding the... Wait... Why are they looking towards the temple? These kind of statues are usually placed in front of a building to guard it from whatever wants to get in. These seem to be keeping something from getting out.', '', '', '', '', 'I don\'t want to bother them.', 'The statues are guarding the... Wait... Why are they looking towards the temple? These kind of statues are usually placed in front of a building to guard it from whatever wants to get in. These seem to be keeping something from getting out.', '', 'I don\'t want to bother them.']; } function savegame() { _root.gamsaav.clear(); gdtemp = new Array(); n = 0; while (n <= 273) { gdtemp.push([_root.gd[n].inventory_happened, _root.gd[n].visibleininventory, _root.gd[n].itemstate, _root.gd[n].onstage]); ++n; } _root.gamsaav.data.savegame = gdtemp; _root.gamsaav.data.room = _root._currentframe; _root.gamsaav.data.satmapstate = _root.mc_satmap._currentframe; _root.gamsaav.data.gamesaved = true; _root.gamsaav.data.ambienceid = _root.ambienceid; _root.gamsaav.data.musicon = _root.musicon; _root.gamsaav.data.ambienceon = _root.ambienceon; _root.gamsaav.data.speechon = _root.speechon; q = _root.mc_allstage.getNode2(); trace(q[0]); _root.gamsaav.data.node = q[0]; if (_root.gamsaav.flush(15000) == true) { trace('flush yes'); } if (_root.gamsaav.flush(15000) == false) { _root.mc_flusherror._visible = true; } if (_root.gamsaav.flush(15000) == 'pending') { _root.mc_flushpending._visible = true; } } function loadgame() { _root.initgd(); gdtemp = new Array(); gdtemp = _root.gamsaav.data.savegame; n = 0; while (n <= 273) { _root.gd[n].inventory_happened = gdtemp[n][0]; _root.gd[n].visibleininventory = gdtemp[n][1]; _root.gd[n].itemstate = gdtemp[n][2]; _root.gd[n].onstage = gdtemp[n][3]; ++n; } _root.musicon = _root.gamsaav.data.musicon; _root.ambienceon = _root.gamsaav.data.ambienceon; _root.speechon = _root.gamsaav.data.speechon; if (_root.musicon) { _root.music.setVolume(_root.musicvolume); _root.mc_mainmenu.mc_mainmenuanim.mc_tick_music._visible = true; } else { _root.music.setVolume(0); _root.mc_mainmenu.mc_mainmenuanim.mc_tick_music._visible = false; } if (_root.ambienceon) { _root.ambience.setVolume(_root.ambiencevolume); _root.mc_mainmenu.mc_mainmenuanim.mc_tick_sound._visible = true; } else { _root.ambience.setVolume(0); _root.mc_mainmenu.mc_mainmenuanim.mc_tick_sound._visible = false; } if (_root.speechon) { _root.speech.setVolume(_root.speechvolume); _root.mc_soundsettings.mc_soundsettingsanim.mc_tick_speech._visible = true; } else { _root.speech.setVolume(0); _root.mc_soundsettings.mc_soundsettingsanim.mc_tick_speech._visible = false; } _root.ambienceid = _root.gamsaav.data.ambienceid; _root.music.stop(); _root.music.start(0, 999999); _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.setstage(); _root.updateinventory(); _root.mc_satmap.gotoAndStop(_root.gamsaav.data.satmapstate); _root.startnode = _root.gamsaav.data.node; _root.mc_allstage._visible = true; trace('LOADGAME CALLED'); trace('sn1 ' + _root.startnode); _root.gotoAndStop(49); } function setstage() { for (var v2 in _root.gd) { currentinventory = _root.mc_inventory.mc_inventorycontainer['ii' + v2]; currentitemonstage = _root.mc_allstage['mc_item' + v2]; if (_root.gd[v2].pickupable and _root.gd[v2].inventory_happened and _root.gd[v2].visibleininventory) { currentinventory._visible = true; } else { currentinventory._visible = false; } if (_root.gd[v2].pickupable and _root.gd[v2].inventory_happened) { currentitemonstage._visible = false; } else { currentitemonstage._visible = _root.gd[v2].onstage; } currentitemmc = _root.mc_allstage['mc_item' + v2]; currentitemmc.gotoAndStop(_root.gd[v2].itemstate); } trace('stage set'); } function updateinventory() { trace('updating inventory'); itemx = 0; itemcounter = 0; n = 1; while (n <= _root.gd.length - 1) { currentitemmc = _root.mc_inventory.mc_inventorycontainer['ii' + n]; if (_root.gd[n].pickupable and _root.gd[n].inventory_happened and _root.gd[n].visibleininventory) { currentitemmc._x = itemx; currentitemmc._y = 0; currentitemmc._visible = true; itemx += _root.itemwidth; ++itemcounter; } else { currentitemmc._visible = false; } ++n; } if (itemcounter < 11) { _root.mc_inventory.bt_invright._visible = false; if (_root.mc_inventory._currentframe == 11) { _root.playbackmc = _root.mc_inventory; _root.mc_inventorytimer.play(); } } else { if (_root.mc_inventory._currentframe == 1) { _root.mc_inventory.bt_invright._visible = true; } } } function checkrequisites(n) { trace('---------------------------'); trace('CHECKREQUISITES called, item ' + n); if (_root.gd[n].inventory_happened) { if (_root.iteminhand == 0) { _root.displaymessage(n, 0); if (_root.gd[n].lockstate) { a = false; } else { a = true; } if (_root.gd[n].room != 0) { a = true; trace('exit'); } return a; } else { _root.displaymessage(n, 8); return false; } } else { if (_root.gd[n].neededinhand != 0) { if (_root.iteminhand != 0) { if (_root.iteminhand == _root.gd[n].neededinhand) { allgo = true; for (var v3 in _root.gd[n].req) { if (_root.gd[_root.gd[n].req[v3]].inventory_happened == false) { allgo = false; } } if (allgo) { _root.displaymessage(n, 4); _root.dropitem(); return true; } else { _root.displaymessage(n, 3); return false; } } else { _root.displaymessage(n, 2); if (_root.gd[n].wrongitems != [0]) { for (var v4 in _root.gd[n].wrongitems) { if (_root.iteminhand == _root.gd[n].wrongitems[v4]) { _root.displaymessage(n, 9); break; } } } } } else { _root.displaymessage(n, 1); } } else { if (_root.iteminhand != 0) { _root.displaymessage(n, 5); } else { allgo = true; for (var v3 in _root.gd[n].req) { if (_root.gd[_root.gd[n].req[v3]].inventory_happened == false) { allgo = false; } } if (allgo) { _root.displaymessage(n, 6); return true; } else { _root.displaymessage(n, 7); return false; } } } } } function executeitem(n) { trace('---------------------------'); trace('EXECUTEITEM called, item' + n); if (_root.gd[n].room != 0) { _root.startnode = _root.gd[n].startnode; _root.gotoAndStop(_root.gd[n].room); } currentitemmc = _root.mc_allstage['mc_item' + n]; if (_root.gd[n].dialog[0] != '' and !_root.gd[n].inventory_happened) { _root.playdialog(n); } if (_root.gd[n].itemstate == _root.gd[n].stateneeded and _root.gd[n].lockstate) { } else { if (_root.gd[n].itemstate < _root.gd[n].numberofstates) { ++_root.gd[n].itemstate; } else { _root.gd[n].itemstate = 1; } trace('itemstate ' + _root.gd[n].itemstate); trace('nrstates ' + _root.gd[n].numberofstates); trace('---------------------------'); currentitemmc.mc_itemanim.gotoAndPlay(2); if (_root.gd[n].itemstate == _root.gd[n].stateneeded) { if (_root.gd[n].pickupable and !_root.gd[n].inventory_happened) { currentitemmc._visible = false; _root.gd[n].onstage = false; } if (!_root.gd[n].inventory_happened) { if (_root.gd[n].itemstoshow[0] != 0) { for (var v3 in _root.gd[n].itemstoshow) { _root.gd[_root.gd[n].itemstoshow[v3]].onstage = true; } } if (_root.gd[n].itemstohide[0] != 0) { for (v3 in _root.gd[n].itemstohide) { _root.gd[_root.gd[n].itemstohide[v3]].onstage = false; } } } if (_root.gd[n].neededinhand != 0) { if (_root.gd[_root.gd[n].neededinhand].disappears) { _root.gd[_root.gd[n].neededinhand].visibleininventory = false; } } _root.gd[n].inventory_happened = true; _root.updateinventory(); } else { _root.gd[n].inventory_happened = false; } if (gd[n].fixedpickupable) { _root.grabitem(n); } _root.debug(n); return _root.gd[n].inventory_happened; } } function displaymessage(n, m) { function hidemessagefunc() { _root.mc_sysmessages._y = 1000; clearTimeout(messagetimeout); } trace('ITEM: ' + n + ' MESSAGE: ' + m + ':'); trace(_root.gd[n].messages[m]); clearTimeout(messagetimeout); messagetimeout = setTimeout(hidemessagefunc, 20000); if (_root.gd[n].messages[m] != '') { _root.mc_sysmessages._y = 463; _root.mc_sysmessages.sysmessages.text = _root.gd[n].messages[m]; _root.mc_sysmessages.sysmessages._y = _root.sysmessages_bottom - _root.mc_sysmessages.sysmessages._height; _root.mc_sysmessages.mc_szovegala._y = _root.mc_sysmessages.sysmessages._y - 5; } else { _root.mc_sysmessages.mc_szovegala._y = 1000; _root.mc_sysmessages.sysmessages.text = ''; } } function debug(m) { trace('---------------'); trace('Event info: ---'); trace('---------------'); trace('current item/event: ' + m + ': ' + _root.gd[m].itemname); trace('current item state: ' + _root.gd[m].itemstate); trace('state needed: ' + _root.gd[m].stateneeded); trace('event happened: ' + _root.gd[m].inventory_happened); trace('item in hand: ' + _root.iteminhand); trace(''); _root.debugtxt.text = 'ITEM/EVENT: ' + m + ': ' + _root.gd[m].itemname + '\r' + 'STATE: ' + _root.gd[m].itemstate + '\r' + 'STATE NEEDED: ' + _root.gd[m].stateneeded + '\r' + 'EVENT HAPPENED: ' + _root.gd[m].inventory_happened; } function showitem(n) { var v3 = 'ii' + n; _root.mc_showitem.mc_showitemanim.mc_showitemholder.attachMovie(v3, 'marha', 1); _root.mc_showitem._visible = true; _root.mc_showitem.mc_showitemanim.text_itemdescription.text = _root.gd[n].itemdescription; _root.mc_showitem.mc_showitemanim.text_itemname.text = _root.gd[n].itemname; _root.mc_showitem.gotoAndPlay(1); } function showdescription(n) { Mouse.hide(); _root.mc_cursor.mc_ora._visible = false; _root.mc_cursor.mc_itemdescription._visible = true; _root.mc_cursor.mc_itemdescription.txt_itemdescription1.text = _root.gd[n].itemname; _root.mc_cursor.mc_itemdescription.txt_itemdescription2.text = _root.gd[n].itemname; trace('OVER ITEM: ' + n + ' ' + _root.gd[n].itemname); if (_root.iteminhand > 0) { _root.mc_cursor.mc_crosshair._visible = false; _root.mc_cursor.mc_glow._visible = true; } else { _root.mc_cursor.mc_crosshair._visible = true; _root.mc_cursor.mc_glow._visible = false; } if (_root.gd[n].exit and _root.gd[n].stateneeded == _root.gd[n].itemstate) { if (_root.iteminhand == 0) { _root.mc_cursor.mc_exit._visible = true; _root.mc_cursor.mc_crosshair._visible = false; } else { _root.mc_cursor.mc_exit._visible = false; } } else { _root.mc_cursor.mc_exit._visible = false; } } function hidedescription() { _root.mc_cursor.mc_ora._visible = false; _root.mc_cursor.mc_itemdescription._visible = false; _root.mc_cursor.mc_glow._visible = false; if (_root.iteminhand == 0) { _root.mc_cursor.mc_crosshair._visible = true; } _root.mc_cursor.mc_exit._visible = false; } function grabitem(n) { linkageid = 'ii' + n; current = _root.mc_inventory.mc_inventorycontainer['ii' + n]; _root.mc_cursor.mc_iteminhand.attachMovie(linkageid, linkageid, 1); _root.mc_cursor.mc_iteminhand._visible = true; _root.mc_cursor.mc_crosshair._visible = false; _root.iteminhand = n; current._visible = false; } function dropitem() { trace('item dropped'); _root.iteminhand = 0; _root.mc_cursor.mc_iteminhand._visible = false; _root.mc_cursor.mc_crosshair._visible = true; _root.mc_cursor.mc_glow._visible = false; _root.updateinventory(); } function combine(current, inhand) { allgo = true; wrongitem = false; if (_root.iteminhand != 0) { if (_root.iteminhand == _root.gd[current].combinewith) { for (var v5 in _root.gd[_root.gd[current].resultitem].req) { if (!_root.gd[_root.gd[_root.gd[current].resultitem].req[v5]].inventory_happened) { allgo = false; } } if (allgo) { if (_root.gd[current].disappears) { _root.gd[current].visibleininventory = false; } if (_root.gd[inhand].disappears) { _root.gd[inhand].visibleininventory = false; } _root.checkrequisites(_root.gd[current].resultitem); _root.executeitem(_root.gd[current].resultitem); _root.iteminhand = 0; _root.dropitem(); } else { _root.displaymessage(inhand, 3); } } else { for (var v4 in _root.gd[current].wrongitems) { trace('w: ' + _root.gd[current].wrongitems[v4]); if (_root.gd[current].wrongitems[v4] == inhand) { wrongitem = true; trace('wrongitem'); break; } } if (wrongitem) { _root.displaymessage(current, 9); } else { _root.displaymessage(inhand, 0); } } } else { _root.grabitem(current); _root.iteminhand = current; } } function playback(mc, frames) { i = 1; while (i <= frames) { mc.prevFrame(); ++i; } } function showhint() { trace('hint'); n = 2; while (n <= _root.gd.length - 1) { if (!_root.gd[n].inventory_happened and _root.gd[n].hh) { trace('item' + n + ': ' + _root.gd[n].inventory_happened); _root.mc_sysmessages.gotoAndPlay(1); _root.mc_sysmessages.sysmessages.text = _root.gd[n].hint; _root.mc_heads.gotoAndStop(3); break; } ++n; } } function playdialog(n) { clearTimeout(messagetimeout); trace('playing dialog:' + n); _root.mc_skipdialog._visible = true; _root.currentdialog = n; _root.dialogindex = 0; _root.nextdialog(); } function nextdialog() { if (_root.gd[_root.currentdialog].dialog[dialogindex] != '') { a = _root.gd[_root.currentdialog].dialog[dialogindex].substr(1, _root.gd[_root.currentdialog].dialog[dialogindex].length - 1); b = _root.gd[_root.currentdialog].dialog[dialogindex].substr(0, 1); trace(b); _root.mc_heads.gotoAndStop(b); _root.mc_sysmessages.sysmessages.text = a; _root.mc_sysmessages.sysmessages._y = _root.sysmessages_bottom - _root.mc_sysmessages.sysmessages._height; _root.mc_sysmessages.mc_szovegala._y = _root.mc_sysmessages.sysmessages._y - 5; _root.mc_sysmessages._y = 463; ++_root.dialogindex; } else { trace('dialogelse'); _root.mc_sysmessages.sysmessages.text = ''; _root.mc_sysmessages.mc_szovegala._y = Stage.height + 5; _root.mc_cursor.mc_crosshair._visible = true; _root.mc_cursor.mc_ora._visible = false; _root.mc_skipdialog._visible = false; _root.hidedescription(); } } function skipdialog() { _root.dialogindex = _root.gd[_root.currentdialog].dialog.length - 1; _root.mc_skipdialog._visible = false; } function attachcursor() { _root.mc_cursor.startDrag(true); Mouse.hide(); } function playsfx(linkage, looping) { _root.sfx.stop(); _root.sfx.attachSound(linkage); if (looping) { _root.sfx.start(0, 999999); } else { _root.sfx.start(0, 1); } } function positionstage() { trace('POSITIONSTAGE called'); _root.mc_allstage._x = -(_root.mc_allstage.muki._x - Stage.width / 2); _root.mc_allstage._y = -(_root.mc_allstage.muki._y - Stage.height / 2) + 100; if (_root.mc_allstage._x > 0) { _root.mc_allstage._x = 0; } if (_root.mc_allstage._y > 0) { _root.mc_allstage._y = 0; } if (-_root.mc_allstage._x > _root.mc_allstage.mc_background._width - Stage.width) { _root.mc_allstage._x = -(_root.mc_allstage.mc_background._width - Stage.width); } if (-_root.mc_allstage._y > _root.mc_allstage.mc_background._height - Stage.height) { _root.mc_allstage._y = -(_root.mc_allstage.mc_background._height - Stage.height); } trace('STAGE x: ' + _root.mc_allstage._x); trace('STAGE y: ' + _root.mc_allstage._y); } function vezerloFuggveny(a, b) { switch (a) { case 'mc_allstage_added': trace('allstage added'); mc_allstage.init(_array, vezerloFuggveny, [_root.startnode[0], _root.startnode[1]], {'x': _root.mukispeedx, 'y': _root.mukispeedy}, _root.scalearray); k = (_root._array[0][0].toString()).charAt(1); trace('mukiframe: ' + (k * 10 + 5)); trace(_root.mc_allstage.muki); kk = k * 10 + 5; _root.mc_allstage.muki.gotoAndStop(kk); mc_allstage.mc_background.onRelease = function () { if (_root.iteminhand != 0) { if (_root.gd[_root.iteminhand].fixedpickupable) { _root.executeitem(_root.iteminhand); } _root.dropitem(); _root.clickeditem = 0; } else { vezerloFuggveny('startolhat'); _root.iranytxt.text = ''; _root.arrivedfunction = function () {}; trace('anywhere'); } }; var v2 = mc_allstage.getStart(); mc_allstage.muki._x = v2[0]; mc_allstage.muki._y = v2[1]; _root.positionstage(); break; case 'arrived': iranytxt.text = 'cel'; trace('meggyuttunk'); nodetxt.text = 'node: ' + mc_allstage.getNode2(); _root.arrivedfunction(); _root.arrivedfunction = function () {}; q = mc_allstage.getNode2(); switch (b) { case 'bal': k = q[1].charAt(0) * 10 + 5; trace(k); _root.mc_allstage.muki.gotoAndStop(k); break; case 'jobb': k = q[1].charAt(1) * 10 + 6; trace(k); _root.mc_allstage.muki.gotoAndStop(k); break; case 'fel': k = q[1].charAt(2) * 10 + 7; trace(k); _root.mc_allstage.muki.gotoAndStop(k); break; case 'le': k = q[1].charAt(3) * 10 + 5; trace(k); _root.mc_allstage.muki.gotoAndStop(k); } break; case 'startolhat': mc_allstage.startmove(mc_allstage._xmouse, mc_allstage._ymouse); break; case 'mozgat': mc_allstage.muki._x = mc_allstage.pozicio._x; mc_allstage.muki._y = mc_allstage.pozicio._y; break; case 'irany': nodetxt.text = 'node: ' + mc_allstage.getNode2(); q = mc_allstage.getNode2(); switch (b) { case 'bal': k = q[1].charAt(0) * 10 + 1; trace(k); _root.mc_allstage.muki.gotoAndStop(k); break; case 'jobb': k = q[1].charAt(1) * 10 + 2; trace(k); _root.mc_allstage.muki.gotoAndStop(k); break; case 'fel': k = q[1].charAt(2) * 10 + 3; trace(k); _root.mc_allstage.muki.gotoAndStop(k); break; case 'le': k = q[1].charAt(3) * 10 + 4; trace(k); _root.mc_allstage.muki.gotoAndStop(k); } } } stop(); var myListener = new Object(); myListener.onKeyDown = function () { trace('You pressed SPACE'); }; Key.addListener(myListener); gamsaav = SharedObject.getLocal('gamsaav'); musicon = true; ambienceon = true; musicvolume = 40; ambiencevolume = 70; dialogsound = new Sound(speechcontainer); music = new Sound(musiccontainer); music.attachSound('score'); music.setVolume(musicvolume); ambience = new Sound(ambiencecontainer); ambience.setVolume(ambiencevolume); sfx = new Sound(sfxcontainer); sfx.setVolume(ambiencevolume - 20); globalsound = new Sound(); globalsound.setVolume(100); _root.iteminhand = 0; _root.itemwidth = 57; _root.mc_showitem._visible = false; _root.clickeditem = 0; _root.mc_cursor.startDrag(true); _root.mc_cursor.mc_itemdescription._visible = false; _root.mc_cursor.mc_iteminhand._visible = false; _root.mc_cursor.mc_glow._visible = false; _root.mc_cursor.mc_exit._visible = false; _root.mc_cursor.mc_ora._visible = false; _root.stageoffset = 0; _root.soy = 0; _root.directpanning = true; _root.previousroom = 11; _root.mc_satmap.gotoAndStop(2); _root.mc_mainmenu.mc_mainmenuanim.mc_tick_panning._visible = true; _root.mc_mainmenu.mc_mainmenuanim.mc_tick_scrolling._visible = false; _root.bt_sidescroller_left._visible = false; _root.bt_sidescroller_right._visible = false; _root.hengerkod = [0, 0, 0, 0]; _root.gravitykod = [0, 0, 0, 0, 0, 0]; _root.mc_skipdialog._visible = false; _root.mc_waiter._visible = false; _root.mc_flushpending._visible = false; _root.mc_flusherror._visible = false; _root.mc_mainmenu.mc_mainmenuanim.mc_menu_close.gotoAndStop(2); _root.mc_mainmenu.mc_mainmenuanim.mc_playoutro.gotoAndStop(2); _root.mc_mainmenu.mc_mainmenuanim.mc_savegame.gotoAndStop(2); _root.lastitem = 273; _root.movieplaying = false; _root.mc_confirmnewgame._visible = false; _root.mc_confirmloadgame._visible = false; _root.mc_confirmsavegame._visible = false; _root.mc_soundsettings._visible = false; _root.customitemfunction = function () {}; _root.arrivedfunction = function () {}; _root.startnode = [7, 4]; _root.animoffset = 0; _root.mc_sysmessages.sysmessages.autoSize = true; _root.mc_sysmessages.sysmessages2.autoSize = true; _root.sysmessages_bottom = _root.mc_sysmessages.sysmessages._y + _root.mc_sysmessages.sysmessages._height; _root.mc_sysmessages._y = 1000; _root.mc_journal._visible = false; var gd = new Array(); Mouse.hide(); initgd(); _root.fpsnum = 0; fpstimer = setInterval(fpsfunc, 1000); _root.mc_allstage._visible = false; _root.mc_intro.gotoAndPlay(2); } frame 11 { } movieClip 690 { } movieClip 695 { } movieClip 698 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 699 { frame 1 { stop(); } frame 3 { stop(); _root.setstage(); _root.customitemfunction(); _root.customitemfunction = function () {}; } } movieClip 701 { } movieClip 702 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 705 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 708 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 711 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 713 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 715 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 717 { } movieClip 718 { } movieClip 719 { } movieClip 721 { } movieClip 722 { } // unknown tag 88 length 143 movieClip 726 { } movieClip 727 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 728 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item2 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(3); _root.executeitem(4); _root.executeitem(5); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item6 of movieClip 705 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(7); _root.executeitem(8); } }; a = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item274 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item10 of movieClip 708 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(9); _root.executeitem(12); _root.executeitem(13); } }; a = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item11 of movieClip 711 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item12 of movieClip 713 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item13 of movieClip 715 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item14 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item15 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item275 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[_root.clickeditem].node[0] + '_' + _root.gd[_root.clickeditem].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } } // unknown tag 88 length 98 button 733 { on (release) { _root.nodetemp = _root.mc_allstage.getNode(_root.mc_allstage.muki._x, _root.mc_allstage.muki._y); _root.gotoAndStop(50); _root.sfx.stop(); } } movieClip 734 { frame 1 { stop(); } } // unknown tag 88 length 88 button 742 { on (release) { _root.showhint(); } } button 743 { on (release) { _root.mc_mainmenu._visible = true; _root.mc_mainmenu.mc_mainmenuanim.mc_menu_close.gotoAndStop(1); _root.mc_mainmenu.gotoAndPlay(2); } } button 746 { on (release) { _root.debug(_root.itemtrace.text); } } button 750 { on (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1747&subid=walkthrough&action=walkthrough_1747', '_blank'); } } button 751 { on (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1747&subid=play_more_games_ingame', '_blank'); } } button 752 { on (release) { if (_root.gd[_root.iteminhand].fixedpickupable) { _root.executeitem(_root.iteminhand); } _root.dropitem(); _root.clickeditem = 0; _root.arrivedfunction = function () {}; } } button 754 { on (release) { gotoAndPlay(1); } } button 755 { on (release) { _root.playbackmc = _root.mc_inventory; _root.mc_inventorytimer.play(); } } movieClip 758 { instance ii3 of movieClip 31 ii3 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii4 of movieClip 34 ii4 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii5 of movieClip 37 ii5 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii7 of movieClip 40 ii7 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii8 of movieClip 43 ii8 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii11 of movieClip 49 ii11 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii12 of movieClip 52 ii12 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii13 of movieClip 55 ii13 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii18 of movieClip 58 ii18 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii31 of movieClip 61 ii31 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii33 of movieClip 64 ii33 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii34 of movieClip 67 ii34 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii9 of movieClip 46 ii9 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii37 of movieClip 73 ii37 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii41 of movieClip 79 ii41 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii36 of movieClip 70 ii36 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii40 of movieClip 76 ii40 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii58 of movieClip 82 ii58 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii62 of movieClip 85 ii62 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii63 of movieClip 87 ii63 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii64 of movieClip 90 ii64 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii66 of movieClip 93 ii66 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii67 of movieClip 96 ii67 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii72 of movieClip 99 ii72 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii86 of movieClip 105 ii86 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii87 of movieClip 108 ii87 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii88 of movieClip 111 ii88 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii89 of movieClip 114 ii89 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii99 of movieClip 117 ii99 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii101 of movieClip 120 ii101 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii102 of movieClip 123 ii102 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii109 of movieClip 129 ii109 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii110 of movieClip 132 ii110 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); if (_root.gd[145].inventory_happened) { _root.gd[110].visibleininventory = false; _root.executeitem(150); } } } instance ii108 of movieClip 126 ii108 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii117 of movieClip 135 ii117 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii133 of movieClip 138 ii133 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); if (_root.gd[151].inventory_happened) { _root.executeitem(152); } } } instance ii134 of movieClip 141 ii134 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii141 of movieClip 151 ii141 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii137 of movieClip 144 ii137 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii138 of movieClip 147 ii138 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii144 of movieClip 154 ii144 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii145 of movieClip 157 ii145 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii149 of movieClip 163 ii149 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); if (_root.gd[151].inventory_happened) { _root.executeitem(152); } } } instance ii151 of movieClip 166 ii151 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii152 of movieClip 168 ii152 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii153 of movieClip 170 ii153 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii154 of movieClip 172 ii154 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii146 of movieClip 160 ii146 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii155 of movieClip 175 ii155 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii150 of movieClip 164 ii150 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii161 of movieClip 184 ii161 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii140 of movieClip 148 ii140 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); if (_root.gd[145].inventory_happened) { _root.gd[110].visibleininventory = false; _root.executeitem(150); } } } instance ii158 of movieClip 178 ii158 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii159 of movieClip 181 ii159 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii184 of movieClip 190 ii184 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii190 of movieClip 191 ii190 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii203 of movieClip 200 ii203 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii201 of movieClip 197 ii201 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.dropitem(); _root.executeitem(220); _root.gd[220].inventory_happened = false; _root.gd[202].onstage = true; _root.setstage(); } } instance ii199 of movieClip 194 ii199 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii206 of movieClip 203 ii206 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii207 of movieClip 205 ii207 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii211 of movieClip 206 ii211 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii213 of movieClip 207 ii213 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii215 of movieClip 208 ii215 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii217 of movieClip 211 ii217 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii222 of movieClip 213 ii222 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii223 of movieClip 215 ii223 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii229 of movieClip 218 ii229 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii246 of movieClip 227 ii246 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii248 of movieClip 229 ii248 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii252 of movieClip 232 ii252 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii253 of movieClip 234 ii253 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii244 of movieClip 224 ii244 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii230 of movieClip 221 ii230 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.mc_journal._visible = true; } } instance ii75 of movieClip 101 ii75 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance i77 of movieClip 102 ii77 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii173 of movieClip 186 ii173 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii174 of movieClip 187 ii174 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } instance ii270 of movieClip 237 ii270 { onClipEvent (rollOver) { current = this._name.slice(2, 5); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } onClipEvent (release) { _root.combine(current, _root.iteminhand); } } } movieClip 759 { frame 1 { stop(); _root.playbackmc = undefined; _root.mc_inventorytimer.stop(); _root.mc_inventory.bt_inveleft._visible = false; _root.mc_inventory.bt_invright._visible = true; } instance mc_inventorycontainer of movieClip 758 { } frame 11 { stop(); _root.playbackmc = undefined; _root.mc_inventorytimer.stop(); _root.mc_inventory.bt_inveleft._visible = true; _root.mc_inventory.bt_invright._visible = false; } } movieClip 761 { } instance mc_inventorytimer of movieClip 761 { onClipEvent (enterFrame) { _root.playbackmc.prevFrame(); } } // unknown tag 88 length 74 button 765 { on (release) { if (_root.iteminhand != 0) { _root.showitem(_root.iteminhand); _root.dropitem(); } else { _root.displaymessage(1, 0); } } } movieClip 766 { } // unknown tag 88 length 86 button 773 { on (release) { _root.mc_journal.nextFrame(); } } button 776 { on (release) { _root.mc_journal._visible = false; } } button 780 { on (release) { _root.mc_journal.prevFrame(); } } movieClip 781 { frame 1 { stop(); } } button 783 { on (release) { _root.mc_sysmessages._y = 1000; } } movieClip 784 { } // unknown tag 88 length 97 movieClip 787 { } // unknown tag 88 length 138 button 791 { on (release) { _root.movieplaying = false; _root.mc_intro.stop(); if (_root._currentframe != 11 and !_root.gd[_root.lastitem].inventory_happened) { _root.mc_allstage._visible = true; _root.music.stop(); _root.music.start(0, 999999); _root.ambience.stop(); _root.ambience.start(0, 999999); } _root.mc_mainmenu.gotoAndPlay(2); _root.mc_intro._visible = false; trace('intro stopped'); } } movieClip 793 { } movieClip 796 { } movieClip 800 { } movieClip 801 { frame 1 { stop(); } frame 2 { play(); _root.movieplaying = true; _root.mc_allstage._visible = false; trace('intro started'); this._visible = true; } frame 2261 { _root.movieplaying = false; if (_root._currentframe != 11 and !_root.gd[_root.lastitem].inventory_happened) { _root.mc_allstage._visible = true; _root.music.stop(); _root.music.start(0, 999999); _root.ambience.stop(); _root.ambience.start(0, 999999); } _root.mc_mainmenu.gotoAndPlay(2); _root.mc_intro._visible = false; trace('intro stopped'); } } button 804 { on (release) { _root.movieplaying = false; _root.mc_outro.stop(); _root.mc_mainmenu.gotoAndPlay(2); _root.mc_outro._visible = false; trace('outro stopped'); } } movieClip 807 { } movieClip 809 { } movieClip 810 { frame 1 { stop(); } frame 2 { play(); _root.movieplaying = true; _root.mc_allstage._visible = false; trace('outro started'); this._visible = true; } frame 1937 { _root.movieplaying = false; _root.mc_mainmenu.gotoAndPlay(2); _root.mc_outro._visible = false; trace('outro stopped'); } } // unknown tag 88 length 90 movieClip 813 { } movieClip 814 { frame 1 { stop(); } } movieClip 815 { } button 819 { on (release) { this._parent.play(); } } movieClip 820 { } movieClip 822 { } movieClip 823 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); _root.mc_showitem._visible = false; _root.mc_showitem.gotoAndStop(1); } } movieClip 826 { } button 827 { on (release) { _root.mc_soundsettings.play(); } } button 828 { on (release) { if (_root.ambienceon) { _root.ambienceon = false; _root.mc_soundsettings.mc_soundsettingsanim.mc_tick_sound._visible = false; _root.ambience.setVolume(0); _root.sfx.setVolume(0); } else { _root.ambienceon = true; _root.mc_soundsettings.mc_soundsettingsanim.mc_tick_sound._visible = true; _root.ambience.setVolume(_root.ambiencevolume); _root.sfx.setVolume(_root.ambiencevolume - 20); } } } button 829 { on (release) { if (_root.musicon) { _root.musicon = false; _root.mc_soundsettings.mc_soundsettingsanim.mc_tick_music._visible = false; _root.music.setVolume(0); } else { _root.musicon = true; _root.mc_soundsettings.mc_soundsettingsanim.mc_tick_music._visible = true; _root.music.setVolume(_root.musicvolume); } } } button 830 { on (release) { if (_root.speechon) { _root.speechon = false; _root.mc_soundsettings.mc_soundsettingsanim.mc_tick_speech._visible = false; } else { _root.speechon = true; _root.mc_soundsettings.mc_soundsettingsanim.mc_tick_speech._visible = true; } } } movieClip 831 { } movieClip 832 { frame 7 { stop(); } frame 13 { stop(); _root.mc_soundsettings._visible = false; } } button 833 { on (release) { _root.nextdialog(); } on (rollOver) { _root.mc_cursor.mc_crosshair._visible = false; _root.mc_cursor.mc_ora._visible = true; _root.mc_cursor.mc_itemdescription._visible = true; _root.mc_cursor.mc_itemdescription.txt_itemdescription1.text = 'CLICK TO SKIP'; _root.mc_cursor.mc_itemdescription.txt_itemdescription2.text = 'CLICK TO SKIP'; trace('over skipdialog'); } } button 838 { on (release) { _root.music.stop(); _root.ambience.stop(); _root.mc_mainmenu.play(); _root.mc_outro.gotoAndPlay(2); } } movieClip 840 { frame 1 { stop(); } } button 842 { on (release) { _root.mc_mainmenu.play(); } } movieClip 844 { frame 1 { stop(); } } button 846 { on (release) { if (_root.gamsaav.data.gamesaved) { _root.mc_confirmsavegame.gotoAndStop(1); _root.mc_confirmsavegame._visible = true; } else { _root.savegame(); _root.mc_confirmsavegame.gotoAndStop(2); _root.mc_confirmsavegame._visible = true; } } } movieClip 848 { frame 1 { stop(); } } button 850 { on (release) { _root.mc_confirmloadgame._visible = true; } } movieClip 852 { frame 1 { stop(); } } button 860 { on (release) { _root.mc_confirmnewgame._visible = true; } } button 861 { on (release) { _root.music.stop(); _root.ambience.stop(); _root.mc_mainmenu.play(); _root.mc_intro.gotoAndPlay(2); } } button 862 { on (release) { if (_root.ambienceon) { _root.ambienceon = false; this.mc_tick_sound._visible = false; _root.ambience.setVolume(0); _root.sfx.setVolume(0); } else { _root.ambienceon = true; this.mc_tick_sound._visible = true; _root.ambience.setVolume(_root.ambiencevolume); _root.sfx.setVolume(_root.ambiencevolume - 20); } } } button 863 { on (release) { if (_root.musicon) { _root.musicon = false; this.mc_tick_music._visible = false; _root.music.setVolume(0); } else { _root.musicon = true; this.mc_tick_music._visible = true; _root.music.setVolume(_root.musicvolume); } } } movieClip 865 { instance mc_bubblebox of movieClip 11 { onClipEvent (release) { getURL('http://www.bubblebox.com/clickreg.php?type=gamestats&id=1747&subid=play_more_games_menu', '_blank'); } } } movieClip 866 { frame 1 { stop(); } frame 2 { play(); if (_root.musicon) { this.mc_mainmenuanim.mc_tick_music._visible = true; } else { this.mc_mainmenuanim.mc_tick_music._visible = false; } if (_root.ambienceon) { this.mc_mainmenuanim.mc_tick_sound._visible = true; } else { this.mc_mainmenuanim.mc_tick_sound._visible = false; } _root.mc_mainmenu._visible = true; if (_root.gamsaav.data.gamesaved) { _root.mc_mainmenu.mc_mainmenuanim.mc_loadgame.gotoAndStop(1); } else { _root.mc_mainmenu.mc_mainmenuanim.mc_loadgame.gotoAndStop(2); } trace('last item: ' + _root.gd[_root.lastitem].inventory_happened); trace('root currentframe: ' + _root._currentframe); if (_root.gd[_root.lastitem].inventory_happened) { _root.mc_mainmenu.mc_mainmenuanim.mc_savegame.gotoAndStop(2); _root.mc_mainmenu.mc_mainmenuanim.mc_playoutro.gotoAndStop(1); _root.mc_mainmenu.mc_mainmenuanim.mc_menu_close.gotoAndStop(2); } else { _root.mc_mainmenu.mc_mainmenuanim.mc_savegame.gotoAndStop(1); _root.mc_mainmenu.mc_mainmenuanim.mc_playoutro.gotoAndStop(2); } if (_root._currentframe == 11) { _root.mc_mainmenu.mc_mainmenuanim.mc_savegame.gotoAndStop(2); _root.mc_mainmenu.mc_mainmenuanim.mc_menu_close.gotoAndStop(2); } } frame 8 { stop(); } frame 14 { _root.mc_mainmenu._visible = false; _root.updateinventory(); } } button 872 { on (release) { _root.mc_confirmnewgame._visible = false; _root.initgd(); _root.music.stop(); _root.music.start(0, 999999); _root.ambienceid = 'storm'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.mc_mainmenu.play(); _root.mc_satmap.gotoAndStop(2); _root.mc_allstage._visible = true; _root.startnode = [7, 4]; _root.gotoAndStop(12); _root.setstage(); } } button 873 { on (release) { _root.mc_confirmnewgame._visible = false; } } movieClip 874 { } button 876 { on (release) { _root.mc_confirmloadgame._visible = false; _root.mc_mainmenu.play(); _root.loadgame(); } } button 877 { on (release) { _root.mc_confirmloadgame._visible = false; } } movieClip 878 { } button 882 { on (release) { _root.savegame(); this.gotoAndStop(2); } } button 883 { on (release) { _root.mc_confirmsavegame._visible = false; } } button 886 { on (release) { _root.mc_confirmsavegame._visible = false; this.gotoAndStop(1); _root.mc_mainmenu.play(); } } movieClip 887 { frame 1 { stop(); } } // unknown tag 88 length 97 button 892 { on (release) { _root.mc_flusherror._visible = false; } } movieClip 893 { } button 896 { on (release) { _root.mc_flushpending._visible = false; } } movieClip 897 { } movieClip 899 { } movieClip 901 { } movieClip 904 { } movieClip 905 { } movieClip 907 { } movieClip 908 { } movieClip 914 { } movieClip 915 { instance mc_exit of movieClip 908 { onClipEvent (enterFrame) { if (_root._xmouse < 270) { if (_root._ymouse < 210) { this._rotation = 225; } if (_root._ymouse > 210 and _root._ymouse < 390) { this._rotation = 180; } if (_root._ymouse > 390) { this._rotation = 135; } } if (_root._xmouse > 270 and _root._xmouse < 530) { if (_root._ymouse < 210) { this._rotation = 270; } if (_root._ymouse > 210 and _root._ymouse < 390) { this._rotation = 270; } if (_root._ymouse > 390) { this._rotation = 90; } } if (_root._xmouse > 530) { if (_root._ymouse < 210) { this._rotation = 335; } if (_root._ymouse > 210 and _root._ymouse < 390) { this._rotation = 0; } if (_root._ymouse > 390) { this._rotation = 45; } } } } } movieClip 917 { } instance of movieClip 917 { onClipEvent (enterFrame) { if (!_root.movieplaying) { if (_root._currentframe < 15 or _root._currentframe == 26) { a = Math.random(); if (a < 0.005) { _root.mc_allstage.lightning.gotoAndPlay(2); } } fx = Stage.width / 2 - _root.mc_allstage.muki._x; fy = Stage.height / 2 - _root.mc_allstage.muki._y + 100; distancex = fx - _root.mc_allstage._x; distancey = fy - _root.mc_allstage._y; _root.mc_allstage._x += distancex / 5; _root.mc_allstage._y += distancey / 5; if (_root.mc_allstage._x > 0) { _root.mc_allstage._x = 0; } if (_root.mc_allstage._y > 0) { _root.mc_allstage._y = 0; } if (-_root.mc_allstage._x > _root.mc_allstage.mc_background._width - Stage.width) { _root.mc_allstage._x = -(_root.mc_allstage.mc_background._width - Stage.width); } if (-_root.mc_allstage._y > _root.mc_allstage.mc_background._height - Stage.height) { _root.mc_allstage._y = -(_root.mc_allstage.mc_background._height - Stage.height); } ++_root.fpsnum; } } } frame 12 { _root.ruha = 1; _root.ambienceid = 'storm'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.8, 1]; _root.mukispeedx = 0.09; _root.mukispeedy = 0.2; _root.setstage(); _root.hidedescription(); var _array = [[24444, 24444, 24444, 24444, 14444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 24444, 24444, 24444, 14444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 24444, 24444, 24444, 14444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14444, 14444, 24444, 24444, 24444, 14444, 24444, 24444], [24444, 24444, 24444, 24444, 14444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14444, 14444, 14444, 24444, 24444, 24444, 24444, 24444, 24444, 14444, 14444, 14444, 24444, 24444, 14444, 24444, 24444], [24444, 24444, 24444, 24444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 24444, 24444, 14444, 14444, 14444, 14444, 14444, 24444, 24444, 14444, 24444, 24444], [24444, 24444, 24444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 24444, 24444], [24444, 24444, 24444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 24444, 24444], [24444, 24444, 24444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 24444, 24444], [14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 24444, 24444], [14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 24444, 24444]]; vezerloFuggveny('mc_allstage_added'); } frame 13 { _root.ruha = 1; _root.ambienceid = 'storm'; _root.previousroom = _root._currentframe; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.scalearray = [0.4, 0.5]; _root.mukispeedx = 0.09; _root.mukispeedy = 0.08; _root.setstage(); _root.hidedescription(); var _array = [[24444, 14455, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 14455, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 14455, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 14455, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 14455, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 14455, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 14455, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14445, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14455, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14455, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14455, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14455, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14455, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14455, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14455, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 14455, 24444], [14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14454, 24444]]; vezerloFuggveny('mc_allstage_added'); } movieClip 920 { } movieClip 921 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } frame 2 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 923 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } frame 2 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 926 { } movieClip 939 { } movieClip 942 { } movieClip 943 { } movieClip 944 { } movieClip 945 { } movieClip 946 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 947 { } movieClip 949 { } movieClip 950 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 951 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item23 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item60 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item21 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item22 of movieClip 921 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item19 of movieClip 923 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(22); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item24 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item16 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item276 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item17 of movieClip 946 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } } frame 14 { _root.ruha = 1; _root.ambienceid = 'storm'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.4, 1]; _root.mukispeedx = 0.1; _root.mukispeedy = 0.08; _root.setstage(); _root.hidedescription(); var _array = [[24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 24444, 14444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 24444, 14444, 24444, 14444, 14444, 14444, 14444, 14444], [14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444, 14444], [24444, 14444, 24444, 24444, 24444, 24444, 24444, 24444, 24444], [24444, 14444, 24444, 24444, 24444, 24444, 24444, 24444, 24444]]; vezerloFuggveny('mc_allstage_added'); _root.dayanim1._visible = false; _root.executeitem(25); } movieClip 954 { } movieClip 959 { } movieClip 960 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 961 { } movieClip 962 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 963 { } movieClip 964 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item26 of movieClip 960 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.customitemfunction = function () { _root.dayanim1._visible = true; _root.dayanim1.gotoAndPlay(2); }; } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } } movieClip 966 { frame 1 { stop(); this._visible = false; } frame 2 { this._visible = true; } frame 100 { stop(); this._visible = false; _root.startnode = [7, 7]; _root.gotoAndStop(15); } } instance dayanim1 of movieClip 966 { onClipEvent (release) { } onClipEvent (rollOver) { _root.mc_cursor.mc_crosshair._visible = false; _root.mc_cursor.mc_ora._visible = true; _root.mc_cursor.mc_itemdescription._visible = true; _root.mc_cursor.mc_itemdescription.txt_itemdescription1.text = ''; _root.mc_cursor.mc_itemdescription.txt_itemdescription2.text = ''; } } frame 15 { _root.ruha = 2; _root.ambienceid = 'jungle'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.6, 0.9]; _root.mukispeedx = 0.08; _root.mukispeedy = 0.1; _root.setstage(); _root.hidedescription(); var _array = [[20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 20000, 10000, 10000, 10000, 20000, 20000], [20000, 20000, 10000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000]]; vezerloFuggveny('mc_allstage_added'); } movieClip 969 { } movieClip 972 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 975 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 977 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 980 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 983 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 985 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 988 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 992 { } movieClip 993 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item134 of movieClip 972 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item27 of movieClip 975 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item28 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item29 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item31 of movieClip 977 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item34 of movieClip 980 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item35 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(33); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item52 of movieClip 975 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(58); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item71 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(72); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item91 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item103 of movieClip 983 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item105 of movieClip 975 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item135 of movieClip 975 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.gd[134].visibleininventory = false; _root.executeitem(140); _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item156 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item155 of movieClip 985 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item157 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(158); _root.executeitem(159); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item98 of movieClip 988 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(99); _root.executeitem(101); _root.executeitem(102); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item32 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(33); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item20 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } } frame 16 { _root.ruha = 2; _root.ambienceid = 'jungle'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.4, 1]; _root.mukispeedx = 0.08; _root.mukispeedy = 0.1; _root.setstage(); _root.hidedescription(); var _array = [[20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 20000], [20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 20000, 10000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000]]; vezerloFuggveny('mc_allstage_added'); myBitmap = new flash.display.BitmapData(229, 173); pt = new flash.geom.Point(0, 10); mpoint = new flash.geom.Point(0, 0); myDispl = new flash.filters.DisplacementMapFilter(myBitmap, mpoint, 1, 2, 10, 20); _root.mc_allstage.mc_item80.water_mc.myList = new Array(); _root.mc_allstage.mc_item80.water_mc.myList.push(myDispl); _root.mc_allstage.mc_item80.water_mc.filters = _root.mc_allstage.mc_item80.water_mc.myList; _root.vizszam = 1; } movieClip 996 { } movieClip 999 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1002 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1007 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1010 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1013 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1015 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1017 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1020 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1023 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1027 { frame 1 { if (_root.gd[80].onstage) { filterList = _root.mc_allstage.mc_item80.water_mc.filters; offset = new Array(); offset[1] = new Object(); offset[1].x = 1; offset[1].y = _root.vizszam / 2; _root.myBitmap.perlinNoise(50, 10, 2, 50, true, false, 7, true, offset); _root.filterList.mapBitmap = myBitmap; _root.mc_allstage.mc_item80.water_mc.filters = filterList; ++_root.vizszam; } } } movieClip 1028 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1030 { } movieClip 1031 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item38 of movieClip 999 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item277 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item40 of movieClip 1002 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item44 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item37 of movieClip 1007 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item39 of movieClip 1010 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item41 of movieClip 1013 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item45 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item36 of movieClip 1015 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item68 of movieClip 1017 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item65 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item136 of movieClip 1020 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item142 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item143 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(144); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item43 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item42 of movieClip 1023 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item80 of movieClip 1028 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance of movieClip 1030 { onClipEvent (enterFrame) { q = _root.mc_allstage.getNode2(); if (q[0][0] < 4) { this._visible = true; } else { this._visible = false; } } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } } frame 17 { _root.ruha = 2; _root.ambienceid = 'jungle'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.3, 0.5]; _root.mukispeedx = 0.08; _root.mukispeedy = 0.09; _root.setstage(); _root.hidedescription(); var _array = [[20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 10000, 20000, 20000, 20000, 20000, 10000, 20000, 20000, 20000, 20000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000]]; vezerloFuggveny('mc_allstage_added'); myBitmap = new flash.display.BitmapData(612, 100); pt = new flash.geom.Point(0, 0); mpoint = new flash.geom.Point(80, 260); myDispl = new flash.filters.DisplacementMapFilter(myBitmap, mpoint, 1, 2, 10, 10); _root.mc_allstage.water_mc.myList = new Array(); _root.mc_allstage.water_mc.myList.push(myDispl); _root.mc_allstage.water_mc.filters = _root.mc_allstage.water_mc.myList; _root.vizszam = 1; } movieClip 1034 { } movieClip 1036 { frame 1 { if (!_root.gd[50].inventory_happened) { filterList = _root.mc_allstage.water_mc.filters; offset = new Array(); offset[1] = new Object(); offset[1].x = -_root.vizszam; offset[1].y = 0.5; _root.myBitmap.perlinNoise(20, 4, 2, 10, true, false, 7, true, offset); _root.filterList.mapBitmap = myBitmap; _root.mc_allstage.water_mc.filters = filterList; ++_root.vizszam; } } } movieClip 1039 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1042 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1047 { } movieClip 1048 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1053 { } movieClip 1054 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1059 { } movieClip 1060 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1065 { } movieClip 1066 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1069 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1071 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1073 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1076 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1081 { } movieClip 1082 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1085 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1087 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1092 { } movieClip 1093 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1095 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item50 of movieClip 1039 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item46 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item307 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item95 of movieClip 1042 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item53 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item47 of movieClip 1048 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item48 of movieClip 1048 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item49 of movieClip 1054 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item51 of movieClip 1054 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.customitemfunction = function () { _root.mc_satmap.gotoAndStop(1); trace('customitem'); }; } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item59 of movieClip 1060 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item61 of movieClip 1066 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item62 of movieClip 1069 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item64 of movieClip 1071 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item66 of movieClip 1073 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item67 of movieClip 1076 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item93 of movieClip 1082 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item94 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item96 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.customitemfunction = function () { _root.dayanim2.gotoAndPlay(2); }; } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item97 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item178 of movieClip 1085 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item177 of movieClip 1087 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.gd[158].visibleininventory = false; _root.updateinventory(); _root.playsfx('explosion', false); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item120 of movieClip 1093 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item306 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } } movieClip 1097 { frame 1 { stop(); this._visible = false; } frame 2 { this._visible = true; } frame 100 { stop(); this._visible = false; _root.startnode = [9, 2]; _root.gotoAndStop(19); } } instance dayanim2 of movieClip 1097 { onClipEvent (release) { } onClipEvent (rollOver) { _root.mc_cursor.mc_crosshair._visible = false; _root.mc_cursor.mc_ora._visible = true; _root.mc_cursor.mc_itemdescription._visible = true; _root.mc_cursor.mc_itemdescription.txt_itemdescription1.text = ''; _root.mc_cursor.mc_itemdescription.txt_itemdescription2.text = ''; } } frame 18 { _root.ruha = 2; _root.ambienceid = 'jungle'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.5, 0.6]; _root.mukispeedx = 0.11; _root.mukispeedy = 0.15; _root.setstage(); _root.hidedescription(); var _array = [[20000, 20000, 20000, 20000, 20000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 20000, 20000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000]]; vezerloFuggveny('mc_allstage_added'); if (_root.gd[73].itemstate == 1) { myBitmap = new flash.display.BitmapData(799, 133); pt = new flash.geom.Point(0, 10); mpoint = new flash.geom.Point(0, 178); myDispl = new flash.filters.DisplacementMapFilter(myBitmap, mpoint, 1, 2, 10, 20); _root.mc_allstage.mc_item73.water_mc.myList = new Array(); _root.mc_allstage.mc_item73.water_mc.myList.push(myDispl); _root.mc_allstage.mc_item73.water_mc.filters = _root.mc_allstage.mc_item73.water_mc.myList; _root.vizszam = 1; } else { myBitmap = new flash.display.BitmapData(417, 254); pt = new flash.geom.Point(0, 10); mpoint = new flash.geom.Point(0, 63); myDispl = new flash.filters.DisplacementMapFilter(myBitmap, mpoint, 1, 2, 10, 30); _root.mc_allstage.mc_item73.water_mc.myList = new Array(); _root.mc_allstage.mc_item73.water_mc.myList.push(myDispl); _root.mc_allstage.mc_item73.water_mc.filters = _root.mc_allstage.mc_item73.water_mc.myList; _root.vizszam = 1; } } movieClip 1100 { } movieClip 1102 { frame 1 { filterList = _root.mc_allstage.mc_item73.water_mc.filters; offset = new Array(); offset[1] = new Object(); offset[1].x = -_root.vizszam; offset[1].y = 0.5; _root.myBitmap.perlinNoise(20, 4, 2, 10, true, false, 7, true, offset); _root.filterList.mapBitmap = myBitmap; _root.mc_allstage.mc_item73.water_mc.filters = filterList; ++_root.vizszam; } } movieClip 1106 { frame 1 { filterList = _root.mc_allstage.mc_item73.water_mc.filters; offset = new Array(); offset[1] = new Object(); offset[1].x = 0.5; offset[1].y = -_root.vizszam / 2; _root.myBitmap.perlinNoise(30, 6, 2, 10, true, false, 7, true, offset); _root.filterList.mapBitmap = myBitmap; _root.mc_allstage.mc_item73.water_mc.filters = filterList; ++_root.vizszam; } } movieClip 1107 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } frame 2 { } } movieClip 1110 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1113 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1116 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1121 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1123 { } movieClip 1125 { } movieClip 1126 { frame 1 { stop(); } frame 2 { play(); } frame 3 { _root.playsfx('explosion', false); } frame 87 { stop(); } } movieClip 1127 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item90 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item83 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item106 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item73 of movieClip 1107 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(50); _root.mc_allstage.mc_robbanas.gotoAndPlay(2); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item107 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item278 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item74 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item75 of movieClip 1110 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item76 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item77 of movieClip 1113 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item78 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item79 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item86 of movieClip 1116 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item82 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(87); _root.executeitem(88); _root.executeitem(89); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item81 of movieClip 1121 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item70 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance of movieClip 1123 { onClipEvent (enterFrame) { q = _root.mc_allstage.getNode2(); if (q[0][0] < 4) { this._visible = true; } else { this._visible = false; } } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } } frame 19 { _root.ruha = 2; _root.ambienceid = 'jungle'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.4, 0.4]; _root.mukispeedx = 0.08; _root.mukispeedy = 0.08; _root.setstage(); _root.hidedescription(); var _array = [[20000, 20000, 20000, 20000, 20000, 10022, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000], [20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000]]; vezerloFuggveny('mc_allstage_added'); } movieClip 1130 { } movieClip 1133 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1136 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1139 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1142 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1146 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1149 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1154 { } movieClip 1155 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1158 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1159 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item165 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item166 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item167 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item169 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item171 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item172 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item173 of movieClip 1133 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item174 of movieClip 1136 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item175 of movieClip 1139 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item176 of movieClip 1142 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item164 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item163 of movieClip 1146 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item137 of movieClip 1149 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item104 of movieClip 1155 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item160 of movieClip 1155 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item162 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.gd[161].visibleininventory = false; _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item279 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.gd[161].visibleininventory = false; _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item227 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.gd[161].visibleininventory = false; _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item179 of movieClip 1158 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance r_5_6 of movieClip 698 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } } frame 20 { _root.ruha = 2; _root.ambienceid = 'waterfall'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.3, 0.6]; _root.mukispeedx = 0.08; _root.mukispeedy = 0.08; _root.setstage(); _root.hidedescription(); var _array = [[20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000], [20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 10000, 10000, 10000, 20000], [20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10300, 13333, 13333, 13000, 10000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 10000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10300, 13333, 13003, 10000, 20000, 20000], [20000, 20000, 10000, 10000, 10000, 10000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 13333, 13303, 20000, 20000], [20000, 20000, 10000, 10000, 10000, 10000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 13333, 13333, 10000, 20000]]; vezerloFuggveny('mc_allstage_added'); myBitmap = new flash.display.BitmapData(296, 157); pt = new flash.geom.Point(0, 0); mpoint = new flash.geom.Point(698, 367); myDispl = new flash.filters.DisplacementMapFilter(myBitmap, mpoint, 1, 2, 10, 50); _root.mc_allstage.water_mc.myList = new Array(); _root.mc_allstage.water_mc.myList.push(myDispl); _root.mc_allstage.water_mc.filters = _root.mc_allstage.water_mc.myList; _root.vizszam = 1; } movieClip 1162 { } movieClip 1164 { frame 1 { filterList = _root.mc_allstage.water_mc.filters; offset = new Array(); offset[1] = new Object(); offset[1].x = 1; offset[1].y = -_root.vizszam / 2; _root.myBitmap.perlinNoise(50, 10, 2, 50, true, false, 7, true, offset); _root.filterList.mapBitmap = myBitmap; _root.mc_allstage.water_mc.filters = filterList; ++_root.vizszam; } } movieClip 1167 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1170 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1173 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1176 { frame 1 { stop(); } frame 45 { stop(); _root.setstage(); _root.customitemfunction(); _root.customitemfunction = function () {}; } } movieClip 1177 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1178 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1179 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1182 { } movieClip 1183 { frame 1 { lepke.gotoAndPlay(3); } } movieClip 1184 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1193 { } movieClip 1195 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1197 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1199 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1201 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1203 { } movieClip 1204 { } movieClip 1205 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item125 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.playsfx('drum', false); _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item108 of movieClip 1167 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item114 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item115 of movieClip 1170 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item116 of movieClip 1173 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(117); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item126 of movieClip 1178 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item127 of movieClip 1179 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item139 of movieClip 1184 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(141); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item300 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item112 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.playsfx('drum', false); _root.executeitem(113); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item122 of movieClip 1195 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); if (_root.checkrequisites(123)) { _root.executeitem(123); } } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item118 of movieClip 1197 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); if (_root.checkrequisites(123)) { _root.executeitem(123); } } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item121 of movieClip 1199 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); if (_root.checkrequisites(123)) { _root.executeitem(123); } } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item119 of movieClip 1201 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); if (_root.checkrequisites(123)) { _root.executeitem(123); } } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item124 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item128 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } } frame 21 { _root.ruha = 2; _root.ambienceid = 'jungle'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.4, 0.7]; _root.mukispeedx = 0.07000000000000001; _root.mukispeedy = 0.2; _root.setstage(); _root.hidedescription(); var _array = [[20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 20000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000], [20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000], [20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000], [20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000], [20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000], [20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000]]; vezerloFuggveny('mc_allstage_added'); } movieClip 1208 { } movieClip 1211 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1212 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = -Math.random() * 2 + 1; b = -Math.random() * 2 + 1; this._x += a; this._y += b; this._rotation += a; } } } movieClip 1214 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1215 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item132 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item131 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item133 of movieClip 1211 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item301 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(149); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item302 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item147 of movieClip 1212 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.gd[146].visibleininventory = false; } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item148 of movieClip 1214 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(149); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } } frame 22 { _root.ruha = 2; _root.ambienceid = 'jungle'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.4, 0.7]; _root.mukispeedx = 0.08; _root.mukispeedy = 0.08; _root.setstage(); _root.hidedescription(); var _array = [[20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 20000, 20000, 10000, 20000, 20000, 20000, 20000], [10000, 20000, 20000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 20000, 20000, 10000, 20000, 20000, 20000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000]]; vezerloFuggveny('mc_allstage_added'); } movieClip 1218 { } movieClip 1220 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1223 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1226 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1229 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1231 { } movieClip 1233 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item204 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.gd[58].visibleininventory = false; _root.updateinventory(); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item198 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item200 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(201); _root.executeitem(203); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item224 of movieClip 1220 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item199 of movieClip 1223 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item202 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(217); _root.executeitem(230); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item180 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item308 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item182 of movieClip 1226 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.customitemfunction = function () { _root.mc_satmap.gotoAndStop(2); _root.playsfx('scream', false); _root.dayanim3.gotoAndPlay(2); }; } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item250 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item225 of movieClip 1229 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance r_5_6 of movieClip 698 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance of movieClip 1231 { onClipEvent (enterFrame) { q = _root.mc_allstage.getNode2(); if (q[0][0] < 4) { this._visible = true; } else { this._visible = false; } } } instance of movieClip 1231 { onClipEvent (enterFrame) { q = _root.mc_allstage.getNode2(); if (q[0][0] < 6) { this._visible = true; } else { this._visible = false; } } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } instance of movieClip 992 { onClipEvent (enterFrame) { a = Math.random() * 2 + 2; b = -Math.random() * 8 + 4; if (this._x > _root.mc_allstage.mc_background._width) { this._x = 1; } this._x += a; this._y += b; } } } movieClip 1235 { frame 1 { stop(); this._visible = false; } frame 2 { this._visible = true; } frame 100 { stop(); this._visible = false; _root.startnode = [3, 2]; _root.gotoAndStop(23); } } instance dayanim3 of movieClip 1235 { onClipEvent (release) { } onClipEvent (rollOver) { _root.mc_cursor.mc_crosshair._visible = false; _root.mc_cursor.mc_ora._visible = true; _root.mc_cursor.mc_itemdescription._visible = true; _root.mc_cursor.mc_itemdescription.txt_itemdescription1.text = ''; _root.mc_cursor.mc_itemdescription.txt_itemdescription2.text = ''; } } frame 23 { _root.ruha = 2; _root.ambienceid = 'temple'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.7, 0.8]; _root.mukispeedx = 0.15; _root.mukispeedy = 0.2; _root.setstage(); _root.hidedescription(); var _array = [[20000, 20000, 20000, 20000, 20000, 20000, 10000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [13333, 13333, 13333, 13333, 13333, 10000, 10000, 20000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000], [13333, 13333, 13333, 13333, 13333, 10000, 10000, 20000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000], [13333, 13333, 13333, 13333, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000], [13333, 13333, 13333, 13333, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [13333, 13333, 13333, 13333, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [13333, 13333, 13333, 13333, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [13333, 13333, 13333, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [13333, 13333, 13333, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [13333, 13333, 13333, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000]]; vezerloFuggveny('mc_allstage_added'); if (!_root.gd[183].inventory_happened) { _root.executeitem(183); } } movieClip 1238 { } movieClip 1242 { } movieClip 1243 { } movieClip 1244 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1245 { } movieClip 1248 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1250 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1252 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1255 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1258 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1260 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1263 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1266 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1268 { } movieClip 1270 { } movieClip 1271 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item187 of movieClip 1244 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item263 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item185 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item186 of movieClip 1248 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item188 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item189 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item191 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item192 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item193 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item194 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.gd[190].visibleininventory = false; _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item195 of movieClip 1250 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item190 of movieClip 1252 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item206 of movieClip 1255 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item207 of movieClip 1258 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item208 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item209 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(211); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item210 of movieClip 1260 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item212 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(213); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item214 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(215); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item216 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item218 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item219 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item221 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(222); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item246 of movieClip 1263 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item197 of movieClip 1266 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item196 of movieClip 1266 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance r_5_6 of movieClip 698 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance of movieClip 1268 { onClipEvent (enterFrame) { q = _root.mc_allstage.getNode2(); if (q[0][0] < 3) { this._visible = true; } else { this._visible = false; } } } } frame 24 { _root.ruha = 2; _root.ambienceid = 'temple'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.4, 0.5]; _root.mukispeedx = 0.09; _root.mukispeedy = 0.08; _root.setstage(); _root.hidedescription(); var _array = [[20000, 10000, 10002, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000], [20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 20000, 10022, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 10000, 10020, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000]]; vezerloFuggveny('mc_allstage_added'); } movieClip 1274 { } movieClip 1277 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1280 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1283 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1286 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1289 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1292 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1294 { } movieClip 1296 { } movieClip 1297 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item303 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item231 of movieClip 1277 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item232 of movieClip 1280 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item233 of movieClip 1283 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item234 of movieClip 1286 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item235 of movieClip 1289 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item236 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item237 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item238 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item239 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item228 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item241 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item229 of movieClip 1292 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item247 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(248); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance r_5_6 of movieClip 698 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance of movieClip 1294 { onClipEvent (enterFrame) { q = _root.mc_allstage.getNode2(); if (q[0][0] < 7) { this._visible = true; } else { this._visible = false; } } } } frame 25 { _root.ruha = 2; _root.ambienceid = 'crypt'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.4, 0.5]; _root.mukispeedx = 0.08; _root.mukispeedy = 0.08; _root.setstage(); _root.hidedescription(); var _array = [[20000, 20000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [20000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [10000, 10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [10000, 10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [10000, 10000, 10000, 20000, 20000, 20000, 20000, 20000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000]]; vezerloFuggveny('mc_allstage_added'); myBitmap = new flash.display.BitmapData(303, 93); pt = new flash.geom.Point(0, 0); mpoint = new flash.geom.Point(62, 387); myDispl = new flash.filters.DisplacementMapFilter(myBitmap, mpoint, 1, 2, 10, 20); _root.mc_allstage.water_mc.myList = new Array(); _root.mc_allstage.water_mc.myList.push(myDispl); _root.mc_allstage.water_mc.filters = _root.mc_allstage.water_mc.myList; _root.vizszam = 1; } movieClip 1300 { } movieClip 1302 { frame 1 { filterList = _root.mc_allstage.water_mc.filters; offset = new Array(); offset[1] = new Object(); offset[1].x = 1; offset[1].y = _root.vizszam / 2; _root.myBitmap.perlinNoise(50, 10, 2, 50, true, false, 7, true, offset); _root.filterList.mapBitmap = myBitmap; _root.mc_allstage.water_mc.filters = filterList; ++_root.vizszam; } } movieClip 1305 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1310 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1315 { } movieClip 1316 { } movieClip 1317 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1320 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1323 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1324 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1325 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item258 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item257 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item251 of movieClip 1305 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(252); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item254 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item255 of movieClip 1310 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item243 of movieClip 1317 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item244 of movieClip 1320 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item245 of movieClip 1323 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item304 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item249 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item256 of movieClip 1324 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance r_5_6 of movieClip 698 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } } frame 26 { _root.ruha = 2; _root.ambienceid = 'shaft'; _root.ambience.stop(); _root.ambience.attachSound(_root.ambienceid); _root.ambience.start(0, 999999); _root.previousroom = _root._currentframe; _root.scalearray = [0.35, 0.35]; _root.mukispeedx = 0.08; _root.mukispeedy = 0.08; _root.setstage(); _root.hidedescription(); var _array = [[10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000, 10000], [20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000]]; vezerloFuggveny('mc_allstage_added'); if (!_root.gd[260].inventory_happened) { _root.executeitem(260); } } movieClip 1328 { } movieClip 1331 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } movieClip 1332 { frame 1 { stop(); } frame 2 { trace('TIMER STARTED'); } frame 70 { stop(); trace('TIMER STOPPED'); _root.executeitem(272); _root.setstage(); } } movieClip 1335 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } frame 2 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; timer.gotoAndPlay(2); } } movieClip 1336 { } movieClip 1337 { frame 1 { stop(); } frame 37 { gotoAndStop(1); } } movieClip 1338 { frame 1 { function structNode(pos, f, g, h, parent) { this.pos = pos.slice(); this.f = f; this.g = g; this.h = h; this.parent = parent; this.pos_str = this.pos.toString(); } function PathFinder(ar) { this._array = ar; this.finalPosition = []; this.startPosition = []; this.openList = []; this.closedList = []; this.curList = []; } function getNode2() { return leguccsoNode; } function getTile(x, y) { var v3 = Infinity; var v5 = {'_x': x, '_y': y}; var v4 = -1; var v1 = 0; while (v1 < refs.length) { var v2 = distance(refs[v1], v5); if (v2 < v3) { v4 = v1; v3 = v2; } ++v1; } return refs[v4]; } function getNode(x, y) { var v4 = Infinity; var v6 = {'_x': x, '_y': y}; var v5 = -1; var v2 = 0; while (v2 < refs.length) { var v3 = distance(refs[v2], v6); if (v3 < v4) { v5 = v2; v4 = v3; } ++v2; } q = _root._array.length; w = _root._array[0].length; n1 = Math.floor(v5 / w); n2 = v5 - w * n1; n = [n1, n2]; return n; } function distance(o1, o2) { return Math.sqrt((o1._x - o2._x) * (o1._x - o2._x) + (o1._y - o2._y) * (o1._y - o2._y)); } function getfield(a, b) { return [this['r_' + a + '_' + b]._x, this['r_' + a + '_' + b]._y]; } function moving() { szamolasok = 0; pozicio._x += s.x; pozicio._y += s.y; functionToCall('mozgat', s); var v8 = distance(pozicio, targets[0]); var v14 = getquarter(getangle(pozicio, targets[0])); if (targets[0]._r < targets[1]._r) { irany = 'le'; } if (targets[0]._r > targets[1]._r) { irany = 'fel'; } if (targets[0]._c < targets[1]._c) { irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { irany = 'bal'; } var v11 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * (pozicio._y - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v11); fig._xscale = fig._yscale; var v13 = (darabra == 0) ? true : v8 <= darabra / 2; if (v8 <= darabra && v13) { pozicio._x = targets[0]._x; pozicio._y = targets[0]._y; functionToCall('mozgat', s); var v4 = (getTile(targets[0]._x, targets[0]._y))._name.split('_'); var v12 = (String(_array[Number(v4[1])][Number(v4[2])])).substr(1); leguccsoNode = [[v4[1], v4[2]], v12]; if (targets[0]._r < targets[1]._r) { functionToCall('irany', 'le'); irany = 'le'; } if (targets[0]._r > targets[1]._r) { functionToCall('irany', 'fel'); irany = 'fel'; } if (targets[0]._c < targets[1]._c) { functionToCall('irany', 'jobb'); irany = 'jobb'; } if (targets[0]._c > targets[1]._c) { functionToCall('irany', 'bal'); irany = 'bal'; } targets.splice(0, 1); var v7 = speed.x - speed.y; var v2 = getangle(pozicio, targets[0]); var v10 = distance(pozicio, targets[0]); var v3 = 0; if (v2 > 0 && v2 <= 1.570796326794897) { v3 = Math.sin(v2); trace('ez van most'); undefined; undefined; } if (v2 > 1.570796326794897 && v2 <= Math.PI) { v3 = Math.sin(Math.PI - v2); } if (v2 > Math.PI && v2 <= 4.71238898038469) { v3 = Math.sin(v2); trace('felfele ' + v3); undefined; undefined; } if (v2 > 4.71238898038469 && v2 <= 6.283185307179586) { v3 = Math.sin(v2); } var v5 = speed.x - Math.abs(v7 * v3); darabra = Math.abs(v10 / v5); var v9 = (targets[0]._x - pozicio._x) / v5; var v6 = (targets[0]._y - pozicio._y) / v5; trace('speed.x=' + speed.x + ', vy=' + v6 + ', xydiff=' + v7 + ', rad=' + v3); s.x = v9; s.y = v6; if (mobile == false) { delete this.onEnterFrame; pufferDone(); } if (targets.length == 0) { delete this.onEnterFrame; mobile = false; functionToCall('arrived', irany); } } } function getquarter(ang) { if (ang >= 0 && ang < 1.570796326794897) { return 0; } if (ang >= 1.570796326794897 && ang < Math.PI) { return 1; } if (ang >= Math.PI && ang < 4.71238898038469) { return 2; } if (ang >= 4.71238898038469 && ang < 6.283185307179586) { return 3; } return 0; } function getangle(_p0, _p1) { var v3 = Math.PI; if (_p1._x == _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x == _p0._x && _p1._y > _p0._y) { return v3 / 2; } if (_p1._x == _p0._x && _p1._y < _p0._y) { return v3 + v3 / 2; } if (_p1._x > _p0._x && _p1._y == _p0._y) { return 0; } if (_p1._x < _p0._x && _p1._y == _p0._y) { return v3; } if (_p1._x > _p0._x && _p1._y > _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)); } if (_p1._x < _p0._x && _p1._y > _p0._y) { return v3 / 2 + Math.atan((_p0._x - _p1._x) / (_p1._y - _p0._y)); } if (_p1._x < _p0._x && _p1._y < _p0._y) { return Math.atan(Math.abs(_p1._y - _p0._y) / Math.abs(_p1._x - _p0._x)) + v3; } if (_p1._x > _p0._x && _p1._y < _p0._y) { return 2 * v3 - Math.atan((_p0._y - _p1._y) / (_p1._x - _p0._x)); } return 0; } function pufferDone() { targets = []; var v2 = 0; while (v2 < puffer.length) { targets.push(puffer[v2]); ++v2; } s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } function startmove(x1, y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } if (x1 == muki._x && y1 == muki._y) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } functionToCall('arrived'); trace('szamolas arrived ' + szamolas + s.x + s.y); return undefined; } if (kovcelpos[0] == x1 && kovcelpos[1] == y1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace(s); trace('szamolas kövcélpos ' + szamolas + s.x + s.y); return undefined; } if (szamolas) { trace('szamolas true es return'); return undefined; } trace('szamolas ' + szamolas); szamolas = true; kovcelpos = [x1, y1]; var v31 = getTile(x1, y1); if (targets[targets.length - 1]._x == v31._x && targets[targets.length - 1]._y == v31._y) { return undefined; } if (mobile == true) { var v32 = getTile(x1, y1); var v10 = findPath(v32._r, v32._c, targets[0]._r, targets[0]._c); puffer = []; var v6 = v10.length - 1; while (v6 >= 0) { var v14 = getfield(v10[v6][0], v10[v6][1]); puffer.push({'_x': v14[0], '_y': v14[1], '_r': v10[v6][0], '_c': v10[v6][1]}); --v6; } if (puffer.length != 0) { mobile = false; } return undefined; } var v27 = getTile(x1, y1); var v9 = findPath(v27._r, v27._c); targets = []; var v7 = v9.length - 1; while (v7 >= 0) { var v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } if (targets.length == 0) { trace('piros petty'); var v26 = getTile(x1, y1); var v28 = getTile(muki._x, muki._y); if (Math.abs(v26._r - v28._r) <= 1 && Math.abs(v26._c - v28._c) <= 1) { if (s.x == 0 && s.y == 0) { szamolas = false; } if (isNaN(s.x) && isNaN(s.y)) { szamolas = false; } trace('ilyen közeli helyre tuti nem számolunk'); functionToCall('arrived'); return undefined; } szamol = true; var v16 = false; var v8 = v26._r; var v19 = v26._c; var v33 = int(_array.length / 2); var v22 = int(_array[0].length / 2); var v23 = (v22 - v19) / Math.abs(v22 - v19); var v11 = []; trace('r1=' + v8 + ', c1=' + v19 + ', ro=' + v33 + ', co=' + v22 + ', cAdd=' + v23); var v4 = v19; for (;;) { if (!(v4 != v22 - v19 && !v16)) break; trace('oszlop=' + v4); var v2 = [-1, -1]; var v5 = v8; while (v5 > 0) { if ((String(_array[v5][v4])).charAt(0) == '1') { v2[0] = v5; break; } --v5; } var v3 = v8; while (v3 < _array.length) { trace('lefelé, ' + v3 + '=' + (String(_array[v3][v4])).charAt(0)); if ((String(_array[v3][v4])).charAt(0) == '1') { v2[1] = v3; break; } ++v3; } trace('KETVERSENYZO = [' + v2[0] + ', ' + v2[1] + ']'); if (v2[0] != -1 || v2[1] != -1) { var v13 = Math.abs(v8 - v2[0]); var v12 = Math.abs(v8 - v2[1]); trace('diffek, ' + v13 + ', ' + v12); if (v2[0] == -1) { v11 = [v2[1], v4]; } else { if (v2[1] == -1) { v11 = [v2[0], v4]; } else { if (v13 < v12) { v11 = [v2[0], v4]; } else { v11 = [v2[1], v4]; } } } v16 = true; break; } v4 += v23; } if (!v16) { return undefined; } var v30 = this['r_' + v11[0] + '_' + v11[1]]; var v29 = getTile(fig._x, fig._y); v9 = findPath(v30._r, v30._c, v29._r, v29._c); targets = []; v7 = v9.length - 1; while (v7 >= 0) { v15 = getfield(v9[v7][0], v9[v7][1]); targets.push({'_x': v15[0], '_y': v15[1], '_r': v9[v7][0], '_c': v9[v7][1]}); --v7; } szamol = false; s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } else { trace('else ág'); s = {'x': 0, 'y': 0}; mobile = true; moving(); szamolas = false; this.onEnterFrame = moving; } } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function order2(a, b) { var v2 = Number(a[1]); var v1 = Number(b[1]); if (v2 < v1) { return -1; } else { if (v2 > v1) { return 1; } else { return 0; } } } function getStart() { return [this['r_' + startPosition[0] + '_' + startPosition[1]]._x, this['r_' + startPosition[0] + '_' + startPosition[1]]._y]; } stop(); var _array = []; var startPosition = [0, 10000]; var functionToCall; var v; var speed; var targets = []; var s; var mozg; var irany; var fig; var mobile = false; var puffer; var interval; var pufferpos; var kovcelpos = []; var szamol = false; var scale_interval; var scale_szorzo; var scale_magassag_min; var scale_magassag; var id = 'PathFinder.Field'; var refs = new Array(); var pozicio; PathFinder.prototype.findPath = function () { ++szamolasok; while (this.openList.length > 0) { var v10 = 5000; var v11 = -1; var v9 = 0; while (v9 < this.openList.length) { if (this.openList[v9].f < v10) { v10 = this.openList[v9].f; v11 = v9; } ++v9; } var v3 = this.openList.splice(v11, 1); v3 = v3[0]; if (v3.pos_str == this.finalPosition.toString()) { this.closedList.push(v3); var v5 = this.closedList[this.closedList.length - 1]; startPosition = v5.pos; this.curList.push(this.finalPosition); while (v5.parent != undefined) { v5 = v5.parent; this.curList.push(v5.pos); } return undefined; } var v8 = new Array(); var v6 = Number(v3.pos[0]); var v7 = Number(v3.pos[1]); if ((String(this._array[v6 - 1][v7])).charAt(0) == '1') { v8.push([v6 - 1, v7]); } if ((String(this._array[v6][v7 + 1])).charAt(0) == '1') { v8.push([v6, v7 + 1]); } if ((String(this._array[v6 + 1][v7])).charAt(0) == '1') { v8.push([v6 + 1, v7]); } if ((String(this._array[v6][v7 - 1])).charAt(0) == '1') { v8.push([v6, v7 - 1]); } v9 = 0; while (v9 < v8.length) { var v4 = false; var v2 = new structNode(v8[v9]); v2.parent = v3; v2.g = v3.g + Math.abs(v3.pos[0] - v2.pos[0]) + Math.abs(v3.pos[1] - v2.pos[1]); v2.h = Math.abs(this.finalPosition[0] - v2.pos[0]) + Math.abs(this.finalPosition[1] - v2.pos[1]); v2.f = v2.g + v2.h; for (var v13 in this.openList) { if (this.openList[v13].pos_str == v2.pos_str && this.openList[v13].f < v2.f) { v4 = true; break; } } for (v13 in this.closedList) { if (this.closedList[v13].pos_str == v2.pos_str && this.closedList[v13].f < v2.f) { v4 = true; break; } } if (v4 == false) { for (var v12 in this.openList) { if (this.openList[v12].pos_str == v2.pos_str) { this.openList.splice(v12, 1); } } for (v12 in this.closedList) { if (this.closedList[v12].pos_str == v2.pos_str) { this.closedList.splice(v12, 1); } } this.openList.push(v2); } ++v9; } this.closedList.push(v3); } }; findPath = function (r, c, a, b) { newpath = new PathFinder(_array); newpath.finalPosition = [r, c]; if (a == null) { newpath.startPosition = startPosition.slice(); } else { newpath.startPosition = [a, b]; } _global.finalPosition = [r, c]; if (newpath.startPosition[0] != newpath.finalPosition[0] || newpath.startPosition[1] != newpath.finalPosition[1]) { path[0] = startPosition; var v4 = new structNode(newpath.startPosition, 0, 0, 0); newpath.openList.push(v4); newpath.findPath(); } var v3 = []; var v2 = 0; while (v2 < newpath.curList.length) { v3.push(newpath.curList[v2]); ++v2; } return v3; }; init = function (arr, func, startpos, speed1, scale_interval1) { _array = arr; functionToCall = func; fig = muki; startPosition = startpos; speed = {'x': 1 / speed1.x, 'y': 1 / speed1.y}; v = speed.x; interval = 1; scale_interval = scale_interval1; scale_szorzo = (scale_interval[1] - scale_interval[0]) / _array.length; scale_magassag_min = this.r_0_0._y; scale_magassag = this['r_' + String(Number(_root._array.length - 1)) + '_0']._y; var v5 = 0; while (v5 < arr.length) { var v3 = 0; while (v3 < arr[0].length) { var v4 = this['r_' + v5 + '_' + v3]; v4._r = v5; v4._c = v3; refs.push(v4); if ((String(arr[v5][v3])).charAt(0) == '2') { v4.gotoAndStop(2); } else { v4.gotoAndStop(1); } ++v3; } ++v5; } var v8 = (scale_interval[0] + (scale_interval[1] - scale_interval[0]) * ((getStart())[1] - scale_magassag_min) / (scale_magassag - scale_magassag_min)) * 100; fig._yscale = Math.abs(v8); fig._xscale = fig._yscale; pozicio = {'_x': (getStart())[0], '_y': (getStart())[1]}; s = {'x': 0, 'y': 0}; var v7 = (getTile((getStart())[0], (getStart())[1]))._name.split('_'); var v9 = (String(_array[Number(v7[1])][Number(v7[2])])).substr(1); leguccsoNode = [[v7[1], v7[2]], v9]; }; var leguccsoNode; darabra = 0; alapszog = 0; movex = 0; movey = 0; szamolasok = 0; szamolas = false; this._parent.vezerloFuggveny('mc_allstage_added'); } instance mc_item261 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { _root.displaymessage(current, 0); _root.dropitem(); _root.executeitem(_root.clickeditem); _root.executeitem(268); }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item266 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(268); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item267 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(268); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item264 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.dropitem(); _root.executeitem(_root.clickeditem); _root.executeitem(268); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item262 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item270 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item273 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.mc_mainmenu.mc_mainmenuanim.mc_menu_close.gotoAndStop(2); _root.music.stop(); _root.ambience.stop(); _root.mc_outro.gotoAndPlay(2); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item269 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; if (_root.iteminhand != 0 and _root.iteminhand != 5 and _root.iteminhand != 63) { _root.gd[_root.iteminhand].visibleininventory = false; _root.dropitem(); _root.executeitem(_root.clickeditem); _root.executeitem(272); a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); _root.playsfx('stone', false); } else { if (_root.iteminhand == 5 or _root.iteminhand == 63) { _root.displaymessage(269, 1); } else { _root.displaymessage(269, 3); } } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item271 of movieClip 702 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(272); _root.playsfx('stone', false); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item268 of movieClip 1331 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); _root.executeitem(268); } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item272 of movieClip 1335 { onClipEvent (release) { _root.clickeditem = current; _root.arrivedfunction = function () { if (_root.checkrequisites(_root.clickeditem)) { } }; a = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._x'); b = eval('_root.mc_allstage.r_' + _root.gd[current].node[0] + '_' + _root.gd[current].node[1] + '._y'); _root.mc_allstage.startmove(a, b); } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } } frame 28 { stop(); } frame 49 { _root.gotoAndStop(_root.gamsaav.data.room); } frame 50 { _root.setstage(); } movieClip 1342 { frame 1 { stop(); this.hitArea = mc_hitarea; mc_hitarea._visible = false; } } button 1343 { on (release) { _root.startnode = _root.nodetemp; _root.gotoAndStop(_root.previousroom); _root.mc_satmap._visible = true; } } movieClip 1344 { instance mc_item55 of movieClip 1342 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item56 of movieClip 1342 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item57 of movieClip 1342 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item69 of movieClip 1342 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item111 of movieClip 1342 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item129 of movieClip 1342 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item100 of movieClip 1342 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item181 of movieClip 1342 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item226 of movieClip 1342 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } instance mc_item242 of movieClip 1342 { onClipEvent (release) { _root.clickeditem = current; if (_root.checkrequisites(_root.clickeditem)) { _root.executeitem(_root.clickeditem); } } onClipEvent (rollOver) { current = this._name.slice(7, 13); _root.showdescription(current); } onClipEvent (rollOut) { _root.hidedescription(); } } }




http://swfchan.com/19/92067/info.shtml
Created: 27/3 -2019 14:48:39 Last modified: 27/3 -2019 14:48:39 Server time: 30/04 -2024 19:21:31