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

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

Terra-Strike.swf

This is the info page for
Flash #114071

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


ActionScript [AS1/AS2]
Combined Code
movieClip 16 { } movieClip 18 { } movieClip 19 { frame 1 { } } movieClip 24 realeff { frame 9 { } frame 10 { stop(); } frame 14 { this.swapDepths(0); this.removeMovieClip(); } frame 15 { this.swapDepths(0); this.removeMovieClip(); } } movieClip 26 { } movieClip 38 { frame 44 { this._parent.removeMovieClip(); } } movieClip 39 rail22 { frame 1 { safetime22 = 0; cnt2219rail = 0; i = 1; } frame 2 { function railtrace() { crex112 = this.shogo.flame.fhit._x; crey112 = this.shogo.flame.fhit._y; _root.efectlayer += 1; _root.effectdep += 1; var v3 = 'eff' + i; rot2 = rot2 - 100 + 180 + _root.rndm; val5529 = 6500 + i; _root.map.attachMovie('realeff', 'efftu' + i, val5529, {'_x': crex112, '_y': crey112, '_rotation': rot2, 'yourname': v3}); } function createeffect(x, y, u) { _root.efectlayer += 1; _root.effectdep += 1; var v2 = 'ef' + i; rot2 = rot2 - 100 + 180 + _root.rndm; _root.map.attachMovie('FE', 'en2' + i, 7000, {'_x': x, '_y': y, '_rotation': rot2, 'yourname': v2}); } function shot() { u = 0; while (u <= _root.enemynumber) { if (this.shogo.flame.fhit.hitTest(_root.map._x + _root.map['en' + u]._x, _root.map._y + _root.map['en' + u]._y, true)) { _root.map['en' + u].hitbox.gotoAndPlay(2); _root.map['en' + u].hp -= 1 + dmgowner.rangewpndamage - _root.map['en' + u].rdarmor + dmgowner.wpndmgflux5 * _root.damageflux; _root.dmgchangval11 = 1 + dmgowner.rangewpndamage - _root.map['en' + u].rdarmor + dmgowner.wpndmgflux5 * _root.damageflux; _root.map['en' + u].lastdmg = dmgowner; _root.map['en' + u].lasthitrange = 1; _root.nomberon11 = _root.map['en' + u]; createeffect(_root.map['en' + u]._x, _root.map['en' + u]._y, u); this.removeMovieClip(); } if (u < 4) { if (this.shogo.flame.fhit.hitTest(_root.map._x + _root.map['robo' + u]._x, _root.map._y + _root.map['robo' + u]._y, true)) { _root.map['robo' + u].hitbox.gotoAndPlay(2); _root.map['robo' + u].hp -= 1 + dmgowner.rangewpndamage - _root.map['robo' + u].rdarmor + dmgowner.wpndmgflux5 * _root.damageflux; _root.dmgchangval11 = 1 + dmgowner.rangewpndamage - _root.map['robo' + u].rdarmor + dmgowner.wpndmgflux5 * _root.damageflux; _root.map['robo' + u].lasthitrange = 1; _root.nomberon11 = _root.map['robo' + u]; createeffect(_root.map['robo' + u]._x, _root.map['robo' + u]._y, u); this.removeMovieClip(); } } ++u; } } if (_root.runu == 1) { i += 1; cnt2219rail += 1; if (cnt2219rail >= 5) { cnt2219rail = 0; railtrace(); } if (safetime22 >= 8) { shot(); } safetime22 += 1; this.shogo.play(); } else { this.shogo.stop(); } } frame 3 { this.gotoAndPlay('legasp'); } frame 5 { this.removeMovieClip(); } } movieClip 41 { } movieClip 42 { } movieClip 43 { frame 1 { } } movieClip 44 { frame 25 { this._parent.removeMovieClip(); } } movieClip 45 SubMgun { frame 1 { safetime22 = 0; } frame 2 { function createeffect(x, y, u) { _root.efectlayer += 1; _root.effectdep += 1; var v2 = 'ef' + i; rot2 = rot2 - 100 + 180 + _root.rndm; _root.map.attachMovie('FE', 'ef' + i, 7000, {'_x': x, '_y': y, '_rotation': rot2, 'yourname': v2}); } function shot() { u = 0; while (u <= _root.enemynumber) { if (this.shogo.flame.fhit.hitTest(_root.map._x + _root.map['en' + u]._x, _root.map._y + _root.map['en' + u]._y, true)) { _root.map['en' + u].hitbox.gotoAndPlay(2); _root.map['en' + u].hp -= 1 + dmgowner.rangewpndamage - _root.map['en' + u].rdarmor + dmgowner.wpndmgflux5 * _root.damageflux; _root.dmgchangval11 = 1 + dmgowner.rangewpndamage - _root.map['en' + u].rdarmor + dmgowner.wpndmgflux5 * _root.damageflux; _root.map['en' + u].lastdmg = dmgowner; _root.map['en' + u].lasthitrange = 1; _root.nomberon11 = _root.map['en' + u]; createeffect(_root.map['en' + u]._x, _root.map['en' + u]._y, u); this.removeMovieClip(); } if (u < 4) { if (this.shogo.flame.fhit.hitTest(_root.map._x + _root.map['robo' + u]._x, _root.map._y + _root.map['robo' + u]._y, true)) { _root.map['robo' + u].hitbox.gotoAndPlay(2); _root.map['robo' + u].hp -= 1 + dmgowner.rangewpndamage - _root.map['robo' + u].rdarmor + dmgowner.wpndmgflux5 * _root.damageflux; _root.dmgchangval11 = 1 + dmgowner.rangewpndamage - _root.map['robo' + u].rdarmor + dmgowner.wpndmgflux5 * _root.damageflux; _root.map['robo' + u].lasthitrange = 1; _root.nomberon11 = _root.map['robo' + u]; createeffect(_root.map['robo' + u]._x, _root.map['robo' + u]._y, u); this.removeMovieClip(); } } ++u; } } if (_root.runu == 1) { if (safetime22 >= 8) { if (dmgowner.IFF == 1) { shot(); } if (dmgowner.IFF == 4) { shot(); } } safetime22 += 1; this.shogo.play(); } else { this.shogo.stop(); } } frame 3 { this.gotoAndPlay('legasp'); } frame 5 { this.removeMovieClip(); } } movieClip 47 { } movieClip 51 { frame 1 { stop(); } } movieClip 54 TE { frame 1 { hp = 130; maxhp = 130; ccp = 7; lasthitrange = 0; img = 2; } frame 2 { if (hp <= 0) { } this.hpm._yscale = hp; } frame 3 { function expl1(nameit, nmb, deli) { i = 1; while (i <= nmb) { if (_root.numb2 >= 800) { _root.numb2 = 600; } ran = random(360) + 1; _root.numb2 += 1; _root.rdm33 = Math.random() * 360; _root.map.attachMovie(nameit, 't_' + _root.numb2, _root.numb2, {'_x': this._x, '_y': this._y, '_rotation': ran, 'delayit': deli}); ++i; } } this.gotoAndPlay('rerun1'); if (hp <= 0) { expl1('splint1', 1, 2); expl1('splint1', 1, 4); expl1('splint1', 1, 7); expl1('splint1', 1, 9); expl1('splint1', 1, 13); expl1('blammfire', 2, 2); expl1('blammfire', 5, 13); expl1('blammfire', 5, 27); expl1('boom', 1, 1); expl1('blstill', 1, 27); expl1('blstill', 1, 27); this.swapDepths(0); this.removeMovieClip(); } } } movieClip 56 { frame 12 { stop(); } } movieClip 57 boom { frame 2 { if (delayit >= 0) { gotoAndPlay('ba47'); delayit -= 1; } } frame 43 { this.removeMovieClip(); } } movieClip 59 { } movieClip 60 splint1 { frame 2 { if (delayit >= 0) { gotoAndPlay('ba47'); delayit -= 1; } } frame 21 { this.removeMovieClip(); } } movieClip 71 { } movieClip 74 { } movieClip 75 { frame 1 { } frame 28 { this.gotoAndStop(1); } } movieClip 76 blstill { frame 2 { if (delayit >= 0) { gotoAndPlay('ba47'); delayit -= 1; } } frame 21 { this.removeMovieClip(); } } movieClip 77 blammfire { frame 2 { if (delayit >= 0) { gotoAndPlay('ba47'); delayit -= 1; } } frame 21 { this.removeMovieClip(); } } movieClip 79 FE { frame 1 { if (_root.ARMORSOUNDtime >= _root.firesndtimeARMORMAX) { _root.ht2.gotoAndPlay(2); } } frame 11 { this.removeMovieClip(); } } movieClip 82 { } movieClip 83 { } movieClip 84 { } movieClip 85 gshell { frame 2 { this._xscale = 100 / _root.grndscal44 * 0.01; if (_root.runu == 1) { this.skum.play(); } else { this.skum.stop(); } } frame 3 { this.gotoAndPlay('back'); } } movieClip 86 { frame 1 { _root.grndx = this._x; _root.grndy = this._y; } } movieClip 87 GrndDot { frame 1 { _root.curenmissile = this; } frame 19 { function createeffect(x, y, u) { _root.efectlayer += 1; _root.effectdep += 1; var v2 = 'ef' + i; rot2 = -10 + _root.rndm; _root.map.attachMovie('THYexp99', 'en' + i, 7000, {'_x': x, '_y': y, '_rotation': rot2, 'yourname': v2, 'dmgowner': dmgowner}); } var myPoint = {'x': this.grnd._x, 'y': this.grnd._y}; this.localToGlobal(myPoint); var myPoint2 = {'x': myPoint.x, 'y': myPoint.y}; _root.map.globalToLocal(myPoint2); createeffect(myPoint2.x, myPoint2.y); } frame 20 { this.removeMovieClip(); } } movieClip 90 { } movieClip 91 { frame 12 { stop(); } } movieClip 92 explgrnds23 { frame 56 { stop(); } } movieClip 94 { } movieClip 95 THYexp99 { frame 2 { function createeffect(x, y, u, uniq) { _root.efectlayer += 1; i += 1; _root.effectdep += 1; var v2 = 'ef' + i; rot2 = rot2 - 100 + 180 + _root.rndm; skum12 = 7004 + u; _root.map.attachMovie('FE', 'en' + i, skum12, {'_x': x, '_y': y, '_rotation': rot2, 'yourname': v2}); } function shot() { u = 0; while (u <= _root.enemynumber) { if (this.hitc0.hitTest(_root.map._x + _root.map['en' + u]._x, _root.map._y + _root.map['en' + u]._y, true)) { _root.map['en' + u].hitbox.gotoAndPlay(2); _root.map['en' + u].hp -= 1 + dmgowner.rangewpndamage + dmgowner.wpndmgflux5 * _root.damageflux; _root.dmgchangval11 = 1 + dmgowner.rangewpndamage - _root.map['en' + u].rdarmor + dmgowner.wpndmgflux5 * _root.damageflux; _root.map['en' + u].lasthitrange = 1; _root.map['en' + u].lastdmg = dmgowner; _root.nomberon11 = _root.map['en' + u]; createeffect(_root.map['en' + u]._x, _root.map['en' + u]._y, u, 5); i += 1; } if (this.hitc0.hitTest(_root.map._x + _root.map['robo' + u]._x, _root.map._y + _root.map['robo' + u]._y, true)) { _root.map['robo' + u].hitbox.gotoAndPlay(2); _root.map['robo' + u].hp -= 1 + dmgowner.rangewpndamage + dmgowner.wpndmgflux5 * _root.damageflux; _root.dmgchangval11 = 1 + dmgowner.rangewpndamage - _root.map['robo' + u].rdarmor + dmgowner.wpndmgflux5 * _root.damageflux; _root.map['robo' + u].lastdmg = dmgowner; _root.map['robo' + u].lasthitrange = 1; _root.nomberon11 = _root.map['robo' + u]; createeffect(_root.map['robo' + u]._x, _root.map['robo' + u]._y, u, 5); i += 1; } ++u; } } i = 0; shot(); } frame 22 { this.removeMovieClip(); } } movieClip 96 { } movieClip 97 { frame 1 { stop(); } } movieClip 99 { frame 1 { stop(); } frame 2 { } } movieClip 103 { frame 1 { stop(); } } movieClip 109 { frame 1 { stop(); } } movieClip 111 { frame 1 { _root.isovercnt = 7; _root.selectedskill112 = this._parent._parent.IDname; _root.selectedskill113 = this._parent._parent.IDdescript; _root.selectedskill114 = this._parent._parent.img; _root.selectedskill115 = this._parent._parent.IFF; _root.selectedsroboX = this._parent._parent._x; _root.selectedsroboY = this._parent._parent._y; if (this._parent._parent.IFF == 1) { this.colortest55.gotoAndStop(2); _root.dontshootnow = 6; _root.changerobotyes = 5; _root.changeto = this._parent._parent; } else { this.colortest55.gotoAndStop(1); } } } movieClip 113 { frame 1 { stop(); } frame 2 { trace('green'); } } movieClip 115 TE { frame 1 { hp = 170; maxhp = 170; ccp = 5; ccacy = 20; ccagi = 35; lasthitrange = 0; img = 6; ccarmor = 1; rdarmor = 8; ap = 1000; maxap = 1000; rangewpndamage = 39; wpndmgflux5 = 9; recmoveap = 8; expv = 73; AItype = 4; IDname = 'Big Canon'; IDdescript = 'Large bastard!'; reward = 125; IFF = 4; } frame 2 { if (hp <= 0) { } this.hpm._yscale = hp; } frame 3 { function expl1(nameit, nmb, deli) { i = 1; while (i <= nmb) { if (_root.numb2 >= 800) { _root.numb2 = 600; } ran = random(360) + 1; _root.numb2 += 1; _root.rdm33 = Math.random() * 360; _root.map.attachMovie(nameit, 't_' + _root.numb2, _root.numb2, {'_x': this._x, '_y': this._y, '_rotation': ran, 'delayit': deli}); ++i; } } this.gotoAndPlay('rerun1'); if (hp <= 0) { _root.bossfinish = 1; _root.duntext = lastdmg.IDname + ' gained ' + expv + ' exp' + ' rewarded ' + reward + 'kr'; _root.cash += reward; lastdmg.exp1 += expv; expl1('splint1', 1, 2); expl1('splint1', 1, 4); expl1('splint1', 1, 7); expl1('splint1', 1, 9); expl1('splint1', 1, 13); expl1('blammfire', 2, 2); expl1('blammfire', 5, 13); expl1('blammfire', 5, 27); expl1('boom', 1, 1); expl1('blstill', 1, 27); expl1('blstill', 1, 27); this.swapDepths(0); this.removeMovieClip(); } } } movieClip 116 { } movieClip 117 { frame 1 { stop(); } } movieClip 120 TE { frame 1 { hp = 130; maxhp = 130; ccp = 7; ccacy = 40; ccagi = 55; lasthitrange = 0; img = 5; ccarmor = 2; rdarmor = 1; dmgowner = 0; ap = 1000; maxap = 1000; rangewpndamage = 1; wpndmgflux5 = 1; recmoveap = 8; AItype = 2; expv = 47; reward = 41; IDname = 'close combat drone'; IDdescript = 'This be a hostile!'; IFF = 4; } frame 2 { if (hp <= 0) { } this.hpm._yscale = hp; } frame 3 { function expl1(nameit, nmb, deli) { i = 1; while (i <= nmb) { if (_root.numb2 >= 800) { _root.numb2 = 600; } ran = random(360) + 1; _root.numb2 += 1; _root.rdm33 = Math.random() * 360; _root.map.attachMovie(nameit, 't_' + _root.numb2, _root.numb2, {'_x': this._x, '_y': this._y, '_rotation': ran, 'delayit': deli}); ++i; } } this.gotoAndPlay('rerun1'); if (hp <= 0) { _root.duntext = lastdmg.IDname + ' gained ' + expv + ' exp' + ' rewarded ' + reward + 'kr'; _root.cash += reward; lastdmg.exp1 += expv; expl1('splint1', 1, 2); expl1('splint1', 1, 4); expl1('splint1', 1, 7); expl1('splint1', 1, 9); expl1('splint1', 1, 13); expl1('blammfire', 2, 2); expl1('blammfire', 5, 13); expl1('blammfire', 5, 27); expl1('boom', 1, 1); expl1('blstill', 1, 27); expl1('blstill', 1, 27); this.swapDepths(0); this.removeMovieClip(); } } } movieClip 123 { frame 1 { stop(); } } movieClip 125 { frame 1 { stop(); } } movieClip 128 TE { frame 1 { hp = 130; maxhp = 130; ccp = 7; ccacy = 20; ccagi = 35; lasthitrange = 0; img = 3; ccarmor = 1; rdarmor = 2; ap = 1000; maxap = 1000; recmoveap = 8; rangewpndamage = 17; wpndmgflux5 = 4; expv = 36; AItype = 1; IDname = 'missiledrone'; IDdescript = 'Foe or enemy?'; IFF = 4; reward = 43; } frame 2 { if (hp <= 0) { } this.hpm._yscale = hp; } frame 3 { function expl1(nameit, nmb, deli) { i = 1; while (i <= nmb) { if (_root.numb2 >= 800) { _root.numb2 = 600; } ran = random(360) + 1; _root.numb2 += 1; _root.rdm33 = Math.random() * 360; _root.map.attachMovie(nameit, 't_' + _root.numb2, _root.numb2, {'_x': this._x, '_y': this._y, '_rotation': ran, 'delayit': deli}); ++i; } } this.gotoAndPlay('rerun1'); if (hp <= 0) { _root.duntext = lastdmg.IDname + ' gained ' + expv + ' exp' + ' rewarded ' + reward + 'kr'; _root.cash += reward; lastdmg.exp1 += expv; expl1('splint1', 1, 2); expl1('splint1', 1, 4); expl1('splint1', 1, 7); expl1('splint1', 1, 9); expl1('splint1', 1, 13); expl1('blammfire', 2, 2); expl1('blammfire', 5, 13); expl1('blammfire', 5, 27); expl1('boom', 1, 1); expl1('blstill', 1, 27); expl1('blstill', 1, 27); this.swapDepths(0); this.removeMovieClip(); } } } movieClip 129 { } movieClip 130 { frame 1 { stop(); } } movieClip 133 TE { frame 1 { hp = 140; maxhp = 140; ccp = 7; ccacy = 30; ccagi = 45; lasthitrange = 0; img = 4; ccarmor = 1; rdarmor = 2; ap = 1000; maxap = 1000; rangewpndamage = 4; wpndmgflux5 = 3; recmoveap = 8; expv = 39; AItype = 3; IDname = 'subgundrone'; IDdescript = 'A enemy it is!'; reward = 58; IFF = 4; } frame 2 { if (hp <= 0) { } this.hpm._yscale = hp; } frame 3 { function expl1(nameit, nmb, deli) { i = 1; while (i <= nmb) { if (_root.numb2 >= 800) { _root.numb2 = 600; } ran = random(360) + 1; _root.numb2 += 1; _root.rdm33 = Math.random() * 360; _root.map.attachMovie(nameit, 't_' + _root.numb2, _root.numb2, {'_x': this._x, '_y': this._y, '_rotation': ran, 'delayit': deli}); ++i; } } this.gotoAndPlay('rerun1'); if (hp <= 0) { _root.duntext = lastdmg.IDname + ' gained ' + expv + ' exp' + ' rewarded ' + reward + 'kr'; _root.cash += reward; lastdmg.exp1 += expv; expl1('splint1', 1, 2); expl1('splint1', 1, 4); expl1('splint1', 1, 7); expl1('splint1', 1, 9); expl1('splint1', 1, 13); expl1('blammfire', 2, 2); expl1('blammfire', 5, 13); expl1('blammfire', 5, 27); expl1('boom', 1, 1); expl1('blstill', 1, 27); expl1('blstill', 1, 27); this.swapDepths(0); this.removeMovieClip(); } } } movieClip 135 black screen { } movieClip 138 { } movieClip 142 { } movieClip 152 { frame 40 { stop(); } } movieClip 165 { } button 166 { on (press) { tellTarget ('_root') { nextFrame(); } } } button 167 { on (press) { gotoAndStop('end'); _root.play(); } } movieClip 168 { instance of movieClip 142 { onClipEvent (load) { _root.stop(); PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (PercentLoaded != 100) { _parent.gotoAndStop(PercentLoaded); } else { _parent.gotoAndStop('lastframe'); } } onClipEvent (enterFrame) { PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (PercentLoaded != 100) { _parent.gotoAndStop(PercentLoaded); } else { _parent.gotoAndPlay('loaded'); } } } frame 101 { play(); } frame 165 { stop(); } } button 174 { on (release) { NewgroundsAPI.loadNewgrounds(); } } button 180 { on (release) { NewgroundsAPI.loadNewgrounds(); } } movieClip 181 { } movieClip 182 NG_AD_OBJECT_WITH_PRELOADER { frame 1 { function startAd(ngad_url) { trace('opening ' + ngad_url); System.security.allowDomain('70.87.128.99'); System.security.allowInsecureDomain('70.87.128.99'); System.security.allowDomain('ads.shizmoo.com'); System.security.allowInsecureDomain('ads.shizmoo.com'); System.security.allowDomain('www.cpmstar.com'); System.security.allowInsecureDomain('www.cpmstar.com'); System.security.allowDomain('server.cpmstar.com'); System.security.allowInsecureDomain('server.cpmstar.com'); var ngads_redirect = new XML(); ngads_redirect.ignoreWhite = true; ngads_redirect.onLoad = function (success) { trace('[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!'); if (success) { ng_ad.loadMovie(ngads_redirect.toString(), 'GET'); } else {} }; ngads_redirect.load(ngad_url); } if (NewgroundsAPI.getAdURL()) { startAd(NewgroundsAPI.getAdURL()); } NewgroundsAPI.onAdsApproved = function (ad_url) { startAd(ad_url); }; stop(); } } frame 1 { NewgroundsAPI.connectMovie(8261); NewgroundsAPI.addCustomEvent(1, 'run event'); NewgroundsAPI.addCustomEvent(2, 'clared lv1'); NewgroundsAPI.addCustomEvent(3, 'clared game'); _root.saveisnow = 0; _root.actionitem = 1; _root.thewin2230 = 0; _root.timepush2331 = 0; _root.hhyi991 = 1; _root.skiplv223 = 0; _root.damageflux = 0; _root.healit330 = 0; _root.finlv1at882 = 0; _root.oncerun223 = 1; kLe = 37; kRi = 39; kUp = 38; kDn = 40; _root.scrollSpeed = 10; _root.numb = 0; _root.xVel = 0; _root.yVel = 0; _root.XmapUP = 30; _root.XmapDWN = -880; _root.XmapLFT = 10; _root.XmapRGT = -1450; _root.XmapRGTmv = 2050; _root.XmapDWNmv = 1480; _root.haschanged348 = 0; _root.movespd = 3; _root.shopunload = 0; _root.starttime = 0; _root.robotselect = 1; var thearray = new Array(); var thearray2 = new Array(); var freeextra = new Array(); var freeitemaray = new Array(); var eqarr11 = new Array(); var eqarr22 = new Array(); } frame 1 { _root.pressed444 = 0; _root.pressed445 = 0; _root.firstat9972 = 1; } // unknown tag 88 length 153 movieClip 188 { } movieClip 191 { frame 1 { _root.timeu2 = 1; } frame 2 { if (_root.timeu2 >= -1) { _root.timeu2 -= 1; } } frame 3 { this.gotoAndPlay('back991'); } } movieClip 194 { frame 1 { stop(); } } movieClip 197 { frame 1 { stop(); } } movieClip 200 { frame 1 { stop(); } } movieClip 202 { frame 1 { stop(); } } movieClip 204 { frame 1 { stop(); } } movieClip 205 { frame 1 { stop(); } } movieClip 206 { frame 1 { stop(); } } // unknown tag 88 length 149 movieClip 884 __Packages.NewgroundsAPI { #initclip if (!_global.NewgroundsAPI) { var v1 = function () {}; _global.NewgroundsAPI = v1; var v2 = v1.prototype; v1.connectMovie = function (id) { if (!id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)'); } else { if (!NewgroundsAPI.tracker_id) { NewgroundsAPI.SendMessage('Connecting to API gateway...'); NewgroundsAPI.tracker_id = id; NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase(); if (NewgroundsAPI.host.length < 1) { NewgroundsAPI.host = 'localhost'; } var v2 = new Object(); NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS); } } }; v1.setMovieVersion = function (movie_version) { if (!movie_version) { NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)'); } else { NewgroundsAPI.version = movie_version; } }; v1.debugMode = function () { NewgroundsAPI.debug = true; }; v1.addCustomEvent = function (stat_id, stat_name) { if (!stat_id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)'); } else { if (!stat_name) { NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)'); } else { NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id; NewgroundsAPI.SendMessage('Created custom event: ' + stat_name); } } }; v1.addCustomLink = function (stat_id, stat_name) { if (!stat_id) { NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)'); } else { if (!stat_name) { NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)'); } else { NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id; NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name); } } }; v1.loadMySite = function () { NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE); }; v1.loadNewgrounds = function (special) { if (special) { var v1 = {'page': special}; } NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1); }; v1.logCustomEvent = function (event_name) { if (!event_name) { NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)'); } else { if (!NewgroundsAPI.custom_events[event_name]) { NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name); } else { NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]); } } }; v1.loadCustomLink = function (link_name) { if (!link_name) { NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)'); } else { if (!NewgroundsAPI.custom_links[link_name]) { NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name); } else { NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]); } } }; v1.getAdURL = function () { return NewgroundsAPI.movie_options.ad_url; }; v1.getMovieURL = function () { if (NewgroundsAPI.movie_options.movie_url) { return NewgroundsAPI.movie_options.movie_url; } else { return 'Newgrounds.com'; } }; v1.getNewVersionURL = function () { return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION; }; v1.SendEvent = function (id) { NewgroundsAPI.SendStat(id, false); }; v1.SendLink = function (id, extra) { NewgroundsAPI.SendStat(id, true, extra); }; v1.ReadGatewayData = function (params) { for (var v2 in params) { params[v2] = unescape(params[v2]); NewgroundsAPI.movie_options[v2] = params[v2]; } if (params.settings_loaded) { NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!'); NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\''); if (NewgroundsAPI.movie_options.message) { NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message); } if (NewgroundsAPI.movie_options.ad_url) { NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads'); NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url); } if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) { NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!'); NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL()); } if (NewgroundsAPI.movie_options.deny_host) { NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.'); NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.'); NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL()); } if (NewgroundsAPI.movie_options.request_portal_url == 1) { var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url); var v3 = new XML(); v3.ignoreWhite = true; v3.load(v4); } } else { if (!NewgroundsAPI.movie_options.settings_loaded) { NewgroundsAPI.SendError('Could not establish connection to the API gateway.'); } } }; v1.SendStat = function (stat_id, open_in_browser, extra) { if (!NewgroundsAPI.tracker_id) { NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.'); NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?'); } else { var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id; for (var v9 in extra) { v7 += '&' + escape(v9) + '=' + escape(extra[v9]); } trace(v7); if (NewgroundsAPI.debug) { v7 += '&debug=1'; } if (open_in_browser) { getURL(v7, '_blank'); } else { var v10 = new XML(); v10.ignoreWhite = true; v10.onLoad = function (success) { var v6 = new Object(); var v3 = 0; while (v3 < this.firstChild.childNodes.length) { var v4 = this.firstChild.childNodes[v3]; var v5 = v4.nodeName; var v2 = v4.attributes.value; if (v2 == Number(v2)) { v2 = Number(v2); } v6[v5] = v2; ++v3; } NewgroundsAPI.ReadGatewayData(v6); }; v10.load(v7); } } }; v1.SendError = function (msg) { trace('[NEWGROUNDS API ERROR] :: ' + msg); }; v1.SendMessage = function (msg) { trace('[NEWGROUNDS API] :: ' + msg); }; v1.InitTextFormats = function () { if (!NewgroundsAPI.error_format) { NewgroundsAPI.error_format = new TextFormat(); NewgroundsAPI.error_format.font = 'Arial Black'; NewgroundsAPI.error_format.size = 48; NewgroundsAPI.error_format.color = 16711680; } if (!NewgroundsAPI.header_format) { NewgroundsAPI.header_format = new TextFormat(); NewgroundsAPI.header_format.font = 'Arial Black'; NewgroundsAPI.header_format.size = 24; NewgroundsAPI.header_format.color = 16777215; } if (!NewgroundsAPI.normal_format) { NewgroundsAPI.normal_format = new TextFormat(); NewgroundsAPI.normal_format.font = 'Arial'; NewgroundsAPI.normal_format.bold = true; NewgroundsAPI.normal_format.size = 12; NewgroundsAPI.normal_format.color = 16777215; } if (!NewgroundsAPI.link_format) { NewgroundsAPI.link_format = new TextFormat(); NewgroundsAPI.link_format.color = 16776960; NewgroundsAPI.link_format.underline = true; } }; v1.onNewVersionAvailable = function (version, movie_url, redirect_url) { NewgroundsAPI.InitTextFormats(); var v2 = new Object(); v2.x = Stage.width / 2; v2.y = Stage.height / 2; _root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120); _root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80); _root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var v3 = 'Version ' + version + ' is now available at:' + '\n'; var v5 = v3.length; v3 += movie_url; var v4 = v3.length; _root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!'; _root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.header_format); _root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = v3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(NewgroundsAPI.normal_format); NewgroundsAPI.link_format.url = redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format); }; v1.onDenyHost = function (hostname, movie_url, redirect_url) { NewgroundsAPI.InitTextFormats(); _root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var v2 = 'This movie has not been approved for use on ' + hostname + '.'; v2 += '\r\rFor an aproved copy, please visit:\r'; var v4 = v2.length; v2 += movie_url; var v3 = v2.length; _root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = 'ERROR!'; _root.NGAPI_deny_host_overlay.error.setTextFormat(NewgroundsAPI.error_format); _root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = v2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(NewgroundsAPI.normal_format); NewgroundsAPI.link_format.url = redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format); }; v1.isInstalled = function () { return true; }; v1.onAdsApproved = function (ad_url) {}; v1.movie_options = new Object(); v1.custom_events = new Object(); v1.custom_links = new Object(); v1.MOVIE_VIEWS = 1; v1.AUTHOR_SITE = 2; v1.NEWGROUNDS = 3; v1.NEW_VERSION = 4; v1.CUSTOM_STATS = 50; v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php'; ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1); } #endinitclip } frame 2 { _root.topboxstartvalX = _root.itemtopbox24._x; _root.topboxstartvalY = _root.itemtopbox24._y; _root.saveisnow = 0; _root.actionitem = 1; _root.thewin2230 = 0; _root.timepush2331 = 0; _root.hhyi991 = 1; _root.skiplv223 = 0; _root.damageflux = 0; _root.healit330 = 0; _root.finlv1at882 = 0; } frame 2 { if (_root.firstat9972 == 1) { _root.firstat9972 = 365; _root.soundbox.fanfare1.gotoAndPlay(2); } if (_root.onfeting443 == 7) { _root.onfeting443 = 2; _root.gotoAndPlay('gamestart'); } if (_root.pressed444 == 1) { _root.starttime += 1; } if (_root.starttime >= 25) { _root.pressed444 = 0; _root.starttime = 0; } } frame 2 { _root.atlvrobo1 = 2; _root.atlvrobo2 = 2; _root.lv0ccarmor = 0; _root.lv0rdarmor = 0; _root.lv0acy = 0; _root.lv0maxhp = 0; _root.lv0ccp = 0; _root.lv0ccacy = 0; _root.lv0ccagi = 0; _root.lv1maxexp = 10; _root.lv1ccarmor = 0; _root.lv1rdarmor = 0; _root.lv1acy = 3; _root.lv1maxhp = 14; _root.lv1ccp = 2; _root.lv1ccacy = 4; _root.lv1ccagi = 3; _root.lv1maxap = 21; _root.lv2ccarmor = 0; _root.lv2rdarmor = 0; _root.lv2acy = 3; _root.lv2maxhp = 13; _root.lv2ccp = 2; _root.lv2ccacy = 4; _root.lv2ccagi = 3; _root.lv3ccarmor = 0; _root.lv3rdarmor = 0; _root.lv3acy = 5; _root.lv3maxhp = 23; _root.lv3ccp = 3; _root.lv3ccacy = 8; _root.lv3ccagi = 7; _root.lv3ccarmor = 0; _root.lv3rdarmor = 0; _root.lv3acy = 8; _root.lv3maxhp = 35; _root.lv3ccp = 5; _root.lv3ccacy = 10; _root.lv3ccagi = 8; _root.lv4ccarmor = 0; _root.lv4rdarmor = 0; _root.lv4acy = 10; _root.lv4maxhp = 47; _root.lv4ccp = 6; _root.lv4ccacy = 14; _root.lv4ccagi = 10; _root.lv5ccarmor = 0; _root.lv5rdarmor = 0; _root.lv5acy = 12; _root.lv5maxhp = 58; _root.lv5ccp = 7; _root.lv5ccacy = 17; _root.lv5ccagi = 14; } movieClip 216 { frame 1 { stop(); } } movieClip 219 { frame 1 { stop(); } } movieClip 221 { frame 1 { stop(); } } movieClip 224 { frame 1 { stop(); } } movieClip 227 { frame 1 { stop(); } } movieClip 229 { frame 1 { stop(); } } movieClip 230 { } movieClip 239 { frame 1 { stop(); } } instance new game ins of movieClip 239 { onClipEvent (release) { NewgroundsAPI.logCustomEvent('run event'); _root.comintro.gotoAndPlay(2); _root.pressed444 = 1; _root.pressed445 += 1; if (_root.pressed445 >= 3) { _root.pressed445 = 1; _root.starttime = 0; _root.pressed444 = 0; } } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } } movieClip 247 { frame 1 { stop(); } } instance of movieClip 247 { onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (release) { NewgroundsAPI.loadMySite(); } } movieClip 249 { } instance of movieClip 249 { onClipEvent (release) { } } movieClip 252 { } movieClip 253 { frame 1 { stop(); } } movieClip 255 { frame 1 { stop(); IDname = 'hitbox'; } } movieClip 263 { } button 265 { on (press) { if (_root.nowshop == 0 && itmeact331 == 1) { _root.actionitem = this; } _root.flying = 1; if (dropboc == 0) { if (_root.nowshop == 1) { _root.dragbox.gotoAndStop(this._currentframe); startDrag(this, false); _root.curentlif11 = 1; _root.itemislifted = 1; _root.old115 = _root.curentitemlift; _root.curentitemlift = this; } } } on (release) { _root.flying = 0; if (dropboc == 0) { _root.curentlif11 = 0; _root.itemislifted = 0; if (_root.suretarget == 1) { _root.suretarget = 0; _root.soundbox.pickupsnd.gotoAndPlay(2); _root.targetitem33.gotoAndStop(this._currentframe); _root.targetitem33.hitbox33.gotoAndStop(1); this.gotoAndStop(1); } _root.targetitem33.hitbox33.gotoAndStop(1); _root.itemdroped = 1; this._x = xval; this._y = yval; _root.flying = 0; _root.itemislifted = 0; stopDrag(); this._x = xval; this._y = yval; } } } button 278 { on (press) { if (_root.nowshop == 1) { _root.dragbox.gotoAndStop(this._currentframe); this.gotoAndStop(10); startDrag(this, false); _root.curentlif11 = 1; _root.itemislifted = 1; _root.curentitemlift = this; } } on (release) { _root.curentlif11 = 0; _root.itemislifted = 0; trace('realease'); if (_root.suretarget == 1) { _root.suretarget = 0; trace('sure'); trace(_root.dragbox._currentframe); _root.targetitem33.gotoAndStop(_root.dragbox._currentframe); _root.targetitem33.hitbox33.gotoAndStop(1); this.gotoAndStop(1); } _root.targetitem33.hitbox33.gotoAndStop(1); _root.itemdroped = 1; this._x = xval; this._y = yval; _root.itemislifted = 0; stopDrag(); } } button 279 { on (press) { if (_root.nowshop == 1) { _root.dragbox.gotoAndStop(this._currentframe); this.gotoAndStop(10); startDrag(this, false); _root.curentlif11 = 1; _root.itemislifted = 1; _root.curentitemlift = this; } } on (release) { _root.curentlif11 = 0; _root.itemislifted = 0; trace('realease'); if (_root.suretarget == 1) { _root.suretarget = 0; _root.targetitem33.gotoAndStop(this._currentframe); _root.targetitem33.hitbox33.gotoAndStop(1); this.gotoAndStop(1); } _root.targetitem33.hitbox33.gotoAndStop(1); _root.itemdroped = 1; this._x = xval; this._y = yval; _root.itemislifted = 0; stopDrag(); } } movieClip 280 { frame 1 { xval = this._x; yval = this._y; stop(); itemID = 'empty'; dropboc = 0; eqipit = 0; maxhp = 0; maxap = 0; acy = 0; ccacy = 0; ccagi = 0; ccp = 0; rdarmor = 0; ccarmor = 0; rangewpndamage = 0; itmeact331 = 0; } frame 2 { itemID = 'Crystal'; sellval = 150; eqipit = 0; eqtype = 0; maxhp = 0; maxap = 0; acy = 0; ccacy = 0; ccagi = 0; ccp = 0; rdarmor = 0; ccarmor = 0; rangewpndamage = 0; itmeact331 = 0; } frame 3 { itemID = 'Junk'; sellval = 100; eqipit = 0; eqtype = 0; maxhp = 0; maxap = 0; acy = 0; ccacy = 0; ccagi = 0; ccp = 0; rdarmor = 0; ccarmor = 0; rangewpndamage = 0; itmeact331 = 0; } frame 4 { itemID = 'Smal repair kit'; sellval = 250; eqipit = 0; eqtype = 0; maxhp = 0; maxap = 0; acy = 0; ccacy = 0; ccagi = 0; ccp = 0; rdarmor = 0; ccarmor = 0; rangewpndamage = 0; itmeact331 = 1; itemisact = 1; } frame 5 { itemID = 'Basic Armor'; sellval = 350; eqipit = 1; eqtype = 5; maxhp = 5; maxap = -2; acy = 0; ccacy = 0; ccagi = -2; ccagi = 0; ccp = 0; rdarmor = 3; ccarmor = 2; rangewpndamage = 0; itmeact331 = 0; } frame 6 { itemID = 'Basic targeting'; sellval = 112; eqipit = 1; eqtype = 9; maxhp = 2; maxap = 1; acy = 5; ccacy = 0; ccagi = 0; ccagi = 0; ccp = 0; rdarmor = 0; ccarmor = 0; rangewpndamage = 0; itmeact331 = 0; } frame 7 { itemID = 'kiras ELT cirqit card'; sellval = 97; eqipit = 0; eqtype = 0; maxhp = 5; maxap = 1; acy = 5; ccacy = 0; ccagi = 0; ccagi = 0; ccp = 0; rdarmor = 3; ccarmor = 2; rangewpndamage = 0; itmeact331 = 0; } } movieClip 281 { frame 25 { stop(); } frame 50 { _root.blackfull = 1; } } // unknown tag 88 length 97 button 288 { on (release) { _root.comintro.gotoAndPlay('mid776'); } } button 290 { on (release) { _root.comintro.gotoAndPlay('mid888'); } } button 294 { on (release) { _root.comintro.gotoAndPlay('mid888'); } } button 296 { on (release) { _root.comintro.gotoAndStop('mid336'); } } button 301 { on (release) { _root.comintro.gotoAndPlay('runcomic212'); } } movieClip 304 { } // unknown tag 88 length 160 button 311 { on (release) { _root.deadNOW = 4491; _root.comintro.gotoAndPlay('yay88124'); } } movieClip 316 { } movieClip 319 { } movieClip 320 { frame 1063 { } frame 1268 { _root.deadNOW = 4491; _root.comintro.gotoAndPlay('yay88124'); this.gotoAndStop(); } } button 324 { on (release) { _root.deadNOW = 4491; _root.comintro.gotoAndPlay('onpush66354'); } } movieClip 325 { } movieClip 334 { } movieClip 337 { } movieClip 340 { } button 342 { on (release) { _root.saveisnow = 1; } } button 347 { on (release) { _root.deadNOW = 4491; _root.comintro.gotoAndPlay('blurg345773'); } } movieClip 351 { frame 1 { stop(); } } movieClip 356 { frame 1063 { } frame 1268 { _root.deadNOW = 4491; _root.deadNOW = 7771; _root.comintro.gotoAndStop(1); this.gotoAndStop(); } } movieClip 357 { frame 1 { stop(); } frame 15 { stop(); } frame 28 { } frame 29 { stop(); } frame 30 { _root.onfeting443 = 7; } frame 44 { stop(); } frame 55 { stop(); NewgroundsAPI.logCustomEvent('clared lv1'); } instance of movieClip 304 { onClipEvent (release) { getURL('https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=YNNFDFT3YEMRE&lc=SE&item_name=Terra%20Strike%20m1%20donation&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted', '_blank'); } } frame 58 { _root.shopon = 7; _root.chanefett301 = 3; } frame 67 { stop(); } frame 79 { stop(); } frame 89 { _root.deadNOW = 7771; } frame 90 { stop(); } frame 101 { NewgroundsAPI.logCustomEvent('clared game'); stop(); } frame 113 { _root.selectsav = 1; _root.sav1 = SharedObject.getLocal('terra_strike1', '/'); _root.sav2 = SharedObject.getLocal('terra_strike2', '/'); _root.sav3 = SharedObject.getLocal('terra_strike3', '/'); } instance savu1 of movieClip 334 { onClipEvent (release) { _root.selectsav = 1; } } instance savu2 of movieClip 337 { onClipEvent (release) { _root.selectsav = 2; } } instance savu3 of movieClip 340 { onClipEvent (release) { _root.selectsav = 3; } } instance of movieClip 304 { onClipEvent (release) { getURL('https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=YNNFDFT3YEMRE&lc=SE&item_name=Terra%20Strike%20m1%20donation&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted', '_blank'); } } frame 114 { _root.sav1 = SharedObject.getLocal('terra_strike1', '/'); _root.sav2 = SharedObject.getLocal('terra_strike2', '/'); _root.sav3 = SharedObject.getLocal('terra_strike3', '/'); if (_root.selectsav == 1) { _root.comintro.selectu883.gotoAndStop(1); } if (_root.selectsav == 2) { _root.comintro.selectu883.gotoAndStop(2); } if (_root.selectsav == 3) { _root.comintro.selectu883.gotoAndStop(3); } if (_root.sav1.data.conf == 1152) { _root.sav1cap = _root.sav1.data.tittle; _root.sav1cash = 'funds ' + _root.sav1.data.cash; } else { _root.sav1cap = 'Empty'; _root.sav2cash = ' '; } if (_root.sav2.data.conf == 1152) { _root.sav2cap = _root.sav2.data.tittle; _root.sav2cash = 'funds ' + _root.sav2.data.cash; } else { _root.sav2cap = 'Empty'; _root.sav2cash = ' '; } if (_root.sav3.data.conf == 1152) { _root.sav3cap = _root.sav3.data.tittle; _root.sav3cash = 'funds ' + _root.sav3.data.cash; } else { _root.sav3cap = 'Empty'; _root.sav3cash = ' '; } if (_root.saveisnow == 1) { _root.saveisnow = 0; _root.sav.data.loadon = 'Saved'; if (_root.selectsav == 1) { _root.sav = SharedObject.getLocal('terra_strike1', '/'); } if (_root.selectsav == 2) { _root.sav = SharedObject.getLocal('terra_strike2', '/'); } if (_root.selectsav == 3) { _root.sav = SharedObject.getLocal('terra_strike3', '/'); } _root.sav.data.mi = 1; _root.sav.data.conf = 1152; _root.sav.data.tittle = 'mission1'; _root.sav.data.cash = _root.cash; _root.sav.data.robo1lv = _root.map.robo1.levela; _root.sav.data.robo1maxexp = _root.map.robo1.maxexp; _root.sav.data.robo1exp1 = _root.map.robo1.exp1; _root.sav.data.robo1IDname = _root.map.robo1.IDname; _root.sav.data.robo2lv = _root.map.robo2.levela; _root.sav.data.robo2maxexp = _root.map.robo2.maxexp; _root.sav.data.robo2exp1 = _root.map.robo2.exp1; _root.sav.data.robo2IDname = _root.map.robo2.IDname; _root.sav.data.inv1at1 = _root.invchoice2.inv1.invslot1._currentframe; _root.sav.data.inv1at2 = _root.invchoice2.inv1.invslot2._currentframe; _root.sav.data.inv1at3 = _root.invchoice2.inv1.invslot3._currentframe; _root.sav.data.inv1at4 = _root.invchoice2.inv1.invslot4._currentframe; _root.sav.data.inv1at5 = _root.invchoice2.inv1.invslot5._currentframe; _root.sav.data.inv1at6 = _root.invchoice2.inv1.invslot6._currentframe; _root.sav.data.inv1at7 = _root.invchoice2.inv1.invslot7._currentframe; _root.sav.data.inv1at8 = _root.invchoice2.inv1.invslot8._currentframe; _root.sav.data.inv1at9 = _root.invchoice2.inv1.invslot9._currentframe; _root.sav.data.inv2at1 = _root.invchoice2.inv2.invslot1._currentframe; _root.sav.data.inv2at2 = _root.invchoice2.inv2.invslot2._currentframe; _root.sav.data.inv2at3 = _root.invchoice2.inv2.invslot3._currentframe; _root.sav.data.inv2at4 = _root.invchoice2.inv2.invslot4._currentframe; _root.sav.data.inv2at5 = _root.invchoice2.inv2.invslot5._currentframe; _root.sav.data.inv2at6 = _root.invchoice2.inv2.invslot6._currentframe; _root.sav.data.inv2at7 = _root.invchoice2.inv2.invslot7._currentframe; _root.sav.data.inv2at8 = _root.invchoice2.inv2.invslot8._currentframe; _root.sav.data.inv2at9 = _root.invchoice2.inv2.invslot9._currentframe; _root.sav.data.robo1eq1 = _root.robo1eq1; _root.sav.data.robo1eq2 = _root.robo1eq2; _root.sav.data.robo1eq3 = _root.robo1eq3; _root.sav.data.robo1eq4 = _root.robo1eq4; _root.sav.data.robo1eq5 = _root.robo1eq5; _root.sav.data.robo1eq6 = _root.robo1eq6; _root.sav.data.robo1eq7 = _root.robo1eq7; _root.sav.data.robo1eq8 = _root.robo1eq8; _root.sav.data.robo1eq9 = _root.robo1eq9; _root.sav.data.robo1eq10 = _root.robo1eq10; _root.sav.data.robo2eq1 = _root.robo1eq1; _root.sav.data.robo2eq2 = _root.robo1eq2; _root.sav.data.robo2eq3 = _root.robo1eq3; _root.sav.data.robo2eq4 = _root.robo1eq4; _root.sav.data.robo2eq5 = _root.robo1eq5; _root.sav.data.robo2eq6 = _root.robo1eq6; _root.sav.data.robo2eq7 = _root.robo1eq7; _root.sav.data.robo2eq8 = _root.robo1eq8; _root.sav.data.robo2eq9 = _root.robo1eq9; _root.sav.data.robo2eq10 = _root.robo1eq10; _root.sav.flush(); if (_root.selectsav == 1) { _root.sav1 = SharedObject.getLocal('terra_strike1', '/'); } if (_root.selectsav == 2) { _root.sav2 = SharedObject.getLocal('terra_strike2', '/'); } if (_root.selectsav == 3) { _root.sav3 = SharedObject.getLocal('terra_strike3', '/'); } } } frame 115 { gotoAndPlay('skillsave119'); } frame 130 { stop(); } } movieClip 359 { frame 1 { xval = this._x; yval = this._y; stop(); itemID = 'empty'; dropboc = 0; } frame 2 { itemID = 'crystal'; } frame 3 { itemID = 'crystal'; } frame 4 { itemID = 'Smal repair kit'; } } frame 3 { _root.gotoAndPlay('restart43'); } frame 4 { _root.AIstart = 1; } frame 4 { function firehitcheck() { u = 1; while (u <= 99) { if (this.hitTest(_root.map['en' + u])) { _root.tesst += 1; } ++u; } } function runonce(max) { if (_root.runonece == 0) { _root.timeu2 = max; } _root.runonece = 1; } function createenemy(i, x, y) { _root.endep += 1; var v2 = 'en' + i; _root.map.attachMovie('TE', 'en' + i, _root.endep, {'_x': x, '_y': y, 'yourname': v2}); } function shaecheck() { if (_root.firingnow == 11) { shaku(2); shaku2(1); _root.firingnow = 2; } } function shaku(bu) { _root.shake = bu; _root.whatchake = Math.random(4) * -8 + 9; if (_root.whatchake >= 6) { _root.map._x += _root.shake; } if (_root.whatchake <= 5) { _root.map._y += _root.shake; } } function aftershaku() { if (_root.shake >= 0) { _root.map._x += (_root.mapx - _root.map._x) / 5; _root.map._y += (_root.mapy - _root.map._y) / 5; _root.shake -= 1; } else { _root.mapx = _root.map._x; _root.mapy = _root.map._y; } } function shaku2(bu) { _root.shake2 = bu; _root.whatchake2 = Math.random(4) * -8 + 9; _root.howhake2 = Math.random(4) * -3 + 4; if (_root.howhake2 <= 3) { if (_root.whatchake2 >= 6) { _root.guiframe1._x += _root.shake2; } if (_root.whatchake2 <= 5) { _root.guiframe1._y += _root.shake2; } } else {} if (_root.whatchake2 >= 6) { _root.guiframe1._x -= _root.shake2; } if (_root.whatchake2 <= 5) { _root.guiframe1._y -= _root.shake2; } } function aftershaku2() { if (_root.shake2 >= 0) { _root.guiframe1._x += (_root.mapx2 - _root.guiframe1._x) / 5; _root.guiframe1._y += (_root.mapy2 - _root.guiframe1._y) / 5; _root.shake2 -= 1; } else {} } function displh(tim, what) { _root.help1.gotoAndPlay(2); _root.help1.help2.gotoAndStop(what); _root.help1.tim2 = _root.diatime; } root.skum = scro(); _root.runonece = 0; _root.pu = 0; _root.putime = 0; _root.tesst = 0; _root.tesst2 = 0; _root.rescom442 = 1; _root.bossfinish = 0; timeuz992 = 0; _root.nowshop = 0; _root.grndwidh33 = _root.guihp.hp445._yscale; _root.grndwidh771 = _root.turn2.ap447.m5._yscale; _root.grnd551hf = _root.robocelpiv.realrobopic.expmetr.thyEXPgu._xscale; _root.ystart = this.map._y; _root.xstart = this.map._x; _root.duntext = 0; _root.eventtext2 = ' '; _root.row4 = ' '; _root.row3 = ' '; _root.row2 = ' '; _root.row1 = ' '; hjk = 0; _root.helpdown881 = 0; _root.smugtime = 0; _root.timed9927 = 0; _root.railbossfired = 0; _root.soundtimewait = 600; _root.dmgchangval11 = 1; _root.levelchange = 1; _root.nomberon11 = 0; _root.cash = 50; _root.deadNOW = 0; _root.firedep = 300; _root.spacet = 0; _root.itemnumber = 0; _root.dontshootnow = 0; _root.isovercnt = 0; _root.changerobofe44on = 0; _root.runee294 = 4; _root.afirst220 = 1; _root.cameraactive = 0; _root.selecttime = 0; _root.selectedMAIN = this.map.robo1; _root.selectedMAIN.isselected = 1; _root.folowmulti = 9; _root.changerobotyes = 0; _root.firstenemystart = 1; _root.turn = 1; _root.AP = 10000; _root.runu = 1; _root.creditdone = 0; _root.gameend = 0; _root.enemynumber = 0; _root.numb2 = 600; _root.numbc = 0; _root.playdir1 = 0; _root.playdir2 = 0; _root.map.robo1.bottom.bu.stop(); _root.map.robo2.bottom.bu.stop(); _root.mapx2 = _root.guiframe1._x; _root.mapy2 = _root.guiframe1._y; _root.shake2 = 0; _root.mapx = _root.map._x; _root.mapy = _root.map._y; _root.shake = 0; _root.dialoguechar = 3; _root.efectlayer = 1200; _root.isovercntITEM = 0; _root.buggery1 = 1; _root.buggery2 = 1; loadSound('feting1.mp3', false); loadSound('gonshot2.mp3', false); loadSound('play song short.mp3', false); _root.ht1.setVolume(-5000000); _root.ht2.setVolume(-5000000); _root.ht3.setVolume(-100000); _root.ht4.setVolume(-100000); _root.ht5.setVolume(-100000); var int1 = new Sound(_root.hmm5); int1.attachSound('feting1.mp3'); var int2 = new Sound(_root.snd1); int2.attachSound('play song short.mp3'); var gunsnd1 = new Sound(_root.snd2); _root.gunsnd1.attachSound('gonshot5'); var gunsnd2 = new Sound(_root.snd3); _root.gunsnd2.attachSound('gonshot2.mp3'); _root.firstinitcmbt = 1; _root.soundisstart = 0; _root.firesndtime = 0; _root.firesndtimeMAX = 4; _root.firesndtimeARMORMAX = 7; _root.musicvol = 50; _root.efectvolume = 40; _root.sndst = 0; _root.endep = 200; _root.us432 = 1; _root.cooldown = 0; _root.firetime = 2; _root.dialoUPP = 0; _root.diatime = 0; _root.dialogueDONE = 1; _root.cnt = 0; _root.dialogueat1 = 1; _root.dialogueat2 = 1; _root.endturn = 0; _root.curentenemyhp = 0; _root.combaton = 0; _root.ccDONE = 1; _root.startwid = _root.combtani.cmdgfx1.gt3.hpc._width; _root.map.robo1.swapDepths(500); _root.map.robo2.swapDepths(501); someListener = new Object(); someListener.onMouseDown = function () { _root.fi = 1; }; Mouse.addListener(someListener); someListener2 = new Object(); someListener2.onMouseUp = function () { _root.fi = 2; }; Mouse.addListener(someListener2); } frame 4 { AIfiretimerocket = 0; c = 2; AIladone = 0; _root.rotationaten = 0; _root.isfire44boss = 0; f113firstrunboss = 1; blaston331 = 0; blurg99721 = 0; _root.enemynext552 = 1; } frame 4 { _root.sitem1 = 1; _root.onearayst32 = 1; shoptime = 1; _root.flying = 0; _root.haveshoped13 = 0; } movieClip 364 { frame 1 { _root.isovercntITEM = 7; _root.selectedITEM12 = this._parent._parent.IDname; _root.selectedITEM13 = this._parent._parent.IDdescript; _root.selectedITEM14 = this._parent._parent.img; _root.selectedITEM15 = this._parent._parent.IFF; _root.selectedITEMsroboX = this._parent._parent._x; _root.selectedITEMsroboY = this._parent._parent._y; } } movieClip 366 { frame 1 { IDname = 'Abrahamium'; IDdescript = 'space mettal'; img = 2; IFF = 0; del = 0; picnr = 2; } frame 2 { if (del == 1) { this.swapDepths(0); this.removeMovieClip(); } } frame 3 { this.gotoAndPlay(2); } } movieClip 369 { frame 1 { IDname = 'Junk'; IDdescript = 'General Junk'; img = 3; IFF = 0; del = 0; picnr = 3; } frame 2 { if (del == 1) { this.swapDepths(0); this.removeMovieClip(); } } frame 3 { this.gotoAndPlay(2); } } movieClip 372 { } movieClip 374 { frame 1 { stop(); } } movieClip 376 { } movieClip 378 { } movieClip 379 { } movieClip 380 { frame 1 { stop(); } } movieClip 382 { frame 1 { stop(); } frame 2 { } } movieClip 383 { frame 1 { } frame 2 { gotoAndPlay('vads'); } } movieClip 387 { frame 1 { stop(); } } movieClip 390 { frame 1 { stop(); } } movieClip 391 { } movieClip 392 { } movieClip 393 { } movieClip 394 { frame 1 { nameu = 'Cristofer'; ccarmor = 3; rdarmor = 2; levela = 1; hp = 130; maxhp = 130; ccp = 7; ccacy = 80; ccagi = 50; acy = 11; lasthitrange = 0; img = 1; rangewpndamage = 5; wpndmgflux5 = 4; ap = 1200; maxap = 1200; recmoveap = 8; maxexp = 100; exp1 = 45; IDname = 'Cristofer'; IDdescript = 'A friendly soul'; robonr = 1; itemfree = 1; IFF = 1; grmaxhp = 130; grmaxap = 1200; grccp = 7; grccacy = 80; grccagi = 50; grmaxexp = 100; grccarmor = 3; grrdarmor = 2; grrangewpndamage = 5; gracy = 12; } frame 2 { function expl1(nameit, nmb, deli) { i = 1; while (i <= nmb) { if (_root.numb2 >= 800) { _root.numb2 = 600; } ran = random(360) + 1; _root.numb2 += 1; _root.rdm33 = Math.random() * 360; _root.map.attachMovie(nameit, 't_' + _root.numb2, _root.numb2, {'_x': this._x, '_y': this._y, '_rotation': ran, 'delayit': deli}); ++i; } } function ro2() { angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x) * 180 / Math.PI + 90; this.rtop._rotation = angle; } function roboaim() { var v3 = _root.dirmousex - _root._xmouse; var v4 = _root.dirmousey - _root._ymouse; this.rtop._rotation = Math.atan2(v4, v3) * 57.29577951308232; } function fire() { if (_root.cooldown >= _root.firetime) { if (_root.firesndtime >= _root.firesndtimeMAX) { _root.shotsnd.gotoAndPlay(2); _root.firesndtime = 0; } _root.firingnow = 11; ap -= 15; _root.timem.gotoAndStop(_root.AP / 100); _root.cooldown = 0; _root.display.gotoAndStop(2); var v3 = 't_' + _root.numb; _root.firedep += 1; _root.numb += 1; if (_root.firedep >= 450) { _root.firedep = 300; } ost332 = 255 - acy; fullacy223 = ost332 / 255; _root.rndm *= fullacy223; _root.map.attachMovie('SubMgun', 't_' + _root.numb, _root.firedep, {'_x': this._x, '_y': this._y, '_rotation': this.rtop._rotation + _root.rndm, 'yourname': v3, 'rot2': this.rtop._rotation, 'dmgowner': this}); } else {} } if (_root.runu == 1) { if (_root.robotselect == 1) { _root.curenty = this._y; _root.curentx = this._x; roboy = _root.map.robo1._y; robox = _root.map.robo1._x; roboaim(); _root.cooldown += 1; this.srdm._rotation; this.srdm._rotation = -_root.rndm; if (_root.fi == 1 && ap >= 15 && _root.dontshootnow <= 1) { if (_root.cooldown >= _root.firetime) { this.srdm._rotation = -(_root.rndm / 2) - 90; this.rtop.robotopset._rotation = this.srdm._rotation; this.rtop.robotopset.flash2.gotoAndPlay(2); } this.rtop.robotopset.gotoAndPlay(2); fire(); } else { this.rtop.robotopset._rotation = -90; } } } this.hpm._yscale = (hp / maxhp) * 100; if (isselected == 0) { this.ccc.gotoAndStop(2); this.rtop.ddd.gotoAndStop(2); } else { this.ccc.gotoAndStop(1); this.rtop.ddd.gotoAndStop(1); } if (hp <= 0) { expl1('blammfire', 2, 2); expl1('blammfire', 5, 13); expl1('blammfire', 5, 27); expl1('blstill', 1, 27); expl1('blstill', 1, 27); this.swapDepths(0); this.removeMovieClip(); } } frame 3 { this.gotoAndPlay('start11'); } } movieClip 397 { } movieClip 398 { frame 1 { stop(); } } movieClip 400 { } movieClip 402 { } movieClip 403 { } movieClip 404 { frame 1 { stop(); } } movieClip 405 { frame 1 { stop(); } frame 2 { } } movieClip 406 { frame 1 { stop(); } frame 2 { } } movieClip 415 { frame 1 { stop(); } } movieClip 418 { frame 1 { stop(); } } movieClip 421 { frame 2 { stop(); } } movieClip 422 { } movieClip 423 { frame 1 { nameu = 'Conrad'; ccarmor = 2; rdarmor = 3; levela = 2; hp = 135; maxhp = 130; ccp = 7; ccacy = 35; ccagi = 40; lasthitrange = 0; img = 2; isselected = 0; grndpow = 2; acy = 56; locken2 = 0; rangewpndamage = 24; wpndmgflux5 = 8; ap = 1330; maxap = 1330; maxexp = 120; exp1 = 5; timekl2 = 0; wpnapneed = 220; recmoveap = 9; IDname = 'Conrad'; IDdescript = 'Nice dood'; robonr = 2; itemfree = 1; IFF = 1; grmaxhp = 135; grmaxap = 1200; grccp = 7; grccacy = 35; grccagi = 40; grmaxexp = 100; grccarmor = 2; grrdarmor = 3; grrangewpndamage = 24; gracy = 56; } frame 2 { function expl1(nameit, nmb, deli) { i = 1; while (i <= nmb) { if (_root.numb2 >= 800) { _root.numb2 = 600; } ran = random(360) + 1; _root.numb2 += 1; _root.rdm33 = Math.random() * 360; _root.map.attachMovie(nameit, 't_' + _root.numb2, _root.numb2, {'_x': this._x, '_y': this._y, '_rotation': ran, 'delayit': deli}); ++i; } } function ro3() { angle2 = Math.atan2(_root._ymouse - _y, _root._xmouse - _x) * 180 / Math.PI + 90; this.rtop._rotation = angle2; } function roboaim() { var v3 = _root.dirmousex - _root._xmouse; var v4 = _root.dirmousey - _root._ymouse; this.rtop._rotation = Math.atan2(v4, v3) * 57.29577951308232; } function fire() { if (_root.cooldown >= _root.firetime && ap >= wpnapneed) { if (_root.firesndtime >= _root.firesndtimeMAX) { _root.grnd44.gotoAndPlay(2); _root.grnd55.gotoAndPlay(2); _root.firesndtime = 0; } _root.firingnow = 11; ap -= wpnapneed; _root.timem.gotoAndStop(_root.AP / 100); _root.cooldown = 0; _root.display.gotoAndStop(2); var v3 = 't_' + _root.numb; _root.firedep += 1; _root.numb += 1; if (_root.firedep >= 450) { _root.firedep = 300; } _root.grndscal44 = grndpow * 2.5; this.rtop.robotopset.flash2.gotoAndPlay(2); timekl2 = 14; if (_root.randomof100 <= 10) { _root.grndrndm21 = _root.rndm * 3; } else { _root.grndrndm21 = _root.rndm / 7; } _root.map.attachMovie('GrndDot', 't_' + _root.numb, _root.firedep, {'_x': this._x, '_xscale': grndpow * 2.5, '_y': this._y, '_rotation': this.rtop._rotation + _root.grndrndm21, 'yourname': v3, 'rot2': this.rtop._rotation, 'dmgowner': this}); } else {} } if (_root.runu == 1) { if (_root.robotselect == 2) { _root.curenty = this._y; _root.curentx = this._x; roboy = _root.map.robo2._y; robox = _root.map.robo2._x; roboaim(); _root.cooldown += 1; this.srdm._rotation; this.srdm._rotation = -_root.rndm; if (_root.fi == 1 && _root.dontshootnow <= 1 && ap >= wpnapneed) { if (_root.cooldown >= _root.firetime) { this.srdm._rotation = -(_root.rndm / 2) - 90; this.rtop.robotopset._rotation = this.srdm._rotation; } this.rtop.robotopset.gotoAndPlay(2); this.rtop.grndrange.gotoAndStop(grndpow); grndpow += 1; locken2 = 1; } else { this.rtop.grndrange.gotoAndStop(2); if (locken2 == 1) { if (grndpow >= 20) { fire(); locken2 = 0; } } grndpow = 2; this.rtop.robotopset._rotation = -90; } if (timekl2 >= 2) { timekl2 -= 1; this.rtop.robotopset.gotoAndPlay(2); } } } this.hpm._yscale = (hp / maxhp) * 100; if (isselected == 0) { this.ccc.gotoAndStop(2); this.rtop.ddd.gotoAndStop(2); } else { this.ccc.gotoAndStop(1); this.rtop.ddd.gotoAndStop(1); } if (hp <= 0) { expl1('blammfire', 2, 2); expl1('blammfire', 5, 13); expl1('blammfire', 5, 27); expl1('blstill', 1, 27); expl1('blstill', 1, 27); this.swapDepths(0); this.removeMovieClip(); } } frame 3 { this.gotoAndPlay('start11'); } } movieClip 425 { frame 3 { _root.cameraactive = this; } frame 5 { stop(); } } movieClip 428 { } movieClip 431 { frame 1 { stop(); } } movieClip 432 { } movieClip 433 { frame 1 { stop(); } frame 2 { if (_root.healit330 == 1) { _root.map.numpindc22.on557.collor.gotoAndStop(2); _root.healit330 = 0; _root.dmgchangval11 = '+' + _root.dmgchangval11; } else { _root.map.numpindc22.on557.collor.gotoAndStop(1); } } frame 22 { this._x = -1000; this._y = -1000; } } movieClip 437 { } movieClip 438 { frame 17 { stop(); } } movieClip 442 { } movieClip 444 { frame 1 { stop(); } frame 96 { stop(); } } movieClip 447 { } movieClip 448 { frame 1 { stop(); } } movieClip 452 { frame 2 { stop(); } } movieClip 454 { frame 2 { stop(); } } movieClip 455 { frame 1 { stop(); } } movieClip 463 { } movieClip 464 { } movieClip 465 { } movieClip 466 { } movieClip 468 { frame 1 { stop(); } frame 39 { _root.sndexp1.gotoAndStop(1); } } movieClip 470 { frame 1 { stop(); } } movieClip 471 { } movieClip 473 { } movieClip 476 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 477 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 481 { frame 1 { _root.dontshootnow = 6; } } movieClip 485 { frame 1 { if (_root.dircurent242 == 1) { _root.yVel = _root.scrollSpeed; } if (_root.dircurent242 == 2) { _root.yVel = -_root.scrollSpeed; } if (_root.dircurent242 == 3) { _root.xVel = _root.scrollSpeed; } if (_root.dircurent242 == 4) { _root.xVel = -_root.scrollSpeed; } if (_root.dircurent242 == 5) { _root.yVel = _root.scrollSpeed; _root.xVel = -_root.scrollSpeed; } if (_root.dircurent242 == 6) { _root.yVel = -_root.scrollSpeed; _root.xVel = -_root.scrollSpeed; } if (_root.dircurent242 == 7) { _root.xVel = _root.scrollSpeed; _root.yVel = -_root.scrollSpeed; } if (_root.dircurent242 == 8) { _root.xVel = _root.scrollSpeed; _root.yVel = _root.scrollSpeed; } } } button 486 { on (press) { _root.dircurent242 = 1; } } button 487 { on (press) { _root.dircurent242 = 4; } } button 488 { on (press) { _root.dircurent242 = 2; } } button 489 { on (press) { _root.dircurent242 = 3; } } movieClip 493 { frame 1 { stop(); } } movieClip 494 { frame 2 { } frame 3 { this.gotoAndPlay(2); } } movieClip 495 { } movieClip 498 { } movieClip 501 { frame 1 { stop(); } } movieClip 516 { frame 1 { stop(); } } movieClip 517 { frame 1 { startmon22x = this._x; startmon22y = this._y; } frame 2 { if (_root.isovercnt >= 1) { this._x = _root.selectedsroboX + _root.map._x; this._y = _root.selectedsroboY + _root.map._y; if (_root.selectedskill115 == 4) { this.bugg22.gotoAndStop(2); } else { this.bugg22.gotoAndStop(1); } this.showimg.gotoAndPlay(_root.selectedskill114); } else { this._x = startmon22x; this._y = startmon22y; } } frame 3 { this.gotoAndPlay(2); } } movieClip 524 { frame 1 { stop(); } } movieClip 525 { frame 1 { startmon22xx = this._x; startmon22yy = this._y; } frame 2 { if (_root.isovercntITEM >= 1) { this._x = _root.selectedITEMsroboX + _root.map._x; this._y = _root.selectedITEMsroboY + _root.map._y; this.imagebattleicon1.gotoAndStop(_root.selectedITEM14); this.showimg.gotoAndPlay(_root.selectedskill114); } else { this._x = startmon22xx; this._y = startmon22yy; } } frame 3 { this.gotoAndPlay(2); } } movieClip 532 { frame 1 { stop(); } } movieClip 533 { } movieClip 535 { } movieClip 537 { frame 1 { stop(); } frame 35 { stop(); } } movieClip 538 { } movieClip 542 { frame 1 { stop(); } } movieClip 544 { frame 1 { stop(); } } movieClip 547 { } movieClip 548 { } movieClip 552 { } movieClip 555 { frame 1 { _root.ht2.gotoAndPlay(2); } frame 5 { stop(); } } movieClip 558 { } movieClip 559 { } movieClip 562 { frame 1 { _root.ht1.gotoAndPlay(2); } frame 33 { stop(); } } movieClip 563 { frame 1 { stop(); } frame 15 { stop(); } } movieClip 564 { } movieClip 565 { } movieClip 569 { frame 1 { _root.cchitaction = 1; } } movieClip 576 { } movieClip 577 { frame 1 { function shaku3(bu) { _root.shake2 = bu; _root.whatchake3 = Math.random(4) * -8 + 9; if (_root.whatchake3 >= 5) { _root.whatchake2 = Math.random(4) * -8 + 9; if (_root.whatchake2 >= 6) { _root.combtani.cmdgfx2.gt3._x += _root.shake2; } if (_root.whatchake2 <= 5) { _root.combtani.cmdgfx2.gt3._y += _root.shake2; } } else { root.whatchake2 = Math.random(4) * -8 + 9; if (_root.whatchake2 >= 6) { _root.combtani.cmdgfx2.gt3._x -= _root.shake2; } if (_root.whatchake2 <= 5) { _root.combtani.cmdgfx2.gt3._y -= _root.shake2; } } } function aftershaku3() { if (_root.shake2 >= 0) { _root.combtani.cmdgfx2.gt3._x += (_root.comxbase - _root.combtani.cmdgfx2.gt3._x) / 5; _root.combtani.cmdgfx2.gt3._y += (_root.comybase - _root.combtani.cmdgfx2.gt3._y) / 5; _root.shake2 -= 1; } else { _root.comx = _root.combtani.cmdgfx2.gt3._x; _root.comy = _root.combtani.cmdgfx2.gt3._y; } } function shaku4(bu) { _root.shake2 = bu; _root.whatchake3 = Math.random(4) * -8 + 9; if (_root.whatchake3 >= 5) { _root.whatchake2 = Math.random(4) * -8 + 9; if (_root.whatchake2 >= 6) { _root.combtani.cmdgfx1.gt3._x += _root.shake2; } if (_root.whatchake2 <= 5) { _root.combtani.cmdgfx1.gt3._y += _root.shake2; } } else { root.whatchake2 = Math.random(4) * -8 + 9; if (_root.whatchake2 >= 6) { _root.combtani.cmdgfx1.gt3._x -= _root.shake2; } if (_root.whatchake2 <= 5) { _root.combtani.cmdgfx1.gt3._y -= _root.shake2; } } } function aftershaku4() { if (_root.shake2 >= 0) { _root.combtani.cmdgfx1.gt3._x += (_root.comxbase - _root.combtani.cmdgfx1.gt3._x) / 5; _root.combtani.cmdgfx1.gt3._y += (_root.comybase - _root.combtani.cmdgfx1.gt3._y) / 5; _root.shake2 -= 1; } else { _root.comx = _root.combtani.cmdgfx1.gt3._x; _root.comy = _root.combtani.cmdgfx1.gt3._y; } } lugu = 0; tik = 0; stop(); ccbonus = 1; _root.combaserun = 1; curentbash2 = 0; _root.startaccybarw = _root.combtani.accy.within._width; _root.starthightyavi = _root.combtani.avidact.hitmeter._y; if (_root.firstinitcmbt == 1) { _root.firstinitcmbt = 0; curentbash = 0; } runat = 0; runat2 = 0; _root.comxbase = _root.combtani.cmdgfx2.gt3._x; _root.comybase = _root.combtani.cmdgfx2.gt3._y; } frame 2 { _root.ccDONE = 0; _root.combtani.cmdgfx1.gt3.cpic.gotoAndStop(_root.curentenemypic); _root.combtani.cmdgfx2.gt3.cpic.gotoAndStop(_root.curentcombatrobo.img); _root.lasttime33 = 0; decenton = 0; u = _root.combtani.curenten; hpcct = _root.map['en' + u].hp / _root.map['en' + u].maxhp; _root.combtani.cmdgfx1.gt3.hpc._width = _root.startwid * hpcct; hp2cct = _root.curentcombatrobo.hp / _root.curentcombatrobo.maxhp; _root.combtani.cmdgfx2.gt3.hpc._width = _root.startwid * hp2cct; _root.map['en' + u].lastdmg = _root.curentcombatrobo; trace('damage owner' + _root.map['en' + u].lastdmg.IDname); _root.widwall = 50 + _root.curentcombatrobo.ccacy - _root.map['en' + u].ccagi; _root.combtani.accy.within._width = _root.widwall; _root.hihtdodge = 20 + _root.curentcombatrobo.ccagi - _root.map['en' + u].ccacy; _root.combtani.avidact.avoidhit1._xscale = _root.hihtdodge; trace(_root.widwall); trace(_root.curentcombatrobo.IDname); trace(_root.map['en' + u].IDname); } frame 22 { _root.timetest = getTimer(); _root.elapsedtomefpstrue = _root.timetest - _root.lasttime33; _root.lasttime33 = _root.timetest; _root.timesxtime33 = _root.elapsedtomefpstrue / 45; if (_root.combaserun == 1) { _root.comxbase = _root.combtani.cmdgfx2.gt3._x; _root.comybase = _root.combtani.cmdgfx2.gt3._y; _root.combaserun = 0; } aftershaku3(); aftershaku4(); lugu = lugo + 1; u = _root.combtani.curenten; _root.curentenemyhp = _root.map['en' + u].hp; _root.map['en' + u].lasthitrange = 0; _root.curentrobohp = _root.curentcombatrobo.hp; hp2cct = _root.curentcombatrobo.hp / _root.curentcombatrobo.maxhp; _root.combtani.cmdgfx2.gt3.hpc._width = _root.startwid * hp2cct; enccp = _root.map['en' + u].ccp; hpcct = _root.map['en' + u].hp / _root.map['en' + u].maxhp; _root.combtani.cmdgfx1.gt3.hpc._width = _root.startwid * hpcct; if (decenton == 0) { tik += 1; } if (tik >= 30) { if (decenton == 0) { _root.combtani.avidact.hitmeter.gotoAndPlay(2); } ccbonus = 1; decenton = 1; tik = 0; } if (_root.combtani.avidact.hitmeter._y >= _root.combtani.avidact.btn._y) { _root.combtani.avidact.hitmeter.gotoAndStop(1); _root.combtani.avidact.hitmeter._y = _root.combtani.avidact.stmark._y; decenton = 0; _root.curentrobohp -= _root.map['en' + u].ccp * ccbonus; _root.curentenemyhp -= 3; _root.combtani.cmdgfx2.gt3.hpc._width -= _root.map['en' + u].ccp; shaku3(6); runat += 1; if (runat >= 2) { runat = 0; curentbash += 1; } _root.combtani.cmdgfx2.gt3.mark.gotoAndStop(curentbash); } if (_root.cchitaction == 1) { _root.spacet += 1; } else { _root.spacet = 1; _root.cchitaction = 0; } if (_root.spacet <= 2 && _root.cchitaction == 1) { _root.cchitaction = 0; if (_root.combtani.accy.aimstick.hitTest(_root.combtani.accy.within)) { _root.combtani.accy.within.gotoAndPlay(2); _root.rdm229 = Math.random(4) * -8 + 9; if (_root.rdm229 >= 5) { _root.soundbox.smack1.gotoAndPlay(2); } else { _root.soundbox.smack2.gotoAndPlay(2); } _root.curentenemyhp -= _root.curentcombatrobo.ccp - _root.map['en' + u].ccarmor; runat2 += 1; if (runat2 >= 2) { runat2 = 0; curentbash2 += 1; } _root.combtani.cmdgfx1.gt3.mark.gotoAndStop(curentbash2); shaku4(6); } else { if (_root.combtani.accy.within._width >= 20) { _root.combtani.accy.within._width -= 5; _root.combtani.accy.missone.gotoAndPlay(2); } } } if (_root.curentenemyhp <= 0) { _root.combtani.cmdgfx2.gt3._x = _root.comxbase; _root.combtani.cmdgfy2.gt3._x = _root.comybase; doo = 1; } else { if (_root.curentcombatrobo.hp <= 0) { doo = 1; } else { _root.map['en' + u].hp = _root.curentenemyhp; _root.curentcombatrobo.hp = _root.curentrobohp; } } if (doo == 1) { _root.map['en' + u].hp = _root.curentenemyhp; _root.curentcombatrobo.hp = _root.curentrobohp; doo = 0; this.gotoAndPlay(24); } if (_root.combtani.accy.aimstick._x <= this.accy.aminleft._x) { destleft = 1; } if (_root.combtani.accy.aimstick._x >= this.accy.aminright._x) { destleft = 0; } _root.combatacyspeed = 5; if (_root.timesxtime33 >= 10) { _root.timesxtime33 = 7; } if (destleft == 1) { _root.combtani.accy.aimstick._x += _root.combatacyspeed * _root.timesxtime33; } else { _root.combtani.accy.aimstick._x -= _root.combatacyspeed * _root.timesxtime33; } if (Key.isDown(32)) { if (_root.combtani.avidact.hitmeter.hitTest(_root.combtani.avidact.avoidhit1)) { _root.combtani.avidact.avoidhit1.gotoAndPlay(2); ccbonus = 0.3; _root.soundbox.swosh.gotoAndPlay(2); } else { if (_root.combtani.avidact.avoidhit1._xscale >= 10) { _root.combtani.avidact.avoidhit1._xscale -= 3; } _root.combtani.avidact.mainm.gotoAndPlay(2); } } decspeed = 0.24; if (decenton == 1) { _root.combtani.avidact.hitmeter._y += decspeed * _root.elapsedtomefpstrue; } } frame 23 { this.gotoAndPlay('ccc3'); } frame 24 { _root.combtani.cmdgfx1.gt3.mark.gotoAndStop(1); } frame 29 { _root.combaton = 0; _root.ccDONE = 1; _root.combtani.cmdgfx1.gt3.hpc._width = _root.startwid; _root.spacet = 0; } } button 586 { on (press) { _root.soundbox.klick2.gotoAndPlay(2); } on (release) { _root.endturn2.gotoAndStop(2); _root.endturn = 11; } } movieClip 587 { frame 1 { stop(); } } instance endturn2 of movieClip 587 { } button 597 { on (press) { _root.dircurent242 = 5; } } button 598 { on (press) { _root.dircurent242 = 6; } } button 599 { on (press) { _root.dircurent242 = 7; } } button 600 { on (press) { _root.dircurent242 = 8; } } movieClip 603 { } movieClip 610 { frame 1 { stop(); } } movieClip 611 { } movieClip 612 { frame 1 { _root.perhun8811 = _root.grnd551hf / 100; } frame 2 { this.thyEXPgu._xscale = _root.perhun8811 * ((_root.selectedMAIN.exp1 / _root.selectedMAIN.maxexp) * 100); } frame 3 { this.gotoAndPlay('uuurg8830'); } } movieClip 635 { frame 1 { stop(); } } movieClip 636 { frame 1 { stop(); } frame 1 { } frame 11 { stop(); } } movieClip 639 { } movieClip 640 { frame 1 { _root.invviss = 1; } frame 2 { _root.invviss = 1; } frame 3 { _root.invviss = 0; } frame 3 { stop(); } } button 643 { on (release) { if (_root.invviss == 1) { _root.invchoice2.gotoAndStop(3); } if (invviss == 0) { _root.invchoice2.gotoAndStop(_root.selectedMAIN.robonr); } } } movieClip 644 { } movieClip 645 { } movieClip 646 { } movieClip 647 { frame 1 { stop(); } } movieClip 648 { frame 1 { stop(); nu = 0; } frame 9 { if (_root.timd == 1) { nu = 0; this.gotoAndPlay('hjk2'); } else { nu += 1; this.gotoAndPlay('hjk'); } } } button 650 { on (release) { _root.help66.gotoAndPlay(2); } } movieClip 653 { } movieClip 656 { } movieClip 662 { } movieClip 664 { } // unknown tag 88 length 4 movieClip 672 { } movieClip 674 { } movieClip 675 { frame 1 { stop(); } frame 31 { _root.helpdown881 = 1; } frame 39 { stop(); } } movieClip 680 { } movieClip 681 { frame 1 { stop(); } } movieClip 683 { frame 1 { stop(); } frame 50 { this.gotoAndPlay(2); } } movieClip 686 { } movieClip 687 { frame 1 { stop(); } frame 2 { } frame 3 { } } movieClip 690 { } movieClip 691 { frame 1 { stop(); } } movieClip 692 { frame 1 { _root.perhun434 = _root.grndwidh771 / 100; } frame 2 { _root.turn2.ap447.m5._yscale = _root.perhun434 * ((_root.selectedMAIN.ap / _root.selectedMAIN.maxap) * 100); } frame 3 { this.gotoAndPlay('loop09'); } } movieClip 694 { frame 1 { _root.perhun44 = _root.grndwidh33 / 100; } frame 2 { _root.guihp.hp445._yscale = _root.perhun44 * ((_root.selectedMAIN.hp / _root.selectedMAIN.maxhp) * 100); } frame 3 { this.gotoAndPlay('rerun559'); } } movieClip 705 { frame 1 { stop(); } } movieClip 708 { } movieClip 710 { frame 1 { stop(); } frame 2 { _root.dialogue1.hmm.pset.gotoAndStop(_root.dialoguechar); } frame 4 { _root.timd = 0; } frame 12 { _root.cnt += 1; if (Key.isDown(32)) { _root.timd = 1; } if (_root.fi == 1) { if (_root.buggery1 == 2) { _root.buggery1 = 1; _root.timd = 1; } } else { _root.buggery1 = 2; } } frame 13 { if (_root.timd == 0) { this.gotoAndPlay('uul'); } } frame 15 { _root.cnt = 0; _root.timd = 0; _root.dialoUPP = 0; } frame 18 { _root.dialogueDONE = 1; } } button 723 { on (press) { _root.soundbox.klick2.gotoAndPlay(2); } on (release) { _root.nowshop = 0; _root.pu = 0; _root.shopunload = 1; } } movieClip 730 { } button 733 { on (release) { _root.assemblenow = 1; } } movieClip 734 { frame 1 { stop(); } } movieClip 738 { } button 739 { on (press) { _root.soundbox.klick2.gotoAndPlay(2); } on (release) { _root.assemlchoicetxt = 'Free Craft'; _root.carfttype = 1; _root.asscraftpice = '0kr'; _root.shopscreen.select.guideshow1.gotoAndStop(1); _root.shopscreen.select.guideshow2.gotoAndStop(1); _root.shopscreen.select.guideshow3.gotoAndStop(1); } } movieClip 742 { } button 743 { on (press) { _root.soundbox.klick2.gotoAndPlay(2); } on (release) { _root.assemlchoicetxt = 'Assemble : Basic armor : '; _root.carfttype = 2; _root.asscraftpiceval = 400; _root.asscraftpice = _root.asscraftpiceval + 'kr'; _root.shopscreen.select.guideshow1.gotoAndStop(2); _root.shopscreen.select.guideshow2.gotoAndStop(3); _root.shopscreen.select.guideshow3.gotoAndStop(5); } } movieClip 752 { frame 1 { stop(); } } movieClip 757 { } button 760 { on (press) { _root.soundbox.klick2.gotoAndPlay(2); } on (release) { _root.cash += _root.shopscreen.select.free3.sellval; _root.shopscreen.select.free3.gotoAndStop(1); } } movieClip 761 { frame 1 { stop(); } } movieClip 770 { } button 771 { on (release) { _root.purshaseon = 2; _root.cash -= _root.curentselectsellprice; } } movieClip 772 { frame 1 { stop(); } } movieClip 779 { frame 1 { stop(); } frame 2 { _root.curentitem98 = 2; _root.curentselectsellprice = 300; _root.shoppurchasewitm1193 = 4; } frame 3 { _root.curentitem98 = 2; _root.curentselectsellprice = 173; _root.shoppurchasewitm1193 = 6; } frame 4 { _root.curentitem98 = 2; _root.curentselectsellprice = 134; _root.shoppurchasewitm1193 = 7; } } button 782 { on (press) { _root.soundbox.klick2.gotoAndPlay(2); } on (release) { nr334 = this.itmonsale.whatitem; _root.shopscreen.select.itemdesc.gotoAndStop(nr334); } } movieClip 786 { frame 1 { stop(); } frame 1 { whatitem = 2; } frame 2 { whatitem = 3; } frame 3 { whatitem = 4; } } movieClip 787 { frame 1 { stop(); } } movieClip 788 { frame 1 { stop(); } frame 2 { } frame 2 { nroffree = 2; } frame 3 { nroffree = 1; } frame 4 { } frame 4 { _root.shopscreen.select.itmed2.itmonsale.gotoAndStop(2); _root.shopscreen.select.itmed3.itmonsale.gotoAndStop(3); } } movieClip 841 { frame 1 { stop(); } } movieClip 844 { } button 847 { on (press) { _root.soundbox.klick2.gotoAndPlay(2); } on (release) { _root.shopscreen.select.gotoAndStop(4); _root.shopsell = 0; _root.btnisbushed221 = 1; _root.btnisbushed2214 = 1; _root.eqip1on = 0; } } movieClip 848 { frame 1 { stop(); } } movieClip 851 { } button 854 { on (press) { _root.soundbox.klick2.gotoAndPlay(2); } on (release) { _root.shopscreen.select.gotoAndStop(2); _root.shopsell = 0; _root.btnisbushed221 = 1; _root.btnisbushed2214 = 1; _root.assmble51 = 1; _root.eqip1on = 0; _root.assemlchoicetxt = 'Free Craft'; _root.carfttype = 1; _root.asscraftpice = '0kr'; } } movieClip 855 { frame 1 { stop(); } } movieClip 858 { } button 861 { on (press) { _root.soundbox.klick2.gotoAndPlay(2); } on (release) { _root.shopscreen.select.gotoAndStop(3); _root.shopsell = 1; _root.btnisbushed221 = 1; _root.btnisbushed2214 = 1; _root.eqip1on = 0; } } movieClip 862 { frame 1 { stop(); } } movieClip 865 { } button 868 { on (press) { _root.soundbox.klick2.gotoAndPlay(2); } on (release) { _root.shopscreen.select.gotoAndStop(1); _root.shopsell = 0; _root.btnisbushed221 = 1; _root.btnisbushed2214 = 1; _root.eqip1on = 1; } } movieClip 869 { frame 1 { stop(); } } movieClip 876 { frame 1 { stop(); } } frame 5 { _root.grndfugg._x = _root.map.robo2._x + _root.map._x; _root.grndfugg._y = _root.map.robo2._y + _root.map._y; _root.grndfugg.mainfog._x = _root.map.robo1._x + _root.map._x - _root.grndfugg._x; _root.grndfugg.mainfog._y = _root.map.robo1._y + _root.map._y - _root.grndfugg._y; _root.grndfugg.mainfog._rotation = _root.map.robo1.rtop._rotation - 90; _; } frame 5 { } frame 5 { if (_root.oncerun223 == 1) { _root.oncerun223 = 0; _root.soundbox.fanfare1.gotoAndPlay(2); } } frame 5 { function selectr() { _root.selecttime += 1; if (_root.selecttime >= 4) { _root.selecttime = 0; if (Key.isDown(81) || _root.changerobofe44on == 1) { _root.changerobofe44on = 0; if (_root.robotselect == 2) { _root.robotselect = 1; this.map.robo2.isselected = 0; this.map.robo1.isselected = 1; _root.selectedMAIN = this.map.robo1; _root.cameraactive = _root.selectedMAIN; _root.robocelpiv.realrobopic.gotoAndStop(1); _root.robocelpiv.gotoAndPlay(2); } else { if (_root.robotselect == 1) { _root.robotselect = 2; this.map.robo2.isselected = 1; this.map.robo1.isselected = 0; _root.selectedMAIN = this.map.robo2; _root.cameraactive = _root.selectedMAIN; _root.robocelpiv.realrobopic.gotoAndStop(2); _root.robocelpiv.gotoAndPlay(2); } } if (_root.invviss == 1) { _root.invchoice2.gotoAndStop(_root.selectedMAIN.robonr); } } } _root.changerobotyes -= 1; if (_root.changerobotyes >= 1 && _root.fi == 1) { _root.changerobotyes = 0; _root.changeto.isselected = 1; _root.selectedMAIN.isselected = 0; _root.selectedMAIN = _root.changeto; _root.selectedMAIN.isselected = 1; _root.robotselect = _root.selectedMAIN.robonr; _root.robocelpiv.realrobopic.gotoAndStop(_root.selectedMAIN.robonr); _root.robocelpiv.gotoAndPlay(2); _root.cameraactive = _root.selectedMAIN; if (_root.invviss == 1) { _root.invchoice2.gotoAndStop(_root.selectedMAIN.robonr); } } } function scro() { if (Key.isDown(37)) { _root.xVel = _root.scrollSpeed; } else { if (Key.isDown(39)) { _root.xVel = -_root.scrollSpeed; } else { if (_root.xVel <= 0.01 && _root.xVel >= 1.0e-006) { _root.xVel = 0; } else { if (_root.xVel >= -0.01 && _root.xVel <= -1.0e-006) { _root.xVel = 0; } else { _root.xVel *= 0.9; } } } } if (Key.isDown(38)) { _root.yVel = _root.scrollSpeed; } else { if (Key.isDown(40)) { _root.yVel = -_root.scrollSpeed; } else { if (_root.yVel <= 0.01 && _root.yVel >= 1.0e-006) { _root.yVel = 0; } else { if (_root.yVel >= -0.01 && _root.yVel <= -1.0e-006) { _root.yVel = 0; } else { _root.yVel *= 0.9; } } } } _root.map._x += _root.xVel; _root.map._y += _root.yVel; if (_root.map._x >= _root.XmapLFT) { _root.map._x = _root.XmapLFT; } if (_root.map._x <= _root.XmapRGT) { _root.map._x = _root.XmapRGT; } if (_root.map._y >= _root.XmapUP) { _root.map._y = _root.XmapUP; } if (_root.map._y <= _root.XmapDWN) { _root.map._y = _root.XmapDWN; } } function ctrl() { if (Key.isDown(87) && (_root.selectedMAIN._y >= 0 && _root.selectedMAIN.ap >= _root.selectedMAIN.recmoveap)) { _root.selectedMAIN.ap -= _root.selectedMAIN.recmoveap; _root.selectedMAIN._y -= _root.movespd; _root.playdir1 = 1; _root.yVel += _root.movespd / _root.folowmulti; } else { if (Key.isDown(83) && (_root.selectedMAIN._y <= _root.XmapDWNmv && _root.selectedMAIN.ap >= _root.selectedMAIN.recmoveap)) { _root.selectedMAIN.ap -= _root.selectedMAIN.recmoveap; _root.selectedMAIN._y += _root.movespd; _root.playdir1 = 2; _root.yVel -= _root.movespd / _root.folowmulti; } else { _root.playdir1 = 0; } } if (Key.isDown(68) && (_root.selectedMAIN._x <= _root.XmapRGTmv && _root.selectedMAIN.ap >= _root.selectedMAIN.recmoveap)) { _root.selectedMAIN.ap -= _root.selectedMAIN.recmoveap; _root.selectedMAIN._x += _root.movespd; _root.playdir2 = 3; _root.xVel -= _root.movespd / _root.folowmulti; } else { if (Key.isDown(65) && (_root.selectedMAIN._x >= 0 && _root.selectedMAIN.ap >= _root.selectedMAIN.recmoveap)) { _root.selectedMAIN.ap -= _root.selectedMAIN.recmoveap; _root.selectedMAIN._x -= _root.movespd; _root.playdir2 = 4; _root.xVel += _root.movespd / _root.folowmulti; } else { _root.playerdir2 = 5; _root.playdir2 = 0; } } if (_root.playdir1 == 1) { if (_root.playdir2 == 0) { _root.selectedMAIN.bottom.gotoAndStop(1); } if (_root.playdir2 == 4) { _root.selectedMAIN.bottom.gotoAndStop(5); } if (_root.playdir2 == 3) { _root.selectedMAIN.bottom.gotoAndStop(6); } } else { if (_root.playdir1 == 2) { if (_root.playdir2 == 0) { _root.selectedMAIN.bottom.gotoAndStop(2); } if (_root.playdir2 == 4) { _root.selectedMAIN.bottom.gotoAndStop(7); } if (_root.playdir2 == 3) { _root.selectedMAIN.bottom.gotoAndStop(8); } } } if (_root.playdir2 == 3) { if (_root.playdir1 == 0) { _root.selectedMAIN.bottom.gotoAndStop(3); } } else { if (_root.playdir2 == 4) { if (_root.playdir1 == 0) { _root.selectedMAIN.bottom.gotoAndStop(4); } } } if (_root.playdir1 == 0 && _root.playdir2 == 0) { _root.selectedMAIN.bottom.bu.stop(); } else { if (_root.runu == 1) { _root.selectedMAIN.bottom.bu.play(); } else { _root.selectedMAIN.bottom.bu.stop(); } } } function guiupdate() { if (_root.selectedMAIN.maxexp <= _root.selectedMAIN.exp1) { _root.leftover = _root.selectedMAIN.maxexp - _root.selectedMAIN.exp1; _root.selectedMAIN.levela += 1; _root.selectedMAIN.exp1 = +_root.leftover; _root.levelaon15 = _root.selectedMAIN; _root.levelchange = 1; _root.soundbox.fanfare1.gotoAndPlay(2); _root.cameraactive = _root.selectedMAIN; } curentmetval32 = (_root.selectedMAIN.exp1 / _root.selectedMAIN.maxexp) * 100; curentmetval32 += 1; _root.robocelpiv.realrobopic.expmetr.bar.gotoAndStop(curentmetval32); } function changeatlowAP() { if (_root.selectedMAIN.ap <= 20 && _root.TOTALAP >= 41 && _root.haschanged348 == 0) { _root.haschanged348 = 1; _root.changerobofe44on = 1; } } function dialogu() { if (Key.isDown(84)) { _root.targetemote = _root.selectedMAIN; } } function rdmval() { _root.damageflux = Math.random() * 99; _root.damageflux /= 100; } function shopstart() { _root.nowshop = 1; _root.shopstart = 1; _root.shopscreen.gotoAndStop(2); } function turnover() { _root.TOTALAP = this.map.robo1.ap + this.map.robo2.ap; if (_root.TOTALAP <= 40 && _root.endturn == 0) { _root.endturn = 11; } if (_root.endturn == 11) { _root.AIturn = 1; _root.endturn = 12; } if (_root.endturn == 13) { _root.AIstart = 1; _root.endturn = 0; _root.endturn2.gotoAndStop(1); _root.turn += 1; this.map.robo1.ap = this.map.robo1.maxap; this.map.robo2.ap = this.map.robo2.maxap; } } function cccheck(wu22) { u1 = 2; while (u1 <= _root.enemynumber) { if (_root.map['robo' + wu22].ccc.hitTest(_root.map._x + _root.map['en' + u1]._x, _root.map._y + _root.map['en' + u1]._y, true)) { if (_root.map['en' + u1].IFF == 4) { if (wu22 == 2) { _root.curentcombatrobo = _root.map.robo2; } if (wu22 == 1) { _root.curentcombatrobo = _root.map.robo1; } _root.map['en' + u1].hitbox.gotoAndPlay(2); _root.curentenemyhp = _root.map['en' + u1].hp; _root.curentenemypic = _root.map['en' + u1].img; _root.combtani.curenten = u1; if (_root.combaton == 0) { _root.combaton = 1; _root.combtani.gotoAndPlay(2); } } } ++u1; } } function itemheck(wu33) { u22 = 1; while (u22 <= _root.itemnumber) { if (_root.map['robo' + wu33].ccc.hitTest(_root.map._x + _root.map['itm' + u22]._x, _root.map._y + _root.map['itm' + u22]._y, true)) { if (_root.map['itm' + u22].IFF == 0) { if (wu33 == 2) { _root.curentroboinv = _root.map.robo2; } if (wu33 == 1) { _root.curentroboinv = _root.map.robo1; } _root.map['itm' + u22].del = 1; _root.invchoice2['inv' + _root.selectedMAIN.robonr]['invslot' + _root.map['robo' + wu33].itemfree].gotoAndStop(_root.map['itm' + u22].picnr); _root.map['robo' + wu33].itemfree += 1; _root.soundbox.pickupsnd.gotoAndPlay(2); } } ++u22; } } function hmmz() { _root.enemynumber = 0; i = 1; while (i <= 99) { if (_root.map['en' + i] != undefined) { _root.enemynumber += 1; } ++i; } } function hmmz2() { _root.itemnumber = 0; i2 = 1; while (i2 <= 99) { if (_root.map['itm' + i2] != undefined) { _root.itemnumber += 1; } ++i2; } } function activeitm22() { if (_root.actionitem == 1) { } else { if (_root.actionitem.itemisact == 1 && _root.selectedMAIN.hp < _root.selectedMAIN.maxhp && _root.selectedMAIN.ap > 12) { itemisact = 1; _root.selectedMAIN.ap -= 12; _root.selectedMAIN.hp += 30; if (_root.selectedMAIN.hp > _root.selectedMAIN.maxhp) { _root.selectedMAIN.hp = _root.selectedMAIN.maxhp; } _root.dmgchangval11 = 30; _root.nomberon11 = _root.selectedMAIN; _root.healit330 = 1; _root.actionitem.gotoAndStop(1); } _root.actionitem = 1; } } _root.dirmousey = _root.map._y + _root.curenty; _root.dirmousex = _root.map._x + _root.curentx; _root.rdnm_on = 1; _root.rdmrange = Math.random() * 49; if (_root.rdmrange >= 20) { _root.rdnm_on = 1; } if (_root.rdmrange <= 20) { _root.rdnm_on = 2; } _root.randomof100 = Math.random() * 99; if (_root.rdnm_on == 1) { _root.stuff2 = Math.random() * 41 + 9; _root.rndm = _root.stuff2 - 29; } if (_root.rdnm_on == 2) { _root.stuff2 = Math.random() * 20 + 25; _root.rndm = _root.stuff2 - 29; } if (_root.putime <= 20) { _root.putime += 1; } if (_root.putime >= 3) { if (Key.isDown(80)) { if (_root.pu == 0) { _root.pu = 1; } else { if (_root.pu == 1) { _root.pu = 0; } } _root.putime = 0; } if (_root.pu == 1) { _root.pausetab.gotoAndStop(2); this.mySlider.gotoAndStop(2); this.mySlider2.gotoAndStop(2); } if (_root.pu == 0) { _root.pausetab.gotoAndStop(1); this.mySlider.gotoAndStop(1); this.mySlider2.gotoAndStop(1); } } if (_root.runu != 0) { _root.curentrun55 = _root.runu; } if (_root.pu == 1) { _root.runu = 0; } else { if (_root.dialogueDONE == 0) { _root.runu = 0; } else { if (_root.ccDONE == 0) { _root.runu = 0; } else { _root.curenmissile.play(); _root.runu = _root.curentrun55; } } } if (_root.runu == 1) { activeitm22(); rdmval(); guiupdate(); turnover(); selectr(); dialogu(); aftershaku(); aftershaku2(); changeatlowAP(); scro(); ctrl(); cccheck(1); cccheck(2); if (_root.selectedMAIN.robonr == 1) { _root.buglon672 = 1; } else { _root.buglon672 = 2; } itemheck(_root.buglon672); shaecheck(); _root.dontshootnow -= 1; _root.isovercnt -= 1; _root.isovercntITEM -= 1; if (_root.numbc == 0) { _root.numbc = 1; hmmz(); hmmz2(); } } else { _root.map.robo1.bottom.bu.stop(); _root.map.robo2.bottom.bu.stop(); _root.curenmissile.stop(); } } frame 5 { if (_root.levelchange == 1) { _root.levelchange = 0; trace('level value added'); if (_root.atlvrobo1 <= _root.map.robo1.levela) { _root.atlvrobo1 += 1; _root.levelchange = 1; _root.map.robo1.maxexp += _root.lv1maxexp; _root.map.robo1.ccarmor += _root.lv1ccarmor; _root.map.robo1.rdarmor += _root.lv1rdarmor; _root.map.robo1.maxhp += _root.lv1maxhp; _root.map.robo1.maxap += _root.lv1maxap; _root.map.robo1.acy += _root.lv1acy; _root.map.robo1.ccp += _root.lv1ccp; _root.map.robo1.ccacy += _root.lv1ccacy; _root.map.robo1.ccagi += _root.lv1ccagi; _root.map.robo1.grccarmor += _root.lv1ccarmor; _root.map.robo1.grrdarmor += _root.lv1rdarmor; _root.map.robo1.grmaxhp += _root.lv1maxhp; _root.map.robo1.grmaxap += _root.lv1maxap; _root.map.robo1.gracy += _root.lv1acy; _root.map.robo1.grccp += _root.lv1ccp; _root.map.robo1.grccacy += _root.lv1ccacy; _root.map.robo1.grccagi += _root.lv1ccagi; trace('level value added at lv robo 1' + _root.atlvrobo1); } if (_root.atlvrobo2 <= _root.map.robo2.levela) { _root.atlvrobo2 += 1; _root.levelchange = 1; _root.map.robo2.maxexp += _root.lv1maxexp; _root.map.robo2.ccarmor += _root.lv1ccarmor; _root.map.robo2.rdarmor += _root.lv1rdarmor; _root.map.robo2.maxhp += _root.lv1maxhp; _root.map.robo2.maxap += _root.lv1maxap; _root.map.robo2.acy += _root.lv1acy; _root.map.robo2.ccp += _root.lv1ccp; _root.map.robo2.ccacy += _root.lv1ccacy; _root.map.robo2.ccagi += _root.lv1ccagi; _root.map.robo2.grccarmor += _root.lv1ccarmor; _root.map.robo2.grrdarmor += _root.lv1rdarmor; _root.map.robo2.grmaxhp += _root.lv1maxhp; _root.map.robo2.grmaxap += _root.lv1maxap; _root.map.robo2.gracy += _root.lv1acy; _root.map.robo2.grccp += _root.lv1ccp; _root.map.robo2.grccacy += _root.lv1ccacy; _root.map.robo2.grccagi += _root.lv1ccagi; trace('level value added at lv robo 2' + _root.atlvrobo2); } } } frame 5 { function closestcheck() { closestDist = 10000; u2 = 0; while (u2 <= 2) { dx = _root.map['robo' + u2]._x - _root.CURENENEMY._x; dy = _root.map['robo' + u2]._y - _root.CURENENEMY._y; _root.dist22 = Math.sqrt(dx * dx + dy * dy); if (dist22 < closestDist) { closestDist = _root.dist22; closestTarget = _root.map['robo' + u2]; } ++u2; } } function enemyrailblast() { _root.CURENENEMY.line223.gotoAndPlay(2); } function enemyfirerail() { if (_root.cooldown >= _root.firetime) { if (_root.firesndtime >= _root.firesndtimeMAX) { _root.shotsnd.gotoAndPlay(2); _root.firesndtime = 0; } _root.firingnow = 11; _root.CURENENEMY.ap -= 15; _root.timem.gotoAndStop(_root.AP / 100); _root.cooldown = 0; _root.display.gotoAndStop(2); var v2 = 't_' + _root.numb; _root.firedep += 1; _root.numb += 1; if (_root.firedep >= 450) { _root.firedep = 300; } _root.map.attachMovie('rail22', 't_' + _root.numb, _root.firedep, {'_x': _root.CURENENEMY._x, '_y': _root.CURENENEMY._y, '_rotation': _root.CURENENEMY._rotation + 180, 'yourname': v2, 'rot2': _root.CURENENEMY.rtop._rotation, 'dmgowner': _root.CURENENEMY}); } } function enemyfiremgun() { if (_root.cooldown >= _root.firetime) { if (_root.firesndtime >= _root.firesndtimeMAX) { _root.shotsnd.gotoAndPlay(2); _root.firesndtime = 0; } _root.firingnow = 11; _root.CURENENEMY.ap -= 15; _root.timem.gotoAndStop(_root.AP / 100); _root.cooldown = 0; _root.display.gotoAndStop(2); var v2 = 't_' + _root.numb; _root.firedep += 1; _root.numb += 1; if (_root.firedep >= 450) { _root.firedep = 300; } _root.map.attachMovie('SubMgun', 't_' + _root.numb, _root.firedep, {'_x': _root.CURENENEMY._x, '_y': _root.CURENENEMY._y, '_rotation': _root.CURENENEMY._rotation + _root.rndm + 180, 'yourname': v2, 'rot2': _root.CURENENEMY.rtop._rotation, 'dmgowner': _root.CURENENEMY}); } } function firemissile() { if (_root.cooldown >= _root.firetime && ap >= wpnapneed) { if (_root.firesndtime >= _root.firesndtimeMAX) { _root.grnd44.gotoAndPlay(2); _root.grnd55.gotoAndPlay(2); _root.firesndtime = 0; } _root.firingnow = 11; wpnapneedAI = 300; _root.CURENENEMY.ap -= wpnapneedAI; _root.timem.gotoAndStop(_root.AP / 100); _root.cooldown = 0; _root.display.gotoAndStop(2); var v3 = 't_' + _root.numb; _root.firedep += 1; _root.numb += 1; if (_root.firedep >= 450) { _root.firedep = 300; } grndpowAI = 30; _root.grndscal44 = grndpowAI * 2.5; this.rtop.robotopset.flash2.gotoAndPlay(2); timekl2 = 14; _root.map.attachMovie('GrndDot', 't_' + _root.numb, _root.firedep, {'_x': _root.CURENENEMY._x, '_xscale': grndpowAI * 2.5, '_y': _root.CURENENEMY._y, '_rotation': _root.CURENENEMY._rotation + _root.rndm + 180, 'yourname': v3, 'rot2': this.rtop._rotation, 'dmgowner': _root.CURENENEMY}); } } function enemyaim() { var v3 = closestTarget._x - _root.CURENENEMY._x; var v2 = closestTarget._y - _root.CURENENEMY._y; _root.CURENENEMY._rotation = Math.atan2(v2, v3) * 57.29577951308232; } function enemyaim2() { var v3 = closestTarget._x - _root.CURENENEMY._x; var v2 = closestTarget._y - _root.CURENENEMY._y; _root.CURENENEMY._rotation = Math.atan2(v2, v3) * 57.29577951308232; _root.CURENENEMY._rotation += _root.rotationaten; } function enemywalk() { speed_var = 2; angle = _root.CURENENEMY._rotation; theta = angle * Math.PI / 180; _root.CURENENEMY._x += Math.cos(theta) * speed_var; _root.CURENENEMY._y += Math.sin(theta) * speed_var; _root.CURENENEMY.ap -= _root.CURENENEMY.recmoveap; } function enemywalk2() { speed_var = 2; angle = _root.CURENENEMY._rotation; theta = angle * Math.PI / 180; _root.CURENENEMY._x += Math.cos(theta) * speed_var; _root.CURENENEMY._y += Math.sin(theta) * speed_var; _root.CURENENEMY.ap -= _root.CURENENEMY.recmoveap; } function enemystagrotation() { if (_root.aistartval == 1) { _root.aistartval = 0; _root.rdmenemywalk = Math.random() * 9; _root.rdmenemywalk -= 5; _root.rotationaten = _root.rdmenemywalk; } } function enemywalkback() { speed_var = 2; angle = _root.CURENENEMY._rotation + 180; theta = angle * Math.PI / 180; if (_root.CURENENEMY._x <= _root.XmapRGTmv && _root.CURENENEMY._x >= 0) { _root.CURENENEMY._x += Math.cos(theta) * speed_var; } if (_root.CURENENEMY._y <= _root.XmapDWNmv && _root.CURENENEMY._y >= 0) { _root.CURENENEMY._y += Math.sin(theta) * speed_var; } _root.CURENENEMY.ap -= _root.CURENENEMY.recmoveap; } function AIturnclosecmbt() { AIfiretimerocket += 1; closestcheck(); if (closestDist <= 800) { if (_root.CURENENEMY.ap >= 2) { enemywalk(); } } else { _root.CURENENEMY.ap = 0; } enemyaim(); } function AIdisplayupdate(at55) { _root.endturndispl.animate.gotoAndStop(at55); } function AIturn() { AIfiretimerocket += 1; closestcheck(); if (closestDist <= 270) { enemywalkback(); } else { if (closestDist <= 280) { if (AIfiretimerocket >= 20) { AIfiretimerocket = 0; firemissile(); } } } if (closestDist >= 280) { if (_root.CURENENEMY.ap >= 2) { enemystagrotation(); enemywalk2(); } } enemyaim2(); } function AIturnsmg() { AIfiretimerocket += 1; closestcheck(); if (closestDist <= 270) { enemywalkback(); } else { if (closestDist <= 280) { if (AIfiretimerocket >= 2) { AIfiretimerocket = 0; enemyfiremgun(); } } } if (closestDist >= 280) { if (_root.CURENENEMY.ap >= 2) { enemywalk(); } } enemyaim(); } function AIturnboss() { if (f113firstrunboss == 1) { f113firstrunboss = 0; } AIfiretimerocket += 1; closestcheck(); if (closestDist <= 1270) { } else { if (closestDist <= 20) { if (AIfiretimerocket >= 2) { AIfiretimerocket = 0; } } } if (_root.isfire44boss == 0) { enemyaim(); } if (closestDist >= 800) { _root.CURENENEMY.ap = 1; } else { if (_root.enemynext552 == 1) { _root.enemynext552 = 0; enemyrailblast(); blaston331 = 1; trace(' !!fire range!!' + closestDist); _root.isfire44boss = 1; _root.smugtime = 0; if (closestDist <= 600) { _root.smugness225 = 1; trace('claculate'); trace(closestTarget); testathp = closestTarget.hp; _root.smugbastard221 = closestTarget; trace(_root.smugbastard221); } else { _root.smugness225 = 0; } if (_root.railbossfired == 0) { _root.railbossfired = 1; } } } } _root.smugtime += 1; if (_root.smugness225 == 1 && _root.smugtime >= 150 && testathp == _root.smugbastard221.hp) { _root.smugness225 = 0; _root.targetemote = _root.smugbastard221; } if (blaston331 == 1) { blurg99721 += 1; if (blurg99721 >= 100) { blaston331 = 0; blurg99721 = 0; enemyfirerail(); _root.CURENENEMY.ap = 1; } } if (_root.endturn == 12 && _root.pu == 0) { if (_root.firstenemystart == 1) { _root.firstenemystart = 0; _root.endturndispl.gotoAndPlay(2); } _root.CURENENEMY = _root.map['en' + c]; if (_root.CURENENEMY.AItype == 1) { AIturn(); } else { if (_root.CURENENEMY.AItype == 2) { AIturnclosecmbt(); } else { if (_root.CURENENEMY.AItype == 3) { AIturnsmg(); } else { if (_root.CURENENEMY.AItype == 4) { AIturnboss(); } } } } allenemys = _root.enemynumber - 1; oneenemyval77 = 100 / allenemys; curenpplaydispenturn = oneenemyval77 * (c - 1) - oneenemyval77; apspentper = _root.CURENENEMY.ap / _root.CURENENEMY.maxap; rest778 = 1 - apspentper * 1; thedipvalue33 = curenpplaydispenturn + rest778 * oneenemyval77; _root.endturndispl.animate.redmetter._xscale = thedipvalue33 * 0.8; if (_root.CURENENEMY.ap <= 20) { _root.isfire44boss = 0; _root.enemynext552 = 1; _root.aistartval = 1; _root.CURENENEMY.ap = _root.CURENENEMY.maxap; c += 1; if (c >= _root.enemynumber + 1) { AIladone = 1; } if (AIladone == 1) { _root.AIturn = 0; AIladone = 0; c = 2; } } } if (_root.AIturn == 0) { _root.haschanged348 = 0; _root.endturndispl.gotoAndStop(1); _root.firstenemystart = 1; _root.endturn = 13; _root.AIturn = 0; } } frame 5 { _root.timepush2331 += 1; if (Key.isDown(67)) { } if (_root.levelaon15 == 0) { } else { _root.attug33x = _root.levelaon15._x; _root.attug33y = _root.levelaon15._y; _root.map.levelup3._x = _root.attug33x; _root.map.levelup3._y = _root.attug33y - 20; _root.map.levelup3.gotoAndPlay(2); _root.levelaon15 = 0; } if (_root.nomberon11 == 0) { } else { trace('hit on' + _root.nomberon11.IDname); onntmp112 = Math.round(_root.dmgchangval11); _root.dmgchangval11 = onntmp112; _root.att44x = _root.nomberon11._x; _root.att44y = _root.nomberon11._y; _root.map.numpindc22.gotoAndPlay(2); _root.map.numpindc22._x = _root.att44x; _root.map.numpindc22._y = _root.att44y; _root.nomberon11 = 0; } if (_root.cameraactive == 0) { } else { _root.grndmarkX = _root.cameraactive._x; _root.grndmarkY = _root.cameraactive._y; _root.over55X = _root.map._x - 300 + _root.cameraactive._x; _root.over55Y = _root.map._y - 290 + _root.cameraactive._y; _root.yVel = -_root.over55Y / 10; _root.xVel = -_root.over55X / 10; _root.cameraactive = 0; } } frame 5 { function mapchange12() { _root.afirst220 = 2; _root.map.en1.swapDepths(0); _root.map.en1.removeMovieClip(); _root.map.en2.swapDepths(0); _root.map.en2.removeMovieClip(); _root.map.en3.swapDepths(0); _root.map.en3.removeMovieClip(); _root.map.en4.swapDepths(0); _root.map.en4.removeMovieClip(); _root.map.en5.swapDepths(0); _root.map.en5.removeMovieClip(); _root.map.en6.swapDepths(0); _root.map.en6.removeMovieClip(); _root.map.en7.swapDepths(0); _root.map.en7.removeMovieClip(); _root.map.gotoAndStop(2); _root.grndfugg.mainfog.alphfogg.gotoAndStop(2); _root.map.robo1._x = _root.map.robomark1._x; _root.map.robo1._y = _root.map.robomark1._y; _root.map.robo2._x = _root.map.robomark2._x; _root.map.robo2._y = _root.map.robomark2._y; _root.map.camstar.gotoAndPlay(2); _root.map.robo1.hp = _root.map.robo1.maxhp; _root.map.robo2.hp = _root.map.robo2.maxhp; } function rundialogue(msg, t7, wh) { _root.dialogueDONE = 0; _root.thytext = msg; _root.diatime = t7; _root.dialoguechar = wh; if (_root.dialoUPP == 1) { _root.dialoUPP = 1; _root.dialogue1.gotoAndPlay(14); } else { _root.dialoUPP = 1; _root.dialogue1.gotoAndPlay(2); } } function textevent(text224) { if (text224 == 0) { } else { _root.row4 = _root.row3; _root.row3 = _root.row2; _root.row2 = _root.row1; _root.row1 = text224; _root.duntext = 0; } _root.eventtext2 = _root.row1 + '\n' + _root.row2 + '\n' + _root.row3 + '\n' + row4; } function hmmz222() { _root.enemynumber2 = 0; i = 1; while (i <= 99) { if (_root.map['en' + i] != undefined) { _root.enemynumber2 += 1; } ++i; } } if (_root.map.robo1.hp <= 1 && _root.deadNOW == 0) { _root.deadNOW = 5; } if (_root.map.robo2.hp <= 1 && _root.deadNOW == 0) { _root.deadNOW = 5; } if (_root.deadNOW == 5) { rundialogue('BLAST!', 300); _root.deadNOW = 2; } if (_root.dialogueDONE == 1 && _root.deadNOW == 2) { _root.pu = 1; _root.comintro.gotoAndPlay('runcomic114'); trace('comic run gameover done'); _root.deadNOW = 73257; z; } if (_root.deadNOW == 7771) { this.gotoAndPlay('reset771'); } if (_root.duntext == 0) { } else { textevent(_root.duntext); } hmmz222(); if (_root.turn >= 3 && _root.rescom442 == 1 && _root.helpdown881 == 0) { _root.rescom442 = 0; _root.help66.gotoAndPlay(2); } if (_root.enemynumber2 <= 1 && _root.afirst220 == 1) { _root.afirst220 = 0; rundialogue(' good! now when that is taken care of \n we can take a look at the damage.', 300); _root.finlv1at882 = 1; } if (_root.finlv1at882 == 1 && _root.dialogueDONE == 1) { _root.finlv1at882 = 0; _root.pu = 1; _root.comintro.gotoAndPlay('runcomic643'); } if (_root.bossfinish == 1) { timeuz992 += 1; } if (_root.bossfinish == 1 && timeuz992 >= 30) { trace('the win!'); _root.bossfinish = 2; _root.thewin2230 = 1; } if (_root.chanefett301 == 3 && _root.runee294 == 4) { mapchange12(); _root.runee294 = 2; _root.chanefett301 = 1; } if (_root.shopon == 7) { _root.shopon = 8; shopstart(); } if (_root.skiplv223 == 1) { _root.skiplv223 = 0; mapchange12(); } if (_root.thewin2230 == 1) { _root.thewin2230 = 0; _root.pu = 1; _root.comintro.gotoAndPlay('endcom223'); } if (_root.railbossfired == 1) { _root.timed9927 += 1; if (_root.timed9927 >= 190) { rundialogue(' Whoow! That thing will hurt! \n Make sure to NOT rush so that you can dodge! \n it looks solid! We will probobly have to \n take it down in close combat!', 300); _root.railbossfired = 3; } } if (_root.targetemote == 0) { } else { _root.map.emote._x = _root.targetemote._x; _root.map.emote._y = _root.targetemote._y; _root.map.emote.gotoAndPlay(2); _root.targetemote = 0; } } frame 5 { _root.volumeu = (_root.sndmeter.boxsnd._x / _root.sndmeter._height) * 100; _root.ARMORSOUNDtime += 1; _root.firesndtime += 1; _root.ht1.setVolume(-60); _root.int1.setVolume(_root.musicvol); _root.int2.setVolume(_root.musicvol - 7); _root.gunsnd1.setVolume(_root.efectvolume); _root.gunsnd2.setVolume(_root.efectvolume - 7); _root.dsv2 = _root.int2.getVolume(); _root.dsv1 = _root.int1.getVolume(); _root.dsv3 = _root.gunsnd1.getVolume(); _root.soundtimewait += 1; if (_root.int2.getVolume() <= 0) { _root.int2.setVolume(0); } if (_root.int1.getVolume() <= 0) { _root.int1.setVolume(0); } if (_root.sounoff == 1) { _root.int1.setVolume(0); _root.int2.setVolume(0); } if (_root.sndst == 0 && _root.soundtimewait >= 800) { _root.sndst = 1; _root.int1.start(0, 1); } if (_root.sndst == 2 && _root.soundtimewait >= 800) { _root.sndst = 3; _root.int2.start(0, 1); } int2.onSoundComplete = function () { _root.sndst = 0; _root.soundtimewait = 0; }; int1.onSoundComplete = function () { _root.sndst = 2; _root.soundtimewait = 0; }; _root.dsv2 = _root.int2.getVolume(); _root.dsv1 = _root.int1.getVolume(); _root.dsv3 = _root.gunsnd1.getVolume(); } frame 5 { _root.mySlider.dragger.onPress = function () { _root.mySlider.dragger.gotoAndStop(2); _root.mySlider.dragger.startDrag(true, 0, _root.mySlider.line._height, 0, 0); _root.isdraged = 1; }; if (_root.isdraged == 1 && fi == 2) { _root.mySlider.dragger.stopDrag(); _root.isdraged = 0; } _root.mySlider2.dragger.onPress = function () { _root.mySlider2.dragger.gotoAndStop(2); _root.mySlider2.dragger.startDrag(true, 0, _root.mySlider2.line._height, 0, 0); _root.isdraged2 = 1; }; if (_root.isdraged2 == 1 && fi == 2) { _root.mySlider2.dragger.stopDrag(); _root.isdraged2 = 0; } _root.volumeu2 = Math.round(_root.mySlider2.dragger._y * 100 / _root.mySlider2.line._height); if (_root.pu == 1 && _root.soundisstart == 0) { _root.soundisstart = 1; _root.mySlider2.dragger._y = _root.lasty2; _root.mySlider.dragger._y = _root.lasty; } if (_root.pu == 1 && _root.soundisstart == 1) { _root.lasty2 = _root.mySlider2.dragger._y; _root.lasty = _root.mySlider.dragger._y; } if (_root.pu == 0 && _root.soundisstart == 1) { _root.soundisstart = 0; } if (_root.pu == 1) { _root.efectvolume = _root.volumeu2; } _root.volumeu = Math.round(_root.mySlider.dragger._y * 100 / _root.mySlider.line._height); if (_root.pu == 1) { _root.musicvol = _root.volumeu; } } frame 5 { function folowbox() { if (_root.curentlif11 == 1) { var v2 = {'x': 0, 'y': 0}; _root.curentitemlift.localToGlobal(v2); _root.dragbox._x = v2.x; _root.dragbox._y = v2.y; _; } if (_root.curentlif11 == 0) { _root.dragbox._x = 2000; _root.dragbox._y = 2000; } } function freeextracheck() { extchxt143 = 1; while (extchxt143 <= 30) { freeextra[extchxt143] = 444; ++extchxt143; } extitemfree331 = 0; extraat11 = 0; checkeditemgood1 = 0; cuentfree32 = 0; scheck11 = 1; curent557 = 0; curent662 = 0; curent777 = 0; curent888 = 0; curent999 = 0; extchxt142 = 1; while (extchxt142 <= 50) { cuentfree32 += 1; if (_root.shopscreen.select['free' + cuentfree32]._currentframe == 1 && scheck11 == 1) { curentitmfree412 = _root.shopscreen.select['free' + cuentfree32]; checkeditemgood1 = 1; extitemfree331 += 1; } if (cuentfree32 >= 5 && cuentfree32 <= 15) { scheck11 = 2; curent557 += 1; } if (_root.shopscreen.shopinv1['invslot' + curent557]._currentframe == 1 && scheck11 == 2) { curentitmfree412 = _root.shopscreen.shopinv1['invslot' + curent557]; checkeditemgood1 = 1; extitemfree331 += 1; } if (cuentfree32 >= 16 && cuentfree32 <= 26) { scheck11 = 3; curent777 += 1; } if (_root.shopscreen.shopinv2['invslot' + curent777]._currentframe == 1 && scheck11 == 3) { curentitmfree412 = _root.shopscreen.shopinv2['invslot' + curent777]; checkeditemgood1 = 1; extitemfree331 += 1; } if (cuentfree32 >= 27 && cuentfree32 <= 37) { scheck11 = 4; curent888 += 1; } if (scheck11 == 4 && _root.shopscreen.shopdispl1['eq' + curent888]._currentframe == 1) { _root.shopscreen.shopdispl1['eq' + curent888].eqbahuns77 = 1; _root.shopscreen.shopdispl1['eq' + curent888].eqipit = 1; _root.shopscreen.shopdispl1['eq' + curent888].reqtupe = curent888; curentitmfree412 = _root.shopscreen.shopdispl1['eq' + curent888]; checkeditemgood1 = 1; extitemfree331 += 1; } if (cuentfree32 >= 38) { scheck11 = 5; curent999 += 1; } if (scheck11 == 5 && _root.shopscreen.shopdispl2['eq' + curent999]._currentframe == 1) { _root.shopscreen.shopdispl2['eq' + curent999].eqbahuns77 = 2; _root.shopscreen.shopdispl2['eq' + curent999].eqipit = 1; _root.shopscreen.shopdispl2['eq' + curent999].reqtupe = curent999; curentitmfree412 = _root.shopscreen.shopdispl2['eq' + curent999]; checkeditemgood1 = 1; extitemfree331 += 1; } if (checkeditemgood1 == 1) { checkeditemgood1 = 0; extraat11 += 1; freeextra[extraat11] = curentitmfree412; } ++extchxt142; } t551 = 1; while (t551 <= 30) { ++t551; } } function freeitemcheckwholeinv() { curentlt221 = 'a'; curent441 = 1; runonceaonfett537 = 1; blurg55 = 1; while (blurg55 <= 18) { if (curent441 == 10 && runonceaonfett537 == 1) { runonceaonfett537 = 0; curent441 = 1; curentlt221 = 'b'; } if (_root.shopscreen.shopinv1['invslot' + curent441]._currentframe == 1 && runonceaonfett537 == 1) { freeitemaray[blurg55] = _root.shopscreen.shopinv1['invslot' + curent441]; } else { if (_root.shopscreen.shopinv2['invslot' + curent441]._currentframe == 1 && runonceaonfett537 == 0) { freeitemaray[blurg55] = _root.shopscreen.shopinv2['invslot' + curent441]; } else { freeitemaray[blurg55] = 55; } } curent441 += 1; ++blurg55; } } function placeitemsshopfree() { first771 = 1; declared = 0; blurg66 = 1; while (blurg66 <= 18) { if (freeitemaray[blurg66] == 55) { } else { if (first771 == 1) { declared = 3; firstfounffreeitm11 = freeitemaray[blurg66]; first771 = 0; } } ++blurg66; } if (declared == 0) { aitemfree22 = 0; } else { aitemfree22 = 1; } } function eqaddact() { eqchange11maxap = 0; eqchange11maxhp = 0; eqchange11ccagi = 0; eqchange11ccacy = 0; eqchange11ccp = 0; eqchange11rangewpndamage = 0; eqchange11ccarmor = 0; eqchange11rdarmor = 0; eqchange11acy = 0; eqchange22maxap = 0; eqchange22maxhp = 0; eqchange22ccagi = 0; eqchange22ccacy = 0; eqchange22ccp = 0; eqchange22rangewpndamage = 0; eqchange22ccarmor = 0; eqchange22rdarmor = 0; eqchange22acy = 0; sku8610 = 1; while (sku8610 <= 12) { if (_root.shopscreen.shopdispl1['eq' + sku8610].eqipit == 1) { eqchange11maxap += _root.shopscreen.shopdispl1['eq' + sku8610].maxap; eqchange11maxhp += _root.shopscreen.shopdispl1['eq' + sku8610].maxhp; eqchange11ccagi += _root.shopscreen.shopdispl1['eq' + sku8610].ccagi; eqchange11ccacy += _root.shopscreen.shopdispl1['eq' + sku8610].ccacy; eqchange11ccp += _root.shopscreen.shopdispl1['eq' + sku8610].ccp; eqchange11rangewpndamage += _root.shopscreen.shopdispl1['eq' + sku8610].rangewpndamage; eqchange11acy += _root.shopscreen.shopdispl1['eq' + sku8610].acy; eqchange11ccarmor += _root.shopscreen.shopdispl1['eq' + sku8610].ccarmor; eqchange11rdarmor += _root.shopscreen.shopdispl1['eq' + sku8610].rdarmor; } if (_root.shopscreen.shopdispl2['eq' + sku8610].eqipit == 1) { eqchange22maxap += _root.shopscreen.shopdispl2['eq' + sku8610].maxap; eqchange22maxhp += _root.shopscreen.shopdispl2['eq' + sku8610].maxhp; eqchange22ccagi += _root.shopscreen.shopdispl2['eq' + sku8610].ccagi; eqchange22ccacy += _root.shopscreen.shopdispl2['eq' + sku8610].ccacy; eqchange22ccp += _root.shopscreen.shopdispl2['eq' + sku8610].ccp; eqchange22rangewpndamage = eqchange11rangewpndamage + _root.shopscreen.shopdispl2['eq' + sku8610].rangewpndamage; eqchange22acy += _root.shopscreen.shopdispl2['eq' + sku8610].acy; eqchange22ccarmor += _root.shopscreen.shopdispl2['eq' + sku8610].ccarmor; eqchange22rdarmor += _root.shopscreen.shopdispl2['eq' + sku8610].rdarmor; } ++sku8610; } _root.map.robo1.maxap = _root.map.robo1.grmaxap + eqchange11maxap; _root.map.robo1.maxhp = _root.map.robo1.grmaxhp + eqchange11maxhp; _root.map.robo1.ccagi = _root.map.robo1.grccagi + eqchange11ccagi; _root.map.robo1.ccacy = _root.map.robo1.grccacy + eqchange11ccacy; _root.map.robo1.ccp = _root.map.robo1.grccp + eqchange11ccp; _root.map.robo1.rangewpndamage = _root.map.robo1.grrangewpndamage + eqchange11rangewpndamage; _root.map.robo1.acy = _root.map.robo1.gracy + eqchange11acy; _root.map.robo1.ccarmor = _root.map.robo1.grccarmor + eqchange11ccarmor; _root.map.robo1.rdarmor = _root.map.robo1.grrdarmor + eqchange11rdarmor; _root.map.robo2.maxap = _root.map.robo2.grmaxap + eqchange22maxap; _root.map.robo2.maxhp = _root.map.robo2.grmaxhp + eqchange22maxhp; _root.map.robo2.ccagi = _root.map.robo2.grccagi + eqchange22ccagi; _root.map.robo2.ccacy = _root.map.robo2.grccacy + eqchange22ccacy; _root.map.robo2.ccp = _root.map.robo1.grccp + eqchange22ccp; _root.map.robo2.rangewpndamage = _root.map.robo2.grrangewpndamage + eqchange22rangewpndamage; _root.map.robo2.acy = _root.map.robo2.gracy + eqchange22acy; _root.map.robo2.ccarmor = _root.map.robo2.grccarmor + eqchange22ccarmor; _root.map.robo2.rdarmor = _root.map.robo2.grrdarmor + eqchange22rdarmor; } _root.caschdispl = _root.cash + 'kr'; _root.dragbox.dropboc = 1; if (_root.nowshop == 1) { eqaddact(); if (_root.eqip1on == 1) { _root.shopscreen.shopdispl1.gotoAndStop(4); _root.shopscreen.shopdispl2.gotoAndStop(5); if (_root.haveshoped13 == 0) { _root.haveshoped13 = 1; qecnt11 = 1; while (qecnt11 <= 20) { _root.shopscreen.shopdispl1['eq' + qecnt11].gotoAndStop(eqarr11[qecnt11]); _root.shopscreen.shopdispl2['eq' + qecnt11].gotoAndStop(eqarr22[qecnt11]); ++qecnt11; } } _root.haveshoped13 = 1; } else { if (_root.haveshoped13 == 1) { _root.haveshoped13 = 0; qecnt66 = 1; while (qecnt66 <= 20) { eqarr11[qecnt66] = _root.shopscreen.shopdispl1['eq' + qecnt66]._currentframe; eqarr22[qecnt66] = _root.shopscreen.shopdispl2['eq' + qecnt66]._currentframe; ++qecnt66; } _root.leskum665 = _root.shopscreen.shopdispl1.eq1._currentframe; trace(_root.leskum665); _root.robo1eq1 = _root.shopscreen.shopdispl1.eq1._currentframe; _root.robo1eq2 = _root.shopscreen.shopdispl1.eq2._currentframe; _root.robo1eq3 = _root.shopscreen.shopdispl1.eq3._currentframe; _root.robo1eq4 = _root.shopscreen.shopdispl1.eq4._currentframe; _root.robo1eq5 = _root.shopscreen.shopdispl1.eq5._currentframe; _root.robo1eq6 = _root.shopscreen.shopdispl1.eq6._currentframe; _root.robo1eq7 = _root.shopscreen.shopdispl1.eq7._currentframe; _root.robo1eq8 = _root.shopscreen.shopdispl1.eq8._currentframe; _root.robo1eq9 = _root.shopscreen.shopdispl1.eq9._currentframe; _root.robo1eq10 = _root.shopscreen.shopdispl1.eq10._currentframe; _root.robo2eq1 = _root.shopscreen.shopdispl2.eq1._currentframe; _root.robo2eq2 = _root.shopscreen.shopdispl2.eq2._currentframe; _root.robo2eq3 = _root.shopscreen.shopdispl2.eq3._currentframe; _root.robo2eq4 = _root.shopscreen.shopdispl2.eq4._currentframe; _root.robo2eq5 = _root.shopscreen.shopdispl2.eq5._currentframe; _root.robo2eq6 = _root.shopscreen.shopdispl2.eq6._currentframe; _root.robo2eq7 = _root.shopscreen.shopdispl2.eq7._currentframe; _root.robo2eq8 = _root.shopscreen.shopdispl2.eq8._currentframe; _root.robo2eq9 = _root.shopscreen.shopdispl2.eq9._currentframe; _root.robo2eq10 = _root.shopscreen.shopdispl2.eq10._currentframe; } _root.shopscreen.shopdispl1.gotoAndStop(1); _root.shopscreen.shopdispl2.gotoAndStop(2); } if (_root.carfttype == 2) { if (_root.shopscreen.select.free1._currentframe == 2 && _root.shopscreen.select.free2._currentframe == 3 && _root.cash >= _root.asscraftpiceval) { _root.shopscreen.select.assemblybtn.gotoAndStop(1); } else { _root.shopscreen.select.assemblybtn.gotoAndStop(2); } } if (_root.carfttype == 1) { _root.shopscreen.select.assemblybtn.gotoAndStop(1); } if (_root.cash <= _root.curentselectsellprice - 1) { _root.shopscreen.select.itemdesc.selbtn1.gotoAndStop(2); } else { _root.shopscreen.select.itemdesc.selbtn1.gotoAndStop(1); } if (_root.assemblenow == 1 && _root.carfttype == 1) { _root.assemblenow = 0; assitem11 = _root.shopscreen.select.free1._currentframe; assitem22 = _root.shopscreen.select.free2._currentframe; if (assitem11 == 3 && assitem22 == 3) { _root.shopscreen.select.free1.gotoAndStop(1); _root.shopscreen.select.free2.gotoAndStop(1); _root.shopscreen.select.tobemade.gotoAndStop(4); } } if (_root.carfttype == 2) { assitem11 = _root.shopscreen.select.free1._currentframe; assitem22 = _root.shopscreen.select.free2._currentframe; if (assitem11 == 2 && assitem22 == 3 && _root.assemblenow == 1) { _root.assemblenow = 0; _root.shopscreen.select.free1.gotoAndStop(1); _root.shopscreen.select.free2.gotoAndStop(1); _root.shopscreen.select.tobemade.gotoAndStop(5); _root.cash -= 400; } } if (_root.shopsell == 1) { if (_root.shopscreen.select.free3._currentframe == 1) { _root.thenote339 = 'Drag and drop items to check prize'; } else { _root.thenote339 = 'Sell ' + _root.shopscreen.select.free3.itemID + ' for ' + _root.shopscreen.select.free3.sellval + 'kr'; } } if (_root.flying == 1) { } else { _root.curentitemlift._x = _root.curentitemlift.xval; _root.curentitemlift._y = _root.curentitemlift.yval; _root.old115._x = _root.old115.xval; _root.old115._y = _root.old115.yval; } folowbox(); freeitemcheckwholeinv(); placeitemsshopfree(); _root.pu = 1; if (_root.shopstart == 1) { _root.shopstart = 0; _root.freecheckitem = 1; this.shopscreen.shopdispl2.gotoAndStop(2); itemnr43 = 1; while (itemnr43 <= 9) { _root.testval9954 = this.invchoice2.inv1['invslot' + itemnr43]._currentframe; _root.shopscreen.shopinv1['invslot' + itemnr43].gotoAndStop(_root.testval9954); _root.testval9954 = this.invchoice2.inv2['invslot' + itemnr43]._currentframe; _root.shopscreen.shopinv2['invslot' + itemnr43].gotoAndStop(_root.testval9954); _root.shopscreen.shopinv1['invslot' + itemnr43].xval = _root.shopscreen.shopinv1['invslot' + itemnr43]._x; _root.shopscreen.shopinv1['invslot' + itemnr43].yval = _root.shopscreen.shopinv1['invslot' + itemnr43]._y; _root.shopscreen.shopinv2['invslot' + itemnr43].xval = _root.shopscreen.shopinv2['invslot' + itemnr43]._x; _root.shopscreen.shopinv2['invslot' + itemnr43].yval = _root.shopscreen.shopinv2['invslot' + itemnr43]._y; ++itemnr43; } } if (_root.itemislifted == 1) { freeextracheck(); if (_root.freecheckitem == 1) { _root.freecheckitem = 0; araysnr = 1; araysnr2 = 1; _root.numberoffree1 = 0; _root.numberoffree2 = 0; } else { _root.freecheckitem = 1; } _root.suretarget = 0; _root.onehititem9967 = 0; firsthits2221 = 0; firsthits543 = 0; ext551 = 1; while (ext551 <= extitemfree331) { if (freeextra[ext551].hitTest(_root.curentitemlift)) { if (freeextra[ext551].eqipit == 1) { if (firsthits2221 == 0) { firsthits2221 = 1; if (_root.curentitemlift.eqtype == freeextra[ext551].reqtupe) { _root.suretarget = 1; freeextra[ext551].hitbox33.gotoAndPlay(2); _root.targetitem33 = freeextra[ext551]; if (freeextra[ext551].eqbahuns77 == 1) { _root.shopscreen.shopdispl1.textap._visible = true; _root.shopscreen.shopdispl2.textap._visible = false; _root.shopscreen.shopdispl1.texthp._visible = true; _root.shopscreen.shopdispl2.texthp._visible = false; _root.shopscreen.shopdispl1.textac._visible = true; _root.shopscreen.shopdispl2.textac._visible = false; _root.shopscreen.shopdispl1.textccarmor._visible = true; _root.shopscreen.shopdispl2.textccarmor._visible = false; _root.shopscreen.shopdispl1.textccdodg._visible = true; _root.shopscreen.shopdispl2.textccdodg._visible = false; _root.shopscreen.shopdispl1.textccacy._visible = true; _root.shopscreen.shopdispl2.textccacy._visible = false; _root.shopscreen.shopdispl1.textccarmor._visible = true; _root.shopscreen.shopdispl2.textccarmor._visible = false; _root.shopscreen.shopdispl1.textrdarmor._visible = true; _root.shopscreen.shopdispl2.textrdarmor._visible = false; } else { _root.shopscreen.shopdispl1.textap._visible = false; _root.shopscreen.shopdispl2.textap._visible = true; _root.shopscreen.shopdispl1.texthp._visible = false; _root.shopscreen.shopdispl2.texthp._visible = true; _root.shopscreen.shopdispl1.textac._visible = false; _root.shopscreen.shopdispl2.textac._visible = true; _root.shopscreen.shopdispl1.textccarmor._visible = false; _root.shopscreen.shopdispl2.textccarmor._visible = true; _root.shopscreen.shopdispl1.textccdodg._visible = false; _root.shopscreen.shopdispl2.textccdodg._visible = true; _root.shopscreen.shopdispl1.textccacy._visible = false; _root.shopscreen.shopdispl2.textccacy._visible = true; _root.shopscreen.shopdispl1.textccarmor._visible = false; _root.shopscreen.shopdispl2.textccarmor._visible = true; _root.shopscreen.shopdispl1.textrdarmor._visible = false; _root.shopscreen.shopdispl2.textrdarmor._visible = true; } _root.showmaxhp = _root.curentitemlift.maxhp; if (_root.showmaxhp >= 1) { _root.showmaxhp = '+' + _root.showmaxhp; _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].texthp.textColor = 1179409; } else { _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].texthp.textColor = 16711680; } if (_root.showmaxhp == 0) { _root.showmaxhp = ''; } _root.showmaxap = _root.curentitemlift.maxap; if (_root.showmaxap >= 1) { _root.showmaxap = '+' + _root.showmaxap; _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textap.textColor = 1179409; } else { _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textap.textColor = 16711680; } if (_root.showmaxap == 0) { _root.showmaxap = ''; } _root.showacy = _root.curentitemlift.acy; if (_root.showacy >= 1) { _root.showacy = '+' + _root.showacy; _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textac.textColor = 1179409; } else { _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textac.textColor = 16711680; } if (_root.showacy == 0) { _root.showacy = ''; } _root.showccacy = _root.curentitemlift.ccacy; if (_root.showccacy >= 1) { _root.showccacy = '+' + _root.showccacy; root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textccacy.textColor = 1179409; } else { _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textccacy.textColor = 16711680; } if (_root.showccacy == 0) { _root.showccacy = ''; } _root.showccdodge = _root.curentitemlift.ccagi; if (_root.showccdodge >= 1) { _root.showccdodge = '+' + _root.showccdodge; _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textccdodg.textColor = 1179409; } else { _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textccdodg.textColor = 16711680; } if (_root.showccdodge == 0) { _root.showccdodge = ''; } _root.showrdarmor = _root.curentitemlift.rdarmor; if (_root.showrdarmor >= 1) { _root.showrdarmor = '+' + _root.showrdarmor; _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textrdarmor.textColor = 1179409; } else { _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textrdarmor.textColor = 16711680; } if (_root.showrdarmor == 0) { _root.showrdarmor = ''; } _root.showccarmor = _root.curentitemlift.ccarmor; if (_root.showccarmor >= 1) { _root.showccarmor = '+' + _root.showccarmor; _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textccarmor.textColor = 1179409; } else { _root.shopscreen['shopdispl' + freeextra[ext551].eqbahuns77].textccarmor.textColor = 16711680; } if (_root.showccarmor == 0) { _root.showccarmor = ''; } } else { freeextra[ext551].red.gotoAndPlay(2); } } } else { _root.suretarget = 1; if (firsthits543 == 0) { firsthits543 = 1; freeextra[ext551].hitbox33.gotoAndPlay(2); _root.targetitem33 = freeextra[ext551]; } } } ++ext551; } if (_root.suretarget == 0) { _root.showmaxhp = ''; _root.showmaxap = ''; _root.showacy = ''; _root.showccacy = ''; _root.showccdodge = ''; _root.showrdarmor = ''; _root.showccarmor = ''; } lastbiatc = curenttop; } _root.selectedMAIN = this.map.robo1; if (_root.purshaseon == 2 && _root.curentitem98 == 2 && aitemfree22 == 1) { _root.purshaseon = 0; shoptime = 1; freeitemcheckwholeinv(); placeitemsshopfree(); firstfounffreeitm11.gotoAndStop(_root.shoppurchasewitm1193); } if (_root.shopscreen.select._currentframe == 3) { _root.cntframesell21 = _root.shopscreen.select.free3._currentframe; sellfixonce = 1; } if (_root.btnisbushed221 == 1 && sellfixonce == 1) { sellfixonce = 0; _root.btnisbushed221 = 0; freeitemcheckwholeinv(); placeitemsshopfree(); firstfounffreeitm11.gotoAndStop(_root.cntframesell21); } if (_root.shopscreen.select._currentframe == 2) { _root.cntframese222 = _root.shopscreen.select.free2._currentframe; _root.cntframese333 = _root.shopscreen.select.free1._currentframe; _root.cntframese444 = _root.shopscreen.select.tobemade._currentframe; craftfixonce = 1; } if (_root.btnisbushed2214 == 1 && craftfixonce == 1) { craftfixonce = 0; _root.btnisbushed2214 = 0; freeitemcheckwholeinv(); placeitemsshopfree(); fix886 = 11; } else { fix886 = 3; } if (fix8867 == 44) { fix8867 = 55; _root.shopscreen.select.free2.gotoAndStop(1); _root.shopscreen.select.free1.gotoAndStop(1); _root.shopscreen.select.tobemade.gotoAndStop(1); } if (fix8867 == 33) { fix8867 = 44; firstfounffreeitm11.gotoAndStop(_root.cntframese444); } if (fix8867 == 22) { fix8867 = 33; firstfounffreeitm11.gotoAndStop(_root.cntframese333); } if (fix886 == 11) { fix886 = 2; fix8867 = 22; firstfounffreeitm11.gotoAndStop(_root.cntframese222); } if (aitemfree22 == 0) { _root.shopscreen.select.itemdesc.selbtn1.gotoAndStop(2); } } if (_root.shopunload == 1) { _root.shopunload = 0; itemnr4322 = 1; while (itemnr4322 <= 9) { _root.storeval1112 = _root.shopscreen.shopinv1['invslot' + itemnr4322]._currentframe; this.invchoice2.inv1['invslot' + itemnr4322].gotoAndStop(_root.storeval1112); _root.storeval1113 = _root.shopscreen.shopinv2['invslot' + itemnr4322]._currentframe; this.invchoice2.inv2['invslot' + itemnr4322].gotoAndStop(_root.storeval1113); ++itemnr4322; } _root.shopscreen.gotoAndStop(1); } } frame 6 { _root.gotoAndPlay('mainloop'); } frame 11 { _root.volumeu = (_root.sndmeter.boxsnd._x / _root.sndmeter._height) * 100; _root.firesndtime += 1; _root.int1.setVolume(_root.musicvol); _root.int2.setVolume(_root.musicvol - 7); _root.gunsnd1.setVolume(_root.efectvolume); _root.dsv2 = _root.int2.getVolume(); _root.dsv1 = _root.int1.getVolume(); _root.dsv3 = _root.gunsnd1.getVolume(); if (_root.int2.getVolume() <= 0) { _root.int2.setVolume(0); } if (_root.int1.getVolume() <= 0) { _root.int1.setVolume(0); } if (_root.sndst == 0) { _root.sndst = 1; _root.int1.start(0, 1); } if (_root.sndst == 2) { _root.sndst = 3; _root.int2.start(0, 1); } int2.onSoundComplete = function () { _root.sndst = 0; }; int1.onSoundComplete = function () { _root.sndst = 2; }; _root.dsv2 = _root.int2.getVolume(); _root.dsv1 = _root.int1.getVolume(); _root.dsv3 = _root.gunsnd1.getVolume(); } movieClip 877 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 878 { frame 1063 { } frame 1268 { _root.int1.stop(); _root.int2.stop(); _root.creditdone = 1; this.gotoAndStop(1); } } frame 12 { if (_root.creditdone == 1) { _root.gotoAndPlay('reset771'); } else { _root.gotoAndPlay('gameendh'); } } frame 15 { stop(); } movieClip 883 { frame 1 { stop(); } } instance meny btn of movieClip 883 { onClipEvent (release) { _root.gotoAndStop('c1'); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } }




http://swfchan.com/23/114071/info.shtml
Created: 11/3 -2019 03:10:00 Last modified: 11/3 -2019 03:10:00 Server time: 12/05 -2024 10:54:17