Combined Code
// unknown tag 88 length 61
movieClip 6 {
}
movieClip 8 {
}
movieClip 11 {
}
movieClip 13 {
}
movieClip 14 {
}
movieClip 16 {
}
movieClip 18 {
}
movieClip 21 {
frame 1 {
stop();
}
}
movieClip 24 {
frame 1 {
stop();
}
}
movieClip 30 {
}
movieClip 35 {
}
movieClip 36 {
}
movieClip 38 {
}
movieClip 41 {
}
movieClip 43 {
}
movieClip 46 {
}
movieClip 48 {
}
movieClip 50 {
}
movieClip 51 {
}
movieClip 52 {
}
movieClip 54 {
}
movieClip 58 LoadQuestion {
#initclip
Object.registerClass('LoadQuestion', pl.fabrykagier.blazer.map.LoadQuestion);
#endinitclip
frame 16 {
this.enableAll();
stop();
}
}
movieClip 60 tloDecisionBox {
#initclip
Object.registerClass('tloDecisionBox', pl.fabrykagier.blazer.map.Tlo);
#endinitclip
}
movieClip 61 {
}
movieClip 63 {
}
movieClip 67 {
frame 1 {
stop();
}
}
movieClip 71 {
}
movieClip 72 {
}
movieClip 73 {
}
movieClip 74 {
}
movieClip 77 {
}
movieClip 78 {
}
movieClip 80 {
}
movieClip 82 {
}
movieClip 83 {
}
movieClip 85 {
}
movieClip 87 TutorialSecond {
#initclip
Object.registerClass('TutorialSecond', pl.fabrykagier.blazer.map.Tutorial);
#endinitclip
frame 28 {
stop();
this.btnOk.enabled = true;
}
frame 39 {
stop();
this._parent.windowHide();
this.removeMovieClip();
}
}
movieClip 90 {
}
movieClip 92 {
}
movieClip 93 {
}
movieClip 101 Adres1 {
#initclip
Object.registerClass('Adres1', pl.fabrykagier.blazer.map.BtnGoToUrl);
#endinitclip
}
movieClip 104 Adres2 {
#initclip
Object.registerClass('Adres2', pl.fabrykagier.blazer.map.BtnGoToUrl);
#endinitclip
}
movieClip 107 Adres3 {
#initclip
Object.registerClass('Adres3', pl.fabrykagier.blazer.map.BtnGoToUrl);
#endinitclip
}
movieClip 111 {
}
movieClip 112 {
}
movieClip 114 {
}
movieClip 115 {
}
movieClip 117 {
}
movieClip 119 {
}
movieClip 120 {
}
movieClip 122 {
}
movieClip 123 {
}
movieClip 124 {
}
movieClip 125 {
}
movieClip 126 {
}
movieClip 128 {
}
movieClip 129 {
}
movieClip 132 {
}
movieClip 135 {
}
movieClip 136 {
}
movieClip 138 {
}
movieClip 140 Credits {
#initclip
Object.registerClass('Credits', pl.fabrykagier.blazer.map.Tutorial);
#endinitclip
frame 28 {
stop();
this.btnOk.enabled = true;
}
frame 39 {
stop();
this.removeMovieClip();
}
}
movieClip 144 {
frame 1 {
stop();
}
}
movieClip 149 TutorialFirst {
#initclip
Object.registerClass('TutorialFirst', pl.fabrykagier.blazer.map.Tutorial);
#endinitclip
frame 20 {
stop();
this.btnNext.enabled = true;
}
frame 39 {
stop();
this.btnOk.enabled = true;
}
frame 50 {
stop();
this._parent.decisionBoxShow();
this.removeMovieClip();
}
}
movieClip 153 CreditsBtn {
#initclip
Object.registerClass('CreditsBtn', pl.fabrykagier.blazer.map.btnCredits);
#endinitclip
frame 1 {
stop();
}
}
movieClip 156 {
}
movieClip 158 {
}
movieClip 159 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 161 {
}
movieClip 163 {
}
movieClip 164 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 166 {
}
movieClip 167 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 169 {
}
movieClip 171 {
}
movieClip 172 {
frame 16 {
this._parent.removeMovieClip();
}
}
movieClip 174 {
}
movieClip 175 {
frame 16 {
this._parent.removeMovieClip();
}
}
movieClip 177 {
}
movieClip 178 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 180 {
}
movieClip 181 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 183 {
}
movieClip 184 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 186 {
}
movieClip 187 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 189 {
}
movieClip 190 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 192 {
}
movieClip 193 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 195 {
}
movieClip 196 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 198 {
}
movieClip 199 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 201 {
}
movieClip 202 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 204 {
}
movieClip 205 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 207 {
}
movieClip 208 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 210 {
}
movieClip 211 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 213 {
}
movieClip 214 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 216 {
}
movieClip 217 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 219 {
}
movieClip 220 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 222 {
}
movieClip 223 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 225 {
}
movieClip 226 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 228 {
}
movieClip 229 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 231 {
}
movieClip 232 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 234 {
}
movieClip 235 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 237 {
}
movieClip 238 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 240 {
}
movieClip 241 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 243 {
}
movieClip 244 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 246 {
}
movieClip 247 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 249 {
}
movieClip 250 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 252 {
}
movieClip 253 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 255 {
}
movieClip 256 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 258 {
}
movieClip 259 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 261 {
}
movieClip 262 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 264 {
}
movieClip 265 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 267 {
}
movieClip 268 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 270 {
}
movieClip 271 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 273 {
}
movieClip 274 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 276 {
}
movieClip 277 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 279 {
}
movieClip 280 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 282 {
}
movieClip 283 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 285 {
}
movieClip 286 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 288 {
}
movieClip 289 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 291 {
}
movieClip 292 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 294 {
}
movieClip 295 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 297 {
}
movieClip 298 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 300 {
}
movieClip 301 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 303 {
}
movieClip 304 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 306 {
}
movieClip 307 {
frame 15 {
this._parent.removeMovieClip();
}
}
movieClip 308 boom {
frame 51 {
}
}
movieClip 310 {
}
movieClip 311 WinScreenCalosc {
#initclip
Object.registerClass('WinScreenCalosc', pl.fabrykagier.blazer.map.Tutorial);
#endinitclip
frame 16 {
stop();
btnOk.enabled = true;
}
frame 33 {
this._parent.play();
}
}
movieClip 313 {
}
movieClip 316 {
}
movieClip 318 {
}
movieClip 321 {
frame 1 {
stop();
}
frame 100 {
stop();
}
}
movieClip 323 {
}
movieClip 325 {
}
movieClip 2284 __Packages.pl.fabrykagier.blazer.map.Tlo {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.Tlo) {
var v1 = function () {
super();
this.onRollOver = function () {};
this.onRollOut = function () {};
this.onRelease = function () {};
this.onReleaseOutside = function () {};
this.useHandCursor = false;
};
pl.fabrykagier.blazer.map.Tlo = v1;
pl.fabrykagier.blazer.map.Tlo extends MovieClip;
var v2 = v1.prototype;
ASSetPropFlags(pl.fabrykagier.blazer.map.Tlo.prototype, null, 1);
}
#endinitclip
}
movieClip 2285 __Packages.pl.fabrykagier.blazer.map.Tutorial {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.Tutorial) {
var v1 = function () {
super();
this.btnOk.enabled = false;
this.btnOk.gotoAndStop(1);
this.btnNext.enabled = false;
this.btnNext.gotoAndStop(1);
this.btnOk.onRollOver = function () {
this.gotoAndStop(2);
};
this.btnOk.onRollOut = function () {
this.gotoAndStop(1);
};
this.btnOk.onPress = function () {
this.enabled = false;
this._parent.play();
};
this.btnNext.onRollOver = function () {
this.gotoAndStop(2);
};
this.btnNext.onRollOut = function () {
this.gotoAndStop(1);
};
this.btnNext.onPress = function () {
this.enabled = false;
this._parent.play();
};
};
pl.fabrykagier.blazer.map.Tutorial = v1;
pl.fabrykagier.blazer.map.Tutorial extends MovieClip;
var v2 = v1.prototype;
ASSetPropFlags(pl.fabrykagier.blazer.map.Tutorial.prototype, null, 1);
}
#endinitclip
}
movieClip 2286 __Packages.pl.fabrykagier.blazer.map.BtnGoToUrl {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.BtnGoToUrl) {
var v1 = function () {
super();
this.gotoAndStop(1);
};
pl.fabrykagier.blazer.map.BtnGoToUrl = v1;
pl.fabrykagier.blazer.map.BtnGoToUrl extends MovieClip;
var v2 = v1.prototype;
v2.onRelease = function () {
switch (this._name) {
case 'seismicstudios':
this.getURL('http://www.seismicstudios.net', '_blank');
break;
case 'spellblazer':
this.getURL('http://www.spellblazer.com', '_blank');
break;
case 'gamefactory':
this.getURL('http://www.game-factory.eu', '_blank');
}
};
v2.onRollOver = function () {
super.onRollOver();
this.gotoAndStop(2);
};
v2.onRollOut = function () {
super.onRollOut();
this.gotoAndStop(1);
};
v2.onReleaseOutside = function () {
this.onRollOut();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.BtnGoToUrl.prototype, null, 1);
}
#endinitclip
}
movieClip 2287 __Packages.pl.fabrykagier.blazer.map.btnCredits {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.btnCredits) {
var v1 = function () {
super();
this.gotoAndStop(1);
this.enabled = false;
};
pl.fabrykagier.blazer.map.btnCredits = v1;
pl.fabrykagier.blazer.map.btnCredits extends MovieClip;
var v2 = v1.prototype;
v2.onRelease = function () {
this._parent.attachMovie('Credits', 'Credits', 20, {'_x': 320, '_y': 240});
};
v2.onRollOver = function () {
super.onRollOver();
this.gotoAndStop(2);
};
v2.onRollOut = function () {
super.onRollOut();
this.gotoAndStop(1);
};
v2.onReleaseOutside = function () {
this.onRollOut();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.btnCredits.prototype, null, 1);
}
#endinitclip
}
movieClip 2288 __Packages.pl.fabrykagier.blazer.map.LoadQuestion {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.LoadQuestion) {
var v1 = function () {
super();
this.btnYes.gotoAndStop(1);
this.btnNo.gotoAndStop(1);
this.btnYes.reference = this;
this.btnYes.onPress = this.load;
this.btnYes.onRollOver = this.btnRollOver;
this.btnYes.onRollOut = this.btnRollOut;
this.btnNo.reference = this;
this.btnNo.onPress = this.dontLoad;
this.btnNo.onRollOver = this.btnRollOver;
this.btnNo.onRollOut = this.btnRollOut;
this.btnYes.enabled = false;
this.btnNo.enabled = false;
};
pl.fabrykagier.blazer.map.LoadQuestion = v1;
pl.fabrykagier.blazer.map.LoadQuestion extends MovieClip;
var v2 = v1.prototype;
v2.btnRollOver = function () {
this.gotoAndStop(2);
};
v2.btnRollOut = function () {
this.gotoAndStop(1);
};
v2.enableAll = function () {
this.btnYes.enabled = true;
this.btnNo.enabled = true;
};
v2.load = function () {
this._parent._parent._qLoadGame = true;
this.reference.disableMenuAndPlay();
};
v2.dontLoad = function () {
this._parent._parent._qLoadGame = false;
this.reference.disableMenuAndPlay();
};
v2.disableMenuAndPlay = function () {
this.btnNo.enabled = false;
this.btnYes.enabled = false;
this.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.onEnterFrame = undefined;
this.endAnimation();
}
};
this.play();
};
v2.endAnimation = function () {
this._parent.play();
this.removeMovieClip();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.LoadQuestion.prototype, null, 1);
}
#endinitclip
}
movieClip 2289 __Packages.pl.fabrykagier.blazer.battle.BattleGame {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle) {
_global.pl.fabrykagier.blazer.battle = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle.BattleGame) {
var v1 = function () {
super();
this.gotoAndStop(1);
};
pl.fabrykagier.blazer.battle.BattleGame = v1;
pl.fabrykagier.blazer.battle.BattleGame extends MovieClip;
var v2 = v1.prototype;
v2.init = function () {
this._playerTurn = false;
this._size = 8;
this.textFormat = new TextFormat();
this.textFormat.font = 'Aniron';
this._diamandUsed = false;
this._spellSound = new Sound(this);
this._map = new Array(this._size);
var v2 = 0;
while (v2 < this._map.length) {
this._map[v2] = new Array(this._size);
++v2;
}
this._gameManager = pl.fabrykagier.blazer.GameManager.getInstance();
this._spellsTable = this._gameManager.getSpellsTable();
this._player = this._gameManager.getPlayer();
this._enemies = ((this._gameManager.getCurrentMap()).getCurentRoad()).getEnemies();
this._enemies.setRandomSpells();
this._enemies.setHealth(this._enemies.getMaxHealth());
if (this._gameManager.isTutorial()) {
this._enemies.setHealth(int(this._enemies.getMaxHealth() / 2));
}
this._enemies.setTemporaryAddons(new Array(0, 0));
this._player.setTemporaryAddons(new Array(0, 0));
this._player.setCriticalDefence(0);
this._player.setCriticalAttack(0);
this._enemies.setCriticalDefence(0);
this._enemies.setCriticalAttack(0);
var v4 = new Array();
v4 = this._player.getSpells();
var v3 = new Array();
v3 = this._enemies.getSpells();
this._allowedSpells = new Array();
this._allowedSpells.push(0);
if (this._enemies.getID() >= 19) {
this._enemies.setRest(1);
}
v2 = 0;
while (v2 < v4.length) {
this._allowedSpells.push(v4[v2]);
++v2;
}
v2 = 0;
while (v2 < v3.length) {
this._allowedSpells.push(v3[v2]);
++v2;
}
if (this._gameManager.getLevel() == 3) {
var v5 = random(2);
if (this._gameManager.__get____schoolState() >= 1) {
v5 = 0;
}
if (v5 == 0) {
this._allowedSpells.push(8);
this._gameManager.__strangeMagicUses += 1;
}
}
this._diamondContainer = this.attachMovie('diamondContainer', 'diamondContainer', 10, {'_x': -159.8, '_y': -189.1});
this._dContainer = pl.fabrykagier.blazer.battle.DiamondContainer(this._diamondContainer);
this._dContainer.swapDepths(this.empty_mc);
this.generateMap();
this._dContainer.initialize(this);
this._dContainer.generateMap();
this._ai = new pl.fabrykagier.blazer.ai.AIManager(this._map, (pl.fabrykagier.blazer.GameManager.getInstance()).getLevel());
this._pCriticalSpell = 0;
this._eCriticalSpell = 0;
this._pTempAddons = new Array();
this._eTempAddons = new Array();
this.initUI();
};
v2.generateMap = function () {
var v3 = 0;
while (v3 < this._size) {
var v2 = 0;
while (v2 < this._size) {
do {
this._map[v3][v2] = this.generateRandomSpell();
} while (this._map[v3][v2] == this._map[v3 - 1][v2] && this._map[v3][v2] == this._map[v3 - 2][v2] || this._map[v3][v2] == this._map[v3][v2 - 1] && this._map[v3][v2] == this._map[v3][v2 - 2]);
++v2;
}
++v3;
}
v3 = 0;
while (v3 < this._map.length) {
++v3;
}
};
v2.updateMap = function (map) {
this._map = map;
};
v2.generateRandomSpell = function () {
var v2 = this._allowedSpells[random(this._allowedSpells.length)];
return v2;
};
v2.getMap = function () {
return this._map;
};
v2.isPlayerTurn = function () {
return this._playerTurn;
};
v2.__get____allowedSpells = function () {
return this._allowedSpells;
};
v2.moveDone = function () {
if (this._playerTurn == true) {
this._player.setTemporaryAddons(this._pTempAddons);
this._enemies.setTemporaryAddons(this._eTempAddons);
this._enemies.setCriticalDefence(0);
this.updateUIDefence();
var v2 = random(3000) + 1500;
this._playerTurn = false;
if (this._gameManager.__get____schoolState() == 3) {
this._intervalID = setInterval(this, 'aIHeal', v2);
} else {
this._intervalID = setInterval(this, 'aIMove', v2);
}
} else {
this._enemies.setTemporaryAddons(this._eTempAddons);
this._player.setTemporaryAddons(this._pTempAddons);
this._player.setCriticalDefence(0);
this.updateUIDefence();
this._playerTurn = true;
}
if (this.checkWinningConditions()) {
clearInterval(this._intervalID);
this._intervalID = undefined;
this._diamondContainer.enabled = false;
if (this._winner.getName() == this._player.getName()) {
this.ramka_hero.hero_mc.gotoAndStop('win');
this.ramka_enemy.enemy_mc.enemyPortrait_mc.gotoAndStop('Losing');
if (this._player.getHealth() <= this._player.getMaxHealth() / 2) {
this._player.setHealth(int(this._player.getMaxHealth() / 2 + 1));
}
this._battleEfect = 'player';
} else {
this.ramka_hero.hero_mc.gotoAndStop('loose');
this.ramka_enemy.enemy_mc.enemyPortrait_mc.gotoAndStop('Winning');
this._enemies.setMaxHealth(this._enemies.getMaxHealth() - 20);
this._player.setHealth(int(this._player.getMaxHealth()));
this._player.setRest(0);
this._battleEfect = 'enemy';
}
this.gotoAndPlay(2);
} else {
if (this.isTrainingEnd()) {
clearInterval(this._intervalID);
this._intervalID = undefined;
this._diamondContainer.enabled = false;
this._player.setHealth(this._player.getMaxHealth());
this._player.setRest(1);
this._gameManager.__set____schoolState(4);
this.gotoAndPlay(2);
} else {
return this._playerTurn;
}
}
};
v2.aIMove = function () {
clearInterval(this._intervalID);
this._intervalID = undefined;
var v2 = this._ai.findMove(this._map);
this._dContainer.reverseSpells(new Array(v2[0][0], v2[0][1]), new Array(v2[1][0], v2[1][1]));
};
v2.aIHeal = function () {
clearInterval(this._intervalID);
this._intervalID = undefined;
this.ramka_enemy.enemy_mc.enemyPortrait_mc.gotoAndPlay('Heal');
this._enemies.setHealth(this._enemies.getMaxHealth());
this.updateUI();
this._dContainer.moveDone();
};
v2.updateDamges = function (spell, counter) {
var v17 = 'S_' + spell + '_snd';
if (spell == 8) {
this._diamandUsed = true;
}
var v4 = new Array();
v4[3] = new Array(1, 1);
v4[4] = new Array(1.25, 1.25);
v4[5] = new Array(1.5, 1.5);
var v9 = this._spellsTable[spell][1] * v4[counter][0];
var v3 = int(this._spellsTable[spell][2] * v4[counter][1]);
if (this._playerTurn) {
if (spell != 0) {
if (this._spellsTable[spell][3] != true) {
if (v3 > 0) {
var v11 = this.countCriticalAtackModificator(this._player.getCriticalAttack()) / 100;
this._player.setHealth(int(this._player.getHealth() + v3 + int(v3 * v11)));
var v16 = 'battlePoints' + this.getNextHighestDepth();
this.attachMovie('battlePoints', v16, this.getNextHighestDepth(), {'_x': -245, '_y': -146});
this[v16].points_mc.gotoAndStop(2);
this[v16].points_mc.points_txt.embedFonts = true;
this[v16].points_mc.points_txt.text = '+' + (v3 + int(v3 * v11));
this[v16].points_mc.points_txt.setTextFormat(this.textFormat);
}
var v13 = this.countAttackModificator(this._player.getRest());
v11 = this.countCriticalAtackModificator(this._player.getCriticalAttack());
var v12 = Number(this.countDefenceModificator(this._enemies.getRest()));
var v7 = (this._enemies.getTemporaryAddons())[spell][0];
if (v7 == undefined) {
v7 = 0;
} else {
v7 = Number(v7);
}
var v14 = v9 * (v13 + v11) / 100;
var v15;
if (this._enemies.getResistance() == spell) {
v15 = v12 * 1.5 + v7;
} else {
if (this._enemies.getWeakness() == spell) {
v15 = v12 * 0.5 + v7;
} else {
v15 = v12 + v7;
}
}
var v6 = int((v14 / v15) * 100);
this._player.setCriticalAttack(0);
this._player.setCriticalDefence(0);
if (this._spellsTable[spell][0] == 'Strange Magic' && (this._enemies.getTemporaryAddons())[spell] != undefined) {
var v10 = this.countDefenceModificator(this._player.getRest());
this._player.setHealth(int(this._player.getHealth() - int((v14 / v10) * 100)));
v16 = 'battlePoints' + this.getNextHighestDepth();
this.attachMovie('battlePoints', v16, this.getNextHighestDepth(), {'_x': -245, '_y': -146});
this[v16].points_mc.points_txt.embedFonts = true;
this[v16].points_mc.points_txt.text = '-' + int((v14 / v10) * 100);
this[v16].points_mc.points_txt.setTextFormat(this.textFormat);
} else {
if (v6 > 0) {
this.updatePortret('enemy_mc');
if (this._gameManager.__get____schoolState() == 3 && this._enemies.getHealth() - v6 <= 0) {
v6 = this._enemies.getHealth() - 1;
}
this._enemies.setHealth(int(this._enemies.getHealth() - v6));
v16 = 'battlePoints' + this.getNextHighestDepth();
this.attachMovie('battlePoints', v16, this.getNextHighestDepth(), {'_x': 233, '_y': -146});
this[v16].points_mc.points_txt.embedFonts = true;
this[v16].points_mc.points_txt.text = '-' + v6;
this[v16].points_mc.points_txt.setTextFormat(this.textFormat);
}
}
this._eTempAddons[spell] = undefined;
} else {
if (this._spellsTable[spell][1] > 0) {
var v16 = 'battlePoints' + this.getNextHighestDepth();
this.attachMovie('komunikat', v16, this.getNextHighestDepth(), {'_x': 0, '_y': 65});
this[v16].kom_mc.gotoAndStop(2);
var v8 = this.countPiecesNumberDefence(counter);
if (this._pTempAddons[spell][0] != 0 && this._pTempAddons[spell][0] != undefined) {
if (this._pTempAddons[spell][0] < v8) {
this._pTempAddons[spell][0] = v8;
}
} else {
this._pTempAddons[spell] = new Array();
this._pTempAddons[spell][0] = v8;
}
}
}
} else {
this._player.setCriticalAttack(counter);
this._eTempAddons = new Array();
this._enemies.setTemporaryAddons(new Array());
var v16 = 'battlePoints' + this.getNextHighestDepth();
this.attachMovie('komunikat', v16, this.getNextHighestDepth(), {'_x': 0, '_y': -20});
this[v16].kom_mc.gotoAndStop(1);
}
} else {
if (spell != 0) {
if (this._spellsTable[spell][3] != false) {
if (v3 > 0) {
var v11 = this.countCriticalAtackModificator(this._enemies.getCriticalAttack()) / 100;
this._enemies.setHealth(int(this._enemies.getHealth() + v3 + int(v3 * v11)));
var v16 = 'battlePoints' + this.getNextHighestDepth();
this.attachMovie('battlePoints', v16, this.getNextHighestDepth(), {'_x': 233, '_y': -146});
this[v16].points_mc.gotoAndStop(2);
this[v16].points_mc.points_txt.embedFonts = true;
this[v16].points_mc.points_txt.text = '+' + (v3 + int(v3 * v11));
this[v16].points_mc.points_txt.setTextFormat(this.textFormat);
}
var v13 = this.countAttackModificator(this._enemies.getRest());
v11 = this.countCriticalAtackModificator(this._enemies.getCriticalAttack());
var v12 = this.countDefenceModificator(this._player.getRest());
var v7 = (this._player.getTemporaryAddons())[spell][0];
if (v7 == undefined) {
v7 = 0;
}
var v14 = v9 * (v13 + v11) / 100;
var v15 = v12 + v7;
var v6 = int((v14 / v15) * 100);
this._enemies.setCriticalAttack(0);
this._enemies.setCriticalDefence(0);
if (v6 > 0) {
this.updatePortret('hero_mc');
v16 = 'battlePoints' + this.getNextHighestDepth();
this.attachMovie('battlePoints', v16, this.getNextHighestDepth(), {'_x': -245, '_y': -146});
this[v16].points_mc.points_txt.embedFonts = true;
this[v16].points_mc.points_txt.text = '-' + v6;
this[v16].points_mc.points_txt.setTextFormat(this.textFormat);
}
this._player.setHealth(int(this._player.getHealth() - v6));
this._pTempAddons[spell] = undefined;
} else {
if (this._spellsTable[spell][1] > 0) {
var v16 = 'battlePoints' + this.getNextHighestDepth();
this.attachMovie('komunikat', v16, this.getNextHighestDepth(), {'_x': 0, '_y': 65});
this[v16].kom_mc.gotoAndStop(2);
var v8 = this.countPiecesNumberDefence(counter);
if (this._eTempAddons[spell][0] != 0 && this._eTempAddons[spell][0] != undefined) {
if (this._eTempAddons[spell][0] < v8) {
this._eTempAddons[spell][0] = v8;
}
} else {
this._eTempAddons[spell] = new Array();
this._eTempAddons[spell][0] = v8;
}
}
}
} else {
this._enemies.setCriticalAttack(counter);
this._pTempAddons = new Array();
this._player.setTemporaryAddons(new Array());
var v16 = 'battlePoints' + this.getNextHighestDepth();
this.attachMovie('komunikat', v16, this.getNextHighestDepth(), {'_x': 0, '_y': -20});
this[v16].kom_mc.gotoAndStop(1);
}
}
this.updateUI();
};
v2.initUI = function () {
if (this._player.getRest() == -1) {
this._heroStateFrame = 'tired';
} else {
if (this._player.getRest() == 0) {
this._heroStateFrame = 'normal';
} else {
if (this._player.getRest() == 1) {
this._heroStateFrame = 'rest';
}
}
}
this.ramka_hero.hero_mc.gotoAndStop(this._heroStateFrame);
this.ramka_hero.hero_mc.parentFrame = this._heroStateFrame;
if (this._enemies.getRest() == -1) {
this._enemyStateFrame = 'tired';
} else {
if (this._enemies.getRest() == 0) {
this._enemyStateFrame = 'normal';
} else {
if (this._enemies.getRest() == 1) {
this._enemyStateFrame = 'rest';
}
}
}
this.ramka_enemy.enemy_mc.gotoAndStop(this._enemies.getID() + 1);
this.ramka_enemy.enemy_mc.enemyPortrait_mc.gotoAndStop('Normal');
this.playerName_txt.embedFonts = true;
this.playerName2_txt.embedFonts = true;
if (this._player.getRest() == -1) {
this.playerName_txt.textColor = 16711680;
} else {
if (this._player.getRest() == 0) {
this.playerName_txt.textColor = 16763904;
} else {
this.playerName_txt.textColor = 3381504;
}
}
this.playerName_txt.text = this._player.getName();
this.playerName_txt.setTextFormat(this.textFormat);
this.playerName2_txt.text = this._player.getName();
this.playerName2_txt.setTextFormat(this.textFormat);
this.enemiesName_txt.embedFonts = true;
this.enemiesName2_txt.embedFonts = true;
if (this._enemies.getRest() == -1) {
this.enemiesName_txt.textColor = 16711680;
} else {
if (this._enemies.getRest() == 0) {
this.enemiesName_txt.textColor = 16763904;
} else {
this.enemiesName_txt.textColor = 3381504;
}
}
this.enemiesName_txt.text = this._enemies.getName();
this.enemiesName_txt.setTextFormat(this.textFormat);
this.enemiesName2_txt.text = this._enemies.getName();
this.enemiesName2_txt.setTextFormat(this.textFormat);
this.ramka_hero.playerSpells_mc.spell1_mc.gotoAndStop((this._player.getSpells())[0] + 2);
this.ramka_hero.playerSpells_mc.spell2_mc.gotoAndStop((this._player.getSpells())[1] + 2);
this.ramka_hero.playerSpells_mc.spell3_mc.gotoAndStop((this._player.getSpells())[2] + 2);
this.ramka_hero.playerSpells_mc.spell1_mc.enabled = false;
this.ramka_hero.playerSpells_mc.spell2_mc.enabled = false;
this.ramka_hero.playerSpells_mc.spell3_mc.enabled = false;
this.ramka_hero.playerSpells_mc.messageBox_mc._visible = false;
this.ramka_enemy.enemySpells_mc.messageBox_mc._visible = false;
this.ramka_hero.playerSpells_mc.spell1Mask_mc.reference = this;
this.ramka_hero.playerSpells_mc.spell1Mask_mc.onRollOver = function () {
this._parent.messageBox_mc._visible = true;
this._parent.messageBox_mc.messege_txt.embedFonts = true;
this._parent.messageBox_mc.messege_txt.text = this.reference._spellsTable[(this.reference._player.getSpells())[0]][0];
this._parent.messageBox_mc.messege_txt.setTextFormat(this.reference.textFormat);
};
this.ramka_hero.playerSpells_mc.spell1Mask_mc.onRollOut = function () {
this._parent.messageBox_mc._visible = false;
};
this.ramka_hero.playerSpells_mc.spell1Mask_mc.onRelease = this.ramka_hero.playerSpells_mc.spell1Mask_mc.onRollOut;
this.ramka_hero.playerSpells_mc.spell1Mask_mc.onReleaseOutside = this.ramka_hero.playerSpells_mc.spell1Mask_mc.onRollOut;
this.ramka_hero.playerSpells_mc.spell2Mask_mc.reference = this;
this.ramka_hero.playerSpells_mc.spell2Mask_mc.onRollOver = function () {
this._parent.messageBox_mc._visible = true;
this._parent.messageBox_mc.messege_txt.embedFonts = true;
this._parent.messageBox_mc.messege_txt.text = this.reference._spellsTable[(this.reference._player.getSpells())[1]][0];
this._parent.messageBox_mc.messege_txt.setTextFormat(this.reference.textFormat);
};
this.ramka_hero.playerSpells_mc.spell2Mask_mc.onRollOut = function () {
this._parent.messageBox_mc._visible = false;
};
this.ramka_hero.playerSpells_mc.spell2Mask_mc.onRelease = this.ramka_hero.playerSpells_mc.spell2Mask_mc.onRollOut;
this.ramka_hero.playerSpells_mc.spell2Mask_mc.onReleaseOutside = this.ramka_hero.playerSpells_mc.spell2Mask_mc.onRollOut;
this.ramka_hero.playerSpells_mc.spell3Mask_mc.reference = this;
this.ramka_hero.playerSpells_mc.spell3Mask_mc.onRollOver = function () {
this._parent.messageBox_mc._visible = true;
this._parent.messageBox_mc.messege_txt.embedFonts = true;
this._parent.messageBox_mc.messege_txt.text = this.reference._spellsTable[(this.reference._player.getSpells())[2]][0];
this._parent.messageBox_mc.messege_txt.setTextFormat(this.reference.textFormat);
};
this.ramka_hero.playerSpells_mc.spell3Mask_mc.onRollOut = function () {
this._parent.messageBox_mc._visible = false;
};
this.ramka_hero.playerSpells_mc.spell3Mask_mc.onRelease = this.ramka_hero.playerSpells_mc.spell3Mask_mc.onRollOut;
this.ramka_hero.playerSpells_mc.spell3Mask_mc.onReleaseOutside = this.ramka_hero.playerSpells_mc.spell3Mask_mc.onRollOut;
this.ramka_enemy.enemySpells_mc.spell1Mask_mc.reference = this;
this.ramka_enemy.enemySpells_mc.spell1Mask_mc.onRollOver = function () {
this._parent.messageBox_mc._visible = true;
this._parent.messageBox_mc.messege_txt.embedFonts = true;
this._parent.messageBox_mc.messege_txt.text = this.reference._spellsTable[(this.reference._enemies.getSpells())[0]][0];
this._parent.messageBox_mc.messege_txt.setTextFormat(this.reference.textFormat);
};
this.ramka_enemy.enemySpells_mc.spell1Mask_mc.onRollOut = function () {
this._parent.messageBox_mc._visible = false;
};
this.ramka_enemy.enemySpells_mc.spell1Mask_mc.onRelease = this.ramka_enemy.enemySpells_mc.spell1Mask_mc.onRollOut;
this.ramka_enemy.enemySpells_mc.spell1Mask_mc.onReleaseOutside = this.ramka_enemy.enemySpells_mc.spell1Mask_mc.onRollOut;
this.ramka_enemy.enemySpells_mc.spell2Mask_mc.reference = this;
this.ramka_enemy.enemySpells_mc.spell2Mask_mc.onRollOver = function () {
this._parent.messageBox_mc._visible = true;
this._parent.messageBox_mc.messege_txt.embedFonts = true;
this._parent.messageBox_mc.messege_txt.text = this.reference._spellsTable[(this.reference._enemies.getSpells())[1]][0];
this._parent.messageBox_mc.messege_txt.setTextFormat(this.reference.textFormat);
};
this.ramka_enemy.enemySpells_mc.spell2Mask_mc.onRollOut = function () {
this._parent.messageBox_mc._visible = false;
};
this.ramka_enemy.enemySpells_mc.spell2Mask_mc.onRelease = this.ramka_enemy.enemySpells_mc.spell2Mask_mc.onRollOut;
this.ramka_enemy.enemySpells_mc.spell2Mask_mc.onReleaseOutside = this.ramka_enemy.enemySpells_mc.spell2Mask_mc.onRollOut;
this.ramka_enemy.enemySpells_mc.spell3Mask_mc.reference = this;
this.ramka_enemy.enemySpells_mc.spell3Mask_mc.onRollOver = function () {
this._parent.messageBox_mc._visible = true;
this._parent.messageBox_mc.messege_txt.embedFonts = true;
this._parent.messageBox_mc.messege_txt.text = this.reference._spellsTable[(this.reference._enemies.getSpells())[2]][0];
this._parent.messageBox_mc.messege_txt.setTextFormat(this.reference.textFormat);
};
this.ramka_enemy.enemySpells_mc.spell3Mask_mc.onRollOut = function () {
this._parent.messageBox_mc._visible = false;
};
this.ramka_enemy.enemySpells_mc.spell3Mask_mc.onRelease = this.ramka_enemy.enemySpells_mc.spell3Mask_mc.onRollOut;
this.ramka_enemy.enemySpells_mc.spell3Mask_mc.onReleaseOutside = this.ramka_enemy.enemySpells_mc.spell3Mask_mc.onRollOut;
this.ramka_enemy.enemySpells_mc.spell1_mc.gotoAndStop((this._enemies.getSpells())[0] + 2);
this.ramka_enemy.enemySpells_mc.spell2_mc.gotoAndStop((this._enemies.getSpells())[1] + 2);
this.ramka_enemy.enemySpells_mc.spell3_mc.gotoAndStop((this._enemies.getSpells())[2] + 2);
this.ramka_enemy.enemySpells_mc.spell1_mc.enabled = false;
this.ramka_enemy.enemySpells_mc.spell2_mc.enabled = false;
this.ramka_enemy.enemySpells_mc.spell3_mc.enabled = false;
this.pPoints_mc.embedFonts = true;
this.ePoints_mc.embedFonts = true;
this.pPoints2_mc.embedFonts = true;
this.ePoints2_mc.embedFonts = true;
this.pPoints_mc.text = String(this._player.getHealth() + '/' + this._player.getMaxHealth());
this.ePoints_mc.text = String(this._enemies.getHealth() + '/' + this._enemies.getMaxHealth());
this.pPoints2_mc.text = String(this._player.getHealth() + '/' + this._player.getMaxHealth());
this.ePoints2_mc.text = String(this._enemies.getHealth() + '/' + this._enemies.getMaxHealth());
this.pPoints_mc.setTextFormat(this.textFormat);
this.ePoints_mc.setTextFormat(this.textFormat);
this.pPoints2_mc.setTextFormat(this.textFormat);
this.ePoints2_mc.setTextFormat(this.textFormat);
this.critical_mc._pca._visible = false;
this.critical_mc._pcd._visible = false;
this.critical_mc._eca._visible = false;
this.critical_mc._ecd._visible = false;
this.critical_mc.p_defence1_mc.enabled = false;
this.critical_mc._pN1_mc.gotoAndStop(1);
this.critical_mc.p_defence2_mc.enabled = false;
this.critical_mc._pN2_mc.gotoAndStop(1);
this.critical_mc.p_defence3_mc.enabled = false;
this.critical_mc._pN3_mc.gotoAndStop(1);
this.critical_mc.e_defence1_mc.enabled = false;
this.critical_mc._eN1_mc.gotoAndStop(1);
this.critical_mc.e_defence2_mc.enabled = false;
this.critical_mc._eN2_mc.gotoAndStop(1);
this.critical_mc.e_defence3_mc.enabled = false;
this.critical_mc._eN3_mc.gotoAndStop(1);
this.critical_mc.e_defence4_mc.enabled = false;
this.critical_mc._eN4_mc.gotoAndStop(1);
this.p_energy_mc.gotoAndStop(101 - int((this._player.getHealth() / this._player.getMaxHealth()) * 100));
this.e_energy_mc.gotoAndStop(101 - int((this._enemies.getHealth() / this._enemies.getMaxHealth()) * 100));
};
v2.updateUI = function () {
this.pPoints_mc.embedFonts = true;
this.ePoints_mc.embedFonts = true;
this.pPoints2_mc.embedFonts = true;
this.ePoints2_mc.embedFonts = true;
this.pPoints_mc.text = String(this._player.getHealth() + '/' + this._player.getMaxHealth());
this.ePoints_mc.text = String(this._enemies.getHealth() + '/' + this._enemies.getMaxHealth());
this.pPoints2_mc.text = String(this._player.getHealth() + '/' + this._player.getMaxHealth());
this.ePoints2_mc.text = String(this._enemies.getHealth() + '/' + this._enemies.getMaxHealth());
this.p_energy_mc.gotoAndStop(101 - int((this._player.getHealth() / this._player.getMaxHealth()) * 100));
this.e_energy_mc.gotoAndStop(101 - int((this._enemies.getHealth() / this._enemies.getMaxHealth()) * 100));
this.pPoints_mc.setTextFormat(this.textFormat);
this.ePoints_mc.setTextFormat(this.textFormat);
this.pPoints2_mc.setTextFormat(this.textFormat);
this.ePoints2_mc.setTextFormat(this.textFormat);
};
v2.updateUIDefence = function () {
if (this._player.getCriticalAttack() > 0) {
this.critical_mc._pca._visible = true;
} else {
this.critical_mc._pca._visible = false;
}
if (this._enemies.getCriticalAttack() > 0) {
this.critical_mc._eca._visible = true;
} else {
this.critical_mc._eca._visible = false;
}
var v2 = (this.chooseSpellIcon(this._player))[0];
this.critical_mc.p_defence1_mc.gotoAndStop(v2);
this.critical_mc._pN1_mc.gotoAndStop(v2);
v2 = (this.chooseSpellIcon(this._player))[1];
this.critical_mc.p_defence2_mc.gotoAndStop(v2);
this.critical_mc._pN2_mc.gotoAndStop(v2);
v2 = (this.chooseSpellIcon(this._player))[2];
this.critical_mc.p_defence3_mc.gotoAndStop(v2);
this.critical_mc._pN3_mc.gotoAndStop(v2);
v2 = (this.chooseSpellIcon(this._enemies))[0];
this.critical_mc.e_defence1_mc.gotoAndStop(v2);
this.critical_mc._eN1_mc.gotoAndStop(v2);
v2 = (this.chooseSpellIcon(this._enemies))[1];
this.critical_mc.e_defence2_mc.gotoAndStop(v2);
this.critical_mc._eN2_mc.gotoAndStop(v2);
v2 = (this.chooseSpellIcon(this._enemies))[2];
this.critical_mc.e_defence3_mc.gotoAndStop(v2);
this.critical_mc._eN3_mc.gotoAndStop(v2);
v2 = (this.chooseSpellIcon(this._enemies))[3];
this.critical_mc.e_defence4_mc.gotoAndStop(v2);
this.critical_mc._eN4_mc.gotoAndStop(v2);
};
v2.chooseSpellIcon = function (object, num) {
var v3 = new Array();
var v4 = new Array();
v4 = object.getTemporaryAddons();
var v2 = 0;
while (v2 < this._spellsTable.length) {
if (v4[v2] != undefined) {
v3.push(v2 + 2);
}
++v2;
}
v2 = 0;
while (v2 < 4) {
if (v3[v2] == undefined) {
v3.push(1);
}
++v2;
}
return v3;
};
v2.countAttackModificator = function (state) {
var v1 = 0;
switch (state) {
return v1;
case 0:
v1 = 100;
return v1;
case -1:
v1 = 60;
return v1;
case 1:
v1 = 150;
return v1;
}
return v1;
};
v2.countDefenceModificator = function (state) {
var v1 = 0;
switch (state) {
return v1;
case 0:
v1 = 100;
return v1;
case -1:
v1 = 80;
return v1;
case 1:
v1 = 120;
return v1;
}
return v1;
};
v2.countCriticalAtackModificator = function (num) {
var v1 = 0;
switch (num) {
return v1;
case 0:
v1 = 0;
return v1;
case 3:
v1 = 50;
return v1;
case 4:
v1 = 75;
return v1;
case 5:
v1 = 100;
return v1;
}
return v1;
};
v2.countCriticalDefenceModificator = function (num) {
var v1 = 0;
switch (num) {
return v1;
case 0:
v1 = 0;
return v1;
case 3:
v1 = 75;
return v1;
case 4:
v1 = 100;
return v1;
case 5:
v1 = 135;
return v1;
}
return v1;
};
v2.countPiecesNumberDefence = function (num) {
var v1;
switch (num) {
return v1;
case 3:
v1 = 50;
return v1;
case 4:
v1 = 100;
return v1;
case 5:
v1 = 150;
return v1;
}
return v1;
};
v2.checkWinningConditions = function () {
var v2 = false;
if (this._player.getHealth() == 0) {
v2 = true;
this._winner = this._enemies;
this._player.setHealth(100);
return v2;
}
if (this._enemies.getHealth() == 0) {
v2 = true;
this._winner = this._player;
}
return v2;
};
v2.getHeroStateFrame = function () {
return this._heroStateFrame;
};
v2.updatePortret = function (portret) {
if (portret == 'hero_mc') {
this.ramka_hero.hero_mc.gotoAndStop('hited');
} else {
this.ramka_enemy.enemy_mc.enemyPortrait_mc.gotoAndPlay('Hit');
}
};
v2.endBattle = function () {
(pl.fabrykagier.blazer.GameManager.getInstance()).endBattle(this._parent._winner);
};
v2.endWindwShow = function () {
if (this._winner.getName() == this._player.getName()) {
if (this._gameManager.__get____schoolState() < 3) {
this.winnerBox_mc.gotoAndStop(1);
this.winnerBox_mc.winMoney_txt.embedFonts = true;
var v2 = 0;
if (this._player.getHealth() == this._player.getMaxHealth()) {
switch ((pl.fabrykagier.blazer.GameManager.getInstance()).getLevel()) {
case 1:
v2 = 20;
break;
case 2:
v2 = 30;
break;
case 3:
v2 = 40;
}
} else {
switch ((pl.fabrykagier.blazer.GameManager.getInstance()).getLevel()) {
case 1:
v2 = random(10) + 10;
break;
case 2:
v2 = random(10) + 20;
break;
case 3:
v2 = random(10) + 30;
}
}
this.winnerBox_mc.winMoney_txt.text = v2;
this.winnerBox_mc.winMoney_txt.setTextFormat(this.textFormat);
if (Number(this.winnerBox_mc.winMoney_txt.text) >= 30) {
this.winnerBox_mc.box_mc.gotoAndStop(1);
} else {
this.winnerBox_mc.box_mc.gotoAndStop(2);
}
} else {
this.winnerBox_mc.gotoAndStop(3);
}
} else {
if (this._gameManager.__get____schoolState() < 3) {
this.winnerBox_mc.gotoAndStop(2);
} else {
this.winnerBox_mc.gotoAndStop(4);
}
this.winnerBox_mc.btnFight_mc.reference = this;
this.winnerBox_mc.btnFight_mc.gotoAndStop(1);
this.winnerBox_mc.btnFight_mc.onRollOver = function () {
this.gotoAndStop(2);
};
this.winnerBox_mc.btnFight_mc.onRollOut = function () {
this.gotoAndStop(1);
};
this.winnerBox_mc.btnFight_mc.onPress = function () {
this.reference._battleEfect = 'again';
this.reference.play();
};
}
(pl.fabrykagier.blazer.GameManager.getInstance()).endBattle(this._winner);
this.winnerBox_mc.btnOk_mc.gotoAndStop(1);
this.winnerBox_mc.btnOk_mc.reference = this;
this.winnerBox_mc.btnOk_mc.onRollOver = function () {
this.gotoAndStop(2);
};
this.winnerBox_mc.btnOk_mc.onRollOut = function () {
this.gotoAndStop(1);
};
this.winnerBox_mc.btnOk_mc.onPress = function () {
if (this._parent.winMoney_txt.text != undefined) {
((pl.fabrykagier.blazer.GameManager.getInstance()).getPlayer()).setGold(((pl.fabrykagier.blazer.GameManager.getInstance()).getPlayer()).getGold() + Number(this._parent.winMoney_txt.text));
}
this.reference.play();
};
this.tlo_mc.onRollOver = function () {};
this.tlo_mc.useHandCursor = false;
};
v2.addCachSound = function () {
if (this._enemies.getID() < 19 && this._winner.getName() == this._player.getName()) {
var v2 = new Sound(this);
v2.attachSound('kasa2_snd');
v2.start();
}
};
v2.windowHide = function () {
this.strangeMagicFirst.removeMovieClip();
this.createEmptyMovieClip('empty', 50);
this._dContainer.moveDone();
};
v2.checkSchoolOpen = function () {
if (this._gameManager.__get____strangeMagicUses() == 5 && this._gameManager.__get____schoolState() < 2) {
this.attachMovie('strangeMagicLast', 'strangeMagicLast', 50, {});
this._gameManager.__set____schoolState(2);
} else {
this.play();
}
};
v2.secondWindowHide = function () {
this.strangeMagicLast.removeMovieClip();
this.createEmptyMovieClip('empty', 50);
this.play();
};
v2.isTrainingEnd = function () {
if (this._gameManager.__get____schoolState() == 3 && this._diamandUsed) {
return true;
}
return false;
};
v2.addProperty('__allowedSpells', v2.__get____allowedSpells, function () {});
ASSetPropFlags(pl.fabrykagier.blazer.battle.BattleGame.prototype, null, 1);
}
#endinitclip
}
movieClip 2290 __Packages.pl.fabrykagier.blazer.GameManager {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.GameManager) {
var v1 = function () {
super();
pl.fabrykagier.blazer.GameManager._instance = this;
this._qLoadGame = true;
this._so = SharedObject.getLocal('spellblazerSave');
this._loadingGame = false;
stopAllSounds();
this._music = new Sound(this);
this._music.attachSound('map_snd');
this._music.start(0, 999);
this.tabEnabled = false;
this.tabChildren = false;
};
pl.fabrykagier.blazer.GameManager = v1;
pl.fabrykagier.blazer.GameManager extends MovieClip;
var v2 = v1.prototype;
v1.getInstance = function () {
if (pl.fabrykagier.blazer.GameManager._instance == null) {
new pl.fabrykagier.blazer.GameManager();
}
return pl.fabrykagier.blazer.GameManager._instance;
};
v2.clearSave = function () {
this._so.clear();
this._so.flush();
};
v2.init = function (qLoadGame) {
this._qLoadGame = qLoadGame;
if (!this._qLoadGame) {
this._so.clear();
this._so.flush();
this._so = SharedObject.getLocal('spellblazerSave');
}
this._map1 = new pl.fabrykagier.blazer.map.Map('map1');
this._map2 = new pl.fabrykagier.blazer.map.Map('map2');
this._map3 = new pl.fabrykagier.blazer.map.Map('map3');
this._player = new pl.fabrykagier.blazer.characters.Player('Kaven', new Array(1, 2, 3, 4));
this._isTutorial = true;
this.initSpellsTable();
this.initEnemiesTable();
this.initCitiesNames();
if (this._so.data.isSave == undefined) {
this._player = new pl.fabrykagier.blazer.characters.Player('Kaven', new Array(1, 2, 3, 4));
this.initSpellsTable();
this.initEnemiesTable();
this.initCitiesNames();
this._strangeMagicUses = 0;
this._level = 1;
this._currentMap = this._map1;
this._schoolState = 0;
this.showMap(this._level);
} else {
this.loadGameFormSave();
this._loadingGame = true;
if (this._currentMap != this._map1) {
this._currentMap.hide();
this.createEmptyMovieClip('empty', 10);
this.attachMovie('MapTransitions', 'MapTransitions', 10, {'_x': 320, '_y': 240});
this.MapTransitions.initialize(1, this._level);
} else {
this.showMap(this._level);
}
}
this.createEmptyMovieClip('empty2', 20);
this.gold_mc.swapDepths(this.empty2);
};
v2.getLoadingGame = function () {
return this._loadingGame;
};
v2.setLoadingGame = function (val) {
this._loadingGame = val;
};
v2.getPlayer = function () {
return this._player;
};
v2.__set____qLoad = function (val) {
this._qLoadGame = val;
return this.__get____qLoad();
};
v2.getLevel = function () {
return this._level;
};
v2.__get____schoolState = function () {
return this._schoolState;
};
v2.__set____schoolState = function (state) {
this._schoolState = state;
return this.__get____schoolState();
};
v2.__get____strangeMagicUses = function () {
return this._strangeMagicUses;
};
v2.__set____strangeMagicUses = function (val) {
this._strangeMagicUses = val;
return this.__get____strangeMagicUses();
};
v2.isTutorial = function () {
return this._isTutorial;
};
v2.setLevel = function (level) {
this._loadingGame = true;
var v2 = this._level;
this.MapTransitions.removeMovieClip();
this._level = level;
this.showMap(this._level);
if (this._level == 3 && v2 == 2 && !this._player.isSpellGiven(7) && this._map1.__get____completed() && this._map2.__get____completed()) {
this._player.addAvialableSpells(7);
this.attachMovie('enterquest', 'enterquest', 16, {'_x': 320, '_y': 240});
this.enterquest.decisionBox_mc.gotoAndStop('reward' + this.getLevel());
}
};
v2.showMap = function (level) {
switch (level) {
case 1:
this._currentMap = this._map1;
this._map1.show();
break;
case 2:
this._currentMap = this._map2;
this._map2.show();
break;
case 3:
this._currentMap = this._map3;
this._map3.show();
}
};
v2.decisionBoxShow = function () {
this.attachMovie('decisionBox', '_decisionBox', 11, {'_x': 316, '_y': 254});
this._decisionBox.tlo_mc.onRollOver = function () {};
this._decisionBox.tlo_mc.useHandCursor = false;
};
v2.tutorial1Show = function () {
this.attachMovie('TutorialFirst', 'TutorialFirst', 11, {'_x': 316, '_y': 254});
this._decisionBox.tlo_mc.onRollOver = function () {};
this._decisionBox.tlo_mc.useHandCursor = false;
};
v2.decisionBoxHide = function () {
this._decisionBox.removeMovieClip(this);
this._currentMap.show();
};
v2.spellsSelection = function () {
this._decisionBox.play();
stopAllSounds();
this._music.stop();
this._music.attachSound('battle_snd');
this._music.start(0, 999);
};
v2.startBattle = function () {
this._currentMap.hide();
this.createEmptyMovieClip('empty', 11);
this.attachMovie('battle', '_battle', 11, {'_x': 323.2, '_y': 241.3});
this._battle.init();
};
v2.endBattle = function (winner) {
if (winner.getName() != this._player.getName()) {
this._currentMap.show();
} else {
if ((this._currentMap.getCurentRoad()).getPatrol()) {
((this._currentMap.getCurentRoad()).getCurrentEnemies()).setDefeated();
} else {
((this._currentMap.getCurentRoad()).getCurrentEnemies()).selfDelete();
}
this._currentMap.show();
}
stopAllSounds();
this._music.stop();
this._music.attachSound('map_snd');
this._music.start(0, 999);
};
v2.continueMovingAfterFight = function (battleEffect) {
if (battleEffect == 'player') {
this._isTutorial = false;
}
if (battleEffect != 'again') {
if (this._schoolState > 3) {
this.atSchool();
} else {
(this._currentMap.getCurentRoad()).continueMoving((this._currentMap.getCurentRoad()).getDirect());
}
} else {
this._loadingGame = true;
if ((this._currentMap.getCurentRoad()).getCurrentEnemies() == (this._currentMap.getCurentRoad()).getEnemy1()) {
(this._currentMap.getCurentRoad()).setCurrentPart(1);
} else {
if ((this._currentMap.getCurentRoad()).getCurrentEnemies() == (this._currentMap.getCurentRoad()).getEnemy2()) {
(this._currentMap.getCurentRoad()).setCurrentPart(2);
} else {
(this._currentMap.getCurentRoad()).setCurrentPart(3);
}
}
this.decisionBoxShow();
}
if (this._loadingGame) {
this._loadingGame = false;
} else {
(this._currentMap.getMap())[(this._currentMap.getCurentRoad()).getName()].showHero();
}
};
v2.getSpellsTable = function () {
return this._spellsTable;
};
v2.getEnemiesTable = function () {
return this._enemiesTable;
};
v2.getCitiesNames = function (level) {
return this._citiesNames[level];
};
v2.initSpellsTable = function () {
this._spellsTable = new Array();
this._spellsTable[0] = new Array('critical', 0, 0, undefined, 0, 1);
this._spellsTable[1] = new Array('healing', 0, 15, false, 1, 2);
this._spellsTable[2] = new Array('fireball', 15, 0, false, 2, 1);
this._spellsTable[3] = new Array('icebolt', 15, 0, false, 3, 3);
this._spellsTable[4] = new Array('lightning', 15, 0, false, 4, 3);
this._spellsTable[5] = new Array('poison', 17, 0, false, 5, 2);
this._spellsTable[6] = new Array('acid', 20, 0, false, 6, 2);
this._spellsTable[7] = new Array('earthshock', 24, 0, false, 7, 2);
this._spellsTable[8] = new Array('strange magic', 20, 15, false, 8, 4);
this._spellsTable[9] = new Array('sword swing', 7, 0, true, 50, 3);
this._spellsTable[10] = new Array('shield bash', 5, 0, true, 51, 3);
this._spellsTable[11] = new Array('flury of blows', 9, 0, true, 52, 1);
this._spellsTable[12] = new Array('kick', 5, 0, true, 53, 1);
this._spellsTable[13] = new Array('rock slide', 12, 0, true, 54, 3);
this._spellsTable[14] = new Array('harpoon throw', 12, 0, true, 55, 3);
this._spellsTable[15] = new Array('chill grasp', 12, 0, true, 56, 3);
this._spellsTable[16] = new Array('poisonous claw', 12, 0, true, 57, 2);
this._spellsTable[17] = new Array('thrown axe', 12, 0, true, 58, 1);
this._spellsTable[18] = new Array('bite', 7, 0, true, 59, 1);
this._spellsTable[19] = new Array('poisonous bite', 10, 0, true, 60, 2);
this._spellsTable[20] = new Array('web choke', 9, 0, true, 61, 0, 3);
this._spellsTable[21] = new Array('dive attack', 10, 0, true, 62, 1);
this._spellsTable[22] = new Array('blood suck', 8, 5, true, 63, 1);
this._spellsTable[23] = new Array('infectious beak', 8, 0, true, 64, 2);
this._spellsTable[24] = new Array('claw strike', 8, 0, true, 65, 1);
this._spellsTable[25] = new Array('rapid attack', 10, 0, true, 66, 3);
this._spellsTable[26] = new Array('grapple', 10, 0, true, 67, 1);
this._spellsTable[27] = new Array('trample', 9, 0, true, 68, 1);
this._spellsTable[28] = new Array('reap', 10, 0, true, 69, 1);
this._spellsTable[29] = new Array('acid blast', 17, 0, true, 70, 2);
this._spellsTable[30] = new Array('corosive breath', 17, 0, true, 71, 2);
this._spellsTable[31] = new Array('crush', 10, 0, true, 72, 3);
this._spellsTable[32] = new Array('tail swipe', 10, 0, true, 73, 2);
this._spellsTable[33] = new Array('fire breath', 17, 0, true, 74, 1);
this._spellsTable[34] = new Array('flare spell', 17, 0, true, 75, 1);
this._spellsTable[35] = new Array('mental blow', 20, 0, true, 76, 3);
this._spellsTable[36] = new Array('drain energy', 8, 5, true, 77, 3);
this._spellsTable[37] = new Array('gaze of terror', 8, 0, true, 78, 3);
this._spellsTable[38] = new Array('ghostly touch', 6, 3, true, 79, 3);
this._spellsTable[39] = new Array('chilling breath', 8, 0, true, 80, 3);
this._spellsTable[40] = new Array('touch of fear', 7, 0, true, 81, 1);
this._spellsTable[41] = new Array('frightening charge', 12, 0, true, 82, 3);
this._spellsTable[42] = new Array('toxic spit', 10, 0, true, 83, 2);
this._spellsTable[43] = new Array('web trap', 6, 0, true, 84, 3);
this._spellsTable[44] = new Array('attack from above', 10, 0, true, 85, 3);
this._spellsTable[45] = new Array('mighty paw', 10, 0, true, 86, 1);
this._spellsTable[46] = new Array('dreadfull gaze', 9, 6, true, 87, 1);
this._spellsTable[47] = new Array('dragon bite', 10, 0, true, 88, 3);
this._spellsTable[48] = new Array('dark aura', 13, 7, true, 89, 3);
};
v2.initEnemiesTable = function () {
this._enemiesTable = new Array();
this._enemiesTable[0] = new Array('Angry Wolf', 2, 3, new Array(18, 24, 25, 28), 80, 1);
this._enemiesTable[1] = new Array('Giant Spider', 3, 4, new Array(18, 19, 20, 24, 25), 90, 1);
this._enemiesTable[2] = new Array('Giant Bat', 4, 3, new Array(18, 21, 22, 24, 25), 80, 1);
this._enemiesTable[3] = new Array('Coastal Brigands', 4, 3, new Array(9, 10, 11, 12, 14), 90, 1);
this._enemiesTable[4] = new Array('Skeleton', 2, 3, new Array(9, 10, 11, 12), 90, 1);
this._enemiesTable[5] = new Array('Green Dragon', 3, 4, new Array(29, 30, 31, 32, 47), 110, 1);
this._enemiesTable[6] = new Array('Angry Bear', 2, 5, new Array(18, 24, 25, 26, 27), 90, 2);
this._enemiesTable[7] = new Array('Giant Vulture', 5, 4, new Array(18, 21, 23, 24, 25), 100, 2);
this._enemiesTable[8] = new Array('Hillbound Bandits', 2, 3, new Array(9, 10, 11, 12, 13), 100, 2);
this._enemiesTable[9] = new Array('Darkling Bat', 4, 2, new Array(36, 37, 39, 40, 46, 48), 95, 2);
this._enemiesTable[10] = new Array('Zombie', 2, 5, new Array(9, 10, 11, 12, 16), 110, 2);
this._enemiesTable[11] = new Array('Red Dragon', 3, 2, new Array(31, 32, 33, 34, 47), 140, 2);
this._enemiesTable[12] = new Array('DarkHaired Ruffians', 5, 4, new Array(9, 10, 11, 12, 17), 110, 3);
this._enemiesTable[13] = new Array('Darkling Wolf', 2, 4, new Array(37, 39, 40, 45, 46, 48), 100, 3);
this._enemiesTable[14] = new Array('Darkling Spider', 3, 6, new Array(37, 40, 42, 43, 46, 48), 100, 3);
this._enemiesTable[15] = new Array('Darkling Bear', 7, 5, new Array(37, 40, 41, 45, 46, 48), 120, 3);
this._enemiesTable[16] = new Array('Darkling Vulture', 6, 4, new Array(37, 39, 40, 44, 46, 48), 110, 3);
this._enemiesTable[17] = new Array('Darkling Spirit', 4, 7, new Array(37, 38, 39, 40, 46, 48), 100, 3);
this._enemiesTable[18] = new Array('Golden Dragon', 8, 3, new Array(31, 32, 33, 24, 35, 47), 150, 3);
this._enemiesTable[19] = new Array('Magic Trainer', 8, 7, new Array(11, 12, 15, 29, 48), 200, 4);
this._enemiesTable[20] = new Array('Mage University Guard', 8, 3, new Array(9, 10, 11, 12, 17), 180, 4);
this._enemiesTable[21] = new Array('Magic Trainer', 8, 7, new Array(11, 12, 15, 29, 48), 200, 4);
};
v2.initCitiesNames = function () {
this._citiesNames = new Array();
this._citiesNames[1] = new Array();
this._citiesNames[1][0] = 'home';
this._citiesNames[1][1] = 'goose';
this._citiesNames[1][2] = 'halgard';
this._citiesNames[1][3] = 'wharf';
this._citiesNames[1][4] = 'hexo';
this._citiesNames[1][5] = 'mills';
this._citiesNames[1][6] = 'whine';
this._citiesNames[1][7] = 'caldemeyn';
this._citiesNames[1][8] = 'mortisem';
this._citiesNames[1][9] = 'maribad';
this._citiesNames[1][10] = 'fields';
this._citiesNames[1][11] = 'turpio';
this._citiesNames[1][12] = 'hares';
this._citiesNames[1][13] = 'udul';
this._citiesNames[1][14] = 'adorsil';
this._citiesNames[1][15] = 'ox';
this._citiesNames[1][16] = 'raven';
this._citiesNames[2] = new Array();
this._citiesNames[2][0] = 'westgate';
this._citiesNames[2][1] = 'owl';
this._citiesNames[2][2] = 'ornibrad';
this._citiesNames[2][3] = 'stem';
this._citiesNames[2][4] = 'swynn';
this._citiesNames[2][5] = 'parch';
this._citiesNames[2][6] = 'peaks';
this._citiesNames[2][7] = 'riverside';
this._citiesNames[2][8] = 'boren';
this._citiesNames[2][9] = 'osnboden';
this._citiesNames[2][10] = 'tragen';
this._citiesNames[2][11] = 'trim';
this._citiesNames[2][12] = 'styff';
this._citiesNames[2][13] = 'eastmore';
this._citiesNames[2][14] = 'hayt';
this._citiesNames[2][15] = 'caves';
this._citiesNames[2][16] = 'rondale';
this._citiesNames[3] = new Array();
this._citiesNames[3][0] = 'eastpass';
this._citiesNames[3][1] = 'banks';
this._citiesNames[3][2] = 'herns';
this._citiesNames[3][3] = 'sanxion';
this._citiesNames[3][4] = 'dandale';
this._citiesNames[3][5] = 'osten';
this._citiesNames[3][6] = 'orhish';
this._citiesNames[3][7] = 'mourn';
this._citiesNames[3][8] = 'dale';
this._citiesNames[3][9] = 'deeps';
this._citiesNames[3][10] = 'bath';
this._citiesNames[3][11] = 'ends';
this._citiesNames[3][12] = 'lorne';
this._citiesNames[3][13] = 'fork';
this._citiesNames[3][14] = 'horn';
this._citiesNames[3][15] = 'covent';
this._citiesNames[3][16] = 'den';
};
v2.getCurrentMap = function () {
return this._currentMap;
};
v2.flee = function () {
this.setLoadingGame(true);
this._decisionBox.flee();
if (this._schoolState > 2) {
this.__set____schoolState(2);
}
};
v2.changeLevel = function (num) {
this._currentMap.hide();
this.createEmptyMovieClip('empty', 10);
this.attachMovie('MapTransitions', 'MapTransitions', 10, {'_x': 320, '_y': 240});
this.MapTransitions.initialize(this._level, num);
};
v2.atSchool = function () {
if (this._schoolState == 3) {
(this._currentMap.getCurentRoad()).setCurrentEnemy(new pl.fabrykagier.blazer.characters.Enemies(String(19)));
this.decisionBoxShow();
} else {
if (this._schoolState == 4) {
this._schoolState = 5;
this.attachMovie('TrainerDialogue', 'TrainerDialogue', 15, {'_x': 320, '_y': 240});
} else {
if (this._schoolState == 5) {
(this._currentMap.getCurentRoad()).setCurrentEnemy(new pl.fabrykagier.blazer.characters.Enemies(String(20)));
this._schoolState = 6;
this.decisionBoxShow();
} else {
if (this._schoolState == 6) {
(this._currentMap.getCurentRoad()).setCurrentEnemy(new pl.fabrykagier.blazer.characters.Enemies(String(21)));
this._schoolState = 7;
this.decisionBoxShow();
} else {
if (this._schoolState == 7) {
this._currentMap.hide();
this.createEmptyMovieClip('e', 15);
stopAllSounds();
this._music = new Sound(this);
this._music.attachSound('outro_snd');
this._music.start(0, 999);
this._parent.play();
}
}
}
}
}
};
v2.playAgain = function () {
this._map1 = new pl.fabrykagier.blazer.map.Map('map1');
this._map2 = new pl.fabrykagier.blazer.map.Map('map2');
this._map3 = new pl.fabrykagier.blazer.map.Map('map3');
this._currentMap = this._map1;
this._isTutorial = true;
stopAllSounds();
this._schoolState = 0;
this._so.clear();
this._so.flush();
stopAllSounds();
this._parent.gotoAndPlay('playAgain');
};
v2.loadGameFormSave = function () {
this._strangeMagicUses = this._so.data.gm[0];
this._level = this._so.data.gm[1];
this._schoolState = this._so.data.gm[2];
if (this._schoolState > 2) {
this._schoolState = 2;
}
this._isTutorial = this._so.data.gm[2];
switch (this._level) {
case 1:
this._currentMap = this._map1;
break;
case 2:
this._currentMap = this._map2;
break;
case 3:
this._currentMap = this._map3;
}
};
v2.saveGameState = function () {
this._so.clear();
this._so.flush();
var v2 = new Array();
v2[0] = this._strangeMagicUses;
v2[1] = this._level;
v2[2] = this._schoolState;
v2[3] = this._isTutorial;
var v5 = new Array();
var v3 = new Array();
var v4 = new Array();
v5 = this._map1.saveMapState();
v3 = this._map2.saveMapState();
v4 = this._map3.saveMapState();
var v6 = new Array();
v6 = this._player.savePlayerState();
this._so.data.isSave = true;
this._so.data.gm = v2;
this._so.data.m1 = v5;
this._so.data.m2 = v3;
this._so.data.m3 = v4;
this._so.data.playerState = v6;
this._so.flush();
this._so.data = undefined;
};
v2.getPlayerSavedData = function () {
var v2 = new Array();
if (this._so.data.isSave != undefined) {
v2 = this._so.data.playerState;
}
return v2;
};
v2.getMapSaveData = function (level) {
var v2 = new Array();
if (this._so.data.isSave != undefined) {
switch (level) {
return v2;
case 1:
v2 = this._so.data.m1;
return v2;
case 2:
v2 = this._so.data.m2;
return v2;
case 3:
v2 = this._so.data.m3;
return v2;
}
}
return v2;
};
v2.wasSaved = function () {
if (this._so.data.isSave != undefined) {
return true;
}
return false;
};
v2.wasLevelSaved = function (lev) {
if (this._so.data.isSave != undefined) {
var v2 = new Array();
switch (lev) {
case 1:
v2 = this._so.data.m1;
break;
case 2:
v2 = this._so.data.m2;
break;
case 3:
v2 = this._so.data.m3;
}
if (v2[8][0] != undefined) {
return true;
}
}
return false;
};
v2.loadQuestion = function () {
this._so = SharedObject.getLocal('spellblazerSave');
if (this._so.data.m1 != undefined) {
this._parent.attachMovie('LoadQuestion', 'LoadQuestion', 15, {'_x': 320, '_y': 240});
} else {
this._parent.play();
}
};
v2.addProperty('__qLoad', function () {}, v2.__set____qLoad);
v2.addProperty('__schoolState', v2.__get____schoolState, v2.__set____schoolState);
v2.addProperty('__strangeMagicUses', v2.__get____strangeMagicUses, v2.__set____strangeMagicUses);
ASSetPropFlags(pl.fabrykagier.blazer.GameManager.prototype, null, 1);
}
#endinitclip
}
movieClip 2291 __Packages.pl.fabrykagier.blazer.characters.Character {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.characters) {
_global.pl.fabrykagier.blazer.characters = new Object();
}
if (!_global.pl.fabrykagier.blazer.characters.Character) {
var v1 = function (name, spells) {
this._name = name;
this._spells = new Array();
this._availableSpells = new Array();
var v2 = 0;
while (v2 < spells.length) {
this._availableSpells[v2] = spells[v2];
++v2;
}
this._health = 100;
this._maxHealth = 100;
this._mana = 100;
this._temporaryAddons = new Array();
v2 = 0;
while (v2 < spells.length) {
++v2;
}
};
pl.fabrykagier.blazer.characters.Character = v1;
var v2 = v1.prototype;
v2.getSpells = function () {
return this._spells;
};
v2.getAvailableSpells = function () {
return this._availableSpells;
};
v2.addAvialableSpells = function (spell) {
this._availableSpells.push(spell);
};
v2.getHealth = function () {
return this._health;
};
v2.getMana = function () {
return this._mana;
};
v2.getRest = function () {
return this._rest;
};
v2.setRest = function (rest) {
this._rest = rest;
};
v2.setCriticalAttack = function (criticalSpell) {
if (criticalSpell == 0 || criticalSpell > this._criticalAttack || this._criticalAttack == undefined) {
this._criticalAttack = criticalSpell;
}
};
v2.getCriticalAttack = function () {
return this._criticalAttack;
};
v2.setCriticalDefence = function (criticalSpell) {
if (criticalSpell == 0 || criticalSpell > this._criticalDefence || this._criticalDefence == undefined) {
this._criticalDefence = criticalSpell;
}
};
v2.getCriticalDefence = function () {
return this._criticalDefence;
};
v2.setHealth = function (health) {
if (health < this._maxHealth && health > 0) {
this._health = health;
} else {
if (health >= this._maxHealth) {
this._health = this._maxHealth;
} else {
this._health = 0;
}
}
};
v2.getMaxHealth = function () {
return this._maxHealth;
};
v2.setMaxHealth = function (val) {
if (val > 50) {
this._maxHealth = val;
} else {
this._maxHealth = 50;
}
};
v2.setSpells = function (spells) {
var v2 = 0;
while (v2 < spells.length) {
this._spells[v2] = this._availableSpells[spells[v2]];
++v2;
}
v2 = 0;
while (v2 < spells.length) {
++v2;
}
};
v2.setName = function (name) {
this._name = name;
};
v2.getName = function () {
return this._name;
};
v2.setTemporaryAddons = function (addons) {
this._temporaryAddons = new Array();
var v2 = 0;
while (v2 < addons.length) {
this._temporaryAddons[v2] = addons[v2];
++v2;
}
};
v2.getTemporaryAddons = function () {
return this._temporaryAddons;
};
ASSetPropFlags(pl.fabrykagier.blazer.characters.Character.prototype, null, 1);
}
#endinitclip
}
movieClip 2292 __Packages.pl.fabrykagier.blazer.characters.Player {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.characters) {
_global.pl.fabrykagier.blazer.characters = new Object();
}
if (!_global.pl.fabrykagier.blazer.characters.Player) {
var v1 = function (name, spells) {
super(name, spells);
this._rest = 0;
this._gold = 50;
this.textFormat = new TextFormat();
this.textFormat.font = 'Aniron';
this.loadPlayeState();
this.setGold(this._gold);
};
pl.fabrykagier.blazer.characters.Player = v1;
pl.fabrykagier.blazer.characters.Player extends pl.fabrykagier.blazer.characters.Character;
var v2 = v1.prototype;
v2.getGold = function () {
return this._gold;
};
v2.setGold = function (val) {
if (val >= 0) {
this._gold = val;
if (this._gold > 9999) {
this._gold = 9999;
}
(pl.fabrykagier.blazer.GameManager.getInstance()).gold_mc.goldBox_mc.money_txt.embedFonts = true;
(pl.fabrykagier.blazer.GameManager.getInstance()).gold_mc.goldBox_mc.money_txt.text = this._gold;
(pl.fabrykagier.blazer.GameManager.getInstance()).gold_mc.goldBox_mc.money_txt.setTextFormat(this.textFormat);
return true;
}
return false;
};
v2.isPossibleRest = function (cost) {
if (this._gold - cost >= 0) {
return true;
}
return false;
};
v2.doRest = function (cost) {
this.setGold(this._gold - cost);
if (cost <= 20) {
this._rest = 0;
} else {
this._rest = 1;
}
};
v2.doTired = function () {
--this._rest;
if (this._rest < -1) {
this._rest = -1;
}
};
v2.savePlayerState = function () {
var v2 = new Array();
v2[0] = new Array();
v2[0] = this._spells;
v2[1] = this._health;
v2[2] = this._maxHealth;
v2[3] = this._name;
v2[4] = new Array();
v2[4] = this._availableSpells;
v2[5] = this._rest;
v2[6] = this._gold;
return v2;
};
v2.loadPlayeState = function () {
if ((pl.fabrykagier.blazer.GameManager.getInstance()).wasSaved()) {
var v3 = new Array();
v3 = (pl.fabrykagier.blazer.GameManager.getInstance()).getPlayerSavedData();
this._availableSpells = new Array();
var v2 = 0;
while (v2 < v3[4].length) {
this._availableSpells[v2] = v3[4][v2];
++v2;
}
this._spells = new Array();
this.setSpells(v3[0]);
this._health = v3[1];
this._maxHealth = v3[2];
this._name = v3[3];
this._rest = v3[5];
this._gold = v3[6];
}
};
v2.isSpellGiven = function (spellNum) {
var v2 = 0;
while (v2 < this._availableSpells.length) {
if (this._availableSpells[v2] == spellNum) {
return true;
}
++v2;
}
return false;
};
ASSetPropFlags(pl.fabrykagier.blazer.characters.Player.prototype, null, 1);
}
#endinitclip
}
movieClip 2293 __Packages.pl.fabrykagier.blazer.map.Road {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.Road) {
var v1 = function (map) {
this._mapInstance = map;
this._numberOfPossibleEnemies = 1;
this._isPatrol = false;
this._lastRoad = false;
};
pl.fabrykagier.blazer.map.Road = v1;
var v2 = v1.prototype;
v2.init = function () {
var v2 = this._mapInstance.getRoadData();
this._name = v2[this._ID].roadName;
if (this._name == 'road_0_1_mc' && (pl.fabrykagier.blazer.GameManager.getInstance()).isTutorial()) {
v2[this._ID].diffLevel = 1;
}
this.setDiffLevel(v2[this._ID].diffLevel);
(this._mapInstance.getMap())[this._name].setRoadInstance(this);
(this._mapInstance.getMap())[this._name].path.gotoAndStop(this._diffLevel + 1);
var v3 = Number((this._mapInstance.getName()).charAt(3));
if (!(pl.fabrykagier.blazer.GameManager.getInstance()).wasLevelSaved(v3)) {
if (this._name == 'road_0_1_mc') {
(this._mapInstance.getMap())[this._name].showHero();
}
}
};
v2.restoreSavedState = function (data) {
this._numberOfPossibleEnemies = data[0];
this._isPatrol = data[1];
this._lastRoad = data[2];
this._name = data[3];
this._ID = data[4];
this._currentPart = data[5];
this._diffLevel = data[9];
if (data[6][0] != undefined) {
this._enemy1 = new pl.fabrykagier.blazer.characters.Enemies(data[6][8], new Array());
this._enemy1.loadEnemyState(data[6]);
}
if (data[7][0] != undefined) {
this._enemy2 = new pl.fabrykagier.blazer.characters.Enemies(data[7][8], new Array());
this._enemy2.loadEnemyState(data[7]);
}
if (data[8][0] != undefined) {
this._enemy3 = new pl.fabrykagier.blazer.characters.Enemies(data[8][8], new Array());
this._enemy3.loadEnemyState(data[8]);
}
if (this._mapInstance == (pl.fabrykagier.blazer.GameManager.getInstance()).getCurrentMap()) {
(this._mapInstance.getMap())[this._name].restoreState();
}
};
v2.saveRoadData = function () {
var v2 = new Array();
v2[0] = this._numberOfPossibleEnemies;
v2[1] = this._isPatrol;
v2[2] = this._lastRoad;
v2[3] = this._name;
v2[4] = this._ID;
v2[5] = this._currentPart;
v2[6] = this._enemy1.saveEnemyState();
v2[7] = this._enemy2.saveEnemyState();
v2[8] = this._enemy3.saveEnemyState();
v2[9] = this._diffLevel;
return v2;
};
v2.init2 = function () {
(this._mapInstance.getMap())[this._name].setRoadInstance(this);
(this._mapInstance.getMap())[this._name].path.gotoAndStop(this._diffLevel + 1);
(this._mapInstance.getMap())[this._name].restoreState();
};
v2.setID = function (id) {
this._ID = id;
};
v2.getID = function () {
return this._ID;
};
v2.getName = function () {
return this._name;
};
v2.setDiffLevel = function (level) {
if (level >= 0 && level < 3) {
this._diffLevel = level;
(this._mapInstance.getMap())[this._name].path.gotoAndStop(this._diffLevel + 1);
this._enemy1.selfDelete();
this._enemy2.selfDelete();
this._enemy3.selfDelete();
(this._mapInstance.getMap())[this._name].e1_mc.gotoAndStop(1);
(this._mapInstance.getMap())[this._name].e2_mc.gotoAndStop(1);
(this._mapInstance.getMap())[this._name].e3_mc.gotoAndStop(1);
}
};
v2.getDiffLevel = function () {
return this._diffLevel;
};
v2.setEnemies = function () {};
v2.getEnemies = function () {
return this._currentEnemy;
};
v2.getCurrentEnemies = function () {
return this._currentEnemy;
};
v2.getEnemy1 = function () {
return this._enemy1;
};
v2.getEnemy2 = function () {
return this._enemy2;
};
v2.getEnemy3 = function () {
return this._enemy3;
};
v2.setEnemy1 = function (enemy) {
this._enemy1 = enemy;
};
v2.setEnemy2 = function (enemy) {
this._enemy2 = enemy;
};
v2.setEnemy3 = function (enemy) {
this._enemy3 = enemy;
};
v2.setCurrentPart = function (part) {
this._currentPart = part;
};
v2.getCurrentPart = function () {
return this._currentPart;
};
v2.goThroughThePath = function (direct) {
this._direct = direct;
if (this._mapInstance.getPatrolAbility() && this._diffLevel > 0) {
this.patrolDecision = pl.fabrykagier.blazer.map.PatrolDecision((this._mapInstance.getMap()).attachMovie('patrolQuestion', 'patrolQuestion', (this._mapInstance.getMap()).getNextHighestDepth(), {}));
this.patrolDecision.init(this, direct);
} else {
this.startMove(direct);
}
};
v2.startMove = function (direct) {
this._mapInstance.setMoving();
this._lastRoad = true;
(this._mapInstance.getMap())[this._name].startMove(direct);
};
v2.continueMoving = function (direct) {
if (this._currentPart != 0) {
this._mapInstance.setMoving();
this._direct = direct;
(this._mapInstance.getMap())[this._name].continueMove(direct);
}
(this._mapInstance.getMap())[this._name].showHero();
};
v2.getDirect = function () {
return this._direct;
};
v2.setDirect = function (direct) {
this._direct = direct;
};
v2.setPatrol = function (type) {
this._isPatrol = type;
};
v2.getPatrol = function () {
return this._isPatrol;
};
v2.setCurrentEnemy = function (enemy) {
this._currentEnemy = enemy;
};
v2.__set____lastRoad = function (state) {
this._lastRoad = state;
return this.__get____lastRoad();
};
v2.startBattle = function () {
if ((pl.fabrykagier.blazer.GameManager.getInstance()).isTutorial()) {
(pl.fabrykagier.blazer.GameManager.getInstance()).tutorial1Show();
} else {
(pl.fabrykagier.blazer.GameManager.getInstance()).decisionBoxShow();
}
};
v2.drawTypeOfEnemy = function () {
var v1;
var v2 = ((pl.fabrykagier.blazer.GameManager.getInstance()).getEnemiesTable()).length;
do {
v1 = random(v2);
} while (((pl.fabrykagier.blazer.GameManager.getInstance()).getEnemiesTable())[v1][5] != (pl.fabrykagier.blazer.GameManager.getInstance()).getLevel());
var v3 = new pl.fabrykagier.blazer.characters.Enemies(String(v1));
return v3;
};
v2.addProperty('__lastRoad', function () {}, v2.__set____lastRoad);
ASSetPropFlags(pl.fabrykagier.blazer.map.Road.prototype, null, 1);
}
#endinitclip
}
movieClip 2294 __Packages.pl.fabrykagier.blazer.characters.Enemies {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.characters) {
_global.pl.fabrykagier.blazer.characters = new Object();
}
if (!_global.pl.fabrykagier.blazer.characters.Enemies) {
var v1 = function (name, spells) {
super(name, spells);
this._paramTable = new Array();
this._paramTable = ((pl.fabrykagier.blazer.GameManager.getInstance()).getEnemiesTable())[Number(name)];
this._id = Number(name);
this._name = this._paramTable[0];
this._weakness = this._paramTable[1];
this._resistance = this._paramTable[2];
this._availableSpells = this._paramTable[3];
this._maxHealth = this._paramTable[4];
this._health = this._maxHealth;
this._defeated = false;
this._rest = random(3) - 1;
this._exist = true;
};
pl.fabrykagier.blazer.characters.Enemies = v1;
pl.fabrykagier.blazer.characters.Enemies extends pl.fabrykagier.blazer.characters.Character;
var v2 = v1.prototype;
v2.setRandomSpells = function () {
var v2 = 0;
while (v2 < 3) {
do {
this._spells[v2] = this._availableSpells[random(this._availableSpells.length)];
} while (this._spells[v2] == this._spells[v2 - 1] || this._spells[v2] == this._spells[v2 - 2]);
++v2;
}
};
v2.getID = function () {
return this._id;
};
v2.getWeakness = function () {
return this._weakness;
};
v2.getResistance = function () {
return this._resistance;
};
v2.getDefeated = function () {
return this._defeated;
};
v2.setDefeated = function () {
this._defeated = true;
};
v2.exist = function () {
return this._exist;
};
v2.selfDelete = function () {
this._exist = false;
false;
};
v2.saveEnemyState = function () {
var v3 = new Array();
v3[0] = new Array();
var v2 = 0;
while (v2 < this._spells.length) {
v3[0][v2] = this._spells[v2];
++v2;
}
v3[1] = this._health;
v3[2] = this._maxHealth;
v3[3] = this._name;
v3[4] = new Array();
v2 = 0;
while (v2 < this._availableSpells.length) {
v3[4][v2] = this._availableSpells[v2];
++v2;
}
v3[5] = this._rest;
v3[6] = this._defeated;
v3[7] = this._exist;
v3[8] = this._id;
return v3;
};
v2.loadEnemyState = function (data) {
this._spells = new Array();
var v2 = 0;
while (v2 < data[0].length) {
this._spells[v2] = data[0][v2];
++v2;
}
this._health = data[1];
this._maxHealth = data[2];
this._name = data[3];
this._availableSpells = new Array();
v2 = 0;
while (v2 < data[4].length) {
this._availableSpells[v2] = data[4][v2];
++v2;
}
this._rest = data[5];
this._defeated = data[6];
this._exist = data[7];
};
ASSetPropFlags(pl.fabrykagier.blazer.characters.Enemies.prototype, null, 1);
}
#endinitclip
}
movieClip 2295 __Packages.pl.fabrykagier.blazer.map.Map {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.Map) {
var v1 = function (map) {
this._gameManager = pl.fabrykagier.blazer.GameManager.getInstance();
this._mapName = map;
var v3 = Number(this._mapName.charAt(3));
var v2 = this._gameManager.getMapSaveData(v3);
this._cityArray = new Array();
if (!this._gameManager.wasLevelSaved(v3)) {
this._new = true;
this._currentCity = 0;
this._isMoving = false;
this._stageClean = false;
this._numRoads = 16;
this._patrolAbility = false;
this._numRoadsToUpgrade = 5;
this.generateRoadsData();
} else {
this._new = false;
this._currentCity = v2[0];
this._isMoving = v2[1];
this._stageClean = v2[2];
this._numRoads = v2[3];
this._patrolAbility = v2[5];
this._numRoadsToUpgrade = v2[6];
this._cityArray = v2[7];
this._savedCurrentRoad = v2[9];
this.restoreRoadsData(v2[8]);
}
};
pl.fabrykagier.blazer.map.Map = v1;
var v2 = v1.prototype;
v2.__get____isNew = function () {
return this._new;
};
v2.show = function () {
this._map = this._gameManager.attachMovie(this._mapName, '_currMap', 10, {'_x': 320, '_y': 240});
this._isMoving = false;
};
v2.hide = function () {
this._gameManager._map.removeMovieClip(this._gameManager);
this._gameManager.createEmptyMovieClip('empty', 10);
};
v2.getName = function () {
return this._mapName;
};
v2.setCurrentRoad = function (road) {
this._currentRoad = road;
};
v2.setCurrentCity = function (city) {
this._currentCity = city;
};
v2.getCurretCity = function () {
return this._currentCity;
};
v2.getCurentRoad = function () {
return this._currentRoad;
};
v2.setPatrolAbility = function (ability) {
this._patrolAbility = ability;
};
v2.getPatrolAbility = function () {
return this._patrolAbility;
};
v2.getTargetCity = function () {
return this._targetCity;
};
v2.setMoving = function () {
this._isMoving = true;
};
v2.goToTheCity = function (city) {
if (this._isMoving == false) {
this._isMoving = true;
this._targetCity = city;
this._map[this._currentRoad.getName()].hideHero();
var v2 = 'road_' + this._currentCity + '_' + city + '_mc';
if (city == this._currentCity && (this.getCurentRoad()).getCurrentPart() == 0 || v2 == 'road_0_0_mc') {
this._map[this._currentRoad.getName()].hideHero();
this._isMoving = false;
this.openCity();
} else {
if (city == this._currentCity && (this.getCurentRoad()).getCurrentPart() != 0) {
var v4 = (this._currentRoad.getName()).split('_');
if (Number(v4[1]) == city) {
this._currentRoad.goThroughThePath(false);
} else {
this._currentRoad.goThroughThePath(true);
}
} else {
if (this._map[v2].exist()) {
this._map[this._currentRoad.getName()].hideHero();
this._currentRoad.__set____lastRoad(false);
this._currentRoad = this._roadsData[this._map[v2].getID()].roadInstance;
this._currentRoad.goThroughThePath(true);
} else {
v2 = 'road_' + city + '_' + this._currentCity + '_mc';
if (this._map[v2].exist()) {
this._map[this._currentRoad.getName()].hideHero();
this._currentRoad.__set____lastRoad(false);
this._currentRoad = this._roadsData[this._map[v2].getID()].roadInstance;
this._currentRoad.goThroughThePath(false);
} else {
this._targetCity = null;
this._isMoving = false;
this._map[this._currentRoad.getName()].showHero();
}
}
}
}
}
};
v2.generateRoadsData = function () {
this._roadsData = new Array();
var v2 = 0;
while (v2 < this._numRoads) {
this._roadsData[v2] = new Array();
this._roadsData[v2].roadName = '';
this._roadsData[v2].diffLevel = 1;
var v4 = random(3);
if (v4 == 0) {
var v3 = random(2);
if (v3 > 0) {
this._roadsData[v2].diffLevel = 2;
} else {
this._roadsData[v2].diffLevel = 0;
}
}
this._roadsData[v2].roadInstance = null;
++v2;
}
};
v2.restoreRoadsData = function (roadsData) {
this._roadsData = new Array();
var v2 = 0;
while (v2 < roadsData.length) {
this._roadsData[roadsData[v2][4]] = new Array();
this._roadsData[roadsData[v2][4]].roadName = roadsData[v2][3];
this._roadsData[roadsData[v2][4]].diffLevel = roadsData[v2][9];
this._roadsData[roadsData[v2][4]].roadInstance = new pl.fabrykagier.blazer.map.Road(this);
this._roadsData[roadsData[v2][4]].roadInstance.restoreSavedState(roadsData[v2]);
if (this._roadsData[roadsData[v2][4]].roadInstance.getName() == this._savedCurrentRoad) {
this._currentRoad = this._roadsData[roadsData[v2][4]].roadInstance;
}
++v2;
}
};
v2.getRoadData = function () {
return this._roadsData;
};
v2.setRoadsData = function (id, param) {
this._roadsData[id][param[0]] = param[1];
if (param[0] == 'roadName' && this._roadsData[id].roadInstance == null) {
this._roadsData[id].roadInstance = new pl.fabrykagier.blazer.map.Road(this);
this._roadsData[id].roadInstance.setID(id);
this._roadsData[id].roadInstance.init();
} else {
if (param[0] == 'roadName' && this._roadsData[id].roadInstance != null) {
this._roadsData[id].roadInstance.init2();
}
}
};
v2.getMap = function () {
return this._map;
};
v2.endRoad = function () {
if (this._currentCity != this._targetCity && (this.getCurentRoad()).getPatrol()) {
this._currentRoad.setPatrol(false);
this._currentRoad.setDiffLevel(this._currentRoad.getDiffLevel() - 1);
}
if (this._gameManager.getLevel() == 3) {
--this._numRoadsToUpgrade;
if (this._numRoadsToUpgrade == 0) {
this._numRoadsToUpgrade = 5;
var v2 = 0;
while (v2 < this._roadsData.length) {
this._roadsData[v2].roadInstance.setDiffLevel(this._roadsData[v2].roadInstance.getDiffLevel() + 1);
++v2;
}
}
}
this._currentCity = this._targetCity;
this._targetCity = null;
this._isMoving = false;
(this._gameManager.getPlayer()).setHealth((this._gameManager.getPlayer()).getMaxHealth());
(this._gameManager.getPlayer()).doTired();
this._cityArray[this._currentCity] = new Array();
this._cityArray[this._currentCity][0] = true;
this.openCity();
this._map[this._currentRoad.getName()].showHero();
this._gameManager.saveGameState();
};
v2.backToTheCity = function () {
var v2 = (this._currentRoad.getName()).split('_');
this._currentRoad.setCurrentPart(0);
if (this._currentCity == v2[1]) {
this._map[this._currentRoad.getName()].gotoAndStop(1);
} else {
this._map[this._currentRoad.getName()].gotoAndStop(this._map[this._currentRoad.getName()]._totalframes / 2 + 1);
}
this._isMoving = false;
if ((pl.fabrykagier.blazer.GameManager.getInstance()).getLoadingGame()) {
this._map[this._currentRoad.getName()].showHero();
(pl.fabrykagier.blazer.GameManager.getInstance()).setLoadingGame(false);
}
this._gameManager.saveGameState();
};
v2.openCity = function () {
(this._gameManager.getPlayer()).setHealth((this._gameManager.getPlayer()).getMaxHealth());
if (this._map['city_' + this._currentCity + '_mc'].__type == 'school') {
(this._gameManager.getPlayer()).setRest(1);
if (this._gameManager.__get____schoolState() == 0) {
this._map.attachMovie('enterschool', 'enterschool', 15, {});
this._patrolAbility = true;
this._gameManager.__set____schoolState(1);
} else {
if (this._gameManager.__get____schoolState() == 1) {
this._map.attachMovie('enterschool', 'enterschool', 15, {});
} else {
if (this._gameManager.__get____schoolState() == 2 || this._gameManager.__get____schoolState() == 3) {
this._map.attachMovie('enterschool', 'enterschool', 15, {});
this._gameManager.__set____schoolState(3);
}
}
}
} else {
if (!(this._gameManager.getLevel() == 1 && this._currentCity == 0)) {
if (this._map['city_' + this._currentCity + '_mc'].__type == 'capital') {
if (this._patrolAbility == false) {
this._patrolAbility = true;
this._map.attachMovie('enterquest', 'enterquest', 15, {});
this._map.enterquest.decisionBox_mc.gotoAndStop('quest' + this._gameManager.getLevel());
} else {
var v3 = true;
var v2 = 0;
while (v2 < this._roadsData.length) {
if (this._roadsData[v2].roadInstance.getDiffLevel() > 0) {
v3 = false;
}
++v2;
}
if (v3 == true && this._stageClean == false) {
this._stageClean = true;
if (this._gameManager.getLevel() == 1 && !(this._gameManager.getPlayer()).isSpellGiven(5)) {
(this._gameManager.getPlayer()).addAvialableSpells(5);
}
if (this._gameManager.getLevel() == 2 && !(this._gameManager.getPlayer()).isSpellGiven(6)) {
(this._gameManager.getPlayer()).addAvialableSpells(6);
}
this._map.attachMovie('enterquest', 'enterquest', 15, {});
this._map.enterquest.decisionBox_mc.gotoAndStop('reward' + this._gameManager.getLevel());
} else {
this._map.attachMovie('entervillage', 'village', 15, {});
this._map.village.init(this._map['city_' + this._currentCity + '_mc'].__type, (this._gameManager.getCitiesNames(this._gameManager.getLevel()))[this._currentCity], this._currentCity);
}
}
} else {
this._map[this._currentRoad.getName()].showHero();
this._map.attachMovie('entervillage', 'village', 15, {});
this._map.village.init(this._map['city_' + this._currentCity + '_mc'].__type, (this._gameManager.getCitiesNames(this._gameManager.getLevel()))[this._currentCity], this._currentCity);
}
}
}
this._map[this._currentRoad.getName()].showHero();
};
v2.__get____completed = function () {
return this._stageClean;
};
v2.saveMapState = function () {
var v3 = new Array();
v3[0] = this._currentCity;
v3[1] = this._isMoving;
v3[2] = this._stageClean;
v3[3] = this._numRoads;
v3[4] = this._mapName;
v3[5] = this._patrolAbility;
v3[6] = this._numRoadsToUpgrade;
v3[7] = this._cityArray;
v3[8] = new Array(this._numRoads);
var v2 = 0;
while (v2 < v3[8].length) {
v3[8][v2] = this._roadsData[v2].roadInstance.saveRoadData();
++v2;
}
v3[9] = this._currentRoad.getName();
return v3;
};
v2.addProperty('__completed', v2.__get____completed, function () {});
v2.addProperty('__isNew', v2.__get____isNew, function () {});
ASSetPropFlags(pl.fabrykagier.blazer.map.Map.prototype, null, 1);
}
#endinitclip
}
movieClip 2296 __Packages.pl.fabrykagier.blazer.map.PatrolDecision {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.PatrolDecision) {
var v1 = function () {
super();
this.btnYes.gotoAndStop(1);
this.btnNo.gotoAndStop(1);
this.btnYes.reference = this;
this.btnYes.onPress = this.patrol;
this.btnYes.onRollOver = this.btnRollOver;
this.btnYes.onRollOut = this.btnRollOut;
this.btnNo.reference = this;
this.btnNo.onPress = this.normal;
this.btnNo.onRollOver = this.btnRollOver;
this.btnNo.onRollOut = this.btnRollOut;
this.btnYes.enabled = false;
this.btnNo.enabled = false;
};
pl.fabrykagier.blazer.map.PatrolDecision = v1;
pl.fabrykagier.blazer.map.PatrolDecision extends MovieClip;
var v2 = v1.prototype;
v2.init = function (road, direct) {
this._road = road;
this._direct = direct;
};
v2.btnRollOver = function () {
this.gotoAndStop(2);
};
v2.btnRollOut = function () {
this.gotoAndStop(1);
};
v2.enableAll = function () {
this.btnYes.enabled = true;
this.btnNo.enabled = true;
};
v2.patrol = function () {
this.reference._road.setPatrol(true);
this.reference.disableMenuAndPlay();
};
v2.normal = function () {
this.reference._road.setPatrol(false);
this.reference.disableMenuAndPlay();
};
v2.disableMenuAndPlay = function () {
this.btnNo.enabled = false;
this.btnYes.enabled = false;
this.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.onEnterFrame = undefined;
this.endAnimation();
}
};
this.play();
};
v2.endAnimation = function () {
this._road.startMove(this._direct);
this.removeMovieClip();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.PatrolDecision.prototype, null, 1);
}
#endinitclip
}
movieClip 2297 __Packages.pl.fabrykagier.blazer.ai.AIManager {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.ai) {
_global.pl.fabrykagier.blazer.ai = new Object();
}
if (!_global.pl.fabrykagier.blazer.ai.AIManager) {
var v1 = function (map, aiLevel) {
this._map = map;
this._aiLevel = aiLevel;
switch (aiLevel) {
case 1:
this._AI = new pl.fabrykagier.blazer.ai.LowAI();
break;
case 2:
this._AI = new pl.fabrykagier.blazer.ai.MediumAI();
break;
case 3:
this._AI = new pl.fabrykagier.blazer.ai.HighAI();
}
};
pl.fabrykagier.blazer.ai.AIManager = v1;
var v2 = v1.prototype;
v2.findMove = function (map) {
this._map = map;
var v2 = this._AI.calculateMove(this._map);
return v2;
};
ASSetPropFlags(pl.fabrykagier.blazer.ai.AIManager.prototype, null, 1);
}
#endinitclip
}
movieClip 2298 __Packages.pl.fabrykagier.blazer.ai.AI {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.ai) {
_global.pl.fabrykagier.blazer.ai = new Object();
}
if (!_global.pl.fabrykagier.blazer.ai.AI) {
_global.pl.fabrykagier.blazer.ai.AI = function () {};
}
#endinitclip
}
movieClip 2299 __Packages.pl.fabrykagier.blazer.ai.LowAI {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.ai) {
_global.pl.fabrykagier.blazer.ai = new Object();
}
if (!_global.pl.fabrykagier.blazer.ai.LowAI) {
var v1 = function () {
this._map = new Array();
this._tableOfOwners = (pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable();
this._windowSize = 5;
this._tabeOfPossibleChecks = new Array();
this._critical = false;
};
pl.fabrykagier.blazer.ai.LowAI = v1;
var v2 = v1.prototype;
_global.pl.fabrykagier.blazer.ai.LowAI implements _global.pl.fabrykagier.blazer.ai.AI;
v2.calculateMove = function (map) {
this._tabeOfPossibleChecks = new Array();
this._map = map;
this._ownerOfTable = true;
var v4 = new Array();
v4 = this.doCalculation(this._map);
var v3 = new Array();
v3 = this.chooseBestChecks(v4);
var v2 = 0;
while (v2 < v3.length) {
++v2;
}
if (v3 == undefined || v3.length == 0) {
v3 = new Array();
v3[0] = new Array();
v3[0] = this.randomMove();
}
var v5 = random(v3.length);
return v3[v5];
};
v2.doCalculation = function () {
this._tabeOfPossibleChecks = new Array();
var v5 = 0;
while (v5 + this._windowSize < this._map.length + 1) {
var v4 = 0;
while (v4 + this._windowSize < this._map[0].length + 1) {
var v3 = new Array();
this.rewriteWindow(v4, v5);
v3 = this.countThreeElements();
var v2 = 0;
while (v2 < v3.length) {
this.lookForThrees(v3[v2][0], v3[v2][1], v4, v5);
++v2;
}
++v4;
}
++v5;
}
var v6 = this.removeDuplicateCombinations(this._tabeOfPossibleChecks);
return v6;
};
v2.rewriteWindow = function (startX, startY) {
this._window = new Array();
var v3 = 0;
while (v3 < this._windowSize) {
this._window[v3] = new Array();
var v2 = 0;
while (v2 < this._windowSize) {
this._window[v3][v2] = this._map[v3 + startY][v2 + startX];
++v2;
}
++v3;
}
};
v2.countThreeElements = function () {
var v3 = new Array();
var v4 = 0;
while (v4 < this._window.length) {
var v2 = 0;
while (v2 < this._window[v4].length) {
if (v3[this._window[v4][v2]] == undefined) {
v3[this._window[v4][v2]] = 1;
} else {
v3[this._window[v4][v2]] += 1;
}
++v2;
}
++v4;
}
var v5 = new Array();
v4 = 0;
while (v4 < v3.length) {
if (v3[v4] >= 3 && v3[v4] != undefined && this.lookingFor(v4)) {
v5.push(new Array(v4, v3[v4]));
}
++v4;
}
return v5;
};
v2.lookForThrees = function (element, maxAppear, xWindowPos, yWindowPos) {
var v5 = 0;
var v3 = 0;
for (;;) {
if (!(v3 < this._window.length && v5 < maxAppear)) break;
var v2 = 0;
for (;;) {
if (!(v2 < this._window[v3].length && v5 < maxAppear)) break;
if (this._window[v3][v2] == element) {
++v5;
this.checkInRow(element, v3, v2, xWindowPos, yWindowPos);
this.checkInCol(element, v3, v2, xWindowPos, yWindowPos);
}
++v2;
}
++v3;
}
};
v2.checkInRow = function (element, i, j, xWindowPos, yWindowPos) {
var v8 = this._tableOfOwners[element][1];
var v4 = 1;
if (this._window[i][j + 1] == element) {
v4 = 2;
if (this._window[i - 1][j + 2] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i - 1 + yWindowPos, j + 2 + xWindowPos), new Array(i + yWindowPos, j + 2 + xWindowPos), v4 * v8));
if (this._window[i][j + 3] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i - 1 + yWindowPos, j + 2 + xWindowPos), new Array(i + yWindowPos, j + 2 + xWindowPos), v4 * v8));
if (this._window[i][j + 4] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i - 1 + yWindowPos, j + 2 + xWindowPos), new Array(i + yWindowPos, j + 2 + xWindowPos), v4 * v8));
}
}
}
v4 = 2;
if (this._window[i + 1][j + 2] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j + 2 + xWindowPos), new Array(i + yWindowPos, j + 2 + xWindowPos), v4 * v8));
if (this._window[i][j + 3] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j + 2 + xWindowPos), new Array(i + yWindowPos, j + 2 + xWindowPos), v4 * v8));
if (this._window[i][j + 4] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j + 2 + xWindowPos), new Array(i + yWindowPos, j + 2 + xWindowPos), v4 * v8));
}
}
}
v4 = 2;
if (this._window[i][j + 3] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + yWindowPos, j + 3 + xWindowPos), new Array(i + yWindowPos, j + 2 + xWindowPos), v4 * v8));
}
v4 = 2;
if (this._window[i - 1][j - 1] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i - 1 + yWindowPos, j - 1 + xWindowPos), new Array(i + yWindowPos, j - 1 + xWindowPos), v4 * v8));
}
v4 = 2;
if (this._window[i + 1][j - 1] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j - 1 + xWindowPos), new Array(i + yWindowPos, j - 1 + xWindowPos), v4 * v8));
}
v4 = 2;
if (this._window[i][j - 2] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + yWindowPos, j - 2 + xWindowPos), new Array(i + yWindowPos, j - 1 + xWindowPos), v4 * v8));
}
} else {
if (this._window[i][j + 2] == element) {
++v4;
if (this._window[i - 1][j + 1] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i - 1 + yWindowPos, j + 1 + xWindowPos), new Array(i + yWindowPos, j + 1 + xWindowPos), v4 * v8));
if (this._window[i][j + 3] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i - 1 + yWindowPos, j + 1 + xWindowPos), new Array(i + yWindowPos, j + 1 + xWindowPos), v4 * v8));
if (this._window[i][j + 4] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i - 1 + yWindowPos, j + 1 + xWindowPos), new Array(i + yWindowPos, j + 1 + xWindowPos), v4 * v8));
}
}
} else {
if (this._window[i + 1][j + 1] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j + 1 + xWindowPos), new Array(i + yWindowPos, j + 1 + xWindowPos), v4 * v8));
if (this._window[i][j + 3] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j + 1 + xWindowPos), new Array(i + yWindowPos, j + 1 + xWindowPos), v4 * v8));
if (this._window[i][j + 4] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j + 1 + xWindowPos), new Array(i + yWindowPos, j + 1 + xWindowPos), v4 * v8));
}
}
}
}
}
}
};
v2.checkInCol = function (element, i, j, xWindowPos, yWindowPos) {
var v8 = 1;
var v4 = 1;
if (this._window[i + 1][j] == element) {
v4 = 2;
if (this._window[i + 2][j + 1] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 2 + yWindowPos, j + 1 + xWindowPos), new Array(i + 2 + yWindowPos, j + xWindowPos), v4 * v8));
if (this._window[i + 3][j] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 2 + yWindowPos, j + 1 + xWindowPos), new Array(i + 2 + yWindowPos, j + xWindowPos), v4 * v8));
if (this._window[i + 4][j] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 2 + yWindowPos, j + 1 + xWindowPos), new Array(i + 2 + yWindowPos, j + xWindowPos), v4 * v8));
}
}
}
v4 = 2;
if (this._window[i + 2][j - 1] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 2 + yWindowPos, j - 1 + xWindowPos), new Array(i + 2 + yWindowPos, j + xWindowPos), v4 * v8));
if (this._window[i + 3][j] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 2 + yWindowPos, j - 1 + xWindowPos), new Array(i + 2 + yWindowPos, j + xWindowPos), v4 * v8));
if (this._window[i + 4][j] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 2 + yWindowPos, j - 1 + xWindowPos), new Array(i + 2 + yWindowPos, j + xWindowPos), v4 * v8));
}
}
}
v4 = 2;
if (this._window[i + 3][j] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 3 + yWindowPos, j + xWindowPos), new Array(i + 2 + yWindowPos, j + xWindowPos), v4 * v8));
}
v4 = 2;
if (this._window[i - 1][j + 1] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i - 1 + yWindowPos, j + 1 + xWindowPos), new Array(i - 1 + yWindowPos, j + xWindowPos), v4 * v8));
}
v4 = 2;
if (this._window[i - 1][j - 1] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i - 1 + yWindowPos, j - 1 + xWindowPos), new Array(i - 1 + yWindowPos, j + xWindowPos), v4 * v8));
}
v4 = 2;
if (this._window[i - 2][j] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i - 2 + yWindowPos, j + xWindowPos), new Array(i - 1 + yWindowPos, j + xWindowPos), v4 * v8));
}
} else {
if (this._window[i + 2][j] == element) {
++v4;
if (this._window[i + 1][j + 1] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j + 1 + xWindowPos), new Array(i + 1 + yWindowPos, j + xWindowPos), v4 * v8));
if (this._window[i + 3][j] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j + 1 + xWindowPos), new Array(i + 1 + yWindowPos, j + xWindowPos), v4 * v8));
if (this._window[i + 4][j] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j + 1 + xWindowPos), new Array(i + 1 + yWindowPos, j + xWindowPos), v4 * v8));
}
}
} else {
if (this._window[i + 1][j - 1] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j - 1 + xWindowPos), new Array(i + 1 + yWindowPos, j + xWindowPos), v4 * v8));
if (this._window[i + 3][j] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j - 1 + xWindowPos), new Array(i + 1 + yWindowPos, j + xWindowPos), v4 * v8));
if (this._window[i + 4][j] == element) {
++v4;
this._tabeOfPossibleChecks.push(new Array(new Array(i + 1 + yWindowPos, j - 1 + xWindowPos), new Array(i + 1 + yWindowPos, j + xWindowPos), v4 * v8));
}
}
}
}
}
}
};
v2.removeDuplicateCombinations = function (arrayToClean) {
var v4 = new Array();
var v1 = 0;
while (v1 < arrayToClean.length) {
var v5 = false;
var v2 = 0;
while (v2 < v4.length) {
if (arrayToClean[v1][0][0] == v4[v2][0][0] && arrayToClean[v1][0][1] == v4[v2][0][1] && arrayToClean[v1][1][0] == v4[v2][1][0] && arrayToClean[v1][1][1] == v4[v2][1][1]) {
v5 = true;
}
if (arrayToClean[v1][2] > v4[v2][2]) {
v4[v2][2] = arrayToClean[v1][2];
}
++v2;
}
if (v5 == false) {
v4.push(new Array(new Array(arrayToClean[v1][0][0], arrayToClean[v1][0][1]), new Array(arrayToClean[v1][1][0], arrayToClean[v1][1][1]), arrayToClean[v1][2]));
}
++v1;
}
return v4;
};
v2.chooseBestChecks = function (arrayToClean) {
var v3 = new Array();
var v4 = 0;
var v1 = 0;
while (v1 < arrayToClean.length) {
if (arrayToClean[v1][2] > v4) {
v3 = new Array();
v3.push(new Array(new Array(arrayToClean[v1][0][0], arrayToClean[v1][0][1]), new Array(arrayToClean[v1][1][0], arrayToClean[v1][1][1]), arrayToClean[v1][2]));
v4 = arrayToClean[v1][2];
} else {
if (arrayToClean[v1][2] == v4) {
v3.push(new Array(new Array(arrayToClean[v1][0][0], arrayToClean[v1][0][1]), new Array(arrayToClean[v1][1][0], arrayToClean[v1][1][1]), arrayToClean[v1][2]));
}
}
++v1;
}
return v3;
};
v2.lookingFor = function (element) {
if (this._tableOfOwners[element][3] == !this._ownerOfTable) {
return false;
}
return true;
};
v2.randomMove = function () {
var v6 = this._map.length;
var v3;
var v5;
var v4;
var v2 = v3;
do {
v3 = random(v6);
v5 = random(v6);
v4 = v5;
v2 = v3;
var v7 = random(2);
if (v7 == 0) {
if (v3 == 0) {
v2 += 1;
} else {
if (v3 >= v6 - 1) {
v2 -= 1;
} else {
do {
var p = random(2) - 1;
} while (p == 0);
v2 += p;
}
}
} else {
if (v5 == 0) {
v4 += 1;
} else {
if (v5 >= v6 - 1) {
v4 -= 1;
} else {
do {
var p = random(2) - 1;
} while (p == 0);
v4 += p;
}
}
}
} while (this._map[v5][v3] == this._map[v4][v2]);
var v8 = new Array(new Array(v5, v3), new Array(v4, v2));
return v8;
};
ASSetPropFlags(pl.fabrykagier.blazer.ai.LowAI.prototype, null, 1);
}
#endinitclip
}
movieClip 2300 __Packages.pl.fabrykagier.blazer.ai.MediumAI {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.ai) {
_global.pl.fabrykagier.blazer.ai = new Object();
}
if (!_global.pl.fabrykagier.blazer.ai.MediumAI) {
var v1 = function () {
super();
};
pl.fabrykagier.blazer.ai.MediumAI = v1;
pl.fabrykagier.blazer.ai.MediumAI extends pl.fabrykagier.blazer.ai.LowAI;
var v2 = v1.prototype;
v2.calculateMove = function (map) {
this._map = map;
this._ownerOfTable = true;
var v4 = this.doCalculation();
var v3 = this.chooseBestChecks(v4);
var v2 = 0;
while (v2 < v3.length) {
++v2;
}
if (v3 == undefined || v3.length == 0) {
this._ownerOfTable = false;
v4 = new Array();
v4 = this.doCalculation();
v3 = new Array();
v3 = this.chooseBestChecks(v4);
if (v3 == undefined || v3.length == 0) {
v3 = new Array();
v3[0] = this.randomMove();
}
}
var v5 = random(v3.length);
return v3[v5];
};
ASSetPropFlags(pl.fabrykagier.blazer.ai.MediumAI.prototype, null, 1);
}
#endinitclip
}
movieClip 2301 __Packages.pl.fabrykagier.blazer.ai.HighAI {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.ai) {
_global.pl.fabrykagier.blazer.ai = new Object();
}
if (!_global.pl.fabrykagier.blazer.ai.HighAI) {
var v1 = function () {
super();
this._tableOfDepth = new Array();
};
pl.fabrykagier.blazer.ai.HighAI = v1;
pl.fabrykagier.blazer.ai.HighAI extends pl.fabrykagier.blazer.ai.LowAI;
var v2 = v1.prototype;
v2.calculateMove = function (map) {
this._map = map;
this._ownerOfTable = true;
var v6 = new Array();
v6 = this.doCalculation();
var v2 = 0;
while (v2 < v6.length) {
var v3 = 0;
v3 = this.doChange(map, v6[v2]);
v6[v2][2] = v3;
++v2;
}
var v4 = this.chooseBestChecks(v6);
if (v4[0][2] == 0 || v4[0][2] == 1 || v4[0][2] == undefined) {
v6 = new Array();
v6 = this.doCalculation();
v4 = this.chooseBestChecks(v6);
v2 = 0;
while (v2 < v4.length) {
++v2;
}
if (v4 == undefined || v4.length == 0) {
this._ownerOfTable = false;
v6 = new Array();
v6 = this.doCalculation();
v4 = this.chooseBestChecks(v6);
}
}
if (v4 == undefined || v4.length == 0) {
v4 = new Array();
v4[0] = this.randomMove();
}
var v7 = random(v4.length);
return v4[v7];
};
v2.doChange = function (map, move) {
var v5 = new Array();
var v7 = 0;
var v6 = 0;
var v3 = 0;
while (v3 < map.length) {
v5[v3] = new Array();
var v2 = 0;
while (v2 < map[v3].length) {
v5[v3][v2] = map[v3][v2];
++v2;
}
++v3;
}
var v9 = v5[move[1][0]][move[1][1]];
v5[move[1][0]][move[1][1]] = v5[move[0][0]][move[0][1]];
v5[move[0][0]][move[0][1]] = v9;
do {
v6 = this.countLinesAfterChanges(v5);
v7 += v6;
} while (v6 > 0);
return v7;
};
v2.countLinesAfterChanges = function (tmp1) {
var v5 = new Array();
var v4 = new Array();
var v7 = 0;
v5 = this.calculateLinesInRow(tmp1);
v4 = this.calculateLinesInCols(tmp1);
v7 = v5.length + v4.length;
if (v7 > 0) {
var v3 = 0;
while (v3 < v5.length) {
var v2 = v5[v3][1];
while (v2 < v5[v3][3] + 1) {
tmp1[v5[v3][0]][v2] = -1;
++v2;
}
++v3;
}
v3 = 0;
while (v3 < v4.length) {
v2 = v4[v3][0];
while (v2 < v4[v3][2] + 1) {
tmp1[v2][v4[v3][1]] = -1;
++v2;
}
++v3;
}
this.moveBlocksDown(tmp1);
}
return v7;
};
v2.calculateLinesInRow = function (tmp1) {
var v6 = new Array();
var v2 = 0;
while (v2 < tmp1.length) {
var v4 = 1;
var v5 = false;
var v1 = 0;
while (v1 < tmp1[v2].length) {
if (tmp1[v2][v1] == tmp1[v2][v1 + 1] && tmp1[v2][v1] != -1 && tmp1[v2][v1] != undefined) {
++v4;
if (v4 >= 3) {
if (v5 == false) {
v6.push(new Array(v2, v1 - 1, v2, v1 + 1));
}
v5 = true;
v6[v6.length - 1][3] = v1 + 1;
}
} else {
v5 = false;
v4 = 1;
}
++v1;
}
++v2;
}
return v6;
};
v2.calculateLinesInCols = function (tmp1) {
var v6 = new Array();
var v2 = 0;
while (v2 < tmp1.length) {
var v4 = 1;
var v5 = false;
var v1 = 0;
while (v1 < tmp1[v2].length) {
if (tmp1[v1][v2] == tmp1[v1 + 1][v2] && tmp1[v1][v2] != -1 && tmp1[v1][v2] != undefined) {
++v4;
if (v4 >= 3) {
if (v5 == false) {
v6.push(new Array(v1 - 1, v2, v1 + 1, v2));
}
v5 = true;
v6[v6.length - 1][2] = v1 + 1;
}
} else {
v5 = false;
v4 = 1;
}
++v1;
}
++v2;
}
return v6;
};
v2.moveBlocksDown = function (tmp1) {
var v5 = false;
var v3 = tmp1.length - 1;
while (v3 > -1) {
v5 = false;
var v2 = 0;
while (v2 < tmp1[v3].length) {
if (tmp1[v3][v2] == -1) {
v5 = true;
var v1 = v3;
while (v1 > -1) {
tmp1[v1][v2] = tmp1[v1 - 1][v2];
--v1;
}
}
++v2;
}
if (v5 == true) {
++v3;
v5 = false;
}
--v3;
}
v3 = 0;
while (v3 < tmp1.length) {
++v3;
}
};
ASSetPropFlags(pl.fabrykagier.blazer.ai.HighAI.prototype, null, 1);
}
#endinitclip
}
movieClip 2302 __Packages.pl.fabrykagier.blazer.battle.DiamondContainer {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle) {
_global.pl.fabrykagier.blazer.battle = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle.DiamondContainer) {
var v1 = function () {
super();
};
pl.fabrykagier.blazer.battle.DiamondContainer = v1;
pl.fabrykagier.blazer.battle.DiamondContainer extends MovieClip;
var v2 = v1.prototype;
v2.initialize = function (battleGame) {
this._reversed = 0;
this._generated = false;
this._clicked = new Array();
this.height = this._height;
this._blocked = true;
this._map = new Array();
this._battleGame = battleGame;
this._map = this._battleGame.getMap();
this._selectBlockade = true;
this._intervalId = undefined;
this._chains = new Array();
this._tmpSet = new Array();
};
v2.setFallinPieces = function (isFallin) {
this._fallingPieces += isFallin;
if (this._fallingPieces == 0) {
if (this._generated == false && (pl.fabrykagier.blazer.GameManager.getInstance()).__get____strangeMagicUses() == 1 && (this._battleGame.__get____allowedSpells()).length == 8) {
this._battleGame.attachMovie('strangeMagicFirst', 'strangeMagicFirst', 50, {});
this._generated = true;
} else {
if (this._generated == false && (pl.fabrykagier.blazer.GameManager.getInstance()).isTutorial()) {
this._battleGame.attachMovie('TutorialSecond', 'TutorialSecond', 50, {});
this._generated = true;
} else {
while (this._chains.length > 0) {
this._battleGame.updateDamges(this._chains[0][0], this._chains[0][1]);
this._chains.shift();
}
this.moveDone();
}
}
}
};
v2.getFallinPieces = function () {
return this._fallingPieces;
};
v2.getBlocked = function () {
return this._blocked;
};
v2.setBlocked = function (state) {
this._blocked = state;
};
v2.generateMap = function () {
var v3 = 0;
while (v3 < this._map.length) {
this._tmpSet[v3] = new Array();
var v2 = 0;
while (v2 < this._map.length) {
var v4 = 'spell_' + v3 + '_' + v2 + '_mc';
this.attachMovie('spell', v4, this.getNextHighestDepth(), {'_x': v2 * 40, '_y': v3 * 40});
this[v4].gotoAndStop(this._map[v3][v2] + 2);
this[v4].init(this);
++v2;
}
++v3;
}
};
v2.clearTmpSet = function () {
var v2 = 0;
while (v2 < this._tmpSet.length) {
this._tmpSet[v2] = new Array();
++v2;
}
};
v2.setClicked = function (y, x) {
if (!this._selectBlockade) {
this._clicked.push(new Array(y, x));
var v2 = 'spell_' + this._clicked[this._clicked.length - 1][0] + '_' + this._clicked[this._clicked.length - 1][1] + '_mc';
this[v2].setActive(true);
if (this._clicked.length == 2) {
if (this._clicked[0][0] == this._clicked[1][0] && this._clicked[0][1] == this._clicked[1][1]) {
v2 = 'spell_' + this._clicked[0][0] + '_' + this._clicked[0][1] + '_mc';
this[v2].setActive(false);
this._clicked = new Array();
} else {
if (this._clicked[0][0] == this._clicked[1][0] && Math.abs(this._clicked[0][1] - this._clicked[1][1]) == 1 || this._clicked[0][1] == this._clicked[1][1] && Math.abs(this._clicked[0][0] - this._clicked[1][0]) == 1) {
this.reverseSpells(this._clicked[0], this._clicked[1]);
this._clicked = new Array();
} else {
v2 = 'spell_' + this._clicked[0][0] + '_' + this._clicked[0][1] + '_mc';
this[v2].setActive(false);
var v4 = this._clicked[1][0];
var v3 = this._clicked[1][1];
this._clicked = new Array();
this.setClicked(v4, v3);
}
}
}
}
};
v2.reverseSpells = function (spell1, spell2) {
this._selectBlockade = true;
var v5 = 'spell_' + spell1[0] + '_' + spell1[1] + '_mc';
var v4 = 'spell_' + spell2[0] + '_' + spell2[1] + '_mc';
var v6;
v6 = this._map[spell1[0]][spell1[1]];
this._map[spell1[0]][spell1[1]] = this._map[spell2[0]][spell2[1]];
this._map[spell2[0]][spell2[1]] = v6;
this[v5].setActive(false);
this[v4].setActive(false);
this[v5].reverse(spell2[0], spell2[1]);
this[v4].reverse(spell1[0], spell1[1]);
};
v2.moveDone = function () {
var v3 = this.checkForChains();
if (!v3) {
this._selectBlockade = !this._battleGame.moveDone();
this._blocked = this._selectBlockade;
} else {
var v2 = 0;
while (v2 < this._chains.length) {
++v2;
}
this.explodeChains();
}
};
v2.checkForChains = function () {
var v3 = 0;
while (v3 < this._map.length) {
var v2 = 0;
while (v2 < this._map.length) {
var v4 = 1;
for (;;) {
if (!(this._map[v3][v2] == this._map[v3 + v4][v2] && this._map[v3][v2] != -1)) break;
++v4;
}
if (v4 >= 3) {
this._chains.push(new Array(this._map[v3][v2], v4));
var v8 = 'S_' + this._map[v3][v2] + '_snd';
var v6 = v3;
while (v6 < v3 + v4) {
this._tmpSet[v6][v2] = this._map[v6][v2];
this._map[v6][v2] = -1;
++v6;
}
var v7 = new Sound();
v7.attachSound(v8);
v7.start();
}
++v2;
}
++v3;
}
v3 = 0;
while (v3 < this._map.length) {
v2 = 0;
while (v2 < this._map.length) {
v4 = 1;
var v5 = this._map[v3][v2];
if (v5 == -1) {
v5 = this._tmpSet[v3][v2];
}
for (;;) {
if (!(v5 == this._map[v3][v2 + v4] && v5 != -2 || this._map[v3][v2 + v4] == -1 && v5 == this._tmpSet[v3][v2 + v4] && v5 != -2)) break;
++v4;
}
if (v4 >= 3) {
this._chains.push(new Array(this._map[v3][v2], v4));
v8 = 'S_' + this._map[v3][v2] + '_snd';
v6 = v2;
while (v6 < v2 + v4) {
this._map[v3][v6] = -2;
++v6;
}
v7 = new Sound();
v7.attachSound(v8);
v7.start();
}
++v2;
}
++v3;
}
this.clearTmpSet();
if (this._chains.length != 0) {
return true;
} else {
return false;
}
};
v2.explodeChains = function () {
var v5 = this._map.length;
while (v5 >= 0) {
var v2 = this._map.length;
while (v2 >= 0) {
if (this._map[v5][v2] < 0) {
var v6 = 'spell_' + v5 + '_' + v2 + '_mc';
var boomName = 'boom_' + v5 + '_' + v2 + '_mc';
this.attachMovie('boom', boomName, this.getNextHighestDepth(), {'_x': this[v6]._x, '_y': this[v6]._y});
this[boomName].gotoAndStop(this[v6]._currentframe);
var v3 = ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[this[v6]._currentframe - 2];
if (v3[3] == true && v3[1] > 0 && !this._battleGame.isPlayerTurn() && v3[5] != 0) {
var v4 = 'light' + v6;
this._battleGame.attachMovie('light', v4, this.getNextHighestDepth(), {'_x': 6, '_y': -33});
this._battleGame[v4].gotoAndStop(v5 + '_' + v2);
this._battleGame[v4].light_mc.gotoAndStop(v3[5]);
this._battleGame[v4].light_mc.lightColor_mc.reference = this;
this._battleGame[v4].light_mc.lightColor_mc.onEnterFrame = function () {
if (this._currentframe == 7) {
this.onEnterFrame = undefined;
var v2 = 'flash' + this.getNextHighestDepth();
this.reference._battleGame.attachMovie('flashLight', v2, this.getNextHighestDepth(), {'_x': -260, '_y': -143});
this.reference._battleGame[v2].gotoAndStop(this._parent._currentframe);
this.reference[boomName].removeMoveClip();
}
};
} else {
if (v3[3] == false && v3[1] > 0 && this._battleGame.isPlayerTurn() && v3[5] != 0) {
var v4 = 'light2' + v6;
this._battleGame.attachMovie('light2', v4, this.getNextHighestDepth(), {'_x': 6, '_y': -33});
this._battleGame[v4].gotoAndStop(v5 + '_' + (7 - v2));
this._battleGame[v4].light_mc.gotoAndStop(v3[5]);
this._battleGame[v4].light_mc.lightColor_mc.reference = this;
this._battleGame[v4].light_mc.lightColor_mc.onEnterFrame = function () {
if (this._currentframe == 7) {
this.onEnterFrame = undefined;
var v2 = 'flash' + this.getNextHighestDepth();
this.reference._battleGame.attachMovie('flashLight', v2, this.getNextHighestDepth(), {'_x': 212, '_y': -143});
this.reference._battleGame[v2].gotoAndStop(this._parent._currentframe);
this.reference[boomName].removeMoveClip();
}
};
}
}
this[v6].gotoAndStop(1);
}
--v2;
}
--v5;
}
this.onEnterFrame = function () {
++this._fallingPiecesTimer;
if (this._fallingPiecesTimer == 16) {
this.onEnterFrame = undefined;
this._fallingPiecesTimer = 0;
this.fallPieces();
}
};
};
v2.fallPieces = function () {
var v6 = this._map.length - 1;
while (v6 >= 0) {
var v3 = this._map.length - 1;
while (v3 >= 0) {
if (this._map[v6][v3] < 0) {
var v11 = true;
var v2 = 1;
for (;;) {
if (!(this._map[v6 - v2][v3] < 0 && v6 - v2 >= 0)) break;
++v2;
}
var v9 = -1;
var v4 = v6;
while (v4 > v6 - v2) {
var v5 = 'spell_' + v4 + '_' + v3 + '_mc';
this[v5]._y = v9 * 40;
--v9;
var v7 = 'spell_' + this[v5]._y / 40 + '_' + v3 + '_mc';
this[v5]._name = v7;
--v4;
}
v4 = v6 - v2;
while (v4 >= -v2) {
var v8 = 'spell_' + v4 + '_' + v3 + '_mc';
if (v4 < 0) {
var v10 = this._battleGame.generateRandomSpell();
this._map[v4 + v2][v3] = v10;
this[v8].gotoAndStop(this._map[v4 + v2][v3] + 2);
} else {
this._map[v4 + v2][v3] = this._map[v4][v3];
}
v7 = 'spell_' + (v4 + v2) + '_' + v3 + '_mc';
this[v8]._name = v7;
this[v7].fallAfterBom(v4 + v2);
--v4;
}
}
--v3;
}
--v6;
}
};
v2.animationFallingSpells = function () {
var v6 = this._map.length;
while (v6 >= 0) {
var v3 = this._map.length;
while (v3 >= 0) {
if (this._map[v6][v3] == -1) {
var v9 = 'spell_' + v6 + '_' + v3 + '_mc';
var boomName = 'boom_' + v6 + '_' + v3 + '_mc';
this.attachMovie('boom', boomName, this.getNextHighestDepth(), {'_x': this[v9]._x, '_y': this[v9]._y});
this[boomName].gotoAndStop(this[v9]._currentframe);
var v11 = ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[this[v9]._currentframe - 2];
if (v11[3] == true && v11[1] > 0 && !this._battleGame.isPlayerTurn() && v11[5] != 0) {
var v7 = 'light' + v9;
this._battleGame.attachMovie('light', v7, this.getNextHighestDepth(), {'_x': 6, '_y': -33});
this._battleGame[v7].gotoAndStop(v6 + '_' + v3);
this._battleGame[v7].light_mc.gotoAndStop(v11[5]);
this._battleGame[v7].light_mc.lightColor_mc.reference = this;
this._battleGame[v7].light_mc.lightColor_mc.onEnterFrame = function () {
if (this._currentframe == 7) {
this.onEnterFrame = undefined;
var v2 = 'flash' + this.getNextHighestDepth();
this.reference._battleGame.attachMovie('flashLight', v2, this.getNextHighestDepth(), {'_x': -260, '_y': -143});
this.reference._battleGame[v2].gotoAndStop(this._parent._currentframe);
this.reference[boomName].removeMoveClip();
}
};
} else {
if (v11[3] == false && v11[1] > 0 && this._battleGame.isPlayerTurn() && v11[5] != 0) {
var v7 = 'light2' + v9;
this._battleGame.attachMovie('light2', v7, this.getNextHighestDepth(), {'_x': 6, '_y': -33});
this._battleGame[v7].gotoAndStop(v6 + '_' + (7 - v3));
this._battleGame[v7].light_mc.gotoAndStop(v11[5]);
this._battleGame[v7].light_mc.lightColor_mc.reference = this;
this._battleGame[v7].light_mc.lightColor_mc.onEnterFrame = function () {
if (this._currentframe == 7) {
this.onEnterFrame = undefined;
var v2 = 'flash' + this.getNextHighestDepth();
this.reference._battleGame.attachMovie('flashLight', v2, this.getNextHighestDepth(), {'_x': 212, '_y': -143});
this.reference._battleGame[v2].gotoAndStop(this._parent._currentframe);
this.reference[boomName].removeMoveClip();
}
};
}
}
this[v9].gotoAndStop(1);
}
--v3;
}
--v6;
}
v6 = this._map.length - 1;
while (v6 >= 0) {
v3 = this._map.length - 1;
while (v3 >= 0) {
if (this._map[v6][v3] == -1) {
var v15 = true;
var v2 = 1;
for (;;) {
if (!(this._map[v6 - v2][v3] == -1 && v6 - v2 >= 0)) break;
++v2;
}
var v10 = -1;
var v4 = v6;
while (v4 > v6 - v2) {
var v5 = 'spell_' + v4 + '_' + v3 + '_mc';
this[v5]._y = v10 * 40;
--v10;
var v8 = 'spell_' + this[v5]._y / 40 + '_' + v3 + '_mc';
this[v5]._name = v8;
--v4;
}
v4 = v6 - v2;
while (v4 >= -v2) {
v9 = 'spell_' + v4 + '_' + v3 + '_mc';
if (v4 < 0) {
v11 = this._battleGame.generateRandomSpell();
this._map[v4 + v2][v3] = v11;
this[v9].gotoAndStop(this._map[v4 + v2][v3] + 2);
} else {
this._map[v4 + v2][v3] = this._map[v4][v3];
}
v8 = 'spell_' + (v4 + v2) + '_' + v3 + '_mc';
this[v9]._name = v8;
this[v8].fallAfterBom(v4 + v2);
--v4;
}
}
--v3;
}
--v6;
}
return false;
};
v2._fallingPieces = 0;
v2._fallingPiecesTimer = 0;
ASSetPropFlags(pl.fabrykagier.blazer.battle.DiamondContainer.prototype, null, 1);
}
#endinitclip
}
movieClip 2303 __Packages.pl.fabrykagier.blazer.battle.LittleScreen {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle) {
_global.pl.fabrykagier.blazer.battle = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle.LittleScreen) {
var v1 = function () {
super();
this.btnOk.enabled = false;
this.btnOk.gotoAndStop(1);
this.btnOk.onRollOver = function () {
this.gotoAndStop(2);
};
this.btnOk.onRollOut = function () {
this.gotoAndStop(1);
};
this.btnOk.reference = this;
this.btnOk.onPress = function () {
this.enabled = false;
this._parent.play();
};
};
pl.fabrykagier.blazer.battle.LittleScreen = v1;
pl.fabrykagier.blazer.battle.LittleScreen extends MovieClip;
var v2 = v1.prototype;
ASSetPropFlags(pl.fabrykagier.blazer.battle.LittleScreen.prototype, null, 1);
}
#endinitclip
}
movieClip 2304 __Packages.pl.fabrykagier.blazer.map.RoadMC {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.RoadMC) {
var v1 = function () {
super();
this._mapInstance = (pl.fabrykagier.blazer.GameManager.getInstance()).getCurrentMap();
this.messege_mc._visible = false;
this.textFormat = new TextFormat();
this.textFormat.font = 'Aniron';
this.gotoAndStop(1);
this._currentPart = 0;
var v4 = this._mapInstance.getRoadData();
this.e1_mc.gotoAndStop(1);
this.e2_mc.gotoAndStop(1);
this.e3_mc.gotoAndStop(1);
var v5 = Number((this._mapInstance.getName()).charAt(3));
if (!(pl.fabrykagier.blazer.GameManager.getInstance()).wasLevelSaved(v5)) {
var v3 = 0;
while (v3 < v4.length) {
if (v4[v3].roadName == '' || v4[v3].roadName == this._name) {
this._ID = v3;
this._mapInstance.setRoadsData(v3, new Array('roadName', this._name));
break;
}
++v3;
}
} else {
var v3 = 0;
while (v3 < v4.length) {
if (v4[v3].roadName == this._name) {
this._ID = v3;
this._mapInstance.setRoadsData(v3, new Array('roadName', this._name));
break;
}
++v3;
}
}
};
pl.fabrykagier.blazer.map.RoadMC = v1;
pl.fabrykagier.blazer.map.RoadMC extends MovieClip;
var v2 = v1.prototype;
v2.startMove = function (direct) {
this.showHero();
if (!direct) {
this.gotoAndPlay(this._totalframes / 2 + 1);
} else {
this.gotoAndPlay(1);
}
this.onEnterFrame = this.lookForEnemies;
};
v2.continueMove = function (direct) {
this.showHero();
if (!direct) {
this.gotoAndPlay(this._totalframes - this._currentframe + 1);
} else {
this.gotoAndPlay(this._currentframe + 1);
}
this.onEnterFrame = this.lookForEnemies;
};
v2.setRoadInstance = function (road) {
this._roadInstance = road;
};
v2.exist = function () {
return true;
};
v2.hideHero = function () {
this.hero_mc.gotoAndStop(1);
};
v2.showHero = function () {
this.hero_mc.gotoAndPlay(2);
this.hero_mc.heroMorda.gotoAndStop(((pl.fabrykagier.blazer.GameManager.getInstance()).getPlayer()).getRest() + 2);
this.hero_mc.play();
};
v2.restoreState = function () {
this._currentPart = this._roadInstance.getCurrentPart();
this.gotoAndStop(this._currentPart * 30);
if ((this._roadInstance.getEnemy1()).exist() == true && (this._roadInstance.getEnemy1()).getDefeated() != true) {
this.e1_mc.gotoAndStop((this._roadInstance.getEnemy1()).getID() + 2);
}
if ((this._roadInstance.getEnemy2()).exist() == true && (this._roadInstance.getEnemy2()).getDefeated() != true) {
this.e2_mc.gotoAndStop((this._roadInstance.getEnemy2()).getID() + 2);
}
if ((this._roadInstance.getEnemy3()).exist() == true && (this._roadInstance.getEnemy3()).getDefeated() != true) {
this.e3_mc.gotoAndStop((this._roadInstance.getEnemy3()).getID() + 2);
}
if (this._mapInstance.getCurentRoad() == undefined && this._roadInstance.getName() == 'road_0_1_mc') {
this._mapInstance.setCurrentRoad(this._roadInstance);
}
if (this._mapInstance.getCurentRoad() == this._roadInstance) {
if (((this._mapInstance.getCurentRoad()).getCurrentEnemies()).exist() && !((this._mapInstance.getCurentRoad()).getCurrentEnemies()).getDefeated()) {
this._mapInstance.backToTheCity();
} else {
if (this._currentPart != 0) {
} else {
var v2 = this._name.split('_');
if (this._mapInstance.getCurretCity() == v2[1]) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(this._totalframes / 2 + 1);
}
}
}
if ((pl.fabrykagier.blazer.GameManager.getInstance()).getLoadingGame()) {
this.showHero();
(pl.fabrykagier.blazer.GameManager.getInstance()).setLoadingGame(false);
}
}
};
v2.getID = function () {
return this._ID;
};
v2.getCurrentPart = function () {
return this._currentPart;
};
v2.lookForEnemies = function () {
if (this._currentframe % 30 == 0) {
if (this._currentframe % 120 == 0) {
this.stop();
this.onEnterFrame = undefined;
this._currentPart = 0;
this._roadInstance.setCurrentPart(0);
this._mapInstance.endRoad();
} else {
if (this.setUpEnemy()) {
if (!(this._roadInstance.getCurrentEnemies()).getDefeated()) {
this.startBattle();
} else {}
} else {}
}
}
};
v2.setUpEnemy = function () {
var v2 = false;
if (this._currentframe / 30 == 3 || this._currentframe / 30 == 5) {
this._currentPart = 3;
if ((this._roadInstance.getEnemy3()).exist() != true) {
v2 = this.drawIsEnemy(3);
if (v2) {
this._roadInstance.setEnemy3(this._roadInstance.drawTypeOfEnemy());
}
} else {
v2 = true;
}
this._roadInstance.setCurrentEnemy(this._roadInstance.getEnemy3());
} else {
if (this._currentframe / 30 == 2 || this._currentframe / 30 == 6) {
this._currentPart = 2;
if ((this._roadInstance.getEnemy2()).exist() != true) {
v2 = this.drawIsEnemy(2);
if (v2) {
this._roadInstance.setEnemy2(this._roadInstance.drawTypeOfEnemy());
}
} else {
v2 = true;
}
this._roadInstance.setCurrentEnemy(this._roadInstance.getEnemy2());
} else {
this._currentPart = 1;
if ((this._roadInstance.getEnemy1()).exist() != true) {
v2 = this.drawIsEnemy(1);
if (v2) {
this._roadInstance.setEnemy1(this._roadInstance.drawTypeOfEnemy());
}
} else {
v2 = true;
}
this._roadInstance.setCurrentEnemy(this._roadInstance.getEnemy1());
}
}
if (v2) {
return v2;
}
return v2;
};
v2.drawIsEnemy = function (part) {
var v2 = false;
if (this._roadInstance.getDiffLevel() == 0) {
v2 = false;
} else {
if (this._roadInstance.getDiffLevel() == 1) {
if (this._roadInstance.getPatrol()) {
if (part == 2) {
v2 = true;
}
} else {
if (part != 2) {
var v4 = random(2);
if (v4 == 1) {
v2 = true;
}
}
}
} else {
if (this._roadInstance.getPatrol()) {
if (part == 2) {
v2 = true;
}
} else {
if (part != 2) {
var v4 = random(100);
if (v4 < 60) {
v2 = true;
}
} else {
v2 = true;
}
}
}
}
if ((pl.fabrykagier.blazer.GameManager.getInstance()).isTutorial()) {
v2 = true;
}
return v2;
};
v2.startBattle = function () {
this.onEnterFrame = undefined;
this.stop();
this._roadInstance.setCurrentPart(this._currentPart);
this._roadInstance.startBattle();
};
v2.onPress = function () {
var v2 = this._name.split('_');
if (v2[1] == this._mapInstance.getCurretCity()) {
this._mapInstance.goToTheCity(v2[2]);
} else {
if (v2[2] == this._mapInstance.getCurretCity()) {
this._mapInstance.goToTheCity(v2[1]);
}
}
};
v2.onRollOver = function () {
this.messege_mc.messege_txt.embedFonts = true;
switch (this._roadInstance.getDiffLevel()) {
case 0:
this.messege_mc.messege_txt.text = 'This road is safe';
break;
case 1:
this.messege_mc.messege_txt.text = 'This road is not very safe';
break;
case 2:
this.messege_mc.messege_txt.text = 'This road is dangerous!';
}
this.messege_mc._visible = true;
this.messege_mc.messege_txt.setTextFormat(this.textFormat);
};
v2.onRollOut = function () {
this.messege_mc._visible = false;
};
v2.onReleaseOutside = function () {
this.onRollOut();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.RoadMC.prototype, null, 1);
}
#endinitclip
}
movieClip 2305 __Packages.pl.fabrykagier.blazer.map.City {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.City) {
var v1 = function () {
super();
this.messege_mc._visible = false;
this.textFormat = new TextFormat();
this.textFormat.font = 'Aniron';
this._cityNumber = (this._name.split('_'))[1];
this.name = this.getName();
this._type = 'city';
this._mapInstance = (pl.fabrykagier.blazer.GameManager.getInstance()).getCurrentMap();
this._open = false;
};
pl.fabrykagier.blazer.map.City = v1;
pl.fabrykagier.blazer.map.City extends MovieClip;
var v2 = v1.prototype;
v2.init = function (map) {
this._mapInstance = map;
};
v2.getName = function () {
var v4 = '';
v4 = (this._name.split(','))[1];
var v3 = v4.split('_');
v4 = v3[0];
var v2 = 1;
while (v2 < v3.length) {
v4 += ' ' + v3[v2];
++v2;
}
return v4;
};
v2.onPress = function () {
super.onPress();
this._mapInstance.goToTheCity(this._cityNumber);
};
v2.onRollOver = function () {
this.messege_mc.messege_txt.embedFonts = true;
this.messege_mc._visible = true;
this.messege_mc.messege_txt.text = this.name;
this.messege_mc.messege_txt.setTextFormat(this.textFormat);
};
v2.onRollOut = function () {
this.messege_mc._visible = false;
};
v2.onReleaseOutside = function () {
this.onRollOut();
};
v2.__get____type = function () {
return this._type;
};
v2.__get____open = function () {
return this._open;
};
v2.__set____open = function (val) {
this._open = val;
return this.__get____open();
};
v2.addProperty('__open', v2.__get____open, v2.__set____open);
v2.addProperty('__type', v2.__get____type, function () {});
ASSetPropFlags(pl.fabrykagier.blazer.map.City.prototype, null, 1);
}
#endinitclip
}
movieClip 2306 __Packages.pl.fabrykagier.blazer.map.Village {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.Village) {
var v1 = function () {
super();
this._type = 'village';
};
pl.fabrykagier.blazer.map.Village = v1;
pl.fabrykagier.blazer.map.Village extends pl.fabrykagier.blazer.map.City;
var v2 = v1.prototype;
ASSetPropFlags(pl.fabrykagier.blazer.map.Village.prototype, null, 1);
}
#endinitclip
}
movieClip 2307 __Packages.pl.fabrykagier.blazer.map.Capital {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.Capital) {
var v1 = function () {
super();
this._type = 'capital';
};
pl.fabrykagier.blazer.map.Capital = v1;
pl.fabrykagier.blazer.map.Capital extends pl.fabrykagier.blazer.map.City;
var v2 = v1.prototype;
ASSetPropFlags(pl.fabrykagier.blazer.map.Capital.prototype, null, 1);
}
#endinitclip
}
movieClip 2308 __Packages.pl.fabrykagier.blazer.map.School {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.School) {
var v1 = function () {
super();
this._type = 'school';
};
pl.fabrykagier.blazer.map.School = v1;
pl.fabrykagier.blazer.map.School extends pl.fabrykagier.blazer.map.City;
var v2 = v1.prototype;
ASSetPropFlags(pl.fabrykagier.blazer.map.School.prototype, null, 1);
}
#endinitclip
}
movieClip 2309 __Packages.pl.fabrykagier.blazer.map.MapTransitions {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.MapTransitions) {
var v1 = function () {
super();
this.stop();
};
pl.fabrykagier.blazer.map.MapTransitions = v1;
pl.fabrykagier.blazer.map.MapTransitions extends MovieClip;
var v2 = v1.prototype;
v2.initialize = function (prevLevel, nextLevel) {
this._game = pl.fabrykagier.blazer.GameManager.getInstance();
this._prevLevel = prevLevel;
this._nextLevel = nextLevel;
var v2 = 'Map' + this._prevLevel + '_Out';
this.gotoAndPlay(v2);
};
v2.swichLevel = function () {
this.gotoAndPlay('Map' + this._nextLevel + '_In');
};
v2.endSwitch = function () {
this._game.setLevel(this._nextLevel);
};
ASSetPropFlags(pl.fabrykagier.blazer.map.MapTransitions.prototype, null, 1);
}
#endinitclip
}
movieClip 2310 __Packages.pl.fabrykagier.blazer.map.BtnFight {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.BtnFight) {
var v1 = function () {
super();
this.gotoAndStop(1);
this.enabled = false;
};
pl.fabrykagier.blazer.map.BtnFight = v1;
pl.fabrykagier.blazer.map.BtnFight extends MovieClip;
var v2 = v1.prototype;
v2.onRelease = function () {
(pl.fabrykagier.blazer.GameManager.getInstance()).spellsSelection();
};
v2.onRollOver = function () {
super.onRollOver();
this.gotoAndStop(2);
};
v2.onRollOut = function () {
super.onRollOut();
this.gotoAndStop(1);
};
v2.onReleaseOutside = function () {
this.onRollOut();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.BtnFight.prototype, null, 1);
}
#endinitclip
}
movieClip 2311 __Packages.pl.fabrykagier.blazer.map.BtnFlee {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.BtnFlee) {
var v1 = function () {
super();
this.gotoAndStop(1);
this.enabled = false;
};
pl.fabrykagier.blazer.map.BtnFlee = v1;
pl.fabrykagier.blazer.map.BtnFlee extends MovieClip;
var v2 = v1.prototype;
v2.onRelease = function () {
(pl.fabrykagier.blazer.GameManager.getInstance()).flee();
};
v2.onRollOver = function () {
super.onRollOver();
this.gotoAndStop(2);
};
v2.onRollOut = function () {
super.onRollOut();
this.gotoAndStop(1);
};
v2.onReleaseOutside = function () {
this.onRollOut();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.BtnFlee.prototype, null, 1);
}
#endinitclip
}
movieClip 2312 __Packages.pl.fabrykagier.blazer.battle.SpellSelectBtnFight {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle) {
_global.pl.fabrykagier.blazer.battle = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle.SpellSelectBtnFight) {
var v1 = function () {
super();
this.gotoAndStop(1);
this.enabled = false;
};
pl.fabrykagier.blazer.battle.SpellSelectBtnFight = v1;
pl.fabrykagier.blazer.battle.SpellSelectBtnFight extends MovieClip;
var v2 = v1.prototype;
v2.onRelease = function () {
if (this._parent.endSelection()) {
this.enabled = false;
}
};
v2.onRollOver = function () {
super.onRollOver();
this.gotoAndStop(2);
};
v2.onRollOut = function () {
super.onRollOut();
this.gotoAndStop(1);
};
v2.onReleaseOutside = function () {
this.onRollOut();
};
ASSetPropFlags(pl.fabrykagier.blazer.battle.SpellSelectBtnFight.prototype, null, 1);
}
#endinitclip
}
movieClip 2313 __Packages.pl.fabrykagier.blazer.battle.SpellsSelectMenu {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle) {
_global.pl.fabrykagier.blazer.battle = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle.SpellsSelectMenu) {
var v1 = function () {
super();
this._player = (pl.fabrykagier.blazer.GameManager.getInstance()).getPlayer();
this.textFormat = new TextFormat();
this.textFormat.font = 'Aniron';
this._selectedSpells = new Array();
this.btnFight_mc.enabled = false;
this.spellsList_mc.gotoAndStop((this._player.getAvailableSpells()).length + '_frame');
this.spellsList_mc.messegeBox_mc._visible = false;
var v4 = 0;
while (v4 < (this._player.getAvailableSpells()).length) {
var v3 = 'spell' + v4 + '_mc';
this.spellsList_mc[v3].gotoAndStop((this._player.getAvailableSpells())[v4] + 2);
this.spellsList_mc[v3].id = v4;
this.spellsList_mc[v3].x = this._x;
this.spellsList_mc[v3].y = this._y;
this.spellsList_mc[v3].ramka_mc._visible = false;
this.spellsList_mc[v3].reference = this;
this.spellsList_mc[v3].onPress = function () {
this._parent.messegeBox_mc._visible = false;
this.ramka_mc._visible = false;
this.reference.attachMovie('spellWybor', 'underMouse', this.getNextHighestDepth(), {'_x': this.reference._xmouse, '_y': this.reference._ymouse});
this.reference.underMouse.startDrag(true, -182, -125, 190, 110);
this.reference.underMouse.gotoAndStop(this._currentframe);
this.gotoAndStop(1);
};
this.spellsList_mc[v3].onRollOver = function () {
this._parent.messegeBox_mc._visible = true;
this.ramka_mc._visible = true;
this._parent.messegeBox_mc.messege_txt.embedFonts = true;
this._parent.messegeBox_mc.messege_txt.text = ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[(this.reference._player.getAvailableSpells())[this.id]][0];
this._parent.messegeBox_mc.messege_txt.setTextFormat(this.reference.textFormat);
};
this.spellsList_mc[v3].onRollOut = function () {
this.ramka_mc._visible = false;
this._parent.messegeBox_mc._visible = false;
};
this.spellsList_mc[v3].onRelease = function () {
this.ramka_mc._visible = false;
this._parent.messegeBox_mc._visible = false;
this.reference.underMouse.stopDrag();
if (this.reference.papirus1_mc.spellIkon_mc.papSpell_mc.hitTest(this.reference.underMouse)) {
var v2 = 'spell' + this.reference.papirus1_mc.linkedSpell + '_mc';
this.reference.spellsList_mc[v2].gotoAndStop((this.reference._player.getAvailableSpells())[this.reference.spellsList_mc[v2].id] + 2);
this.reference.spellsList_mc[v2].enabled = true;
this.reference._selectedSpells[0] = this.id;
this.reference.papirus1_mc.linkedSpell = this.id;
this.reference.papirus1_mc.enabled = true;
this.reference.papirus1_mc.play();
this.enabled = false;
} else {
if (this.reference.papirus2_mc.spellIkon_mc.papSpell_mc.hitTest(this.reference.underMouse)) {
var v2 = 'spell' + this.reference.papirus2_mc.linkedSpell + '_mc';
this.reference.spellsList_mc[v2].gotoAndStop((this.reference._player.getAvailableSpells())[this.reference.spellsList_mc[v2].id] + 2);
this.reference.spellsList_mc[v2].enabled = true;
this.reference._selectedSpells[1] = this.id;
this.reference.papirus2_mc.linkedSpell = this.id;
this.reference.papirus2_mc.enabled = true;
this.reference.papirus2_mc.play();
this.enabled = false;
} else {
if (this.reference.papirus3_mc.spellIkon_mc.papSpell_mc.hitTest(this.reference.underMouse)) {
var v2 = 'spell' + this.reference.papirus3_mc.linkedSpell + '_mc';
this.reference.spellsList_mc[v2].gotoAndStop((this.reference._player.getAvailableSpells())[this.reference.spellsList_mc[v2].id] + 2);
this.reference.spellsList_mc[v2].enabled = true;
this.reference._selectedSpells[2] = this.id;
this.reference.papirus3_mc.linkedSpell = this.id;
this.reference.papirus3_mc.enabled = true;
this.reference.papirus3_mc.play();
this.enabled = false;
} else {
this.gotoAndStop((this.reference._player.getAvailableSpells())[this.id] + 2);
}
}
}
this.reference.underMouse.removeMovieClip();
};
this.spellsList_mc[v3].onReleaseOutside = this.spellsList_mc[v3].onRelease;
this.spellsList_mc[v3].enabled = false;
++v4;
}
};
pl.fabrykagier.blazer.battle.SpellsSelectMenu = v1;
pl.fabrykagier.blazer.battle.SpellsSelectMenu extends MovieClip;
var v2 = v1.prototype;
v2.endSelection = function () {
if (this._selectedSpells[0] != undefined && this._selectedSpells[1] != undefined && this._selectedSpells[2] != undefined) {
this.btnFight_mc.enabled = false;
this.papirus1_mc.gotoAndPlay('rollIn');
this.papirus2_mc.gotoAndPlay('rollIn');
this.papirus3_mc.gotoAndPlay('rollIn');
this._player.setSpells(this._selectedSpells);
this.play();
this._parent.play();
return true;
} else {
return false;
}
};
v2.updateIkon = function () {
this.papirus1_mc.reference = this;
this.papirus2_mc.reference = this;
this.papirus3_mc.reference = this;
if (this._selectedSpells[0] != undefined) {
this.papirus1_mc.spellIkon_mc.papSpell_mc.gotoAndStop((this._player.getAvailableSpells())[this._selectedSpells[0]] + 2);
this.papirus1_mc.onPress = function () {
this.gotoAndStop(52);
var v2 = 'spell' + this.linkedSpell + '_mc';
this.reference.spellsList_mc[v2].gotoAndStop((this.reference._player.getAvailableSpells())[this.reference.spellsList_mc[v2].id] + 2);
this.reference.spellsList_mc[v2].enabled = true;
this.linkedSpell = undefined;
this.reference._selectedSpells[0] = undefined;
this.play();
};
} else {
this.papirus1_mc.spellIkon_mc.papSpell_mc.gotoAndStop(52);
this.papirus1_mc.enabled = false;
}
if (this._selectedSpells[1] != undefined) {
this.papirus2_mc.spellIkon_mc.papSpell_mc.gotoAndStop((this._player.getAvailableSpells())[this._selectedSpells[1]] + 2);
this.papirus2_mc.onPress = function () {
this.gotoAndStop(52);
var v2 = 'spell' + this.linkedSpell + '_mc';
this.reference.spellsList_mc[v2].gotoAndStop((this.reference._player.getAvailableSpells())[this.reference.spellsList_mc[v2].id] + 2);
this.reference.spellsList_mc[v2].enabled = true;
this.linkedSpell = undefined;
this.reference._selectedSpells[1] = undefined;
this.play();
};
} else {
this.papirus2_mc.spellIkon_mc.papSpell_mc.gotoAndStop(52);
this.papirus2_mc.enabled = false;
}
if (this._selectedSpells[2] != undefined) {
this.papirus3_mc.spellIkon_mc.papSpell_mc.gotoAndStop((this._player.getAvailableSpells())[this._selectedSpells[2]] + 2);
this.papirus3_mc.onPress = function () {
this.gotoAndStop(52);
var v2 = 'spell' + this.linkedSpell + '_mc';
this.reference.spellsList_mc[v2].gotoAndStop((this.reference._player.getAvailableSpells())[this.reference.spellsList_mc[v2].id] + 2);
this.reference.spellsList_mc[v2].enabled = true;
this.linkedSpell = undefined;
this.reference._selectedSpells[2] = undefined;
this.play();
};
} else {
this.papirus3_mc.spellIkon_mc.papSpell_mc.gotoAndStop(52);
this.papirus3_mc.enabled = false;
}
this.updateDescription();
if (this._selectedSpells[0] != undefined && this._selectedSpells[1] != undefined && this._selectedSpells[2] != undefined) {
this.btnFight_mc.enabled = true;
} else {
this.btnFight_mc.enabled = false;
}
};
v2.updateDescription = function () {
this.papirus1_mc.spellIkon_mc.spellName_txt.embedFonts = true;
this.papirus1_mc.spellIkon_mc.spellParam_txt.embedFonts = true;
this.papirus1_mc.spellIkon_mc.papSpell_mc.ramka_mc._visible = false;
var v2 = '';
var v3 = '';
if (this._selectedSpells[0] != undefined) {
v2 = ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[(this._player.getAvailableSpells())[this._selectedSpells[0]]][0];
v3 = ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[(this._player.getAvailableSpells())[this._selectedSpells[0]]][1] + '/' + ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[(this._player.getAvailableSpells())[this._selectedSpells[0]]][2];
}
this.papirus1_mc.spellIkon_mc.spellName_txt.text = v2;
this.papirus1_mc.spellIkon_mc.spellParam_txt.text = v3;
this.papirus1_mc.spellIkon_mc.spellName_txt.setTextFormat(this.textFormat);
this.papirus1_mc.spellIkon_mc.spellParam.setTextFormat(this.textFormat);
this.papirus2_mc.spellIkon_mc.spellName_txt.embedFonts = true;
this.papirus2_mc.spellIkon_mc.spellParam_txt.embedFonts = true;
this.papirus2_mc.spellIkon_mc.papSpell_mc.ramka_mc._visible = false;
v2 = '';
v3 = '';
if (this._selectedSpells[1] != undefined) {
v2 = ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[(this._player.getAvailableSpells())[this._selectedSpells[1]]][0];
v3 = ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[(this._player.getAvailableSpells())[this._selectedSpells[1]]][1] + '/' + ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[(this._player.getAvailableSpells())[this._selectedSpells[1]]][2];
}
this.papirus2_mc.spellIkon_mc.spellName_txt.text = v2;
this.papirus2_mc.spellIkon_mc.spellParam_txt.text = v3;
this.papirus2_mc.spellIkon_mc.spellName_txt.setTextFormat(this.textFormat);
this.papirus2_mc.spellIkon_mc.spellParam.setTextFormat(this.textFormat);
this.papirus3_mc.spellIkon_mc.spellName_txt.embedFonts = true;
this.papirus3_mc.spellIkon_mc.spellParam_txt.embedFonts = true;
this.papirus3_mc.spellIkon_mc.papSpell_mc.ramka_mc._visible = false;
v2 = '';
v3 = '';
if (this._selectedSpells[2] != undefined) {
v2 = ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[(this._player.getAvailableSpells())[this._selectedSpells[2]]][0];
v3 = ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[(this._player.getAvailableSpells())[this._selectedSpells[2]]][1] + '/' + ((pl.fabrykagier.blazer.GameManager.getInstance()).getSpellsTable())[(this._player.getAvailableSpells())[this._selectedSpells[2]]][2];
}
this.papirus3_mc.spellIkon_mc.spellName_txt.text = v2;
this.papirus3_mc.spellIkon_mc.spellParam_txt.text = v3;
this.papirus3_mc.spellIkon_mc.spellName_txt.setTextFormat(this.textFormat);
this.papirus3_mc.spellIkon_mc.spellParam.setTextFormat(this.textFormat);
};
v2.enableAll = function () {
var v2 = 0;
while (v2 < (this._player.getAvailableSpells()).length) {
var v3 = 'spell' + v2 + '_mc';
this.spellsList_mc[v3].enabled = true;
++v2;
}
};
ASSetPropFlags(pl.fabrykagier.blazer.battle.SpellsSelectMenu.prototype, null, 1);
}
#endinitclip
}
movieClip 2314 __Packages.pl.fabrykagier.blazer.map.Enterqest {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.Enterqest) {
var v1 = function () {
super();
this.decisionBox_mc.btnYes.enabled = false;
this.decisionBox_mc.btnYes.gotoAndStop(1);
this.decisionBox_mc.btnYes.onRollOver = function () {
this.gotoAndStop(2);
};
this.decisionBox_mc.btnYes.onRollOut = function () {
this.gotoAndStop(1);
};
this.decisionBox_mc.btnYes.onPress = function () {
if ((pl.fabrykagier.blazer.GameManager.getInstance()).getLevel() < 3) {
((pl.fabrykagier.blazer.GameManager.getInstance()).getCurrentMap()).setPatrolAbility(true);
}
this._parent._parent.play();
};
};
pl.fabrykagier.blazer.map.Enterqest = v1;
pl.fabrykagier.blazer.map.Enterqest extends MovieClip;
var v2 = v1.prototype;
v2.backToTheMap = function () {
((pl.fabrykagier.blazer.GameManager.getInstance()).getCurrentMap()).openCity();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.Enterqest.prototype, null, 1);
}
#endinitclip
}
movieClip 2315 __Packages.pl.fabrykagier.blazer.map.Enterschool {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.Enterschool) {
var v1 = function () {
super();
if ((pl.fabrykagier.blazer.GameManager.getInstance()).__get____schoolState() >= 2) {
this.decisionBox_mc.gotoAndPlay('Zajecia');
}
this.decisionBox_mc.btnYes.enabled = false;
this.decisionBox_mc.btnYes.gotoAndStop(1);
this.decisionBox_mc.btnYes.onRollOver = function () {
this.gotoAndStop(2);
};
this.decisionBox_mc.btnYes.onRollOut = function () {
this.gotoAndStop(1);
};
this.decisionBox_mc.btnYes.onPress = function () {
this._parent._parent.play();
};
};
pl.fabrykagier.blazer.map.Enterschool = v1;
pl.fabrykagier.blazer.map.Enterschool extends MovieClip;
var v2 = v1.prototype;
v2.backToTheMap = function () {
(pl.fabrykagier.blazer.GameManager.getInstance()).atSchool();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.Enterschool.prototype, null, 1);
}
#endinitclip
}
movieClip 2316 __Packages.pl.fabrykagier.blazer.map.VillageMC {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.VillageMC) {
var v1 = function () {
super();
this._sound = new Sound(this);
this._restPrice = 100;
this._halfRestPrice = 20;
this._nextLevel = false;
this._prevLevel = false;
this.decisionBox_mc.btnYes.enabled = false;
this.decisionBox_mc.btnNo.enabled = false;
this.decisionBox_mc.btnGo.enabled = false;
this.decisionBox_mc.btnHalfRest.enabled = false;
this.decisionBox_mc.btnYes.gotoAndStop(1);
this.decisionBox_mc.btnNo.gotoAndStop(1);
this.decisionBox_mc.btnHalfRest.gotoAndStop(1);
this.decisionBox_mc.btnGo._visible = false;
if (((pl.fabrykagier.blazer.GameManager.getInstance()).getPlayer()).isPossibleRest(this._restPrice)) {
this.decisionBox_mc.btnYes.reference = this;
this.decisionBox_mc.btnYes.onRollOver = this.btnRollOver;
this.decisionBox_mc.btnYes.onRollOut = this.btnRollOut;
this.decisionBox_mc.btnYes.onPress = this.rest;
} else {
this.decisionBox_mc.btnYes.gotoAndStop(3);
}
if (((pl.fabrykagier.blazer.GameManager.getInstance()).getPlayer()).isPossibleRest(this._halfRestPrice)) {
this.decisionBox_mc.btnHalfRest.reference = this;
this.decisionBox_mc.btnHalfRest.onRollOver = this.btnRollOver;
this.decisionBox_mc.btnHalfRest.onRollOut = this.btnRollOut;
this.decisionBox_mc.btnHalfRest.onPress = this.halfRest;
} else {
this.decisionBox_mc.btnHalfRest.gotoAndStop(3);
}
this.decisionBox_mc.btnNo.reference = this;
this.decisionBox_mc.btnNo.onRollOver = this.btnRollOver;
this.decisionBox_mc.btnNo.onRollOut = this.btnRollOut;
this.decisionBox_mc.btnNo.onPress = this.hide;
this.textFormat = new TextFormat();
this.textFormat.font = 'Aniron';
this.tlo_mc.onRollOver = function () {};
this.tlo_mc.useHandCursor = false;
};
pl.fabrykagier.blazer.map.VillageMC = v1;
pl.fabrykagier.blazer.map.VillageMC extends MovieClip;
var v2 = v1.prototype;
v2.init = function (type, name, number) {
this.decisionBox_mc.townType_mc.gotoAndStop(String(type + (pl.fabrykagier.blazer.GameManager.getInstance()).getLevel()));
this.decisionBox_mc.type_mc.gotoAndStop(type);
this.decisionBox_mc.type_mc.name_txt.embedFonts = true;
this.decisionBox_mc.type_mc.name_txt.text = name;
this.decisionBox_mc.type_mc.name_txt.setTextFormat(this.textFormat);
var v2;
if (type == 'village') {
v2 = type + '_snd';
} else {
v2 = 'city_snd';
}
this._sound.attachSound(v2);
this._sound.start(0, 999);
if (type != 'capital' && number != 0) {
this.decisionBox_mc.btnGo._visible = false;
} else {
if (number != 0) {
this.decisionBox_mc.btnGo._visible = true;
this.decisionBox_mc.btnGo.gotoAndStop(1);
this.decisionBox_mc.btnGo.go_Mc.gotoAndStop(1);
this.decisionBox_mc.btnGo.reference = this;
this.decisionBox_mc.btnGo.onRollOver = this.btnGoRollOver;
this.decisionBox_mc.btnGo.onRollOut = this.btnGoRollOut;
this.decisionBox_mc.btnGo.onPress = this.goToNextLevel;
} else {
this.decisionBox_mc.btnGo._visible = true;
this.decisionBox_mc.btnGo.gotoAndStop(2);
this.decisionBox_mc.btnGo.go_Mc.gotoAndStop(1);
this.decisionBox_mc.btnGo.reference = this;
this.decisionBox_mc.btnGo.onRollOver = this.btnGoRollOver;
this.decisionBox_mc.btnGo.onRollOut = this.btnGoRollOut;
this.decisionBox_mc.btnGo.onPress = this.goToPrevLevel;
}
}
};
v2.btnRollOver = function () {
this.gotoAndStop(2);
};
v2.btnRollOut = function () {
this.gotoAndStop(1);
};
v2.btnGoRollOver = function () {
this.go_Mc.gotoAndStop(2);
};
v2.btnGoRollOut = function () {
this.go_Mc.gotoAndStop(1);
};
v2.hide = function () {
this.reference.disableMenuAndPlay();
};
v2.rest = function () {
((pl.fabrykagier.blazer.GameManager.getInstance()).getPlayer()).doRest(100);
var v2 = new Sound(this);
v2.attachSound('kasa2_snd');
v2.start();
this.reference.disableMenuAndPlay();
};
v2.halfRest = function () {
((pl.fabrykagier.blazer.GameManager.getInstance()).getPlayer()).doRest(20);
var v2 = new Sound(this);
v2.attachSound('kasa2_snd');
v2.start();
this.reference.disableMenuAndPlay();
};
v2.disableMenuAndPlay = function () {
this.decisionBox_mc.btnNo.enabled = false;
this.decisionBox_mc.btnYes.enabled = false;
this.decisionBox_mc.btnGo.enabled = false;
this.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.onEnterFrame = undefined;
this.endAnimation();
}
};
this.play();
};
v2.goToNextLevel = function () {
this.reference._nextLevel = true;
this.reference.disableMenuAndPlay();
};
v2.goToPrevLevel = function () {
this.reference._prevLevel = true;
this.reference.disableMenuAndPlay();
};
v2.endAnimation = function () {
this._sound.stop();
(((pl.fabrykagier.blazer.GameManager.getInstance()).getCurrentMap()).getMap())[(((pl.fabrykagier.blazer.GameManager.getInstance()).getCurrentMap()).getCurentRoad()).getName()].showHero();
if (this._nextLevel) {
(pl.fabrykagier.blazer.GameManager.getInstance()).changeLevel((pl.fabrykagier.blazer.GameManager.getInstance()).getLevel() + 1);
} else {
if (this._prevLevel) {
(pl.fabrykagier.blazer.GameManager.getInstance()).changeLevel((pl.fabrykagier.blazer.GameManager.getInstance()).getLevel() - 1);
}
}
this.removeMovieClip();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.VillageMC.prototype, null, 1);
}
#endinitclip
}
movieClip 2317 __Packages.pl.fabrykagier.blazer.battle.SpellsMenu {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle) {
_global.pl.fabrykagier.blazer.battle = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle.SpellsMenu) {
var v1 = function () {
super();
this.decisionBox_mc.gotoAndStop(((((pl.fabrykagier.blazer.GameManager.getInstance()).getCurrentMap()).getCurentRoad()).getCurrentEnemies()).getID() + 1);
};
pl.fabrykagier.blazer.battle.SpellsMenu = v1;
pl.fabrykagier.blazer.battle.SpellsMenu extends MovieClip;
var v2 = v1.prototype;
v2.disbleBox = function () {
this.decisionBox_mc.btnFight_mc._enabled = false;
this.decisionBox_mc.btnFlee_mc._enabled = false;
};
v2.flee = function () {
this.gotoAndPlay('out');
this.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.onEnterFrame = undefined;
(pl.fabrykagier.blazer.GameManager.getInstance()).decisionBoxHide();
}
};
};
v2.hideMap = function () {};
v2.startBattle = function () {
(pl.fabrykagier.blazer.GameManager.getInstance()).startBattle();
};
ASSetPropFlags(pl.fabrykagier.blazer.battle.SpellsMenu.prototype, null, 1);
}
#endinitclip
}
movieClip 2318 __Packages.pl.fabrykagier.blazer.battle.Spell {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle) {
_global.pl.fabrykagier.blazer.battle = new Object();
}
if (!_global.pl.fabrykagier.blazer.battle.Spell) {
var v1 = function () {
super();
this._isFallin = false;
this._speed = 15;
this.y = this._y / 40;
this.x = this._x / 40;
this._destX = this._x;
this._destY = this._y;
this._ramka._visible = false;
};
pl.fabrykagier.blazer.battle.Spell = v1;
pl.fabrykagier.blazer.battle.Spell extends MovieClip;
var v2 = v1.prototype;
v2.init = function (diamondContainer) {
this._y -= 320 + (8 - this.y) * 50 + this.x * 100;
this._container = diamondContainer;
this.fall();
};
v2.fall = function () {
this.onEnterFrame = undefined;
if (!this._isFallin) {
this._container.setFallinPieces(1);
}
this._isFallin = true;
this.cacheAsBitmap = true;
this.y = this._destY;
this.onEnterFrame = this.fallinFunction;
};
v2.fallAfterBom = function (destY) {
this._destY = destY * 40;
this.fall();
};
v2.reverse = function (destIDY, destIDX) {
this._container.setFallinPieces(1);
this._destY = destIDY * 40;
this._destX = destIDX * 40;
this.cacheAsBitmap = true;
this.onEnterFrame = function () {
var v3 = (destIDX - this.x) * this._speed / 5;
var v2 = (destIDY - this.y) * this._speed / 5;
if (Math.abs(this._x - this._destX) < this._speed / 10) {
this._x = this._destX;
v3 = 0;
}
if (Math.abs(this._y - this._destY) <= this._speed / 10) {
this._y = this._destY;
v2 = 0;
}
this._y += v2;
this._x += v3;
if (this._y == this._destY && this._x == this._destX) {
this.onEnterFrame = undefined;
this.cacheAsBitmap = false;
this.x = this._x / 40;
this.y = this._y / 40;
this._name = 'spell_' + this.y + '_' + this.x + '_mc';
this._container.setFallinPieces(-1);
}
};
};
v2.setDestPositions = function (y, x) {
this._destX = x;
this._destY = y;
};
v2.setIDXY = function (x, y) {
this.x = x;
this.y = y;
};
v2.onPress = function () {
super.onPress();
if (this._container.getBlocked() == false) {
this._container.setClicked(this.y, this.x);
}
};
v2.checkIsLastFallin = function () {
if (this._container.getFallinPieces() == 0) {
this._container.setBlocked(false);
}
};
v2.fallinFunction = function () {
var v2 = this._speed;
if (this._y + this._speed >= this._destY) {
this._y = this._destY;
v2 = 0;
}
this._y += v2;
if (this._y == this._destY) {
this.onEnterFrame = undefined;
this._isFallin = false;
this.cacheAsBitmap = false;
this.x = this._x / 40;
this.y = this._y / 40;
this._container.setFallinPieces(-1);
}
};
v2.getIsFallin = function () {
return this._isFallin;
};
v2.setActive = function (state) {
this._ramka._visible = state;
};
ASSetPropFlags(pl.fabrykagier.blazer.battle.Spell.prototype, null, 1);
}
#endinitclip
}
movieClip 2319 __Packages.pl.fabrykagier.blazer.map.BtnPlayAgain {
#initclip
if (!_global.pl) {
_global.pl = new Object();
}
if (!_global.pl.fabrykagier) {
_global.pl.fabrykagier = new Object();
}
if (!_global.pl.fabrykagier.blazer) {
_global.pl.fabrykagier.blazer = new Object();
}
if (!_global.pl.fabrykagier.blazer.map) {
_global.pl.fabrykagier.blazer.map = new Object();
}
if (!_global.pl.fabrykagier.blazer.map.BtnPlayAgain) {
var v1 = function () {
super();
this.gotoAndStop(1);
this.enabled = false;
};
pl.fabrykagier.blazer.map.BtnPlayAgain = v1;
pl.fabrykagier.blazer.map.BtnPlayAgain extends MovieClip;
var v2 = v1.prototype;
v2.onRelease = function () {
(pl.fabrykagier.blazer.GameManager.getInstance()).playAgain();
};
v2.onRollOver = function () {
super.onRollOver();
this.gotoAndStop(2);
};
v2.onRollOut = function () {
super.onRollOut();
this.gotoAndStop(1);
};
v2.onReleaseOutside = function () {
this.onRollOut();
};
ASSetPropFlags(pl.fabrykagier.blazer.map.BtnPlayAgain.prototype, null, 1);
}
#endinitclip
}
frame 10 {
var iloscDanych = _root.getBytesTotal();
var iloscWczytana = _root.getBytesLoaded();
var textFormat = new TextFormat();
textFormat.font = 'Aniron';
if (iloscDanych == iloscWczytana && iloscDanych > 100) {
gotoAndPlay(12);
}
Postep = Math.round((iloscWczytana / iloscDanych) * 100);
loader.loader_mc.gotoAndStop(Postep);
loadtxt_mc.load_txt.embedFonts = true;
loadtxt_mc.load2_txt.embedFonts = true;
loadtxt_mc.load_txt.text = 'loading game...' + Postep + '%';
loadtxt_mc.load2_txt.text = 'loading game...' + Postep + '%';
loadtxt_mc.load_tx.setTextFormat(textFormat);
loadtxt_mc.load2_tx.setTextFormat(textFormat);
}
frame 11 {
this.gotoAndPlay(10);
}
movieClip 327 {
}
movieClip 328 {
}
movieClip 330 {
}
movieClip 332 {
}
movieClip 335 {
}
movieClip 337 {
}
movieClip 339 {
}
movieClip 341 {
}
movieClip 346 {
}
movieClip 349 {
}
movieClip 354 {
}
movieClip 358 {
}
movieClip 364 {
}
movieClip 369 {
}
movieClip 370 {
}
movieClip 373 {
}
movieClip 375 {
frame 24 {
this._parent.gotoAndStop(this._parent.parentFrame);
}
}
movieClip 381 {
}
movieClip 386 {
}
movieClip 392 {
}
movieClip 397 {
}
movieClip 398 {
}
movieClip 402 {
}
movieClip 403 {
frame 1 {
stop();
}
}
movieClip 405 {
frame 1 {
stop();
}
}
movieClip 407 {
frame 1 {
stop();
}
}
movieClip 409 {
frame 1 {
stop();
}
}
movieClip 411 {
frame 1 {
stop();
}
}
movieClip 413 {
frame 1 {
stop();
}
}
movieClip 415 {
frame 1 {
stop();
}
}
movieClip 417 {
frame 1 {
stop();
}
}
movieClip 419 {
frame 1 {
stop();
}
}
movieClip 421 {
frame 1 {
stop();
}
}
movieClip 423 {
frame 1 {
stop();
}
}
movieClip 425 {
frame 1 {
stop();
}
}
movieClip 427 {
frame 1 {
stop();
}
}
movieClip 429 {
frame 1 {
stop();
}
}
movieClip 431 {
frame 1 {
stop();
}
}
movieClip 433 {
frame 1 {
stop();
}
}
movieClip 435 {
frame 1 {
stop();
}
}
movieClip 437 {
frame 1 {
stop();
}
}
movieClip 439 {
frame 1 {
stop();
}
}
movieClip 441 {
frame 1 {
stop();
}
}
movieClip 443 {
frame 1 {
stop();
}
}
movieClip 445 {
frame 1 {
stop();
}
}
movieClip 447 {
frame 1 {
stop();
}
}
movieClip 449 {
frame 1 {
stop();
}
}
movieClip 451 {
frame 1 {
stop();
}
}
movieClip 453 {
frame 1 {
stop();
}
}
movieClip 455 {
frame 1 {
stop();
}
}
movieClip 457 {
frame 1 {
stop();
}
}
movieClip 459 {
frame 1 {
stop();
}
}
movieClip 461 {
frame 1 {
stop();
}
}
movieClip 463 {
frame 1 {
stop();
}
}
movieClip 465 {
frame 1 {
stop();
}
}
movieClip 467 {
frame 1 {
stop();
}
}
movieClip 469 {
frame 1 {
stop();
}
}
movieClip 471 {
frame 1 {
stop();
}
}
movieClip 473 {
frame 1 {
stop();
}
}
movieClip 475 {
frame 1 {
stop();
}
}
movieClip 477 {
frame 1 {
stop();
}
}
movieClip 479 {
frame 1 {
stop();
}
}
movieClip 481 {
frame 1 {
stop();
}
}
movieClip 483 {
frame 1 {
stop();
}
}
movieClip 485 {
frame 1 {
stop();
}
}
movieClip 487 {
frame 1 {
stop();
}
}
movieClip 489 {
frame 1 {
stop();
}
}
movieClip 491 {
frame 1 {
stop();
}
}
movieClip 493 {
frame 1 {
stop();
}
}
movieClip 495 {
frame 1 {
stop();
}
}
movieClip 497 {
frame 1 {
stop();
}
}
movieClip 499 {
frame 1 {
stop();
}
}
movieClip 500 spell {
#initclip
Object.registerClass('spell', pl.fabrykagier.blazer.battle.Spell);
#endinitclip
frame 1 {
stop();
}
}
movieClip 503 {
frame 1 {
stop();
}
}
movieClip 505 {
}
movieClip 506 {
}
movieClip 508 {
}
movieClip 511 {
}
movieClip 513 {
}
movieClip 516 {
}
movieClip 520 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 522 {
}
movieClip 524 {
}
movieClip 526 {
}
movieClip 528 {
}
movieClip 531 {
}
movieClip 534 {
}
movieClip 536 {
}
movieClip 538 {
}
movieClip 541 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 543 {
}
movieClip 545 {
}
movieClip 548 {
}
movieClip 552 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 554 {
}
movieClip 557 {
}
movieClip 563 {
frame 12 {
this.gotoAndStop('Normal');
}
frame 13 {
stop();
}
frame 14 {
stop();
}
}
movieClip 565 {
}
movieClip 568 {
}
movieClip 571 {
}
movieClip 576 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 578 {
}
movieClip 581 {
}
movieClip 586 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 589 {
}
movieClip 591 {
}
movieClip 597 {
frame 14 {
this.gotoAndStop('Normal');
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 599 {
}
movieClip 603 {
}
movieClip 607 {
frame 14 {
this.gotoAndStop('Normal');
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 609 {
}
movieClip 613 {
}
movieClip 615 {
}
movieClip 621 {
frame 14 {
this.gotoAndStop('Normal');
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 623 {
}
movieClip 627 {
}
movieClip 629 {
}
movieClip 631 {
}
movieClip 635 {
frame 14 {
this.gotoAndStop('Normal');
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 639 {
}
movieClip 644 {
frame 14 {
this.gotoAndStop('Normal');
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 646 {
}
movieClip 649 {
}
movieClip 652 {
frame 14 {
this.gotoAndStop('Normal');
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 657 {
}
movieClip 659 {
}
movieClip 663 {
frame 14 {
this.gotoAndStop('Normal');
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 667 {
}
movieClip 669 {
}
movieClip 673 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 676 {
}
movieClip 679 {
}
movieClip 681 {
}
movieClip 683 {
}
movieClip 688 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 692 {
}
movieClip 694 {
}
movieClip 697 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 700 {
}
movieClip 702 {
}
movieClip 704 {
}
movieClip 706 {
}
movieClip 709 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 713 {
}
movieClip 716 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 720 {
}
movieClip 722 {
}
movieClip 725 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 730 {
}
movieClip 732 {
}
movieClip 739 {
}
movieClip 742 {
}
movieClip 743 {
}
movieClip 745 {
frame 1 {
stop();
}
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 42 {
this.gotoAndStop('Normal');
}
}
movieClip 749 {
}
movieClip 751 {
}
movieClip 756 {
frame 13 {
this.gotoAndStop('Normal');
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 757 {
}
movieClip 758 {
}
movieClip 760 {
}
movieClip 763 {
}
movieClip 765 {
}
movieClip 766 {
}
movieClip 770 {
}
movieClip 772 {
}
movieClip 774 {
}
movieClip 781 {
}
movieClip 786 {
}
movieClip 789 {
}
movieClip 792 {
}
movieClip 794 {
}
movieClip 796 {
}
movieClip 803 {
}
movieClip 812 {
}
movieClip 817 {
}
movieClip 818 {
}
movieClip 819 {
frame 1 {
var snd = 'kasa_snd';
var _s = new Sound(this);
_s.attachSound(snd);
_s.start();
}
}
movieClip 823 {
}
movieClip 831 {
}
movieClip 832 {
}
movieClip 833 {
}
movieClip 834 {
}
movieClip 835 {
}
movieClip 837 {
}
movieClip 838 {
}
movieClip 839 {
}
movieClip 840 {
}
movieClip 841 {
}
movieClip 842 {
}
movieClip 852 battle {
#initclip
Object.registerClass('battle', pl.fabrykagier.blazer.battle.BattleGame);
#endinitclip
frame 2 {
this.stop();
this.checkSchoolOpen();
}
frame 58 {
this.endWindwShow();
}
frame 77 {
if (this._gameManager.__schoolState == 4) {
this.gotoAndPlay('Training');
}
}
frame 89 {
if (this._gameManager.isTutorial() && this._winner.getName() == this._player.getName()) {
stop();
tutorial3_mc._visible = true;
} else {
tutorial3_mc._visible = false;
}
}
frame 90 {
this.addCachSound();
}
frame 96 {
stop();
}
frame 112 {
this._gameManager.continueMovingAfterFight(this._battleEfect);
this.removeMovieClip();
}
frame 127 {
this._gameManager.continueMovingAfterFight(this._battleEfect);
this.removeMovieClip();
}
}
movieClip 853 {
}
movieClip 854 diamondContainer {
#initclip
Object.registerClass('diamondContainer', pl.fabrykagier.blazer.battle.DiamondContainer);
#endinitclip
}
movieClip 858 {
}
movieClip 859 {
frame 9 {
stop();
}
}
movieClip 860 Game {
#initclip
Object.registerClass('Game', pl.fabrykagier.blazer.GameManager);
#endinitclip
}
movieClip 862 {
}
movieClip 867 patrolQuestion {
#initclip
Object.registerClass('patrolQuestion', pl.fabrykagier.blazer.map.PatrolDecision);
#endinitclip
frame 16 {
this.enableAll();
stop();
}
}
movieClip 870 {
}
movieClip 873 {
}
movieClip 876 {
}
movieClip 878 {
}
movieClip 883 strangeMagicFirst {
#initclip
Object.registerClass('strangeMagicFirst', pl.fabrykagier.blazer.battle.LittleScreen);
#endinitclip
frame 16 {
stop();
this.btnOk.enabled = true;
}
frame 33 {
this._parent.windowHide();
stop();
this.removeMoveiClip();
}
}
movieClip 888 strangeMagicLast {
#initclip
Object.registerClass('strangeMagicLast', pl.fabrykagier.blazer.battle.LittleScreen);
#endinitclip
frame 16 {
stop();
this.btnOk.enabled = true;
}
frame 33 {
this.stop();
this._parent.secondWindowHide();
this.removeMovieClip();
}
}
movieClip 891 {
}
movieClip 892 komunikat {
frame 30 {
this.removeMovieClip();
}
}
movieClip 895 {
frame 1 {
stop();
}
}
movieClip 896 battlePoints {
frame 30 {
this.removeMovieClip();
}
}
movieClip 904 {
}
movieClip 906 {
}
movieClip 908 {
}
movieClip 912 {
frame 21 {
this._parent._parent.removeMovieClip();
}
}
movieClip 913 {
}
movieClip 914 light {
}
movieClip 915 light2 {
}
movieClip 929 {
frame 26 {
this._parent.removeMovieClip();
}
}
movieClip 930 flashLight {
}
movieClip 932 {
}
movieClip 934 {
}
movieClip 937 {
}
movieClip 939 {
}
movieClip 941 {
}
movieClip 943 {
}
movieClip 945 {
}
movieClip 947 {
}
movieClip 949 {
}
movieClip 969 {
}
movieClip 973 {
}
movieClip 975 {
}
movieClip 977 {
}
movieClip 981 {
}
movieClip 985 {
}
movieClip 987 {
}
movieClip 989 {
}
movieClip 991 {
}
movieClip 993 {
}
movieClip 995 {
}
movieClip 997 {
}
movieClip 999 {
}
movieClip 1001 {
}
movieClip 1003 {
}
movieClip 1005 {
}
movieClip 1007 {
}
movieClip 1009 {
}
movieClip 1011 {
}
movieClip 1013 {
}
movieClip 1015 {
}
movieClip 1017 {
}
movieClip 1019 {
}
movieClip 1021 {
}
movieClip 1023 {
}
movieClip 1024 {
}
movieClip 1027 {
}
movieClip 1031 {
}
movieClip 1032 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 32 {
this.gotoAndPlay(2);
}
}
movieClip 1033 Wedrowka1.7 {
#initclip
Object.registerClass('Wedrowka1.7', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1037 {
}
movieClip 1038 Wedrowka1.14 {
#initclip
Object.registerClass('Wedrowka1.14', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1042 {
}
movieClip 1043 Wedrowka1.12 {
#initclip
Object.registerClass('Wedrowka1.12', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1047 {
}
movieClip 1048 Wedrowka1.11 {
#initclip
Object.registerClass('Wedrowka1.11', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1052 {
}
movieClip 1053 Wedrowka1.3 {
#initclip
Object.registerClass('Wedrowka1.3', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1057 {
}
movieClip 1058 Wedrowka1.2 {
#initclip
Object.registerClass('Wedrowka1.2', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1062 {
}
movieClip 1063 Wedrowka1.1 {
#initclip
Object.registerClass('Wedrowka1.1', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1067 {
}
movieClip 1068 Wedrowka1.6 {
#initclip
Object.registerClass('Wedrowka1.6', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1072 {
}
movieClip 1073 Wedrowka1.5 {
#initclip
Object.registerClass('Wedrowka1.5', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1077 {
}
movieClip 1078 Wedrowka1.15 {
#initclip
Object.registerClass('Wedrowka1.15', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1082 {
}
movieClip 1083 Wedrowka1.16 {
#initclip
Object.registerClass('Wedrowka1.16', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1087 {
}
movieClip 1088 Wedrowka1.10 {
#initclip
Object.registerClass('Wedrowka1.10', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1092 {
}
movieClip 1093 Wedrowka1.13 {
#initclip
Object.registerClass('Wedrowka1.13', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1097 {
}
movieClip 1098 Wedrowka1.9 {
#initclip
Object.registerClass('Wedrowka1.9', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1102 {
}
movieClip 1103 Wedrowka1.8 {
#initclip
Object.registerClass('Wedrowka1.8', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1107 {
}
movieClip 1108 Wedrowka1.4 {
#initclip
Object.registerClass('Wedrowka1.4', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1110 City0 {
#initclip
Object.registerClass('City0', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1112 City1 {
#initclip
Object.registerClass('City1', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1114 City2 {
#initclip
Object.registerClass('City2', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1116 City3 {
#initclip
Object.registerClass('City3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1118 City4 {
#initclip
Object.registerClass('City4', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1120 City5 {
#initclip
Object.registerClass('City5', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1122 City6 {
#initclip
Object.registerClass('City6', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1123 City7 {
#initclip
Object.registerClass('City7', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1125 City8 {
#initclip
Object.registerClass('City8', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1127 City9 {
#initclip
Object.registerClass('City9', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1129 City10 {
#initclip
Object.registerClass('City10', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1130 City11 {
#initclip
Object.registerClass('City11', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1132 City12 {
#initclip
Object.registerClass('City12', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1134 City13 {
#initclip
Object.registerClass('City13', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1135 City14 {
#initclip
Object.registerClass('City14', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1137 City15 {
#initclip
Object.registerClass('City15', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1139 Raven {
#initclip
Object.registerClass('Raven', pl.fabrykagier.blazer.map.Capital);
#endinitclip
frame 1 {
}
}
movieClip 1140 map1 {
}
movieClip 1163 {
}
movieClip 1167 {
}
movieClip 1171 {
}
movieClip 1172 Wedrowka2.14 {
#initclip
Object.registerClass('Wedrowka2.14', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1176 {
}
movieClip 1177 Wedrowka2.13 {
#initclip
Object.registerClass('Wedrowka2.13', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1181 {
}
movieClip 1182 Wedrowka2.16 {
#initclip
Object.registerClass('Wedrowka2.16', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1186 {
}
movieClip 1187 Wedrowka2.15 {
#initclip
Object.registerClass('Wedrowka2.15', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1191 {
}
movieClip 1192 Wedrowka2.12 {
#initclip
Object.registerClass('Wedrowka2.12', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1196 {
}
movieClip 1197 Wedrowka2.11 {
#initclip
Object.registerClass('Wedrowka2.11', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1201 {
}
movieClip 1202 Wedrowka2.10 {
#initclip
Object.registerClass('Wedrowka2.10', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1206 {
}
movieClip 1207 Wedrowka2.9 {
#initclip
Object.registerClass('Wedrowka2.9', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1211 {
}
movieClip 1212 Wedrowka2.8 {
#initclip
Object.registerClass('Wedrowka2.8', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1216 {
}
movieClip 1217 Wedrowka2.1 {
#initclip
Object.registerClass('Wedrowka2.1', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1221 {
}
movieClip 1222 Wedrowka2.2 {
#initclip
Object.registerClass('Wedrowka2.2', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1226 {
}
movieClip 1227 Wedrowka2.3 {
#initclip
Object.registerClass('Wedrowka2.3', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1231 {
}
movieClip 1232 Wedrowka2.4 {
#initclip
Object.registerClass('Wedrowka2.4', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1236 {
}
movieClip 1237 Wedrowka2.5 {
#initclip
Object.registerClass('Wedrowka2.5', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1241 {
}
movieClip 1242 Wedrowka2.6 {
#initclip
Object.registerClass('Wedrowka2.6', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1246 {
}
movieClip 1247 Wedrowka2.7 {
#initclip
Object.registerClass('Wedrowka2.7', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1249 City0_2 {
#initclip
Object.registerClass('City0_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1251 City1_2 {
#initclip
Object.registerClass('City1_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1253 City2_2 {
#initclip
Object.registerClass('City2_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1255 City3_2 {
#initclip
Object.registerClass('City3_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1257 City4_2 {
#initclip
Object.registerClass('City4_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1259 City5_2 {
#initclip
Object.registerClass('City5_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1261 City6_2 {
#initclip
Object.registerClass('City6_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1263 City7_2 {
#initclip
Object.registerClass('City7_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1265 City8_2 {
#initclip
Object.registerClass('City8_2', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1267 City9_2 {
#initclip
Object.registerClass('City9_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1269 City10_2 {
#initclip
Object.registerClass('City10_2', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1271 City11_2 {
#initclip
Object.registerClass('City11_2', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1273 City12_2 {
#initclip
Object.registerClass('City12_2', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1275 eastmoore {
#initclip
Object.registerClass('eastmoore', pl.fabrykagier.blazer.map.Capital);
#endinitclip
}
movieClip 1277 City14_2 {
#initclip
Object.registerClass('City14_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1279 City15_2 {
#initclip
Object.registerClass('City15_2', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1281 Rondale {
#initclip
Object.registerClass('Rondale', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1282 Map2 {
}
movieClip 1308 {
}
movieClip 1312 {
}
movieClip 1316 {
}
movieClip 1317 Wedrowka3.1 {
#initclip
Object.registerClass('Wedrowka3.1', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1321 {
}
movieClip 1322 Wedrowka3.2 {
#initclip
Object.registerClass('Wedrowka3.2', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1326 {
}
movieClip 1327 Wedrowka3.3 {
#initclip
Object.registerClass('Wedrowka3.3', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1331 {
}
movieClip 1332 Wedrowka3.4 {
#initclip
Object.registerClass('Wedrowka3.4', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1336 {
}
movieClip 1337 Wedrowka3.5 {
#initclip
Object.registerClass('Wedrowka3.5', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1341 {
}
movieClip 1342 Wedrowka3.6 {
#initclip
Object.registerClass('Wedrowka3.6', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1346 {
}
movieClip 1347 Wedrowka3.7 {
#initclip
Object.registerClass('Wedrowka3.7', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1351 {
}
movieClip 1352 Wedrowka3.8 {
#initclip
Object.registerClass('Wedrowka3.8', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1356 {
}
movieClip 1357 Wedrowka3.9 {
#initclip
Object.registerClass('Wedrowka3.9', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1361 {
}
movieClip 1362 Wedrowka3.10 {
#initclip
Object.registerClass('Wedrowka3.10', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1366 {
}
movieClip 1367 Wedrowka3.11 {
#initclip
Object.registerClass('Wedrowka3.11', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1371 {
}
movieClip 1372 Wedrowka3.12 {
#initclip
Object.registerClass('Wedrowka3.12', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1376 {
}
movieClip 1377 Wedrowka3.13 {
#initclip
Object.registerClass('Wedrowka3.13', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1381 {
}
movieClip 1382 Wedrowka3.14 {
#initclip
Object.registerClass('Wedrowka3.14', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1386 {
}
movieClip 1387 Wedrowka3.15 {
#initclip
Object.registerClass('Wedrowka3.15', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1391 {
}
movieClip 1392 Wedrowka3.16 {
#initclip
Object.registerClass('Wedrowka3.16', pl.fabrykagier.blazer.map.RoadMC);
#endinitclip
}
movieClip 1394 City3_0 {
#initclip
Object.registerClass('City3_0', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1396 City3_1 {
#initclip
Object.registerClass('City3_1', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1398 City2_3 {
#initclip
Object.registerClass('City2_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1400 City3_3 {
#initclip
Object.registerClass('City3_3', pl.fabrykagier.blazer.map.School);
#endinitclip
}
movieClip 1402 City4_3 {
#initclip
Object.registerClass('City4_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1404 City5_3 {
#initclip
Object.registerClass('City5_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1406 City6_3 {
#initclip
Object.registerClass('City6_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1408 City7_3 {
#initclip
Object.registerClass('City7_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1410 City8_3 {
#initclip
Object.registerClass('City8_3', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1412 City9_3 {
#initclip
Object.registerClass('City9_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1414 City10_3 {
#initclip
Object.registerClass('City10_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1416 City11_3 {
#initclip
Object.registerClass('City11_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1418 City12_3 {
#initclip
Object.registerClass('City12_3', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1420 City13_3 {
#initclip
Object.registerClass('City13_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1422 City14_3 {
#initclip
Object.registerClass('City14_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1424 City15_3 {
#initclip
Object.registerClass('City15_3', pl.fabrykagier.blazer.map.City);
#endinitclip
}
movieClip 1426 City16_3 {
#initclip
Object.registerClass('City16_3', pl.fabrykagier.blazer.map.Village);
#endinitclip
}
movieClip 1427 Map3 {
}
movieClip 1428 {
}
movieClip 1430 {
}
movieClip 1433 MapTransitions {
#initclip
Object.registerClass('MapTransitions', pl.fabrykagier.blazer.map.MapTransitions);
#endinitclip
frame 10 {
stop();
this.endSwitch();
}
frame 29 {
this.stop();
this.swichLevel();
}
frame 39 {
stop();
this.endSwitch();
}
frame 58 {
this.stop();
this.swichLevel();
}
frame 68 {
stop();
this.endSwitch();
}
frame 87 {
this.stop();
this.swichLevel();
}
}
movieClip 1436 Popup_Button_Fight {
#initclip
Object.registerClass('Popup_Button_Fight', pl.fabrykagier.blazer.map.BtnFight);
#endinitclip
}
movieClip 1439 Popup_Button_Flee {
#initclip
Object.registerClass('Popup_Button_Flee', pl.fabrykagier.blazer.map.BtnFlee);
#endinitclip
}
movieClip 1441 {
}
movieClip 1443 {
}
movieClip 1446 {
}
movieClip 1449 {
}
movieClip 1451 {
}
movieClip 1453 {
}
movieClip 1455 {
}
movieClip 1488 spellWybor {
frame 1 {
stop();
}
frame 14 {
stop();
}
}
movieClip 1490 {
}
movieClip 1494 {
}
movieClip 1496 {
}
movieClip 1497 {
}
movieClip 1498 {
}
movieClip 1500 {
}
movieClip 1503 {
}
movieClip 1505 {
}
movieClip 1507 {
}
movieClip 1508 {
frame 1 {
this._parent.updateIkon(this);
}
frame 9 {
stop();
}
}
movieClip 1509 spellSelectFight {
#initclip
Object.registerClass('spellSelectFight', pl.fabrykagier.blazer.battle.SpellSelectBtnFight);
#endinitclip
}
movieClip 1510 spellSelectMenu {
#initclip
Object.registerClass('spellSelectMenu', pl.fabrykagier.blazer.battle.SpellsSelectMenu);
#endinitclip
frame 36 {
stop();
this.enableAll();
}
}
movieClip 1511 {
}
movieClip 1512 {
}
movieClip 1515 {
}
movieClip 1518 {
}
movieClip 1520 {
}
movieClip 1522 {
}
movieClip 1523 {
}
movieClip 1525 {
}
movieClip 1527 {
}
movieClip 1528 {
}
movieClip 1531 {
}
movieClip 1533 {
}
movieClip 1535 {
}
movieClip 1537 {
}
movieClip 1539 {
}
movieClip 1541 {
}
movieClip 1543 {
}
movieClip 1545 {
}
movieClip 1547 {
}
movieClip 1549 {
}
// unknown tag 88 length 64
movieClip 1554 {
}
movieClip 1555 {
frame 40 {
stop();
}
}
movieClip 1558 {
}
movieClip 1559 {
frame 40 {
stop();
}
}
movieClip 1564 {
}
movieClip 1565 {
frame 40 {
stop();
}
}
movieClip 1569 {
}
movieClip 1570 {
frame 40 {
stop();
}
}
movieClip 1574 {
}
movieClip 1575 {
frame 40 {
stop();
}
}
movieClip 1576 {
}
movieClip 1579 enterquest {
#initclip
Object.registerClass('enterquest', pl.fabrykagier.blazer.map.Enterqest);
#endinitclip
frame 19 {
stop();
this.decisionBox_mc.btnYes.enabled = true;
}
frame 39 {
this.backToTheMap();
this.removeMovieClip();
}
}
movieClip 1582 {
}
movieClip 1585 {
}
movieClip 1588 {
}
movieClip 1591 {
}
movieClip 1593 {
}
movieClip 1596 {
}
movieClip 1599 {
}
movieClip 1601 {
}
movieClip 1603 {
}
movieClip 1604 {
frame 91 {
stop();
}
frame 461 {
stop();
}
}
movieClip 1607 enterschool {
#initclip
Object.registerClass('enterschool', pl.fabrykagier.blazer.map.Enterschool);
#endinitclip
frame 19 {
stop();
this.decisionBox_mc.btnYes.enabled = true;
}
frame 39 {
this.backToTheMap();
this.removeMovieClip();
}
}
movieClip 1609 {
}
movieClip 1611 {
}
movieClip 1613 {
}
movieClip 1615 {
}
movieClip 1617 {
}
movieClip 1619 {
}
movieClip 1621 {
}
movieClip 1623 {
}
movieClip 1625 {
}
movieClip 1627 {
}
movieClip 1629 {
}
movieClip 1631 {
}
movieClip 1633 {
}
movieClip 1635 {
}
movieClip 1637 {
}
movieClip 1639 {
}
movieClip 1641 {
}
movieClip 1643 {
}
movieClip 1645 {
}
movieClip 1647 {
}
movieClip 1649 {
}
movieClip 1651 {
}
movieClip 1653 {
}
movieClip 1655 {
}
movieClip 1657 {
}
movieClip 1659 {
}
movieClip 1661 {
}
movieClip 1663 {
}
movieClip 1665 {
}
movieClip 1667 {
}
movieClip 1669 {
}
movieClip 1671 {
}
movieClip 1673 {
}
movieClip 1675 {
}
movieClip 1677 {
}
movieClip 1679 {
}
movieClip 1680 {
}
movieClip 1682 {
}
movieClip 1684 {
}
movieClip 1686 {
}
movieClip 1687 {
}
movieClip 1689 {
}
movieClip 1691 {
}
movieClip 1693 {
}
movieClip 1695 {
}
movieClip 1697 {
}
movieClip 1699 {
}
movieClip 1701 {
}
movieClip 1703 {
}
movieClip 1705 {
}
movieClip 1707 {
}
movieClip 1709 {
}
movieClip 1711 {
}
movieClip 1713 {
}
movieClip 1715 {
}
movieClip 1718 {
}
movieClip 1719 {
}
movieClip 1721 {
}
movieClip 1723 {
}
movieClip 1725 {
}
movieClip 1728 {
}
movieClip 1729 {
}
movieClip 1731 {
}
movieClip 1734 {
}
movieClip 1736 {
}
movieClip 1738 {
}
movieClip 1741 {
}
movieClip 1743 {
}
movieClip 1745 {
}
movieClip 1746 {
}
movieClip 1748 {
}
movieClip 1751 {
}
movieClip 1753 {
}
movieClip 1755 {
}
movieClip 1756 {
}
movieClip 1759 {
}
movieClip 1760 {
}
movieClip 1761 {
}
movieClip 1763 {
}
movieClip 1765 {
}
movieClip 1767 {
}
movieClip 1768 {
}
movieClip 1770 {
}
movieClip 1772 {
}
movieClip 1774 {
}
movieClip 1776 {
}
movieClip 1778 {
}
movieClip 1780 {
}
movieClip 1781 {
}
movieClip 1783 {
}
movieClip 1786 {
}
movieClip 1788 {
}
movieClip 1789 {
}
movieClip 1791 {
}
movieClip 1793 {
}
movieClip 1795 {
}
movieClip 1797 {
}
movieClip 1798 {
}
movieClip 1800 {
}
movieClip 1802 {
}
movieClip 1803 {
}
movieClip 1805 {
}
movieClip 1806 {
}
movieClip 1810 {
}
movieClip 1812 {
}
movieClip 1814 {
}
movieClip 1818 {
}
movieClip 1820 {
}
movieClip 1822 {
}
movieClip 1829 {
}
movieClip 1833 {
}
movieClip 1840 {
}
movieClip 1844 {
}
movieClip 1847 {
}
movieClip 1852 {
}
movieClip 1853 {
}
movieClip 1858 {
}
movieClip 1861 {
}
movieClip 1862 {
}
movieClip 1863 {
}
movieClip 1866 entervillage {
#initclip
Object.registerClass('entervillage', pl.fabrykagier.blazer.map.VillageMC);
#endinitclip
frame 19 {
this.decisionBox_mc.btnYes.enabled = true;
this.decisionBox_mc.btnNo.enabled = true;
this.decisionBox_mc.btnGo.enabled = true;
this.decisionBox_mc.btnHalfRest.enabled = true;
stop();
}
frame 39 {
this.stopAllSounds(this);
}
}
movieClip 1868 {
}
movieClip 1870 {
}
movieClip 1877 {
}
movieClip 1882 {
}
movieClip 1886 {
}
movieClip 1889 {
}
movieClip 1892 {
}
movieClip 1895 {
}
movieClip 1902 {
}
movieClip 1907 {
}
movieClip 1911 {
}
movieClip 1916 {
}
movieClip 1919 {
}
movieClip 1923 {
}
movieClip 1930 {
}
movieClip 1934 {
}
movieClip 1939 {
}
movieClip 1944 {
}
movieClip 1948 {
}
movieClip 1953 {
}
movieClip 1968 {
}
movieClip 1975 {
}
movieClip 2005 {
}
movieClip 2006 {
}
movieClip 2007 {
}
movieClip 2009 decisionBox {
#initclip
Object.registerClass('decisionBox', pl.fabrykagier.blazer.battle.SpellsMenu);
#endinitclip
frame 20 {
this.decisionBox_mc.btnFight_mc.enabled = true;
this.decisionBox_mc.btnFlee_mc.enabled = true;
stop();
}
frame 71 {
stop();
}
frame 162 {
this.startBattle();
}
frame 163 {
stop();
}
}
movieClip 2012 lastSpell {
#initclip
Object.registerClass('lastSpell', pl.fabrykagier.blazer.map.Enterqest);
#endinitclip
frame 19 {
stop();
this.decisionBox_mc.btnYes.enabled = true;
}
frame 39 {
this.backToTheMap();
this.removeMovieClip();
}
}
movieClip 2015 {
}
movieClip 2017 {
}
movieClip 2019 {
}
movieClip 2022 {
}
movieClip 2024 {
}
movieClip 2026 {
}
movieClip 2028 {
}
movieClip 2030 {
}
movieClip 2032 {
}
movieClip 2035 {
}
movieClip 2038 {
}
movieClip 2040 {
}
movieClip 2042 {
}
movieClip 2043 {
}
movieClip 2046 TrainerDialogue {
frame 740 {
this._parent.atSchool();
this.removeMovieClip();
}
}
movieClip 2053 {
}
movieClip 2054 {
frame 1 {
stop();
}
}
frame 13 {
stop();
this.btnCredits.enabled = true;
this.btnStartGame.gotoAndStop(1);
this.btnStartGame.onRelease = function () {
this._parent.play();
};
this.btnStartGame.onRollOver = function () {
this.gotoAndStop(2);
};
this.btnStartGame.onRollOut = function () {
this.gotoAndStop(1);
};
this.btnStartGame.onReleaseOutside = function () {
this.onRollOut();
};
}
movieClip 2057 {
frame 1 {
stop();
}
}
movieClip 2061 {
}
movieClip 2063 {
}
movieClip 2065 {
}
movieClip 2067 {
}
movieClip 2069 {
}
movieClip 2071 {
}
movieClip 2073 {
}
movieClip 2076 {
}
movieClip 2079 {
}
movieClip 2081 {
}
movieClip 2083 {
}
movieClip 2085 {
}
movieClip 2087 {
}
movieClip 2090 {
}
movieClip 2092 {
}
movieClip 2094 {
}
movieClip 2097 {
}
movieClip 2100 {
}
movieClip 2102 {
}
movieClip 2103 {
}
movieClip 2106 {
}
movieClip 2108 {
}
movieClip 2110 {
}
movieClip 2112 {
}
movieClip 2114 {
}
movieClip 2116 {
}
movieClip 2117 {
}
movieClip 2120 {
}
movieClip 2122 {
}
movieClip 2124 {
}
movieClip 2128 {
}
movieClip 2129 {
}
movieClip 2130 {
}
movieClip 2132 {
}
movieClip 2134 {
}
movieClip 2136 {
}
movieClip 2138 {
}
movieClip 2140 {
}
movieClip 2142 {
}
movieClip 2143 {
}
movieClip 2145 {
}
movieClip 2146 {
}
movieClip 2147 {
}
movieClip 2149 {
}
movieClip 2151 {
}
movieClip 2153 {
}
movieClip 2155 {
}
movieClip 2156 {
}
movieClip 2158 {
}
movieClip 2161 {
}
movieClip 2164 {
}
movieClip 2166 {
}
movieClip 2168 {
}
movieClip 2175 {
}
movieClip 2178 {
}
movieClip 2180 {
}
movieClip 2182 {
}
movieClip 2185 {
}
movieClip 2187 {
}
movieClip 2190 {
}
movieClip 2193 {
}
movieClip 2196 {
}
movieClip 2198 {
}
movieClip 2201 {
}
movieClip 2203 {
}
movieClip 2206 {
}
movieClip 2208 {
}
movieClip 2210 {
}
movieClip 2212 {
}
movieClip 2214 {
}
movieClip 2216 {
}
movieClip 2218 {
}
movieClip 2220 {
}
movieClip 2222 {
}
movieClip 2224 {
}
movieClip 2225 {
frame 1 {
this.btnSkip_mc.onRelease = function () {
this._parent._parent.play();
};
}
frame 2759 {
this._parent.play();
}
frame 2760 {
this.stop();
}
}
frame 35 {
stop();
}
frame 50 {
stop();
var _qLoadGame = true;
var sg = SharedObject.getLocal('spellblazerSave');
if (sg.data.isSave != undefined) {
this.attachMovie('LoadQuestion', 'LoadQuestion', 15, {'_x': 320, '_y': 240});
} else {
_qLoadGame = false;
this.play();
}
}
frame 63 {
var _game = pl.fabrykagier.blazer.GameManager.getInstance();
_game.init(_root._qLoadGame);
}
frame 85 {
stop();
}
movieClip 2231 {
}
movieClip 2234 {
}
movieClip 2236 {
}
movieClip 2238 {
}
movieClip 2240 {
}
movieClip 2242 {
}
movieClip 2244 {
}
movieClip 2246 {
}
movieClip 2248 {
}
movieClip 2250 {
}
movieClip 2253 {
}
movieClip 2255 {
}
movieClip 2258 {
}
movieClip 2261 {
}
movieClip 2263 {
}
movieClip 2264 {
}
movieClip 2268 {
}
movieClip 2270 {
}
movieClip 2273 {
}
movieClip 2275 {
}
movieClip 2278 {
}
movieClip 2279 {
frame 550 {
stop();
this._parent.play();
}
}
frame 100 {
stop();
}
movieClip 2283 Button_PlayAgain {
#initclip
Object.registerClass('Button_PlayAgain', pl.fabrykagier.blazer.map.BtnPlayAgain);
#endinitclip
}
frame 148 {
stop();
this.btnPlayAgain.enabled = true;
this.btnCredits.enabled = true;
}