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

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

Chaos Dawn - an RPG adventure featuring a fun fighting system.swf

This is the info page for
Flash #89284

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


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 69 movieClip 15 chap1 { frame 1 { if (_name == 'chap1') { chapter = 'Chapter 1'; quest = 'From the bottom.'; } if (_name == 'chap2') { chapter = 'Chapter 2'; quest = 'Lumberjack`s Lies.'; } if (_name == 'chap3') { chapter = 'Chapter 3'; quest = 'She likes you.'; } if (_name == 'chap4') { chapter = 'Chapter 4'; quest = 'Snowflakes'; } onEnterFrame = function () { _x = _root.juego.ojo_cam._x; _y = _root.juego.ojo_cam._y; }; } frame 60 { removeMovieClip(this); } } frame 1 { function goTo() { getURL('http://www.MoFunZone.com', ''); } Stage.scaleMode = 'noScale'; stop(); var newMenu = new ContextMenu(); newMenu.hideBuiltInItems(); newMenu.customItems.push(new ContextMenuItem('MoFunZone.com - Play More Games', goTo)); this.menu = newMenu; } movieClip 20 { } movieClip 22 { } movieClip 24 { } movieClip 26 { } movieClip 28 { } movieClip 29 { } movieClip 31 { } movieClip 33 { } movieClip 35 { } movieClip 37 { } movieClip 39 { } movieClip 41 { } movieClip 42 { } movieClip 43 { } movieClip 45 { } movieClip 46 { frame 11 { _parent.gotoAndStop(2); } } movieClip 47 { } movieClip 49 { } movieClip 52 { } movieClip 54 { } movieClip 55 { } movieClip 56 { frame 1 { this.onEnterFrame = function () { bytesloaded = Math.round(_root.getBytesLoaded()); bytestotal = Math.round(_root.getBytesTotal()); percent = bytesloaded / bytestotal; barmask._xscale = percent * 100; }; } } movieClip 58 { } movieClip 63 { } // unknown tag 88 length 138 movieClip 83 { } movieClip 88 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 96 { } movieClip 98 { } movieClip 99 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 106 { } movieClip 107 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 114 { } movieClip 115 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 122 { } movieClip 123 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 130 { } movieClip 131 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 138 { } movieClip 139 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 146 { } movieClip 147 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.gotoAndStop(2); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 148 { } movieClip 153 { } movieClip 154 { frame 133 { _root.play(); } } movieClip 155 { frame 1 { stop(); _root.stop(); shiftamt = 17; isloaded = false; this.onEnterFrame = function () { bytesloaded = Math.round(_root.getBytesLoaded()); bytestotal = Math.round(_root.getBytesTotal()); percent = bytesloaded / bytestotal; if (bytesloaded == bytestotal) { isloaded = true; } }; this.onRelease = function () { getURL('http://www.mofunzone.com/', '_blank'); }; } } frame 2 { } movieClip 163 { } movieClip 165 { } movieClip 167 { } movieClip 169 { } movieClip 171 { } movieClip 174 { } movieClip 176 { } movieClip 182 { frame 1 { _root.stop(); } frame 101 { } frame 136 { (MoFunZoneAPI.AchievementLoaderAS2.getAPI()).hide_username(); _root.movie_actual = 4; _root.gotoAndStop('moves'); } frame 165 { _root.play(); } } movieClip 258 { frame 1 { function plai(_n) { mySound = new Sound(_root.fx); mySound.attachSound(_n); mySound.start(0, 1); } stop(); mySound = new Sound(_root.fx); mySound.setVolume(100); } } movieClip 262 { frame 1 { function plai(_n) { if (numero != _n) { mymusic.stop('musica' + numero); mymusic = new Sound(_root.musikita); mymusic.attachSound('musica' + _n); mymusic.start(0, 9999); numero = _n; } } stop(); mymusic = new Sound(_root.musikita); mymusic.setVolume(20); _root.music_val = 20; _root.music = 1; numero = 0; } } movieClip 265 { frame 1 { stop(); this.onPress = function () { if (_root.music == 1) { _root.music = 0; _root.musikita.mymusic.setVolume(0); gotoAndStop(2); } else { _root.music = 1; _root.musikita.mymusic.setVolume(_root.music_val); gotoAndStop(1); } }; } frame 2 { this.onPress = function () { if (_root.music == 1) { _root.music = 0; _root.musikita.mymusic.setVolume(0); gotoAndStop(2); } else { _root.music = 1; _root.musikita.mymusic.setVolume(_root.music_val); gotoAndStop(1); } }; } } movieClip 362 { frame 1 { stop(); } } movieClip 447 { frame 1 { stop(); } } movieClip 502 { frame 1 { stop(); } } movieClip 2710 __Packages.MoFunZoneAPI.AchievementLoaderAS2 { #initclip if (!_global.MoFunZoneAPI) { _global.MoFunZoneAPI = new Object(); } if (!_global.MoFunZoneAPI.AchievementLoaderAS2) { var v1 = function () {}; MoFunZoneAPI.AchievementLoaderAS2 = v1; var v2 = v1.prototype; v1.achievementreport = function () { trace('version :' + MoFunZoneAPI.AchievementLoaderAS2.achievement_root.apiversion); for (var v1 in MoFunZoneAPI.AchievementLoaderAS2.achievement_cfg) { MoFunZoneAPI.AchievementLoaderAS2.achievement_root[v1] = MoFunZoneAPI.AchievementLoaderAS2.achievement_cfg[v1]; } MoFunZoneAPI.AchievementLoaderAS2.achievement_root.play(); clearInterval(MoFunZoneAPI.AchievementLoaderAS2.privatetimer); MoFunZoneAPI.AchievementLoaderAS2.privatetimer = setInterval(MoFunZoneAPI.AchievementLoaderAS2.waitforready, 1000); }; v1.waitforready = function () { if (MoFunZoneAPI.AchievementLoaderAS2.achievement_root.achistatus == 'ok') { trace('ready'); if (MoFunZoneAPI.AchievementLoaderAS2.readyFuntion != null) { MoFunZoneAPI.AchievementLoaderAS2.readyFuntion(); } clearInterval(MoFunZoneAPI.AchievementLoaderAS2.privatetimer); } }; v1.readyCallBack = function (funtionPointer) { MoFunZoneAPI.AchievementLoaderAS2.readyFuntion = funtionPointer; }; v1.getAPI = function () { return MoFunZoneAPI.AchievementLoaderAS2.achievement_root; }; v1.loadAchievement = function (achievement_address, topleveltimeline, achievement_config) { System.security.allowDomain('*'); MoFunZoneAPI.AchievementLoaderAS2.achievement_root = topleveltimeline.createEmptyMovieClip('output', topleveltimeline.getNextHighestDepth()); MoFunZoneAPI.AchievementLoaderAS2.achievement_cfg = achievement_config; var v2 = new Object(); v2.onLoadComplete = function (target_mc) { trace('API load complete'); MoFunZoneAPI.AchievementLoaderAS2.privatetimer = setInterval(MoFunZoneAPI.AchievementLoaderAS2.achievementreport, 1000); }; var v1 = new MovieClipLoader(); v1.addListener(v2); v1.loadClip(achievement_address, MoFunZoneAPI.AchievementLoaderAS2.achievement_root); }; v1.achievement_root = null; v1.achievement_cfg = null; v1.privatetimer = null; v1.readyFuntion = null; ASSetPropFlags(MoFunZoneAPI.AchievementLoaderAS2.prototype, null, 1); } #endinitclip } movieClip 2711 __Packages.MoFunZoneAPI.AchievementConfig { #initclip if (!_global.MoFunZoneAPI) { _global.MoFunZoneAPI = new Object(); } if (!_global.MoFunZoneAPI.AchievementConfig) { var v1 = function () { this.test = true; this.gameid = ''; this.autoPosition = 'cc'; this.bringToTop = true; this.fadeout = true; this.dialogScale = 1; }; MoFunZoneAPI.AchievementConfig = v1; var v2 = v1.prototype; v2.test = true; v2.gameid = ''; v2.autoPosition = 'cc'; v2.bringToTop = true; v2.fadeout = true; v2.dialogScale = 1; ASSetPropFlags(MoFunZoneAPI.AchievementConfig.prototype, null, 1); } #endinitclip } movieClip 509 { } movieClip 523 Ultijoey { frame 84 { _root.ultimate = 1; removeMovieClip(this); } } movieClip 532 { } movieClip 533 { } movieClip 542 Ultizaro { frame 18 { } frame 86 { _root.ultimate = 1; _root.listoanimacionsuper = 0; removeMovieClip(this); } } movieClip 548 { } movieClip 555 { } movieClip 560 Ultimelissa { frame 85 { _root.ultimate = 1; removeMovieClip(this); } } movieClip 563 { } movieClip 567 stun_charm { instance golpe of movieClip 563 { onClipEvent (load) { knockback = 2; dmg = 10; } onClipEvent (enterFrame) { for (var i in _root.l.enemy) { if (_root.l.enemy[i].golpeado == 0 and this.hitTest(_root.l.enemy[i].targetgolpe) and _root.l.enemy[i].golpeado != 1) { if (_root.l.enemy[i].armor_shadow < random(100) and _root.l.enemy[i].charmed == undefined) { _root.l.enemy[i].charmed = _root.l.enemy[i].attachMovie('charmed', 'raspando' + getTimer(), _root.l.getNextHighestDepth()); if (_root.l.enemy[i]._xscale == -100) { _root.l.enemy[i].charmed._xscale = -100; } } } } } } } movieClip 568 stun { frame 10 { dmg = 0.5 * spell_power; _root.player_turno.tar.get_magic(dmg); _root.player_turno.tar.sleep(2); } frame 19 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 570 star2 { } movieClip 572 { } movieClip 573 { } movieClip 574 speed_pot { frame 28 { _root.player_turno.tar.speedup(_root.healdmg); } frame 33 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 576 { } movieClip 578 { } movieClip 581 { } movieClip 582 { } movieClip 585 { } movieClip 586 { } movieClip 593 revive { frame 26 { _root.player_turno.tar.life = _root.player_turno.tar.hp_max; } frame 47 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 595 { } movieClip 596 reddragon { frame 1 { stop(); _alpha = 0; onEnterFrame = function () { if (_root.ultimate == 1) { _alpha = 100; play(); } }; } frame 17 { di = 0; while (di < _root.juego.party_count) { _root.juego['player' + di].buff('armor'); ++di; } } frame 31 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 602 raspando { instance golpe of movieClip 563 { onClipEvent (load) { knockback = 2; dmg = 10; } onClipEvent (enterFrame) { for (var i in _root.l.enemy) { if (_root.l.enemy[i].golpeado == 0 and this.hitTest(_root.l.enemy[i].targetgolpe)) { if (_root.sthero.tree_a3 > 0) { if (_root.sthero.maxhp > _root.sthero.hp + _root.sthero.dmg_fire * (0.07000000000000001 * _root.sthero.tree_a3) * (100 - _root.l.enemy[i].armor_fire) / 100) { _root.sthero.hp += _root.sthero.dmg_fire * (0.07000000000000001 * _root.sthero.tree_a3) * (100 - _root.l.enemy[i].armor_fire) / 100; } else { _root.sthero.hp = _root.sthero.maxhp; } } _root.l.enemy[i].hp -= Math.round((_root.sthero.dmg_fire * (100 - _root.l.enemy[i].armor_fire) / 100) * (1 + _root.sthero.tree_b2 * 0.1)); _root.l.enemy[i].golpeado_anima = 1; _root.sthero.combo += 1; _root.sthero.tiempocombo = 30; if (_root.l.enemy[i]._x > _parent._x and _parent.speed > 0) { _root.l.enemy[i]._x += 30; } else { if (_root.l.enemy[i]._x < _parent._x and _parent.speed < 0) { _root.l.enemy[i]._x -= 30; } } } } } } } movieClip 605 { } movieClip 607 { frame 1 { stop(); } } movieClip 615 punterou { frame 1 { function manage_glow() { glow_alpha = 0.6; glow_blurX = 5; glow_blurY = 5; glow_strength = 10; glow_quality = 3; if (glow_dir == 0) { glow_strength2 += 1; if (glow_strength2 >= 10) { glow_dir = 1; } } if (glow_dir == 1) { glow_strength2 -= 1; if (glow_strength2 <= 0) { glow_dir = 0; } } var v2 = new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); v2 = new flash.filters.GlowFilter(16776960, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); this.filters = [v2]; } function loseglow() { filter_glow = Null; this.filters = [filter_glow]; this.glowing = 0; } max = 220; min = 0; onEnterFrame = function () { porcentaje = tar.cd * 100 / tar.cd_max; _x = max - (porcentaje / 100) * max; if (glowing == 1) { manage_glow(); } else { loseglow(); } }; glow_dir = 0; glow_strength2 = 2; glowing = 0; } frame 1 { stop(); if (tar._name == 'player1') { gotoAndStop('p1'); } if (tar._name == 'player2') { gotoAndStop('p2'); } if (tar._name == 'player3') { gotoAndStop('p3'); } } } movieClip 632 poison { frame 13 { dmg = 3 * spell_power; dmg2 = 0.5 * spell_power; _root.player_turno.tar.get_magic(dmg2); _root.player_turno.tar.poison(dmg / 120, 5); } frame 22 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 636 { } movieClip 637 { } movieClip 640 { } movieClip 645 { } movieClip 651 { frame 1 { stop(); } } movieClip 663 { } movieClip 673 { } movieClip 675 { } movieClip 680 { } movieClip 693 { } movieClip 714 { } movieClip 715 { } movieClip 721 { frame 1 { stop(); } } movieClip 723 { } movieClip 741 { frame 11 { stop(); } } movieClip 766 { } movieClip 786 { frame 1 { golpeado = 0; stun = 0; camina = 0; } frame 41 { gotoAndPlay('stand'); } frame 44 { stun = 1; } frame 47 { _parent.hit = 1; } frame 53 { stun = 0; gotoAndPlay('stand'); } frame 58 { stun = 1; } frame 68 { stun = 0; gotoAndPlay('stand'); } frame 75 { golpeado = 0; stun = 0; camina = 1; } frame 92 { gotoAndPlay('camina'); } frame 96 { camina = 0; golpeado = 1; stun = 1; } frame 106 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 115 { stun = 1; } frame 123 { stun = 0; gotoAndPlay('stand'); } frame 137 { stun = 1; } frame 148 { _root.l.mina = _root.l.attachMovie('landmine', 'landmine' + getTimer(), _root.l.getNextHighestDepth()); _root.sthero.energy -= 80; _root.l.empujar.push(_root.l.mina); _root.l.mina.swapDepths(_root.l.mina._x / 90 + (_root.l.mina._y + 20)); _root.l.mina._x = _root.l.hero._x; _root.l.mina._y = _root.l.hero._y + 46; _root.l.mina.gotoAndStop(1); } frame 162 { stun = 0; gotoAndPlay('stand'); } frame 179 { stun = 1; } frame 181 { } frame 205 { stun = 0; gotoAndPlay('stand'); } frame 209 { stun = 1; } frame 212 { _parent.hit = 1; } frame 217 { stun = 0; gotoAndPlay('stand'); } frame 223 { stun = 1; } frame 227 { _parent.hit = 1; } frame 232 { stun = 0; gotoAndPlay('stand'); } frame 238 { stun = 1; } instance of movieClip 766 { onClipEvent (enterFrame) { for (var i in _root.l.enemy) { if (_root.l.enemy[i].golpeado == 0 and this.hitTest(_root.l.enemy[i].targetgolpe)) { _root.l.enemy[i].hp -= Math.round(_root.sthero.dmg_normal * 1.5 * (100 - _root.l.enemy[i].armor_normal) / 100); _root.l.enemy[i].golpeado_anima = 1; _root.sthero.combo += 1; _root.sthero.tiempocombo = 30; if (_root.l.enemy[i]._x > _parent._x) { _root.l.enemy[i]._x += 60; } else { if (_root.l.enemy[i]._x < _parent._x) { _root.l.enemy[i]._x -= 60; } } } } } } frame 247 { _parent.hit = 1; } instance of movieClip 766 { onClipEvent (enterFrame) { for (var i in _root.l.enemy) { if (_root.l.enemy[i].golpeado == 0 and this.hitTest(_root.l.enemy[i].targetgolpe)) { _root.l.enemy[i].hp -= Math.round(_root.sthero.dmg_normal * 1.5 * (100 - _root.l.enemy[i].armor_normal) / 100); _root.l.enemy[i].golpeado_anima = 1; _root.sthero.combo += 1; _root.sthero.tiempocombo = 30; if (_root.l.enemy[i]._x > _parent._x) { _root.l.enemy[i]._x += 60; } else { if (_root.l.enemy[i]._x < _parent._x) { _root.l.enemy[i]._x -= 60; } } } } } } frame 254 { stun = 0; gotoAndPlay('stand'); } frame 257 { stun = 1; } frame 260 { _parent.hit = 1; } frame 267 { stun = 0; gotoAndPlay('stand'); } frame 310 { gotoAndPlay('fense'); } frame 313 { gotoAndPlay('stand'); } } movieClip 790 { } movieClip 791 { } movieClip 794 { } button 796 { on (press) { _root.player_turno.tar = this; _root.juego.casteador.cast(this); iene = 1; while (iene <= _root.juego.enemy_count) { _root.juego['ene' + iene].magic._x = 1000; ++iene; } iene = 1; while (iene <= _root.juego.party_count) { _root.juego['player' + iene].itemm._x = 9999; ++iene; } _root.abilitado = 0; } } // unknown tag 88 length 105 movieClip 801 { } movieClip 803 { frame 1 { _alpha = 0; } } movieClip 805 { } movieClip 807 { } movieClip 809 { } movieClip 811 { } movieClip 813 { } movieClip 816 { } movieClip 830 { frame 1 { golpeado = 0; stun = 0; camina = 0; } frame 48 { gotoAndPlay('stand'); } frame 56 { golpeado = 0; stun = 0; camina = 1; } frame 76 { gotoAndPlay('camina'); } frame 98 { stun = 1; } frame 100 { _parent.hit = 1; } frame 106 { stun = 0; gotoAndPlay('stand'); } frame 115 { stun = 1; } frame 118 { _parent.hit = 1; } frame 123 { stun = 0; gotoAndPlay('stand'); } frame 128 { stun = 1; } frame 131 { _parent.hit = 1; } frame 136 { stun = 0; gotoAndPlay('stand'); } frame 141 { stun = 1; } frame 145 { _parent.hit = 1; } frame 150 { stun = 0; gotoAndPlay('stand'); } frame 162 { stun = 1; } frame 165 { _root.m.z.cooldown = 7 - _root.sthero.tree_a4 * 3; _root.sthero.energy -= 40; } frame 174 { stun = 0; gotoAndPlay('stand'); } frame 183 { stun = 1; } frame 190 { _root.l.shockwave = _root.l.attachMovie('stun_charm', 'raspando' + getTimer(), _root.l.getNextHighestDepth()); _root.sthero.energy -= 30; _root.l.empujar.push(_root.l.shockwave); _root.l.shockwave.swapDepths(_root.l.shockwave._x / 90 + (_root.l.shockwave._y + 20)); _root.m.x.cooldown = 10 - _root.sthero.tree_a3 * 1; if (_root.l.hero._xscale == -100) { _root.l.shockwave.speed = -30; _root.l.shockwave._xscale = -100; } else { if (_root.l.hero._xscale == 100) { _root.l.shockwave.speed = 30; } } } frame 201 { stun = 0; gotoAndPlay('stand'); } frame 221 { _parent.hit = 1; } frame 227 { gotoAndPlay('stand'); } frame 250 { camina = 0; golpeado = 1; stun = 1; } frame 256 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 299 { gotoAndPlay('fense'); } frame 302 { gotoAndPlay('stand'); } } movieClip 832 { } movieClip 833 { } movieClip 836 { } movieClip 837 { } movieClip 839 { } movieClip 841 { } movieClip 843 { } movieClip 845 { } movieClip 847 { } movieClip 849 { } movieClip 851 { } movieClip 857 { } movieClip 860 { } movieClip 863 { } movieClip 866 melissa { frame 1 { sas = 0; ses = 0; sis = 0; sos = 0; golpeado = 0; stun = 0; camina = 0; dmg_normal = 30; dmg_fire = 10; dmg_ice = 25; dmg_shadow = 25; } frame 48 { gotoAndPlay('stand'); } frame 56 { golpeado = 0; stun = 0; camina = 1; } frame 76 { if (Key.isDown(39) or Key.isDown(37) or Key.isDown(38) or Key.isDown(40)) { gotoAndPlay('camina'); } else { gotoAndPlay('stand'); } } frame 98 { stun = 1; } frame 104 { _parent.hit = 1; } frame 109 { stun = 0; gotoAndPlay('stand'); } frame 118 { stun = 1; } frame 124 { _parent.hit = 1; } frame 131 { stun = 0; gotoAndPlay('stand'); } frame 136 { stun = 1; } frame 140 { _parent.hit = 1; } frame 145 { stun = 0; gotoAndPlay('stand'); } frame 150 { stun = 1; } frame 155 { _parent.hit = 1; } frame 160 { gotoAndPlay('stand'); } frame 172 { stun = 1; } frame 176 { _root.l.shockwave = _root.l.attachMovie('devil1', 'dagaso' + getTimer(), _root.l.getNextHighestDepth()); _root.sthero.energy -= 30; _root.m.z.cooldown = 10 - _root.sthero.tree_a4 * 3; _root.l.empujar.push(_root.l.shockwave); _root.l.shockwave.swapDepths(_root.l.shockwave._x / 90 + (_root.l.shockwave._y + 20)); _root.l.shockwave._x = _root.l.hero._x; _root.l.shockwave._y = _root.l.hero._y - 100; } frame 181 { stun = 0; gotoAndPlay('stand'); } frame 190 { stun = 1; } frame 194 { _root.l.shockwave = _root.l.attachMovie('raspando', 'raspando' + getTimer(), _root.l.getNextHighestDepth()); _root.sthero.energy -= 70; _root.l.empujar.push(_root.l.shockwave); _root.l.shockwave.swapDepths(_root.l.shockwave._x / 90 + (_root.l.shockwave._y + 20)); _root.m.x.cooldown = 1; if (_root.l.hero._xscale == -100) { _root.l.shockwave.speed = -30; _root.l.shockwave._xscale = -100; } else { if (_root.l.hero._xscale == 100) { _root.l.shockwave.speed = 30; } } } frame 198 { stun = 0; gotoAndPlay('stand'); } frame 210 { recargor = 0.02 + _root.sthero.tree_b1 * 0.01; dahp = _root.sthero.tree_b3 * 0.01; coldownerito = 3; _root.m.c.cooldown = coldownerito; } instance of movieClip 563 { onClipEvent (enterFrame) { if (Key.isDown(39) or Key.isDown(37) or Key.isDown(32) or Key.isDown(38) or Key.isDown(40)) { _parent.stun = 0; _parent.gotoAndPlay('stand'); } } } frame 214 { if (_root.sthero.maxenergy > _root.sthero.energy + _root.sthero.maxenergy * recargor) { _root.sthero.energy += _root.sthero.maxenergy * recargor; } else { _root.sthero.energy = _root.sthero.maxenergy; } _root.m.c.cooldown = coldownerito; _root.m.c.tiempo = 0; if (_root.sthero.maxhp > _root.sthero.hp + _root.sthero.maxhp * dahp) { _root.sthero.hp += _root.sthero.maxhp * dahp; } else { _root.sthero.hp = _root.sthero.maxhp; } } frame 219 { if (_root.sthero.maxenergy > _root.sthero.energy + _root.sthero.maxenergy * recargor) { _root.sthero.energy += _root.sthero.maxenergy * recargor; } else { _root.sthero.energy = _root.sthero.maxenergy; } _root.m.c.cooldown = coldownerito; _root.m.c.tiempo = 0; } frame 223 { if (_root.sthero.maxenergy > _root.sthero.energy + _root.sthero.maxenergy * recargor) { _root.sthero.energy += _root.sthero.maxenergy * recargor; } else { _root.sthero.energy = _root.sthero.maxenergy; } _root.m.c.cooldown = coldownerito; _root.m.c.tiempo = 0; } frame 229 { if (_root.sthero.maxenergy > _root.sthero.energy + _root.sthero.maxenergy * recargor) { _root.sthero.energy += _root.sthero.maxenergy * recargor; } else { _root.sthero.energy = _root.sthero.maxenergy; } _root.m.c.cooldown = coldownerito; _root.m.c.tiempo = 0; if (_root.sthero.maxhp > _root.sthero.hp + _root.sthero.maxhp * dahp) { _root.sthero.hp += _root.sthero.maxhp * dahp; } else { _root.sthero.hp = _root.sthero.maxhp; } } frame 235 { if (_root.sthero.maxenergy > _root.sthero.energy + _root.sthero.maxenergy * recargor) { _root.sthero.energy += _root.sthero.maxenergy * recargor; } else { _root.sthero.energy = _root.sthero.maxenergy; } _root.m.c.cooldown = coldownerito; _root.m.c.tiempo = 0; } frame 236 { gotoAndPlay('ice'); } frame 244 { if (Key.isDown(39) or Key.isDown(37) or Key.isDown(38) or Key.isDown(40)) { gotoAndPlay('camina'); } else { gotoAndPlay('stand'); } } frame 247 { camina = 0; golpeado = 1; stun = 1; } frame 248 { _root.sthero.combo = 0; } frame 257 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 296 { gotoAndPlay('fense'); } frame 299 { gotoAndPlay('stand'); } } movieClip 869 { } movieClip 872 { } movieClip 873 { } movieClip 874 party tuto { frame 1 { gotoAndStop(personaje); nombre = 'Zaro'; lvl = 20; intt = 50; str = 60; agi = 55; life = 10 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = 30; dmg = 50; dmg_max = 25; cdloco = 96 - (agi / 40) * 24; if (cdloco > 0) { cd_max = 25 + cdloco; } else { cd_max = 25; } cd = cd_max; if (personaje == 1) { _root.menu1.play1.tar = this; } } frame 1 { function check_dephts() { calculin = _x + _y * 100; this.swapDepths(calculin); } function atack_old() { loseglow(); _root.juego.ojo_cam.follow(this); if (_x != tar._x - 60 && _y != tar._y) { if (body.camina == 0) { body.camina = 1; body.gotoAndPlay('camina'); } irdestino(); atake = 0; } else { if (body.stun == 0 && atake == 0) { body.gotoAndPlay(_root.tipo_ataque); body.stun = 1; atake = 1; } if (body.stun == 0) { if (_root.tipo_ataque == 'combo4') { if (random(100) < 70) { tar.get_hit(dmg * 2 + random(dmg_max * 2)); } else { tar.get_hit(0); } } else { tar.get_hit(dmg + random(dmg_max)); } attack = 0; volver = 1; } } } function atack() { loseglow(); _root.juego.ojo_cam.follow(this); if (llegue == 0) { if (body.camina == 0) { body.camina = 1; body.gotoAndPlay('camina'); } irdestino(); atake = _root.cant_hits; atake_old = atake + 1; if (_root.supercombo == 1) { combaso = 1; combit = 0; _root.tipo_ataque = _root.combos[combit]; } } else { if (body.stun == 0 && atake > 0 && atake != atake_old) { body.gotoAndPlay(_root.tipo_ataque); body.stun = 1; atake_old = atake; } if (hit == 1) { if (_root.tipo_ataque == 'combo4') { if (random(100) < 70) { tar.get_hit(dmg * 2 + random(dmg_max * 2)); } else { tar.get_hit(0); } if (_name == 'player1') { _root.fx.plai('zaro_atack4'); } if (_name == 'player2') { _root.fx.plai('joe_atack' + (random(2) + 1)); } if (_name == 'player3') { _root.fx.plai('meli' + (random(3) + 1)); } _root.juego.flasheate.play(); } else { tar.get_hit(dmg / 2 + random(dmg_max / 2)); _root.tipo_ataque = 'combo2'; if (_name == 'player1') { _root.fx.plai('zaro_atack' + (random(2) + 1)); } if (_name == 'player2') { _root.fx.plai('joe_atack' + (random(2) + 1)); } if (_name == 'player3') { _root.fx.plai('meli' + (random(3) + 1)); } } if (combaso == 1) { ++combit; _root.tipo_ataque = _root.combos[combit]; } --atake; hit = 0; } if (body.stun == 0) { if (body.stun == 0 && atake <= 0) { combaso = 0; _root.supercombo = 0; attack = 0; llegue = 0; volver = 1; } } } } function irdestino() { _x = _x + (tar._x - 60 - _x) / speed; _y = _y + (tar._y - _y) / speed; if (Math.abs(_x - (tar._x - 60)) < 20 && Math.abs(_y - tar._y) < 20) { _x = tar._x - 60; _y = tar._y + 10; llegue = 1; } } function irOrigen() { _root.juego.check_deads(); if (_x != orig._x && _y != orig._y) { _x = _x + (orig._x - _x) / speedo; _y = _y + (orig._y - _y) / speedo; if (Math.abs(_x - orig._x) < 15 && Math.abs(_y - orig._y) < 15) { _x = orig._x; _y = orig._y; } } else { _root.juego.ojo_cam.stop_follow(); cd = cd_max; volver = 0; llegue = 0; _root.player_turno = undefined; _root.turno = 0; } } function cast() { loseglow(); body.gotoAndPlay('fire'); cast_magic = 0; } function get_hit(_dmg) { if (en_defensa != 1) { body.gotoAndPlay('bash'); } else { _dmg = Math.floor(_dmg * 0.8); } if (_dmg - armor > _dmg / 2) { dmj = _dmg - Math.floor(armor); } else { dmj = Math.floor(_dmg / 2); } life -= dmj; dormido = 0; show_dmg(dmj); } function get_magic(_dmg) { if (en_defensa != 1) { body.gotoAndPlay('bash'); } else { _dmg = Math.floor(_dmg * 0.8); } show_dmg(_dmg); life -= _dmg; dormido = 0; } function show_dmg(_dmg) { _dmg = Math.round(_dmg); _root.juego.attachMovie('numerito', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'dmg': _dmg, 'signo': '- '}); attachMovie('explocion', 'expo' + dis, this.getNextHighestDepth(), {'_x': this['exp' + (random(3) + 1)]._x, '_y': this['exp' + (random(3) + 1)]._y, '_alpha': 100, '_xscale': 150, '_yscale': 150, '_rotation': random(360)}); ++dis; if (_name == 'player1') { _root.fx.plai('zaro_hurt' + (random(2) + 1)); } if (_name == 'player2') { _root.fx.plai('joe_hurt' + (random(2) + 1)); } if (_name == 'player3') { _root.fx.plai('meli' + (random(3) + 1)); } } function show_dmg2(_dmg) { _dmg = Math.round(_dmg); _root.juego.attachMovie('numerito', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'dmg': _dmg, 'signo': '+ '}); ++dis; } function get_defensive() { body.gotoAndPlay('defence'); defence = 0; en_defensa = 1; volver = 1; } function healme(_heal) { _heal = hp_max / 2; if (life + _heal <= hp_max) { life += _heal; } else { life = hp_max; } show_dmg2(_heal); } function healmepot(_heal) { _heal = hp_max / 2; if (life + _heal <= hp_max) { life += _heal; } else { life = hp_max; } show_dmg2(_heal); } function check_death() { if (life <= 0 && body._alpha > 0) { this.body._alpha -= 10; _root.menu1.barra_cd['punt' + _name]._alpha = 0; cd = cd_max; } if (body._alpha <= 0) { dbody._alpha += 10; } else { dbody._alpha = 0; } if (life > 0 && body._alpha < 100) { this.body._alpha += 10; _root.menu1.barra_cd['punt' + _name]._alpha = 100; } if (life <= 0) { cd = cd_max; } } function maname(_mana) { _mana = mana_max / 2; if (mana + _mana <= mana_max) { mana += _mana; } else { mana = mana_max; } show_dmg2(_mana); } function check_buffs() { --dormido; --rapidez; --poisoned; if (dormido > 0) { cd_tic = 0; sleepo._alpha = 100; } else { if (rapidez > 0) { cd_tic = 2; haste._alpha = 100; sleepo._alpha = 0; } else { cd_tic = 1; haste._alpha = 0; sleepo._alpha = 0; } } if (poisoned > 0) { life -= poison_dmg; } } function poison(_dmg, _time) { poisoned = _time * 24; poison_dmg = _dmg; } function speedup(_time) { rapidez = _time * 24; } function sleep(_time) { dormido = _time * 24; } function bash(_per) { dormido = 0; _cunt = cd_max * (_per / 100); cd += _cunt; if (cd > cd_max) { cd = cd_max; } } function getglow(_num) { glowing = 1; glow_alpha = 0.6; glow_blurX = 5; glow_blurY = 5; glow_strength = 10; glow_quality = 3; var v1 = new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); v1 = new flash.filters.GlowFilter(16776960, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); body.filters = [v1]; } function loseglow() { glowing = 0; filter_glow = Null; body.filters = [filter_glow]; } function manage_glow() { glow_alpha = 0.6; glow_blurX = 5; glow_blurY = 5; glow_strength = 10; glow_quality = 3; if (glow_dir == 0) { glow_strength2 += 1; if (glow_strength2 >= 10) { glow_dir = 1; } } if (glow_dir == 1) { glow_strength2 -= 1; if (glow_strength2 <= 0) { glow_dir = 0; } } filter_glow = new flash.filters.GlowFilter(16776960, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); body.filters = [filter_glow]; } function buff(_tipo) { if (_tipo == 'armor') { this.armor = 9999; } } itemm._x = -9999; attack = 0; magic = 0; dmg_hit = 20; cast_magic = 0; cd_tic = 1; _root.menu1.barra_cd.attachMovie('punterou', 'punt' + _name, _root.menu1.barra_cd.getNextHighestDepth(), {'_x': p1._x, '_y': p1._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'tar': this}); defence = 0; _root.listoanimacionsuper = 0; onEnterFrame = function () { check_dephts(); check_death(); if (glowing == 1) { manage_glow(); } if (attack == 1 && _root.listoanimacionsuper == 0) { atack(); } if (defence == 1) { get_defensive(); } if (volver == 1) { irOrigen(); } if (cast_magic == 1) { cast(); } if (_root.turno == 0 && _root.juegoterminado != 1 && _root.tutopause != 1) { cd -= cd_tic; check_buffs(); loseglow(); if (cd <= 0) { en_defensa = 0; _root.player_turno = this; _root.turno = 1; _root.abilitado = 1; getglow(); if (_root.tutopart > 0) { _root.menu1.helpmenu.nextFrame(); } ++_root.tutopart; } } }; llegue = 0; speed = 5; speedo = 3; llegue = 0; dormido = 0; rapidez = 0; poisoned = 0; glowing = 0; glow_dir = 0; glow_strength2 = 2; } instance haste of movieClip 637 { onClipEvent (load) { _alpha = 0; } } instance body of movieClip 786 { onClipEvent (load) { head.pelo.gotoAndStop(1); head.detalle.gotoAndStop(13); gamba1.gotoAndStop(4); gamba2.gotoAndStop(3); torso.armor.gotoAndStop(5); torso.cinto.gotoAndStop(4); cuchi1.gotoAndStop(2); cuchi2.gotoAndStop(2); } } instance dbody of movieClip 791 { onClipEvent (load) { head.pelo.gotoAndStop(1); head.detalle.gotoAndStop(13); gamba1.gotoAndStop(4); gamba2.gotoAndStop(3); torso.armor.gotoAndStop(5); torso.cinto.gotoAndStop(4); cuchi1.gotoAndStop(2); cuchi2.gotoAndStop(2); _alpha = 0; } } instance sleepo of movieClip 801 { onClipEvent (load) { _alpha = 0; _xscale = _xscale * -1; } } frame 2 { lvl = _root.p2_lvl; nombre = 'Joey'; intt = _root.p2_int * lvl + _root.p2_bint; str = _root.p2_str * lvl + _root.p2_bstr; agi = _root.p2_agi * lvl + _root.p2_bagi; life = 10 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = _root.p2_barmor + agi / 10; dmg = _root.p2_bdmg + str * 1.5; dmg_max = _root.p2_bdmg + dmg / 4; life = _root.p2_hp_actual; mana = _root.p2_mana_actual; cdloco = 96 - (agi / 40) * 24; if (cdloco > 0) { cd_max = 25 + cdloco; } else { cd_max = 25; } cd = cd_max; if (personaje == 2) { _root.menu1.play2.tar = this; } } instance body of movieClip 830 { onClipEvent (load) { gamba1.gotoAndStop(1); gamba2.gotoAndStop(1); } } instance dbody of movieClip 833 { onClipEvent (load) { gamba1.gotoAndStop(1); gamba2.gotoAndStop(1); _alpha = 0; } } frame 3 { lvl = _root.p3_lvl; nombre = 'Melissa'; intt = _root.p3_int * lvl + _root.p3_bint; str = _root.p3_str * lvl + _root.p3_bstr; agi = _root.p3_agi * lvl + _root.p3_bagi; life = 10 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = _root.p3_barmor + agi / 10; dmg = _root.p3_bdmg + str * 1.5; dmg_max = _root.p3_bdmg + dmg / 4; life = _root.p3_hp_actual; mana = _root.p3_mana_actual; cdloco = 96 - (agi / 40) * 24; if (cdloco > 0) { cd_max = 25 + cdloco; } else { cd_max = 25; } cd = cd_max; if (personaje == 3) { _root.menu1.play3.tar = this; } } instance dbody of movieClip 873 { onClipEvent (load) { _alpha = 0; } } } movieClip 876 { } movieClip 877 { } movieClip 878 party { frame 1 { gotoAndStop(personaje); nombre = 'Zaro'; lvl = _root.p1_lvl; intt = _root.p1_int * lvl + _root.p1_bint; str = _root.p1_str * lvl + _root.p1_bstr; agi = _root.p1_agi * lvl + _root.p1_bagi; life = 10 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = _root.p1_barmor + agi / 10; dmg = str * 1.5 + _root.p1_bdmg; dmg_max = dmg / 4 + _root.p1_bdmg; life = _root.p1_hp_actual; mana = _root.p1_mana_actual; cdloco = 96 - (agi / 40) * 24; if (cdloco > 0) { cd_max = 25 + cdloco; } else { cd_max = 25; } cd = cd_max; if (personaje == 1) { _root.menu1.play1.tar = this; } } frame 1 { function check_dephts() { calculin = _x + _y * 100; this.swapDepths(calculin); } function atack_old() { loseglow(); _root.juego.ojo_cam.follow(this); if (_x != tar._x - 60 && _y != tar._y) { if (body.camina == 0) { body.camina = 1; body.gotoAndPlay('camina'); } irdestino(); atake = 0; } else { if (body.stun == 0 && atake == 0) { body.gotoAndPlay(_root.tipo_ataque); body.stun = 1; atake = 1; } if (body.stun == 0) { if (_root.tipo_ataque == 'combo4') { if (random(100) < 70) { tar.get_hit(dmg * 2 + random(dmg_max * 2)); } else { tar.get_hit(0); } } else { tar.get_hit(dmg + random(dmg_max)); } attack = 0; volver = 1; } } } function atack() { loseglow(); _root.juego.ojo_cam.follow(this); if (llegue == 0) { if (body.camina == 0) { body.camina = 1; body.gotoAndPlay('camina'); } irdestino(); atake = _root.cant_hits; atake_old = atake + 1; if (_root.supercombo == 1) { combaso = 1; combit = 0; _root.tipo_ataque = _root.combos[combit]; } } else { if (body.stun == 0 && atake > 0 && atake != atake_old) { body.gotoAndPlay(_root.tipo_ataque); body.stun = 1; atake_old = atake; } if (hit == 1) { if (_root.tipo_ataque == 'combo4') { if (random(100) < 70) { tar.get_hit(dmg * 2 + random(dmg_max * 2)); } else { tar.get_hit(0); } if (_name == 'player1') { _root.fx.plai('zaro_atack4'); } if (_name == 'player2') { _root.fx.plai('joe_atack' + (random(2) + 1)); } if (_name == 'player3') { _root.fx.plai('meli' + (random(2) + 1)); } _root.juego.flasheate.play(); } else { tar.get_hit(dmg / 2 + random(dmg_max / 2)); _root.tipo_ataque = 'combo2'; if (_name == 'player1') { _root.fx.plai('zaro_atack' + (random(2) + 1)); } if (_name == 'player2') { _root.fx.plai('joe_atack' + (random(2) + 1)); } if (_name == 'player3') { _root.fx.plai('meli' + (random(2) + 1)); } } if (combaso == 1) { ++combit; _root.tipo_ataque = _root.combos[combit]; } --atake; hit = 0; } if (body.stun == 0) { if (body.stun == 0 && atake <= 0) { combaso = 0; _root.supercombo = 0; attack = 0; llegue = 0; volver = 1; } } } } function irdestino() { _x = _x + (tar._x - 60 - _x) / speed; _y = _y + (tar._y - _y) / speed; if (Math.abs(_x - (tar._x - 60)) < 20 && Math.abs(_y - tar._y) < 20) { _x = tar._x - 60; _y = tar._y + 10; llegue = 1; } } function irOrigen() { _root.juego.check_deads(); if (_x != orig._x && _y != orig._y) { _x = _x + (orig._x - _x) / speedo; _y = _y + (orig._y - _y) / speedo; if (Math.abs(_x - orig._x) < 15 && Math.abs(_y - orig._y) < 15) { _x = orig._x; _y = orig._y; } } else { _root.juego.ojo_cam.stop_follow(); cd = cd_max; volver = 0; llegue = 0; _root.player_turno = undefined; _root.turno = 0; } } function cast() { loseglow(); body.gotoAndPlay('fire'); cast_magic = 0; } function get_hit(_dmg) { if (en_defensa != 1) { body.gotoAndPlay('bash'); } else { _dmg = Math.floor(_dmg * 0.8); } if (_dmg * (1 - Math.floor(armor / 2) / 100) > _dmg / 2) { dmj = _dmg * (1 - Math.floor(armor / 2) / 100); } else { dmj = Math.floor(_dmg / 2); } life -= dmj; dormido = 0; show_dmg(dmj); } function get_magic(_dmg) { if (en_defensa != 1) { body.gotoAndPlay('bash'); } else { _dmg = Math.floor(_dmg * 0.8); } show_dmg(_dmg); life -= _dmg; dormido = 0; } function show_dmg(_dmg) { _dmg = Math.round(_dmg); _root.juego.attachMovie('numerito', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'dmg': _dmg, 'signo': '- '}); attachMovie('explocion', 'expo' + dis, this.getNextHighestDepth(), {'_x': this['exp' + (random(3) + 1)]._x, '_y': this['exp' + (random(3) + 1)]._y, '_alpha': 100, '_xscale': 150, '_yscale': 150, '_rotation': random(360)}); ++dis; if (_name == 'player1') { _root.fx.plai('zaro_hurt' + (random(2) + 1)); } if (_name == 'player2') { _root.fx.plai('joe_hurt' + (random(2) + 1)); } if (_name == 'player3') { _root.fx.plai('meli_hurt' + (random(2) + 1)); } } function show_dmg2(_dmg) { _dmg = Math.round(_dmg); _root.juego.attachMovie('numerito', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'dmg': _dmg, 'signo': '+ '}); ++dis; } function get_defensive() { body.gotoAndPlay('defence'); defence = 0; en_defensa = 1; volver = 1; } function healme(_heal) { _heal = hp_max / 2; if (life + _heal <= hp_max) { life += _heal; } else { life = hp_max; } show_dmg2(_heal); } function healmepot(_heal) { _heal = hp_max / 2; if (life + _heal <= hp_max) { life += _heal; } else { life = hp_max; } show_dmg2(_heal); } function check_death() { if (life <= 0 && body._alpha > 0) { this.body._alpha -= 10; _root.menu1.barra_cd['punt' + _name]._alpha = 0; cd = cd_max; en_defensa = 0; body.gotoAndStop('stand'); } if (body._alpha <= 0 && dbody._alpha < 100) { dbody._alpha += 10; } else { if (life > 0) { dbody._alpha = 0; } } if (life > 0 && body._alpha < 100) { this.body._alpha += 10; _root.menu1.barra_cd['punt' + _name]._alpha = 100; } if (life <= 0) { cd = cd_max; } } function maname(_mana) { _mana = mana_max / 2; if (mana + _mana <= mana_max) { mana += _mana; } else { mana = mana_max; } show_dmg2(_mana); } function check_buffs() { --dormido; --poisoned; if (dormido > 0) { cd_tic = 0; sleepo._alpha = 100; } else { if (rapidez > 0) { cd_tic = 2; haste._alpha = 100; sleepo._alpha = 0; } else { cd_tic = 1; haste._alpha = 0; sleepo._alpha = 0; } } if (poisoned > 0) { life -= poison_dmg; } } function poison(_dmg, _time) { poisoned = _time * 24; poison_dmg = _dmg; } function speedup(_time) { rapidez = 4; } function sleep(_time) { dormido = _time * 24; } function bash(_per) { dormido = 0; _cunt = cd_max * (_per / 100); cd += _cunt; if (cd > cd_max) { cd = cd_max; } } function getglow(_num) { glowing = 1; glow_alpha = 0.6; glow_blurX = 5; glow_blurY = 5; glow_strength = 10; glow_quality = 3; var v1 = new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); v1 = new flash.filters.GlowFilter(16776960, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); body.filters = [v1]; } function loseglow() { glowing = 0; filter_glow = Null; body.filters = [filter_glow]; } function manage_glow() { glow_alpha = 0.6; glow_blurX = 5; glow_blurY = 5; glow_strength = 10; glow_quality = 3; if (glow_dir == 0) { glow_strength2 += 1; if (glow_strength2 >= 10) { glow_dir = 1; } } if (glow_dir == 1) { glow_strength2 -= 1; if (glow_strength2 <= 0) { glow_dir = 0; } } filter_glow = new flash.filters.GlowFilter(16776960, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); body.filters = [filter_glow]; } function buff(_tipo) { if (_tipo == 'armor') { this.armor = 100; armorio._alpha = 100; } } itemm._x = -9999; attack = 0; magic = 0; dmg_hit = 20; cast_magic = 0; cd_tic = 1; _root.menu1.barra_cd.attachMovie('punterou', 'punt' + _name, _root.menu1.barra_cd.getNextHighestDepth(), {'_x': p1._x, '_y': p1._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'tar': this}); defence = 0; _root.listoanimacionsuper = 0; onEnterFrame = function () { check_dephts(); check_death(); if (glowing == 1) { manage_glow(); } if (attack == 1 && _root.listoanimacionsuper == 0) { atack(); } if (defence == 1) { get_defensive(); } if (volver == 1) { irOrigen(); } if (cast_magic == 1) { cast(); } if (_root.turno == 0 && _root.juegoterminado != 1) { cd -= cd_tic; if (cd < 0) { cd = 0; } check_buffs(); loseglow(); if (cd <= 0) { --rapidez; en_defensa = 0; _root.player_turno = this; _root.turno = 1; _root.abilitado = 1; getglow(); } } }; llegue = 0; speed = 5; speedo = 3; llegue = 0; dormido = 0; rapidez = 0; poisoned = 0; glowing = 0; glow_dir = 0; glow_strength2 = 2; } instance haste of movieClip 637 { onClipEvent (load) { _alpha = 0; } } instance armorio of movieClip 877 { onClipEvent (load) { _alpha = 0; } } instance body of movieClip 786 { onClipEvent (load) { head.pelo.gotoAndStop(1); head.detalle.gotoAndStop(13); gamba1.gotoAndStop(4); gamba2.gotoAndStop(3); torso.armor.gotoAndStop(5); torso.cinto.gotoAndStop(4); cuchi1.gotoAndStop(2); cuchi2.gotoAndStop(2); } } instance dbody of movieClip 791 { onClipEvent (load) { head.pelo.gotoAndStop(1); head.detalle.gotoAndStop(13); gamba1.gotoAndStop(4); gamba2.gotoAndStop(3); torso.armor.gotoAndStop(5); torso.cinto.gotoAndStop(4); cuchi1.gotoAndStop(2); cuchi2.gotoAndStop(2); _alpha = 0; } } instance sleepo of movieClip 801 { onClipEvent (load) { _alpha = 0; _xscale = _xscale * -1; } } frame 2 { lvl = _root.p2_lvl; nombre = 'Joey'; intt = _root.p2_int * lvl + _root.p2_bint; str = _root.p2_str * lvl + _root.p2_bstr; agi = _root.p2_agi * lvl + _root.p2_bagi; life = 10 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = _root.p2_barmor + agi / 10; dmg = _root.p2_bdmg + str * 1.5; dmg_max = _root.p2_bdmg + dmg / 4; life = _root.p2_hp_actual; mana = _root.p2_mana_actual; cdloco = 96 - (agi / 40) * 24; if (cdloco > 0) { cd_max = 25 + cdloco; } else { cd_max = 25; } cd = cd_max; if (personaje == 2) { _root.menu1.play2.tar = this; } } instance body of movieClip 830 { onClipEvent (load) { gamba1.gotoAndStop(1); gamba2.gotoAndStop(1); } } instance dbody of movieClip 833 { onClipEvent (load) { gamba1.gotoAndStop(1); gamba2.gotoAndStop(1); _alpha = 0; } } frame 3 { lvl = _root.p3_lvl; nombre = 'Melissa'; intt = _root.p3_int * lvl + _root.p3_bint; str = _root.p3_str * lvl + _root.p3_bstr; agi = _root.p3_agi * lvl + _root.p3_bagi; life = 10 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = _root.p3_barmor + agi / 10; dmg = _root.p3_bdmg + str * 1.5; dmg_max = _root.p3_bdmg + dmg / 4; life = _root.p3_hp_actual; mana = _root.p3_mana_actual; cdloco = 96 - (agi / 40) * 24; if (cdloco > 0) { cd_max = 25 + cdloco; } else { cd_max = 25; } cd = cd_max; if (personaje == 3) { _root.menu1.play3.tar = this; } } instance dbody of movieClip 873 { onClipEvent (load) { _alpha = 0; } } } movieClip 883 numerito { frame 1 { dmgg = ''; dmggg = ''; if (signo == '+ ') { dmgg = signo + dmg; } else { dmggg = '- ' + dmg; } } frame 15 { _alpha = 0; removeMovieClip(this); } } movieClip 884 { frame 1 { function verificar_switches() { if (_root.juego.p1.area.hitTest(this) && presionado == 0) { if (_parent.shop != 2 && _parent.shop != 1 && quest == undefined) { _root.texto.items_found = coment; _root.texto.gotoAndStop('dialogo'); _root.texto.si = 1; _root.pausado = 1; } else { if (quest == undefined) { _root.arreglo_item_shop = []; _root.arreglo_item_shop = _parent.arreglo_venta_item; _root.pausado = 1; if (_parent.shop == 1) { _root.attachMovie('menu_shop', 'menusito' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); } if (_parent.shop == 2) { _root.attachMovie('menu_magicshop', 'menusito' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0}); } } else { if (quest == 1) { _root.texto.items_found = coment; _root.texto.gotoAndStop(coment); _root.texto.si = 1; _root.pausado = 1; _parent.q.nextFrame(); _root.arreglo_puertas.push(this.nombre); ++quest; } else { if (quest == 2) { _root.texto.items_found = coment2; _root.texto.gotoAndStop('dialogo'); _root.texto.si = 1; _root.pausado = 1; } else { if (quest == 3) { _root.texto.gotoAndStop(coment3); _root.texto.si = 1; _root.pausado = 1; _parent.q._alpha = 0; _root.arreglo_puertas.push(reward); ++quest; } else { if (quest == 4) { _root.texto.items_found = coment4; _root.texto.gotoAndStop('dialogo'); _root.texto.si = 1; _root.pausado = 1; } } } } } } mirar(); presionado = 1; } } function verificar_switches2() { if (_root.juego.p1.area.hitTest(this) && presionado == 0) { _root.arreglo_puertas[pos] = _root.arreglo_puertas[_root.arreglo_puertas.length - 1]; _root.arreglo_puertas.pop(); presionado = 1; } } function mirar() { if (_parent._x > _root.juego.p1._x && viendo != 'izq') { viendo = 'izq'; tar._xscale *= -1; _root.juego.p1.mirar('der'); } if (_parent._x < _root.juego.p1._x && viendo != 'der') { viendo = 'der'; tar._xscale *= -1; _root.juego.p1.mirar('izq'); } } this._alpha = 0; presionado = 0; pos = 0; onEnterFrame = function () { encontre = 0; if (precond != undefined) { it = 0; while (it < _root.arreglo_puertas.length) { if (precond == _root.arreglo_puertas[it] && quest == undefined) { quest = 1; _parent.q._alpha = 100; coment = comentaux; } ++it; } } verificar_switches(); if (!_root.juego.p1.area.hitTest(this) && presionado == 1) { presionado = 0; if (viendo != _parent.viendo) { tar._xscale *= -1; viendo = _parent.viendo; } } }; viendo = _parent.viendo; } } movieClip 886 { frame 1 { this._alpha = 0; } } movieClip 893 { frame 2 { stop(); } } movieClip 897 { frame 1 { stop(); } } movieClip 904 { frame 2 { stop(); } } movieClip 911 { frame 2 { stop(); } } movieClip 916 { frame 2 { stop(); } } movieClip 927 { frame 4 { stop(); } } movieClip 928 { } movieClip 943 { frame 1 { stop(); } } movieClip 944 { frame 1 { stop(); } } movieClip 945 { frame 1 { camina = 0; golpeado = 0; } frame 39 { stun = 0; gotoAndPlay('stand'); } } // unknown tag 88 length 78 movieClip 950 { frame 1 { stop(); } } movieClip 951 npc { frame 1 { _name = 'columna' + _root.columna++; if (viendo != 'der') { body._xscale *= -1; viendo = 'izq'; } onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } instance of movieClip 884 { onClipEvent (load) { if (_parent.quest == undefined) { comentaux = _parent.coment; _parent.coment = _parent.precoment; } nombre = _parent.nombre; reward = _parent.reward; coment = _parent.coment; coment2 = _parent.coment2; coment3 = _parent.coment3; coment4 = _parent.coment4; tar = _parent.body; quest = _parent.quest; precond = _parent.precond; } } instance body of movieClip 945 { onClipEvent (load) { cabeza.peinado.gotoAndStop(_parent.ropa[0]); torso.vestido.gotoAndStop(_parent.ropa[1]); hombro1.gotoAndStop(_parent.ropa[2]); hombro2.gotoAndStop(_parent.ropa[3]); guante1.gotoAndStop(_parent.ropa[4]); guante2.gotoAndStop(_parent.ropa[5]); gamba1.gotoAndStop(_parent.ropa[6]); gamba2.gotoAndStop(_parent.ropa[7]); bota1.gotoAndStop(_parent.ropa[8]); bota2.gotoAndStop(_parent.ropa[9]); mainhand.gotoAndStop(_parent.ropa[10]); } } instance q of movieClip 950 { onClipEvent (load) { _alpha = 0; if (_parent.quest > 0) { _alpha = 100; } if (_parent.quest == 1) { gotoAndStop(1); } if (_parent.quest == 2) { gotoAndStop(2); } if (_parent.quest == 3) { gotoAndStop(3); } if (_parent.quest == 4) { _alpha = 0; } } } } movieClip 956 { } movieClip 957 msleep { frame 1 { stop(); _alpha = 0; soundea = 0; onEnterFrame = function () { if (_root.ultimate == 1) { _alpha = 100; if (soundea == 0) { _root.fx.plai('joey ultiwave'); soundea = 1; } play(); } }; } frame 25 { di = 0; while (di < _root.juego.enemy_count) { _root.juego['ene' + di].sleep(2); ++di; } } frame 45 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 962 { } movieClip 963 { instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } removeMovieClip(_parent); } } } } movieClip 964 { } movieClip 966 { } movieClip 968 { instance golpe of movieClip 563 { onClipEvent (load) { knockback = 2; dmg = 5; } onClipEvent (enterFrame) { for (var i in _root.l.enemy) { if (_root.l.enemy[i].golpeado == 0 and this.hitTest(_root.l.enemy[i].targetgolpe)) { _root.l.enemy[i].hp -= Math.round(_root.sthero.dmg_normal * (100 - _root.l.enemy[i].armor_normal) / 100); _root.l.enemy[i].golpeado_anima = 1; _root.sthero.combo += 1; _root.sthero.tiempocombo = 30; _root.l.enemy[i].poison.gotoAndStop(2); _root.l.enemy[i].poison.tiempo = 60; removeMovieClip(_parent); if (_root.l.enemy[i]._x > _parent._x and _parent.speed > 0) { _root.l.enemy[i]._x += 30; removeMovieClip(_parent); } else { if (_root.l.enemy[i]._x < _parent._x and _parent.speed < 0) { _root.l.enemy[i]._x -= 30; removeMovieClip(_parent); } } } } } } } movieClip 969 { } movieClip 971 { } movieClip 972 { } movieClip 973 { instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } removeMovieClip(_parent); } } } } movieClip 976 { } movieClip 979 { } movieClip 980 flecha { frame 10 { stop(); } } movieClip 981 missile { frame 1 { function colision() { if (this.hitTest(tar2) && pegue == 0) { dmg = 2 * spell_power; if (nombre == 'daga') { dmg *= 0.8; _root.player_turno.tar.poison(dmg / 144, 10); } if (nombre == 'ice') { if (random(10) < 5) { _root.player_turno.tar.bash(25); } dmg *= 0.8; } if (nombre == 'sonic') { dmg *= 4; } if (nombre == 'wave') { dmg *= 3; } _root.player_turno.tar.get_magic(dmg); pegue = 1; } } function irDestino(_xx, _yy) { if (_x != _xx || _yy != tar._yy) { _x = _x + (_xx - _x) / speed; _y = _y + (_yy - _y) / speed; } } speedx = 0; speedy = 0; this._xscale *= escalita; speed = 25; this.gotoAndStop(nombre); cd2 = 12; if (nombre == 'daga') { cd2 = 24; } this._x = tar1._x; this._y = tar1._y; desx = this._x + (tar2._x - tar1._x) * 4; desy = this._y + (tar2._y - tar1._y) * 4; pegue = 0; cd = 48; _alpha = 0; onEnterFrame = function () { --cd2; if (cd2 <= 0) { _alpha = 100; irDestino(desx, desy); colision(); if (pegue == 1) { --cd; if (cd < 0) { _root.player_turno.volver = 1; removeMovieClip(this); } } } }; } frame 1 { stop(); } } // unknown tag 88 length 47 movieClip 984 { } movieClip 985 mheal_ene { frame 1 { _alpha = 0; c_win = 1; while (c_win < _root.juego.enemy_count) { _root.juego['ene' + c_win].healme(spell_power); ++c_win; } _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 989 { } movieClip 991 { } movieClip 992 { } movieClip 995 meteor2 { frame 1 { _xscale = _xscale * escalita; } frame 13 { dmg = 1.5 * spell_power; tar.get_magic(dmg); } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.spell * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 30) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 23 { removeMovieClip(this); } } movieClip 997 meteor { frame 1 { _xscale = _xscale * escalita; } frame 13 { dmg = 1.5 * spell_power; tar.get_magic(dmg); _root.juego.ojo_cam.tremor = 24; } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.spell * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 30) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 23 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 1002 { frame 1 { function irDestino(_xx, _yy) { if (_x != _xx && _yy != tar._yy) { _x = _x + (_xx - _x) / speed; _y = _y + (_yy - _y) / speed; } } function follow(_tar) { tar = _tar; } function stop_follow(_tar) { tar = undefined; } function goScale(_scale) { if (_root.juego._xscale > _scale) { _root.juego._xscale += (_scale - _root.juego._xscale) / speed; _root.juego._yscale += (_scale - _root.juego._yscale) / speed; } if (_root.juego._xscale < _scale) { _root.juego._xscale += (_scale - _root.juego._xscale) / speed; _root.juego._yscale += (_scale - _root.juego._yscale) / speed; } } this._alpha = 0; xx = _x; yy = _y; speed = 8; tremor = 0; scale_max = _root.juego._xscale; scale_min = _root.juego._xscale * 2; onEnterFrame = function () { if (tar == undefined) { irDestino(xx, yy); goScale(scale_max); } else { irDestino(tar._x, tar._y); goScale(scale_min); } if (tremor > 0) { --tremor; _x = _x + (random(5) - random(5)); _y = _y + (random(5) - random(5)); } }; } } button 1005 { on (press) { if (bup._alpha == 100) { clear_screen(); first_show -= max_items; last_show = first_show + max_items; place_items(first_show, last_show); item_selected = undefined; } } } button 1008 { on (press) { if (bdown._alpha == 100) { clear_screen(); first_show += max_items; last_show = first_show + max_items; place_items(first_show, last_show); item_selected = undefined; } } } button 1011 { on (press) { if (item_selected != undefined && bsell._alpha == 100) { if (_root.venta == 1) { _root.gold += item_selected.price; delete_item(item_selected.nombre); item_selected = undefined; } else { if (item_selected.nombre == 'heal pot' && _root.cant_items[0] > 0) { --_root.cant_items[0]; _root.gold += item_selected.price; } if (item_selected.nombre == 'mana pot' && _root.cant_items[1] > 0) { --_root.cant_items[1]; _root.gold += item_selected.price; } if (item_selected.nombre == 'life vial' && _root.cant_items[2] > 0) { --_root.cant_items[2]; _root.gold += item_selected.price; } } clear_screen(); place_items(first_show, last_show); _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } } movieClip 1022 item_equip { frame 1 { function manage_glow() { glow_alpha = 0.6; glow_blurX = 5; glow_blurY = 5; glow_strength = 10; glow_quality = 3; if (glow_dir == 0) { glow_strength2 += 1; if (glow_strength2 >= 10) { glow_dir = 1; } } if (glow_dir == 1) { glow_strength2 -= 1; if (glow_strength2 <= 0) { glow_dir = 0; } } var v2 = new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); v2 = new flash.filters.GlowFilter(16776960, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); this.filters = [v2]; } function loseglow() { filter_glow = Null; this.filters = [filter_glow]; this.glowing = 0; } comparar = 1; gotoAndStop(nombre); onPress = function () { _parent.item_selected = this; _root.fx.plai('b1'); }; glow_dir = 0; glow_strength2 = 2; glowing = 0; onEnterFrame = function () { if (_parent.item_selected._name == _name) { manage_glow(); } else { loseglow(); } }; } frame 2 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 3; str = 1; agi = 0; intt = 0; price = 10; } frame 3 { tipo = 'body'; atributo = 'armor'; cant_a = 2; str = 0; agi = 0; intt = 0; price = 10; } frame 4 { tipo = 'head'; atributo = 'armor'; cant_a = 3; str = 1; agi = 1; intt = 1; price = 15; } frame 5 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 2; str = 0; agi = 0; intt = 2; price = 8; } frame 6 { tipo = 'head'; atributo = 'armor'; cant_a = 3; str = 2; agi = 1; intt = 2; price = 15; } frame 7 { tipo = 'body'; atributo = 'armor'; cant_a = 3; str = 0; agi = 0; intt = 1; price = 10; } frame 8 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 3; str = 1; agi = 0; intt = 2; price = 10; } frame 9 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 20; str = 5; agi = 2; intt = 0; price = 25; } frame 10 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 10; str = 2; agi = 2; intt = 5; price = 10; } frame 11 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 17; str = 3; agi = 1; intt = 3; price = 10; } frame 12 { tipo = 'head'; atributo = 'armor'; cant_a = 5; str = 2; agi = 0; intt = 6; price = 100; } frame 13 { tipo = 'head'; atributo = 'armor'; cant_a = 10; str = 10; agi = 3; intt = 0; price = 100; } frame 14 { tipo = 'head'; atributo = 'armor'; cant_a = 8; str = 8; agi = 0; intt = 4; price = 100; } frame 15 { tipo = 'body'; atributo = 'armor'; cant_a = 10; str = 10; agi = 2; intt = 0; price = 120; } frame 16 { tipo = 'body'; atributo = 'armor'; cant_a = 5; str = 3; agi = 2; intt = 8; price = 125; } frame 17 { tipo = 'body'; atributo = 'armor'; cant_a = 8; str = 7; agi = 0; intt = 5; price = 100; } frame 18 { tipo = 'head'; atributo = 'armor'; cant_a = 10; str = 5; agi = 0; intt = 15; price = 300; } frame 19 { tipo = 'head'; atributo = 'armor'; cant_a = 17; str = 20; agi = 5; intt = 0; price = 280; } frame 20 { tipo = 'head'; atributo = 'armor'; cant_a = 15; str = 17; agi = 0; intt = 10; price = 250; } frame 21 { tipo = 'body'; atributo = 'armor'; cant_a = 20; str = 20; agi = 4; intt = 0; price = 220; } frame 22 { tipo = 'body'; atributo = 'armor'; cant_a = 10; str = 6; agi = 3; intt = 20; price = 225; } frame 23 { tipo = 'body'; atributo = 'armor'; cant_a = 18; str = 17; agi = 0; intt = 15; price = 210; } frame 24 { tipo = 'head'; atributo = 'armor'; cant_a = 15; str = 10; agi = 0; intt = 25; price = 500; } frame 25 { tipo = 'head'; atributo = 'armor'; cant_a = 30; str = 32; agi = 12; intt = 0; price = 600; } frame 26 { tipo = 'head'; atributo = 'armor'; cant_a = 23; str = 25; agi = 0; intt = 20; price = 500; } frame 27 { tipo = 'body'; atributo = 'armor'; cant_a = 40; str = 30; agi = 12; intt = 0; price = 550; } frame 28 { tipo = 'body'; atributo = 'armor'; cant_a = 20; str = 10; agi = 5; intt = 40; price = 425; } frame 29 { tipo = 'body'; atributo = 'armor'; cant_a = 28; str = 27; agi = 0; intt = 30; price = 410; } frame 30 { tipo = 'head'; atributo = 'armor'; cant_a = 12; str = 8; agi = 0; intt = 20; price = 350; } frame 31 { tipo = 'head'; atributo = 'armor'; cant_a = 20; str = 25; agi = 7; intt = 0; price = 380; } frame 32 { tipo = 'head'; atributo = 'armor'; cant_a = 19; str = 20; agi = 0; intt = 15; price = 350; } frame 33 { tipo = 'body'; atributo = 'armor'; cant_a = 25; str = 25; agi = 6; intt = 0; price = 320; } frame 34 { tipo = 'body'; atributo = 'armor'; cant_a = 15; str = 7; agi = 4; intt = 25; price = 325; } frame 35 { tipo = 'body'; atributo = 'armor'; cant_a = 23; str = 22; agi = 0; intt = 20; price = 310; } frame 36 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 50; str = 10; agi = 5; intt = 0; price = 310; } frame 38 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 37; str = 5; agi = 1; intt = 5; price = 270; } frame 39 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 24; str = 2; agi = 0; intt = 17; price = 290; } frame 40 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 80; str = 15; agi = 7; intt = 0; price = 410; } frame 41 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 70; str = 10; agi = 2; intt = 10; price = 460; } frame 42 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 50; str = 5; agi = 0; intt = 39; price = 470; } frame 43 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 120; str = 25; agi = 8; intt = 0; price = 590; } frame 44 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 100; str = 15; agi = 3; intt = 15; price = 560; } frame 45 { tipo = 'weapon'; atributo = 'dmg'; cant_a = 75; str = 10; agi = 0; intt = 50; price = 570; } } button 1027 { on (press) { if (item_selected != undefined && bbuy._alpha == 100 && _root.gold >= item_selected.price) { _root.gold -= item_selected.price; if (_root.venta == 1) { _root.arreglo_items3.push(item_selected.nombre); item_selected = undefined; } else { if (item_selected.nombre == 'heal pot') { ++_root.cant_items[0]; } if (item_selected.nombre == 'mana pot') { ++_root.cant_items[1]; } if (item_selected.nombre == 'life vial') { ++_root.cant_items[2]; } } clear_screen(); place_items(first_show, last_show); _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } } movieClip 1037 { frame 1 { function place_items(_inicio, _final) { altura = 0; if (_final > _root.arreglo_items_show.length) { _final = _root.arreglo_items_show.length; } it = _inicio; while (it < _final) { if (_root.venta == 1) { this.attachMovie('item_equip', 'item_equip' + i_items, this.getNextHighestDepth(), {'_x': a1._x, '_y': a1._y + altura * 30, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'nombre': _root.arreglo_items_show[it]}); } else { if (_parent.enterframe_correcto == 1) { this.attachMovie('item_consu', 'item_equip' + i_items, this.getNextHighestDepth(), {'_x': a1._x, '_y': a1._y + altura * 30, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'nombre': _root.arreglo_pots[it], 'cant_a': _root.cant_items[it]}); } else { this.attachMovie('item_consu', 'item_equip' + i_items, this.getNextHighestDepth(), {'_x': a1._x, '_y': a1._y + altura * 30, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'nombre': _root.arreglo_pots[it], 'cant_a': 'inf'}); } } ++i_items; ++altura; ++it; } last_show = _final; first_show = _inicio; if (last_show < _root.arreglo_items_show.length) { bdown._alpha = 100; } else { bdown._alpha = 50; } if (first_show != 0) { bup._alpha = 100; } else { bup._alpha = 50; } } function clear_screen() { it = 0; while (it < i_items) { removeMovieClip('item_equip' + it); ++it; } i_items = 0; } function delete_item(_nombre) { detecte = 0; conto = 0; while (detecte == 0) { if (_root.arreglo_items_show[conto] == _nombre) { _root.arreglo_items_show[conto] = _root.arreglo_items_show[_root.arreglo_items_show.length - 1]; _root.arreglo_items_show.pop(); detecte = 1; } else { ++conto; } } item_selected = undefined; } function compara(_obj) { if (_obj.comparar == 1) { comp1.gotoAndStop(_root['p' + _root.player_selected + '_' + _obj.tipo]); if (_obj.str - comp1.str > 0) { signo = '+'; } else { signo = ''; } _root.tool_str = signo + (_obj.str - comp1.str); if (_obj.agi - comp1.agi > 0) { signo = '+'; } else { signo = ''; } _root.tool_agi = signo + (_obj.agi - comp1.agi); if (_obj.intt - comp1.intt > 0) { signo = '+'; } else { signo = ''; } _root.tool_int = signo + (_obj.intt - comp1.intt); if (_obj.cant_a - comp1.cant_a > 0) { signo = '+'; } else { signo = ''; } _root.tool_stat = signo + (_obj.cant_a - comp1.cant_a); } } clear_screen(); i_items = 0; max_items = 7; last_show = 0; first_show = 0; item_selected = undefined; bbuy._alpha = 50; _root.arreglo_pots = []; _root.arreglo_pots.push('heal pot', 'mana pot', 'life vial'); onEnterFrame = function () { if (item_selected != undefined) { precio.text = item_selected.price; compara(item_selected); } else { precio.text = ''; } }; _root.arreglo_items_show = _root.arreglo_items3; place_items(0, 7); last_ps = 1; _root.tool_str = ''; _root.tool_agi = ''; _root.tool_int = ''; _root.tool_stat = ''; signo = ''; } } movieClip 1039 { frame 1 { stop(); _parent.alberto1._alpha = 100; _parent.alberto2._alpha = 50; } frame 2 { _parent.alberto2._alpha = 100; _parent.alberto1._alpha = 50; } } button 1041 { on (press) { displayeroso.gotoAndStop(1); sub_menu.item_selected = undefined; if (enterframe_correcto == 2) { enterframe_correcto = 1; sub_menu.clear_screen(); if (_root.venta == 1) { _root.arreglo_items_show = _root.arreglo_items3; } else { _root.arreglo_items_show = _root.arreglo_items2; } sub_menu.place_items(0, 7); sub_menu.bsell._alpha = 100; sub_menu.bbuy._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } } button 1043 { on (press) { displayeroso.gotoAndStop(2); sub_menu.item_selected = undefined; if (enterframe_correcto == 1) { enterframe_correcto = 2; sub_menu.clear_screen(); if (_root.venta == 1) { _root.arreglo_items_show = _root.arreglo_item_shop; } else { _root.arreglo_items_show = _root.arreglo_venta_pot; } sub_menu.place_items(0, 7); sub_menu.bsell._alpha = 50; sub_menu.bbuy._alpha = 100; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } } button 1045 { on (press) { sub_menu.item_selected = undefined; _root.venta = 1; if (enterframe_correcto == 1) { sub_menu.clear_screen(); _root.arreglo_items_show = _root.arreglo_items3; sub_menu.place_items(0, 7); sub_menu.bsell._alpha = 100; sub_menu.bbuy._alpha = 50; } else { sub_menu.clear_screen(); _root.arreglo_items_show = _root.arreglo_item_shop; sub_menu.place_items(0, 7); sub_menu.bsell._alpha = 50; sub_menu.bbuy._alpha = 100; _root.fx.plai('b1'); } } } button 1047 { on (press) { sub_menu.item_selected = undefined; _root.venta = 2; if (enterframe_correcto == 1) { sub_menu.clear_screen(); _root.arreglo_items_show = _root.arreglo_items2; sub_menu.place_items(0, 7); sub_menu.bsell._alpha = 100; sub_menu.bbuy._alpha = 50; } else { sub_menu.clear_screen(); _root.arreglo_items_show = _root.arreglo_venta_pot; sub_menu.place_items(0, 7); sub_menu.bsell._alpha = 50; sub_menu.bbuy._alpha = 100; _root.fx.plai('b1'); } } } button 1050 { on (press) { _root.pausado = 0; _root.tool_str = ''; _root.tool_agi = ''; _root.tool_int = ''; _root.tool_stat = ''; removeMovieClip(this); } } movieClip 1051 menu_shop { frame 1 { enterframe_correcto = 1; _root.venta = 1; } } button 1060 { on (press) { nombre = 'dagger'; gold_req = 1; level_req = 1; pj = 'p1'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Throws a poison dagger to one enemy, applies poison status (mana cost: 50)'; } on (rollOut) { _root.tooltip = ''; } } button 1062 { on (press) { nombre = 'combo1'; gold_req = 100; level_req = 14; pj = 'p1'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Deal 3 kicks to one enemy (mana cost: 50)'; gold_req = 100; level_req = 15; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1064 { on (press) { nombre = 'combo2'; gold_req = 200; level_req = 18; pj = 'p1'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Deal one light attack and one heavy attack, heavy attacks have a chance to miss (mana cost: 100)'; gold_req = 200; level_req = 20; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1066 { on (press) { nombre = 'sleep'; gold_req = 20; level_req = 14; pj = 'p2'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Induce one enemy into deep sleep (mana cost: 400)'; gold_req = 100; level_req = 15; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1068 { on (press) { nombre = 'bash'; gold_req = 100; level_req = 10; pj = 'p2'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Bash one enemy with the power of music, deals moderate damage, bash attacks slightly prevents enemies moves (mana cost: 100)'; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1070 { on (press) { nombre = 'speed'; gold_req = 120; level_req = 18; pj = 'p2'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Improves speed of one party member (mana cost: 300)'; gold_req = 200; level_req = 20; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1072 { on (press) { nombre = 'sonic'; gold_req = 200; level_req = 20; pj = 'p2'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Blast one enemy with a heavy chord, deals heavy damage (mana cost: 500)'; gold_req = 300; level_req = 25; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1074 { on (press) { nombre = 'meteor'; gold_req = 1; level_req = 1; pj = 'p3'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Strike one enemy with a deadly meteor, deals moderate damage (mana cost: 300)'; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1076 { on (press) { nombre = 'arma'; gold_req = 100; level_req = 15; pj = 'p3'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Summons a storm of meteors upon one enemy, deals massive damage (mana cost: 1000)'; gold_req = 200; level_req = 20; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1078 { on (press) { nombre = 'heal'; gold_req = 1; level_req = 1; pj = 'p3'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Heals the 50% of one party member life (mana cost: 200)'; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1080 { on (press) { nombre = 'poison'; gold_req = 70; level_req = 15; pj = 'p3'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Inflict poison damage over one enemy, poison damage also deals damage over time , moderate damage(mana cost: 500)'; gold_req = 200; level_req = 20; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1082 { on (press) { nombre = 'mheal'; gold_req = 100; level_req = 16; pj = 'p3'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Heals the 50% of the whole party members life (mana cost: 600)'; gold_req = 200; level_req = 20; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1084 { on (press) { nombre = 'icelance'; gold_req = 100; level_req = 20; pj = 'p3'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Strike one enemy with a ice javelin, deals moderate damage with a chance to bash (mana cost: 250)'; gold_req = 300; level_req = 25; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1086 { on (press) { nombre = 'lightning'; gold_req = 150; level_req = 20; pj = 'p3'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Strike one enemy with a deadly lightning, deals heavy damage (mana cost: 500)'; gold_req = 300; level_req = 25; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } button 1088 { on (press) { nombre = 'icestorm'; gold_req = 300; level_req = 24; pj = 'p3'; if (gold_req <= _root.gold && level_req <= _root[pj + '_lvl'] && this[nombre]._alpha == 100) { _root.gold -= gold_req; _root.arreglo_magias.push(nombre); this[nombre]._alpha = 50; _root.fx.plai('b1'); } else { _root.fx.plai('b2'); } } on (rollOver) { _root.tooltip = 'Summon a ice storm over one enemy, deals massive damage with a chance to bash (mana cost: 1000)'; gold_req = 400; level_req = 30; } on (rollOut) { _root.tooltip = ''; gold_req = ''; level_req = ''; } } movieClip 1095 { frame 1 { function search_magic(_nom) { i = 0; while (i < _nom.length) { it = 0; while (it < _root.arreglo_magias.length) { if (_nom[i] == _root.arreglo_magias[it]) { this[_nom[i]]._alpha = 50; } ++it; } ++i; } } _root.tooltip = ''; nom = []; nom.push('dagger', 'combo1', 'combo2', 'bash', 'sleep', 'speed', 'sonic', 'meteor', 'heal', 'arma', 'poison', 'mheal', 'lightning', 'icelance', 'icestorm'); search_magic(nom); } } button 1097 { on (press) { _root.pausado = 0; removeMovieClip(this); } } movieClip 1098 menu_magicshop { } movieClip 1101 { } movieClip 1108 { frame 1 { this._alpha = 0; } frame 3 { this._alpha = 30; } frame 5 { this._alpha = 50; } frame 7 { this._alpha = 100; } frame 27 { this._alpha = 50; } frame 29 { this._alpha = 30; } } movieClip 1109 mana_pot { frame 25 { _root.player_turno.tar.maname(heal); } frame 30 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 1113 m_blizz { frame 10 { dmg = 0.5 * spell_power; _root.player_turno.tar.get_magic(dmg); _root.player_turno.tar.poison(dmg / 100, _time); } frame 19 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 1130 { } movieClip 1131 { instance of movieClip 1130 { onClipEvent (load) { gotoAndPlay(random(10) + 1); } } } movieClip 1132 lightning { frame 1 { _alpha = 0; dir = 1; cd = 15; pegue = 0; onEnterFrame = function () { if (_alpha < 100 && dir == 1) { _alpha = _alpha + 25; } if (_alpha >= 100 && dir == 1) { dmg = 3 * spell_power; if (pegue == 0) { _root.player_turno.tar.get_magic(dmg); } pegue = 1; --cd; if (cd <= 0) { dir = 0; } } if (dir == 0) { _alpha = _alpha - 25; if (_alpha <= 0) { _root.player_turno.volver = 1; removeMovieClip(this); } } }; } } movieClip 1136 item_consu { frame 1 { function manage_glow() { glow_alpha = 0.6; glow_blurX = 5; glow_blurY = 5; glow_strength = 10; glow_quality = 3; if (glow_dir == 0) { glow_strength2 += 1; if (glow_strength2 >= 10) { glow_dir = 1; } } if (glow_dir == 1) { glow_strength2 -= 1; if (glow_strength2 <= 0) { glow_dir = 0; } } var v2 = new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); v2 = new flash.filters.GlowFilter(16776960, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); this.filters = [v2]; } function loseglow() { filter_glow = Null; this.filters = [filter_glow]; this.glowing = 0; } gotoAndStop(nombre); if (nombre == 'heal pot') { price = 50; } if (nombre == 'mana pot') { price = 25; } if (nombre == 'life vial') { price = 200; } onPress = function () { _parent.item_selected = this; _root.fx.plai('b1'); }; glow_dir = 0; glow_strength2 = 2; glowing = 0; onEnterFrame = function () { if (_parent.item_selected._name == _name) { manage_glow(); } else { loseglow(); } }; } } movieClip 1137 iceshock { frame 1 { _xscale = _xscale * escalita; } frame 6 { dmg = 1 * spell_power; _root.player_turno.tar.get_magic(dmg); } frame 9 { dmg = 1.1 * spell_power; _root.player_turno.tar.get_magic(dmg); if (random(10) < 5) { _root.player_turno.tar.bash(25); } } frame 12 { dmg = 1.2 * spell_power; _root.player_turno.tar.get_magic(dmg); if (random(10) < 5) { _root.player_turno.tar.bash(25); } } frame 15 { dmg = 1.4 * spell_power; _root.player_turno.tar.get_magic(dmg); if (random(10) < 5) { _root.player_turno.tar.bash(25); } } frame 15 { hielo._alpha = 50; } frame 19 { hielo._alpha = 30; } frame 22 { hielo._alpha = 10; } frame 23 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 1138 heal_pot { frame 25 { _root.player_turno.tar.healmepot(heal); } frame 30 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 1139 heal_areal { frame 1 { this._alpha = 0; helie = 0; upp = 0; onEnterFrame = function () { if (upp == 0) { _alpha = _alpha + 5; } else { _alpha = _alpha - 5; } if (_alpha > 50 && helie == 0) { ini = 1; while (ini < 4) { _root.juego['player' + ini].healme(heal); ++ini; } helie = 1; } if (_alpha > 80 && helie == 1) { upp = 1; } if (_alpha <= 0 && helie == 1) { _root.player_turno.volver = 1; removeMovieClip(this); } }; } } movieClip 1144 heal { frame 5 { _root.player_turno.tar.healme(heal); } frame 10 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 1147 flashoso { frame 1 { onEnterFrame = function () { this.swapDepths(_root.juego.getNextHighestDepth()); }; } frame 1 { stop(); } } movieClip 1150 { frame 6 { removeMovieClip(_parent); } } movieClip 1151 explocion { } movieClip 1154 { } movieClip 1156 { } movieClip 1161 { frame 1 { stop(); } } movieClip 1165 { frame 1 { gotoAndStop(random(3) + 1); } } movieClip 1169 { frame 1 { stop(); } } movieClip 1176 { frame 1 { stop(); _parent.zerked = 0; } frame 2 { _parent._parent.dmg *= 2; _parent.zerked = 1; } frame 105 { _parent._parent.dmg /= 2; _parent.zerked = 0; } } movieClip 1181 { frame 1 { stop(); } } movieClip 1187 { frame 1 { gotoAndStop(random(5) + 1); } } movieClip 1192 { frame 1 { gotoAndStop(random(4) + 1); } } movieClip 1193 { frame 1 { camina = 0; golpeado = 0; stun = 0; } frame 29 { stun = 0; gotoAndPlay('stand'); } frame 41 { stun = 1; } frame 46 { _parent.hit = 1; } frame 52 { gotoAndPlay('stand'); } frame 65 { camina = 1; golpeado = 0; } frame 70 { stun = 0; } frame 76 { stun = 0; gotoAndPlay('camina'); } frame 97 { stun = 0; gotoAndPlay('camina'); } frame 107 { golpeado = 1; stun = 1; } frame 117 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } } movieClip 1195 { } movieClip 1196 { frame 1 { function hp_bar_change() { life_max = _parent.hp_max; if (_parent.life < 0) { _parent.life = 0; } hp_bar._xscale = _parent.life * hp_bar_max / life_max; if (hp_efect._xscale > hp_bar._xscale) { hp_efect._xscale += (hp_bar._xscale - hp_efect._xscale) / 5; } else { hp_efect._xscale = hp_bar._xscale; } } _root.shield = 0; hp_bar_max = hp_bar._xscale; hp_efect._xscale = 0; hp_efect._xscale = 0; escalie = 1; onEnterFrame = function () { if (escalie == 1 && _parent.life != undefined) { hp_efect._xscale = 0; escalie = 0; } hp_bar_change(); }; } } button 1198 { on (press) { _root.player_turno.tar = this; if (_root.mana_cost <= 1) { _root.player_turno.attack = 1; } else { if (_root.mana_cost != 1) { _root.magic_skill = 'combeate'; _root.juego.casteador.cast(this); } } iene = 1; while (iene <= _root.juego.enemy_count) { _root.juego['ene' + iene].hitt._x = 1000; ++iene; } if (_root.mana_cost == 1) { --_root.juego.charges; _root.listoanimacionsuper = 1; _root.juego.attachMovie('ultizaro', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _root.juego.ojo_cam._x, '_y': _root.juego.ojo_cam._y - 55, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': this, 'time': _root.magictime, 'escalita': 1}); _root.charger = 0; } if (_root.mana_cost > 0) { _root.player_turno.mana -= _root.mana_cost; } _root.mana_cost = 0; _root.abilitado = 0; _root.menu1.barra_cd['punt' + _name].glowing = 0; } on (rollOver) { _root.menu1.barra_cd['punt' + _name].glowing = 1; } on (rollOut) { _root.menu1.barra_cd['punt' + _name].glowing = 0; } } button 1199 { on (press) { _root.player_turno.tar = this; _root.juego.casteador.cast(this); _root.player_turno.mana -= _root.mana_cost; if (_root.mana_cost == 0) { --_root.juego.charges; } iene = 1; while (iene <= _root.juego.enemy_count) { _root.juego['ene' + iene].magic._x = 1000; ++iene; } _root.abilitado = 0; _root.mana_cost = 0; _root.menu1.barra_cd['punt' + _name].glowing = 0; } on (rollOver) { _root.menu1.barra_cd['punt' + _name].glowing = 1; } on (rollOut) { _root.menu1.barra_cd['punt' + _name].glowing = 0; } } movieClip 1202 { } movieClip 1203 { } movieClip 1204 { frame 1 { stop(); } frame 2 { function onEnterFrame() { if (tiempo > -1 and perro == 1) { tiempo -= 1; } if (tiempo < 0 and perro == 1) { gotoAndStop(1); perro = 2; _parent.speed *= 4; } } _parent.speed /= 4; stop(); perro = 1; } } movieClip 1205 { } movieClip 1206 { } movieClip 1207 { frame 9 { stop(); } } movieClip 1208 enemigo tuto { frame 1 { stop(); nombresito = 'Hungry Dog'; chanse_magica = 0; str = 50; agi = 10; intt = 10; life = 300; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.2; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'lance'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25; cd = cd_max; sonido_attack = 'perro_a'; sonido_magia = 'perro_m'; sonido_bash = 'perro_b'; } frame 1 { function check_dephts() { calculin = _x + _y * 100; this.swapDepths(calculin); } function atack() { if (Math.abs(_x - (tar._x + 60)) > 5 || Math.abs(_y - tar._y) > 5) { if (body.camina == 0) { body.camina = 1; body.gotoAndPlay('camina'); } irdestino(); atake = 1; } else { if (body.stun == 0 && atake > 0) { body.gotoAndPlay('ataque'); body.stun = 1; } if (hit == 1) { targetin.get_hit(dmg + random(dmg_max)); _root.fx.plai(sonido_attack); --atake; hit = 0; } if (body.stun == 0) { if (body.stun == 0 && atake <= 0) { attack = 0; volver = 1; } } } } function irdestino() { speed = 5; if (Math.abs(_x - (tar._x + 60)) > 4 || Math.abs(_y - tar._y) > 4) { _x = _x + (tar._x + 60 - _x) / speed; _y = _y + (tar._y - _y) / speed; } } function irOrigen() { _root.juego.check_deads(); if (Math.abs(_x - starxx) > 4 || Math.abs(_y - staryy) > 4) { _x = _x + (starxx - _x) / speed; _y = _y + (staryy - _y) / speed; } else { _root.juego.ojo_cam.stop_follow(this); volver = 0; _root.player_turno = undefined; _root.turno = 0; cd = cd_max; } } function get_magic(_dmg) { _root.fx.plai(sonido_bash); if (en_defensa != 1) { body.gotoAndPlay('bash'); } show_dmg(_dmg); life -= _dmg; dormido = 0; } function cast() { body.gotoAndPlay('magia'); cast_magic = 0; _root.magic_skill = magia[random(cant_magias) + 1]; if (_root.magic_skill == 'meteor') { _root.juego.attachMovie('meteor', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': 1}); ++dis; } if (_root.magic_skill == 'bash') { _root.juego.attachMovie('bash', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': 1}); ++dis; speedup(2); } if (_root.magic_skill == 'sleep') { _root.juego.attachMovie('stun', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': 1}); ++dis; } if (_root.magic_skill == 'missile') { _root.juego.attachMovie('missile', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _x + random(50) - random(50), '_y': _y + random(50) - random(50), '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar1': _root.player_turno, 'tar2': targetin, 'nombre': nombre_misile, 'escalita': -1}); ++dis; } if (_root.magic_skill == 'poison') { _root.juego.attachMovie('poison', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'time': 10, 'escalita': 1}); ++dis; } if (_root.magic_skill == 'armagedon') { _root.juego.attachMovie('armagedon', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': 1}); ++dis; } if (_root.magic_skill == 'iceshock') { _root.juego.attachMovie('iceshock', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': -1}); ++dis; } if (_root.magic_skill == 'mheal_ene') { _root.juego.attachMovie('mheal_ene', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': this._x, '_y': this._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt}); ++dis; } _root.fx.plai(sonido_magia); } function get_hit(_dmg) { _root.fx.plai(sonido_bash); if (en_defensa != 1) { body.gotoAndPlay('bash'); } if (_dmg - armor > _dmg / 2) { dmj = _dmg - Math.floor(armor); } else { dmj = Math.floor(_dmg / 2); } if (_root.charger != 0) { _root.juego.supergauge += random(10) + 12; } life -= dmj; dormido = 0; show_dmg(dmj); } function show_dmg(_dmg) { _dmg = Math.round(_dmg); if (_dmg == 0) { _dmg = 'MISS'; } _root.juego.attachMovie('numerito', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'dmg': _dmg, 'signo': '- '}); attachMovie('explocion', 'expo' + dis, this.getNextHighestDepth(), {'_x': this['exp' + (random(3) + 1)]._x, '_y': this['exp' + (random(3) + 1)]._y, '_alpha': 100, '_xscale': 150, '_yscale': 150, '_rotation': random(360)}); ++dis; } function show_dmg2(_dmg) { _dmg = Math.round(_dmg); if (_dmg == 0) { _dmg = 'MISS'; } _root.juego.attachMovie('numerito', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'dmg': _dmg, 'signo': '+ '}); ++dis; } function healme(_heal) { if (life + _heal <= hp_max) { life += _heal; } else { life = hp_max; } show_dmg2(_heal); } function check_death() { if (life <= 0 && _root.turno == 0) { morir = 1; } if (life <= 0 && _alpha > 0 && morir == 1) { this._alpha -= 10; _root.menu1.barra_cd['punt' + _name]._alpha = 0; cd = cd_max; } if (life > 0 && _alpha < 100) { this._alpha += 10; _root.menu1.barra_cd['punt' + _name]._alpha = 100; morir = 0; } if (life <= 0) { cd = cd_max; } } function check_buffs() { --dormido; --rapidez; --poisoned; if (dormido > 0) { cd_tic = 0; sleepo._alpha = 100; haste._alpha = 0; } else { if (rapidez > 0) { cd_tic = 2; haste._alpha = 100; } else { cd_tic = 1; sleepo._alpha = 0; haste._alpha = 0; } } if (poisoned > 0) { life -= poison_dmg; poisongra._alpha = 100; } else { poisongra._alpha = 0; } } function speedup(_time) { rapidez = _time * 24; } function sleep(_time) { dormido = _time * 24; } function poison(_dmg, _time) { poisoned = _time * 24; poison_dmg = _dmg; } function bash(_per) { dormido = 0; _cunt = cd_max * (_per / 100); cd += _cunt; if (cd > cd_max) { cd = cd_max; } } mana_pot = random(3); life_pot = random(2); vial = random(100); if (vial > 90) { vial = 1; } else { vial = 0; } volver = 0; cd_tic = 1; hitt._x = 99999; magic._x = 99999; dis = 0; starxx = _x; staryy = _y; _root.menu1.barra_cd.attachMovie('punterou', 'punt' + _name, _root.menu1.barra_cd.getNextHighestDepth(), {'_x': p1._x, '_y': p1._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'tar': this}); onEnterFrame = function () { if (life <= 0 && _root.turno == 0) { morir = 1; } check_dephts(); check_death(); nombrin.text = nombresito; if (attack == 1) { _root.juego.ojo_cam.follow(this); atack(); } if (cast_magic == 1) { cast(); } if (volver == 1) { irOrigen(); } if (_root.turno == 0 && _root.juegoterminado != 1 && _root.tutopause != 1) { cd -= cd_tic; check_buffs(); if (cd <= 0) { _root.player_turno = this; _root.turno = 1; targetin = undefined; if (_root.juego.player1.life > 0 || _root.juego.player2.life > 0 || _root.juego.player3.life > 0) { while (targetin == undefined) { taron = _root.juego['player' + (random(3) + 1)]; if (taron.life <= 0) { targetin = undefined; } else { targetin = taron; } } } _root.player_turno.tar = targetin; if (random(100) < chanse_magica) { _root.player_turno.cast_magic = 1; } else { _root.player_turno.attack = 1; } } } }; morir = 0; dormido = 0; rapidez = 0; poisoned = 0; poison_dmg = 0; } instance sleepo of movieClip 801 { onClipEvent (load) { _alpha = 0; } } instance haste of movieClip 637 { onClipEvent (load) { _alpha = 0; } } } movieClip 1211 { } movieClip 1213 { } movieClip 1217 { frame 1 { stop(); } } movieClip 1223 { frame 1 { stop(); } } movieClip 1225 { } movieClip 1227 { } movieClip 1228 { } movieClip 1231 { frame 1 { stop(); } } movieClip 1239 { frame 1 { stop(); } frame 10 { } } movieClip 1241 { } movieClip 1250 { frame 1 { stop(); } } movieClip 1273 { frame 60 { gotoAndPlay(1); } instance of movieClip 766 { onClipEvent (enterFrame) { for (var i in _root.l.enemy) { if (_root.l.enemy[i].golpeado == 0 and this.hitTest(_root.l.enemy[i].targetgolpe)) { _root.l.enemy[i].hp -= Math.round(_root.sthero.dmg_fire * (1 + _root.sthero.tree_a2 * 0.2) * (100 - _root.l.enemy[i].armor_fire) / 100); _root.l.enemy[i].golpeado_anima = 1; _root.sthero.combo += 1; _root.sthero.tiempocombo = 30; if (_root.sthero.tree_a3 > 0) { _root.l.enemy[i].fire.gotoAndStop(2); _root.l.enemy[i].fire.tiempo = _root.sthero.tree_a3 * 48; } } } } } } movieClip 1276 { frame 1 { stop(); } } movieClip 1278 { } movieClip 1283 { frame 1 { camina = 0; golpeado = 0; sas = 0; ses = 0; sis = 0; sos = 0; golpeado = 0; stun = 0; camina = 0; } frame 50 { stun = 0; gotoAndPlay('stand'); } frame 100 { stun = 1; } frame 134 { gotoAndPlay('stand'); } frame 200 { camina = 1; golpeado = 0; } frame 207 { stun = 0; } frame 219 { stun = 0; gotoAndPlay('camina'); } frame 300 { golpeado = 1; stun = 1; } frame 303 { mySound = new Sound(this); tune = 'lizardman_bash'; if (_root.l.hero._x - this._x > 0) { volumen = (100 * (_root.l.hero._x - this._x) / 700 - 100) * -1; } else { volumen = (100 * (this._x - _root.l.hero._x) / 700 - 100) * -1; } if (volumen > 0) { mySound.setVolume(volumen); mySound.attachSound(tune); mySound.start(0, 1); } } frame 318 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 325 { stun = 1; } frame 329 { _parent.hit = 1; } frame 335 { gotoAndPlay('stand'); stun = 0; } } button 1285 { on (press) { _root.player_turno.tar = this; if (_root.mana_cost <= 1) { _root.player_turno.attack = 1; } else { if (_root.mana_cost != 1) { _root.magic_skill = 'combeate'; _root.juego.casteador.cast(this); } } iene = 1; while (iene <= _root.juego.enemy_count) { _root.juego['ene' + iene].hitt._x = 1000; ++iene; } if (_root.mana_cost == 1) { --_root.juego.charges; _root.listoanimacionsuper = 1; _root.juego.attachMovie('ultizaro', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _root.juego.ojo_cam._x, '_y': _root.juego.ojo_cam._y - 55, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': this, 'time': _root.magictime, 'escalita': 1}); _root.charger = 0; if (_root.nombrecombo == 'tiger') { _root.fx.plai('zaro_sp2'); } if (_root.nombrecombo == 'cobra') { _root.fx.plai('zaro_sp1'); } } if (_root.mana_cost > 0) { _root.player_turno.mana -= _root.mana_cost; } _root.mana_cost = 0; _root.abilitado = 0; _root.menu1.barra_cd['punt' + _name].glowing = 0; } on (rollOver) { _root.menu1.barra_cd['punt' + _name].glowing = 1; } on (rollOut) { _root.menu1.barra_cd['punt' + _name].glowing = 0; } } movieClip 1288 { frame 1 { camina = 0; golpeado = 0; stun = 0; } frame 39 { stun = 0; gotoAndPlay('stand'); } frame 42 { stun = 1; } frame 45 { _parent.hit = 1; } frame 51 { gotoAndPlay('stand'); } frame 60 { camina = 1; golpeado = 0; } frame 67 { stun = 0; } frame 75 { stun = 0; gotoAndPlay('camina'); } frame 79 { golpeado = 1; stun = 1; } frame 89 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 93 { stun = 1; } frame 110 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } } movieClip 1293 { } movieClip 1295 { } movieClip 1298 { frame 15 { stop(); } } movieClip 1299 { frame 1 { camina = 0; golpeado = 0; teleporto = 1; stun = 0; } frame 23 { stun = 0; gotoAndPlay('stand'); } frame 32 { stun = 1; } frame 35 { _parent.hit = 1; } frame 39 { stun = 0; gotoAndPlay('stand'); } frame 48 { camina = 1; golpeado = 0; } frame 58 { stun = 0; gotoAndPlay('camina'); } frame 78 { golpeado = 1; stun = 1; } frame 93 { gotoAndPlay('stand'); } frame 97 { gotoAndPlay('stand'); } frame 117 { stun = 1; } frame 151 { golpeado = 0; stun = 0; gotoAndPlay('camina'); } } movieClip 1309 { frame 1 { stop(); } } movieClip 1317 { frame 1 { camina = 0; golpeado = 0; teleporto = 1; stun = 0; } frame 13 { stun = 0; gotoAndPlay('stand'); } frame 22 { stun = 1; } frame 27 { _parent.hit = 1; } frame 31 { gotoAndPlay('stand'); } frame 40 { camina = 1; golpeado = 0; } frame 50 { stun = 0; gotoAndPlay('camina'); } frame 70 { golpeado = 1; stun = 1; } frame 85 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 91 { mySound = new Sound(this); tune = 'babosa_tele1'; if (_root.l.hero._x - this._x > 0) { volumen = (100 * (_root.l.hero._x - this._x) / 700 - 100) * -1; } else { volumen = (100 * (this._x - _root.l.hero._x) / 700 - 100) * -1; } if (volumen > 0) { mySound.setVolume(volumen); mySound.attachSound(tune); mySound.start(0, 1); } } frame 97 { this._y += random(50); this._x += random(300); } frame 97 { mySound = new Sound(this); tune = 'babosa_tele'; if (_root.l.hero._x - this._x > 0) { volumen = (100 * (_root.l.hero._x - this._x) / 700 - 100) * -1; } else { volumen = (100 * (this._x - _root.l.hero._x) / 700 - 100) * -1; } if (volumen > 0) { mySound.setVolume(volumen); mySound.attachSound(tune); mySound.start(0, 1); } } frame 106 { gotoAndPlay('stand'); } } movieClip 1321 { } movieClip 1329 { frame 1 { stop(); } } movieClip 1337 { frame 1 { stop(); } } movieClip 1345 { frame 1 { stop(); } } movieClip 1365 { frame 1 { camina = 0; golpeado = 0; stun = 0; } frame 20 { stun = 0; gotoAndPlay('stand'); } frame 29 { stun = 1; } frame 42 { gotoAndPlay('stand'); } frame 47 { camina = 1; golpeado = 0; } frame 57 { stun = 0; gotoAndPlay('camina'); } frame 77 { golpeado = 1; stun = 1; } frame 92 { gotoAndPlay('stand'); } frame 100 { this._y += random(50); numero = random(2); if (numero == 1) { this._x += 300; } else { this._x -= 300; } } frame 106 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 135 { _root.l.shockwave = _root.l.attachMovie('devil1', 'flecha' + getTimer(), _root.l.getNextHighestDepth()); _root.l.empujar.push(_root.l.shockwave); _root.l.shockwave.swapDepths(_root.l.shockwave._x / 90 + (_root.l.shockwave._y + 60)); _root.l.shockwave._x = this._x; _root.l.shockwave._y = this._y; _root.l.shockwave.speed = speedsumon; _root.l.shockwave.dmg = fuerzasumon; _root.l.shockwave.hp = hpsumon; } frame 144 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 173 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } } movieClip 1374 { frame 1 { gotoAndStop(random(4) + 1); } } movieClip 1379 { frame 1 { gotoAndStop(random(4) + 1); } } movieClip 1382 { frame 1 { camina = 0; golpeado = 0; stun = 0; } frame 41 { stun = 0; gotoAndPlay('stand'); } frame 44 { stun = 1; } frame 50 { _parent.hit = 1; } frame 53 { gotoAndPlay('stand'); } frame 59 { camina = 1; golpeado = 0; } frame 66 { stun = 0; } frame 76 { stun = 0; gotoAndPlay('camina'); } frame 80 { golpeado = 1; stun = 1; } frame 90 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 99 { if (this._xscale == 100) { velosidash = 20; mira = 100; } else { velosidash = -20; mira = -100; } } frame 100 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 101 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 102 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 103 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 104 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 105 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 106 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 107 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 108 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 109 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 110 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 111 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 112 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 113 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 114 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 115 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 116 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 117 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 118 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 119 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 120 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 121 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 122 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 123 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 124 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 125 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 126 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 127 { stun = 0; gotoAndPlay('camina'); } } movieClip 1387 { } movieClip 1388 { } movieClip 1389 { } movieClip 1391 { frame 1 { camina = 0; golpeado = 0; stun = 0; } frame 41 { stun = 0; gotoAndPlay('stand'); } frame 44 { stun = 1; } frame 50 { _parent.hit = 1; } frame 53 { gotoAndPlay('stand'); } frame 59 { camina = 1; golpeado = 0; } frame 66 { stun = 0; } frame 76 { stun = 0; gotoAndPlay('camina'); } frame 80 { golpeado = 1; stun = 1; } frame 90 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 99 { if (this._xscale == 100) { velosidash = 20; mira = 100; } else { velosidash = -20; mira = -100; } } frame 100 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 101 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 102 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 103 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 104 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 105 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 106 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 107 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 108 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 109 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 110 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 111 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 112 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 113 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 114 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 115 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 116 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 117 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 118 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 119 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 120 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 121 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 122 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 123 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 124 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 125 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 126 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 127 { stun = 0; gotoAndPlay('camina'); } } movieClip 1393 { } movieClip 1395 { } movieClip 1397 { } movieClip 1399 { } movieClip 1401 { } movieClip 1402 { } movieClip 1405 { } movieClip 1410 { } movieClip 1412 { frame 1 { camina = 0; golpeado = 0; stun = 0; } frame 45 { stun = 0; gotoAndPlay('stand'); } frame 55 { stun = 1; } frame 60 { _parent.hit = 1; } frame 71 { gotoAndPlay('stand'); } frame 80 { camina = 1; golpeado = 0; } frame 90 { stun = 0; } frame 101 { } frame 103 { stun = 0; gotoAndPlay('camina'); } frame 120 { golpeado = 1; stun = 1; } frame 128 { golpeado = 0; stun = 1; gotoAndPlay('stand'); } frame 135 { if (this._xscale == -100) { velosidash = 30; mira = -100; } else { velosidash = -30; mira = 100; } } frame 136 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 137 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 138 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 139 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 140 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 141 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 142 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 143 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 144 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 145 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 146 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 147 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 148 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 149 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 150 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 151 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 155 { stun = 0; gotoAndPlay('camina'); } frame 160 { stun = 1; } frame 164 { } frame 176 { gotoAndPlay('stand'); } } movieClip 1415 { } movieClip 1417 { } movieClip 1419 { } movieClip 1421 { } movieClip 1424 { frame 1 { camina = 0; golpeado = 0; stun = 0; } frame 39 { stun = 0; gotoAndPlay('stand'); } frame 49 { stun = 1; } frame 52 { _parent.hit = 1; } frame 65 { gotoAndPlay('stand'); } frame 74 { camina = 1; golpeado = 0; } frame 79 { stun = 0; } frame 85 { } frame 87 { stun = 0; gotoAndPlay('camina'); } frame 104 { golpeado = 1; stun = 1; } frame 112 { golpeado = 0; stun = 1; gotoAndPlay('stand'); } frame 119 { if (this._xscale == -100) { velosidash = 30; mira = -100; } else { velosidash = -30; mira = 100; } } frame 120 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 121 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 122 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 123 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 124 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 125 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 126 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 127 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 128 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 129 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 130 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 131 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 132 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 133 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 134 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 135 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 139 { stun = 0; gotoAndPlay('camina'); } frame 144 { stun = 1; } frame 148 { } frame 160 { gotoAndPlay('stand'); } } movieClip 1428 { } movieClip 1430 { } movieClip 1432 { } movieClip 1434 { } movieClip 1436 { } movieClip 1438 { } movieClip 1440 { } movieClip 1442 { } movieClip 1444 { } movieClip 1450 { frame 1 { camina = 0; golpeado = 0; stun = 0; } frame 41 { stun = 0; gotoAndPlay('stand'); } frame 58 { stun = 1; } frame 61 { _parent.hit = 1; } frame 67 { gotoAndPlay('stand'); } frame 74 { camina = 1; golpeado = 0; } frame 82 { stun = 0; } frame 89 { } frame 91 { stun = 0; gotoAndPlay('camina'); } frame 108 { golpeado = 1; stun = 1; } frame 117 { golpeado = 0; stun = 1; gotoAndPlay('stand'); } frame 123 { if (this._xscale == -100) { velosidash = 30; mira = -100; } else { velosidash = -30; mira = 100; } } frame 124 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 125 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 126 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 127 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 128 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 129 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 130 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 131 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 132 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 133 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 134 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 135 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 136 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 137 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 138 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 139 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 145 { stun = 0; gotoAndPlay('camina'); } frame 152 { stun = 1; } frame 166 { gotoAndPlay('stand'); } } movieClip 1454 { } movieClip 1456 { } movieClip 1467 { frame 2 { camina = 0; golpeado = 0; teleporto = 1; stun = 0; } frame 12 { stun = 0; gotoAndPlay('stand'); } frame 15 { stun = 1; } frame 31 { gotoAndPlay('stand'); } frame 46 { camina = 1; golpeado = 0; } frame 63 { stun = 0; gotoAndPlay('camina'); } frame 67 { golpeado = 1; stun = 1; } frame 77 { gotoAndPlay('dash'); } frame 100 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 136 { stun = 1; randomico = random(3); if (randomico == 0) { gotoAndPlay('sumon'); } if (randomico == 1) { gotoAndPlay('kazuo'); } if (randomico == 2) { gotoAndPlay('teleportarse'); } } frame 157 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 187 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 217 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } } movieClip 1473 { } movieClip 1475 { } movieClip 1478 { } movieClip 1479 { } movieClip 1480 { frame 2 { camina = 0; golpeado = 0; teleporto = 1; } frame 26 { stun = 0; gotoAndPlay('stand'); } frame 36 { stun = 1; } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 45 { gotoAndPlay('stand'); } frame 51 { camina = 1; golpeado = 0; } frame 64 { stun = 0; gotoAndPlay('camina'); } frame 84 { golpeado = 1; stun = 1; } frame 95 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 100 { if (this._xscale == 100) { velosidash = 20; mira = 100; } else { velosidash = -20; mira = -100; } } frame 101 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 102 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 103 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 104 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 105 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 106 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 107 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 108 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 109 { this._x += velosidash; this._xscale = mira; stun = 1; } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 113 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } } movieClip 1483 { } movieClip 1485 { } movieClip 1487 { } movieClip 1489 { } movieClip 1491 { } movieClip 1492 { frame 2 { camina = 0; golpeado = 0; stun = 0; } frame 15 { stun = 0; gotoAndPlay('stand'); } frame 18 { stun = 1; } frame 23 { _parent.hit = 1; } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 27 { gotoAndPlay('stand'); } frame 33 { camina = 1; golpeado = 0; } frame 40 { stun = 0; } frame 47 { stun = 0; gotoAndPlay('camina'); } frame 51 { golpeado = 1; stun = 1; } frame 61 { gotoAndPlay('stand'); } frame 70 { if (this._xscale == 100) { velosidash = 30; mira = 100; } else { velosidash = -30; mira = -100; } } frame 71 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 72 { this._x += velosidash; this._xscale = mira; stun = 1; } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 73 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 74 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 75 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 76 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 77 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 78 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 79 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 80 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 81 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 82 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 83 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 84 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 85 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 86 { stun = 0; gotoAndPlay('camina'); } frame 93 { stun = 1; randomico = random(3); if (randomico == 0 and head.zerked == 0) { gotoAndPlay('zerk'); } else { if (randomico == 0) { gotoAndPlay('dash'); } } if (randomico == 1) { gotoAndPlay('dash'); } if (randomico == 2) { gotoAndPlay('evacion'); } } frame 102 { stun = 1; } frame 108 { } frame 116 { gotoAndPlay('stand'); } frame 141 { if (this._xscale == 100) { velosidash = -speed; mira = -100; } else { velosidash = speed; mira = 100; } } frame 142 { this._x += velosidash; this._y += speed / 2; this._xscale = mira; stun = 1; } frame 143 { this._x += velosidash; this._y += speed / 2; this._xscale = mira; stun = 1; } frame 144 { this._x += velosidash; this._y += speed / 2; this._xscale = mira; stun = 1; } frame 145 { this._x += velosidash; this._xscale = mira; this._y += speed / 2; stun = 1; } frame 146 { this._x += velosidash; this._y += speed / 2; this._xscale = mira; stun = 1; } frame 147 { this._x += velosidash; this._y += speed / 2; this._xscale = mira; stun = 1; } frame 148 { this._x += velosidash; this._y += speed / 2; this._xscale = mira; stun = 1; } frame 149 { this._x += velosidash; this._xscale = mira; this._y += speed / 2; stun = 1; } frame 150 { this._x += velosidash; this._xscale = mira; this._y += speed / 2; stun = 1; } frame 151 { this._x += velosidash; this._y += speed / 2; this._xscale = mira; stun = 1; } frame 152 { this._x += velosidash; this._y += speed / 2; this._xscale = mira; stun = 1; } frame 153 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 154 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 155 { stun = 0; gotoAndPlay('camina'); } } movieClip 1495 { } movieClip 1496 { } movieClip 1498 { } movieClip 1499 { } movieClip 1501 { frame 1 { stop(); } frame 10 { } } movieClip 1506 { } movieClip 1507 { } movieClip 1508 { frame 2 { camina = 0; golpeado = 0; teleporto = 1; stun = 0; } frame 26 { stun = 0; gotoAndPlay('stand'); } frame 36 { stun = 1; } frame 39 { _parent.hit = 1; } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 45 { gotoAndPlay('stand'); } frame 51 { camina = 1; golpeado = 0; } frame 64 { stun = 0; gotoAndPlay('camina'); } frame 84 { golpeado = 1; stun = 1; } frame 95 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 100 { if (this._xscale == 100) { velosidash = 20; mira = 100; } else { velosidash = -20; mira = -100; } } frame 101 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 102 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 103 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 104 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 105 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 106 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 107 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 108 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 109 { this._x += velosidash; this._xscale = mira; stun = 1; } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 113 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } } movieClip 1510 enemigo { frame 1 { stop(); gotoAndStop(nombre); nombresito = 'Lizard Man'; chanse_magica = 40; str = lvl * 10; agi = lvl * 1; intt = lvl * 8; life = 16 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.7; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'lance'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'lizard_attack'; sonido_magia = 'lizard_magia'; sonido_bash = 'lizard_bash'; } frame 1 { function check_dephts() { calculin = _x + _y * 100; this.swapDepths(calculin); } function atack() { if (Math.abs(_x - (tar._x + 60)) > 5 || Math.abs(_y - tar._y) > 5) { if (body.camina == 0) { body.camina = 1; body.gotoAndPlay('camina'); } irdestino(); atake = 1; } else { if (body.stun == 0 && atake > 0) { body.gotoAndPlay('ataque'); body.stun = 1; } if (hit == 1) { targetin.get_hit(dmg + random(dmg_max)); _root.fx.plai(sonido_attack); --atake; hit = 0; } if (body.stun == 0) { if (body.stun == 0 && atake <= 0) { attack = 0; volver = 1; } } } } function irdestino() { speed = 5; if (Math.abs(_x - (tar._x + 60)) > 4 || Math.abs(_y - tar._y) > 4) { _x = _x + (tar._x + 60 - _x) / speed; _y = _y + (tar._y - _y) / speed; } } function irOrigen() { _root.juego.check_deads(); if (Math.abs(_x - starxx) > 4 || Math.abs(_y - staryy) > 4) { _x = _x + (starxx - _x) / speed; _y = _y + (staryy - _y) / speed; } else { _root.juego.ojo_cam.stop_follow(this); volver = 0; _root.player_turno = undefined; _root.turno = 0; cd = cd_max; } } function get_magic(_dmg) { _root.fx.plai(sonido_bash); if (en_defensa != 1) { body.gotoAndPlay('bash'); } show_dmg(_dmg); life -= _dmg; dormido = 0; } function cast() { body.gotoAndPlay('magia'); cast_magic = 0; _root.magic_skill = magia[random(cant_magias) + 1]; if (_root.magic_skill == 'meteor') { _root.juego.attachMovie('meteor', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': 1}); ++dis; } if (_root.magic_skill == 'bash') { _root.juego.attachMovie('bash', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': 1}); ++dis; speedup(2); } if (_root.magic_skill == 'sleep') { _root.juego.attachMovie('stun', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': 1}); ++dis; } if (_root.magic_skill == 'missile') { _root.juego.attachMovie('missile', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _x + random(50) - random(50), '_y': _y + random(50) - random(50), '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar1': _root.player_turno, 'tar2': targetin, 'nombre': nombre_misile, 'escalita': -1}); ++dis; } if (_root.magic_skill == 'poison') { _root.juego.attachMovie('poison', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'time': 10, 'escalita': 1}); ++dis; } if (_root.magic_skill == 'armagedon') { _root.juego.attachMovie('armagedon', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': 1}); ++dis; } if (_root.magic_skill == 'iceshock') { _root.juego.attachMovie('iceshock', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': -1}); ++dis; } if (_root.magic_skill == 'lightning') { _root.juego.attachMovie('lightning', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': targetin._x, '_y': targetin._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt, 'tar': targetin, 'escalita': -1}); ++dis; } if (_root.magic_skill == 'mheal_ene') { _root.juego.attachMovie('mheal_ene', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': this._x, '_y': this._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': _root.player_turno.intt}); ++dis; } _root.fx.plai(sonido_magia); } function get_hit(_dmg) { _root.fx.plai(sonido_bash); if (en_defensa != 1) { body.gotoAndPlay('bash'); } if (_dmg - armor > _dmg / 2) { dmj = _dmg - Math.floor(armor); } else { dmj = Math.floor(_dmg / 2); } if (_root.charger != 0) { _root.juego.supergauge += random(10) + 12; } life -= dmj; dormido = 0; show_dmg(dmj); } function show_dmg(_dmg) { _dmg = Math.round(_dmg); if (_dmg == 0) { _dmg = 'MISS'; } _root.juego.attachMovie('numerito', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'dmg': _dmg, 'signo': '- '}); attachMovie('explocion', 'expo' + dis, this.getNextHighestDepth(), {'_x': this['exp' + (random(3) + 1)]._x, '_y': this['exp' + (random(3) + 1)]._y, '_alpha': 100, '_xscale': 150, '_yscale': 150, '_rotation': random(360)}); ++dis; } function show_dmg2(_dmg) { _dmg = Math.round(_dmg); if (_dmg == 0) { _dmg = 'MISS'; } _root.juego.attachMovie('numerito', 'mag' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'dmg': _dmg, 'signo': '+ '}); ++dis; } function healme(_heal) { if (life + _heal <= hp_max) { life += _heal; } else { life = hp_max; } show_dmg2(_heal); } function check_death() { if (life <= 0 && _root.turno == 0) { morir = 1; } if (life <= 0 && _alpha > 0 && morir == 1) { this._alpha -= 10; _root.menu1.barra_cd['punt' + _name]._alpha = 0; cd = cd_max; } if (life > 0 && _alpha < 100) { this._alpha += 10; _root.menu1.barra_cd['punt' + _name]._alpha = 100; morir = 0; } if (life <= 0) { cd = cd_max; } } function check_buffs() { --dormido; --rapidez; --poisoned; if (dormido > 0) { cd_tic = 0; sleepo._alpha = 100; haste._alpha = 0; } else { if (rapidez > 0) { cd_tic = 2; haste._alpha = 100; } else { cd_tic = 1; sleepo._alpha = 0; haste._alpha = 0; } } if (poisoned > 0) { life -= poison_dmg; poisongra._alpha = 100; } else { poisongra._alpha = 0; } } function speedup(_time) { rapidez = _time * 24; } function sleep(_time) { dormido = cd_max * 3; } function poison(_dmg, _time) { poisoned = _time * 24; poison_dmg = _dmg; } function bash(_per) { dormido = 0; _cunt = cd_max * (_per / 100); cd += _cunt; if (cd > cd_max) { cd = cd_max; } } mana_pot = random(3); life_pot = random(2); vial = random(100); if (vial > 90) { vial = 1; } else { vial = 0; } volver = 0; cd_tic = 1; hitt._x = 99999; magic._x = 99999; dis = 0; starxx = _x; staryy = _y; _root.menu1.barra_cd.attachMovie('punterou', 'punt' + _name, _root.menu1.barra_cd.getNextHighestDepth(), {'_x': p1._x, '_y': p1._y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'tar': this}); glowing = 0; onEnterFrame = function () { if (cd < 0) { cd = 0; } if (cd_max < 25) { cd_max = 25; } if (life <= 0 && _root.turno == 0) { morir = 1; } check_dephts(); check_death(); nombrin.text = nombresito; if (glowing == 1) { manage_glow(); } if (attack == 1) { _root.juego.ojo_cam.follow(this); atack(); } if (cast_magic == 1) { cast(); } if (volver == 1) { irOrigen(); } if (_root.turno == 0 && _root.juegoterminado != 1) { cd -= cd_tic; if (cd < 0) { cd = 0; } check_buffs(); if (cd <= 0) { _root.player_turno = this; _root.turno = 1; targetin = undefined; if (_root.juego.player1.life > 0 || _root.juego.player2.life > 0 || _root.juego.player3.life > 0) { while (targetin == undefined) { taron = _root.juego['player' + (random(3) + 1)]; if (taron.life <= 0) { targetin = undefined; } else { targetin = taron; } } } _root.player_turno.tar = targetin; if (random(100) < chanse_magica) { _root.player_turno.cast_magic = 1; } else { _root.player_turno.attack = 1; } } } }; morir = 0; dormido = 0; rapidez = 0; poisoned = 0; poison_dmg = 0; } instance sleepo of movieClip 801 { onClipEvent (load) { _alpha = 0; } } instance haste of movieClip 637 { onClipEvent (load) { _alpha = 0; } } frame 2 { chanse_magica = 80; nombresito = 'Mage'; str = lvl * 10; agi = lvl * 4; intt = lvl * 10; life = 5 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.1; dmg_max = dmg / 4; magia = []; magia[1] = 'meteor'; magia[2] = 'meteor'; magia[3] = 'poison'; magia[4] = 'sleep'; magia[5] = 'missile'; cant_magias = 5; nombre_misile = 'rojo'; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'minita_attack'; sonido_magia = 'minita_magia'; sonido_bash = 'minita_bash'; } instance body of movieClip 1288 { onClipEvent (load) { cabeza.peinado.gotoAndStop(8); torso.vestido.gotoAndStop(10); hombro1.gotoAndStop(2); hombro2.gotoAndStop(2); guante1.gotoAndStop(4); guante2.gotoAndStop(4); gamba1.gotoAndStop(1); gamba2.gotoAndStop(1); bota1.gotoAndStop(5); bota2.gotoAndStop(5); mainhand.gotoAndStop(1); } } frame 3 { nombresito = 'Sucubus'; chanse_magica = 25; str = lvl * 10; agi = lvl * 4; intt = lvl * 7; life = 6 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.1; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'rojo'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'minita_attack'; sonido_magia = 'minita_magia'; sonido_bash = 'minita_bash'; } instance body of movieClip 1299 { onClipEvent (load) { cabeza.peinado.gotoAndStop(9); torso.vestido.gotoAndStop(9); hombro1.gotoAndStop(2); hombro2.gotoAndStop(2); guante1.gotoAndStop(5); guante2.gotoAndStop(5); gamba1.gotoAndStop(1); gamba2.gotoAndStop(1); bota1.gotoAndStop(6); bota2.gotoAndStop(6); mainhand.gotoAndStop(4); } } frame 4 { stop(); gotoAndStop(nombre); nombresito = 'Slime'; chanse_magica = 0; str = lvl * 10; agi = lvl * 4; intt = lvl * 8; life = 7 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 0.8; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'lance'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'babosa_a'; sonido_magia = 'babosa_b'; sonido_bash = 'babosa_b'; } instance body of movieClip 1317 { onClipEvent (load) { torso.gotoAndStop(2); } } frame 5 { stop(); gotoAndStop(nombre); nombresito = 'Hungry Dog'; chanse_magica = 0; str = lvl * 10; agi = lvl * 4; intt = lvl * 8; life = 5 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.2; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'lance'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'perro_a'; sonido_magia = 'perro_m'; sonido_bash = 'perro_b'; } frame 6 { stop(); gotoAndStop(nombre); nombresito = 'Fire Mage'; chanse_magica = 100; str = lvl * 10; agi = lvl * 4; intt = lvl * 15; life = 6 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'meteor'; magia[2] = 'armagedon'; nombre_misile = 'lance'; cant_magias = 2; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'human_a'; sonido_magia = 'human_m'; sonido_bash = 'human_b'; } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(10); head.detalle.gotoAndStop(8); robe1.gotoAndStop(1); robe2.gotoAndStop(1); medallon.gotoAndStop(1); } } frame 7 { stop(); gotoAndStop(nombre); nombresito = 'Ice Mage'; chanse_magica = 100; str = lvl * 10; agi = lvl * 4; intt = lvl * 15; life = 6 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; magia[2] = 'iceshock'; nombre_misile = 'ice'; cant_magias = 2; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'human_a'; sonido_magia = 'human_m'; sonido_bash = 'human_b'; } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(11); head.detalle.gotoAndStop(8); robe1.gotoAndStop(2); robe2.gotoAndStop(2); medallon.gotoAndStop(2); } } frame 8 { stop(); gotoAndStop(nombre); nombresito = 'Thief'; chanse_magica = 0; str = lvl * 10; agi = lvl * 5; intt = lvl * 8; life = 9 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'lance'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'human_a'; sonido_magia = 'human_m'; sonido_bash = 'human_b'; } instance body of movieClip 1382 { onClipEvent (load) { torso.armor.gotoAndStop(random(5) + 2); torso.cinto.gotoAndStop(random(7) + 1); gamba1.gotoAndStop(random(2) + 1); gamba2.gotoAndStop(random(2) + 1); antebrazo = random(2) + 2; antebrazo1.gotoAndStop(antebrazo); antebrazo2.gotoAndStop(antebrazo); head.pelo.gotoAndStop(1); head.detalle.gotoAndStop(random(4) + 9); } } frame 9 { stop(); gotoAndStop(nombre); nombresito = 'Ice Warrior'; chanse_magica = 40; str = lvl * 150; agi = lvl * 150; intt = lvl * 100; life = 5000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; magia[2] = 'iceshock'; nombre_misile = 'ice'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'human_a'; sonido_magia = 'human_m'; sonido_bash = 'human_b'; } instance body of movieClip 1382 { onClipEvent (load) { torso.armor.gotoAndStop(12); torso.cinto.gotoAndStop(1); gamba1.gotoAndStop(random(2) + 1); gamba2.gotoAndStop(random(2) + 1); antebrazo = 1; antebrazo1.gotoAndStop(antebrazo); antebrazo2.gotoAndStop(antebrazo); head.pelo.gotoAndStop(11); head.detalle.gotoAndStop(3); } } frame 10 { stop(); gotoAndStop(nombre); nombresito = 'Melissa Dagger'; chanse_magica = 0; str = lvl * 450; agi = lvl * 150; intt = lvl * 100; life = 5000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; magia[2] = 'iceshock'; nombre_misile = 'ice'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = ''; sonido_magia = ''; sonido_bash = ''; } frame 10 { function get_magic(_dmg) { show_dmg(0); } function bash(_per) {} function get_hit(_dmg) { show_dmg(0); } function check_buffs() { --dormido; --rapidez; --poisoned; if (rapidez > 0) { cd_tic = 2; haste._alpha = 100; } else { cd_tic = 1; sleepo._alpha = 0; haste._alpha = 0; } } poisongra._alpha = 0; } instance body of movieClip 1391 { onClipEvent (load) { torso.armor.gotoAndStop(random(5) + 2); torso.cinto.gotoAndStop(random(7) + 1); gamba1.gotoAndStop(random(2) + 1); gamba2.gotoAndStop(random(2) + 1); antebrazo = random(2) + 2; antebrazo1.gotoAndStop(antebrazo); antebrazo2.gotoAndStop(antebrazo); head.pelo.gotoAndStop(1); head.detalle.gotoAndStop(random(4) + 9); } } frame 11 { stop(); gotoAndStop(nombre); nombresito = 'Rinoh Dagger'; chanse_magica = 0; str = lvl * 450; agi = lvl * 150; intt = lvl * 100; life = 5000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; magia[2] = 'iceshock'; nombre_misile = 'ice'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = ''; sonido_magia = ''; sonido_bash = ''; } frame 11 { function get_magic(_dmg) { show_dmg(0); } function bash(_per) {} function get_hit(_dmg) { show_dmg(0); } function check_buffs() { --dormido; --rapidez; --poisoned; if (rapidez > 0) { cd_tic = 2; haste._alpha = 100; } else { cd_tic = 1; sleepo._alpha = 0; haste._alpha = 0; } } poisongra._alpha = 0; } frame 12 { stop(); gotoAndStop(nombre); nombresito = 'Twin Bird'; chanse_magica = 40; str = lvl * 300; agi = lvl * 110; intt = lvl * 100; life = 10000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'sonic'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'pollo_a'; sonido_magia = 'pollo_m'; sonido_bash = 'pollo_b'; } frame 12 { function get_magic(_dmg) { healme(_dmg); } function bash(_per) {} function check_buffs() { --dormido; --rapidez; --poisoned; if (rapidez > 0) { cd_tic = 2; haste._alpha = 100; } else { cd_tic = 1; sleepo._alpha = 0; haste._alpha = 0; } } poisongra._alpha = 0; } frame 13 { stop(); gotoAndStop(nombre); nombresito = 'Twin Bird'; chanse_magica = 40; str = lvl * 500; agi = lvl * 80; intt = lvl * 100; life = 10000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'sonic'; cant_magias = 1; exp_price = 125 * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; item_drop = []; item_drop.push('Iron Helm', 'Heavy Mail', 'Brain Killer'); sonido_attack = 'pollo_a'; sonido_magia = 'pollo_m'; sonido_bash = 'pollo_b'; } frame 13 { function get_hit(_dmg) { healme(_dmg); } } frame 14 { stop(); gotoAndStop(nombre); nombresito = 'Snow Demon'; chanse_magica = 40; str = lvl * 700; agi = lvl * 150; intt = lvl * 300; life = 25000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; magia[2] = 'iceshock'; nombre_misile = 'ice'; cant_magias = 2; exp_price = 150 * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'lizard_attack'; sonido_magia = 'lizard_magia'; sonido_bash = 'lizard_bash'; item_drop = []; item_drop.push('Sharp Bright', 'Angel\'s Robe', 'Fashion Goggles'); } frame 14 { function bash(_per) {} function check_buffs() { --dormido; --rapidez; --poisoned; if (rapidez > 0) { cd_tic = 2; haste._alpha = 100; } else { cd_tic = 1; sleepo._alpha = 0; haste._alpha = 0; } } poisongra._alpha = 0; } frame 15 { stop(); gotoAndStop(nombre); nombresito = 'DevilAngel'; chanse_magica = 85; str = lvl * 500; agi = lvl * 90; intt = lvl * 500; life = 50000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'lightning'; magia[2] = 'iceshock'; nombre_misile = 'ice'; cant_magias = 2; exp_price = 150 * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'lizard_attack'; sonido_magia = 'lizard_magia'; sonido_bash = 'lizard_bash'; } frame 15 { function bash(_per) {} function check_buffs() { --dormido; --rapidez; --poisoned; if (rapidez > 0) { cd_tic = 2; haste._alpha = 100; } else { cd_tic = 1; sleepo._alpha = 0; haste._alpha = 0; } } function check_death() { if (life <= 0 && _root.turno == 0) { morir = 1; } if (life <= 0 && _alpha > 0 && morir == 1) { this._alpha -= 10; _root.menu1.barra_cd['punt' + _name]._alpha = 0; cd = cd_max; _root.juego.ene1.life = 0; _root.juego.ene2.life = 0; _root.juego.ene3.life = 0; } if (life > 0 && _alpha < 100) { this._alpha += 10; _root.menu1.barra_cd['punt' + _name]._alpha = 100; morir = 0; } if (life <= 0) { cd = cd_max; } } poisongra._alpha = 0; } frame 16 { stop(); gotoAndStop(nombre); nombresito = 'Lizard Man'; chanse_magica = 40; str = lvl * 10; agi = lvl * 4; intt = lvl * 8; life = 6 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'lance'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 120 - (agi / 10) * 24; cd = cd_max; } instance body of movieClip 1467 { onClipEvent (load) { torso.armor.gotoAndStop(12); torso.cinto.gotoAndStop(9); gamba1.gotoAndStop(1); gamba2.gotoAndStop(1); antebrazo1.gotoAndStop(4); antebrazo2.gotoAndStop(1); head.pelo.gotoAndStop(17); head.detalle.gotoAndStop(13); } } frame 17 { stop(); gotoAndStop(nombre); nombresito = 'Lizard Man'; chanse_magica = 40; str = lvl * 10; agi = lvl * 4; intt = lvl * 8; life = 6 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'lance'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 120 - (agi / 10) * 24; cd = cd_max; } frame 18 { stop(); gotoAndStop(nombre); chanse_magica = 40; nombresito = 'WolfMan'; str = lvl * 10; agi = lvl * 6; intt = lvl * 8; life = 7 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.4; dmg_max = dmg / 4; magia = []; magia[1] = 'bash'; nombre_misile = 'lance'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'perro_a'; sonido_magia = 'perro_m'; sonido_bash = 'perro_b'; } instance body of movieClip 1492 { onClipEvent (load) { tail.gotoAndStop(1); head.gotoAndStop(4); chin.gotoAndStop(3); } } frame 19 { stop(); gotoAndStop(nombre); nombresito = 'Vampire Lord'; chanse_magica = 20; str = lvl * 10; agi = lvl * 4; intt = lvl * 10; life = 5000; hp_max = life; life -= life / 3; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = 150; dmg_max = 150; magia = []; magia[1] = 'armagedon'; nombre_misile = 'rojo'; cant_magias = 1; exp_price = lvl * 5 * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'lizard_attack'; sonido_magia = 'lizard_magia'; sonido_bash = 'lizard_bash'; item_drop = []; item_drop.push('Bloody Knife', 'Magic Rod', 'Deadly Guitar'); } frame 20 { stop(); gotoAndStop(nombre); nombresito = 'Shengy'; chanse_magica = 0; str = lvl * 10; agi = lvl * 4; intt = lvl * 30; life = 100000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = 150; dmg_max = 150; magia = []; magia[1] = 'armagedon'; nombre_misile = 'rojo'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'human_a'; sonido_magia = 'human_m'; sonido_bash = 'human_b'; } frame 20 { function get_magic(_dmg) { --canti_hitos; if (canti_hitos > 0) { dmj = 0; } else { dmj = 1; _root.juego.ganar(); } show_dmg(dmj); } function get_hit(_dmg) { --canti_hitos; if (canti_hitos > 0) { dmjj = 0; } else { dmjj = 1; _root.juego.ganar(); } show_dmg(dmjj); } canti_hitos = 10; } instance body of movieClip 786 { onClipEvent (load) { head.pelo.gotoAndStop(3); head.detalle.gotoAndStop(5); gamba1.gotoAndStop(1); gamba2.gotoAndStop(2); torso.armor.gotoAndStop(1); torso.cinto.gotoAndStop(3); cuchi1.gotoAndStop(1); cuchi2.gotoAndStop(1); } } instance body of movieClip 786 { onClipEvent (load) { head.pelo.gotoAndStop(9); head.detalle.gotoAndStop(8); gamba1.gotoAndStop(4); gamba2.gotoAndStop(3); torso.armor.gotoAndStop(10); torso.cinto.gotoAndStop(8); cuchi1.gotoAndStop(10); cuchi2.gotoAndStop(11); } } instance body of movieClip 786 { onClipEvent (load) { head.pelo.gotoAndStop(18); head.detalle.gotoAndStop(14); gamba1.gotoAndStop(6); gamba2.gotoAndStop(5); torso.armor.gotoAndStop(13); torso.cinto.gotoAndStop(10); cuchi1.gotoAndStop(25); cuchi2.gotoAndStop(26); } } frame 23 { stop(); gotoAndStop(nombre); nombresito = 'Ice Mage'; chanse_magica = 100; str = lvl * 10; agi = lvl * 4; intt = lvl * 15; life = 6 * str; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; magia[2] = 'iceshock'; nombre_misile = 'ice'; cant_magias = 2; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; } frame 24 { stop(); gotoAndStop(nombre); nombresito = 'Fire Witch'; chanse_magica = 100; str = lvl * 10; agi = lvl * 50; intt = lvl * 100; life = 5000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'meteor'; magia[2] = 'armagedon'; nombre_misile = 'lance'; cant_magias = 2; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'human_a'; sonido_magia = 'human_m'; sonido_bash = 'human_b'; } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(16); head.detalle.gotoAndStop(8); robe1.gotoAndStop(7); robe2.gotoAndStop(7); medallon.gotoAndStop(5); } } frame 25 { stop(); gotoAndStop(nombre); nombresito = 'Ice Witch'; chanse_magica = 100; str = lvl * 10; agi = lvl * 50; intt = lvl * 100; life = 5000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; magia[2] = 'iceshock'; nombre_misile = 'ice'; cant_magias = 2; exp_price = lvl * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; sonido_attack = 'human_a'; sonido_magia = 'human_m'; sonido_bash = 'human_b'; } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(15); head.detalle.gotoAndStop(8); robe1.gotoAndStop(5); robe2.gotoAndStop(5); medallon.gotoAndStop(4); } } frame 26 { stop(); gotoAndStop(nombre); nombresito = 'Nature Witch'; chanse_magica = 100; str = lvl * 10; agi = lvl * 20; intt = lvl * 1000; life = 5000; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.5; dmg_max = dmg / 4; magia = []; magia[1] = 'mheal_ene'; magia[2] = 'mheal_ene'; nombre_misile = 'ice'; cant_magias = 2; exp_price = 100 * (random(10) + 15); cd_max = 25 + (96 - (agi / 40) * 24); cd = cd_max; item_drop = []; 'Silver Knife'; item_drop.push('War Tiara'); sonido_attack = 'human_a'; sonido_magia = 'human_m'; sonido_bash = 'human_b'; } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(17); head.detalle.gotoAndStop(8); robe1.gotoAndStop(6); robe2.gotoAndStop(6); medallon.gotoAndStop(7); } } frame 27 { stop(); nombresito = 'Hungry Dog'; chanse_magica = 0; str = 50; agi = 10; intt = 10; life = 700; hp_max = life; mana = 10 * intt; mana_max = mana; armor = agi / 10; dmg = str * 1.2; dmg_max = dmg / 4; magia = []; magia[1] = 'missile'; nombre_misile = 'lance'; cant_magias = 1; exp_price = lvl * (random(10) + 15); cd_max = 9999; cd = cd_max; sonido_attack = 'perro_a'; sonido_magia = 'perro_m'; sonido_bash = 'perro_b'; } frame 27 { function getglow() { glow_alpha = 0.6; glow_blurX = 5; glow_blurY = 5; glow_strength = 100; glow_quality = 3; var v1 = new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); v1 = new flash.filters.GlowFilter(255, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); body.filters = [v1]; } function loseglow() { glowing = 0; filter_glow = Null; body.filters = [filter_glow]; } function manage_glow() { glow_alpha = 0.6; glow_blurX = 5; glow_blurY = 5; glow_strength = 10; glow_quality = 3; if (glow_dir == 0) { glow_strength2 += 1; if (glow_strength2 >= 10) { glow_dir = 1; } } if (glow_dir == 1) { glow_strength2 -= 1; if (glow_strength2 <= 0) { glow_dir = 0; } } filter_glow = new flash.filters.GlowFilter(16776960, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); body.filters = [filter_glow]; } glow_dir = 0; glow_strength2 = 2; } } movieClip 1512 { } movieClip 1514 { } movieClip 1515 { } movieClip 1518 { } movieClip 1519 { } movieClip 1524 { } movieClip 1526 { frame 1 { camina = 0; golpeado = 0; teleporto = 1; } frame 12 { stun = 0; gotoAndPlay('stand'); } frame 21 { stun = 1; } instance of movieClip 766 { onClipEvent (enterFrame) { for (var i in _root.l.enemy) { if (_root.l.enemy[i].golpeado == 0 and this.hitTest(_root.l.enemy[i].targetgolpe)) { _root.l.enemy[i].hp -= Math.round((_root.sthero.dmg_fire * (1 + _root.sthero.tree_a1 * 0.333) / 4) * (100 - _root.l.enemy[i].armor_normal) / 100); _root.l.enemy[i].golpeado_anima = 1; _root.sthero.combo += 1; _root.sthero.tiempocombo = 30; } } } } frame 30 { gotoAndPlay('stand'); } frame 36 { camina = 1; golpeado = 0; } frame 49 { stun = 0; gotoAndPlay('camina'); } frame 69 { golpeado = 1; stun = 1; } frame 84 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 88 { if (this._xscale == 100) { velosidash = 30; mira = 100; } else { velosidash = -30; mira = -100; } } instance of movieClip 766 { onClipEvent (enterFrame) { for (var i in _root.l.enemy) { if (_root.l.enemy[i].golpeado == 0 and this.hitTest(_root.l.enemy[i].targetgolpe)) { _root.l.enemy[i].hp -= Math.round((_root.sthero.dmg_fire / 3) * (100 - _root.l.enemy[i].armor_fire) / 100); _root.l.enemy[i].golpeado_anima = 1; _root.sthero.combo += 1; _root.sthero.tiempocombo = 30; } } } } frame 89 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 90 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 91 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 92 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 93 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 94 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 95 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 96 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 97 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 98 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 99 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 100 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 101 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 102 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 103 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 104 { stun = 0; gotoAndPlay('camina'); } frame 109 { buscando = 1; } instance of movieClip 766 { onClipEvent (enterFrame) { for (var i in _root.l.enemy) { if (this.hitTest(_root.l.enemy[i].targetgolpe)) { _root.l.target_sumon = _root.l.enemy[i]; } } } } frame 117 { buscando = 0; } frame 118 { gotoAndPlay('stand'); } frame 120 { golpeado = 1; stun = 1; buscando = 1; } frame 126 { stop(); } } movieClip 1531 demonstorm { frame 1 { stop(); _alpha = 0; onEnterFrame = function () { if (_root.ultimate == 1) { _alpha = 100; play(); } }; } frame 41 { dmg = 2 * spell_power; di = 0; while (di < _root.juego.enemy_count) { _root.juego['ene' + di].get_magic(dmg); ++di; } } frame 53 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 1532 bash { frame 10 { _root.player_turno.tar.bash(25); dmg = 2 * spell_power; _root.player_turno.tar.get_magic(dmg); } frame 19 { _root.player_turno.volver = 1; removeMovieClip(this); } } movieClip 1533 armagedon { frame 1 { dis = random(327); _xscale = _xscale * escalita; } frame 12 { _root.juego.attachMovie('meteor2', 'player' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': spell_power, 'tar': tar, 'escalita': escalita}); ++dis; } frame 23 { _root.juego.attachMovie('meteor2', 'player' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': spell_power, 'tar': tar, 'escalita': escalita}); ++dis; _root.juego.ojo_cam.tremor = 48; } frame 33 { _root.juego.attachMovie('meteor2', 'player' + dis, _root.juego.getNextHighestDepth(), {'_x': _x, '_y': _y, '_alpha': 100, '_xscale': 100, '_yscale': 100, 'spell_power': spell_power, 'tar': tar, 'escalita': escalita}); ++dis; } frame 69 { stop(); _root.player_turno.volver = 1; this.removeMovieClip(); } } movieClip 1535 { } movieClip 1536 arbolio2b { frame 1 { } } movieClip 1538 arbolio1 { } movieClip 1539 { } movieClip 1541 { } // unknown tag 88 length 83 button 1546 { on (press) { _quality = 'Low'; } } button 1548 { on (press) { _quality = 'MEDIUM'; } } button 1550 { on (press) { _quality = 'BEST'; } } button 1554 { on (press) { _root.destino = 'menu'; _root.fx.plai('b1'); _root.flash1.play(); } } movieClip 1556 { } movieClip 1558 { } movieClip 1559 { frame 1 { dragger.onPress = function () { this.startDrag(true, 0, 0, line._width, 0); this.onEnterFrame = function () { ratio = Math.round(this._x * 100 / line._width); }; }; dragger.onreleaseOutside = stopDrag; dragger.onRelease = dragger.onreleaseOutside; } } instance mySlider of movieClip 1559 { onClipEvent (load) { if (_root.music_val == undefined) { this.ratio = 20; dragger._x = ratio * line._width / 100; } else { this.ratio = _root.music_val; dragger._x = ratio * line._width / 100; } } onClipEvent (enterFrame) { _root.musikita.mymusic.setVolume(ratio); _root.music_val = ratio; } } instance of movieClip 1559 { onClipEvent (load) { if (_root.fx_val == undefined) { this.ratio = 80; dragger._x = ratio * line._width / 100; } else { this.ratio = _root.fx_val; dragger._x = ratio * line._width / 100; } } onClipEvent (enterFrame) { _root.fx.mySound.setVolume(ratio); _root.fx_val = ratio; } } button 1562 { on (release) { getURL('http://www.mofunzone.com/online_games/chaos_dawn.shtml', '_blank'); } } // unknown tag 88 length 4 movieClip 1566 { } movieClip 1567 { frame 1 { stop(); } frame 8 { if (_root.destino != undefined) { _root.gotoAndStop(_root.destino); } else { if (this.batalla == 1) { _root.gotoAndStop('battle'); } else { if (movea == 1) { _root.gotoAndStop('moves'); } else { _root.gotoAndStop('clearScreen'); } } } this.batalla = 0; this.movea = 0; _root.destino = undefined; stop(); onn = 1; tiempo = 0; onEnterFrame = function () { if (tiempo > 1000) { _root.pausado = 1; --tiempo; } else { if (onn == 1) { onn = 0; play(); } } }; } } movieClip 1568 { frame 1 { stop(); } frame 8 { if (_root.destino != undefined) { _root.gotoAndStop(_root.destino); } else { if (this.batalla == 1) { _root.gotoAndStop('battle'); } else { if (movea == 1) { _root.gotoAndStop('moves'); } else { _root.gotoAndStop('clearScreen2'); } } } this.batalla = 0; this.movea = 0; _root.destino = undefined; stop(); onn = 1; tiempo = 0; onEnterFrame = function () { if (tiempo > 1000) { _root.pausado = 1; --tiempo; } else { if (onn == 1) { onn = 0; play(); } } }; } } frame 8 { _root.musikita.plai(3); } movieClip 1572 { } movieClip 1573 { frame 554 { stop(); } } button 1579 { on (press) { _root.destino = 'load'; _root.fx.plai('b1'); _root.flash1.play(); } } frame 10 { function loado() { saveFile = _root.save_slot; var v2 = SharedObject.getLocal(saveFile); if (v2.data.gold == -100 || v2.data.gold == undefined) { _root.movie_actual = 1; _root.gotoAndStop('moves'); } else { _root.gold = v2.data.gold; _root.nextScreen = v2.data.nextScreen; _root.arreglo_chat = v2.data.arreglo_chat; _root.arreglo_puertas = v2.data.arreglo_puertas; _root.arreglo_magias = v2.data.arreglo_magias; _root.arreglo_items = v2.data.arreglo_items; _root.arreglo_items3 = v2.data.arreglo_items3; _root.arreglo_items2 = v2.data.arreglo_items2; _root.arreglo_venta_pot = v2.data.arreglo_venta_pot; _root.cant_items = v2.data.cant_items; _root.p1_lvl = v2.data.p1_lvl; _root.p2_lvl = v2.data.p2_lvl; _root.p3_lvl = v2.data.p3_lvl; _root.p1_lvl_ult = v2.data.p1_lvl_ult; _root.p2_lvl_ult = v2.data.p2_lvl_ult; _root.p3_lvl_ult = v2.data.p3_lvl_ult; _root.p1_lvl_exp = v2.data.p1_lvl_exp; _root.p2_lvl_exp = v2.data.p2_lvl_exp; _root.p3_lvl_exp = v2.data.p3_lvl_exp; _root.p1_hp_actual = v2.data.p1_hp_actual; _root.p2_hp_actual = v2.data.p2_hp_actual; _root.p3_hp_actual = v2.data.p3_hp_actual; _root.p1_mana_actual = v2.data.p1_mana_actual; _root.p2_mana_actual = v2.data.p2_mana_actual; _root.p3_mana_actual = v2.data.p3_mana_actual; _root.p1_exp_actual = v2.data.p1_exp_actual; _root.p2_exp_actual = v2.data.p2_exp_actual; _root.p3_exp_actual = v2.data.p3_exp_actual; _root.p1_head = v2.data.p1_head; _root.p3_head = v2.data.p3_head; _root.p2_head = v2.data.p2_head; _root.p1_body = v2.data.p1_body; _root.p3_body = v2.data.p3_body; _root.p2_body = v2.data.p2_body; _root.p1_weapon = v2.data.p1_weapon; _root.p3_weapon = v2.data.p3_weapon; _root.p2_weapon = v2.data.p2_weapon; _root.lastx = v2.data.lastx; _root.lasty = v2.data.lasty; _root.show_menu = 0; trace(_root.arreglo_puertas); _root.flash1.play(); } } function deleto() { saveFile = _root.save_slot; var v2 = SharedObject.getLocal(saveFile); v2.data.gold = undefined; v2.data.arreglo_puertas = undefined; v2.data.arreglo_chat = undefined; v2.data.arreglo_magias = undefined; v2.data.arreglo_items = undefined; v2.data.arreglo_items3 = undefined; v2.data.arreglo_items2 = undefined; v2.data.arreglo_venta_pot = undefined; v2.data.cant_items = undefined; v2.flush(); } stop(); _root.musikita.plai(1); _root.pausado = 0; _root.lastx = undefined; _root.lasty = undefined; _root.chupador = 'c1'; _root.nextScreen = 'nl_1i'; _root.arreglo_puertas = []; _root.arreglo_puertas.push('puerta_3a'); p1_lvl = 13; p2_lvl = 12; p3_lvl = 15; _root.arreglo_magias = []; _root.arreglo_magias.push('dagger', 'heal', 'meteor', 'bash'); p1_str = 8.199999999999999; p1_int = 2; p1_agi = 5; p2_str = 8; p2_int = 5; p2_agi = 5.2; p3_str = 7.3; p3_int = 15; p3_agi = 5; _root.gold = 100; _root.arreglo_chat = []; _root.arreglo_items = []; _root.arreglo_items3 = []; _root.arreglo_items2 = []; _root.arreglo_items2.push('heal pot', 'mana pot', 'life vial'); _root.arreglo_venta_pot = []; _root.arreglo_venta_pot.push('heal pot', 'mana pot', 'life vial'); _root.cant_items = []; _root.cant_items.push(10, 20, 5); party_lvl = 3; p1_lvl_ult = 2; p2_lvl_ult = 1; p3_lvl_ult = 4; p1_lvl_exp = 50 + Math.pow(p1_lvl, 2) * 20; p2_lvl_exp = 50 + Math.pow(p2_lvl, 2) * 20; p3_lvl_exp = 50 + Math.pow(p3_lvl, 2) * 20; p1_hp_actual = undefined; p2_hp_actual = undefined; p3_hp_actual = undefined; p1_mana_actual = undefined; p2_mana_actual = undefined; p3_mana_actual = undefined; _root.p1_exp_actual = 15; _root.p2_exp_actual = 15; _root.p3_exp_actual = 15; p1_head = 'Smelly Hat'; p3_head = 'EvilAngel Crown'; p2_head = 'Smelly Hat'; p1_body = 'Dirty Shirt'; p3_body = 'EvilAngel Chainmail'; p2_body = 'Dirty Shirt'; p1_weapon = 'Dull Dagger'; p3_weapon = 'EvilAngel Scepter'; p2_weapon = 'Fernando Guitar'; p1_bstr = 0; p1_bagi = 0; p1_bint = 0; p1_bdmg = 0; p1_barmor = 0; p2_bstr = 0; p2_bagi = 0; p2_bint = 0; p2_bdmg = 0; p2_barmor = 0; p3_bstr = 0; p3_bagi = 0; p3_bint = 0; p3_bdmg = 0; p3_barmor = 0; _root.paredes = 0; _root.columna = 0; } button 1583 { on (press) { _root.save_slot = tar; _root.loado(); _root.fx.plai('b1'); _root.moveateEsta = 1; } } button 1592 { on (press) { _root.save_slot = tar; _root.fx.plai('b1'); _root.loado(); } } movieClip 1595 { } button 1597 { on (press) { lod._x = 9999; del._x = 9999; sub_menu._x = sub_menu.xx; } } button 1600 { on (press) { _root.save_slot = _parent.tar; _root.fx.plai('b1'); _root.deleto(); _parent.prevFrame(); } } button 1602 { on (press) { _parent.lod._x = _parent.xlod; _parent.del._x = _parent.xdel; _root.fx.plai('b2'); this._x = 9999; } } movieClip 1603 { frame 1 { xx = _x; _x = 9999; } } movieClip 1604 { frame 1 { stop(); saveFile = tar; var savefile = SharedObject.getLocal(saveFile); if (savefile.data.gold != undefined) { nextFrame(); } } frame 2 { xlod = lod._x; xdel = del._x; saveFile = tar; var savefile = SharedObject.getLocal(saveFile); if (savefile.data.gold == undefined) { } else { gold = savefile.data.gold; p1_lvl = savefile.data.p1_lvl; p2_lvl = savefile.data.p2_lvl; p3_lvl = savefile.data.p3_lvl; meli = savefile.data.mel; if (meli == 1) { mel._x = 9999; mel2._x = 9999; mel3._x = 9999; } } } } instance of movieClip 1604 { onClipEvent (load) { tar = 'save1'; } } instance of movieClip 1604 { onClipEvent (load) { tar = 'save2'; } } instance of movieClip 1604 { onClipEvent (load) { tar = 'save3'; } } frame 22 { function AddStar() { var v2 = _root.ass.warp.attachMovie('star2', 'star_' + i, i); ++i; v2._x = Math.random() * Stage.width; v2._y = Math.random() * Stage.height; v2._alpha = 0; var v4 = v2._x - Stage.width / 2; var v3 = v2._y - Stage.height / 2; var v5 = Math.sqrt(v4 * v4 + v3 * v3); var v6 = Math.atan2(v3, v4); v2._xVel = initVel * Math.cos(v6); v2._yVel = initVel * Math.sin(v6); v2._xscale = (maxOffset - v5) / 7; v2._yscale = (maxOffset - v5) / 7; v2.onEnterFrame = FlyingStar; } function FlyingStar() { this._x += this._xVel; this._y += this._yVel; this._xVel *= accel; this._yVel *= accel; if (this._alpha < 100) { this._alpha += alphaChange; } else { this._alpha = 100; } if (this._x < -this._width || this._x > Stage.width + this._width || this._y < -this._height || this._y > Stage.height + this._height) { this.removeMovieClip(); } } stop(); _root.musikita.plai(1); _root.pausado = 0; _root.nextScreen = 'nl_1i'; p1_lvl = 13; p2_lvl = 12; p3_lvl = 15; p1_str = 10; p1_int = 2; p1_agi = 4; p2_str = 9; p2_int = 5; p2_agi = 6; p3_str = 5; p3_int = 15; p3_agi = 5; _root.gold = 100; _root.arreglo_chat = []; _root.arreglo_puertas = []; _root.arreglo_puertas.push('puerta_3a'); _root.arreglo_magias = []; _root.arreglo_magias.push('heal', 'meteor', 'bash', 'sonic', 'enewave', 'icelance', 'icestorm', 'poison', 'sleep', 'lightning', 'mheal'); _root.arreglo_items = []; _root.arreglo_items3 = []; _root.arreglo_items3.push('sword', 'shield', 'helmet', 'sword', 'shield', 'helmet', 'sword', 'shield', 'helmet', 'sword', 'shield', 'helmet', 'sword', 'shield', 'helmet'); _root.arreglo_items2 = []; _root.arreglo_items2.push('heal pot', 'mana pot', 'life vial'); _root.arreglo_venta_pot = []; _root.arreglo_venta_pot.push('heal pot', 'mana pot', 'life vial'); _root.cant_items = []; _root.cant_items.push(10, 20, 5); party_lvl = 3; p1_lvl_ult = 2; p2_lvl_ult = 1; p3_lvl_ult = 4; p1_lvl_exp = 50 + Math.pow(p1_lvl, 2) * 20; p2_lvl_exp = 50 + Math.pow(p2_lvl, 2) * 20; p3_lvl_exp = 50 + Math.pow(p3_lvl, 2) * 20; p1_hp_actual = undefined; p2_hp_actual = undefined; p3_hp_actual = undefined; p1_mana_actual = undefined; p2_mana_actual = undefined; p3_mana_actual = undefined; _root.p1_exp_actual = 15; _root.p2_exp_actual = 15; _root.p3_exp_actual = 15; p1_head = 'nada'; p3_head = 'nada'; p2_head = 'nada'; p1_body = 'nada'; p3_body = 'nada'; p2_body = 'nada'; p1_weapon = 'nada'; p3_weapon = 'nada'; p2_weapon = 'nada'; p1_bstr = 0; p1_bagi = 0; p1_bint = 0; p1_bdmg = 0; p1_barmor = 0; p2_bstr = 0; p2_bagi = 0; p2_bint = 0; p2_bdmg = 0; p2_barmor = 0; p3_bstr = 0; p3_bagi = 0; p3_bint = 0; p3_bdmg = 0; p3_barmor = 0; _root.paredes = 0; _root.columna = 0; var initVel = 7; var accel = 1.1; var alphaChange = 10; var myInterval = setInterval(AddStar, 10); var maxOffset = Math.sqrt(Math.pow(Stage.width / 2, 2) + Math.pow(Stage.height / 2, 2)); var i = 0; } movieClip 1609 { } movieClip 1610 { } movieClip 1615 { } movieClip 1617 { frame 7 { gotoAndPlay(1); } } movieClip 1619 { frame 1 { frames = 7; } instance of movieClip 1617 { onClipEvent (load) { gotoAndPlay(4); } } instance of movieClip 1617 { onClipEvent (load) { gotoAndPlay(4); } } instance of movieClip 1617 { onClipEvent (load) { gotoAndPlay(4); } } instance of movieClip 1617 { onClipEvent (load) { gotoAndPlay(4); } } instance of movieClip 1617 { onClipEvent (load) { gotoAndPlay(4); } } } movieClip 1620 { } movieClip 1621 { } movieClip 1625 { } movieClip 1626 { instance of movieClip 1625 { onClipEvent (load) { gotoAndPlay(random(15) + 1); } } } button 1628 { on (press) { _root.destino = 'load'; _root.fx.plai('b3'); _root.flash1.play(); } } button 1630 { on (press) { _root.destino = 'options'; _root.fx.plai('b1'); _root.flash1.play(); } } button 1632 { on (press) { _root.destino = 'credits'; _root.fx.plai('b1'); _root.flash1.play(); } } button 1634 { on (press) { _root.destino = 'tutorial'; _root.fx.plai('b1'); _root.flash1.play(); } } button 1636 { on (release) { getURL('http://www.mofunzone.com/', '_blank'); } } frame 27 { function setcamara() { _root.target_cam = _root.juego.ojo_cam; posx = _root.target_cam._x * juego._xscale / 100; posy = _root.target_cam._y * juego._yscale / 100; endX = posx - xcor; endY = posy - ycor; _root.juego._x = endX * -1; _root.juego._y = endY * -1; _root.last_x = _root.target_cam._x; _root.last_y = _root.target_cam._y; } stop(); _root.next_skill = undefined; _root.turno = 0; _root.player_turno = undefined; j = 0; i = 0; xcor = 347; ycor = 242; cam_rang_max = 500; _root.ene_cont = 0; onEnterFrame = function () { setcamara(); }; } movieClip 1637 { frame 1 { function irDestino(_xx, _yy) { if (_x != _xx || _yy != tar._yy) { _x = _x + (_xx - _x) / speed; _y = _y + (_yy - _y) / speed; } } function follow(_tar) { tar = _tar; } function stop_follow(_tar) { tar = undefined; } function goScale(_scale) { if (_root.juego._xscale > _scale) { _root.juego._xscale += (_scale - _root.juego._xscale) / speed; _root.juego._yscale += (_scale - _root.juego._yscale) / speed; } if (_root.juego._xscale < _scale) { _root.juego._xscale += (_scale - _root.juego._xscale) / speed; _root.juego._yscale += (_scale - _root.juego._yscale) / speed; } } this._alpha = 0; xx = _x; yy = _y; speed = 8; scale_max = _root.juego._xscale; scale_min = _root.juego._xscale; onEnterFrame = function () { if (tar == undefined) { irDestino(xx, yy); goScale(scale_max); } else { irDestino(tar._x, tar._y); goScale(scale_min); } if (tremor > 0) { --tremor; _x = _x + (random(5) - random(5)); _y = _y + (random(5) - random(5)); } }; } } movieClip 1640 { frame 1 { function checkcolision() { player = _root.juego.p1; if (player.area.hitTest(this)) { _root.pausado = 1; _root.nextScreen = targetin; _root.chupador = 'c' + chupador; _root.lastx = undefined; _root.lasty = undefined; _root.flash1.batalla = 0; _root.flash1.play(); } } _alpha = 0; onEnterFrame = function () { checkcolision(); }; } } movieClip 1641 { frame 1 { this._alpha = 0; } } movieClip 1646 { } movieClip 1648 { } movieClip 1649 { instance of movieClip 1648 { onClipEvent (enterFrame) { _y = _y + 4; if (_y > 60) { _y = _y - 128; } } } instance detector of movieClip 563 { onClipEvent (load) { _root.choca.push(this); } } } movieClip 1651 { frame 1 { _alpha = 0; _name = 'pared' + _root.paredes++; } } movieClip 1655 { } movieClip 1656 { } movieClip 1661 { } movieClip 1662 { } movieClip 1665 { } movieClip 1666 { frame 1 { onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } instance of movieClip 1665 { onClipEvent (load) { xx = _x; _x = 999999; _root.juego.gate = 0; nombre = 'fin3'; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { _x = xx; _root.juego.gate = 1; } ++it; } } } } movieClip 1667 { frame 1 { function checkcolision() { player = _root.juego.p1; if (player.area.hitTest(this)) { player._x -= 10; } if (_root.ene_cont > 0) { var v3 = 0; while (v3 <= _root.ene_cont) { enetar = _root.juego['ene' + v3]; if (this.hitTest(enetar.area) && enetar.choca != 0) { enetar._x -= 10; } ++v3; } } if (_root.friend_cont > 0) { v3 = 0; while (v3 <= _root.friend_cont) { enetar = _root.juego['friend' + v3]; if (this.hitTest(enetar.area)) { enetar._x -= 10; } ++v3; } } } speed = 3; onEnterFrame = function () { checkcolision(); }; } } movieClip 1669 { frame 1 { function checkcolision() { player = _root.juego.p1; if (player.area.hitTest(this)) { player._y += 10; } if (_root.ene_cont > 0) { var v3 = 0; while (v3 <= _root.ene_cont) { enetar = _root.juego['ene' + v3]; if (this.hitTest(enetar.area) && enetar.choca != 0) { enetar._y += 10; } ++v3; } } if (_root.friend_cont > 0) { v3 = 0; while (v3 <= _root.friend_cont) { enetar = _root.juego['friend' + v3]; if (this.hitTest(enetar.area)) { enetar._y += 10; } ++v3; } } } this.alpha = 0; speed = 3; onEnterFrame = function () { checkcolision(); }; } } movieClip 1670 { frame 1 { function checkcolision() { player = _root.juego.p1; if (player.area.hitTest(this)) { player._y -= 10; } if (_root.ene_cont > 0) { var v3 = 0; while (v3 <= _root.ene_cont) { enetar = _root.juego['ene' + v3]; if (this.hitTest(enetar.area) && enetar.choca != 0) { enetar._y -= 10; } ++v3; } } if (_root.friend_cont > 0) { v3 = 0; while (v3 <= _root.friend_cont) { enetar = _root.juego['friend' + v3]; if (this.hitTest(enetar.area)) { enetar._y -= 10; } ++v3; } } } speed = 3; onEnterFrame = function () { checkcolision(); }; } } movieClip 1671 { frame 1 { function checkcolision() { player = _root.juego.p1; if (player.area.hitTest(this)) { player._x += 10; } if (_root.ene_cont > 0) { var v3 = 0; while (v3 <= _root.ene_cont) { enetar = _root.juego['ene' + v3]; if (this.hitTest(enetar.area) && enetar.choca != 0) { enetar._x += 10; } ++v3; } } if (_root.friend_cont > 0) { v3 = 0; while (v3 <= _root.friend_cont) { enetar = _root.juego['friend' + v3]; if (this.hitTest(enetar.area)) { enetar._x += 10; } ++v3; } } } this._alpha = 100; speed = 3; onEnterFrame = function () { checkcolision(); }; } } movieClip 1673 { frame 1 { this._alpha = 0; } } movieClip 1674 { frame 1 { stop(); } frame 2 { body.gotoAndPlay('camina'); body1.gotoAndPlay('camina'); } instance body of movieClip 830 { onClipEvent (load) { gamba1.gotoAndStop(1); gamba2.gotoAndStop(1); } } frame 11 { stop(); body.gotoAndPlay('stand'); body1.gotoAndPlay('stand'); } frame 12 { body.gotoAndPlay('camina'); body1.gotoAndPlay('camina'); } } movieClip 1676 { frame 1 { stop(); } frame 2 { body.gotoAndPlay('camina'); } instance body of movieClip 830 { onClipEvent (load) { gamba1.gotoAndStop(1); gamba2.gotoAndStop(1); } } frame 11 { stop(); body.gotoAndPlay('stand'); } frame 12 { body.gotoAndPlay('camina'); } } movieClip 1677 { frame 1 { stop(); } frame 2 { body.gotoAndPlay('camina'); } instance body of movieClip 866 melissa { onClipEvent (load) { gamba1.gotoAndStop(1); gamba2.gotoAndStop(1); } } frame 11 { stop(); body.gotoAndPlay('stand'); } frame 12 { body.gotoAndPlay('camina'); } } movieClip 1678 { frame 1 { stop(); } frame 1 { function checkColision() { if (_root.ene_cont > 0) { var v3 = 0; while (v3 <= _root.ene_cont) { if (this.area.hitTest(_root.juego['ene' + v3].area) && 'ene' + v3 != this._name && _root.juego['ene' + v3].boss != 1) { chocar(_root.juego['ene' + v3]); } ++v3; } } if (_root.arb_cont > 0) { v3 = 0; while (v3 <= _root.arb_cont) { if (this.area.hitTest(_root.juego['arb' + v3].area)) { chocar(_root.juego['arb' + v3]); } ++v3; } } } function chocar(tar) { if (tar.chocable != 1) { xxaux = tar._x - this._x; yyaux = tar._y - this._y; tan2aux = Math.atan2(yyaux, xxaux) * 180 / 3.1416 - 90; xxaux = this._x - tar._x; yyaux = this._y - tar._y; tan2aux2 = Math.atan2(yyaux, xxaux) * 180 / 3.1416 - 90; _x = _x + Math.sin(tan2aux * Math.PI / 180) * (2 + Math.abs(speed)); _y = _y + Math.cos(tan2aux * Math.PI / 180) * -(2 + Math.abs(speed)); } } function checkDep() { calculin = _x + _y * 100; this.swapDepths(calculin); } function check_keys() { moverse = 0; if (Key.isDown(87) || Key.isDown(38)) { if (_root.juego.dungeon == 1) { _y = _y - speed * 0.8; _x = _x + speed * 0.8; miro = 'der'; } else { _y = _y - speed; } moverse = 1; } else { if (Key.isDown(83) || Key.isDown(40)) { if (_root.juego.dungeon == 1) { _y = _y + speed * 0.8; _x = _x - speed * 0.8; miro = 'izq'; } else { _y = _y + speed; } moverse = 1; } else { if (Key.isDown(65) || Key.isDown(37)) { _x = _x - speed; moverse = 1; miro = 'izq'; } else { if (Key.isDown(68) || Key.isDown(39)) { _x = _x + speed; moverse = 1; miro = 'der'; } } } } if (moverse == 1) { if (walking == 0) { body.gotoAndPlay('camina'); walking = 1; } } else { if (walking == 1) { body.gotoAndPlay('stand'); walking = 0; } } if (orientacion != miro) { body._xscale *= -1; orientacion = miro; } } function checkborders() { _golpe = 0; gi = 0; while (gi < _root.paredes) { if (_root.juego['pared' + gi].hitTest(this.area)) { _golpe = 1; } ++gi; } gi = 0; while (gi < _root.columna) { if (_root.juego['columna' + gi].area.hitTest(this.area)) { _golpe = 1; } ++gi; } if (_golpe == 1) { _x = lastx; _y = lasty; } else { lastx = _x; lasty = _y; } } function mirar(_miro) { if (orientacion != _miro) { body._xscale *= -1; orientacion = _miro; } } onEnterFrame = function () { checkDep(); checkColision(); checkborders(); if (_root.pausado == 0) { check_keys(); } else { if (walking == 1) { body.gotoAndPlay('stand'); walking = 0; } } }; speed = 6.5; walking = 0; orientacion = 'der'; miro = orientacion; } frame 1 { function showtarget() { tHolder._x = _root.juego[_name]._x; tHolder._y = _root.juego[_name]._y; if (glow_dir == 0) { glow_strength2 += 3; if (glow_strength2 >= 25) { glow_dir = 1; } } if (glow_dir == 1) { glow_strength2 -= 3; if (glow_strength2 <= 0) { glow_dir = 0; } } tHolder.clear(); if (dest_x == undefined) { tHolder.lineStyle(lightningWidth + 1, '0xFF0000', lightningAlpha, true); filter_glow = new flash.filters.GlowFilter(16711680, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); tHolder.filters = [filter_glow]; tHolder.lineTo(aim_tar._x - _root.juego[_name]._x, aim_tar._y - _root.juego[_name]._y); _root.juego.attachMovie('tip_a', 'dis' + _root.juego.i, _root.juego.getNextHighestDepth(), {'_x': aim_tar._x, '_y': aim_tar._y, '_alpha': 100, '_xscale': 100, '_yscale': 100}); ++_root.juego.i; } else { if (ret_form == 0) { tHolder.lineStyle(lightningWidth + 1, '0x0000FF', lightningAlpha, true); filter_glow = new flash.filters.GlowFilter(255, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); tHolder.filters = [filter_glow]; tHolder.lineTo(dest_x - _root.juego[_name]._x, dest_y - _root.juego[_name]._y); _root.juego.attachMovie('tip_m', 'dis' + _root.juego.i, _root.juego.getNextHighestDepth(), {'_x': dest_x, '_y': dest_y, '_alpha': 100, '_xscale': 100, '_yscale': 100}); ++_root.juego.i; } } if (ret_form == 1) { tHolder.lineStyle(lightningWidth + 1, '0x00FF00', lightningAlpha, true); filter_glow = new flash.filters.GlowFilter(65280, glow_alpha, glow_blurX, glow_blurY, glow_strength2, glow_quality); tHolder.filters = [filter_glow]; tHolder.lineTo(dest_x - _root.juego[_name]._x, dest_y - _root.juego[_name]._y); _root.juego.attachMovie('tip_f', 'dis' + _root.juego.i, _root.juego.getNextHighestDepth(), {'_x': dest_x, '_y': dest_y, '_alpha': 100, '_xscale': 100, '_yscale': 100}); ++_root.juego.i; } } function fireWeapon(xStart, yStart, xEnd, yEnd) { if (reloadComplete == true) { kelokesoy = 'chic'; mySound = new Sound(_root.fx); mySound.attachSound(kelokesoy); mySound.start(0, 1); effectHolder.onEnterFrame = function () { effectHolder.clear(); effectHolder.lineStyle(lightningWidth, lightningColor, lightningAlpha, true); var v12 = xStart - xEnd; var v10 = yStart - yEnd; var v11 = Math.sqrt(v12 * v12 + v10 * v10); var v8 = v11 / lightningFrequency; var v2 = Math.atan2(yStart - yEnd, xStart - xEnd); var v9 = v11 / v8; var v7 = 0; while (v7 < lightningBranches) { effectHolder.moveTo(xStart, yStart); var v1 = 1; while (v1 < v8 + 1) { var v4 = v9 * v1; var v3 = random(lightningOffset - lightningOffset / 2); var v5 = xStart - Math.cos(v2) * v4 + Math.cos(v2 + 1.55) * v3; var v6 = yStart - Math.sin(v2) * v4 + Math.sin(v2 + 1.55) * v3; effectHolder.lineTo(v5, v6); ++v1; } ++v7; } }; effectHolder.lineTo(xEnd, yEnd); startReloading(); } } function startReloading() { reloadComplete = false; reloadTimer = setInterval(this, 'gunReloaded', reloadSpeed); screenTimer = setInterval(this, 'clearScreen', clearSpeed); } function clearScreen() { clearInterval(screenTimer); delete effectHolder.onEnterFrame; effectHolder.clear(); } function gunReloaded() { clearInterval(reloadTimer); reloadComplete = true; } createEmptyMovieClip('effectHolder', this.getNextHighestDepth()); _root.juego.createEmptyMovieClip('tHolder' + _name, _root.juego.getNextHighestDepth()); tHolder = _root.juego['tHolder' + _name]; var lightningOffset = 15; var lightningFrequency = 15; var lightningWidth = 1; var lightningColor = '0x5C98EF'; var lightningAlpha = 75; var lightningBranches = 3; var sparkNumber = 5; var sparkDistance = 10; var sparkSize = 100; var reloadSpeed = 250; var clearSpeed = 100; var glow_color = lightningColor; var glow_alpha = 0.6; var glow_blurX = 5; var glow_blurY = 5; var glow_strength = 2; var glow_strength2 = 2; glow_dir = 0; var glow_quality = 3; var reloadTimer; var screenTimer; var reloadComplete = true; var rotationDirection; var filter_glow = new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, 2, glow_quality); var filter_glow = new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength, glow_quality); effectHolder.filters = [filter_glow]; } instance body of movieClip 786 { onClipEvent (load) { head.pelo.gotoAndStop(1); head.detalle.gotoAndStop(13); gamba1.gotoAndStop(4); gamba2.gotoAndStop(3); torso.armor.gotoAndStop(5); torso.cinto.gotoAndStop(4); cuchi1.gotoAndStop(2); cuchi2.gotoAndStop(2); } } } movieClip 1680 { } movieClip 1682 { } movieClip 1683 { frame 1 { _name = 'columna' + _root.columna++; _root.flash1.tiempo += 1; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1687 { } movieClip 1689 { } movieClip 1691 { frame 1 { _name = 'columna' + _root.columna++; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1692 { } movieClip 1694 { frame 1 { this._alpha = 0; } } movieClip 1697 { frame 1 { this._alpha = 0; } } movieClip 1698 { frame 1 { if (_root.arb_cont == undefined) { _root.arb_cont = 0; } _name = 'arb' + _root.arb_cont; ++_root.arb_cont; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1700 { } movieClip 1702 { } movieClip 1703 { frame 1 { if (_root.arb_cont == undefined) { _root.arb_cont = 0; } _name = 'arb' + _root.arb_cont; ++_root.arb_cont; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1704 { frame 1 { if (_root.arb_cont == undefined) { _root.arb_cont = 0; } _name = 'arb' + _root.arb_cont; ++_root.arb_cont; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1706 { } movieClip 1707 { frame 1 { _name = 'columna' + _root.columna++; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1709 { frame 1 { onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1717 { } movieClip 1718 { } movieClip 1722 { } movieClip 1723 { } movieClip 1726 { } movieClip 1730 { frame 1 { _name = 'columna' + _root.columna++; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1744 { } movieClip 1745 { frame 1 { _name = 'columna' + _root.columna++; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } instance of movieClip 1744 { onClipEvent (load) { gotoAndPlay(random(10) + 1); } } } movieClip 1748 { } movieClip 1750 { frame 1 { _name = 'columna' + _root.columna++; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1752 { frame 1 { _name = 'columna' + _root.columna++; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1756 { } movieClip 1757 { frame 1 { stop(); } frame 1 { onEnterFrame = function () { if (varr != undefined) { if (_root.juego[varr] == 1) { gotoAndStop('up'); } else { gotoAndStop('down'); } } }; } frame 21 { stop(); } frame 42 { stop(); } } movieClip 1760 { } movieClip 1763 { frame 1 { stop(); } frame 1 { onEnterFrame = function () { if (varr != undefined) { if (_root.juego[varr] == 1) { gotoAndStop('up'); } else { gotoAndStop('down'); } } }; } frame 21 { stop(); } frame 42 { stop(); } } movieClip 1765 { } movieClip 1769 { } movieClip 1771 { } movieClip 1772 { frame 1 { function verificar_switches() { if (_root.juego.p1.area.hitTest(this)) { _root.arreglo_puertas.push(nom); _root.texto.gotoAndStop(nom); _root.pausado = 1; _root.movie_actual = move_actual; _root.lastx = _root.juego.p1.lastx; _root.lasty = _root.juego.p1.lasty; _root.flash1.movea = 1; _root.flash1.gotoAndPlay(2); _root.flash1.play(); } } this._alpha = 0; onEnterFrame = function () { encontre = 0; nombre = nom; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { encontre = 1; } ++it; } if (encontre == 0) { verificar_switches(); } }; } } // unknown tag 88 length 71 movieClip 1786 { } movieClip 1787 { frame 1 { if (_root.arb_cont == undefined) { _root.arb_cont = 0; } _name = 'arb' + _root.arb_cont; ++_root.arb_cont; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1788 { frame 1 { function verificar_switches() { if (_root.juego.p1.area.hitTest(this)) { _root.arreglo_puertas.push(nom); _root.texto.items_found = ''; it = 0; while (it < item.length) { if (item[it] != 'gold') { _root.texto.items_found += ' ' + item[it]; _root.arreglo_items3.push(item[it]); if (it != item.length - 1) { _root.texto.items_found += ' , '; } } else { _root.texto.items_found += cantidad + ' g'; _root.gold += cantidad; if (it != item.length - 1) { _root.texto.items_found += ' , '; } } ++it; } _root.texto.gotoAndStop('cofre'); _root.texto.si = 1; _root.pausado = 1; } } this._alpha = 0; onEnterFrame = function () { encontre = 0; nombre = nom; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { encontre = 1; _parent._alpha = 0; } ++it; } if (encontre == 0) { verificar_switches(); } }; } } movieClip 1793 { frame 1 { nom = 'chest' + _root.nextScreen + _root.juego.namechest; ++_root.juego.namechest; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } instance sw1 of movieClip 1788 { onClipEvent (load) { nom = _parent.nom; item = _parent.itemm; cantidad = _parent.cantidad; } } } movieClip 1794 { frame 1 { _alpha = 0; } } movieClip 1798 { } movieClip 1803 { } movieClip 1804 { frame 1 { _name = 'columna' + _root.columna++; onEnterFrame = function () { calculin = _parent._x + _parent._y * 100; _parent.swapDepths(calculin); }; } } movieClip 1805 { frame 1 { function verificar_switches() { if (_root.juego.p1.area.hitTest(this.area) && presionado == 0) { --_root.p1_lvl_ult; --_root.p2_lvl_ult; --_root.p3_lvl_ult; _root.texto.gotoAndStop('save'); _root.texto.si = 1; _root.pausado = 1; presionado = 1; } } presionado = 0; pos = 0; if (_root.juego.p1.area.hitTest(this.area)) { presionado = 1; } onEnterFrame = function () { encontre = 0; verificar_switches(); if (!_root.juego.p1.area.hitTest(this.area) && presionado == 1) { presionado = 0; } }; viendo = 'der'; } } movieClip 1806 { frame 1 { onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } instance body of movieClip 866 melissa { onClipEvent (enterFrame) { if (stun == 0) { culasonga = random(2); if (culasonga == 0) { gotoAndPlay('ataque'); } else { gotoAndPlay('golpeado'); } } } } } movieClip 1807 { frame 1 { onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } instance body of movieClip 1508 { onClipEvent (enterFrame) { if (stun == 0) { culasonga = random(2); if (culasonga == 0) { gotoAndPlay('ataque'); } else { gotoAndPlay('golpeado'); } } } } } movieClip 1808 { frame 1 { function verificar_switches() { if (_root.juego.p1.area.hitTest(this)) { if (onlyzaro != undefined) { _root.nomeliza = 1; _root.nojoey = 1; } _root.bossnom = nom; _root.lastx = _root.juego.p1.lastx; _root.lasty = _root.juego.p1.lasty; _root.mundo_actual = 100 + boss; if (movea == undefined) { _root.flash1.batalla = 1; _root.flash1.play(); } else { _root.movie_actual = movea; _root.flash1.movea = 1; _root.flash1.play(); } _root.pausado = 1; } } this._alpha = 0; onEnterFrame = function () { encontre = 0; nombre = nom; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { encontre = 1; } ++it; } if (encontre == 0) { verificar_switches(); } }; } } movieClip 1809 { frame 1 { function verificar_switches() { if (_root.juego.p1.area.hitTest(this)) { _root.arreglo_chat.push(nom); _root.texto.gotoAndStop(nom); _root.texto.grafico = grafico; _root.texto.si = 1; _root.pausado = 1; _root.juego.p1['conv' + grafico].play(); _root.juego.p1.mirar('der'); } } this._alpha = 0; recoil = 5; onEnterFrame = function () { --recoil; encontre = 1; if (precond != undefined) { nombre = precond; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { encontre = 0; } ++it; } } else { encontre = 0; } nombre = nom; it = 0; while (it < _root.arreglo_chat.length) { if (nombre == _root.arreglo_chat[it]) { encontre = 1; } ++it; } if (recoil != undefined && recoil > 0) { encontre = 1; } if (encontre == 0) { verificar_switches(); } }; } } movieClip 1812 { } movieClip 1814 { } movieClip 1818 { frame 1 { stop(); } } movieClip 1822 { frame 1 { this._alpha = 0; xx = _x; onEnterFrame = function () { if (_root.juego.p1.area.hitTest(this) && this._name == _root.juego.sw_sig) { _x = 9999; _root.juego.sw_next(); } if (_root.juego.p1.area.hitTest(this) && this._name != _root.juego.sw_sig) { _root.juego.sw_restart(); } }; } } movieClip 1823 { frame 1 { function verificar_switches() { cantidad = 0; it = 1; while (it <= cant) { if (_root.juego['sw' + it]._x != _root.juego['sw' + it].xx) { ++cantidad; } ++it; } if (cantidad == cant) { nombre = nim; _root.arreglo_puertas.push(nombre); _root.fx.plai('puerta'); nom._x = nom.xx; _root.juego.gate = 1; } } this._alpha = 0; onEnterFrame = function () { encontre = 0; nombre = nim; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { encontre = 1; } ++it; } if (encontre == 0) { verificar_switches(); } }; } } movieClip 1826 { frame 1 { function verificar_switches() { if (_root.juego.p1.area.hitTest(this)) { _root.arreglo_puertas.push(nom); _root.fx.plai('puerta'); } } this._alpha = 0; onEnterFrame = function () { encontre = 0; nombre = nom; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { encontre = 1; } ++it; } if (encontre == 0) { verificar_switches(); } }; } } movieClip 1827 { frame 1 { function verificar_switches() { if (_root.juego.p1.area.hitTest(this)) { _root.arreglo_puertas.push(nom); _root.texto.items_found = ''; it = 0; while (it < item.length) { _root.texto.items_found += ' ' + item[it]; _root.texto.items_found += ' Special Move'; _root.arreglo_magias.push(item[it]); if (it != item.length - 1) { _root.texto.items_found += ' , '; } ++it; } _root.texto.gotoAndStop('cofre'); _root.texto.si = 1; _root.pausado = 1; } } this._alpha = 0; onEnterFrame = function () { encontre = 0; nombre = nom; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { encontre = 1; _parent._alpha = 0; } ++it; } if (encontre == 0) { verificar_switches(); } }; } } movieClip 1830 { frame 1 { nom = 'chest' + _root.nextScreen + _root.juego.namechest; ++_root.juego.namechest; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } instance sw1 of movieClip 1827 { onClipEvent (load) { nom = _parent.nom; item = _parent.itemm; cantidad = _parent.cantidad; } } } movieClip 1847 { } movieClip 1848 { frame 1 { function check_dephts() { calculin = _x + _y * 100; this.swapDepths(calculin); } nombre = 'boss2'; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { _alpha = 0; } ++it; } onEnterFrame = function () { check_dephts(); }; } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(17); head.detalle.gotoAndStop(8); robe1.gotoAndStop(6); robe2.gotoAndStop(6); medallon.gotoAndStop(7); } } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(15); head.detalle.gotoAndStop(8); robe1.gotoAndStop(5); robe2.gotoAndStop(5); medallon.gotoAndStop(4); } } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(17); head.detalle.gotoAndStop(8); robe1.gotoAndStop(6); robe2.gotoAndStop(6); medallon.gotoAndStop(7); } } } movieClip 1851 { } movieClip 1852 { } movieClip 1854 { frame 1 { stop(); } frame 21 { stop(); } frame 42 { stop(); } } movieClip 1857 { } movieClip 1864 { frame 1 { stop(); listo = 1; } instance of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero._xscale == 100 and _root.sthero.item1 == 'wrench') { _parent.play(); } } } frame 2 { play(); listo = 0; } frame 21 { stop(); listo = 1; } frame 22 { listo = 0; } } movieClip 1865 { frame 1 { function verificar_switches() { if (_root.juego.p1.area.hitTest(this) && presionado == 0) { _root.arreglo_puertas.push(nom); presionado = 1; body.play(); _root.fx.plai('puerta'); } } function verificar_switches2() { if (_root.juego.p1.area.hitTest(this) && presionado == 0) { _root.arreglo_puertas[pos] = _root.arreglo_puertas[_root.arreglo_puertas.length - 1]; _root.arreglo_puertas.pop(); presionado = 1; body.play(); _root.fx.plai('puerta'); } } this._alpha = 100; presionado = 0; pos = 0; grafique = 0; onEnterFrame = function () { encontre = 0; calculin = _x + _y * 100; this.swapDepths(calculin); nombre = nom; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { encontre = 1; pos = it; if (grafique == 0) { body.gotoAndStop('onn'); } } ++it; } grafique = 1; if (encontre == 0 && body.listo == 1) { verificar_switches(); } if (encontre == 1 && body.listo == 1) { verificar_switches2(); } if (!_root.juego.p1.area.hitTest(this) && presionado == 1) { presionado = 0; } }; } } movieClip 1866 { frame 1 { function check_dephts() { calculin = _x + _y * 100; this.swapDepths(calculin); } nombre = 'boss3'; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { _alpha = 0; } ++it; } onEnterFrame = function () { check_dephts(); }; } } movieClip 1868 { } movieClip 1870 { frame 1 { stop(); } } movieClip 1873 { } movieClip 1875 { } movieClip 1879 { frame 1 { stop(); } } movieClip 1880 { } movieClip 1881 { frame 1 { _name = 'columna' + _root.columna++; if (viendo != 'der') { body._xscale *= -1; viendo = 'izq'; } onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } instance of movieClip 884 { onClipEvent (load) { if (_parent.quest == undefined) { comentaux = _parent.coment; _parent.coment = _parent.precoment; } nombre = _parent.nombre; reward = _parent.reward; coment = _parent.coment; coment2 = _parent.coment2; coment3 = _parent.coment3; coment4 = _parent.coment4; tar = _parent.body; quest = _parent.quest; precond = _parent.precond; } } instance body of movieClip 1880 { onClipEvent (load) { torso.armor.gotoAndStop(_parent.ropa[0]); torso.cinto.gotoAndStop(_parent.ropa[1]); gamba1.gotoAndStop(_parent.ropa[2]); gamba2.gotoAndStop(_parent.ropa[3]); head.pelo.gotoAndStop(_parent.ropa[4]); head.detalle.gotoAndStop(_parent.ropa[5]); ponchoabajo.gotoAndStop(_parent.ropa[6]); ponchoarriva.gotoAndStop(_parent.ropa[7]); } } instance q of movieClip 950 { onClipEvent (load) { _alpha = 0; if (_parent.quest > 0) { _alpha = 100; } if (_parent.quest == 1) { gotoAndStop(1); } if (_parent.quest == 2) { gotoAndStop(2); } if (_parent.quest == 3) { gotoAndStop(3); } if (_parent.quest == 4) { _alpha = 0; } } } } movieClip 1884 { frame 1 { _name = 'columna' + _root.columna++; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1885 { frame 1 { nombre = 'boss4'; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { _alpha = 0; } ++it; } } } movieClip 1887 { } movieClip 1890 { frame 1 { _name = 'columna' + _root.columna++; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1891 { frame 1 { function checkcolision() { player = _root.juego.p1; if (player.area.hitTest(this)) { _root.pausado = 1; _root.nextScreen = targetin; _root.chupador = 'c' + chupador; _root.lastx = undefined; _root.lasty = undefined; _root.flash1.batalla = 0; _root.flash1.play(); } } onEnterFrame = function () { checkcolision(); }; } } movieClip 1895 { frame 1 { onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } } movieClip 1898 { } movieClip 1900 { } movieClip 1901 { frame 1 { stop(); _name = 'columna' + _root.columna++; _root.flash1.tiempo += 1; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } instance body of movieClip 786 { onClipEvent (load) { head.pelo.gotoAndStop(9); head.detalle.gotoAndStop(8); gamba1.gotoAndStop(4); gamba2.gotoAndStop(3); torso.armor.gotoAndStop(10); torso.cinto.gotoAndStop(8); cuchi1.gotoAndStop(10); cuchi2.gotoAndStop(11); } } frame 2 { _name = 'columna' + _root.columna++; _root.flash1.tiempo += 1; onEnterFrame = function () { calculin = _x + _y * 100; this.swapDepths(calculin); }; } instance body of movieClip 786 { onClipEvent (load) { head.pelo.gotoAndStop(3); head.detalle.gotoAndStop(5); gamba1.gotoAndStop(1); gamba2.gotoAndStop(2); torso.armor.gotoAndStop(1); torso.cinto.gotoAndStop(3); cuchi1.gotoAndStop(1); cuchi2.gotoAndStop(1); } } } movieClip 1903 { frame 1 { stop(); } frame 1 { onEnterFrame = function () { if (varr != undefined) { if (_root.juego[varr] == 1) { gotoAndStop('up'); } else { gotoAndStop('down'); } } }; } frame 21 { stop(); } frame 42 { stop(); } } movieClip 1907 { frame 1 { stop(); } frame 1 { onEnterFrame = function () { if (varr != undefined) { if (_root.juego[varr] == 1) { gotoAndStop('up'); } else { gotoAndStop('down'); } } }; } frame 21 { stop(); } frame 42 { stop(); } } movieClip 1908 { } movieClip 1909 { frame 2 { camina = 0; golpeado = 0; teleporto = 1; stun = 0; } frame 26 { stun = 0; gotoAndPlay('stand'); } frame 36 { stun = 1; } frame 39 { _parent.hit = 1; } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 45 { gotoAndPlay('stand'); } frame 51 { camina = 1; golpeado = 0; } frame 64 { stun = 0; gotoAndPlay('camina'); } frame 84 { golpeado = 1; stun = 1; } frame 95 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } frame 100 { if (this._xscale == 100) { velosidash = 20; mira = 100; } else { velosidash = -20; mira = -100; } } frame 101 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 102 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 103 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 104 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 105 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 106 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 107 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 108 { this._x += velosidash; this._xscale = mira; stun = 1; } frame 109 { this._x += velosidash; this._xscale = mira; stun = 1; } instance detector of movieClip 563 { onClipEvent (enterFrame) { if (this.hitTest(_root.l.targetgolpe) and _root.l.hero.golpeado != 1) { _root.l.hero.gotoAndPlay('golpeado'); _root.l.hero.stun = 1; _root.sthero.hp -= Math.round(_parent.dmg * (100 - _root.sthero.armor) / 100); if (_parent._x - _root.l.targetgolpe._x > 0) { _root.l.hero._x -= 40; } else { _root.l.hero._x += 40; } } } } frame 113 { golpeado = 0; stun = 0; gotoAndPlay('stand'); } } movieClip 1910 { frame 1 { function check_dephts() { calculin = _x + _y * 100; this.swapDepths(calculin); } body.gotoAndPlay('stand'); nombre = 'boss5'; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { _alpha = 0; } ++it; } onEnterFrame = function () { check_dephts(); }; } } movieClip 1911 { frame 1 { function check_dephts() { calculin = _x + _y * 100; this.swapDepths(calculin); } nombre = 'boss6'; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { _alpha = 0; } ++it; } onEnterFrame = function () { check_dephts(); }; } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(17); head.detalle.gotoAndStop(8); robe1.gotoAndStop(6); robe2.gotoAndStop(6); medallon.gotoAndStop(7); } } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(15); head.detalle.gotoAndStop(8); robe1.gotoAndStop(5); robe2.gotoAndStop(5); medallon.gotoAndStop(4); } } instance body of movieClip 1365 { onClipEvent (load) { head.pelo.gotoAndStop(17); head.detalle.gotoAndStop(8); robe1.gotoAndStop(6); robe2.gotoAndStop(6); medallon.gotoAndStop(7); } } } movieClip 1912 { frame 1 { function check_dephts() { calculin = _x + _y * 100; this.swapDepths(calculin); } nombre = 'boss7'; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { _alpha = 0; } ++it; } onEnterFrame = function () { check_dephts(); }; } } movieClip 1913 { frame 1 { nombre = 'boss8'; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { _alpha = 0; } ++it; } } } movieClip 1914 { frame 1 { nombre = 'bossfinal'; it = 0; while (it < _root.arreglo_puertas.length) { if (nombre == _root.arreglo_puertas[it]) { _alpha = 0; } ++it;




http://swfchan.com/18/89284/info.shtml
Created: 29/3 -2019 01:54:01 Last modified: 29/3 -2019 01:54:01 Server time: 22/12 -2024 10:36:19