Frame 1
function urls_check() {
var _local1 = 0;
while (_local1 < urls.length) {
if (_url.indexOf(urls[_local1]) > -1) {
lock = false;
goblinarena_webpage = true;
return(true);
}
_local1++;
}
return(false);
}
function update_equiped_attributes() {
_global.equip_strength = 0;
_global.equip_agility = 0;
_global.equip_intelligence = 0;
_global.equip_attack = 0;
_global.equip_armor = 0;
_global.equip_health = 0;
_global.equip_strength = _global.equip_strength + head_slot_array[current_head_slot].strength;
_global.equip_agility = _global.equip_agility + head_slot_array[current_head_slot].agility;
_global.equip_intelligence = _global.equip_intelligence + head_slot_array[current_head_slot].intelligence;
_global.equip_attack = _global.equip_attack + head_slot_array[current_head_slot].attack;
_global.equip_armor = _global.equip_armor + head_slot_array[current_head_slot].armor;
_global.equip_health = _global.equip_health + head_slot_array[current_head_slot].health;
_global.equip_strength = _global.equip_strength + chest_slot_array[current_chest_slot].strength;
_global.equip_agility = _global.equip_agility + chest_slot_array[current_chest_slot].agility;
_global.equip_intelligence = _global.equip_intelligence + chest_slot_array[current_chest_slot].intelligence;
_global.equip_attack = _global.equip_attack + chest_slot_array[current_chest_slot].attack;
_global.equip_armor = _global.equip_armor + chest_slot_array[current_chest_slot].armor;
_global.equip_health = _global.equip_health + chest_slot_array[current_chest_slot].health;
_global.equip_strength = _global.equip_strength + hand_slot_array[current_hand_slot].strength;
_global.equip_agility = _global.equip_agility + hand_slot_array[current_hand_slot].agility;
_global.equip_intelligence = _global.equip_intelligence + hand_slot_array[current_hand_slot].intelligence;
_global.equip_attack = _global.equip_attack + hand_slot_array[current_hand_slot].attack;
_global.equip_armor = _global.equip_armor + hand_slot_array[current_hand_slot].armor;
_global.equip_health = _global.equip_health + hand_slot_array[current_hand_slot].health;
_global.equip_strength = _global.equip_strength + feet_slot_array[current_feet_slot].strength;
_global.equip_agility = _global.equip_agility + feet_slot_array[current_feet_slot].agility;
_global.equip_intelligence = _global.equip_intelligence + feet_slot_array[current_feet_slot].intelligence;
_global.equip_attack = _global.equip_attack + feet_slot_array[current_feet_slot].attack;
_global.equip_armor = _global.equip_armor + feet_slot_array[current_feet_slot].armor;
_global.equip_health = _global.equip_health + feet_slot_array[current_feet_slot].health;
_global.equip_strength = _global.equip_strength + finger_slot_array[current_finger_slot].strength;
_global.equip_agility = _global.equip_agility + finger_slot_array[current_finger_slot].agility;
_global.equip_intelligence = _global.equip_intelligence + finger_slot_array[current_finger_slot].intelligence;
_global.equip_attack = _global.equip_attack + finger_slot_array[current_finger_slot].attack;
_global.equip_armor = _global.equip_armor + finger_slot_array[current_finger_slot].armor;
_global.equip_health = _global.equip_health + finger_slot_array[current_finger_slot].health;
_global.equip_strength = _global.equip_strength + finger_slot_array[current_finger2_slot].strength;
_global.equip_agility = _global.equip_agility + finger_slot_array[current_finger2_slot].agility;
_global.equip_intelligence = _global.equip_intelligence + finger_slot_array[current_finger2_slot].intelligence;
_global.equip_attack = _global.equip_attack + finger_slot_array[current_finger2_slot].attack;
_global.equip_armor = _global.equip_armor + finger_slot_array[current_finger2_slot].armor;
_global.equip_health = _global.equip_health + finger_slot_array[current_finger2_slot].health;
_global.equip_strength = _global.equip_strength + leg_slot_array[current_leg_slot].strength;
_global.equip_agility = _global.equip_agility + leg_slot_array[current_leg_slot].agility;
_global.equip_intelligence = _global.equip_intelligence + leg_slot_array[current_leg_slot].intelligence;
_global.equip_attack = _global.equip_attack + leg_slot_array[current_leg_slot].attack;
_global.equip_armor = _global.equip_armor + leg_slot_array[current_leg_slot].armor;
_global.equip_health = _global.equip_health + leg_slot_array[current_leg_slot].health;
_global.equip_strength = _global.equip_strength + weapon_slot_array[current_weapon_slot].strength;
_global.equip_agility = _global.equip_agility + weapon_slot_array[current_weapon_slot].agility;
_global.equip_intelligence = _global.equip_intelligence + weapon_slot_array[current_weapon_slot].intelligence;
_global.equip_attack = _global.equip_attack + weapon_slot_array[current_weapon_slot].attack;
_global.equip_armor = _global.equip_armor + weapon_slot_array[current_weapon_slot].armor;
_global.equip_health = _global.equip_health + weapon_slot_array[current_weapon_slot].health;
}
function playSound(id, vol, loop) {
_root.createEmptyMovieClip("sss" + soundNum, 10500 + soundNum);
var _local3 = new Sound(this["sss" + soundNum]);
_local3.attachSound(id);
_local3.setVolume(vol);
_local3.start(0, loop);
((soundNum >= 30) ? ((soundNum = 3)) : (soundNum++));
}
stop();
var goblinarena_webpage = false;
var lock = false;
var urls = new Array();
urls.push("armorgames.com");
urls.push("games.armorgames.com");
urls.push("preview.armorgames.com");
urls.push("cache.armorgames.com");
urls.push("cdn.armorgames.com");
urls.push("gamemedia.armorgames.com");
urls_check();
if (goblinarena_webpage) {
adBox._y = 2000;
} else {
var CPMStarContentSpotID = "9456QF69EF2E4";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
}
var additionalcount = 0;
var loadingstat = 0;
var totalloading = (getBytesTotal() + 20);
trace("totalloading = " + totalloading);
var intro_complete = false;
LoadGame = function () {
additionalcount = additionalcount + 5;
trace("additionalcount = " + additionalcount);
loadingstat = getBytesLoaded() + additionalcount;
loading.experiencecount = ((int(loadingstat / 1000000) + "MB/") + int(totalloading / 1000000)) + "MB";
loading.exp100._xscale = int((100 * loadingstat) / totalloading);
if (loadingstat >= totalloading) {
_root.attachMovie("GoblinArenaSplash", "GoblinArenaSplash", 101);
GoblinArenaSplash._x = 400;
GoblinArenaSplash._y = 300;
_root.clearInterval(_root.loadInterval);
clearInterval(_root.loadInterval);
}
};
var loadInterval = setInterval(LoadGame, 15, "");
var scaleper = 100;
var clevel = 1;
_global.GOLD = 100;
var gold = _global.GOLD;
var abilitypoints = 0;
var purchase_slot_type = "";
var purchase_slot_number = 0;
var purchase_slot_price = 0;
var purchase_slot_ring = "";
var levels_complete = [];
var i = 1;
while (i < 20) {
levels_complete[i] = false;
i++;
}
var highestlevel = 0;
var cityselected = 0;
var partselected = 0;
var difficulty = 1;
var current_slot = 1;
var slots1 = [];
var slots2 = [];
var slots3 = [];
slots1[0] = 0;
slots1[1] = 0;
slots1[2] = 0;
slots1[3] = 0;
slots2[0] = 0;
slots2[1] = 0;
slots2[2] = 0;
slots2[3] = 0;
slots3[0] = 0;
slots3[1] = 0;
slots3[2] = 0;
slots3[3] = 0;
var head_slot_array = [];
var chest_slot_array = [];
var hand_slot_array = [];
var feet_slot_array = [];
var finger_slot_array = [];
var leg_slot_array = [];
var weapon_slot_array = [];
head_slot_array[0] = {cost:0, armor:0, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"None"};
chest_slot_array[0] = {cost:0, armor:0, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"None"};
hand_slot_array[0] = {cost:0, armor:0, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"None"};
feet_slot_array[0] = {cost:0, armor:0, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"None"};
finger_slot_array[0] = {cost:0, armor:0, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"None"};
leg_slot_array[0] = {cost:0, armor:0, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"None"};
weapon_slot_array[0] = {cost:0, armor:0, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Worn Bow"};
head_slot_array[1] = {cost:75, armor:2, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Cloth Hood"};
head_slot_array[2] = {cost:395, armor:11, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Leather Hood"};
head_slot_array[3] = {cost:2950, armor:27, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Chain Hood"};
head_slot_array[4] = {cost:10000, armor:64, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Plated Helmut"};
chest_slot_array[1] = {cost:200, armor:6, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Cloth Armor"};
chest_slot_array[2] = {cost:1900, armor:20, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Leather Armor"};
chest_slot_array[3] = {cost:8800, armor:48, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Chain Armor"};
chest_slot_array[4] = {cost:45000, armor:255, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Plated Armor"};
chest_slot_array[5] = {cost:90000, armor:350, health:100, attack:0, strength:20, agility:5, intelligence:5, description:"Mighty Armor"};
chest_slot_array[6] = {cost:180000, armor:500, health:250, attack:10, strength:20, agility:20, intelligence:20, description:"Dragon Skin Armor"};
hand_slot_array[1] = {cost:34, armor:1, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Cloth Bracers"};
hand_slot_array[2] = {cost:266, armor:8, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Leather Gauntlets"};
hand_slot_array[3] = {cost:1650, armor:19, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Chain Gauntlets"};
hand_slot_array[4] = {cost:5800, armor:45, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Plated Gauntlets"};
feet_slot_array[1] = {cost:68, armor:2, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Cloth Shoes"};
feet_slot_array[2] = {cost:409, armor:10, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Leather Boots"};
feet_slot_array[3] = {cost:3050, armor:34, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Chain Boots"};
feet_slot_array[4] = {cost:12500, armor:80, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Plated Boots"};
feet_slot_array[5] = {cost:25000, armor:120, health:0, attack:10, strength:10, agility:10, intelligence:10, description:"Godly Boots"};
feet_slot_array[6] = {cost:50000, armor:180, health:200, attack:20, strength:20, agility:20, intelligence:20, description:"Boots of Rainbow Magic"};
finger_slot_array[1] = {cost:25000, armor:0, health:0, attack:0, strength:10, agility:10, intelligence:10, description:"Ring of Stars"};
finger_slot_array[2] = {cost:50000, armor:0, health:5000, attack:0, strength:5, agility:5, intelligence:5, description:"Ring of Life"};
finger_slot_array[3] = {cost:100000, armor:25, health:2500, attack:25, strength:25, agility:25, intelligence:25, description:"Ring of Power"};
finger_slot_array[4] = {cost:250000, armor:100, health:5000, attack:50, strength:50, agility:50, intelligence:50, description:"Ring of Gods"};
leg_slot_array[1] = {cost:38, armor:1, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Cloth Pants"};
leg_slot_array[2] = {cost:638, armor:12, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Leather Leggings"};
leg_slot_array[3] = {cost:4589, armor:40, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Chain Leggings"};
leg_slot_array[4] = {cost:9845, armor:62, health:0, attack:0, strength:0, agility:0, intelligence:0, description:"Armor Plated Leggings"};
weapon_slot_array[1] = {cost:250, armor:0, health:0, attack:7, strength:0, agility:0, intelligence:0, description:"Short Bow"};
weapon_slot_array[2] = {cost:950, armor:0, health:0, attack:15, strength:0, agility:0, intelligence:0, description:"Sturdy Bow"};
weapon_slot_array[3] = {cost:5350, armor:0, health:0, attack:30, strength:0, agility:0, intelligence:0, description:"Steel Bow"};
weapon_slot_array[4] = {cost:15000, armor:0, health:30, attack:70, strength:0, agility:3, intelligence:0, description:"Windfall Long Bow"};
weapon_slot_array[5] = {cost:30000, armor:2, health:70, attack:115, strength:0, agility:5, intelligence:0, description:"Nature's Power Bow"};
weapon_slot_array[6] = {cost:60000, armor:5, health:120, attack:200, strength:0, agility:8, intelligence:0, description:"Grandmaster Bow"};
weapon_slot_array[7] = {cost:100000, armor:10, health:250, attack:300, strength:10, agility:10, intelligence:10, description:"Bow of the Gods"};
var gameend_notice = 0;
var current_head_slot = 0;
var current_chest_slot = 0;
var current_leg_slot = 0;
var current_hand_slot = 0;
var current_weapon_slot = 0;
var current_finger_slot = 0;
var current_finger2_slot = 0;
var current_feet_slot = 0;
_global.equip_strength = 0;
_global.equip_intelligence = 0;
_global.equip_agility = 0;
_global.equip_armor = 0;
_global.equip_attack = 0;
_global.equip_health = 0;
_global.equip_split2 = 0;
_global.equip_split3 = 0;
_global.equip_fireball = 0;
_global.equip_poison = 0;
_global.equip_knockback = 0;
_global.equip_vampire = 0;
_global.equip_stun = 0;
_global.equip_sleep = 0;
_global.equip_lightning = 0;
_global.equip_frost = 0;
_global.equip_speed = 0;
_global.equip_recover = 0;
_global.equip_fastattack = 0;
var selectedequipmentrank = 1;
var heroagil = 5;
var herostr = 5;
var heroint = 5;
var herodmg = ((5 + ((herostr + _global.equip_strength) * 2)) + _global.equip_attack);
var herodef = ((0 + int((heroagil + _global.equip_agility) * 5)) + _global.equip_armor);
var herolvl = 1;
var herolife = (((100 + (herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health);
var heromana = ((50 + (heroint * 25)) + (_global.equip_intelligence * 25));
var heroattackrate = (20 - int((heroagil + _global.equip_agility) / 5));
var manarate = 50;
var manacount = 0;
var heroMP = heromana;
var heroexp = 0;
var poisonarrow_qty = 50;
var firearrow_qty = 50;
var icearrow_qty = 50;
var currentarrow = "arrow";
trace(poisonarrow_qty);
var firstunit = [];
firstunit[0] = {goblin:0, goblinarcher:0, goblinguard:0, goblinelitearcher:0, goblinassassin:0, goblinmage:0, wolfrider:0, spidergoblin:0, footman:0, rogue:2, troll:0, skelarcher:0, skelaxe:0, skelmage:0, skelsword:0, orgak:0, lionman:0, lion:0, goblintower:0, goblintower2:0, goblinarmored:0, goblintent:0, battleogre:0, drake:0};
_global.bonuskey = Math.round(Math.random() * 10000000);
_global.bonuscode = ((("SO" + Math.round((_global.bonuskey / 5) + 78)) + "S") + Math.round(_global.bonuskey * 1.75)) + "T";
_global.soundVolume = 50;
_global.musicVolume = 25;
var ingame_sound = _global.soundVolume;
var ingame_music = _global.musicVolume;
var splitarrow_activecount = 0;
var splitarrow_researched = 0;
var splitarrow_recharge = 0;
var splitarrow_totalrecharge = 1500;
var splitarrow_activemax = 500;
var volley_activecount = 0;
var volley_researched = 0;
var volley_recharge = 0;
var volley_totalrecharge = 2000;
var volley_activemax = 500;
var summon_researched = 0;
var summon_recharge = 0;
var summon_totalrecharge = 2000;
var wind_activecount = 0;
var wind_researched = 0;
var wind_recharge = 0;
var wind_totalrecharge = 2000;
var wind_activemax = 500;
var dash_activecount = 0;
var dash_researched = 0;
var dash_recharge = 0;
var dash_totalrecharge = 2000;
var dash_activemax = 500;
var critical_level = 0;
var arrow_splash_activecount = 0;
var arrow_splash_researched = 0;
var arrow_splash_recharge = 0;
var arrow_splash_totalrecharge = 2000;
var arrow_splash_activemax = 500;
var black_arrow_activecount = 0;
var black_arrow_researched = 0;
var black_arrow_recharge = 0;
var black_arrow_totalrecharge = 2000;
var black_arrow_activemax = 250;
var nova_activecount = 0;
var nova_researched = 0;
var nova_recharge = 0;
var nova_totalrecharge = 2000;
var nova_activemax = 5;
var nova_special = false;
var black_arrow_special = false;
_global.streng = 5;
_global.intell = 5;
_global.agilit = 5;
_global.armor = 0;
_global.attack = 10;
_global.health = 100;
_global.lvl = 1;
_global.experience = 0;
var soundNum = 1;
var localInfo = SharedObject.getLocal("rangerdefense");
if (localInfo.data.bonusunlock == undefined) {
_global.bonusunlocked = false;
} else {
_global.bonusunlocked = true;
nova_special = true;
black_arrow_special = true;
}
if (localInfo.data.slot1 == undefined) {
} else {
slots1[0] = localInfo.data.slot1;
slots1[1] = localInfo.data.slot1_clevel;
slots1[2] = localInfo.data.slot1_level;
slots1[3] = localInfo.data.slot1_difficulty;
}
if (localInfo.data.slot2 == undefined) {
} else {
slots2[0] = localInfo.data.slot2;
slots2[1] = localInfo.data.slot2_clevel;
slots2[2] = localInfo.data.slot2_level;
slots2[3] = localInfo.data.slot2_difficulty;
}
if (localInfo.data.slot3 == undefined) {
} else {
slots3[0] = localInfo.data.slot3;
slots3[1] = localInfo.data.slot3_clevel;
slots3[2] = localInfo.data.slot3_level;
slots3[3] = localInfo.data.slot3_difficulty;
}
stop();
Instance of Symbol 484 MovieClip in Frame 1
on (release) {
getURL ("http://www.goblinarena.com", blank);
}
Instance of Symbol 487 MovieClip [facebooklink] "facebook_link" in Frame 1
on (press) {
getURL ("http://www.facebook.com/ArmorGames", blank);
}
Instance of Symbol 490 MovieClip [goblin_arena_games_logo] in Frame 1
on (press) {
getURL ("http://www.goblinarena.com", blank);
}
Instance of Symbol 487 MovieClip [facebooklink] "facebook_link" in Frame 1
on (press) {
getURL ("http://www.facebook.com/GoblinArenaGames", blank);
}
Instance of Symbol 498 MovieClip [ArmorGames_logo] "armorgames_logo" in Frame 1
on (press) {
getURL ("http://armor.ag/MoreGames", blank);
}
Frame 2
function nextlevel() {
_root.clevel = ((cityselected * 3) - 3) + partselected;
if (_root.clevel > 18) {
_root.clevel = 18;
}
_root.created = 1;
_root.createcount = 0;
_root.createarray = 0;
_root.refreshlevel();
_root.experiencebar._y = 560;
_root.topshade._y = -15;
_root.bottomshade._y = 550;
_root.createunits();
_root.gold = _global.GOLD;
if (_root.currentarrow == "greenarrow") {
_root.experiencebar.weapon_choice.ammo_txt = _root.poisonarrow_qty;
} else if (_root.currentarrow == "firearrow") {
_root.experiencebar.weapon_choice.ammo_txt = _root.firearrow_qty;
} else if (_root.currentarrow == "icearrow") {
_root.experiencebar.weapon_choice.ammo_txt = _root.icearrow_qty;
}
if (_root.splitarrow_researched > 0) {
_root.splitarrow_recharge = 5;
}
if (_root.volley_researched > 0) {
_root.volley_recharge = 5;
}
if (_root.summon_researched > 0) {
_root.summon_recharge = 5;
}
if (_root.wind_researched > 0) {
_root.wind_recharge = 5;
}
if (_root.dash_researched > 0) {
_root.dash_recharge = 5;
}
if (_root.arrow_splash_researched > 0) {
_root.arrow_splash_recharge = 5;
}
if (_root.black_arrow_researched > 0) {
_root.black_arrow_recharge = 5;
}
if (_root.nova_researched > 0) {
_root.nova_recharge = 5;
}
_root.splitarrow_activecount = 0;
_root.volley_activecount = 0;
_root.summon_activecount = 0;
_root.wind_activecount = 0;
_root.dash_activecount = 0;
_root.arrow_splash_activecount = 0;
_root.black_arrow_activecount = 0;
_root.nova_activecount = 0;
_root.char[0].xtile = _root.herox;
_root.char[0].ytile = _root.heroy;
_root.char[0].targetx = _root.char[0].xtile;
_root.char[0].targety = _root.char[0].ytile;
_root.char[0].moving = false;
_root.char[0].pathcount = 0;
_root.char[0].diry = 0;
_root.char[0].die = 0;
_root.char[0].dirx = 0;
_root.char[0].path.length = 0;
_root.char[0].path = null;
_root.char[0].moving = false;
_root.char[0].x = (_root.herox * _root.game.tileW) + (_root.game.tileW / 2);
_root.char[0].y = (_root.heroy * _root.game.tileH) + (_root.game.tileH / 2);
_root.buildMap(_root["myMap" + _root.clevel]);
_root.gamemode = 1;
_root.defeatcount = 0;
_root.victorycount = 0;
_root.savegame(_root.current_slot);
_root.shop.removeMovieClip();
}
splash.stop();
hero_bottom.stop();
n1.stop();
n2.stop();
n3.stop();
intro_test.gotoAndStop(4);
stopAllSounds();
playSound("music1", ingame_music, 99);
startbutton._x = 1400;
intervalID.clearInterval();
clearInterval(intervalID);
intervalID = null;
clearingtimer();
myMap1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 6, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 13, 0, 17, 18, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0], [0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 19, 18, 0, 1, 17, 18, 0, 0, 0, 0, 14, 0, 0], [0, 0, 0, 0, 0, 17, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 19, 18, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0], [0, 0, 0, 0, 0, 17, 0, 18, 0, 0, 0, 0, 0, 0, 18, 19], [0, 10, 0, 0, 0, 0, 0, 17, 17, 0, 0, 0, 9, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 17, 0, 0], [0, 0, 0, 0, 0, 0, 0, 19, 19, 0, 0, 0, 0, 18, 0, 0]];
myMap1 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 45, 0, 0, 0, 0, 10], [0, 0, 0, 0, 9, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 44, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [14, 0, 0, 11, 0, 0, 0, 0], [21, 0, 21, 21, 21, 21, 0, 21], [21, 20, 21, 21, 21, 21, 0, 21], [21, 0, 21, 21, 21, 21, 0, 21], [0, 0, 0, 0, 0, 0, 0, 0], [0, 43, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 10, 0, 0], [0, 0, 0, 11, 0, 0, 0, 0], [0, 38, 0, 0, 0, 0, 42, 0], [0, 0, 0, 0, 0, 41, 0, 0], [0, 0, 12, 0, 0, 0, 11, 0], [0, 0, 0, 0, 9, 0, 0, 0], [0, 39, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 38, 0], [0, 38, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 40]];
myMap2 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 45, 0, 0, 0, 0, 10], [0, 0, 0, 0, 9, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 44, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [14, 0, 0, 11, 0, 0, 0, 0], [21, 0, 21, 21, 21, 21, 0, 21], [21, 20, 21, 21, 21, 21, 0, 21], [21, 0, 21, 21, 21, 21, 0, 21], [0, 0, 0, 0, 0, 0, 0, 0], [0, 43, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 10, 0, 0], [0, 0, 0, 11, 0, 0, 0, 0], [0, 38, 0, 0, 0, 0, 42, 0], [0, 0, 0, 0, 0, 41, 0, 0], [0, 0, 12, 0, 0, 0, 11, 0], [0, 0, 0, 0, 9, 0, 0, 0], [0, 39, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 38, 0], [0, 38, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 40]];
myMap3 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 45, 0, 0, 0, 0, 10], [0, 0, 0, 0, 9, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 44, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [14, 0, 0, 11, 0, 0, 0, 0], [21, 0, 21, 21, 21, 21, 0, 21], [21, 20, 21, 21, 21, 21, 0, 21], [21, 0, 21, 21, 21, 21, 0, 21], [0, 0, 0, 0, 0, 0, 0, 0], [0, 43, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 10, 0, 0], [0, 0, 0, 11, 0, 0, 0, 0], [0, 38, 0, 0, 0, 0, 42, 0], [0, 0, 0, 0, 0, 41, 0, 0], [0, 0, 12, 0, 0, 0, 11, 0], [0, 0, 0, 0, 9, 0, 0, 0], [0, 39, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 38, 0], [0, 38, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 40]];
myMap4 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 34, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 32, 0, 0, 0], [0, 0, 26, 0, 0, 0, 27, 0], [27, 0, 0, 0, 26, 0, 0, 0], [0, 0, 28, 0, 0, 0, 36, 0], [0, 0, 0, 31, 0, 0, 0, 0], [0, 35, 34, 0, 26, 27, 0, 0], [0, 0, 32, 0, 0, 0, 28, 0], [0, 0, 0, 0, 0, 0, 0, 0], [28, 26, 0, 26, 28, 27, 26, 27], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 30, 0, 0, 0], [28, 27, 26, 0, 29, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 26, 0, 0, 0, 0, 0], [0, 0, 27, 0, 0, 0, 0, 0], [0, 0, 26, 0, 28, 0, 0, 0], [0, 0, 27, 26, 27, 26, 0, 0], [0, 0, 27, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 33, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap5 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 34, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 32, 0, 0, 0], [0, 0, 26, 0, 0, 0, 27, 0], [27, 0, 0, 0, 26, 0, 0, 0], [0, 0, 28, 0, 0, 0, 36, 0], [0, 0, 0, 31, 0, 0, 0, 0], [0, 35, 34, 0, 26, 27, 0, 0], [0, 0, 32, 0, 0, 0, 28, 0], [0, 0, 0, 0, 0, 0, 0, 0], [28, 26, 0, 26, 28, 27, 26, 27], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 30, 0, 0, 0], [28, 27, 26, 0, 29, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 26, 0, 0, 0, 0, 0], [0, 0, 27, 0, 0, 0, 0, 0], [0, 0, 26, 0, 28, 0, 0, 0], [0, 0, 27, 26, 27, 26, 0, 0], [0, 0, 27, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 33, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap6 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 34, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 32, 0, 0, 0], [0, 0, 26, 0, 0, 0, 27, 0], [27, 0, 0, 0, 26, 0, 0, 0], [0, 0, 28, 0, 0, 0, 36, 0], [0, 0, 0, 31, 0, 0, 0, 0], [0, 35, 34, 0, 26, 27, 0, 0], [0, 0, 32, 0, 0, 0, 28, 0], [0, 0, 0, 0, 0, 0, 0, 0], [28, 26, 0, 26, 28, 27, 26, 27], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 30, 0, 0, 0], [28, 27, 26, 0, 29, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 26, 0, 0, 0, 0, 0], [0, 0, 27, 0, 0, 0, 0, 0], [0, 0, 26, 0, 28, 0, 0, 0], [0, 0, 27, 26, 27, 26, 0, 0], [0, 0, 27, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 33, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap7 = [[0, 7, 0, 0, 0, 6, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 6], [0, 6, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 6, 0, 7], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 5, 0, 0, 0, 7, 0], [6, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 5, 0, 0, 0], [0, 7, 0, 0, 0, 0, 5, 0], [0, 0, 0, 5, 0, 0, 0, 0], [6, 0, 0, 0, 0, 0, 0, 0], [0, 0, 7, 0, 0, 0, 7, 0], [0, 0, 0, 0, 0, 0, 0, 6], [0, 7, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 6, 0, 0, 0], [5, 0, 0, 0, 0, 0, 7, 5], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 7, 0, 0, 0, 5, 0], [0, 0, 0, 0, 0, 0, 7, 0], [0, 0, 5, 0, 7, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 6], [7, 0, 0, 0, 0, 0, 0, 0], [5, 0, 0, 0, 0, 0, 0, 0], [7, 0, 0, 0, 0, 0, 0, 5], [6, 0, 5, 0, 0, 6, 7, 5]];
myMap8 = [[0, 7, 0, 0, 0, 6, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 6], [0, 6, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 6, 0, 7], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 5, 0, 0, 0, 7, 0], [6, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 5, 0, 0, 0], [0, 7, 0, 0, 0, 0, 5, 0], [0, 0, 0, 5, 0, 0, 0, 0], [6, 0, 0, 0, 0, 0, 0, 0], [0, 0, 7, 0, 0, 0, 7, 0], [0, 0, 0, 0, 0, 0, 0, 6], [0, 7, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 6, 0, 0, 0], [5, 0, 0, 0, 0, 0, 7, 5], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 7, 0, 0, 0, 5, 0], [0, 0, 0, 0, 0, 0, 7, 0], [0, 0, 5, 0, 7, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 6], [7, 0, 0, 0, 0, 0, 0, 0], [5, 0, 0, 0, 0, 0, 0, 0], [7, 0, 0, 0, 0, 0, 0, 5], [6, 0, 5, 0, 0, 6, 7, 5]];
myMap9 = [[0, 7, 0, 0, 0, 6, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 6], [0, 6, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 6, 0, 7], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 5, 0, 0, 0, 7, 0], [6, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 5, 0, 0, 0], [0, 7, 0, 0, 0, 0, 5, 0], [0, 0, 0, 5, 0, 0, 0, 0], [6, 0, 0, 0, 0, 0, 0, 0], [0, 0, 7, 0, 0, 0, 7, 0], [0, 0, 0, 0, 0, 0, 0, 6], [0, 7, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 6, 0, 0, 0], [5, 0, 0, 0, 0, 0, 7, 5], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 7, 0, 0, 0, 5, 0], [0, 0, 0, 0, 0, 0, 7, 0], [0, 0, 5, 0, 7, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 6], [7, 0, 0, 0, 0, 0, 0, 0], [5, 0, 0, 0, 0, 0, 0, 0], [7, 0, 0, 0, 0, 0, 0, 5], [6, 0, 5, 0, 0, 6, 7, 5]];
myMap10 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 48, 0, 0, 48, 0], [49, 0, 0, 0, 0, 0, 0, 46], [0, 0, 0, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 48, 0, 47, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 46], [48, 0, 48, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [49, 0, 0, 0, 0, 0, 0, 0], [47, 0, 0, 0, 0, 0, 46, 49], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 0, 0, 0, 0, 0, 47], [0, 0, 47, 48, 0, 0, 0, 0], [0, 0, 46, 0, 0, 46, 0, 0], [49, 0, 0, 0, 48, 0, 0, 0], [47, 0, 48, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [0, 0, 0, 0, 47, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 46, 0, 0, 0, 0, 0], [0, 48, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 49], [47, 0, 0, 0, 0, 0, 0, 47]];
myMap11 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 48, 0, 0, 48, 0], [49, 0, 0, 0, 0, 0, 0, 46], [0, 0, 0, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 48, 0, 47, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 46], [48, 0, 48, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [49, 0, 0, 0, 0, 0, 0, 0], [47, 0, 0, 0, 0, 0, 46, 49], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 0, 0, 0, 0, 0, 47], [0, 0, 47, 48, 0, 0, 0, 0], [0, 0, 46, 0, 0, 46, 0, 0], [49, 0, 0, 0, 48, 0, 0, 0], [47, 0, 48, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [0, 0, 0, 0, 47, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 46, 0, 0, 0, 0, 0], [0, 48, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 49], [47, 0, 0, 0, 0, 0, 0, 47]];
myMap12 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 48, 0, 0, 48, 0], [49, 0, 0, 0, 0, 0, 0, 46], [0, 0, 0, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 48, 0, 47, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 46], [48, 0, 48, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [49, 0, 0, 0, 0, 0, 0, 0], [47, 0, 0, 0, 0, 0, 46, 49], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 0, 0, 0, 0, 0, 47], [0, 0, 47, 48, 0, 0, 0, 0], [0, 0, 46, 0, 0, 46, 0, 0], [49, 0, 0, 0, 48, 0, 0, 0], [47, 0, 48, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [0, 0, 0, 0, 47, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 46, 0, 0, 0, 0, 0], [0, 48, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 49], [47, 0, 0, 0, 0, 0, 0, 47]];
myMap13 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [17, 0, 0, 0, 0, 0, 0, 0], [18, 0, 0, 0, 0, 0, 0, 0], [0, 0, 18, 0, 18, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [18, 0, 0, 0, 18, 0, 19, 0], [18, 0, 0, 0, 18, 0, 17, 0], [17, 0, 0, 0, 18, 0, 18, 0], [19, 0, 0, 0, 17, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 19, 0, 18, 0, 18, 0], [0, 0, 0, 0, 18, 0, 0, 0], [0, 0, 19, 0, 18, 17, 0, 0], [0, 0, 0, 0, 0, 0, 19, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [18, 19, 18, 17, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 18, 18, 0, 19, 18, 18, 17], [0, 0, 17, 18, 18, 0, 0, 17], [18, 0, 18, 0, 0, 0, 0, 19], [0, 0, 19, 0, 0, 0, 0, 18], [0, 18, 17, 0, 0, 0, 0, 18], [0, 0, 0, 0, 0, 0, 0, 18]];
myMap14 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [17, 0, 0, 0, 0, 0, 0, 0], [18, 0, 0, 0, 0, 0, 0, 0], [0, 0, 18, 0, 18, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [18, 0, 0, 0, 18, 0, 19, 0], [18, 0, 0, 0, 18, 0, 17, 0], [17, 0, 0, 0, 18, 0, 18, 0], [19, 0, 0, 0, 17, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 19, 0, 18, 0, 18, 0], [0, 0, 0, 0, 18, 0, 0, 0], [0, 0, 19, 0, 18, 17, 0, 0], [0, 0, 0, 0, 0, 0, 19, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [18, 19, 18, 17, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 18, 18, 0, 19, 18, 18, 17], [0, 0, 17, 18, 18, 0, 0, 17], [18, 0, 18, 0, 0, 0, 0, 19], [0, 0, 19, 0, 0, 0, 0, 18], [0, 18, 17, 0, 0, 0, 0, 18], [0, 0, 0, 0, 0, 0, 0, 18]];
myMap15 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [17, 0, 0, 0, 0, 0, 0, 0], [18, 0, 0, 0, 0, 0, 0, 0], [0, 0, 18, 0, 18, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [18, 0, 0, 0, 18, 0, 19, 0], [18, 0, 0, 0, 18, 0, 17, 0], [17, 0, 0, 0, 18, 0, 18, 0], [19, 0, 0, 0, 17, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 19, 0, 18, 0, 18, 0], [0, 0, 0, 0, 18, 0, 0, 0], [0, 0, 19, 0, 18, 17, 0, 0], [0, 0, 0, 0, 0, 0, 19, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [18, 19, 18, 17, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 18, 18, 0, 19, 18, 18, 17], [0, 0, 17, 18, 18, 0, 0, 17], [18, 0, 18, 0, 0, 0, 0, 19], [0, 0, 19, 0, 0, 0, 0, 18], [0, 18, 17, 0, 0, 0, 0, 18], [0, 0, 0, 0, 0, 0, 0, 18]];
myMap16 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 48, 0, 0, 48, 0], [49, 0, 0, 0, 0, 0, 0, 46], [0, 0, 0, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 48, 0, 47, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 46], [48, 0, 48, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [49, 0, 0, 0, 0, 0, 0, 0], [47, 0, 0, 0, 0, 0, 46, 49], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 0, 0, 0, 0, 0, 47], [0, 0, 47, 48, 0, 0, 0, 0], [0, 0, 46, 0, 0, 46, 0, 0], [49, 0, 0, 0, 48, 0, 0, 0], [47, 0, 48, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [0, 0, 0, 0, 47, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 46, 0, 0, 0, 0, 0], [0, 48, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 49], [47, 0, 0, 0, 0, 0, 0, 47]];
myMap17 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 48, 0, 0, 48, 0], [49, 0, 0, 0, 0, 0, 0, 46], [0, 0, 0, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 48, 0, 47, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 46], [48, 0, 48, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [49, 0, 0, 0, 0, 0, 0, 0], [47, 0, 0, 0, 0, 0, 46, 49], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 0, 0, 0, 0, 0, 47], [0, 0, 47, 48, 0, 0, 0, 0], [0, 0, 46, 0, 0, 46, 0, 0], [49, 0, 0, 0, 48, 0, 0, 0], [47, 0, 48, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [0, 0, 0, 0, 47, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 46, 0, 0, 0, 0, 0], [0, 48, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 49], [47, 0, 0, 0, 0, 0, 0, 47]];
myMap18 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 48, 0, 0, 48, 0], [49, 0, 0, 0, 0, 0, 0, 46], [0, 0, 0, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 48, 0, 47, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 46], [48, 0, 48, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [49, 0, 0, 0, 0, 0, 0, 0], [47, 0, 0, 0, 0, 0, 46, 49], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 0, 0, 0, 0, 0, 47], [0, 0, 47, 48, 0, 0, 0, 0], [0, 0, 46, 0, 0, 46, 0, 0], [49, 0, 0, 0, 48, 0, 0, 0], [47, 0, 48, 0, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0], [0, 0, 0, 0, 47, 0, 0, 0], [0, 0, 0, 0, 0, 0, 49, 0], [0, 0, 46, 0, 0, 0, 0, 0], [0, 48, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 49], [47, 0, 0, 0, 0, 0, 0, 47]];
myMap19 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap20 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap21 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap22 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap23 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap24 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap25 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap26 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap27 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap28 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap29 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
myMap30 = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
Instance of Symbol 467 MovieClip [empty] "controller" in Frame 2
onClipEvent (enterFrame) {
_root.detectKeys();
}
Instance of Symbol 3289 MovieClip in Frame 2
on (release) {
if (_root.intro_complete) {
_root.gotoAndStop(4);
} else {
stopAllSounds();
_root.attachMovie("introduction", "introduction", 5);
_root.intro_complete = true;
_root.soundNum = 1;
_root.playSound("Birds-By-The-Creek", int(_root.ingame_sound / 3), 4);
}
this._x = 1400;
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 3460 MovieClip [startbutton] in Frame 2
on (release) {
stopAllSounds();
_root.attachMovie("introduction", "introduction", 5);
soundNum = 1;
_root.playSound("Birds-By-The-Creek", int(_root.ingame_sound / 3), 4);
this._x = 1400;
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 3476 MovieClip [click_to_moregames] in Frame 2
on (release) {
getURL ("http://armor.ag/MoreGames", blank);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 3479 MovieClip [click_to_credits] in Frame 2
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips._y = 50;
_root.game_tips._x = 130;
_root.game_tips.gotoAndStop(6);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Frame 3
var loadcount = 0;
var fingerchoice = 1;
gotoAndStop (6);
game = {tileW:100, tileH:100, currentMap:clevel, visx:9, visy:50, centerx:375, centery:275};
_root.attachMovie("empty", "tiles", 1);
Frame 4
function setdifficulty(n) {
var _local1 = "";
switch (n) {
case 1 :
_local1 = "Easy";
break;
case 2 :
_local1 = "Normal";
break;
case 3 :
_local1 = "Hard";
break;
case 4 :
_local1 = "Impossible";
break;
default :
_local1 = "Impossible";
}
return(_local1);
}
function newgame(n) {
scaleper = 100;
clevel = 1;
_global.GOLD = 100;
gold = _global.GOLD;
abilitypoints = 0;
cityselected = 0;
partselected = 0;
difficulty = 1;
current_slot = n;
current_head_slot = 0;
current_chest_slot = 0;
current_leg_slot = 0;
current_hand_slot = 0;
current_weapon_slot = 0;
current_finger_slot = 0;
current_finger2_slot = 0;
current_feet_slot = 0;
_global.equip_strength = 0;
_global.equip_intelligence = 0;
_global.equip_agility = 0;
_global.equip_armor = 0;
_global.equip_attack = 0;
_global.equip_health = 0;
_global.equip_split2 = 0;
_global.equip_split3 = 0;
_global.equip_fireball = 0;
_global.equip_poison = 0;
_global.equip_knockback = 0;
_global.equip_vampire = 0;
_global.equip_stun = 0;
_global.equip_sleep = 0;
_global.equip_lightning = 0;
_global.equip_frost = 0;
_global.equip_speed = 0;
_global.equip_recover = 0;
_global.equip_fastattack = 0;
selectedequipmentrank = 1;
heroagil = 5;
herostr = 5;
heroint = 5;
herodmg = ((3 + herostr) + _global.equip_strength) + _global.equip_attack;
herodef = (0 + int((heroagil + _global.equip_agility) * 5)) + _global.equip_armor;
herolvl = 1;
herolife = ((100 + (herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
heromana = (50 + (heroint * 25)) + (_global.equip_intelligence * 25);
heroattackrate = 20 - int((heroagil + _global.equip_agility) / 5);
manarate = 50;
manacount = 0;
heroMP = heromana;
heroexp = 0;
poisonarrow_qty = 50;
firearrow_qty = 50;
icearrow_qty = 50;
currentarrow = "arrow";
splitarrow_researched = 0;
volley_researched = 0;
summon_researched = 0;
wind_researched = 0;
dash_researched = 0;
critical_level = 0;
arrow_splash_researched = 0;
black_arrow_researched = 0;
nova_researched = 0;
if (_global.bonusunlock) {
nova_special = true;
black_arrow_special = true;
arrow_splash_researched = 1;
black_arrow_researched = 1;
} else {
nova_special = false;
black_arrow_special = false;
}
_global.streng = 5;
_global.intell = 5;
_global.agilit = 5;
_global.armor = 0;
_global.attack = 10;
_global.health = 100;
_global.lvl = 1;
_global.experience = 0;
highestlevel = 0;
var _local2 = 1;
while (_local2 < 20) {
levels_complete[_local2] = false;
_local2++;
}
savegame(n);
}
function resetslot(n) {
newgame(n);
savegame(n);
}
function loadgame(n) {
current_slot = n;
localInfo = SharedObject.getLocal("rangerdefense");
if (localInfo.data["slot" + n] == undefined) {
trace(("slot" + n) + " is undefined");
} else {
clevel = localInfo.data[("slot" + n) + "clevel"];
herolvl = localInfo.data[("slot" + n) + "herolvl"];
difficulty = localInfo.data[("slot" + n) + "difficulty"];
heroexp = localInfo.data[("slot" + n) + "heroexp"];
herostr = localInfo.data[("slot" + n) + "herostr"];
heroint = localInfo.data[("slot" + n) + "heroint"];
heroagil = localInfo.data[("slot" + n) + "heroagil"];
_global.equip_strength = localInfo.data[("slot" + n) + "equip_strength"];
_global.equip_intelligence = localInfo.data[("slot" + n) + "equip_intelligence"];
_global.equip_agility = localInfo.data[("slot" + n) + "equip_agility"];
herolife = localInfo.data[("slot" + n) + "herolife"];
gold = localInfo.data[("slot" + n) + "gold"];
_global.GOLD = gold;
herodmg = localInfo.data[("slot" + n) + "herodmg"];
herodef = localInfo.data[("slot" + n) + "herodef"];
poisonarrow_qty = localInfo.data[("slot" + n) + "poisonarrow_qty"];
icearrow_qty = localInfo.data[("slot" + n) + "icearrow_qty"];
firearrow_qty = localInfo.data[("slot" + n) + "firearrow_qty"];
_global.equip_health = localInfo.data[("slot" + n) + "equip_health"];
_global.equip_armor = localInfo.data[("slot" + n) + "equip_armor"];
_global.equip_attack = localInfo.data[("slot" + n) + "equip_attack"];
current_head_slot = localInfo.data[("slot" + n) + "current_head_slot"];
current_chest_slot = localInfo.data[("slot" + n) + "current_chest_slot"];
current_leg_slot = localInfo.data[("slot" + n) + "current_leg_slot"];
current_hand_slot = localInfo.data[("slot" + n) + "current_hand_slot"];
current_weapon_slot = localInfo.data[("slot" + n) + "current_weapon_slot"];
current_finger_slot = localInfo.data[("slot" + n) + "current_finger_slot"];
current_finger2_slot = localInfo.data[("slot" + n) + "current_finger2_slot"];
current_feet_slot = localInfo.data[("slot" + n) + "current_feet_slot"];
abilitypoints = localInfo.data[("slot" + n) + "abilitypoints"];
nova_special = localInfo.data[("slot" + n) + "nova_special"];
black_arrow_special = localInfo.data[("slot" + n) + "black_arrow_special"];
splitarrow_researched = localInfo.data[("slot" + n) + "splitarrow_researched"];
volley_researched = localInfo.data[("slot" + n) + "volley_researched"];
summon_researched = localInfo.data[("slot" + n) + "summon_researched"];
wind_researched = localInfo.data[("slot" + n) + "wind_researched"];
dash_researched = localInfo.data[("slot" + n) + "dash_researched"];
critical_level = localInfo.data[("slot" + n) + "critical_level"];
arrow_splash_researched = localInfo.data[("slot" + n) + "arrow_splash_researched"];
black_arrow_researched = localInfo.data[("slot" + n) + "black_arrow_researched"];
nova_researched = localInfo.data[("slot" + n) + "nova_researched"];
heroattackrate = localInfo.data[("slot" + n) + "heroattackrate"];
currentarrow = localInfo.data[("slot" + n) + "currentarrow"];
highestlevel = localInfo.data[("slot" + n) + "completelevels"];
_global.bonusunlock = localInfo.data.bonusunlock;
if (_global.bonusunlock) {
nova_special = true;
black_arrow_special = true;
arrow_splash_researched = 1;
black_arrow_researched = 1;
}
var _local3 = 1;
while (_local3 < 20) {
if (_local3 < (highestlevel + 1)) {
levels_complete[_local3] = true;
} else {
levels_complete[_local3] = false;
}
_local3++;
}
if (highestlevel > 1) {
firstunit[0].goblin = 1;
firstunit[0].goblinarcher = 1;
firstunit[0].goblintent = 1;
if (highestlevel > 2) {
firstunit[0].goblinguard = 1;
firstunit[0].goblinelitearcher = 1;
firstunit[0].goblintower = 1;
if (highestlevel > 5) {
firstunit[0].goblinassassin = 1;
firstunit[0].troll = 1;
if (highestlevel > 7) {
firstunit[0].wolfrider = 1;
if (highestlevel > 9) {
firstunit[0].goblinmage = 1;
firstunit[0].spidergoblin = 1;
firstunit[0].goblintower2 = 1;
firstunit[0].lionman = 1;
firstunit[0].lion = 1;
firstunit[0].drake = 1;
if (highestlevel > 11) {
firstunit[0].orgak = 1;
firstunit[0].battleogre = 1;
}
}
}
}
}
}
}
}
function savegame(n) {
localInfo = SharedObject.getLocal("rangerdefense");
localInfo.data["slot" + n] = 1;
localInfo.data[("slot" + n) + "clevel"] = clevel;
localInfo.data[("slot" + n) + "herolvl"] = herolvl;
localInfo.data[("slot" + n) + "difficulty"] = difficulty;
localInfo.data[("slot" + n) + "heroexp"] = heroexp;
localInfo.data[("slot" + n) + "herostr"] = herostr;
localInfo.data[("slot" + n) + "heroint"] = heroint;
localInfo.data[("slot" + n) + "heroagil"] = heroagil;
localInfo.data[("slot" + n) + "equip_strength"] = _global.equip_strength;
localInfo.data[("slot" + n) + "equip_intelligence"] = _global.equip_intelligence;
localInfo.data[("slot" + n) + "equip_agility"] = _global.equip_agility;
localInfo.data[("slot" + n) + "herolife"] = herolife;
localInfo.data[("slot" + n) + "gold"] = gold;
localInfo.data[("slot" + n) + "herodmg"] = herodmg;
localInfo.data[("slot" + n) + "herodef"] = herodef;
localInfo.data[("slot" + n) + "poisonarrow_qty"] = poisonarrow_qty;
localInfo.data[("slot" + n) + "icearrow_qty"] = icearrow_qty;
localInfo.data[("slot" + n) + "firearrow_qty"] = firearrow_qty;
localInfo.data[("slot" + n) + "equip_health"] = _global.equip_health;
localInfo.data[("slot" + n) + "equip_armor"] = _global.equip_armor;
localInfo.data[("slot" + n) + "equip_attack"] = _global.equip_attack;
localInfo.data[("slot" + n) + "current_head_slot"] = current_head_slot;
localInfo.data[("slot" + n) + "current_chest_slot"] = current_chest_slot;
localInfo.data[("slot" + n) + "current_leg_slot"] = current_leg_slot;
localInfo.data[("slot" + n) + "current_hand_slot"] = current_hand_slot;
localInfo.data[("slot" + n) + "current_weapon_slot"] = current_weapon_slot;
localInfo.data[("slot" + n) + "current_finger_slot"] = current_finger_slot;
localInfo.data[("slot" + n) + "current_finger2_slot"] = current_finger2_slot;
localInfo.data[("slot" + n) + "current_feet_slot"] = current_feet_slot;
localInfo.data[("slot" + n) + "abilitypoints"] = abilitypoints;
localInfo.data[("slot" + n) + "nova_special"] = nova_special;
localInfo.data[("slot" + n) + "black_arrow_special"] = black_arrow_special;
localInfo.data[("slot" + n) + "splitarrow_researched"] = splitarrow_researched;
localInfo.data[("slot" + n) + "volley_researched"] = volley_researched;
localInfo.data[("slot" + n) + "summon_researched"] = summon_researched;
localInfo.data[("slot" + n) + "wind_researched"] = wind_researched;
localInfo.data[("slot" + n) + "dash_researched"] = dash_researched;
localInfo.data[("slot" + n) + "critical_level"] = critical_level;
localInfo.data[("slot" + n) + "arrow_splash_researched"] = arrow_splash_researched;
localInfo.data[("slot" + n) + "black_arrow_researched"] = black_arrow_researched;
localInfo.data[("slot" + n) + "nova_researched"] = nova_researched;
localInfo.data[("slot" + n) + "heroattackrate"] = heroattackrate;
localInfo.data[("slot" + n) + "currentarrow"] = currentarrow;
localInfo.data.bonusunlock = _global.bonusunlock;
highestlevel = 0;
var _local3 = 1;
while (_local3 < 20) {
if (levels_complete[_local3]) {
highestlevel = _local3;
}
_local3++;
}
localInfo.data[("slot" + n) + "completelevels"] = highestlevel;
localInfo.flush(10000);
}
localInfo = SharedObject.getLocal("rangerdefense");
if (localInfo.data.slot1 == undefined) {
} else {
slots1[0] = localInfo.data.slot1;
slots1[1] = localInfo.data.slot1clevel;
slots1[2] = localInfo.data.slot1herolvl;
slots1[3] = localInfo.data.slot1difficulty;
}
if (localInfo.data.slot2 == undefined) {
} else {
slots2[0] = localInfo.data.slot2;
slots2[1] = localInfo.data.slot2clevel;
slots2[2] = localInfo.data.slot2herolvl;
slots2[3] = localInfo.data.slot2difficulty;
}
if (localInfo.data.slot3 == undefined) {
} else {
slots3[0] = localInfo.data.slot3;
slots3[1] = localInfo.data.slot3clevel;
slots3[2] = localInfo.data.slot3herolvl;
slots3[3] = localInfo.data.slot3difficulty;
}
trace("slots1[0]=" + slots1[0]);
if (slots1[0] != 0) {
slot1txt = "Slot 1 - Level " + slots1[2];
}
if (slots2[0] != 0) {
slot2txt = "Slot 2 - Level " + slots2[2];
}
if (slots3[0] != 0) {
slot3txt = "Slot 3 - Level " + slots3[2];
}
Instance of Symbol 3709 MovieClip [longbutton] in Frame 4
on (release) {
if (_root.slots1[0] == 1) {
_root.current_slot = 1;
_root.loadgame(1);
_root.gotoAndStop(3);
} else {
_root.current_slot = 1;
_root.newgame(1);
_root.gotoAndStop(3);
}
}
Instance of Symbol 3709 MovieClip [longbutton] in Frame 4
on (release) {
if (_root.slots3[0] == 1) {
_root.current_slot = 3;
_root.loadgame(3);
_root.gotoAndStop(3);
} else {
_root.current_slot = 3;
_root.newgame(3);
_root.gotoAndStop(3);
}
}
Instance of Symbol 3709 MovieClip [longbutton] in Frame 4
on (release) {
if (_root.slots2[0] == 1) {
_root.current_slot = 2;
_root.loadgame(2);
_root.gotoAndStop(3);
} else {
_root.current_slot = 2;
_root.newgame(2);
_root.gotoAndStop(3);
}
}
Instance of Symbol 3718 MovieClip [resetbutton] in Frame 4
on (release) {
_root.resetslot(1);
_root.slot1txt = "Slot 1 - New Game";
}
Instance of Symbol 3718 MovieClip [resetbutton] in Frame 4
on (release) {
_root.resetslot(2);
_root.slot2txt = "Slot 2 - New Game";
}
Instance of Symbol 3718 MovieClip [resetbutton] in Frame 4
on (release) {
_root.resetslot(3);
_root.slot3txt = "Slot 3 - New Game";
}
Instance of Symbol 484 MovieClip in Frame 4
on (release) {
getURL ("http://www.goblinarena.com", blank);
}
Instance of Symbol 490 MovieClip [goblin_arena_games_logo] in Frame 4
on (press) {
getURL ("http://www.goblinarena.com", blank);
}
Instance of Symbol 498 MovieClip [ArmorGames_logo] "armorgames_logo" in Frame 4
on (press) {
getURL ("http://armor.ag/MoreGames", blank);
}
Frame 6
function buildMap(map) {
trace("start building map");
_quality = "LOW";
_root.levelend.removeMovieClip();
_root.attachMovie("empty", "tiles", 1);
cleararea();
game.halfvisx = int(game.visx / 2);
game.halfvisy = int(game.visy / 2);
game.clip = _root.tiles;
game.clip._xscale = scaleper;
game.clip._yscale = scaleper;
game.mapwidth = map[0].length;
game.mapheight = map.length;
var fixx = 0;
var fixy = 0;
if (game.halfvisx > char[0].xtile) {
var fixx = (char[0].xtile - game.halfvisx);
} else if (char[0].xtile > ((game.mapwidth - game.halfvisx) + 0)) {
var fixx = ((game.mapwidth - char[0].xtile) + 0);
}
if (game.halfvisy > char[0].ytile) {
var fixy = (char[0].ytile - game.halfvisy);
} else if (char[0].ytile > ((game.mapheight - game.halfvisy) + 0)) {
var fixy = ((game.mapheight - char[0].ytile) + 0);
}
game.clip._x = (game.centerx - ((char[0].xtile - fixx) * game.tileW)) - (game.tileW / 2);
game.clip._y = (game.centery - ((char[0].ytile - fixy) * game.tileH)) - (game.tileH / 2);
var y = ((char[0].ytile - game.halfvisy) - fixy);
while (y <= (((char[0].ytile + game.halfvisy) + 4) - fixy)) {
var x = ((char[0].xtile - game.halfvisx) - fixx);
while (x <= (((char[0].xtile + game.halfvisx) + 4) - fixx)) {
var name = ((("t_" + y) + "_") + x);
if ((((y >= 0) and (x >= 0)) and (y <= (map.length - 1))) and (x <= (map[0].length - 1))) {
game[name] = new game["Tile" + map[y][x]]();
} else {
game[name] = new game.Tile4();
}
if (game[name].walkable) {
game.clip.attachMovie("tile", name, (5001 + (y * 100)) + (x * 2));
} else {
game.clip.attachMovie("tile", name, (100001 + (y * 100)) + (x * 2));
}
game.clip[name]._x = x * game.tileW;
game.clip[name]._y = y * game.tileH;
game.clip[name].gotoAndStop(game[name].frame);
x++;
}
y++;
}
spawn(0, 0);
spawn(1, 1);
game.clip.createEmptyMovieClip("square_mc", 0);
with (game.clip.square_mc) {
moveTo(-100, 2300);
if (clevel < 4) {
var earth = flash.display.BitmapData.loadBitmap("Grass2");
} else if (clevel < 7) {
var earth = flash.display.BitmapData.loadBitmap("E99_snowfull");
} else if (clevel < 10) {
var earth = flash.display.BitmapData.loadBitmap("swamp_texture");
} else if (clevel < 13) {
var earth = flash.display.BitmapData.loadBitmap("sandy2");
} else if (clevel < 16) {
var earth = flash.display.BitmapData.loadBitmap("dungeon__floor_1.jpg");
} else if (clevel < 19) {
var earth = flash.display.BitmapData.loadBitmap("Lava Cracks.jpg");
} else {
var earth = flash.display.BitmapData.loadBitmap("Grass2");
}
beginBitmapFill(earth);
moveTo(-100, (htiles * 100) + 100);
lineTo((wtiles * 100) + 100, (htiles * 100) + 100);
lineTo((wtiles * 100) + 100, -100);
lineTo(-100, -100);
lineTo(-100, (htiles * 100) + 100);
endFill();
}
makeBlockArray();
if (startups[clevel].count > 0) {
game.clip.attachMovie("enemy_start_point", "enemy_start_point", 5559897);
game.clip.enemy_start_point._x = (startups[clevel].startx * 100) - 20;
game.clip.enemy_start_point._y = (startups[clevel].starty * 100) - 18;
game.clip.enemy_start_point._alpha = 90;
game.clip.enemy_start_point._xscale = 100;
game.clip.enemy_start_point._yscale = 100;
trace("enemy_start_point");
}
if (startups[clevel].count > 1) {
game.clip.attachMovie("enemy_start_point", "enemy_start_point2", 5559898);
game.clip.enemy_start_point2._x = (startups[clevel].startx2 * 100) - 20;
game.clip.enemy_start_point2._y = (startups[clevel].starty2 * 100) - 20;
game.clip.enemy_start_point2._alpha = 90;
game.clip.enemy_start_point2._xscale = 100;
game.clip.enemy_start_point2._yscale = 100;
}
if (startups[clevel].count > 2) {
game.clip.attachMovie("enemy_start_point", "enemy_start_point3", 5559899);
game.clip.enemy_start_point3._x = (startups[clevel].startx3 * 100) - 20;
game.clip.enemy_start_point3._y = (startups[clevel].starty3 * 100) - 20;
game.clip.enemy_start_point3._alpha = 90;
game.clip.enemy_start_point3._xscale = 100;
game.clip.enemy_start_point3._yscale = 100;
}
}
function changeTile(xold, yold, xnew, ynew, map) {
var _local4 = (("t_" + yold) + "_") + xold;
var _local1 = (("t_" + ynew) + "_") + xnew;
if ((((ynew >= 0) and (xnew >= 0)) and (ynew <= (map.length - 1))) and (xnew <= (map[0].length - 1))) {
game[_local1] = new game["Tile" + map[ynew][xnew]]();
game.clip[_local4]._name = _local1;
game.clip[_local1].gotoAndStop(game[_local1].frame);
game.clip[_local1]._x = xnew * game.tileW;
game.clip[_local1]._y = ynew * game.tileH;
if (game[_local1].walkable) {
game.clip[_local1].swapDepths((5001 + (ynew * 100)) + (xnew * 2));
} else {
game.clip[_local1].swapDepths((100001 + (ynew * 100)) + (xnew * 2));
}
} else {
game[_local1] = new game.Tile4();
game.clip[_local4]._name = _local1;
game.clip[_local1].gotoAndStop(game[_local1].frame);
}
}
function changeMap(ob) {
var _local3 = created + 1;
var _local2 = 0;
while (_local2 < _local3) {
game.clip["char" + _local2].swapDepths(501);
game.clip["char" + _local2].removeMovieClip();
_local2++;
}
var _local4 = (("t_" + ob.ytile) + "_") + ob.xtile;
game.currentMap = clevel + game[_local4].newmap;
if (game[_local4].newchary > 50) {
} else if (game[_local4].newchary < -50) {
}
if (game[_local4].newcharx > 50) {
} else if (game[_local4].newcharx < -50) {
}
trace("herox = " + herox);
ob.frame = ob.clip._currentframe;
clevel = clevel + game[_local4].newmap;
refreshlevel();
createunits();
char[0].xtile = herox;
char[0].ytile = heroy;
char[0].targetx = char[0].xtile;
char[0].targety = char[0].ytile;
char[0].moving = false;
char[0].pathcount = 0;
char[0].diry = 0;
char[0].dirx = 0;
char[0].path.length = 0;
char[0].path = null;
char[0].moving = false;
char[0].x = (herox * game.tileW) + (game.tileW / 2);
char[0].y = (heroy * game.tileH) + (game.tileH / 2);
char[0].manaCurrent = heroMP;
char[0].manaMax = heromana;
viewnorth = 0;
viewwest = 0;
buildMap(_root["myMap" + game.currentMap]);
}
function getMyCorners(x, y, ob) {
ob.downY = Math.floor(((y + ob.height) - 1) / game.tileH);
ob.upY = Math.floor((y - ob.height) / game.tileH);
ob.leftX = Math.floor((x - ob.width) / game.tileW);
ob.rightX = Math.floor(((x + ob.width) - 1) / game.tileW);
ob.ytile = Math.floor(y / game.tileH);
ob.xtile = Math.floor(x / game.tileW);
ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable;
ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable;
ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable;
ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable;
ob.down = game[(("t_" + ob.downY) + "_") + ob.xtile].walkable;
ob.up = game[(("t_" + ob.upY) + "_") + ob.xtile].walkable;
ob.right = game[(("t_" + ob.ytile) + "_") + ob.rightX].walkable;
ob.left = game[(("t_" + ob.ytile) + "_") + ob.leftX].walkable;
}
function moveChar(ob, dirx, diry) {
if ((Math.abs(dirx) + Math.abs(diry)) == 2) {
ob.speed = herospeed - 1;
} else {
ob.speed = herospeed;
}
if (char[0].poisoned > 0) {
ob.speed = ob.speed - 3;
}
if (dirx == 0) {
getMyCorners(ob.x - (50 * dirx), ob.y - (50 * diry), ob);
} else if (diry == 0) {
getMyCorners(ob.x - (50 * dirx), ob.y - (50 * diry), ob);
} else {
getMyCorners(ob.x, ob.y, ob);
}
if (char[0].shooting > 0) {
}
mdirection(ob, dirx, diry, 0);
ob.xtile = Math.floor((ob.x + 0) / game.tileW);
ob.ytile = Math.floor((ob.y + 0) / game.tileH);
if (game[(("t_" + ob.ytile) + "_") + ob.xtile].door) {
changeMap(ob);
}
if (ob.x > game.centerx) {
if (ob.x < ((game.mapwidth * game.tileW) - game.centerx)) {
if (ob.xstep < (ob.x - game.tileW)) {
var _local12 = Math.floor(ob.xstep / game.tileW) + 1;
var _local8 = (_local12 + game.halfvisx) + 1;
var _local6 = (_local12 - game.halfvisx) - 1;
var _local4 = Math.round(((game.centery - ob.y) - game.clip._y) / game.tileH);
var _local3 = ((ob.ytile - game.halfvisy) - 1) + _local4;
while (_local3 <= (((ob.ytile + game.halfvisy) + 1) + _local4)) {
changeTile(_local6, _local3, _local8, _local3, _root["myMap" + game.currentMap]);
_local3++;
}
ob.xstep = ob.xstep + game.tileW;
} else if (ob.xstep > ob.x) {
var _local12 = Math.floor(ob.xstep / game.tileW);
var _local6 = (_local12 + game.halfvisx) + 1;
var _local8 = (_local12 - game.halfvisx) - 1;
var _local4 = Math.round(((game.centery - ob.y) - game.clip._y) / game.tileH);
var _local3 = ((ob.ytile - game.halfvisy) - 1) + _local4;
while (_local3 <= (((ob.ytile + game.halfvisy) + 1) + _local4)) {
changeTile(_local6, _local3, _local8, _local3, _root["myMap" + game.currentMap]);
_local3++;
}
ob.xstep = ob.xstep - game.tileW;
}
}
}
if (ob.y > game.centery) {
if (ob.y < ((game.mapheight * game.tileH) - game.centery)) {
if (ob.ystep < (ob.y - game.tileH)) {
var _local13 = Math.floor(ob.ystep / game.tileH) + 1;
var _local9 = (_local13 + game.halfvisy) + 1;
var _local7 = (_local13 - game.halfvisy) - 1;
var _local5 = Math.round(((game.centerx - ob.x) - game.clip._x) / game.tileW);
var _local3 = ((ob.xtile - game.halfvisx) - 1) + _local5;
while (_local3 <= (((ob.xtile + game.halfvisx) + 1) + _local5)) {
changeTile(_local3, _local7, _local3, _local9, _root["myMap" + game.currentMap]);
_local3++;
}
ob.ystep = ob.ystep + game.tileH;
} else if (ob.ystep > ob.y) {
var _local13 = Math.floor(ob.ystep / game.tileH);
var _local7 = (_local13 + game.halfvisy) + 1;
var _local9 = (_local13 - game.halfvisy) - 1;
var _local5 = Math.round(((game.centerx - ob.x) - game.clip._x) / game.tileW);
var _local3 = ((ob.xtile - game.halfvisx) - 1) + _local5;
while (_local3 <= (((ob.xtile + game.halfvisx) + 1) + _local5)) {
changeTile(_local3, _local7, _local3, _local9, _root["myMap" + game.currentMap]);
_local3++;
}
ob.ystep = ob.ystep - game.tileH;
}
}
}
_root.darkness._x = ob.x + tiles._x;
_root.darkness._y = ob.y + tiles._y;
_root.darkness._rotation = 90 + getAngle(game.clip.char0._x, game.clip.char0._y, _xmouse - game.clip._x, _ymouse - game.clip._y);
collecttick++;
if (collecttick > 5) {
collectitems();
collecttick = 0;
}
return(true);
}
function moveAI(ob, cp) {
if (((char[cp].shooting <= 0) and (char[cp].die == 0)) and (char[cp].knockback == 0)) {
blip1++;
var _local9 = 3;
if (char[cp].team == 1) {
_local9 = created + 1;
}
if (blip1 > blipping) {
blip1 = 0;
if (!char[cp].ranged) {
var _local3 = 0;
while (_local3 < _local9) {
if (char[_local3].team != char[cp].team) {
if ((char[_local3].die == 0) and (char[_local3].nonreach == 0)) {
if (getDist(game.clip["char" + _local3]._x, game.clip["char" + _local3]._y, game.clip["char" + cp]._x, game.clip["char" + cp]._y) < meleereach) {
if (cp == 0) {
if (char[0].selecttarget == _local3) {
char[cp].melee = true;
}
} else {
char[cp].melee = true;
char[cp].mtarget = _local3;
char[cp].mcount = 10;
char[cp].path.length = 0;
game.clip["char" + cp].gotoAndPlay(31);
meleeAI(cp);
break;
}
}
}
}
_local3++;
}
}
}
var _local12 = cp;
if (char[cp].direct) {
ob.xtile = Math.floor(ob.x / game.tileW);
ob.ytile = Math.floor(ob.y / game.tileH);
char[cp].dcount = char[cp].dcount + 1;
if (char[cp].dcount > 6) {
char[cp].dcount = 0;
var _local8 = char[cp].edist;
var _local11 = created + 1;
_local9 = 3;
if (char[cp].team == 1) {
_local9 = created + 1;
}
var _local3 = 0;
while (_local3 < _local9) {
if ((char[_local3].die == 0) and (char[_local3].nonreach == 0)) {
if (char[_local3].team != char[cp].team) {
if (getDist(game.clip["char" + _local3]._x, game.clip["char" + _local3]._y, game.clip["char" + cp]._x, game.clip["char" + cp]._y) < _local8) {
char[cp].moving = false;
char[cp].selecttarget = _local3;
_local8 = getDist(game.clip["char" + _local3]._x, game.clip["char" + _local3]._y, game.clip["char" + cp]._x, game.clip["char" + cp]._y);
}
}
}
_local3++;
}
if (char[cp].selecttarget != 99) {
char[cp].mousex = game.clip["char" + char[cp].selecttarget]._x;
char[cp].mousey = game.clip["char" + char[cp].selecttarget]._y;
getTarget(char[char[cp].selecttarget].xtile, char[char[cp].selecttarget].ytile, char[cp].mousex, char[cp].mousey, cp);
} else if (isMouseDown) {
} else {
char[cp].direct = false;
}
}
ob.xtile = Math.round((ob.x - 50) / game.tileW);
ob.ytile = Math.round((ob.y - 50) / game.tileH);
} else if (((((ob.x >= (((game.tileW * char[cp].itargetx) + (game.tileW / 2)) - 5)) and (ob.dirx >= 0)) or ((ob.x <= (((game.tileW * char[cp].itargetx) + (game.tileW / 2)) + 5)) and (ob.dirx <= 0))) or (ob.dirx == 0)) and ((((ob.y >= (((game.tileH * char[cp].itargety) + (game.tileH / 2)) - 5)) and (ob.diry >= 0)) or ((ob.y <= (((game.tileH * char[cp].itargety) + (game.tileH / 2)) + 5)) and (ob.diry <= 0))) or (ob.diry == 0))) {
if (cp == 0) {
if (isMouseDown) {
} else if (char[cp].selecttarget < 99) {
char[cp].mousex = game.clip["char" + char[cp].selecttarget]._x;
char[cp].mousey = game.clip["char" + char[cp].selecttarget]._y;
straighttesting(char[cp].targetx, char[cp].targety, char[cp].mousex, char[cp].mousey, 0);
}
}
if (((Math.random() * 100) > 25) or char[cp].posted) {
if (char[cp].ranged) {
char[cp].cweapon = "rweapon";
var _local8 = char[cp].edist;
var _local11 = created + 1;
_local9 = 3;
if (char[cp].team == 1) {
_local9 = created + 1;
}
var _local3 = 0;
while (_local3 < _local9) {
if (char[_local3].die == 0) {
if (char[_local3].team != char[cp].team) {
if (getDist(game.clip["char" + _local3]._x, game.clip["char" + _local3]._y, game.clip["char" + cp]._x, game.clip["char" + cp]._y) < _local8) {
if (_local3 == 0) {
var _local7 = 0;
var _local6 = 0;
var _local5 = int(getDist(game.clip["char" + cp]._x, game.clip["char" + cp]._y, game.clip.char0._x, game.clip.char0._y) / 100);
if (Key.isDown(39) or Key.isDown(68)) {
_local7 = 25 * _local5;
}
if (Key.isDown(38) or Key.isDown(87)) {
_local6 = -25 * _local5;
}
if (Key.isDown(40) or Key.isDown(83)) {
_local6 = 25 * _local5;
}
if (Key.isDown(37) or Key.isDown(65)) {
_local7 = -25 * _local5;
}
if ((Math.random() * 100) > 0) {
if (firetest(cp, game.clip["char" + _local3]._x + _local7, game.clip["char" + _local3]._y + _local6) == false) {
if (firetest(cp, game.clip["char" + _local3]._x, game.clip["char" + _local3]._y) == false) {
char[cp].shooting = 0;
char[cp].starget = 99;
char[cp].moving = true;
} else {
char[cp].shooting = 15;
char[cp].starget = _local3;
char[cp].path.length = 0;
char[cp].moving = false;
}
} else {
char[cp].shooting = 15;
char[cp].starget = _local3;
char[cp].path.length = 0;
char[cp].moving = false;
}
}
} else if (!char[cp].posted) {
if (firetest(cp, game.clip["char" + _local3]._x, game.clip["char" + _local3]._y) == false) {
char[cp].shooting = 0;
char[cp].starget = 99;
char[cp].moving = true;
} else {
char[cp].shooting = 15;
char[cp].starget = _local3;
char[cp].path.length = 0;
char[cp].moving = false;
}
} else {
char[cp].shooting = 15;
char[cp].starget = _local3;
char[cp].path.length = 0;
char[cp].moving = false;
fire(cp, game.clip["char" + _local3]._x, game.clip["char" + _local3]._y);
}
_local8 = getDist(game.clip["char" + _local3]._x, game.clip["char" + _local3]._y, game.clip["char" + cp]._x, game.clip["char" + cp]._y);
}
}
}
_local3++;
}
}
}
if (!char[cp].ranged) {
var _local8 = char[cp].edist;
var _local11 = created + 1;
_local9 = 3;
if (char[cp].team == 1) {
_local9 = created + 1;
}
var _local3 = 0;
while (_local3 < _local9) {
if ((char[_local3].die == 0) and (char[_local3].nonreach == 0)) {
if (char[_local3].team != char[cp].team) {
if (getDist(game.clip["char" + _local3]._x, game.clip["char" + _local3]._y, game.clip["char" + cp]._x, game.clip["char" + cp]._y) < _local8) {
char[cp].moving = false;
char[cp].selecttarget = _local3;
_local8 = getDist(game.clip["char" + _local3]._x, game.clip["char" + _local3]._y, game.clip["char" + cp]._x, game.clip["char" + cp]._y);
}
}
}
_local3++;
}
}
if (char[cp].selecttarget < 99) {
if (char[char[cp].selecttarget].hpCurrent > 0) {
char[cp].pathcount++;
if (char[cp].pathcount > 2) {
char[cp].moving = false;
char[cp].pathcount = 0;
ob.diry = 0;
ob.dirx = 0;
char[cp].path.length = 0;
char[cp].path = null;
if (!char[cp].direct) {
}
char[cp].mousex = game.clip["char" + char[cp].selecttarget]._x;
char[cp].mousey = game.clip["char" + char[cp].selecttarget]._y;
getTarget(char[char[cp].selecttarget].xtile, char[char[cp].selecttarget].ytile, char[cp].mousex, char[cp].mousey, cp);
}
} else {
char[cp].selecttarget = 99;
char[cp].direct = false;
char[cp].targetx = char[cp].xtile;
char[cp].targety = char[cp].ytile;
char[cp].path.length = 0;
char[cp].moving = false;
}
}
if (cp == boss_id) {
if (char[cp].selecttarget == 0) {
if (boss_meet == 0) {
boss_meet++;
playSound(char_audio[boss_id].intro, ingame_sound, 1);
}
}
}
ob.xtile = Math.round((ob.x - 50) / game.tileW);
ob.ytile = Math.round((ob.y - 50) / game.tileH);
if (game[(("t_" + ob.ytile) + "_") + ob.xtile].door and (ob == _root.char[0])) {
trace("change map");
changeMap(ob);
return(undefined);
}
ob.moveCount = ob.moveCount + 1;
if (char[cp].path.length > 0) {
game.targety = char[cp].path.pop();
game.targetx = char[cp].path.pop();
char[cp].itargety = game.targety;
char[cp].itargetx = game.targetx;
if ((game.targety == ob.ytile) and (game.targetx == ob.xtile)) {
char[cp].moving = false;
return(undefined);
}
game.clip["char" + cp]._rotation = 90 + getAngle(game.clip["char" + cp]._x, game.clip["char" + cp]._y, (game.targetx * game.tileW) + (game.tileW / 2), (game.targety * game.tileH) + (game.tileH / 2));
ob.dirx = char[cp].speed * Math.sin((Math.PI * game.clip["char" + cp]._rotation) / 180);
ob.diry = char[cp].speed * (-Math.cos((Math.PI * game.clip["char" + cp]._rotation) / 180));
if (char[cp].race == "goblintower") {
game.clip["char" + cp].tower._rotation = -game.clip["char" + cp]._rotation;
} else if (char[cp].race == "goblintent") {
game.clip["char" + cp]._rotation = 0;
}
if (char[cp].moving == true) {
var _local10 = game.clip["char" + cp].frame;
}
} else {
char[cp].moving = false;
ob.dirx = 0;
ob.diry = 0;
}
if ((game.targety == ob.targety) and (game.targetx == ob.targetx)) {
char[cp].moving = false;
} else if (game[(("t_" + game.targety) + "_") + game.targetx].walkable == false) {
char[cp].moving = false;
}
}
if (char[cp].knockback > 0) {
ob.y = ob.y + char[cp].knockbacky;
ob.x = ob.x + char[cp].knockbackx;
} else {
ob.y = ob.y + ob.diry;
ob.x = ob.x + ob.dirx;
}
ob.xtile = Math.round((ob.x - 50) / game.tileW);
ob.ytile = Math.round((ob.y - 50) / game.tileH);
game.clip["char" + cp]._x = ob.x;
game.clip["char" + cp]._y = ob.y;
game.clip["hb" + cp]._x = game.clip["char" + cp]._x;
game.clip["hb" + cp]._y = game.clip["char" + cp]._y;
if (char[cp].targetx == ob.xtile) {
if (char[cp].targety == ob.ytile) {
char[cp].moving = false;
} else {
char[cp].moving = true;
}
} else {
char[cp].moving = true;
}
if (cp == 0) {
scrolling(ob);
}
}
if (char[cp].moving) {
if (char[cp].shooting == 0) {
if (game.clip["char" + cp]._currentframe > 30) {
game.clip["char" + cp].gotoAndPlay(1);
} else {
game.clip["char" + cp].play();
}
}
}
}
function meleeAI(cp) {
if (char[cp].mcount == 0) {
var _local6 = created + 1;
var _local3 = 3;
if (char[cp].team == 1) {
_local3 = created + 1;
}
var _local2 = 0;
while (_local2 < _local3) {
meleeloop(cp, _local2);
_local2++;
}
if (char[cp].mcount == 0) {
meleeloop(cp, 1);
meleeloop(cp, 2);
meleeloop(cp, 3);
if (char[cp].mcount == 0) {
char[cp].melee = false;
char[cp].selecttarget = 99;
char[cp].moving = false;
char[cp].pathcount = 0;
char[cp].diry = 0;
char[cp].dirx = 0;
char[cp].path.length = 0;
char[cp].path = null;
}
}
} else {
char[cp].mcount--;
if (char[cp].mcount == 5) {
var _local4 = Math.round(((Math.random() * char[cp].mattack) / 2) + (char[cp].mattack / 2));
if (char[cp].mtarget == 0) {
_local4 = Math.max(int(_local4 * ((100 - defensepercent) / 100)), 1);
}
char[char[cp].mtarget].hpCurrent = char[char[cp].mtarget].hpCurrent - _local4;
game.clip.attachMovie("dmtext", "dmg" + cp, 99100 + cp);
game.clip["dmg" + cp].dmg = _local4;
game.clip["dmg" + cp]._x = game.clip["char" + char[cp].mtarget]._x;
game.clip["dmg" + cp]._y = game.clip["char" + char[cp].mtarget]._y;
var _local5 = Math.round(Math.random() * 100);
if (_local5 < 50) {
playSound(char_audio[cp].attack1, ingame_sound, 1);
} else {
playSound(char_audio[cp].attack2, ingame_sound, 1);
}
game.clip["hb" + char[cp].mtarget].hm._y = 35 - int((char[char[cp].mtarget].hpCurrent / char[char[cp].mtarget].hpMax) * 70);
testDeath(char[cp].mtarget, cp);
}
if (game.clip["char" + cp]._currentframe < 31) {
game.clip["char" + cp].gotoAndPlay(31);
}
}
if (cp == 0) {
}
}
function meleeloop(cp, j) {
if (char[j].team != char[cp].team) {
if ((char[j].die == 0) and (char[j].nonreach == 0)) {
if (getDist(game.clip["char" + j]._x, game.clip["char" + j]._y, game.clip["char" + cp]._x, game.clip["char" + cp]._y) < meleereach) {
if ((char[0].selecttarget == j) or (cp != 0)) {
char[cp].mcount = 10;
char[cp].path.length = 0;
char[cp].mtarget = j;
var _local3 = Math.round(Math.random() * 100);
char[cp].moving = false;
if (_local3 < char[cp].a1) {
game.clip["char" + cp].gotoAndPlay(31);
} else if (_local3 < char[cp].a2) {
game.clip["char" + cp].gotoAndPlay(61);
} else if (_local3 < char[cp].a3) {
game.clip["char" + cp].gotoAndPlay(91);
} else if (_local3 < char[cp].a4) {
game.clip["char" + cp].gotoAndPlay(121);
}
game.clip["char" + cp]._rotation = 90 + getAngle(game.clip["char" + cp]._x, game.clip["char" + cp]._y, game.clip["char" + j]._x, game.clip["char" + j]._y);
if (char[cp].race == "goblintower") {
game.clip["char" + cp].tower._rotation = -game.clip["char" + cp]._rotation;
} else if (char[cp].race == "goblintent") {
game.clip["char" + cp]._rotation = 0;
}
}
}
}
}
}
function getTarget(targetx, targety, mtx, mty, cp) {
if (game[(("t_" + targety) + "_") + targetx].walkable) {
if (!char[cp].ranged) {
if (char[cp].selecttarget < 99) {
var _local3 = Math.floor(mtx / game.tileW);
var _local4 = Math.floor(mty / game.tileH);
if (game[(("t_" + _local4) + "_") + _local3].walkable) {
char[cp].moving = false;
straighttesting(targetx, targety, mtx, mty, cp);
} else {
char[cp].mousex = game.clip["char" + cp]._x;
char[cp].mousey = game.clip["char" + cp]._y;
char[cp].dirx = 0;
char[cp].diry = 0;
char[cp].targetx = char[cp].xtile;
char[cp].targety = char[cp].ytile;
char[cp].moving = false;
}
}
}
if (!char[cp].direct) {
if (!char[cp].moving) {
findPath(char[cp].xtile, char[cp].ytile, targetx, targety, cp);
char[cp].moveCount = 0;
}
}
}
}
function addNode(ob, x, y, targetx, targety) {
path.name = (("node_" + y) + "_") + x;
if (game[(("t_" + y) + "_") + x].walkable) {
var _local2 = Math.abs(x - targetx) + Math.abs(y - targety);
if ((path[path.name].cost > _local2) or (path[path.name].cost == undefined)) {
path[path.name] = {x:x, y:y, visited:false, parentx:ob.x, parenty:ob.y, cost:_local2};
var _local3 = path.Unchecked_Neighbours.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2 < path.Unchecked_Neighbours[_local1].cost) {
path.Unchecked_Neighbours.splice(_local1, 0, path[path.name]);
break;
}
_local1++;
}
if (_local1 >= path.Unchecked_Neighbours.length) {
path.Unchecked_Neighbours[path.Unchecked_Neighbours.length] = path[path.name];
}
}
}
}
function make_path(ob, cp) {
char[cp].path = [];
while (ob.parentx != null) {
char[cp].path[char[cp].path.length] = ob.x;
char[cp].path[char[cp].path.length] = ob.y;
game.clip[(("t_" + ob.y) + "_") + ob.x].mark.gotoAndStop(2);
ob = path[(("node_" + ob.parenty) + "_") + ob.parentx];
}
char[cp].moving = true;
sound.gotoAndPlay(2);
_root.pathtime = (getTimer() - game.pathTime) + " ms";
}
function findPath(startx, starty, targetx, targety, cp) {
var _local6 = 0;
while (_local6 < (mapHeight + 1)) {
var _local2 = 0;
while (_local2 < (mapWidth + 1)) {
var _local5 = (("t_" + _local6) + "_") + _local2;
game.clip[_local5].mark.gotoAndStop(1);
_local2++;
}
_local6++;
}
game.pathTime = getTimer();
path = {};
path.Unchecked_Neighbours = [];
path.done = false;
path.name = (("node_" + starty) + "_") + startx;
var _local10 = Math.abs(startx - targetx) + Math.abs(starty - targety);
path[path.name] = {x:startx, y:starty, visited:true, parentx:null, parenty:null, cost:_local10};
path.Unchecked_Neighbours[path.Unchecked_Neighbours.length] = path[path.name];
while (path.Unchecked_Neighbours.length > 0) {
var _local1 = path.Unchecked_Neighbours.shift();
if ((_local1.x == targetx) and (_local1.y == targety)) {
make_path(_local1, cp);
path.done = true;
break;
}
_local1.visited = true;
addNode(_local1, _local1.x + 1, _local1.y + 1, targetx, targety);
addNode(_local1, _local1.x - 1, _local1.y + 1, targetx, targety);
addNode(_local1, _local1.x + 1, _local1.y - 1, targetx, targety);
addNode(_local1, _local1.x - 1, _local1.y - 1, targetx, targety);
addNode(_local1, _local1.x + 1, _local1.y, targetx, targety);
addNode(_local1, _local1.x - 1, _local1.y, targetx, targety);
addNode(_local1, _local1.x, _local1.y + 1, targetx, targety);
addNode(_local1, _local1.x, _local1.y - 1, targetx, targety);
}
if (path.done) {
return(true);
}
if (char[cp].selecttarget < 96) {
char[char[cp].selecttarget].nonreach = 200;
char[cp].selecttarget = 99;
trace("setting nonreach for " + char[cp].selecttarget);
}
delete path;
}
function getDist(px1, py1, px2, py2) {
x = px2 - px1;
y = py2 - py1;
hyp = Math.sqrt((x * x) + (y * y));
return(hyp);
}
function getAngle(px1, py1, px2, py2) {
x = px2 - px1;
y = py2 - py1;
hyp = Math.sqrt((x * x) + (y * y));
cos = x / hyp;
rad = Math.acos(cos);
deg = 180 / (Math.PI / rad);
if (y < 0) {
deg = -deg;
} else if ((y == 0) && (x < 0)) {
deg = 180;
}
return(deg);
}
function clearingtimer() {
clearInterval(intervalID);
intervalID = null;
}
function detectKeys() {
updateMana(0);
this.experiencebar.experiencecount = (heroexp + "/") + explvls[herolvl];
if (heroexp > 100000) {
this.experiencebar.experiencecount = ((int(heroexp / 1000) + "K/") + int(explvls[herolvl] / 1000)) + "K";
}
if (herolvl > 1) {
this.experiencebar.exp100._xscale = int((100 * (heroexp - explvls[herolvl - 1])) / (explvls[herolvl] - explvls[herolvl - 1]));
} else {
this.experiencebar.exp100._xscale = int((100 * heroexp) / explvls[herolvl]);
}
if (isMouseDown) {
mouseisdownnow();
}
updatepoison();
updatefrozen();
updatestunned();
updateknockback();
updateskills();
endgame();
var _local10 = _root.char[0];
var _local12 = false;
if (char[0].die == 0) {
if (Key.isDown(39) or Key.isDown(68)) {
_local12 = true;
if (Key.isDown(38) or Key.isDown(87)) {
keyPressed = _root.moveChar(_local10, 1, -1);
game.clip.char0._rotation = 45;
game.clip.charlegs0._rotation = 45;
} else if (Key.isDown(40) or Key.isDown(83)) {
keyPressed = _root.moveChar(_local10, 1, 1);
game.clip.char0._rotation = 135;
game.clip.charlegs0._rotation = 135;
} else {
keyPressed = _root.moveChar(_local10, 1, 0);
game.clip.char0._rotation = 90;
game.clip.charlegs0._rotation = 90;
}
game.clip.char0._rotation = game.clip.char0._rotation + 5;
} else if (Key.isDown(37) or Key.isDown(65)) {
_local12 = true;
if (Key.isDown(38) or Key.isDown(87)) {
keyPressed = _root.moveChar(_local10, -1, -1);
game.clip.char0._rotation = 315;
game.clip.charlegs0._rotation = 315;
} else if (Key.isDown(40) or Key.isDown(83)) {
keyPressed = _root.moveChar(_local10, -1, 1);
game.clip.char0._rotation = 225;
game.clip.charlegs0._rotation = 225;
} else {
keyPressed = _root.moveChar(_local10, -1, 0);
game.clip.char0._rotation = 270;
game.clip.charlegs0._rotation = 270;
}
} else if (Key.isDown(38) or Key.isDown(87)) {
_local12 = true;
keyPressed = _root.moveChar(_local10, 0, -1);
game.clip.char0._rotation = 0;
game.clip.charlegs0._rotation = 0;
} else if (Key.isDown(40) or Key.isDown(83)) {
_local12 = true;
keyPressed = _root.moveChar(_local10, 0, 1);
game.clip.char0._rotation = 180;
game.clip.charlegs0._rotation = 180;
} else {
keyPressed = _root.moveChar(_local10, 0, 0);
if (char[0].shooting == 0) {
game.clip.char0.gotoAndStop(50);
}
game.clip.charlegs0.gotoAndStop(game.clip.char0._currentframe);
}
if (Key.isDown(49)) {
if (_root.splitarrow_researched > 0) {
if (_root.splitarrow_recharge > 0) {
} else {
_root.splitarrow_recharge = _root.splitarrow_totalrecharge;
_root.splitarrow_activecount = _root.splitarrow_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_blue", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_01_Jamaal3_converted.wav", _root.ingame_sound, 1);
}
}
}
if (Key.isDown(50)) {
if (_root.volley_researched > 0) {
if (_root.volley_recharge > 0) {
} else {
_root.volley_recharge = _root.volley_totalrecharge;
_root.volley_activecount = _root.volley_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_01_Jamaal3_converted.wav", _root.ingame_sound, 1);
}
}
}
if (Key.isDown(51)) {
if (_root.dash_researched > 0) {
if (_root.dash_recharge > 0) {
} else {
_root.dash_recharge = _root.dash_totalrecharge;
_root.dash_activecount = _root.dash_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_05_Jamaal3_converted.wav", _root.ingame_sound, 1);
}
}
}
if (Key.isDown(52)) {
if (_root.summon_researched > 0) {
if (_root.summon_recharge > 0) {
} else {
_root.summon_recharge = _root.summon_totalrecharge;
_root.summon();
_root.game.clip.char2.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_yellow", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char2._x;
_root.game.clip.buff_white._y = _root.game.clip.char2._y;
var _local13 = spellslots2[4];
_root.spellslots[_local13] = false;
_root.spellslots2[4] = 0;
_root["spellReady" + _local13].swapDepths(501);
_root["spellReady" + _local13].removeMovieClip();
}
}
}
if (Key.isDown(53)) {
if (_root.wind_researched > 0) {
if (_root.wind_recharge > 0) {
} else {
_root.wind_recharge = _root.wind_totalrecharge;
_root.wind_activecount = _root.wind_activemax;
_root.windsound.setVolume(_root.ingame_sound);
_root.windsound.start(0, 3);
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_05_Jamaal3_converted.wav", _root.ingame_sound, 1);
}
}
}
if (Key.isDown(54)) {
if (_root.arrow_splash_researched > 0) {
if (_root.arrow_splash_recharge > 0) {
} else {
_root.arrow_splash_recharge = _root.arrow_splash_totalrecharge;
_root.arrow_splash_activecount = _root.arrow_splash_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_05_Jamaal3_converted.wav", _root.ingame_sound, 1);
}
}
}
if (Key.isDown(55)) {
if (_root.black_arrow_researched > 0) {
if (_root.black_arrow_recharge > 0) {
} else {
_root.black_arrow_recharge = _root.black_arrow_totalrecharge;
_root.black_arrow_activecount = _root.black_arrow_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_05_Jamaal3_converted.wav", _root.ingame_sound, 1);
}
}
}
if (Key.isDown(56)) {
if (_root.nova_researched > 0) {
if (_root.nova_recharge > 0) {
} else {
_root.nova_recharge = _root.nova_totalrecharge;
_root.nova_activecount = _root.nova_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_05_Jamaal3_converted.wav", _root.ingame_sound, 1);
}
}
}
if (_local12) {
if (game.clip.char0._currentframe > 30) {
if (char[0].shooting == 0) {
game.clip.char0.gotoAndPlay(1);
}
game.clip.charlegs0.gotoAndPlay(1);
} else {
game.clip.char0.play();
game.clip.charlegs0.play();
}
}
if (char[0].shooting == 0) {
} else {
fire(0, char[0].targetx, char[0].targety);
if (volley_activecount > 0) {
fire(0, char[0].targetx + 10, char[0].targety + 10);
fire(0, char[0].targetx - 10, char[0].targety - 10);
}
}
} else {
diefade(0);
}
var _local11 = created + 1;
var _local3 = 2;
while (_local3 < _local11) {
if (char[_local3].die == 0) {
if (char[_local3].stunned == 0) {
if ((!_root.char[_local3].moving) and (char[_local3].shooting == 0)) {
if (_root.char[_local3].melee) {
meleeAI(_local3);
} else if (_local3 != 0) {
blip2++;
if (blip2 > blipping) {
blip2 = 0;
if (char[_local3].selecttarget < 99) {
char[_local3].targetx = char[char[_local3].selecttarget].xtile;
char[_local3].targety = char[char[_local3].selecttarget].ytile;
moveAI(_root.char[_local3], _local3);
} else {
var _local8 = false;
if (!char[_local3].ranged) {
var _local9 = 3;
if (char[_local3].team == 1) {
_local9 = created + 1;
}
var _local4 = 0;
while (_local4 < _local9) {
_local8 = false;
if (char[_local4].team != char[_local3].team) {
if ((char[_local4].die == 0) and (char[_local4].nonreach == 0)) {
if (getDist(game.clip["char" + _local4]._x, game.clip["char" + _local4]._y, game.clip["char" + _local3]._x, game.clip["char" + _local3]._y) < 400) {
char[_local3].targetx = char[_local4].xtile;
char[_local3].targety = char[_local4].ytile;
if (game[(("t_" + char[_local3].targety) + "_") + char[_local3].targetx].walkable) {
getTarget(char[_local3].targetx, char[_local3].targety, game.clip["char" + char[_local3].selecttarget]._x, game.clip["char" + char[_local3].selecttarget]._y, _local3);
}
_local8 = true;
moveAI(_root.char[_local3], _local3);
break;
}
}
}
_local4++;
}
}
if (!_local8) {
if (char[_local3].posted) {
char[_local3].xtile = Math.round((game.clip["char" + _local3]._x - 50) / game.tileW);
char[_local3].ytile = Math.round((game.clip["char" + _local3]._y - 50) / game.tileH);
if ((char[_local3].xtile != char[_local3].postx) or (char[_local3].ytile != char[_local3].posty)) {
char[_local3].targetx = char[_local3].postx;
char[_local3].targety = char[_local3].posty;
getTarget(char[_local3].targetx, char[_local3].targety, game.clip["char" + char[_local3].selecttarget]._x, game.clip["char" + char[_local3].selecttarget]._y, _local3);
} else {
game.clip["char" + _local3].gotoAndStop(50);
game.clip["char" + _local3]._rotation = char[_local3].postr;
}
} else if ((Math.random() * 100) < 150) {
if (char[_local3].team == 1) {
char[_local3].targetx = Math.round(Math.random() * wtiles) + 1;
char[_local3].targety = (Math.round(Math.random() * 4) - 2) + char[0].ytile;
} else {
char[_local3].targetx = Math.round(Math.random() * wtiles) + 1;
char[_local3].targety = (Math.round(Math.random() * 3) + shriney) - 3;
if (_local3 == boss_id) {
char[_local3].targety = (Math.round(Math.random() * 6) + char[0].ytile) - 3;
}
}
if (char[_local3].ranged) {
char[_local3].targety = (Math.round(Math.random() * 3) + shriney) - 3;
if (_local3 == boss_id) {
char[_local3].targety = (Math.round(Math.random() * 6) + char[0].ytile) - 3;
}
}
if (game[(("t_" + char[_local3].targety) + "_") + char[_local3].targetx].walkable) {
getTarget(char[_local3].targetx, char[_local3].targety, game.clip["char" + char[_local3].selecttarget]._x, game.clip["char" + char[_local3].selecttarget]._y, _local3);
}
} else {
game.clip["char" + _local3].gotoAndStop(50);
}
}
}
}
}
} else if (char[_local3].melee) {
meleeAI(_local3);
} else {
moveAI(_root.char[_local3], _local3);
if (char[_local3].moving) {
if (char[_local3].shooting == 0) {
if (game.clip["char" + _local3]._currentframe != 50) {
if (game.clip["char" + _local3]._currentframe > 30) {
game.clip["char" + _local3].gotoAndPlay(1);
} else {
game.clip["char" + _local3].play();
}
}
}
}
if (char[_local3].shooting > 0) {
if (char[_local3].starget == 0) {
var _local6 = 0;
var _local5 = 0;
var _local7 = int(getDist(game.clip["char" + _local3]._x, game.clip["char" + _local3]._y, game.clip.char0._x, game.clip.char0._y) / 100);
if ((Math.random() * 100) > 50) {
_local7 = 0;
}
if (Key.isDown(39) or Key.isDown(68)) {
_local6 = 25 * _local7;
}
if (Key.isDown(38) or Key.isDown(87)) {
_local5 = -25 * _local7;
}
if (Key.isDown(40) or Key.isDown(83)) {
_local5 = 25 * _local7;
}
if (Key.isDown(37) or Key.isDown(65)) {
_local6 = -25 * _local7;
}
if (char[_local3].shooting == 50) {
firetest(_local3, game.clip["char" + char[_local3].starget]._x + _local6, game.clip["char" + char[_local3].starget]._y + _local5);
if ((Math.random() * 100) > 40) {
if (firetest(_local3, game.clip["char" + char[_local3].starget]._x + _local6, game.clip["char" + char[_local3].starget]._y + _local5) == false) {
if (firetest(_local3, game.clip["char" + char[_local3].starget]._x, game.clip["char" + char[_local3].starget]._y) == false) {
char[_local3].shooting = 0;
char[_local3].starget = 99;
char[_local3].moving = false;
char[_local3].pathcount = 0;
char[_local3].diry = 0;
char[_local3].dirx = 0;
char[_local3].path.length = 0;
char[_local3].path = null;
char[_local3].direct = false;
}
}
} else if (firetest(_local3, game.clip["char" + char[_local3].starget]._x, game.clip["char" + char[_local3].starget]._y) == false) {
if (firetest(_local3, game.clip["char" + char[_local3].starget]._x + _local6, game.clip["char" + char[_local3].starget]._y + _local5) == false) {
char[_local3].shooting = 0;
char[_local3].starget = 99;
char[_local3].moving = false;
char[_local3].pathcount = 0;
char[_local3].diry = 0;
char[_local3].dirx = 0;
char[_local3].path.length = 0;
char[_local3].path = null;
char[_local3].direct = false;
}
}
} else {
fire(_local3, game.clip["char" + char[_local3].starget]._x + _local6, game.clip["char" + char[_local3].starget]._y + _local5);
}
} else {
fire(_local3, game.clip["char" + char[_local3].starget]._x, game.clip["char" + char[_local3].starget]._y);
}
}
}
}
} else {
diefade(_local3);
}
if (_local3 == 2) {
}
if (char[1].die != 0) {
diefade(1);
}
_local3++;
}
movemissiles();
visibility(_local10);
}
function mouseisdownnow() {
var _local3 = Math.min(Math.max(int(((4 + heroagil) + _global.equip_agility) / 8), 1), 35);
if ((char[0].shooting < _local3) or (char[0].shooting == 0)) {
char[0].shooting = 40;
char[0].targetx = this._xmouse - game.clip._x;
char[0].targety = this._ymouse - game.clip._y;
fire(0, char[0].targetx, char[0].targety);
if (volley_activecount > 0) {
fire(0, char[0].targetx + 10, char[0].targety + 10);
fire(0, char[0].targetx - 10, char[0].targety - 10);
}
game.clip.char0.gotoAndStop(25);
}
}
function fire(owner, tx, ty) {
if (owner == 0) {
var _local6 = Math.min(Math.max(int(((4 + heroagil) + _global.equip_agility) / 8), 1), 35);
tx = _xmouse - game.clip._x;
ty = _ymouse - game.clip._y;
game.clip["char" + owner]._rotation = 90 + getAngle(game.clip["char" + owner]._x, game.clip["char" + owner]._y, tx, ty);
}
if (owner == boss_id) {
if (boss_charge_activecount > 0) {
char[owner].shooting = Math.min(char[owner].shooting, 8);
}
}
if (((char[owner].shooting == 8) and (owner != 0)) or ((owner == 0) and (char[owner].shooting <= _local6))) {
char[owner].moving = false;
char[owner].pathcount = 0;
char[owner].diry = 0;
char[owner].dirx = 0;
char[owner].path.length = 0;
char[owner].path = null;
char[owner].direct = false;
if (misslecount < misslemax) {
misslecount++;
} else {
misslecount = 0;
}
if (char[owner].cweapon == "rweapon") {
game.clip.attachMovie(char[owner].rweapon, "missle" + misslecount, 9990001 + misslecount);
} else {
game.clip.attachMovie(char[owner].lweapon, "missle" + misslecount, 9990001 + misslecount);
}
missle[misslecount] = {mowner:owner, targetx:tx, targety:ty, active:true, speed:30, cnt:0, maxc:21};
if (owner == boss_id) {
game.clip["missle" + misslecount]._xscale = 150;
game.clip["missle" + misslecount]._yscale = 150;
}
if (owner == 0) {
missle[misslecount].speed = 40;
missle[misslecount].maxc = 18;
char[owner].shooting = 0;
clickdelay = 40 - _local6;
missle[misslecount].targetx = _xmouse - game.clip._x;
missle[misslecount].targety = _ymouse - game.clip._y;
game.clip["missle" + misslecount]._xscale = 150;
game.clip["missle" + misslecount]._yscale = 150;
if (currentarrow == "greenarrow") {
poisonarrow_qty = poisonarrow_qty - 1;
if (poisonarrow_qty <= 0) {
currentarrow = "arrow";
char[owner].rweapon = currentarrow;
char[owner].lweapon = currentarrow;
_root.experiencebar.weapon_choice.gotoAndStop(1);
_root.experiencebar.weapon_choice.ammo_txt = "";
} else {
_root.experiencebar.weapon_choice.ammo_txt = _root.poisonarrow_qty;
}
} else if (currentarrow == "firearrow") {
firearrow_qty = firearrow_qty - 1;
if (firearrow_qty <= 0) {
currentarrow = "arrow";
char[owner].rweapon = currentarrow;
char[owner].lweapon = currentarrow;
_root.experiencebar.weapon_choice.gotoAndStop(1);
_root.experiencebar.weapon_choice.ammo_txt = "";
} else {
_root.experiencebar.weapon_choice.ammo_txt = _root.firearrow_qty;
}
} else if (currentarrow == "icearrow") {
icearrow_qty = icearrow_qty - 1;
if (icearrow_qty <= 0) {
currentarrow = "arrow";
char[owner].rweapon = currentarrow;
char[owner].lweapon = currentarrow;
_root.experiencebar.weapon_choice.gotoAndStop(1);
_root.experiencebar.weapon_choice.ammo_txt = "";
} else {
_root.experiencebar.weapon_choice.ammo_txt = _root.icearrow_qty;
}
} else {
_root.experiencebar.weapon_choice.ammo_txt = "";
}
}
game.clip["missle" + misslecount]._x = game.clip["char" + owner]._x;
game.clip["missle" + misslecount]._y = game.clip["char" + owner]._y;
game.clip["missle" + misslecount]._rotation = 90 + getAngle(game.clip["missle" + misslecount]._x, game.clip["missle" + misslecount]._y, tx, ty);
game.clip["missle" + misslecount]._x = game.clip["char" + owner]._x;
game.clip["missle" + misslecount]._y = game.clip["char" + owner]._y;
if ((owner == 0) or (owner == boss_id)) {
if (_root.splitarrow_activecount > 0) {
splitarrow(0, tx + 20, ty + 20);
splitarrow(0, tx - 20, ty - 20);
}
if (owner == boss_id) {
if (boss_id == 0) {
} else {
splitarrow(boss_id, tx + 20, ty + 20);
splitarrow(boss_id, tx - 20, ty - 20);
}
}
}
if (char[owner].race == "dragon") {
missle[misslecount].speed = missle[misslecount].speed + (char[0].dup / 2);
game.clip["missle" + misslecount]._x = game.clip["char" + owner]._x + (40 * Math.sin((Math.PI * game.clip["missle" + misslecount]._rotation) / 180));
game.clip["missle" + misslecount]._y = game.clip["char" + owner]._y + (40 * (-Math.cos((Math.PI * game.clip["missle" + misslecount]._rotation) / 180)));
music_base.dragonbreath.start();
} else {
switch (int(Math.random() * 2)) {
case 1 :
playSound(char_audio[owner].attack1, ingame_sound, 1);
break;
default :
playSound(char_audio[owner].attack2, ingame_sound, 1);
}
}
} else if ((char[owner].shooting == 14) and (owner != 0)) {
if (char[owner].ranged) {
game.clip["char" + owner].gotoAndPlay(25);
game.clip["char" + owner]._rotation = 90 + getAngle(game.clip["char" + owner]._x, game.clip["char" + owner]._y, tx, ty);
if (char[owner].race == "goblintower") {
game.clip["char" + owner].tower._rotation = -game.clip["char" + owner]._rotation;
} else if (char[cp].race == "goblintent") {
game.clip["char" + cp]._rotation = 0;
}
}
} else if (owner == 0) {
if (char[owner].shooting == (_local6 + 5)) {
game.clip["char" + owner].gotoAndPlay(25);
game.clip["char" + owner]._rotation = 90 + getAngle(game.clip["char" + owner]._x, game.clip["char" + owner]._y, tx, ty);
}
}
if (char[owner].shooting > 0) {
if (char[owner].ranged and (owner != 0)) {
game.clip["char" + owner]._rotation = 90 + getAngle(game.clip["char" + owner]._x, game.clip["char" + owner]._y, tx, ty);
if (char[owner].race == "goblintower") {
game.clip["char" + owner].tower._rotation = -game.clip["char" + owner]._rotation;
} else if (char[cp].race == "goblintent") {
game.clip["char" + cp]._rotation = 0;
}
}
char[owner].shooting--;
if (owner != 0) {
if (game.clip["char" + owner]._currentframe < 25) {
game.clip["char" + owner].gotoAndPlay(25);
}
}
}
if (char[owner].shooting == 0) {
char[owner].starget = 99;
}
if (owner == 0) {
}
}
function splitarrow(owner, tx, ty) {
if (misslecount < misslemax) {
misslecount++;
} else {
misslecount = 0;
}
if (char[owner].cweapon == "rweapon") {
game.clip.attachMovie(char[owner].rweapon, "missle" + misslecount, 9990001 + misslecount);
} else {
game.clip.attachMovie(char[owner].lweapon, "missle" + misslecount, 9990001 + misslecount);
}
missle[misslecount] = {mowner:owner, targetx:tx, targety:ty, active:true, speed:30, cnt:0, maxc:30};
if (owner == 0) {
missle[misslecount].speed = 30;
missle[misslecount].targetx = _xmouse - game.clip._x;
missle[misslecount].targety = _ymouse - game.clip._y;
game.clip["missle" + misslecount]._xscale = 150;
game.clip["missle" + misslecount]._yscale = 150;
if (currentarrow == "greenarrow") {
poisonarrow_qty = poisonarrow_qty - 1;
if (poisonarrow_qty <= 0) {
currentarrow = "arrow";
char[owner].rweapon = currentarrow;
char[owner].lweapon = currentarrow;
_root.experiencebar.weapon_choice.gotoAndStop(1);
_root.experiencebar.weapon_choice.ammo_txt = "";
} else {
_root.experiencebar.weapon_choice.ammo_txt = _root.poisonarrow_qty;
}
} else if (currentarrow == "firearrow") {
firearrow_qty = firearrow_qty - 1;
if (firearrow_qty <= 0) {
currentarrow = "arrow";
char[owner].rweapon = currentarrow;
char[owner].lweapon = currentarrow;
_root.experiencebar.weapon_choice.gotoAndStop(1);
_root.experiencebar.weapon_choice.ammo_txt = "";
} else {
_root.experiencebar.weapon_choice.ammo_txt = _root.firearrow_qty;
}
} else if (currentarrow == "icearrow") {
icearrow_qty = icearrow_qty - 1;
if (icearrow_qty <= 0) {
currentarrow = "arrow";
char[owner].rweapon = currentarrow;
char[owner].lweapon = currentarrow;
_root.experiencebar.weapon_choice.gotoAndStop(1);
_root.experiencebar.weapon_choice.ammo_txt = "";
} else {
_root.experiencebar.weapon_choice.ammo_txt = _root.icearrow_qty;
}
}
}
game.clip["missle" + misslecount]._x = game.clip["char" + owner]._x;
game.clip["missle" + misslecount]._y = game.clip["char" + owner]._y;
game.clip["missle" + misslecount]._rotation = 90 + getAngle(game.clip["missle" + misslecount]._x, game.clip["missle" + misslecount]._y, tx, ty);
game.clip["missle" + misslecount]._x = game.clip["char" + owner]._x;
game.clip["missle" + misslecount]._y = game.clip["char" + owner]._y;
}
function movemissiles() {
var _local1 = 0;
while (_local1 < (misslemax + 1)) {
if (missle[_local1].active) {
game.clip["missle" + _local1]._y = game.clip["missle" + _local1]._y + (missle[_local1].speed * (-Math.cos((Math.PI * game.clip["missle" + _local1]._rotation) / 180)));
game.clip["missle" + _local1]._x = game.clip["missle" + _local1]._x + (missle[_local1].speed * Math.sin((Math.PI * game.clip["missle" + _local1]._rotation) / 180));
missle[_local1].cnt++;
missiletick++;
if (missiletick > 0) {
missiletick = 0;
var _local6 = created + 1;
var _local4 = 3;
if (char[missle[_local1].mowner].team == 1) {
_local4 = created + 1;
}
var _local3 = 0;
while (_local3 < _local4) {
missileloop(_local1, _local3);
_local3++;
}
missileloop(_local1, 1);
if (missle[_local1].cnt > missle[_local1].maxc) {
game.clip["missle" + _local1].swapDepths(501);
game.clip["missle" + _local1].removeMovieClip();
missle[_local1].active = false;
trace("remove arrow");
}
if ((game.clip["missle" + _local1]._y > ((htiles * 100) + 100)) or (game.clip["missle" + _local1]._y < -200)) {
game.clip["missle" + _local1].swapDepths(501);
game.clip["missle" + _local1].removeMovieClip();
missle[_local1].active = false;
}
if ((game.clip["missle" + _local1]._x > ((wtiles * 100) + 100)) or (game.clip["missle" + _local1]._x < -200)) {
game.clip["missle" + _local1].swapDepths(501);
game.clip["missle" + _local1].removeMovieClip();
missle[_local1].active = false;
}
if (missle[_local1].active) {
var _local5 = false;
var _local2 = 0;
while (_local2 < (ab + 1)) {
if (getDist(arrowblock[_local2].xx, arrowblock[_local2].yy, game.clip["missle" + _local1]._x, game.clip["missle" + _local1]._y) < 48) {
_local5 = true;
break;
}
_local2++;
}
if (_local5) {
game.clip["missle" + _local1].swapDepths(501);
game.clip["missle" + _local1].removeMovieClip();
missle[_local1].active = false;
}
}
}
}
_local1++;
}
}
function missileloop(i, j) {
if (j == missle[i].mowner) {
} else if (char[j].die == 0) {
if (char[missle[i].mowner].team != char[j].team) {
if (game.clip["missle" + i].hb.hitTest(game.clip["char" + j].hbox)) {
if ((j > 95) and (j < 99)) {
trace("hit castle");
}
if (char[j].selecttarget == 99) {
char[j].moving = false;
if (char[missle[i].mowner].race != "rogue") {
if (char[missle[i].mowner].nonreach == 0) {
char[j].selecttarget = missle[i].mowner;
}
}
}
if ((char[missle[i].mowner].rweapon == "firebolt") or (char[missle[i].mowner].rweapon == "firearrow")) {
game.clip.attachMovie("explosion1", "explosion" + i, 900300 + i);
game.clip["explosion" + i]._x = game.clip["missle" + i]._x;
game.clip["explosion" + i]._y = game.clip["missle" + i]._y;
if (((char[j].race == "goblintower") or (char[j].race == "goblintent")) or (char[j].race == "shrine")) {
} else if (missle[i].mowner == 0) {
char[j].knockback = char[j].knockback + 8;
char[j].stunned = char[j].stunned + 8;
char[j].knockbacky = (missle[i].speed * 0.25) * (-Math.cos((Math.PI * game.clip["missle" + i]._rotation) / 180));
char[j].knockbackx = (missle[i].speed * 0.25) * Math.sin((Math.PI * game.clip["missle" + i]._rotation) / 180);
} else {
char[j].knockback = char[j].knockback + 4;
char[j].stunned = char[j].stunned + 4;
char[j].knockbacky = (missle[i].speed * 0.15) * (-Math.cos((Math.PI * game.clip["missle" + i]._rotation) / 180));
char[j].knockbackx = (missle[i].speed * 0.15) * Math.sin((Math.PI * game.clip["missle" + i]._rotation) / 180);
}
firedamage = Math.round(((Math.random() * char[missle[i].mowner].mattack) / 2) + (char[missle[i].mowner].mattack / 2));
game.clip["missle" + i]._x = 90000 /* 0x015F90 */;
game.clip["missle" + i].swapDepths(501);
game.clip["missle" + i].removeMovieClip();
missle[i].active = false;
music_base.Fireball3.start();
} else if (char[missle[i].mowner].rweapon == "blackarrow") {
} else if (char[missle[i].mowner].rweapon == "icearrow") {
game.clip.attachMovie("bloodspatter", "explosion" + i, 900300 + i);
char[j].stunned = char[j].stunned + 50;
game.clip["char" + j].stop();
char[j].frozen = char[j].frozen + 100;
firedamage = 100;
game.clip["explosion" + i]._x = game.clip["missle" + i]._x;
game.clip["explosion" + i]._y = game.clip["missle" + i]._y;
game.clip["explosion" + i]._rotation = game.clip["missle" + i]._rotation + 180;
game.clip["missle" + i]._x = 90000 /* 0x015F90 */;
game.clip["missle" + i].swapDepths(501);
game.clip["missle" + i].removeMovieClip();
missle[i].active = false;
} else if (((char[missle[i].mowner].rweapon == "arrow") or (char[missle[i].mowner].rweapon == "redarrow")) or (char[missle[i].mowner].rweapon == "greenarrow")) {
switch (int(Math.random() * 4)) {
case 1 :
playSound("arrow_hit1", ingame_sound, 1);
break;
case 2 :
playSound("arrow_hit2", ingame_sound, 1);
break;
case 3 :
playSound("arrow_hit3", ingame_sound, 1);
break;
case 4 :
playSound("arrow_hit4", ingame_sound, 1);
break;
default :
playSound("arrow_hit1", ingame_sound, 1);
}
if (char[missle[i].mowner].rweapon == "greenarrow") {
char[j].poisoned = char[j].poisoned + 120;
game.clip.attachMovie("poisonsplatter2", "explosion" + i, 900300 + i);
} else {
game.clip.attachMovie("bloodspatter", "explosion" + i, 900300 + i);
}
game.clip["explosion" + i]._x = game.clip["missle" + i]._x;
game.clip["explosion" + i]._y = game.clip["missle" + i]._y;
game.clip["explosion" + i]._rotation = game.clip["missle" + i]._rotation + 180;
game.clip["missle" + i]._x = 90000 /* 0x015F90 */;
game.clip["missle" + i].swapDepths(501);
game.clip["missle" + i].removeMovieClip();
missle[i].active = false;
} else if (char[missle[i].mowner].rweapon == "blackarrow") {
game.clip.attachMovie("bloodspatter", "explosion" + i, 900300 + i);
game.clip["explosion" + i]._x = game.clip["missle" + i]._x;
game.clip["explosion" + i]._y = game.clip["missle" + i]._y;
game.clip["explosion" + i]._rotation = game.clip["missle" + i]._rotation + 180;
} else if (char[missle[i].mowner].rweapon == "deathcoil") {
game.clip.attachMovie("poisonsplatter", "explosion" + i, 900300 + i);
game.clip["explosion" + i]._x = game.clip["missle" + i]._x;
game.clip["explosion" + i]._y = game.clip["missle" + i]._y;
game.clip["explosion" + i]._rotation = game.clip["missle" + i]._rotation + 180;
game.clip["missle" + i]._x = 90000 /* 0x015F90 */;
game.clip["missle" + i].swapDepths(501);
game.clip["missle" + i].removeMovieClip();
missle[i].active = false;
} else if (char[missle[i].mowner].rweapon == "boulder") {
game.clip.attachMovie("bloodspatter", "explosion" + i, 900300 + i);
game.clip["explosion" + i]._x = game.clip["missle" + i]._x;
game.clip["explosion" + i]._y = game.clip["missle" + i]._y;
game.clip["explosion" + i]._rotation = game.clip["missle" + i]._rotation + 180;
game.clip["missle" + i]._x = 90000 /* 0x015F90 */;
game.clip["missle" + i].swapDepths(501);
game.clip["missle" + i].removeMovieClip();
} else {
game.clip.attachMovie("explosion1", "explosion" + i, 900300 + i);
game.clip["explosion" + i]._x = game.clip["missle" + i]._x;
game.clip["explosion" + i]._y = game.clip["missle" + i]._y;
game.clip["missle" + i]._x = 90000 /* 0x015F90 */;
game.clip["missle" + i].swapDepths(501);
game.clip["missle" + i].removeMovieClip();
missle[i].active = false;
music_base.Fireball3.start();
playSound("Fireball3", ingame_sound, 1);
}
var _local4 = Math.round(((Math.random() * char[missle[i].mowner].mattack) / 2) + (char[missle[i].mowner].mattack / 2)) + firedamage;
firedamage = 0;
if (j == 0) {
_local4 = Math.max(int(_local4 * ((100 - defensepercent) / 100)), 1);
}
if (critical_level > 0) {
if (missle[i].mowner == 0) {
if ((Math.random() * 100) < 5) {
if (critical_level == 1) {
_local4 = _local4 * 3;
} else if (critical_level == 2) {
_local4 = _local4 * 6;
} else if (critical_level == 3) {
_local4 = _local4 * 12;
}
if ((Math.random() * 100) > 90) {
playSound("Male_CriticalHit_03_Jamaal3_converted.wav", ingame_sound, 1);
} else {
playSound("38874__swuing__footstep-grass.wav", ingame_sound * 2, 1);
}
game.clip.attachMovie("dmtext", ("dmg" + i) + 30, (99200 + i) + 30);
game.clip[("dmg" + i) + 30].dmg = "CRITICAL HIT!";
game.clip[("dmg" + i) + 30]._x = game.clip["char" + j]._x;
game.clip[("dmg" + i) + 30]._y = game.clip["char" + j]._y + 30;
_root.game.clip.attachMovie("buff_red", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip["char" + j]._x;
_root.game.clip.buff_white._y = _root.game.clip["char" + j]._y;
}
}
}
char[j].hpCurrent = char[j].hpCurrent - _local4;
game.clip.attachMovie("dmtext", "dmg" + i, 99200 + i);
game.clip["dmg" + i].dmg = _local4;
game.clip["dmg" + i]._x = game.clip["char" + j]._x;
game.clip["dmg" + i]._y = game.clip["char" + j]._y;
testDeath(j, missle[i].mowner);
}
}
}
}
function testDeath(cp, killer) {
game.clip["hb" + cp].hm._y = 35 - int((char[cp].hpCurrent / char[cp].hpMax) * 70);
if (char[cp].hpCurrent < 1) {
char[cp].poisoned = 0;
var _local5 = created + 1;
var _local3 = 1;
while (_local3 < _local5) {
if (char[_local3].selecttarget == cp) {
char[_local3].selecttarget = 99;
char[_local3].starget = 99;
char[_local3].moving = false;
char[_local3].pathcount = 0;
char[_local3].diry = 0;
char[_local3].dirx = 0;
char[_local3].path.length = 0;
char[_local3].path = null;
char[_local3].direct = false;
}
_local3++;
}
if (cp == 0) {
game.clip.attachMovie("explosion2", "explosion" + cp, 900300 + cp);
game.clip["explosion" + cp]._x = game.clip["char" + cp]._x;
game.clip["explosion" + cp]._y = game.clip["char" + cp]._y;
game.clip["explosion" + cp].gotoAndPlay(4);
game.clip["char" + cp].gotoAndPlay(151);
game.clip["charlegs" + cp].gotoAndPlay(151);
game.clip["char" + cp].swapDepths(9500 + cp);
game.clip["charlegs" + cp].swapDepths(9499 + cp);
game.clip["hb" + cp].swapDepths(501);
game.clip["hb" + cp].removeMovieClip();
char[cp].die = 1;
defeatcount = 150;
char[cp].die = 1;
} else {
game.clip["char" + cp].gotoAndPlay(151);
game.clip["char" + cp].swapDepths(9500 + cp);
game.clip["hb" + cp].swapDepths(501);
game.clip["hb" + cp].removeMovieClip();
if (char[cp].race == "goblintent") {
base_count--;
if (game.clip["char" + cp]._x == ((startups[clevel].startx * 100) + 50)) {
if (game.clip["char" + cp]._y == ((startups[clevel].starty * 100) + 50)) {
game.clip.enemy_start_point._x = -1000;
startups[clevel].startx = 4;
startups[clevel].starty = 0;
}
}
if (game.clip["char" + cp]._x == ((startups[clevel].startx2 * 100) + 50)) {
if (game.clip["char" + cp]._y == ((startups[clevel].starty2 * 100) + 50)) {
game.clip.enemy_start_point2._x = -1000;
startups[clevel].startx2 = 4;
startups[clevel].starty2 = 0;
}
}
if (game.clip["char" + cp]._x == ((startups[clevel].startx3 * 100) + 50)) {
if (game.clip["char" + cp]._y == ((startups[clevel].starty3 * 100) + 50)) {
game.clip.enemy_start_point3._x = -1000;
startups[clevel].startx3 = 4;
startups[clevel].starty3 = 0;
}
}
}
char[cp].die = 1;
gamescore = gamescore + char[cp].hpMax;
playSound(char_audio[cp].die, ingame_sound, 1);
if (char[cp].gold > 0) {
gold = gold + char[cp].gold;
game.clip.attachMovie("goldtext", "goldtext" + cp, 99300 + cp);
game.clip["goldtext" + cp]._x = game.clip.char0._x;
game.clip["goldtext" + cp]._y = game.clip.char0._y;
game.clip["goldtext" + cp].gld = "+" + char[cp].gold;
char[cp].gold = 0;
_global.GOLD = gold;
playSound("Drop_Coins_01_converted.wav", ingame_sound, 1);
if (int(Math.random() * 20) == 15) {
potionscount++;
game.clip.attachMovie("potions", "coins" + potionscount, 9600 + potionscount);
game.clip["coins" + potionscount]._x = game.clip["char" + cp]._x;
game.clip["coins" + potionscount]._y = game.clip["char" + cp]._y;
if (potionscount > 5) {
potionscount = 0;
}
}
}
}
if ((char[0].mtarget = cp)) {
char[0].moving = false;
char[0].pathcount = 0;
char[0].diry = 0;
char[0].dirx = 0;
char[0].path.length = 0;
char[0].path = null;
char[0].moving = false;
}
if (killer < 3) {
heroexp = heroexp + (char[cp].hpMax * 2);
levelup(0);
game.clip.attachMovie("xptext", "xptext" + killer, 99400 + _local3);
game.clip["xptext" + killer]._x = ((game.clip.char0._x + Math.random()) + 50) - 25;
game.clip["xptext" + killer]._y = ((game.clip.char0._y + Math.random()) + 50) - 25;
game.clip["xptext" + killer].xp = ("+" + (char[cp].hpMax * 2)) + "XP";
}
} else if (char[cp].hpCurrent < int(char[cp].hpMax / 4)) {
if (char[cp].race == "goblintent") {
if (base_count == 1) {
if (createrate > 1) {
_root.game.clip.attachMovie("buff_red", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip["char" + cp]._x;
_root.game.clip.buff_white._y = _root.game.clip["char" + cp]._y;
createrate = 1;
trace("createrate =" + createrate);
}
}
}
}
}
function diefade(cp) {
if (char[cp].hpCurrent < 1) {
if (game.clip["char" + cp]._alpha > 25) {
game.clip["char" + cp]._alpha = game.clip["char" + cp]._alpha - 1;
} else {
game.clip["char" + cp].swapDepths(501);
game.clip["char" + cp].removeMovieClip();
var _local4 = 0;
var _local5 = created + 1;
var _local2 = 3;
while (_local2 < _local5) {
if (char[_local2].team > 1) {
if (char[_local2].hpCurrent > 0) {
_local4++;
break;
}
}
_local2++;
}
trace("bdalive = " + _local4);
if (_local4 == 0) {
if (createarray > level[clevel].length) {
if (victorycount == 0) {
if (levelend._x > 0) {
gamemode = 3;
} else {
victorycount = 100;
_root.levels_complete[clevel] = true;
}
}
}
}
if (cp == 0) {
} else if ((((cp > 0) and (cp < 13)) and (char[cp].team == 1)) and (goodguys[cp].unit > 0)) {
goodguys[cp].unit = 0;
goodguycount--;
} else if (cp == 1) {
if (defeatcount == 0) {
if (levelend._x > 0) {
gamemode = 3;
} else {
defeatcount = 100;
}
}
}
}
if (game.clip["char" + cp]._currentframe < 150) {
game.clip["char" + cp].gotoAndPlay(151);
}
if (game.clip["char" + cp]._alpha == 80) {
music_base.bodyfall.start();
}
if (game.clip["char" + cp]._alpha < 30) {
}
}
}
function changeColor(item, ra, rb, ga, gb, ba, bb, aa, ab) {
var _local2 = new Color(item);
var _local1 = new Object();
if (ra != 0) {
_local1.ra = ra;
}
if (ga != 0) {
_local1.ga = ga;
}
if (ba != 0) {
_local1.ba = ba;
}
if (aa != 0) {
_local1.aa = aa;
}
if (rb != 0) {
_local1.rb = rb;
}
if (gb != 0) {
_local1.gb = gb;
}
if (bb != 0) {
_local1.bb = bb;
}
if (ab != 0) {
_local1.ab = ab;
}
_local2.setTransform(_local1);
}
function mouseicons() {
selector = 0;
var _local2 = created + 1;
var _local1 = 1;
while (_local1 < _local2) {
if (game.clip["char" + _local1].hitTest(bullseye)) {
if ((char[_local1].team > 1) and (char[_local1].hpCurrent > 0)) {
bullseye.gotoAndStop(1);
selector = _local1;
if (char[0].selecttarget != _local1) {
}
}
} else if (char[0].selecttarget != _local1) {
}
_local1++;
}
if (selector == 0) {
if (game[(("t_" + Math.floor((_ymouse - game.clip._y) / game.tileH)) + "_") + Math.floor((_xmouse - game.clip._x) / game.tileW)].walkable) {
bullseye.gotoAndStop(3);
} else {
bullseye.gotoAndStop(4);
}
}
}
function loadnextmap(mapno, locx, locy) {
game = {tileW:40, tileH:40, currentMap:mapno, visx:8, visy:12, centerx:320, centery:240};
herox = locx;
heroy = locy;
buildMap(_root["myMap" + game.currentMap]);
}
function refreshlevel() {
savegame(_root.current_slot);
stopAllSounds();
if (nova_researched > 0) {
_root.nova_recharge = 5;
}
if (black_arrow_researched > 0) {
_root.black_arrow_recharge = 5;
}
if (_root.splitarrow_researched > 0) {
_root.splitarrow_recharge = 5;
}
if (_root.volley_researched > 0) {
_root.volley_recharge = 5;
}
if (_root.summon_researched > 0) {
_root.summon_recharge = 5;
}
if (_root.wind_researched > 0) {
_root.wind_recharge = 5;
}
if (_root.dash_researched > 0) {
_root.dash_recharge = 5;
}
if (_root.arrow_splash_researched > 0) {
_root.arrow_splash_recharge = 5;
}
currentarrow = "arrow";
boss_id = 0;
boss_charge = 0;
boss_charge_activecount = 0;
createrate = 25 - clevel;
created = 2;
level[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 2];
level[1].count = 37;
level[2] = [0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 2, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2];
level[2].count = 37;
level[3] = [0, 51, 0, 0, 0, 0, 2, 1, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, 2, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 2, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 2, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 1, 0, 0, 0, 1, 40];
level[3].count = 30;
level[4] = [0, 51, 0, 50, 0, 0, 2, 1, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 2, 2, 1, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 1, 2, 0, 0, 0, 0, 1, 1, 2, 2, 1, 1, 2, 2, 1, 2, 1, 2, 0, 0, 0, 0, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 1, 1, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 3, 3];
level[4].count = 30;
level[5] = [0, 51, 0, 0, 50, 2, 1, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 2, 2, 1, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 4, 0, 0, 0, 0, 1, 1, 2, 2, 1, 1, 2, 2, 1, 2, 3, 4, 0, 0, 0, 0, 1, 1, 2, 2, 1, 1, 3, 2, 2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 2, 4, 1, 3, 2, 4, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 2, 2, 4, 1, 1, 3, 4, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 1, 3, 2, 2, 4, 2, 2, 2, 2, 4, 3, 1, 1, 3, 3];
level[5].count = 30;
level[6] = [0, 51, 0, 50, 50, 2, 1, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 2, 2, 1, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 3, 1, 3, 4, 4, 3, 3, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 4, 4, 3, 3, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 1, 1, 3, 3, 3, 1, 3, 4, 2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 2, 4, 4, 2, 4, 4, 2, 4, 4, 2, 4, 2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 1, 3, 3, 1, 3, 3, 3, 1, 3, 3, 1, 3, 3, 1, 3, 1, 3, 3, 1, 3, 3, 1, 3, 3, 1, 3, 1, 3, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 1, 3, 3, 3, 4, 4, 2, 2, 4, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 4, 2, 1, 1, 7, 42];
level[6].count = 30;
level[7] = [0, 51, 51, 50, 50, 50, 3, 4, 4, 3, 3, 4, 4, 3, 0, 0, 0, 0, 3, 4, 4, 3, 4, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 3, 3, 3, 4, 4, 3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5];
level[7].count = 40;
level[8] = [0, 51, 51, 50, 50, 50, 5, 5, 3, 4, 5, 5, 4, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 19];
level[8].count = 36;
level[9] = [0, 51, 51, 50, 50, 50, 3, 4, 5, 5, 3, 3, 3, 1, 2, 3, 4, 5, 5, 5, 5, 4, 4, 5, 3, 3, 5, 5, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 3, 3, 4, 4, 4, 4, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1, 2, 1, 2, 1, 1, 2, 3, 4, 3, 4, 1, 1, 2, 2, 1, 1, 3, 3, 4, 4, 1, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 5, 4, 3, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 7, 5, 4, 5, 7, 5, 3, 5, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 1, 4, 2, 3, 1, 2, 4, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5, 3, 6, 4, 7, 5, 5, 3, 3, 5, 5, 4, 5, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 19, 41, 19, 19, 19];
level[9].count = 42;
level[10] = [0, 51, 52, 52, 52, 13, 3, 3, 4, 4, 3, 4, 1, 2, 3, 4, 5, 6, 7, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 6, 6, 1, 2, 3, 4, 5, 4, 4, 4, 4, 3, 3, 3, 6, 6, 6, 1, 2, 3, 4, 5, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 13, 7, 7, 13, 6, 6, 6, 6, 6, 7, 13, 7, 7, 13, 7, 7, 6, 13, 6, 6, 13, 5, 6, 6, 7, 13, 3, 2, 3, 2, 1, 4, 5, 6, 8, 7, 4, 13, 8, 7, 5, 2, 6, 5, 8, 13, 8, 8, 1, 2, 3, 4, 5, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 6, 6, 13, 5, 6, 6, 7, 13, 3, 2, 3, 2, 1, 4, 5, 6, 8, 7, 4, 13, 8, 7, 5, 2, 6, 5, 8, 13, 8, 8, 1, 2, 3, 4, 5, 13, 13, 13, 13, 13, 13, 13, 11, 13, 13, 13];
level[10].count = 36;
level[11] = [0, 51, 52, 52, 52, 3, 3, 3, 13, 3, 3, 3, 1, 2, 3, 4, 5, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 1, 2, 3, 4, 5, 3, 3, 1, 2, 3, 4, 5, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 13, 7, 7, 13, 6, 6, 6, 6, 6, 7, 13, 7, 7, 13, 7, 7, 6, 13, 6, 6, 13, 5, 6, 6, 7, 13, 3, 2, 3, 2, 1, 4, 5, 6, 11, 13, 13, 13, 11, 13, 5, 2, 6, 11, 8, 13, 8, 8, 8, 11, 8, 8, 13, 13, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 13, 6, 6, 13, 5, 6, 6, 7, 13, 3, 2, 3, 2, 1, 4, 5, 6, 8, 7, 4, 13, 8, 7, 5, 2, 6, 5, 8, 13, 8, 8, 1, 2, 3, 4, 5, 13, 13, 13, 13, 13, 11, 13, 13, 13, 25, 25];
level[11].count = 40;
level[12] = [0, 51, 52, 52, 52, 13, 1, 2, 3, 4, 5, 13, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 13, 13, 13, 6, 6, 6, 1, 2, 3, 4, 5, 13, 6, 13, 6, 6, 11, 11, 13, 13, 11, 13, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 13, 7, 7, 13, 6, 6, 6, 6, 25, 7, 13, 7, 7, 13, 7, 7, 6, 13, 6, 6, 13, 5, 6, 6, 7, 13, 3, 2, 3, 2, 25, 11, 11, 6, 3, 7, 13, 13, 8, 7, 5, 13, 6, 5, 8, 13, 11, 11, 8, 8, 11, 8, 13, 13, 13, 13, 13, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 13, 11, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 11, 11, 25, 43, 25, 11, 11, 11, 11, 13, 7, 7, 6, 13, 6, 6, 13, 5, 6, 6, 7, 13, 3, 2, 3, 2, 25, 11, 11, 6, 3, 7, 13, 13, 8, 7, 5, 13, 6, 5, 8, 13, 11, 11, 8, 8, 11, 8, 13, 13, 13, 13, 13, 25, 25, 25, 25, 25];
level[12].count = 50;
level[13] = [0, 51, 10, 1, 2, 3, 4, 5, 10, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 10, 1, 2, 3, 4, 5, 14, 14, 10, 6, 8, 6, 7, 6, 8, 14, 7, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 19, 10, 10, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 14, 7, 6, 14, 6, 8, 6, 7, 6, 14, 6, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 8, 6, 7, 6, 14, 14, 14, 6, 8, 6, 7, 6, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 19, 19, 10, 10, 10, 19, 19, 19, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 13, 19, 13, 19, 13, 19, 13, 10, 19];
level[13].count = 52;
level[14] = [0, 51, 13, 13, 11, 13, 1, 2, 3, 4, 5, 13, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 1, 2, 3, 4, 5, 11, 11, 13, 13, 13, 1, 2, 3, 4, 5, 11, 11, 11, 11, 11, 11, 11, 13, 1, 2, 3, 4, 5, 13, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 13, 13, 13, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 13, 19, 13, 19, 13, 19, 13, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 13, 19, 13, 19, 13, 19, 13, 10, 19];
level[14].count = 52;
level[15] = [0, 51, 13, 13, 11, 13, 1, 2, 3, 4, 5, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 13, 13, 11, 11, 11, 11, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 11, 13, 13, 13, 1, 2, 3, 4, 5, 11, 11, 11, 11, 1, 2, 3, 4, 5, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 13, 19, 13, 19, 13, 19, 13, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 13, 19, 13, 19, 13, 19, 13, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 10, 19, 13, 19, 13, 19, 13, 19, 13, 10, 19, 13, 13, 13, 13, 13, 45];
level[15].count = 52;
level[16] = [0, 51, 52, 52, 52, 52, 52, 52, 0, 0, 2, 1, 2, 0, 0, 1, 0, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 0, 1, 0, 2, 0, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, 2, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 2, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 0, 1, 0, 2, 0, 3, 0, 0, 0, 4, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 4, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 4, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 0, 3, 0, 0, 0, 3, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 40, 42, 25, 25, 25, 25, 25, 25, 25, 25, 25];
level[16].count = 30;
level[17] = [0, 51, 52, 52, 52, 52, 52, 52, 0, 0, 2, 1, 2, 0, 0, 1, 0, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 0, 1, 0, 2, 0, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, 2, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 2, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 0, 1, 0, 2, 0, 3, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 4, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 4, 0, 4, 0, 0, 0, 0, 0, 0, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 0, 3, 0, 0, 0, 3, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 45, 43];
level[17].count = 30;
level[18] = [0, 51, 52, 52, 52, 52, 52, 52, 0, 0, 2, 1, 2, 0, 0, 1, 0, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 0, 1, 0, 2, 0, 2, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 2, 1, 2, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 2, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 0, 1, 0, 2, 0, 3, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 4, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 3, 0, 4, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 0, 3, 0, 0, 0, 3, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 19, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 44];
level[18].count = 30;
if ((clevel > 6) and (clevel < 10)) {
_root.attachMovie("darkness", "darkness", 2);
_root.darkness._x = 0;
_root.darkness._y = 0;
_root.darkness.gotoAndStop(59);
} else {
_root.darkness.swapDepths(501);
_root.darkness.removeMovieClip();
}
herodefenses();
setup_special();
herospeed = Math.min(Math.max(int(((40 + heroagil) + _global.equip_agility) / 10), 6), 15);
char[0].speed = herospeed;
goblintower_count = 0;
if (abilitypoints > 0) {
arrange_icons(2, 0);
} else {
levelup_icon = 0;
}
base_count = startups[clevel].count;
soundNum = 1;
playSound("music3", ingame_music, 99);
if (clevel < 4) {
_root.playSound("Birds-By-The-Creek", int(_root.ingame_sound / 3), 4);
}
if (((clevel == 1) or (clevel == 7)) or (clevel == 13)) {
playSound("Male_EnteringDungeon_09_Jamaal3_converted.wav", ingame_sound, 1);
} else if (((clevel == 4) or (clevel == 10)) or (clevel == 16)) {
playSound("Male_DiscoveringWonderous_02_Jamaal3_converted.wav", ingame_sound, 1);
} else {
var _local3 = int(Math.random() * 100);
if (_local3 > 65) {
playSound("Male_BattleStart_11_Jamaal3_converted.wav", ingame_sound, 1);
} else if (_local3 > 35) {
playSound("Male_BattleStart_10_Jamaal3_converted.wav", ingame_sound, 1);
} else {
playSound("Male_BattleStart_02_Jamaal3_converted.wav", ingame_sound, 1);
}
}
}
function createunits() {
trace("start creating units");
char[0] = {xtile:4, ytile:23, speed:3, speedx:0, speedy:0, straight:false, width:31, height:31, dirx:0, diry:0, targetx:0, targety:0, itargetx:0, itargety:0, moving:false, frame:0, moveCount:0, team:2, weapon:"sword", lweapon:"bow", hpMax:500, hpCurrent:500, isHit:false, die:0, rangex:0, rangey:0, rAngle:0, shieldm:100, shieldc:100, dleft:0, dright:0, dup:0, ddown:0, race:"rogue", shooting:0, wlife:0, melee:false, mcount:0, a1:100, a2:0, a3:0, a4:0, ranged:true, starget:99, mtarget:0, mattack:herodmg, selecttarget:99, pathcount:0, mousex:0, mousey:0, direct:false, dend:false, dcount:0, manaCurrent:0, manaMax:0, poisoned:0, frozen:0, stunned:0, knockback:0, knockx:0, knocky:0, nonreach:0, edist:600};
char[1] = {xtile:4, ytile:24, speed:1, speedx:0, speedy:0, straight:false, width:31, height:31, dirx:0, diry:0, targetx:0, targety:0, itargetx:0, itargety:0, moving:false, frame:0, moveCount:0, team:1, weapon:"sword", lweapon:"bow", hpMax:2500, hpCurrent:2500, isHit:false, die:0, rangex:0, rangey:0, rAngle:0, shieldm:100, shieldc:100, dleft:0, dright:0, dup:0, ddown:0, race:"castletarget", shooting:0, wlife:0, melee:false, mcount:0, a1:100, a2:0, a3:0, a4:0, ranged:true, starget:99, mtarget:0, mattack:herodmg, selecttarget:99, pathcount:0, mousex:0, mousey:0, direct:false, dend:false, dcount:0, manaCurrent:0, manaMax:0, poisoned:0, frozen:0, stunned:0, knockback:0, knockx:0, knocky:0, nonreach:0, edist:600};
char_audio[0] = {attack1:"", attack2:"", random1:"", random2:"", hurt:"", die:"", charge:"", intro:""};
char_audio[1] = {attack1:"", attack2:"", random1:"", random2:"", hurt:"", die:"", charge:"", intro:""};
if (clevel > 500) {
if (clevel < 10) {
char[0].ytile = 11;
char[1].ytile = 12;
shriney = 13;
}
} else {
shriney = 24;
}
spawn(1, 1);
}
function creategoodies() {
var _local1 = 1;
while (_local1 < 1) {
if (_local1 < (goodguycount + 1)) {
if (goodguys[_local1].unit > 0) {
created++;
trace("create a good guy here");
char[created] = {xtile:3, ytile:3, speed:4, width:31, height:31, dirx:0, diry:0, targetx:0, targety:0, itargetx:0, itargety:0, moving:false, frame:0, moveCount:0, team:1, weapon:"sword", lweapon:"bow", hpMax:50, hpCurrent:50, isHit:false, die:0, rangex:0, rangey:0, rAngle:0, shieldm:100, shieldc:0, dleft:0, dright:0, dup:0, ddown:0, race:"", shooting:0, wlife:0, melee:false, mcount:0, a1:50, a2:80, a3:100, a4:100, ranged:false, starget:99, mtarget:0, mattack:10, selecttarget:99, pathcount:0, mousex:0, mousey:0, direct:false, dend:false, dcount:0, gold:30, posted:false, postx:0, posty:0, post:false, postr:0, manaCurrent:0, manaMax:0, poisoned:0, frozen:0, stunned:0, knockback:0, knockx:0, knocky:0, nonreach:0, edist:600};
char_audio[created] = {attack1:"", attack2:"", random1:"", random2:"", hurt:"", die:"", charge:"", intro:""};
char[created].xtile = goodguys[_local1].postx;
char[created].ytile = goodguys[_local1].posty;
char[created].postx = goodguys[_local1].postx;
char[created].posty = goodguys[_local1].posty;
if (!game[(("t_" + char[created].ytile) + "_") + char[created].xtile].walkable) {
char[created].nonreach = 200;
}
char[created].posted = true;
char[created].done = false;
char[created].postr = 0;
spawn(created, goodguys[_local1].unit);
}
}
_local1++;
}
}
function creatingmore() {
if (created == 0) {
if (createcount == 2) {
creategoodies();
}
}
if (created < ((level[clevel].count + 1) + goodguycount)) {
createcount++;
if (createcount > createrate) {
createcount = 0;
if (created < popcap) {
createarray++;
if (level[clevel][createarray] > 0) {
created++;
char[created] = {xtile:3, ytile:3, speed:4, width:31, height:31, dirx:0, diry:0, targetx:0, targety:0, itargetx:0, itargety:0, moving:false, frame:0, moveCount:0, team:1, weapon:"sword", lweapon:"bow", hpMax:50, hpCurrent:50, isHit:false, die:0, rangex:0, rangey:0, rAngle:0, shieldm:100, shieldc:0, dleft:0, dright:0, dup:0, ddown:0, race:"", shooting:0, wlife:0, melee:false, mcount:0, a1:50, a2:80, a3:100, a4:100, ranged:false, starget:99, mtarget:0, mattack:10, selecttarget:99, pathcount:0, mousex:0, mousey:0, direct:false, dend:false, dcount:0, gold:30, posted:false, postx:0, posty:0, post:false, postr:0, manaCurrent:0, manaMax:0, poisoned:0, frozen:0, stunned:0, knockback:0, knockx:0, knocky:0, nonreach:0, edist:600};
char_audio[created] = {attack1:"", attack2:"", random1:"", random2:"", hurt:"", die:"", charge:"", intro:""};
char[created].xtile = Math.round(Math.random() * (wtiles - 2)) + 1;
char[created].ytile = 0;
if (createarray == 50) {
char[created].xtile = startups[clevel].startx;
char[created].ytile = startups[clevel].starty;
}
spawn(created, level[clevel][createarray]);
}
} else {
var _local2 = 0;
var _local3 = created + 1;
var _local1 = 3;
while (_local1 < _local3) {
if (char[_local1].hpCurrent < 1) {
if (game.clip["char" + _local1]) {
} else {
_local2 = _local1;
break;
}
}
_local1++;
}
if (_local2 > 0) {
createarray++;
if (level[clevel][createarray] > 0) {
trace("level[clevel][createarray]=" + level[clevel][createarray]);
char[_local2] = {xtile:3, ytile:3, speed:4, width:31, height:31, dirx:0, diry:0, targetx:0, targety:0, itargetx:0, itargety:0, moving:false, frame:0, moveCount:0, team:1, weapon:"sword", lweapon:"bow", hpMax:50, hpCurrent:50, isHit:false, die:0, rangex:0, rangey:0, rAngle:0, shieldm:100, shieldc:0, dleft:0, dright:0, dup:0, ddown:0, race:"", shooting:0, wlife:0, melee:false, mcount:0, a1:50, a2:80, a3:100, a4:100, ranged:false, starget:99, mtarget:0, mattack:10, selecttarget:99, pathcount:0, mousex:0, mousey:0, direct:false, dend:false, dcount:0, gold:30, posted:false, postx:0, posty:0, post:false, postr:0, manaCurrent:0, manaMax:0, poisoned:0, frozen:0, stunned:0, knockback:0, knockx:0, knocky:0, nonreach:0, edist:600};
char_audio[_local2] = {attack1:"", attack2:"", random1:"", random2:"", hurt:"", die:"", charge:"", intro:""};
char[_local2].xtile = Math.round(Math.random() * (wtiles - 2)) + 1;
char[_local2].ytile = 0;
char[_local2].moving = false;
char[_local2].shooting = 0;
char[_local2].selecttarget = 99;
char[_local2].melee = false;
char[_local2].mcount = 0;
char[_local2].die = 0;
spawn(_local2, level[clevel][createarray]);
}
}
}
}
}
}
function unitlocations(cp) {
if (char[cp].team == 2) {
if (base_count < 1) {
char[cp].xtile = Math.round(Math.random() * wtiles);
if ((char[cp].xtile == 0) or (char[cp].xtile == wtiles)) {
char[cp].ytile = Math.round(Math.random() * 4);
} else {
char[cp].ytile = 0;
}
} else if (startups[clevel].count == 1) {
char[cp].xtile = startups[clevel].startx;
char[cp].ytile = startups[clevel].starty;
} else if (startups[clevel].count == 2) {
if ((cp % 2) == 0) {
char[cp].xtile = startups[clevel].startx2;
char[cp].ytile = startups[clevel].starty2;
} else {
char[cp].xtile = startups[clevel].startx;
char[cp].ytile = startups[clevel].starty;
}
} else if (startups[clevel].count == 3) {
if ((cp % 3) == 0) {
char[cp].xtile = startups[clevel].startx3;
char[cp].ytile = startups[clevel].starty3;
} else if ((cp % 2) == 0) {
char[cp].xtile = startups[clevel].startx2;
char[cp].ytile = startups[clevel].starty2;
} else {
char[cp].xtile = startups[clevel].startx;
char[cp].ytile = startups[clevel].starty;
}
}
if (char[cp].race == "goblintower") {
char[cp].xtile = towers[towerlvl[clevel][goblintower_count]].startx;
char[cp].ytile = towers[towerlvl[clevel][goblintower_count]].starty;
goblintower_count++;
}
}
var _local4 = created + 1;
var _local1 = 1;
while (_local1 < _local4) {
var _local2 = 0;
while (_local2 < 10) {
if (char[_local1].race == level[clevel][_local2].unit) {
if ((!level[clevel][_local2].done) and (!char[_local1].post)) {
trace("im getting here for " + _local1);
char[_local1].xtile = level[clevel][_local2].postx;
char[_local1].ytile = level[clevel][_local2].posty;
char[_local1].postx = level[clevel][_local2].postx;
char[_local1].posty = level[clevel][_local2].posty;
char[_local1].postr = level[clevel][_local2].postr;
game.clip["char" + _local1]._rotation = char[_local1].postr;
char[_local1].post = true;
char[_local1].posted = level[clevel][_local2].posted;
level[clevel][_local2].done = true;
}
}
_local2++;
}
_local1++;
}
}
function scrolling(ob) {
}
function straighttesting(targetx, targety, mtx, mty, cp) {
var _local9 = 0;
if (!char[cp].ranged) {
var _local15 = created + 1;
var _local10 = 3;
if (char[cp].team == 1) {
_local10 = created + 1;
}
var _local4 = 1;
while (_local4 < _local10) {
if (_local4 < cp) {
if (char[_local4].selecttarget == char[cp].selecttarget) {
if (getDist(game.clip["char" + cp]._x, game.clip["char" + cp]._y, game.clip["char" + _local4]._x, game.clip["char" + _local4]._y) < 60) {
_local9++;
}
}
} else {
break;
}
_local4++;
}
mtx = mtx + (((1 - ((_local9 % 2) * 2)) * _local9) * 50);
mty = mty + (((1 - ((_local9 % 2) * 2)) * _local9) * 50);
game.clip.attachMovie("straighttest", "straighttest", 900400);
game.clip.straighttest._x = game.clip["char" + cp]._x;
game.clip.straighttest._y = game.clip["char" + cp]._y;
game.clip.straighttest._yscale = getDist(game.clip.straighttest._x, game.clip.straighttest._y, mtx, mty) * 10;
game.clip.straighttest._rotation = 90 + getAngle(game.clip.straighttest._x, game.clip.straighttest._y, mtx, mty);
var _local5 = false;
var _local6 = true;
var _local12 = Math.min(Math.floor((game.clip["char" + cp]._x - 50) / game.tileW), Math.floor((mtx - 50) / game.tileW));
var _local11 = Math.max(Math.floor((game.clip["char" + cp]._x - 50) / game.tileW), Math.floor((mtx - 50) / game.tileW));
var _local8 = Math.min(Math.floor((game.clip["char" + cp]._y - 50) / game.tileH), Math.floor((mty - 50) / game.tileH));
var _local7 = Math.max(Math.floor((game.clip["char" + cp]._y - 50) / game.tileH), Math.floor((mty - 50) / game.tileH));
var _local3 = _local12;
while (_local3 < (_local11 + 1)) {
var _local1 = _local8;
while (_local1 < (_local7 + 1)) {
if (game[(("t_" + _local1) + "_") + _local3].walkable == false) {
_local5 = game.clip[(("t_" + _local1) + "_") + _local3].hbox2.hitTest(game.clip.straighttest);
}
if (_local5 == true) {
_local6 = false;
break;
}
_local1++;
}
_local3++;
}
if (_local6) {
char[cp].direct = true;
char[cp].mousex = mtx;
char[cp].mousey = mty;
char[cp].moving = true;
char[cp].pathcount = 0;
char[cp].diry = 0;
char[cp].dirx = 0;
char[cp].dirx = char[cp].speed * Math.sin((Math.PI * game.clip.straighttest._rotation) / 180);
char[cp].diry = char[cp].speed * (-Math.cos((Math.PI * game.clip.straighttest._rotation) / 180));
game.clip["char" + cp]._rotation = game.clip.straighttest._rotation;
if (char[cp].race == "goblintower") {
game.clip["char" + cp].tower._rotation = -game.clip["char" + cp]._rotation;
} else if (char[cp].race == "goblintent") {
game.clip["char" + cp]._rotation = 0;
}
char[cp].path.length = 0;
char[cp].path = null;
} else {
if (char[cp].direct) {
char[cp].xtile = Math.floor((game.clip["char" + cp]._x - 50) / game.tileW);
char[cp].ytile = Math.floor((game.clip["char" + cp]._y - 50) / game.tileH);
char[cp].direct = false;
char[cp].pathcount = 0;
char[cp].diry = 0;
char[cp].dirx = 0;
char[cp].path.length = 0;
char[cp].path = null;
char[cp].dend = true;
char[cp].moving = false;
}
char[cp].direct = false;
}
}
}
function collectitems() {
var _local3 = 0;
while (_local3 < 8) {
if (game.clip["coins" + _local3].hitTest(game.clip.char0.hbox)) {
_root.game.clip.attachMovie("buff_green", "buff" + _local3, 900655 + _local3);
_root.game.clip["buff" + _local3]._x = game.clip["coins" + _local3]._x;
_root.game.clip["buff" + _local3]._y = game.clip["coins" + _local3]._y;
game.clip["coins" + _local3].swapDepths(501);
game.clip["coins" + _local3].removeMovieClip();
herolife = ((100 + (herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
char[0].hpMax = herolife;
char[0].hpCurrent = Math.min(char[0].hpCurrent + int(herolife / 4), herolife);
game.clip.hb0.hm._y = 35 - int((char[0].hpCurrent / char[0].hpMax) * 70);
}
_local3++;
}
}
function levelup(cp) {
if (heroexp >= explvls[herolvl]) {
herolvl++;
abilitypoints = abilitypoints + 5;
herodmg = (5 + ((herostr + _global.equip_strength) * 2)) + _global.equip_attack;
char[cp].mattack = herodmg;
herolife = ((100 + (herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
char[cp].hpMax = herolife;
char[cp].hpCurrent = herolife;
game.clip.hb0.hm._y = 35 - int((char[0].hpCurrent / char[0].hpMax) * 70);
arrange_icons(2, 0);
if (herolvl == 2) {
arrange_icons(3, 4);
wind_researched = 1;
spellicon(5);
}
if (herolvl == 4) {
dash_researched = 1;
spellicon(3);
arrange_icons(3, 3);
}
if (herolvl == 6) {
arrange_icons(3, 7);
critical_level = 1;
}
if (herolvl == 8) {
arrange_icons(3, 10);
black_arrow_researched = 1;
spellicon(7);
}
if (herolvl == 10) {
arrange_icons(3, 11);
nova_researched = 1;
spellicon(8);
}
if (herolvl == 12) {
splitarrow_researched = 1;
arrange_icons(3, 1);
spellicon(1);
}
if (herolvl == 15) {
arrange_icons(3, 5);
summon_researched = 1;
spellicon(4);
}
if (herolvl == 18) {
arrange_icons(3, 8);
critical_level = 2;
}
if (herolvl == 21) {
arrange_icons(3, 6);
arrow_splash_researched = 1;
spellicon(6);
}
if (herolvl == 24) {
arrange_icons(3, 2);
volley_researched = 1;
spellicon(2);
}
if (herolvl == 27) {
arrange_icons(3, 9);
critical_level = 3;
}
if (((((herolvl == 3) or (herolvl == 6)) or (herolvl == 9)) or (herolvl == 12)) or (herolvl == 15)) {
playSound("Male_LevelUp_07_Jamaal3_converted.wav", ingame_sound, 1);
} else {
playSound("Male_LevelUp_01_Jamaal3_converted.wav", ingame_sound, 1);
}
_root.attachMovie("leveluptext", "leveluptext", 110005);
leveluptext._x = 400;
leveluptext._y = 280;
leveluptext.txt = "LEVELED UP\rYou are now level " + herolvl;
}
}
function cleararea() {
var _local3 = 2;
while (_local3 < 50) {
_root.tiles["char" + _local3].removeMovieClip();
_root.tiles["coins" + _local3].removeMovieClip();
_root.tiles["hb" + _local3].removeMovieClip();
_local3++;
}
var _local4 = 0;
while (_local4 <= 25) {
var _local2 = 0;
while (_local2 <= 25) {
_root.tiles[(("t_" + _local4) + "_") + _local2].removeMovieClip();
_local2++;
}
_local4++;
}
_local3 = 0;
while (_local3 < (misslemax + 1)) {
imissle[_local3].active = false;
game.clip["missle" + _local3].removeMovieClip();
_local3++;
}
}
function mdirection(ob, dirx, diry, c) {
if (diry == -1) {
if (ob.up) {
var _local6 = true;
var _local10 = created + 1;
var _local2 = 1;
while (_local2 < _local10) {
if (char[_local2].hpCurrent > 0) {
if (game.clip["char" + _local2]._y < (game.clip.char0._y - 5)) {
if (game.clip.char0.hbox.hitTest(game.clip["char" + _local2].hbox)) {
_local6 = false;
if (ob.down) {
ob.y = ob.y - (ob.speed * diry);
}
if (c == 0) {
ob.clip._y = ob.y;
game.clip.char0._y = ob.y;
game.clip.charlegs0._y = ob.y;
game.clip.hb0._y = game.clip.char0._y;
mdirection(ob, dirx, diry, 1);
}
break;
}
}
}
_local2++;
}
if (_local6) {
ob.y = ob.y + (ob.speed * diry);
}
}
} else if (diry == 1) {
if (ob.down) {
var _local8 = true;
var _local10 = created + 1;
var _local2 = 1;
while (_local2 < _local10) {
if (char[_local2].hpCurrent > 0) {
if (game.clip["char" + _local2]._y > (game.clip.char0._y + 5)) {
if (game.clip.char0.hbox.hitTest(game.clip["char" + _local2].hbox)) {
_local8 = false;
if (ob.up) {
ob.y = ob.y - (ob.speed * diry);
}
if (c == 0) {
ob.clip._y = ob.y;
game.clip.char0._y = ob.y;
game.clip.charlegs0._y = ob.y;
game.clip.hb0._y = game.clip.char0._y;
mdirection(ob, dirx, diry, 1);
}
break;
}
}
}
_local2++;
}
if (_local8) {
ob.y = ob.y + (ob.speed * diry);
}
}
}
if (dirx == -1) {
if (ob.left) {
var _local9 = true;
var _local10 = created + 1;
var _local2 = 1;
while (_local2 < _local10) {
if (char[_local2].hpCurrent > 0) {
if (game.clip["char" + _local2]._x < (game.clip.char0._x - 5)) {
if (game.clip.char0.hbox.hitTest(game.clip["char" + _local2].hbox)) {
_local9 = false;
if (c == 0) {
if (ob.right) {
ob.x = ob.x - (ob.speed * dirx);
}
ob.clip._x = ob.x;
game.clip.char0._x = ob.x;
game.clip.charlegs0._x = ob.x;
game.clip.hb0._x = game.clip.char0._x;
mdirection(ob, dirx, diry, 1);
}
break;
}
}
}
_local2++;
}
if (_local9) {
ob.x = ob.x + (ob.speed * dirx);
}
}
} else if (dirx == 1) {
if (ob.right) {
var _local7 = true;
var _local10 = created + 1;
var _local2 = 1;
while (_local2 < _local10) {
if (char[_local2].hpCurrent > 0) {
if (game.clip["char" + _local2]._x > (game.clip.char0._x + 5)) {
if (game.clip.char0.hbox.hitTest(game.clip["char" + _local2].hbox)) {
_local7 = false;
if (c == 0) {
if (ob.left) {
ob.x = ob.x - (ob.speed * dirx);
}
ob.clip._x = ob.x;
game.clip.char0._x = ob.x;
game.clip.charlegs0._x = ob.x;
game.clip.hb0._x = game.clip.char0._x;
mdirection(ob, dirx, diry, 1);
}
break;
}
}
}
_local2++;
}
if (_local7) {
ob.x = ob.x + (ob.speed * dirx);
}
}
}
if (ob.x < -10) {
ob.x = -10;
}
if (ob.y < -150) {
ob.y = -150;
}
if (ob.y > 5000) {
ob.y = 5000;
}
if (ob.x > 2000) {
ob.x = 2000;
}
ob.clip._x = ob.x;
ob.clip._y = ob.y;
game.clip.char0._x = ob.x;
game.clip.char0._y = ob.y;
game.clip.charlegs0._x = ob.x;
game.clip.charlegs0._y = ob.y;
game.clip.hb0._x = game.clip.char0._x;
game.clip.hb0._y = game.clip.char0._y;
}
function makeBlockArray() {
ab = 0;
var _local2 = 0;
while (_local2 < (game.mapwidth + 1)) {
var _local1 = 0;
while (_local1 < (game.mapheight + 1)) {
if (game[(("t_" + _local1) + "_") + _local2].block == true) {
arrowblock[ab] = {xx:0, yy:0};
arrowblock[ab].xx = game.clip[(("t_" + _local1) + "_") + _local2]._x + 50;
arrowblock[ab].yy = game.clip[(("t_" + _local1) + "_") + _local2]._y + 50;
ab++;
}
_local1++;
}
_local2++;
}
trace((((("wtiles = " + wtiles) + ", htiles = ") + htiles) + ", AB = ") + ab);
}
function summon() {
char[2] = {xtile:3, ytile:3, speed:4, width:31, height:31, dirx:0, diry:0, targetx:0, targety:0, itargetx:0, itargety:0, moving:false, frame:0, moveCount:0, team:1, weapon:"sword", lweapon:"bow", hpMax:50, hpCurrent:50, isHit:false, die:0, rangex:0, rangey:0, rAngle:0, shieldm:100, shieldc:0, dleft:0, dright:0, dup:0, ddown:0, race:"", shooting:0, wlife:0, melee:false, mcount:0, a1:50, a2:80, a3:100, a4:100, ranged:false, starget:99, mtarget:0, mattack:10, selecttarget:99, pathcount:0, mousex:0, mousey:0, direct:false, dend:false, dcount:0, gold:30, posted:false, postx:0, posty:0, post:false, postr:0, manaCurrent:0, manaMax:0, poisoned:0, frozen:0, stunned:0, knockback:0, knockx:0, knocky:0, nonreach:0};
char[2].xtile = char[0].xtile;
char[2].ytile = char[0].ytile - 1;
spawn(2, 2);
}
function badsummon(race, startx, starty) {
var _local2 = 99;
if (created < popcap) {
created++;
_local2 = created;
} else {
var _local4 = 0;
var _local5 = created + 1;
var _local3 = 3;
while (_local3 < _local5) {
if (char[_local3].hpCurrent < 1) {
if (game.clip["char" + _local3]) {
} else {
_local4 = _local3;
break;
}
}
_local3++;
}
if (_local4 > 0) {
_local2 = _local4;
}
}
if (_local2 == 99) {
} else {
char[_local2] = {xtile:3, ytile:3, speed:4, width:31, height:31, dirx:0, diry:0, targetx:0, targety:0, itargetx:0, itargety:0, moving:false, frame:0, moveCount:0, team:1, weapon:"sword", lweapon:"bow", hpMax:50, hpCurrent:50, isHit:false, die:0, rangex:0, rangey:0, rAngle:0, shieldm:100, shieldc:0, dleft:0, dright:0, dup:0, ddown:0, race:"", shooting:0, wlife:0, melee:false, mcount:0, a1:50, a2:80, a3:100, a4:100, ranged:false, starget:99, mtarget:0, mattack:10, selecttarget:99, pathcount:0, mousex:0, mousey:0, direct:false, dend:false, dcount:0, gold:30, posted:false, postx:0, posty:0, post:false, postr:0, manaCurrent:0, manaMax:0, poisoned:0, frozen:0, stunned:0, knockback:0, knockx:0, knocky:0, nonreach:0, edist:600};
char_audio[_local2] = {attack1:"", attack2:"", random1:"", random2:"", hurt:"", die:"", charge:"", intro:""};
char[_local2].xtile = startx;
char[_local2].ytile = starty;
char[_local2].moving = false;
char[_local2].shooting = 0;
char[_local2].selecttarget = 99;
char[_local2].melee = false;
char[_local2].mcount = 0;
char[_local2].die = 0;
spawn(_local2, race);
char[_local2].xtile = startx;
char[_local2].ytile = starty;
char[_local2].x = (char[_local2].xtile * game.tileW) + (game.tileW / 2);
char[_local2].y = (char[_local2].ytile * game.tileW) + (game.tileW / 2);
game.clip["char" + _local2]._x = char[_local2].x;
game.clip["char" + _local2]._y = char[_local2].y;
char[_local2].clip._x = char[_local2].x;
char[_local2].clip._y = char[_local2].y;
game.clip["hb" + _local2]._x = char[_local2].clip._x;
game.clip["hb" + _local2]._y = char[_local2].clip._y;
char[_local2].xstep = char[_local2].x;
char[_local2].ystep = char[_local2].y;
_root.game.clip.attachMovie("buff_red", "buff" + _local2, 900751 + _local2);
_root.game.clip["buff" + _local2]._x = _root.game.clip["char" + _local2]._x;
_root.game.clip["buff" + _local2]._y = _root.game.clip["char" + _local2]._y;
}
}
function updateMana(cp) {
manacount++;
if (manacount > manarate) {
manacount = 0;
heroMP++;
if (heroMP > heromana) {
heroMP = heromana;
char[cp].manaCurrent = heroMP;
char[cp].manaMax = heromana;
}
}
}
function firetest(cp, mtx, mty) {
trace("ab1 = " + ab);
game.clip.attachMovie("straighttest2", "straighttest2", 900401);
game.clip.straighttest2._x = game.clip["char" + cp]._x;
game.clip.straighttest2._y = game.clip["char" + cp]._y;
game.clip.straighttest2._yscale = getDist(game.clip.straighttest2._x, game.clip.straighttest2._y, mtx, mty) * 10;
game.clip.straighttest2._rotation = 90 + getAngle(game.clip.straighttest2._x, game.clip.straighttest2._y, mtx, mty);
var _local2 = false;
var _local3 = true;
trace("ab2 = " + ab);
var _local1 = 0;
while (_local1 < (ab + 1)) {
trace("arrowblock[p].xx = " + arrowblock[_local1].xx);
trace("game.clip._x = " + game.clip._x);
_local2 = game.clip.straighttest2.hitTest(arrowblock[_local1].xx + game.clip._x, arrowblock[_local1].yy + game.clip._y, true);
if (_local2 == true) {
_local3 = false;
break;
}
trace((_local1 + " : ") + _local2);
_local1++;
}
if (_local3) {
fire(cp, mtx, mty);
}
trace("shooting = " + _local3);
return(_local3);
}
function updatepoison() {
var _local2 = created + 1;
var _local1 = 0;
while (_local1 < _local2) {
if (char[_local1].poisoned > 0) {
changeColor(game.clip["char" + _local1], 20, 0, 100, 0, 20, 0, 100, 0);
char[_local1].poisoned--;
if (char[_local1].poisoned == 0) {
changeColor(game.clip["char" + _local1], 100, 0, 100, 0, 100, 0, 100, 0);
}
if ((char[_local1].poisoned % 20) == 0) {
game.clip.attachMovie("dmtext_poison", "dmgp" + _local1, 99140 + _local1);
game.clip["dmgp" + _local1].dmg = -10;
game.clip["dmgp" + _local1]._x = game.clip["char" + _local1]._x;
game.clip["dmgp" + _local1]._y = game.clip["char" + _local1]._y;
char[_local1].hpCurrent = char[_local1].hpCurrent - 10;
game.clip["hb" + _local1].hm._y = 35 - int((char[_local1].hpCurrent / char[_local1].hpMax) * 70);
testDeath(_local1, 1);
}
}
_local1++;
}
}
function updatefrozen() {
var _local2 = created + 1;
var _local1 = 0;
while (_local1 < _local2) {
if (char[_local1].frozen > 0) {
changeColor(game.clip["char" + _local1], 50, 100, 50, 100, 100, 255, 100, 250);
char[_local1].frozen--;
if (char[_local1].frozen == 0) {
changeColor(game.clip["char" + _local1], 100, 0, 100, 0, 100, 0, 100, 0);
}
}
_local1++;
}
}
function updateskills() {
if (splitarrow_researched > 0) {
if (splitarrow_recharge > 0) {
splitarrow_recharge--;
if (splitarrow_recharge == 0) {
spellicon(1);
}
}
if (splitarrow_activecount > 0) {
splitarrow_activecount--;
var _local7 = spellslots2[1];
_root["spellReady" + _local7].skillremaining_txt = splitarrow_activecount;
if (splitarrow_activecount == 0) {
game.clip.char0.filters = null;
_root["spellReady" + _local7]._y;
_root.spellslots[_local7] = false;
_root["spellReady" + _local7].swapDepths(501);
_root["spellReady" + _local7].removeMovieClip();
_root.spellslots2[1] = 0;
}
}
}
if (volley_researched > 0) {
if (volley_recharge > 0) {
volley_recharge--;
if (volley_recharge == 0) {
spellicon(2);
}
}
if (volley_activecount > 0) {
volley_activecount--;
var _local7 = spellslots2[2];
_root["spellReady" + _local7].skillremaining_txt = volley_activecount;
if (volley_activecount == 0) {
_root["spellReady" + _local7]._y = 1000;
_root.spellslots[_local7] = false;
_root["spellReady" + _local7].swapDepths(501);
_root["spellReady" + _local7].removeMovieClip();
_root.spellslots2[2] = 0;
game.clip.char0.filters = null;
}
}
}
if (black_arrow_researched > 0) {
if (black_arrow_recharge > 0) {
black_arrow_recharge--;
if (black_arrow_recharge == 0) {
spellicon(7);
}
}
if (black_arrow_activecount > 0) {
black_arrow_activecount--;
currentarrow = "blackarrow";
char[0].rweapon = currentarrow;
char[0].lweapon = currentarrow;
_root.experiencebar.weapon_choice.gotoAndStop(1);
_root.experiencebar.weapon_choice.ammo_txt = "";
var _local7 = spellslots2[7];
_root["spellReady" + _local7].skillremaining_txt = black_arrow_activecount;
if (black_arrow_activecount == 0) {
currentarrow = "arrow";
char[0].rweapon = currentarrow;
char[0].lweapon = currentarrow;
_root.experiencebar.weapon_choice.gotoAndStop(1);
_root.experiencebar.weapon_choice.ammo_txt = "";
_root["spellReady" + _local7]._y;
_root.spellslots[_local7] = false;
_root["spellReady" + _local7].swapDepths(501);
_root["spellReady" + _local7].removeMovieClip();
_root.spellslots2[7] = 0;
game.clip.char0.filters = null;
}
}
}
if (dash_researched > 0) {
if (dash_recharge > 0) {
dash_recharge--;
if (dash_recharge == 0) {
spellicon(3);
}
}
if (dash_activecount > 0) {
dash_activecount--;
var _local7 = spellslots2[3];
_root["spellReady" + _local7].skillremaining_txt = dash_activecount;
herospeed = Math.min(Math.max(int(((40 + heroagil) + _global.equip_agility) / 10), 6), 12) * 2;
char[0].speed = herospeed;
if (dash_activecount == 0) {
_root["spellReady" + _local7]._y = 1000;
_root.spellslots[_local7] = false;
_root["spellReady" + _local7].swapDepths(501);
_root["spellReady" + _local7].removeMovieClip();
_root.spellslots2[3] = 0;
game.clip.char0.filters = null;
herospeed = Math.min(Math.max(int(((40 + heroagil) + _global.equip_agility) / 10), 6), 15);
char[0].speed = herospeed;
}
}
}
if (summon_researched > 0) {
if (summon_recharge > 0) {
summon_recharge--;
if (summon_recharge == 0) {
spellicon(4);
}
}
}
if (wind_researched > 0) {
if (wind_recharge > 0) {
wind_recharge--;
if (wind_recharge == 0) {
spellicon(5);
}
}
if (wind_activecount > 0) {
wind_activecount--;
var _local7 = spellslots2[5];
_root["spellReady" + _local7].skillremaining_txt = wind_activecount;
if ((wind_activecount % 10) == 0) {
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white" + wind_activecount, 900701 + wind_activecount);
_root.game.clip["buff_white" + wind_activecount]._xscale = 30 + ((70 * (heroint + _global.equip_intelligence)) / 20);
_root.game.clip["buff_white" + wind_activecount]._yscale = 30 + ((70 * (heroint + _global.equip_intelligence)) / 20);
_root.game.clip["buff_white" + wind_activecount]._alpha = 50;
_root.game.clip["buff_white" + wind_activecount]._x = _root.game.clip.char0._x;
_root.game.clip["buff_white" + wind_activecount]._y = _root.game.clip.char0._y;
var _local6 = created + 1;
var _local3 = 0;
while (_local3 < _local6) {
if (char[_local3].team != char[0].team) {
if ((char[_local3].die == 0) and (char[_local3].nonreach == 0)) {
if ((char[_local3].race == "goblintower") or (char[_local3].race == "goblintent")) {
} else if (getDist(game.clip["char" + _local3]._x, game.clip["char" + _local3]._y, game.clip.char0._x, game.clip.char0._y) < Math.min(100 + (15 * (heroint + _global.equip_intelligence)), 800)) {
var _local4 = 90 + getAngle(game.clip.char0._x, game.clip.char0._y, game.clip["char" + _local3]._x, game.clip["char" + _local3]._y);
if (_local3 == boss_id) {
char[_local3].knockback = char[_local3].knockback + 4;
char[_local3].knockbacky = 2 * (-Math.cos((Math.PI * _local4) / 180));
char[_local3].knockbackx = 2 * Math.sin((Math.PI * _local4) / 180);
} else {
char[_local3].knockback = char[_local3].knockback + 4;
char[_local3].knockbacky = 5 * (-Math.cos((Math.PI * _local4) / 180));
char[_local3].knockbackx = 5 * Math.sin((Math.PI * _local4) / 180);
}
}
}
}
_local3++;
}
if (wind_activecount == 0) {
windsound.stop();
windsound.stop("sss40");
windsound.stop(sss40);
windsound.stopAllSounds();
}
}
_root.experiencebar.skill_choice.wind_txt = wind_activecount;
if (wind_activecount == 0) {
_root["spellReady" + _local7]._y = 1000;
_root.spellslots[_local7] = false;
_root["spellReady" + _local7].swapDepths(501);
_root["spellReady" + _local7].removeMovieClip();
_root.spellslots2[5] = 0;
game.clip.char0.filters = null;
}
}
}
if (nova_researched > 0) {
if (nova_recharge > 0) {
nova_recharge--;
if (nova_recharge == 0) {
spellicon(8);
}
}
if (nova_activecount > 0) {
nova_activecount--;
var _local7 = spellslots2[8];
_root["spellReady" + _local7].skillremaining_txt = nova_activecount;
if ((nova_activecount % 4) == 1) {
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_nova", "buff_white" + nova_activecount, 900701 + nova_activecount);
_root.game.clip["buff_white" + nova_activecount]._x = _root.game.clip.char0._x;
_root.game.clip["buff_white" + nova_activecount]._y = _root.game.clip.char0._y;
var _local6 = created + 1;
var _local3 = 0;
while (_local3 < _local6) {
if (char[_local3].team != char[0].team) {
if ((char[_local3].die == 0) and (char[_local3].nonreach == 0)) {
var _local5 = 50 + ((heroint + _global.equip_intelligence) * 80);
char[_local3].hpCurrent = char[_local3].hpCurrent - _local5;
game.clip["hb" + _local3].hm._y = 35 - int((char[_local3].hpCurrent / char[_local3].hpMax) * 70);
testDeath(_local3, 0);
game.clip.attachMovie("dmtext", "dmg" + _local3, 99100 + _local3);
game.clip["dmg" + _local3].dmg = _local5;
game.clip["dmg" + _local3]._x = game.clip["char" + _local3]._x;
game.clip["dmg" + _local3]._y = game.clip["char" + _local3]._y;
if ((char[_local3].race == "goblintower") or (char[_local3].race == "goblintent")) {
} else if (getDist(game.clip["char" + _local3]._x, game.clip["char" + _local3]._y, game.clip.char0._x, game.clip.char0._y) < Math.min(500 + (8 * (heroint + _global.equip_intelligence)), 800)) {
var _local4 = 90 + getAngle(game.clip.char0._x, game.clip.char0._y, game.clip["char" + _local3]._x, game.clip["char" + _local3]._y);
if (_local3 == boss_id) {
char[_local3].knockback = char[_local3].knockback + 8;
char[_local3].knockbacky = 4 * (-Math.cos((Math.PI * _local4) / 180));
char[_local3].knockbackx = 4 * Math.sin((Math.PI * _local4) / 180);
} else {
char[_local3].knockback = char[_local3].knockback + 16;
char[_local3].knockbacky = 8 * (-Math.cos((Math.PI * _local4) / 180));
char[_local3].knockbackx = 8 * Math.sin((Math.PI * _local4) / 180);
}
}
}
}
_local3++;
}
if (nova_activecount == 0) {
}
}
_root.experiencebar.skill_choice.wind_txt = wind_activecount;
if (nova_activecount == 0) {
_root["spellReady" + _local7]._y = 1000;
_root.spellslots[_local7] = false;
_root["spellReady" + _local7].swapDepths(501);
_root["spellReady" + _local7].removeMovieClip();
_root.spellslots2[8] = 0;
game.clip.char0.filters = null;
}
}
}
if (arrow_splash_researched > 0) {
if (arrow_splash_recharge > 0) {
arrow_splash_recharge--;
if (arrow_splash_recharge == 0) {
spellicon(6);
}
}
if (arrow_splash_activecount > 0) {
arrow_splash_activecount--;
var _local7 = spellslots2[6];
_root["spellReady" + _local7].skillremaining_txt = arrow_splash_activecount;
if ((arrow_splash_activecount % 4) == 0) {
splitarrow(0, (char[0].x + int(Math.random() * 20)) - 10, (char[0].y + int(Math.random() * 20)) - 10);
splitarrow(0, (char[0].x + int(Math.random() * 20)) - 10, (char[0].y + int(Math.random() * 20)) - 10);
splitarrow(0, (char[0].x + int(Math.random() * 20)) - 10, (char[0].y + int(Math.random() * 20)) - 10);
splitarrow(0, (char[0].x + int(Math.random() * 20)) - 10, (char[0].y + int(Math.random() * 20)) - 10);
splitarrow(0, (char[0].x + int(Math.random() * 20)) - 10, (char[0].y + int(Math.random() * 20)) - 10);
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_spin", "buff_white" + arrow_splash_activecount, 900701 + arrow_splash_activecount);
_root.game.clip["buff_white" + arrow_splash_activecount]._xscale = 100;
_root.game.clip["buff_white" + arrow_splash_activecount]._yscale = 100;
_root.game.clip["buff_white" + arrow_splash_activecount]._alpha = 100;
_root.game.clip["buff_white" + arrow_splash_activecount]._x = _root.game.clip.char0._x;
_root.game.clip["buff_white" + arrow_splash_activecount]._y = _root.game.clip.char0._y;
}
_root.experiencebar.skill_choice.arrow_splash_txt = arrow_splash_activecount;
if (arrow_splash_activecount == 0) {
_root["spellReady" + _local7]._y = 1000;
_root.spellslots[_local7] = false;
_root["spellReady" + _local7].swapDepths(501);
_root["spellReady" + _local7].removeMovieClip();
_root.spellslots2[6] = 0;
game.clip.char0.filters = null;
}
}
}
if (boss_charge > 0) {
if (boss_charge_recharge > 0) {
boss_charge_recharge--;
if (boss_charge_recharge == 0) {
boss_charge_activecount = 80;
boss_charge_recharge = boss_charge;
_root.game.clip.attachMovie("buff_red", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip["char" + boss_id]._x;
_root.game.clip.buff_white._y = _root.game.clip["char" + boss_id]._y;
if ((Math.random() * 100) > 50) {
playSound(char_audio[boss_id].random1, ingame_sound, 1);
} else {
playSound(char_audio[boss_id].random2, ingame_sound, 1);
}
} else if ((boss_charge_recharge % 50) == 1) {
if (char[boss_id].race == "demon") {
switch (int(Math.random() * 4)) {
case 0 :
badsummon(15, char[boss_id].xtile, char[boss_id].ytile);
break;
case 1 :
badsummon(16, char[boss_id].xtile, char[boss_id].ytile);
break;
case 2 :
badsummon(17, char[boss_id].xtile, char[boss_id].ytile);
break;
case 3 :
badsummon(18, char[boss_id].xtile, char[boss_id].ytile);
break;
default :
badsummon(15, char[boss_id].xtile, char[boss_id].ytile);
}
}
} else if (boss_charge_recharge == 140) {
if (char[boss_id].race == "demon") {
char[boss_id].ranged = true;
}
} else if (boss_charge_recharge == 90) {
if (char[boss_id].race == "demon") {
char[boss_id].ranged = false;
}
}
}
if (boss_charge_activecount > 0) {
boss_charge_activecount--;
bossspeed = int(boss_base_speed * 2.5);
char[boss_id].speed = bossspeed;
if (boss_charge_activecount == 0) {
bossspeed = boss_base_speed;
char[boss_id].speed = bossspeed;
}
}
}
}
function spellicon(s) {
var _local2 = 0;
while (_local2 < 8) {
if (!spellslots[_local2]) {
this.attachMovie("spellReady", "spellReady" + _local2, 9999550 + _local2);
this["spellReady" + _local2]._y = 490 - (_local2 * 60);
this["spellReady" + _local2]._x = 740;
this["spellReady" + _local2].gotoAndStop(s);
spellslots[_local2] = true;
spellslots2[s] = _local2;
break;
}
_local2++;
}
}
function updatestunned() {
var _local2 = created + 1;
var _local1 = 0;
while (_local1 < _local2) {
if (char[_local1].stunned > 0) {
if (char[_local1].stunned > 50) {
char[_local1].stunned = 50;
}
if (_local1 == boss_id) {
if (char[_local1].stunned > 7) {
char[_local1].stunned = 5;
}
}
char[_local1].stunned--;
if (char[_local1].stunned == 0) {
if (char[_local1].die == 0) {
if (game.clip["char" + _local1]._currentframe > 150) {
game.clip["char" + _local1].gotoAndPlay(1);
} else {
game.clip["char" + _local1].play();
}
}
}
}
_local1++;
}
}
function updateknockback() {
var _local10 = created + 1;
var _local2 = 0;
while (_local2 < _local10) {
var _local3 = _root.char[_local2];
if (char[_local2].knockback > 0) {
game.clip["char" + _local2].gotoAndStop(31);
var _local9 = true;
var _local8 = false;
var _local5 = true;
var _local4 = true;
var _local7 = Math.round(((game.clip["char" + _local2]._x - 50) + char[_local2].knockbackx) / game.tileW);
var _local6 = Math.round(((game.clip["char" + _local2]._y - 50) + char[_local2].knockbacky) / game.tileH);
if (game[(("t_" + _local6) + "_") + _local3.xtile].walkable == false) {
_local4 = false;
}
_local8 = false;
if (game[(("t_" + _local3.ytile) + "_") + _local7].walkable == false) {
_local5 = false;
}
game.clip.straighttest._rotation = 90 + getAngle(game.clip["char" + _local2]._x, game.clip["char" + _local2]._y, game.clip.char0._x, game.clip.char0._y);
if (_local5) {
if (char[_local2].knockbackx > 0) {
if (_local3.x < 590) {
_local3.x = _local3.x + char[_local2].knockbackx;
}
} else if (_local3.x > 10) {
_local3.x = _local3.x + char[_local2].knockbackx;
}
}
if (_local4) {
if (char[_local2].knockbacky > 0) {
if (_local3.y < 9000) {
_local3.y = _local3.y + char[_local2].knockbacky;
}
} else if (_local3.y > 10) {
_local3.y = _local3.y + char[_local2].knockbacky;
}
}
_local3.xtile = Math.round((_local3.x - 50) / game.tileW);
_local3.ytile = Math.round((_local3.y - 50) / game.tileH);
game.clip["char" + _local2]._x = _local3.x;
game.clip["char" + _local2]._y = _local3.y;
game.clip["hb" + _local2]._x = game.clip["char" + _local2]._x;
game.clip["hb" + _local2]._y = game.clip["char" + _local2]._y;
game.clip["char" + _local2].gotoAndStop(31);
char[_local2].knockback--;
if (char[_local2].knockback == 0) {
char[_local2].moving = false;
char[_local2].pathcount = 0;
char[_local2].diry = 0;
char[_local2].dirx = 0;
char[_local2].path.length = 0;
char[_local2].path = null;
char[_local2].direct = false;
}
}
_local2++;
}
}
function changeColor(item, ra, rb, ga, gb, ba, bb, aa, ab) {
var _local2 = new Color(item);
var _local1 = new Object();
_local1.ra = ra;
_local1.ga = ga;
_local1.ba = ba;
_local1.aa = aa;
_local1.rb = rb;
_local1.gb = gb;
_local1.bb = bb;
_local1.ab = ab;
_local2.setTransform(_local1);
}
function visibility(ob) {
if (_xmouse > 700) {
viewwest = viewwest - 10;
if (viewwest < -200) {
viewwest = -200;
}
}
if (_ymouse > 535) {
if (((_xmouse < 100) or (_xmouse > 690)) or ((_xmouse > 180) and (_xmouse < 610))) {
viewnorth = viewnorth - 15;
if (viewnorth < -210) {
viewnorth = -210;
}
}
}
if (_xmouse < 100) {
viewwest = viewwest + 10;
if (viewwest > 200) {
viewwest = 200;
}
}
if (_ymouse < 70) {
viewnorth = viewnorth + 15;
if (viewnorth > 235) {
viewnorth = 235;
}
}
viewwest = 0;
game.clip._y = (game.centery - ob.clip._y) + viewnorth;
game.clip._x = (game.centerx - ob.clip._x) + viewwest;
if (game.clip._x < (-100 + (game.centerx * 2))) {
game.clip._x = -100 + (game.centerx * 2);
}
if (game.clip._y < (-2600 + (game.centery * 2))) {
game.clip._y = -2600 + (game.centery * 2);
}
if (game.clip._x > 0) {
game.clip._x = 0;
}
if (game.clip._y > 0) {
game.clip._y = 0;
}
}
function fightmode() {
gamemode = 1;
clevel++;
refreshlevel();
createunits();
_root.char[0].xtile = _root.herox;
_root.char[0].ytile = _root.heroy;
_root.char[0].targetx = _root.char[0].xtile;
_root.char[0].targety = _root.char[0].ytile;
_root.char[0].moving = false;
_root.char[0].pathcount = 0;
_root.char[0].diry = 0;
_root.char[0].die = 0;
_root.char[0].dirx = 0;
_root.char[0].path.length = 0;
_root.char[0].path = null;
_root.char[0].moving = false;
_root.char[0].x = (_root.herox * _root.game.tileW) + (_root.game.tileW / 2);
_root.char[0].y = (_root.heroy * _root.game.tileH) + (_root.game.tileH / 2);
_root.buildMap(_root.myMap1);
}
function clearunits() {
var _local2 = created + 1;
var _local1 = 0;
while (_local1 < _local2) {
game.clip["char" + _local1].swapDepths(501);
game.clip["char" + _local1].removeMovieClip();
game.clip["char" + _local1]._x = 10000;
game.clip["char" + _local1].removeMovieClip();
game.clip["coins" + _local1].removeMovieClip();
game.clip["charlegs" + _local1].removeMovieClip();
game.clip["hb" + _local1].removeMovieClip();
_local1++;
}
}
function detectMouse() {
if (!isMouseDown) {
if ((_ymouse > 450) and (_ymouse < 510)) {
game.clip._y = game.clip._y - 10;
}
if ((_ymouse < 150) and (_ymouse > 90)) {
game.clip._y = game.clip._y + 10;
}
}
if (game.clip._x < (-100 + (game.centerx * 2))) {
game.clip._x = -100 + (game.centerx * 2);
}
if (game.clip._y < (-2600 + (game.centery * 2))) {
game.clip._y = -2600 + (game.centery * 2);
}
if (game.clip._x > 0) {
game.clip._x = 0;
}
if (game.clip._y > 0) {
game.clip._y = 0;
}
if (game.clip.placementtile._x < 50000) {
trace(game.clip.placementtile._x);
trace("yes less than 50000");
if ((_root.building == 23) and (_ymouse < 500)) {
game.clip.placementtile.gotoAndStop(22);
if (isMouseDown) {
game.clip.placementtile.gotoAndStop(2);
var _local2 = (("t_" + Math.floor((_ymouse - game.clip._y) / game.tileH)) + "_") + Math.floor((_xmouse - game.clip._x) / game.tileW);
game.clip[_local2].gotoAndStop(22);
myMap1[Math.floor((_ymouse - game.clip._y) / game.tileH)][Math.floor((_xmouse - game.clip._x) / game.tileW)] = _root.building;
_root.building = 0;
_root.buildselection.barricadebuild.gotoAndStop(1);
}
} else if ((_root.building == 24) and (_ymouse < 500)) {
game.clip.placementtile.gotoAndStop(23);
if (isMouseDown) {
game.clip.placementtile.gotoAndStop(2);
var _local2 = (("t_" + Math.floor((_ymouse - game.clip._y) / game.tileH)) + "_") + Math.floor((_xmouse - game.clip._x) / game.tileW);
game.clip[_local2].gotoAndStop(23);
myMap1[Math.floor((_ymouse - game.clip._y) / game.tileH)][Math.floor((_xmouse - game.clip._x) / game.tileW)] = _root.building;
_root.building = 0;
_root.buildselection.towerbuild.gotoAndStop(1);
}
} else if ((_root.building == 17) and (_ymouse < 500)) {
game.clip.placementtile.gotoAndStop(16);
if (isMouseDown) {
game.clip.placementtile.gotoAndStop(2);
var _local2 = (("t_" + Math.floor((_ymouse - game.clip._y) / game.tileH)) + "_") + Math.floor((_xmouse - game.clip._x) / game.tileW);
game.clip[_local2].gotoAndStop(16);
myMap1[Math.floor((_ymouse - game.clip._y) / game.tileH)][Math.floor((_xmouse - game.clip._x) / game.tileW)] = _root.building;
_root.building = 0;
_root.buildselection.wallbuild.gotoAndStop(1);
}
} else if ((_root.building == -1) and (_ymouse < 500)) {
game.clip.placementtile.gotoAndStop(24);
if (isMouseDown) {
game.clip.placementtile.gotoAndStop(2);
var _local2 = (("t_" + Math.floor((_ymouse - game.clip._y) / game.tileH)) + "_") + Math.floor((_xmouse - game.clip._x) / game.tileW);
game.clip[_local2].gotoAndStop(1);
myMap1[Math.floor((_ymouse - game.clip._y) / game.tileH)][Math.floor((_xmouse - game.clip._x) / game.tileW)] = 0;
}
}
game.clip.placementtile._x = Math.floor((_xmouse - game.clip._x) / game.tileW) * game.tileW;
game.clip.placementtile._y = Math.floor((_ymouse - game.clip._y) / game.tileH) * game.tileH;
} else {
trace("place placement tile");
game.clip.attachMovie("tile", "placementtile", 915901);
game.clip.placementtile.gotoAndStop(2);
game.clip.placementtile._x = Math.floor((_xmouse - game.clip._x) / game.tileW) * game.tileW;
game.clip.placementtile._y = Math.floor((_ymouse - game.clip._y) / game.tileH) * game.tileH;
}
if (game.clip.placementunits._x < 50000) {
if (goodguycount < 12) {
if (_root.unitcreation == 1) {
game.clip.placementunits.gotoAndStop(2);
if (isMouseDown and (_ymouse < 500)) {
goodguycount++;
game.clip.attachMovie("rogueicon", "goodguy" + goodguycount, 915801 + goodguycount);
game.clip["goodguy" + goodguycount]._x = (Math.floor((_xmouse - game.clip._x) / game.tileW) * game.tileW) + 20;
game.clip["goodguy" + goodguycount]._y = (Math.floor((_ymouse - game.clip._y) / game.tileH) * game.tileH) + 20;
goodguys[goodguycount].unit = 21;
goodguys[goodguycount].postx = Math.floor((_xmouse - game.clip._x) / game.tileW);
goodguys[goodguycount].posty = Math.floor((_ymouse - game.clip._y) / game.tileH);
game.clip.placementunits.gotoAndStop(1);
_root.unitcreation = 0;
_root.buildselection.roguebuild.gotoAndStop(1);
}
} else if (_root.unitcreation == 2) {
game.clip.placementunits.gotoAndStop(3);
if (isMouseDown and (_ymouse < 500)) {
goodguycount++;
game.clip.attachMovie("mageicon", "goodguy" + goodguycount, 915801 + goodguycount);
game.clip["goodguy" + goodguycount]._x = (Math.floor((_xmouse - game.clip._x) / game.tileW) * game.tileW) + 20;
game.clip["goodguy" + goodguycount]._y = (Math.floor((_ymouse - game.clip._y) / game.tileH) * game.tileH) + 20;
goodguys[goodguycount].unit = 22;
goodguys[goodguycount].postx = Math.floor((_xmouse - game.clip._x) / game.tileW);
goodguys[goodguycount].posty = Math.floor((_ymouse - game.clip._y) / game.tileH);
game.clip.placementunits.gotoAndStop(1);
_root.unitcreation = 0;
_root.buildselection.magebuild.gotoAndStop(1);
}
} else if (_root.unitcreation == 3) {
game.clip.placementunits.gotoAndStop(4);
if (isMouseDown and (_ymouse < 500)) {
goodguycount++;
game.clip.attachMovie("footmanicon", "goodguy" + goodguycount, 915801 + goodguycount);
game.clip["goodguy" + goodguycount]._x = (Math.floor((_xmouse - game.clip._x) / game.tileW) * game.tileW) + 20;
game.clip["goodguy" + goodguycount]._y = (Math.floor((_ymouse - game.clip._y) / game.tileH) * game.tileH) + 20;
goodguys[goodguycount].unit = 20;
goodguys[goodguycount].postx = Math.floor((_xmouse - game.clip._x) / game.tileW);
goodguys[goodguycount].posty = Math.floor((_ymouse - game.clip._y) / game.tileH);
game.clip.placementunits.gotoAndStop(1);
_root.unitcreation = 0;
_root.buildselection.footmanbuild.gotoAndStop(1);
}
}
}
game.clip.placementunits._x = Math.floor((_xmouse - game.clip._x) / game.tileW) * game.tileW;
game.clip.placementunits._y = Math.floor((_ymouse - game.clip._y) / game.tileH) * game.tileH;
} else {
game.clip.attachMovie("unitbuilds", "placementunits", 915902);
game.clip.placementunits._x = Math.floor((_xmouse - game.clip._x) / game.tileW) * game.tileW;
game.clip.placementunits._y = Math.floor((_ymouse - game.clip._y) / game.tileH) * game.tileH;
}
}
function placecurrentunits() {
var _local1 = 1;
while (_local1 < 13) {
if (goodguycount > (_local1 - 1)) {
if (goodguys[_local1].unit > 0) {
if (goodguys[_local1].unit == 22) {
game.clip.attachMovie("mageicon", "goodguy" + _local1, 915801 + _local1);
} else if (goodguys[_local1].unit == 21) {
game.clip.attachMovie("rogueicon", "goodguy" + _local1, 915801 + _local1);
} else if (goodguys[_local1].unit == 20) {
game.clip.attachMovie("footmanicon", "goodguy" + _local1, 915801 + _local1);
}
game.clip["goodguy" + _local1]._x = (goodguys[_local1].postx * game.tileW) + 20;
game.clip["goodguy" + _local1]._y = (goodguys[_local1].posty * game.tileH) + 20;
}
} else {
goodguys[_local1].unit = 0;
}
_local1++;
}
}
function addnewunits() {
}
function spawn(i, j) {
trace((((((("spawning unit " + j) + ", number ") + i) + ", xtile = ") + char[i].xtile) + ", y = ") + char[i].ytile);
if (i == 0) {
game.clip.attachMovie("herobottom", "char" + i, 10000 + i);
game.clip.attachMovie("herotop", "charlegs" + i, (10000 + i) - 1);
game.clip.attachMovie("goodhealth", "hb" + i, 9900 + i);
char[i].rweapon = currentarrow;
char[i].lweapon = currentarrow;
char[i].race = "rogue";
char[i].team = 1;
char[i].mattack = 30;
char[i].hpMax = 500;
char[i].hpCurrent = 500;
game.clip["char" + i]._xscale = 80;
game.clip["char" + i]._yscale = 80;
game.clip["charlegs" + i]._xscale = 80;
game.clip["charlegs" + i]._yscale = 80;
char[i].speed = herospeed;
herodmg = (5 + ((herostr + _global.equip_strength) * 2)) + _global.equip_attack;
char[i].mattack = herodmg;
herolife = ((100 + (herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
char[i].hpMax = herolife;
char[i].hpCurrent = herolife;
char_audio[i].attack1 = "archer_attack1";
char_audio[i].attack2 = "archer_attack2";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "archer_die4";
char_audio[i].charge = "";
char_audio[i].intro = "";
} else if (i == 1) {
game.clip.attachMovie("castle1", "char" + i, 5510000 + i);
game.clip.attachMovie("goodhealth", "hb" + i, 559900 + i);
game.clip["hb" + i]._alpha = 100;
game.clip["hb" + i]._xscale = 250;
game.clip["hb" + i]._yscale = 250;
char[i].team = 1;
char[i].race = "shrine";
char[i].mattack = 0;
char[i].hpMax = 1200 + (clevel * 600);
char[i].hpCurrent = 1200 + (clevel * 600);
} else if (i == 2) {
game.clip.attachMovie("lion", "char" + i, 10000 + i);
game.clip.attachMovie("goodhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "lion";
char[i].speed = 6 + int((heroint + _global.equip_intelligence) / 10);
char[i].team = 1;
char[i].mattack = 40 + ((heroint + _global.equip_intelligence) * 5);
char[i].hpMax = 2000 + ((heroint + _global.equip_intelligence) * 200);
char[i].hpCurrent = 2000 + ((heroint + _global.equip_intelligence) * 200);
char[i].a1 = 100;
char_audio[i].attack1 = "lion_growl";
char_audio[i].attack2 = "lion_growl";
char_audio[i].random1 = "lion_moan";
char_audio[i].random2 = "lion_moan";
char_audio[i].hurt = "lion_moan";
char_audio[i].die = "lion_moan";
char_audio[i].charge = "";
char_audio[i].intro = "";
} else {
if (j == 1) {
game.clip.attachMovie("goblin", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
char[i].rweapon = "redarrow";
char[i].lweapon = "redarrow";
char[i].race = "goblin";
char[i].team = 2;
char[i].a1 = 100;
char[i].a2 = 50;
char[i].a3 = 75;
char[i].a4 = 100;
char[i].speed = 5;
char_audio[i].attack1 = "combat_whoosh_02";
char_audio[i].attack2 = "combat_whoosh_03";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "behemoth_die1";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].goblin == 0) {
firstunit[0].goblin = 1;
arrange_icons(1, 1);
}
} else if (j == 10) {
game.clip.attachMovie("orgak", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "orgak";
char[i].speed = 7;
char[i].team = 2;
char[i].mattack = 365;
char[i].hpMax = 2750;
char[i].hpCurrent = 2750;
char[i].a1 = 100;
char_audio[i].attack1 = "Monster_Troll02_Attack_02_converted.wav";
char_audio[i].attack2 = "combat_whoosh_03";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "9. Monster Death 4.wav";
char_audio[i].die = "9. Monster Death 4.wav";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].orgak == 0) {
firstunit[0].orgak = 1;
arrange_icons(1, 13);
}
} else if (j == 45) {
game.clip.attachMovie("orgak", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
game.clip["char" + i]._xscale = 150;
game.clip["char" + i]._yscale = 150;
game.clip["hb" + i]._xscale = 150;
game.clip["hb" + i]._yscale = 150;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "orgak";
char[i].speed = 7;
char[i].team = 2;
char[i].mattack = 865;
char[i].hpMax = 52750;
char[i].hpCurrent = 52750;
char[i].a1 = 100;
stopAllSounds();
soundNum = 1;
playSound("music2", ingame_music, 99);
arrange_icons(1, 33);
boss_charge = 300;
bossspeed = 5;
boss_charge_recharge = 180;
boss_charge_activecount = 0;
boss_id = i;
boss_attack = 865;
boss_base_speed = 7;
char_audio[i].attack1 = "Monster_Troll02_Attack_02_converted.wav";
char_audio[i].attack2 = "combat_whoosh_03";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "9. Monster Death 4.wav";
char_audio[i].die = "9. Monster Death 4.wav";
char_audio[i].charge = "";
char_audio[i].intro = "";
} else if (j == 40) {
game.clip.attachMovie("goblinarmored", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["char" + i]._xscale = 150;
game.clip["char" + i]._yscale = 150;
game.clip["hb" + i]._xscale = 150;
game.clip["hb" + i]._yscale = 150;
game.clip["char" + i].filters = [shadowFilter];
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "orgak";
char[i].speed = 6;
char[i].team = 2;
char[i].mattack = 95;
char[i].hpMax = 1050;
char[i].hpCurrent = 1050;
char[i].a1 = 100;
stopAllSounds();
soundNum = 1;
playSound("music2", ingame_music, 99);
arrange_icons(1, 31);
boss_charge = 300;
bossspeed = 6;
boss_charge_recharge = 250;
boss_charge_activecount = 0;
boss_id = i;
boss_attack = 175;
boss_base_speed = 6;
char_audio[i].attack1 = "combat_whoosh_02";
char_audio[i].attack2 = "combat_whoosh_03";
char_audio[i].random1 = "2. You Gonna Be Dead.wav";
char_audio[i].random2 = "5. You Rotting Pile of Scut.wav";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "8. Monster Death 3.wav";
char_audio[i].charge = "";
char_audio[i].intro = "1. Oh, Fresh Meat.wav";
} else if (j == 11) {
game.clip.attachMovie("lionman", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "lionman";
char[i].speed = 7;
char[i].team = 4;
char[i].mattack = 450;
char[i].hpMax = 3550;
char[i].hpCurrent = 3550;
char[i].a1 = 100;
game.clip["char" + i]._xscale = 150;
game.clip["char" + i]._yscale = 150;
game.clip["hb" + i]._xscale = 150;
game.clip["hb" + i]._yscale = 150;
char_audio[i].attack1 = "combat_whoosh_02";
char_audio[i].attack2 = "AttackWhoosh_Axe_01_converted.wav";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "8. Monster Death 3.wav";
char_audio[i].die = "8. Monster Death 3.wav";
char_audio[i].charge = "";
char_audio[i].intro = "";
game.clip["char" + i].filters = [shadowFilter];
if (firstunit[0].lionman == 0) {
firstunit[0].lionman = 1;
arrange_icons(1, 16);
}
} else if (j == 5) {
game.clip.attachMovie("goblinassasin", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "goblinassasin";
char[i].speed = 7;
char[i].team = 2;
char[i].mattack = 45;
char[i].hpMax = 200;
char[i].hpCurrent = 200;
char[i].a1 = 100;
char_audio[i].attack1 = "AttackWhoosh_Sword_01_converted.wav";
char_audio[i].attack2 = "AttackWhoosh_Sword_02_converted.wav";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "daemon_die1";
char_audio[i].die = "9. Monster Death 4.wav";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].goblinassassin == 0) {
firstunit[0].goblinassassin = 1;
arrange_icons(1, 6);
}
} else if (j == 3) {
game.clip.attachMovie("goblinguard", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "goblinguard";
char[i].speed = 6;
char[i].team = 2;
char[i].mattack = 35;
char[i].hpMax = 150;
char[i].hpCurrent = 150;
char[i].a1 = 100;
char_audio[i].attack1 = "AttackWhoosh_Sword_01_converted.wav";
char_audio[i].attack2 = "AttackWhoosh_Sword_02_converted.wav";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "daemon_die1";
char_audio[i].die = "9. Monster Death 4.wav";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].goblinguard == 0) {
firstunit[0].goblinguard = 1;
arrange_icons(1, 4);
}
} else if (j == 7) {
game.clip.attachMovie("wolfrider", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "wolfrider";
char[i].speed = 8;
char[i].team = 2;
char[i].mattack = 55;
char[i].hpMax = 550;
char[i].hpCurrent = 550;
char[i].a1 = 100;
char_audio[i].attack1 = "blood_splat_03";
char_audio[i].attack2 = "combat_whoosh_04";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "2. Monster Pain 2.wav";
char_audio[i].die = "2. Monster Pain 2.wav";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].wolfrider == 0) {
firstunit[0].wolfrider = 1;
arrange_icons(1, 8);
}
} else if (j == 13) {
game.clip.attachMovie("lion", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "lion";
char[i].speed = 9;
char[i].team = 4;
char[i].mattack = 150;
char[i].hpMax = 650;
char[i].hpCurrent = 650;
char[i].a1 = 100;
char_audio[i].attack1 = "lion_growl";
char_audio[i].attack2 = "lion_growl";
char_audio[i].random1 = "lion_moan";
char_audio[i].random2 = "lion_moan";
char_audio[i].hurt = "lion_moan";
char_audio[i].die = "lion_moan";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].lion == 0) {
firstunit[0].lion = 1;
arrange_icons(1, 15);
}
} else if (j == 14) {
game.clip.attachMovie("battleogre", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
game.clip["char" + i]._xscale = 150;
game.clip["char" + i]._yscale = 150;
game.clip["hb" + i]._xscale = 150;
game.clip["hb" + i]._yscale = 150;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "battleogre";
char[i].team = 2;
char[i].mattack = 150;
char[i].hpMax = 2000;
char[i].hpCurrent = 2000;
char[i].speed = 9;
char[i].a1 = 25;
char[i].a2 = 50;
char[i].a3 = 75;
char[i].a4 = 100;
game.clip["char" + i].filters = [shadowFilter];
char_audio[i].attack1 = "behemoth_attack1f";
char_audio[i].attack2 = "behemoth_attack1g";
char_audio[i].random1 = "lion_moan";
char_audio[i].random2 = "lion_moan";
char_audio[i].hurt = "behemoth_die1";
char_audio[i].die = "behemoth_die2";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].battleogre == 0) {
firstunit[0].battleogre = 1;
arrange_icons(1, 14);
}
} else if (j == 20) {
game.clip.attachMovie("footman", "char" + i, 10000 + i);
game.clip.attachMovie("goodhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
game.clip["hb" + i]._xscale = 70;
game.clip["hb" + i]._yscale = 70;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "footman";
char[i].team = 1;
char[i].mattack = 15;
char[i].hpMax = 150;
char[i].hpCurrent = 150;
char[i].a1 = 100;
} else if (j == 21) {
trace("creating a rogue");
game.clip.attachMovie("rogue", "char" + i, 10000 + i);
game.clip.attachMovie("goodhealth", "hb" + i, 9900 + i);
trace(game.clip._x);
trace((((("i = " + i) + ", x = ") + game.clip["char" + i]._x) + ", y = ") + game.clip["char" + i]._y);
game.clip["hb" + i]._alpha = 70;
game.clip["hb" + i]._xscale = 70;
game.clip["hb" + i]._yscale = 70;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "rogue";
char[i].speed = 6;
char[i].team = 1;
char[i].ranged = true;
game.clip["char" + i]._xscale = 80;
game.clip["char" + i]._yscale = 80;
} else if (j == 2) {
game.clip.attachMovie("goblinarcher", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
char[i].rweapon = "redarrow";
char[i].lweapon = "redarrow";
char[i].race = "goblinarcher";
char[i].team = 2;
char[i].ranged = true;
char[i].speed = 6;
game.clip["hb" + i]._xscale = 100;
game.clip["hb" + i]._yscale = 100;
char_audio[i].attack1 = "archer_attack1";
char_audio[i].attack2 = "archer_attack2";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "archer_die4";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].goblinarcher == 0) {
firstunit[0].goblinarcher = 1;
arrange_icons(1, 2);
}
} else if (j == 4) {
game.clip.attachMovie("goblinelitearcher", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
char[i].rweapon = "redarrow";
char[i].lweapon = "redarrow";
char[i].race = "goblinelitearcher";
char[i].hpMax = 100;
char[i].hpCurrent = 100;
char[i].mattack = 25;
char[i].team = 2;
char[i].ranged = true;
char[i].speed = 6;
game.clip["hb" + i]._xscale = 100;
game.clip["hb" + i]._yscale = 100;
char_audio[i].attack1 = "archer_attack1";
char_audio[i].attack2 = "archer_attack2";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "archer_die4";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].goblinelitearcher == 0) {
firstunit[0].goblinelitearcher = 1;
arrange_icons(1, 5);
}
} else if (j == 25) {
game.clip.attachMovie("drake", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "drake";
char[i].speed = 5;
char[i].team = 2;
char[i].mattack = 565;
char[i].hpMax = 5750;
char[i].hpCurrent = 5750;
char[i].a1 = 100;
if (firstunit[0].drake == 0) {
firstunit[0].drake = 1;
arrange_icons(1, 18);
}
} else if (j == 43) {
game.clip.attachMovie("drake", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
game.clip["char" + i]._xscale = 150;
game.clip["char" + i]._yscale = 150;
game.clip["hb" + i]._xscale = 150;
game.clip["hb" + i]._yscale = 150;
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "drake";
char[i].speed = 5;
char[i].team = 2;
char[i].mattack = 965;
char[i].hpMax = 95750 /* 0x017606 */;
char[i].hpCurrent = 95750 /* 0x017606 */;
char[i].a1 = 100;
stopAllSounds();
soundNum = 1;
playSound("music2", ingame_music, 99);
arrange_icons(1, 34);
boss_charge = 300;
bossspeed = 5;
boss_charge_recharge = 250;
boss_charge_activecount = 0;
boss_id = i;
boss_attack = 995;
boss_base_speed = 6;
char_audio[i].attack1 = "Monster_LizardMonster01_Attack_02_converted.wav";
char_audio[i].attack2 = "Monster_LizardMonster01_Attack_06_converted.wav";
char_audio[i].random1 = "Monster_Troll02_Agro_01_converted.wav";
char_audio[i].random2 = "Monster_Troll02_Agro_01_converted.wav";
char_audio[i].hurt = "Monster_LizardMonster01_Death_01_converted.wav";
char_audio[i].die = "Monster_LizardMonster01_Death_01_converted.wav";
char_audio[i].charge = "";
char_audio[i].intro = "1. Oh, Fresh Meat.wav";
} else if (j == 44) {
game.clip.attachMovie("demon", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 70;
game.clip["char" + i]._xscale = 150;
game.clip["char" + i]._yscale = 150;
game.clip["hb" + i]._xscale = 150;
game.clip["hb" + i]._yscale = 150;
char[i].rweapon = "firebolt";
char[i].lweapon = "firebolt";
char[i].race = "demon";
char[i].speed = 7;
char[i].team = 2;
char[i].mattack = 1965;
char[i].hpMax = 255750 /* 0x03E706 */;
char[i].hpCurrent = 255750 /* 0x03E706 */;
char[i].a1 = 100;
stopAllSounds();
soundNum = 1;
playSound("music2", ingame_music, 99);
arrange_icons(1, 35);
boss_charge = 300;
bossspeed = 5;
boss_charge_recharge = 180;
boss_charge_activecount = 0;
boss_id = i;
boss_attack = 1995;
boss_base_speed = 7;
char_audio[i].attack1 = "combat_whoosh_02";
char_audio[i].attack2 = "combat_whoosh_03";
char_audio[i].random1 = "4. Burn.wav";
char_audio[i].random2 = "6. You Will Suffer.wav";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "8. Monster Death 3.wav";
char_audio[i].charge = "";
char_audio[i].intro = "1. Don't Waste My Time.wav";
} else if (j == 50) {
game.clip.attachMovie("goblintower", "char" + i, (10000 + i) + 50);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "goblintower";
char[i].hpMax = 500 + (clevel * 1000);
char[i].hpCurrent = 500 + (clevel * 1000);
char[i].mattack = 20 + (clevel * 10);
char[i].edist = 710;
char[i].team = 2;
char[i].ranged = true;
char[i].speed = 0;
game.clip["hb" + i]._xscale = 200;
game.clip["hb" + i]._yscale = 200;
char_audio[i].attack1 = "archer_attack1";
char_audio[i].attack2 = "archer_attack2";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "archer_die4";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].goblintower == 0) {
firstunit[0].goblintower = 1;
arrange_icons(1, 7);
}
} else if (j == 52) {
game.clip.attachMovie("goblintower2", "char" + i, (10000 + i) + 50);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
char[i].rweapon = "firebolt";
char[i].lweapon = "firebolt";
char[i].race = "goblintower";
char[i].hpMax = 780 + (clevel * 1500);
char[i].hpCurrent = 780 + (clevel * 1500);
char[i].mattack = 50 + (clevel * 25);
char[i].edist = 720;
char[i].team = 2;
char[i].ranged = true;
char[i].speed = 0;
game.clip["hb" + i]._xscale = 200;
game.clip["hb" + i]._yscale = 200;
char_audio[i].attack1 = "archer_attack1";
char_audio[i].attack2 = "archer_attack2";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "archer_die4";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].goblintower2 == 0) {
firstunit[0].goblintower2 = 1;
arrange_icons(1, 17);
}
} else if (j == 51) {
game.clip.attachMovie("goblintent", "char" + i, (10000 + i) + 50);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
char[i].rweapon = "firearrow";
char[i].lweapon = "firearrow";
char[i].race = "goblintent";
char[i].hpMax = -2500 + (clevel * 1500);
char[i].hpCurrent = -2500 + (clevel * 1500);
char[i].mattack = 0;
char[i].edist = 0;
char[i].team = 2;
char[i].ranged = false;
char[i].speed = 0;
game.clip["hb" + i]._xscale = 400;
game.clip["hb" + i]._yscale = 400;
char_audio[i].die = "aexp6";
if (firstunit[0].goblintent == 0) {
firstunit[0].goblintent = 1;
arrange_icons(1, 12);
}
} else if (j == 8) {
game.clip.attachMovie("spidergoblin", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
char[i].rweapon = "greenarrow";
char[i].lweapon = "greenarrow";
char[i].race = "spidergoblin";
char[i].hpMax = 850;
char[i].hpCurrent = 850;
char[i].mattack = 150;
char[i].team = 2;
char[i].speed = 6;
char[i].ranged = true;
game.clip["hb" + i]._xscale = 100;
game.clip["hb" + i]._yscale = 100;
char_audio[i].attack1 = "archer_attack1";
char_audio[i].attack2 = "archer_attack2";
char_audio[i].random1 = "goblinattack";
char_audio[i].random2 = "goblinattack";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "Monster_LizardMonster01_Death_01_converted.wav";
char_audio[i].charge = "";
char_audio[i].intro = "";
if (firstunit[0].spidergoblin == 0) {
firstunit[0].spidergoblin = 1;
arrange_icons(1, 10);
}
} else if (j == 15) {
game.clip.attachMovie("skelarcher", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
char[i].rweapon = "redarrow";
char[i].lweapon = "redarrow";
char[i].race = "skelarcher";
game.clip["char" + i].filters = [shadowFilter];
char[i].team = 2;
char[i].hpMax = 2150;
char[i].hpCurrent = 2150;
char[i].mattack = 330;
char[i].speed = 6;
char[i].ranged = true;
game.clip["hb" + i]._xscale = 100;
game.clip["hb" + i]._yscale = 100;
} else if (j == 16) {
game.clip.attachMovie("skelsword", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["char" + i].filters = [shadowFilter];
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "skelsword";
char[i].hpMax = 2250;
char[i].hpCurrent = 2250;
char[i].mattack = 430;
char[i].team = 2;
char[i].ranged = false;
char[i].speed = 6;
game.clip["hb" + i]._xscale = 100;
game.clip["hb" + i]._yscale = 100;
char[i].a1 = 100;
} else if (j == 17) {
game.clip.attachMovie("skelaxe", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["char" + i].filters = [shadowFilter];
char[i].rweapon = "arrow";
char[i].lweapon = "arrow";
char[i].race = "skelaxe";
char[i].team = 2;
char[i].hpMax = 2250;
char[i].hpCurrent = 2250;
char[i].mattack = 430;
char[i].speed = 6;
char[i].ranged = false;
game.clip["hb" + i]._xscale = 100;
game.clip["hb" + i]._yscale = 100;
char[i].a1 = 100;
} else if (j == 18) {
game.clip.attachMovie("skelmage", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["char" + i].filters = [shadowFilter];
char[i].rweapon = "deathcoil";
char[i].lweapon = "deathcoil";
char[i].race = "skelmage";
char[i].team = 2;
char[i].speed = 6;
char[i].ranged = true;
game.clip["hb" + i]._xscale = 100;
game.clip["hb" + i]._yscale = 100;
char[i].hpMax = 4350;
char[i].hpCurrent = 4350;
char[i].mattack = 745;
char[i].gold = Math.round(Math.random() * (char[i].hpMax / 5)) + 1;
} else if (j == 19) {
game.clip.attachMovie("troll", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
char[i].rweapon = "boulder";
char[i].lweapon = "boulder";
char[i].race = "troll";
char[i].team = 2;
char[i].speed = 6;
char[i].ranged = true;
char[i].mattack = 125;
char[i].hpMax = 1200;
char[i].hpCurrent = 1200;
char[i].gold = Math.round(Math.random() * 1500) + 1;
char_audio[i].attack1 = "combat_whoosh_04";
char_audio[i].attack2 = "combat_whoosh_04";
char_audio[i].random1 = "Monster_Troll02_Agro_01_converted.wav";
char_audio[i].random2 = "Monster_Troll02_Laugh_02_converted.wav";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "Monster_Troll02_DeathLong_03_converted.wav";
char_audio[i].charge = "";
char_audio[i].intro = "Monster_Troll02_Laugh_02_converted.wav";
if (firstunit[0].troll == 0) {
firstunit[0].troll = 1;
arrange_icons(1, 9);
}
} else if (j == 41) {
game.clip.attachMovie("troll", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["char" + i]._xscale = 130;
game.clip["char" + i]._yscale = 130;
game.clip["hb" + i]._xscale = 150;
game.clip["hb" + i]._yscale = 150;
char[i].rweapon = "boulder";
char[i].lweapon = "boulder";
char[i].race = "troll";
char[i].team = 2;
char[i].speed = 6;
char[i].ranged = true;
char[i].mattack = 195;
char[i].hpMax = 8000;
char[i].hpCurrent = 8000;
char[i].gold = Math.round(Math.random() * 15000) + 1;
stopAllSounds();
soundNum = 1;
playSound("music2", ingame_music, 99);
arrange_icons(1, 32);
boss_charge = 300;
bossspeed = 6;
boss_charge_recharge = 250;
boss_charge_activecount = 0;
boss_id = i;
boss_attack = 595;
boss_base_speed = 6;
char_audio[i].attack1 = "Monster_Troll02_Attack_02_converted.wav";
char_audio[i].attack2 = "Monster_Troll02_Attack_02_converted.wav";
char_audio[i].random1 = "Monster_Troll02_Agro_01_converted.wav";
char_audio[i].random2 = "Monster_Troll02_Laugh_02_converted.wav";
char_audio[i].hurt = "monsterpain2";
char_audio[i].die = "Monster_Troll02_DeathLong_03_converted.wav";
char_audio[i].charge = "";
char_audio[i].intro = "Monster_Troll02_Laugh_02_converted.wav";
} else if (j == 22) {
game.clip.attachMovie("wizard", "char" + i, 10000 + i);
game.clip.attachMovie("goodhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 100;
game.clip["hb" + i]._xscale = 100;
game.clip["hb" + i]._yscale = 100;
char[i].rweapon = "firebolt";
char[i].lweapon = "firebolt";
char[i].race = "wizard";
char[i].team = 1;
char[i].ranged = true;
char[i].mattack = 45;
char[i].hpMax = 450;
char[i].hpCurrent = 450;
char[i].gold = Math.round(Math.random() * 150) + 1;
} else if (j == 6) {
game.clip.attachMovie("goblinmage", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["hb" + i]._alpha = 100;
game.clip["hb" + i]._xscale = 100;
game.clip["hb" + i]._yscale = 100;
char[i].rweapon = "firebolt";
char[i].lweapon = "firebolt";
char[i].race = "goblinmage";
char[i].speed = 6;
char[i].team = 2;
char[i].ranged = true;
char[i].mattack = 95;
char[i].hpMax = 650;
char[i].hpCurrent = 650;
char[i].gold = Math.round(Math.random() * 1500) + 1;
char_audio[i].attack1 = "Monster_ShockWarrior01_Attack_01_converted.wav";
char_audio[i].attack2 = "Monster_ShockWarrior01_Attack_01_converted.wav";
char_audio[i].random1 = "Lightnin-Dylan_Hi-8584_hifi";
char_audio[i].random2 = "Lightnin-Dylan_Hi-8584_hifi";
char_audio[i].hurt = "Monster_ShockWarrior01_Death_01_converted.wav";
char_audio[i].die = "Monster_ShockWarrior01_Death_01_converted.wav";
char_audio[i].charge = "";
char_audio[i].intro = "Monster_ShockWarrior01_AttackLong_02_converted.wav";
if (firstunit[0].goblinmage == 0) {
firstunit[0].goblinmage = 1;
arrange_icons(1, 11);
}
} else if (j == 42) {
game.clip.attachMovie("goblinmage", "char" + i, 10000 + i);
game.clip.attachMovie("badhealth", "hb" + i, 9900 + i);
game.clip["char" + i]._xscale = 130;
game.clip["char" + i]._yscale = 130;
game.clip["hb" + i]._xscale = 150;
game.clip["hb" + i]._yscale = 150;
char[i].rweapon = "firebolt";
char[i].lweapon = "firebolt";
char[i].race = "goblinmage";
char[i].speed = 7;
char[i].team = 2;
char[i].ranged = true;
char[i].mattack = 145;
char[i].hpMax = 3650;
char[i].hpCurrent = 3650;
char[i].gold = Math.round(Math.random() * 1500) + 1;
stopAllSounds();
soundNum = 1;
playSound("music2", ingame_music, 99);
arrange_icons(1, 30);
boss_charge = 300;
bossspeed = 7;
boss_charge_recharge = 250;
boss_charge_activecount = 0;
boss_id = i;
boss_attack = 395;
boss_base_speed = 6;
char_audio[i].attack1 = "Monster_ShockWarrior01_Attack_01_converted.wav";
char_audio[i].attack2 = "Monster_ShockWarrior01_Attack_01_converted.wav";
char_audio[i].random1 = "Lightnin-Dylan_Hi-8584_hifi";
char_audio[i].random2 = "Lightnin-Dylan_Hi-8584_hifi";
char_audio[i].hurt = "Monster_ShockWarrior01_Death_01_converted.wav";
char_audio[i].die = "Monster_ShockWarrior01_Death_01_converted.wav";
char_audio[i].charge = "";
char_audio[i].intro = "Monster_ShockWarrior01_AttackLong_02_converted.wav";
}
char[i].gold = Math.round(Math.random() * (char[i].hpMax / 3)) + 1;
}
unitlocations(i);
trace((char[i].xtile + ":") + char[i].ytile);
char[i].clip = game.clip["char" + i];
char[i].x = (char[i].xtile * game.tileW) + (game.tileW / 2);
char[i].y = (char[i].ytile * game.tileW) + (game.tileW / 2);
char[i].width = char[i].clip._width / 2;
char[i].height = char[i].clip._height / 2;
game.clip["char" + i]._x = char[i].x;
game.clip["char" + i]._y = char[i].y;
trace((("x = " + game.clip["char" + i]._x) + ", y = ") + game.clip["char" + i]._y);
char[i].clip._x = char[i].x;
char[i].clip._y = char[i].y;
game.clip["hb" + i]._x = char[i].clip._x;
game.clip["hb" + i]._y = char[i].clip._y;
game.clip.hb1._y = char[1].clip._y + 50;
char[i].clip.gotoAndStop(1);
char[i].xstep = char[i].x;
char[i].ystep = char[i].y;
game.clip["hb" + i]._alpha = 50;
}
function sortgoodguys() {
goodguys.sortOn("unit", Array.DESCENDING);
}
function endgame() {
if (defeatcount > 0) {
defeatcount--;
if (defeatcount == 10) {
_root.attachMovie("levelend", "levelend", 9911006);
levelend.gotoAndStop(1);
levelend._x = 400;
levelend._y = 250;
levelend._xscale = 1;
levelend._yscale = 1;
_quality = "HIGH";
} else if (defeatcount == 0) {
gamemode = 3;
} else {
levelend._xscale = Math.max(100 - (defeatcount * 10), 1);
levelend._yscale = Math.max(100 - (defeatcount * 10), 1);
}
}
if (victorycount > 0) {
victorycount--;
if (victorycount == 10) {
if (defeatcount == 0) {
_root.attachMovie("levelend", "levelend", 9911006);
levelend.gotoAndStop(2);
levelend._x = 400;
levelend._y = 250;
levelend._xscale = 1;
levelend._yscale = 1;
_quality = "HIGH";
_root.bullseye._x = 2000;
}
} else if (victorycount == 0) {
gamemode = 3;
} else {
levelend._xscale = Math.max(100 - (victorycount * 10), 1);
levelend._yscale = Math.max(100 - (victorycount * 10), 1);
}
}
if (newskill_count > 0) {
newskill_count--;
if (newskill_count > 3) {
new_skill._xscale = 180 - (newskill_count * 15);
new_skill._yscale = 180 - (newskill_count * 15);
} else if (newskill_count > 0) {
new_skill._xscale = 70 + (newskill_count * 10);
new_skill._yscale = 70 + (newskill_count * 10);
}
}
var _local2 = 1;
while (_local2 < 6) {
if (_root["newicon_count" + _local2] > 0) {
_root["newicon_count" + _local2]--;
if (_root["newicon_count" + _local2] > 3) {
_root["new_icon" + _local2]._xscale = 180 - (_root["newicon_count" + _local2] * 15);
_root["new_icon" + _local2]._yscale = 180 - (_root["newicon_count" + _local2] * 15);
} else if (_root["newicon_count" + _local2] > 0) {
_root["new_icon" + _local2]._xscale = 70 + (_root["newicon_count" + _local2] * 10);
_root["new_icon" + _local2]._yscale = 70 + (_root["newicon_count" + _local2] * 10);
}
}
_local2++;
}
}
function herodefenses() {
herodef = (0 + int((heroagil + _global.equip_agility) * 5)) + _global.equip_armor;
var _local5 = herodef;
var _local4;
_local4 = 0;
defensepercent = 0;
var _local3 = 0;
var _local2 = 0;
while (_local2 < _local5) {
_local3 = 0.125 * Math.pow(0.9987, _local2);
_local4 = _local4 + _local3;
_local2++;
}
defensepercent = int(Math.min(_local4, 95));
trace("defensepercent = " + defensepercent);
}
function setup_special() {
splitarrow_totalrecharge = Math.max(2000 - int((heroint + _global.equip_intelligence) * 10), 900);
splitarrow_activemax = Math.min(350 + ((heroint + _global.equip_intelligence) * 8), 890);
volley_totalrecharge = Math.max(2500 - int((heroint + _global.equip_intelligence) * 10), 1100);
volley_activemax = Math.min(350 + ((heroint + _global.equip_intelligence) * 8), 900);
summon_totalrecharge = Math.max(3000 - int((heroint + _global.equip_intelligence) * 10), 1400);
wind_totalrecharge = Math.max(2000 - int((heroint + _global.equip_intelligence) * 10), 900);
wind_activemax = Math.min(200 + ((heroint + _global.equip_intelligence) * 15), 890);
dash_totalrecharge = Math.max(2500 - int((heroint + _global.equip_intelligence) * 10), 1100);
dash_activemax = Math.min(500 + ((heroint + _global.equip_intelligence) * 6), 900);
arrow_splash_totalrecharge = Math.max(2500 - int((heroint + _global.equip_intelligence) * 10), 1100);
arrow_splash_activemax = Math.min(50 + ((heroint + _global.equip_intelligence) * 3), 200);
}
function firstunits(i, j) {
if (firstunit[0][i] == 0) {
firstunit[0][i] = 1;
arrange_icons(1, j);
}
}
function arrange_icons(i, j) {
var _local2 = 9999501 /* 0x98948D */;
if ((i == 2) and (levelup_icon > 0)) {
} else if (iconspace1 == 0) {
iconspace1 = 1;
iconcount = 1;
} else if (iconspace2 == 0) {
iconspace2 = 1;
iconcount = 2;
} else if (iconspace3 == 0) {
iconspace3 = 1;
iconcount = 3;
} else if (iconspace4 == 0) {
iconspace4 = 1;
iconcount = 4;
} else if (iconspace5 == 0) {
iconspace5 = 1;
iconcount = 5;
} else {
iconcount = 1;
}
if (i == 1) {
attachMovie("new_creature", "new_icon" + iconcount, _local2 + iconcount);
} else if (i == 3) {
attachMovie("new_skill", "new_icon" + iconcount, _local2 + iconcount);
} else if (levelup_icon > 0) {
iconcount = levelup_icon;
} else {
attachMovie("attributes_button", "new_icon" + iconcount, _local2 + iconcount);
levelup_icon = iconcount;
}
_root["newicon_count" + iconcount] = 10;
_root["new_icon" + iconcount]._x = 70;
_root["new_icon" + iconcount].gotoAndStop(j);
_root["new_icon" + iconcount]._yscale = 1;
_root["new_icon" + iconcount]._xscale = 1;
_root["new_icon" + iconcount]._y = (50 + (120 * iconcount)) - 120;
}
function nightstorm() {
var _local1 = int(Math.random() * 100);
if ((_local1 % 31) == 0) {
lightcount = 20;
aftershock = 10;
}
if (lightcount > 0) {
pitchblack._x = 3000;
lightcount--;
} else {
if (aftershock > 0) {
aftershock--;
if (aftershock == 0) {
lightcount = 5;
}
}
pitchblack._x = 0;
}
}
function check_bases() {
}
fscommand ("allowscale", false);
var firedamage = 0;
var clickdelay = 0;
var potionscount = 0;
var lightcount = 0;
var aftershock = 0;
var boss_charge = 0;
var bossspeed = 0;
var boss_charge_recharge = 0;
var boss_charge_activecount = 0;
var boss_id = 0;
var boss_base_speed = 0;
var boss_attack = 0;
var boss_meet = 0;
var iconcount = 0;
var levelup_icon = 0;
var defensepercent = 0;
var goblintower_count = 0;
var defeatcount = 0;
var victorycount = 0;
var newskill_count = 0;
var newunit_count = 0;
var newicon_count1 = 0;
var newicon_count2 = 0;
var newicon_count3 = 0;
var newicon_count4 = 0;
var newicon_count5 = 0;
var popcap = 20;
var meleereach = 100;
var gamecount = 0;
var iconspace1 = 0;
var iconspace2 = 0;
var iconspace3 = 0;
var iconspace4 = 0;
var iconspace5 = 0;
var unitcreation = 0;
var building = 0;
var gamemode = 1;
var collecttick = 0;
var movetick = 0;
var missiletick = 0;
var herospeed = Math.min(Math.max(int(((40 + heroagil) + _global.equip_agility) / 10), 6), 15);
var viewnorth = 0;
var viewwest = 0;
var createrate = (25 - clevel);
var alarm_count = 0;
var base_count = 1;
var createcount = 0;
var created = 2;
var createarray = 0;
var goodguycount = 0;
var goodguys = [];
var castlehpmax = 2500;
var castlehpcurrent = 2500;
var shriney = 23;
gold = _global.GOLD;
_root.createEmptyMovieClip("sss40", 10540);
var windsound = new Sound(this.sss40);
windsound.attachSound("wind.wav");
var spellslots = [];
spellslots[0] = false;
spellslots[1] = false;
spellslots[2] = false;
spellslots[3] = false;
spellslots[4] = false;
spellslots[5] = false;
var startups = [];
startups[1] = {count:0, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[2] = {count:1, startx:2, starty:1, startx2:5, starty2:1, startx3:6, starty3:0};
startups[3] = {count:1, startx:6, starty:1, startx2:2, starty2:1, startx3:4, starty3:4};
startups[4] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[5] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[6] = {count:1, startx:4, starty:1, startx2:3, starty2:23, startx3:6, starty3:0};
startups[7] = {count:2, startx:4, starty:1, startx2:1, starty2:10, startx3:6, starty3:0};
startups[8] = {count:2, startx:4, starty:1, startx2:1, starty2:10, startx3:6, starty3:0};
startups[9] = {count:2, startx:4, starty:1, startx2:1, starty2:10, startx3:6, starty3:0};
startups[10] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[11] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[12] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[13] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[14] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[15] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[16] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[17] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[18] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
startups[19] = {count:1, startx:5, starty:1, startx2:6, starty2:3, startx3:6, starty3:0};
var towers = [];
towers[1] = {startx:3, starty:5};
towers[2] = {startx:7, starty:5};
towers[3] = {startx:1, starty:2};
towers[4] = {startx:1, starty:5};
towers[5] = {startx:5, starty:5};
towers[6] = {startx:3, starty:3};
towers[7] = {startx:7, starty:3};
towers[8] = {startx:5, starty:3};
towers[15] = {startx:3, starty:5};
towers[16] = {startx:3, starty:5};
var towerlvl = [];
towerlvl[1] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[2] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[3] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[4] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[5] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[6] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[7] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[8] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[9] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[10] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[11] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[12] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[13] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[14] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[15] = [1, 2, 3, 4, 5, 6, 7, 8];
towerlvl[16] = [1, 2, 3, 6, 7, 8, 7, 8];
towerlvl[17] = [1, 2, 3, 6, 7, 8, 7, 8];
towerlvl[18] = [1, 2, 3, 6, 7, 8, 7, 8];
var spellslots2 = [];
spellslots2[1] = 0;
spellslots2[2] = 0;
spellslots2[3] = 0;
spellslots2[4] = 0;
spellslots2[5] = 0;
spellslots2[6] = 0;
var char_audio = [];
var i = 1;
while (i < 13) {
goodguys[i] = {unit:0, postx:2, posty:18};
i++;
}
_quality = "LOW";
var blip1 = 0;
var blip2 = 0;
var blip3 = 0;
var blipping = 0;
this.attachMovie("experiencebar", "experiencebar", 9999500);
this.experiencebar._y = 560;
this.experiencebar._x = 160;
this.attachMovie("topshade", "topshade", 9999501);
this.topshade._y = -15;
this.topshade._x = -30;
this.attachMovie("bottomshade", "bottomshade", 9999499);
this.bottomshade._y = 550;
this.bottomshade._x = -30;
this.attachMovie("bullseye", "bullseye", 9999999);
this.bullseye._x = -500;
var whiteGlowFilter = (new flash.filters.GlowFilter(16777215, 0.6, 4, 4, 20, 3, false, false));
var blueGlowFilter = (new flash.filters.GlowFilter(1967865, 0.9, 2, 2, 20, 3, false, false));
var shadowFilter = (new flash.filters.GlowFilter(0, 1, 1.2, 1.2, 20, 1, false, false));
var isMouseDown = false;
var my_fmt = new TextFormat();
my_fmt.color = 65280;
my_fmt.size = 16;
my_fmt.bold = true;
var my_fmt2 = new TextFormat();
my_fmt2.color = 16711680 /* 0xFF0000 */;
my_fmt2.size = 16;
my_fmt2.bold = true;
var my_fmt3 = new TextFormat();
my_fmt3.color = 16776960 /* 0xFFFF00 */;
my_fmt3.size = 16;
my_fmt3.bold = true;
var straight = false;
var wtiles = myMap1[0].length;
var htiles = myMap1.length;
storedpath = [];
var selector = 0;
var ab = 0;
var mobreq = 4;
var mobmiddle = 50;
var mobright = 25;
var mobleft = 25;
var mobeffect = 2;
var mobbingrange = 200;
var meleemobcount = 0;
var randomsound = int(Math.random() * 500);
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.block = false;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.block = true;
game.Tile1.prototype.frame = 3;
game.Doors = function (newmap, newcharx, newchary) {
this.newmap = newmap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors.prototype.walkable = true;
game.Doors.prototype.frame = 102;
game.Doors.prototype.door = true;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(8, 1, 99);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 99, 10);
game.Tile3.prototype.frame = 101;
game.Tile4 = function () {
};
game.Tile4.prototype.walkable = false;
game.Tile4.prototype.frame = 20;
game.Tile5 = function () {
game.Tile5.prototype.walkable = false;
game.Tile5.prototype.frame = 3;
game.Tile5.prototype.block = true;
game.Tile5.prototype.building = true;
game.Tile5.prototype.hp = 100;
};
game.Tile6 = function () {
game.Tile6.prototype.walkable = false;
game.Tile6.prototype.block = true;
game.Tile6.prototype.frame = 4;
};
game.Tile7 = function () {
game.Tile7.prototype.walkable = false;
game.Tile7.prototype.frame = 5;
game.Tile7.prototype.block = true;
game.Tile7.prototype.building = true;
game.Tile7.prototype.hp = 100;
};
game.Tile8 = function () {
game.Tile8.prototype.walkable = false;
game.Tile8.prototype.block = true;
game.Tile8.prototype.frame = 6;
game.Tile8.prototype.building = true;
game.Tile8.prototype.hp = 100;
};
game.Tile9 = function () {
game.Tile9.prototype.walkable = true;
game.Tile9.prototype.block = false;
game.Tile9.prototype.frame = 8;
};
game.Tile10 = function () {
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.block = false;
game.Tile10.prototype.frame = 9;
};
game.Tile11 = function () {
game.Tile11.prototype.walkable = true;
game.Tile11.prototype.block = false;
game.Tile11.prototype.frame = 10;
};
game.Tile12 = function () {
game.Tile12.prototype.walkable = true;
game.Tile12.prototype.block = false;
game.Tile12.prototype.frame = 11;
};
game.Tile13 = function () {
game.Tile13.prototype.walkable = true;
game.Tile13.prototype.block = false;
game.Tile13.prototype.frame = 12;
};
game.Tile14 = function () {
game.Tile14.prototype.walkable = true;
game.Tile14.prototype.block = false;
game.Tile14.prototype.frame = 13;
};
game.Tile15 = function () {
game.Tile15.prototype.walkable = true;
game.Tile15.prototype.block = true;
game.Tile15.prototype.frame = 14;
};
game.Tile16 = function () {
game.Tile16.prototype.walkable = false;
game.Tile16.prototype.block = true;
game.Tile16.prototype.frame = 15;
};
game.Tile17 = function () {
game.Tile17.prototype.walkable = false;
game.Tile17.prototype.block = true;
game.Tile17.prototype.frame = 16;
};
game.Tile18 = function () {
game.Tile18.prototype.walkable = false;
game.Tile18.prototype.block = true;
game.Tile18.prototype.frame = 17;
};
game.Tile19 = function () {
game.Tile19.prototype.walkable = false;
game.Tile19.prototype.block = true;
game.Tile19.prototype.frame = 18;
};
game.Tile20 = function () {
game.Tile20.prototype.walkable = true;
game.Tile20.prototype.frame = 19;
};
game.Tile21 = function () {
game.Tile21.prototype.walkable = false;
game.Tile21.prototype.block = false;
game.Tile21.prototype.frame = 20;
};
game.Tile22 = function () {
game.Tile22.prototype.walkable = false;
game.Tile22.prototype.frame = 21;
};
game.Tile23 = function () {
game.Tile23.prototype.walkable = false;
game.Tile23.prototype.block = false;
game.Tile23.prototype.frame = 22;
};
game.Tile24 = function () {
game.Tile24.prototype.walkable = false;
game.Tile24.prototype.block = false;
game.Tile24.prototype.frame = 23;
};
game.Tile25 = function () {
game.Tile25.prototype.walkable = false;
game.Tile25.prototype.block = true;
game.Tile25.prototype.frame = 24;
};
game.Tile26 = function () {
game.Tile26.prototype.walkable = false;
game.Tile26.prototype.block = true;
game.Tile26.prototype.frame = 25;
};
game.Tile27 = function () {
game.Tile27.prototype.walkable = false;
game.Tile27.prototype.block = true;
game.Tile27.prototype.frame = 26;
};
game.Tile28 = function () {
game.Tile28.prototype.walkable = false;
game.Tile28.prototype.block = true;
game.Tile28.prototype.frame = 27;
};
game.Tile29 = function () {
game.Tile29.prototype.walkable = true;
game.Tile29.prototype.block = false;
game.Tile29.prototype.frame = 28;
};
game.Tile30 = function () {
game.Tile30.prototype.walkable = true;
game.Tile30.prototype.frame = 29;
};
game.Tile31 = function () {
game.Tile31.prototype.walkable = true;
game.Tile31.prototype.frame = 30;
};
game.Tile32 = function () {
game.Tile32.prototype.walkable = true;
game.Tile32.prototype.frame = 31;
};
game.Tile33 = function () {
game.Tile33.prototype.walkable = true;
game.Tile33.prototype.frame = 32;
};
game.Tile34 = function () {
game.Tile34.prototype.walkable = true;
game.Tile34.prototype.frame = 33;
};
game.Tile35 = function () {
game.Tile35.prototype.walkable = false;
game.Tile35.prototype.block = true;
game.Tile35.prototype.frame = 34;
};
game.Tile36 = function () {
game.Tile36.prototype.walkable = false;
game.Tile36.prototype.frame = 35;
};
game.Tile37 = function () {
game.Tile37.prototype.walkable = false;
game.Tile37.prototype.block = true;
game.Tile37.prototype.frame = 36;
};
game.Tile38 = function () {
game.Tile38.prototype.walkable = false;
game.Tile38.prototype.block = true;
game.Tile38.prototype.frame = 37;
};
game.Tile39 = function () {
game.Tile39.prototype.walkable = false;
game.Tile39.prototype.block = true;
game.Tile39.prototype.frame = 38;
};
game.Tile40 = function () {
game.Tile40.prototype.walkable = false;
game.Tile40.prototype.block = true;
game.Tile40.prototype.frame = 39;
};
game.Tile41 = function () {
game.Tile41.prototype.walkable = false;
game.Tile41.prototype.block = true;
game.Tile41.prototype.frame = 40;
};
game.Tile42 = function () {
game.Tile42.prototype.walkable = false;
game.Tile42.prototype.block = true;
game.Tile42.prototype.frame = 41;
};
game.Tile43 = function () {
game.Tile43.prototype.walkable = false;
game.Tile43.prototype.block = true;
game.Tile43.prototype.frame = 42;
};
game.Tile44 = function () {
game.Tile44.prototype.walkable = false;
game.Tile44.prototype.block = true;
game.Tile44.prototype.frame = 43;
};
game.Tile45 = function () {
game.Tile45.prototype.walkable = false;
game.Tile45.prototype.block = true;
game.Tile45.prototype.frame = 44;
};
game.Tile46 = function () {
game.Tile46.prototype.walkable = false;
game.Tile46.prototype.block = true;
game.Tile46.prototype.frame = 45;
};
game.Tile47 = function () {
game.Tile47.prototype.walkable = false;
game.Tile47.prototype.frame = 46;
};
game.Tile48 = function () {
game.Tile48.prototype.walkable = false;
game.Tile48.prototype.frame = 47;
};
game.Tile49 = function () {
game.Tile49.prototype.walkable = false;
game.Tile49.prototype.frame = 48;
};
game.Tile50 = function () {
game.Tile50.prototype.walkable = false;
game.Tile50.prototype.frame = 49;
};
game.Tile51 = function () {
game.Tile51.prototype.walkable = false;
game.Tile51.prototype.frame = 50;
};
game.Tile52 = function () {
game.Tile52.prototype.walkable = false;
game.Tile52.prototype.frame = 51;
};
game.Tile53 = function () {
game.Tile53.prototype.walkable = false;
game.Tile53.prototype.frame = 52;
};
game.Tile54 = function () {
game.Tile54.prototype.walkable = false;
game.Tile54.prototype.frame = 53;
};
game.Tile55 = function () {
game.Tile55.prototype.walkable = false;
game.Tile55.prototype.frame = 54;
};
game.Tile56 = function () {
game.Tile56.prototype.walkable = false;
game.Tile56.prototype.frame = 55;
};
game.Tile57 = function () {
game.Tile57.prototype.walkable = false;
game.Tile57.prototype.frame = 56;
};
game.Tile58 = function () {
game.Tile58.prototype.walkable = false;
game.Tile58.prototype.frame = 57;
};
game.Tile59 = function () {
game.Tile59.prototype.walkable = false;
game.Tile59.prototype.frame = 58;
};
game.Tile60 = function () {
game.Tile60.prototype.walkable = false;
game.Tile60.prototype.frame = 59;
};
game.Tile61 = function () {
game.Tile61.prototype.walkable = false;
game.Tile61.prototype.frame = 60;
};
game.Tile62 = function () {
game.Tile62.prototype.walkable = false;
game.Tile62.prototype.frame = 61;
};
game.Tile63 = function () {
game.Tile63.prototype.walkable = false;
game.Tile63.prototype.frame = 62;
};
game.Tile64 = function () {
game.Tile64.prototype.walkable = false;
game.Tile64.prototype.frame = 63;
};
game.Tile65 = function () {
game.Tile65.prototype.walkable = false;
game.Tile65.prototype.frame = 64;
};
game.Tile66 = function () {
game.Tile66.prototype.walkable = false;
game.Tile66.prototype.frame = 65;
};
game.Tile67 = function () {
game.Tile67.prototype.walkable = false;
game.Tile67.prototype.frame = 66;
};
game.Tile68 = function () {
game.Tile68.prototype.walkable = false;
game.Tile68.prototype.frame = 67;
};
game.Tile69 = function () {
game.Tile69.prototype.walkable = false;
game.Tile69.prototype.frame = 68;
};
game.Tile70 = function () {
game.Tile70.prototype.walkable = false;
game.Tile70.prototype.frame = 69;
};
game.Tile71 = function () {
game.Tile71.prototype.walkable = false;
game.Tile71.prototype.frame = 70;
};
game.Tile72 = function () {
game.Tile72.prototype.walkable = false;
game.Tile72.prototype.frame = 71;
};
game.Tile73 = function () {
game.Tile73.prototype.walkable = false;
game.Tile73.prototype.frame = 72;
};
game.Tile74 = function () {
game.Tile74.prototype.walkable = false;
game.Tile74.prototype.frame = 73;
};
game.Tile75 = function () {
game.Tile75.prototype.walkable = false;
game.Tile75.prototype.frame = 74;
};
game.Tile76 = function () {
game.Tile76.prototype.walkable = true;
game.Tile76.prototype.frame = 75;
};
game.Tile77 = function () {
game.Tile77.prototype.walkable = true;
game.Tile77.prototype.frame = 76;
};
game.Tile78 = function () {
game.Tile78.prototype.walkable = true;
game.Tile78.prototype.frame = 77;
};
game.Tile79 = function () {
game.Tile79.prototype.walkable = true;
game.Tile79.prototype.frame = 78;
};
game.Tile80 = function () {
game.Tile80.prototype.walkable = false;
game.Tile80.prototype.frame = 79;
};
game.Tile81 = function () {
game.Tile81.prototype.walkable = false;
game.Tile81.prototype.frame = 80;
};
game.Tile82 = function () {
game.Tile82.prototype.walkable = false;
game.Tile82.prototype.frame = 81;
};
game.Tile83 = function () {
game.Tile83.prototype.walkable = false;
game.Tile83.prototype.frame = 82;
};
game.Tile84 = function () {
game.Tile84.prototype.walkable = false;
game.Tile84.prototype.frame = 83;
};
game.Tile85 = function () {
game.Tile85.prototype.walkable = false;
game.Tile85.prototype.frame = 84;
};
game.Tile86 = function () {
game.Tile86.prototype.walkable = false;
game.Tile86.prototype.frame = 85;
};
game.Tile87 = function () {
game.Tile87.prototype.walkable = false;
game.Tile87.prototype.frame = 86;
};
game.Tile88 = function () {
game.Tile88.prototype.walkable = false;
game.Tile88.prototype.frame = 87;
};
game.Tile89 = function () {
game.Tile89.prototype.walkable = false;
game.Tile89.prototype.frame = 88;
};
game.Tile90 = function () {
game.Tile90.prototype.walkable = false;
game.Tile90.prototype.frame = 89;
};
game.Tile91 = function () {
game.Tile91.prototype.walkable = false;
game.Tile91.prototype.frame = 90;
};
game.Tile92 = function () {
game.Tile92.prototype.walkable = false;
game.Tile92.prototype.frame = 91;
};
game.Tile93 = function () {
game.Tile93.prototype.walkable = false;
game.Tile93.prototype.frame = 92;
};
game.Tile94 = function () {
game.Tile94.prototype.walkable = false;
game.Tile94.prototype.frame = 93;
};
game.Tile95 = function () {
game.Tile95.prototype.walkable = false;
game.Tile95.prototype.frame = 94;
};
game.Tile96 = function () {
game.Tile96.prototype.walkable = false;
game.Tile96.prototype.frame = 95;
};
game.Tile97 = function () {
game.Tile97.prototype.walkable = false;
game.Tile97.prototype.frame = 96;
};
game.Tile98 = function () {
game.Tile98.prototype.walkable = false;
game.Tile98.prototype.frame = 97;
};
game.Tile99 = function () {
game.Tile99.prototype.walkable = false;
game.Tile99.prototype.frame = 98;
};
game.Tile100 = function () {
};
game.Tile100.prototype = new game.Doors(-8, 12, -99);
game.Tile100.prototype.frame = 100;
game.Tile100.prototype.walkable = true;
game.Tile103 = function () {
};
game.Tile103.prototype = new game.Doors(-1, -99, 10);
game.Tile103.prototype.frame = 103;
game.Tile104 = function () {
game.Tile104.prototype.walkable = false;
game.Tile104.prototype.frame = 104;
};
game.Tile105 = function () {
game.Tile105.prototype.walkable = false;
game.Tile105.prototype.frame = 105;
};
game.Tile106 = function () {
game.Tile106.prototype.walkable = false;
game.Tile106.prototype.frame = 106;
};
game.Tile107 = function () {
game.Tile107.prototype.walkable = false;
game.Tile107.prototype.frame = 107;
};
game.Tile108 = function () {
game.Tile108.prototype.walkable = false;
game.Tile108.prototype.frame = 108;
};
game.Tile109 = function () {
game.Tile109.prototype.walkable = false;
game.Tile109.prototype.frame = 109;
};
game.Tile110 = function () {
game.Tile110.prototype.walkable = false;
game.Tile110.prototype.frame = 110;
};
var missle = [];
var misslecount = 0;
var misslemax = 40;
var gamescore = 0;
var mouseattackcounter = 1;
var herox = 4;
var heroy = 22;
var explvls = [];
explvls[0] = 0;
explvls[1] = 500;
explvls[2] = 1500;
explvls[3] = 3000;
explvls[4] = 5000;
explvls[5] = 9000;
explvls[6] = 15000;
explvls[7] = 25000;
explvls[8] = 35000;
explvls[9] = 50000;
explvls[10] = 75000 /* 0x0124F8 */;
explvls[11] = 110000 /* 0x01ADB0 */;
explvls[12] = 130000 /* 0x01FBD0 */;
explvls[13] = 155000 /* 0x025D78 */;
explvls[14] = 180000 /* 0x02BF20 */;
explvls[15] = 220000 /* 0x035B60 */;
explvls[16] = 260000 /* 0x03F7A0 */;
explvls[17] = 310000 /* 0x04BAF0 */;
explvls[18] = 370000 /* 0x05A550 */;
explvls[19] = 440000 /* 0x06B6C0 */;
explvls[20] = 520000 /* 0x07EF40 */;
explvls[21] = 600000 /* 0x0927C0 */;
explvls[22] = 690000 /* 0x0A8750 */;
explvls[23] = 800000 /* 0x0C3500 */;
explvls[24] = 920000 /* 0x0E09C0 */;
explvls[25] = 1050000 /* 0x100590 */;
explvls[26] = 1200000 /* 0x124F80 */;
explvls[27] = 1500000 /* 0x16E360 */;
explvls[28] = 1900000 /* 0x1CFDE0 */;
explvls[29] = 2500000 /* 0x2625A0 */;
explvls[30] = 3500000 /* 0x3567E0 */;
explvls[31] = 5000000 /* 0x4C4B40 */;
explvls[32] = 7000000 /* 0x6ACFC0 */;
explvls[33] = 9000000 /* 0x895440 */;
explvls[34] = 11000000 /* 0xA7D8C0 */;
explvls[35] = 15000000 /* 0xE4E1C0 */;
explvls[36] = 18000000 /* 0x112A880 */;
explvls[37] = 21000000 /* 0x1406F40 */;
explvls[38] = 24000000 /* 0x16E3600 */;
explvls[39] = 28000000 /* 0x1AB3F00 */;
explvls[40] = 32000000 /* 0x1E84800 */;
explvls[41] = 36000000 /* 0x2255100 */;
explvls[42] = 40000000 /* 0x2625A00 */;
explvls[43] = 44000000 /* 0x29F6300 */;
explvls[44] = 48000000 /* 0x2DC6C00 */;
explvls[45] = 52000000 /* 0x3197500 */;
explvls[46] = 58000000 /* 0x3750280 */;
explvls[47] = 62000000 /* 0x3B20B80 */;
explvls[48] = 66000000 /* 0x3EF1480 */;
explvls[49] = 70000000 /* 0x42C1D80 */;
explvls[50] = 76000000 /* 0x487AB00 */;
explvls[51] = 83000000 /* 0x4F27AC0 */;
explvls[52] = 100000000 /* 0x5F5E100 */;
explvls[53] = 108000000 /* 0x66FF300 */;
explvls[54] = 116000000 /* 0x6EA0500 */;
explvls[55] = 124000000 /* 0x7641700 */;
explvls[56] = 134000000 /* 0x7FCAD80 */;
explvls[57] = 145000000 /* 0x8A48640 */;
explvls[58] = 155000000 /* 0x93D1CC0 */;
explvls[59] = 170000000 /* 0xA21FE80 */;
explvls[60] = 185000000 /* 0xB06E040 */;
explvls[61] = 999999999 /* 0x3B9AC9FF */;
var arrowblock = [];
arrowblock[0] = {xx:2, yy:2};
var level = [];
level[1] = [];
level[2] = [];
level[3] = [];
level[4] = [];
level[5] = [];
level[6] = [];
level[7] = [];
level[8] = [];
level[9] = [];
level[10] = [];
level[11] = [];
level[12] = [];
level[13] = [];
level[14] = [];
level[15] = [];
level[16] = [];
level[17] = [];
level[18] = [];
level[19] = [];
level[20] = [];
refreshlevel();
var char = [];
createunits();
music_base.flapwings = new Sound();
music_base.flapwings.attachSound("flapwings");
music_base.dragonbreath = new Sound();
music_base.dragonbreath.attachSound("dragonbreath");
music_base.dragonbreath = new Sound();
music_base.dragonbreath.attachSound("dragonbreath");
music_base.arrow_shot = new Sound();
music_base.arrow_shot.attachSound("archer_attack1");
music_base.arrow_shot2 = new Sound();
music_base.arrow_shot2.attachSound("archer_attack2");
music_base.arrow_shot3 = new Sound();
music_base.arrow_shot3.attachSound("archer_attack3");
music_base.arrow_shot4 = new Sound();
music_base.arrow_shot4.attachSound("archer_attack4");
music_base.arrowhit = new Sound();
music_base.arrowhit.attachSound("arrow_hit1");
music_base.arrowhit2 = new Sound();
music_base.arrowhit2.attachSound("arrow_hit2");
music_base.arrowhit3 = new Sound();
music_base.arrowhit3.attachSound("arrow_hit3");
music_base.arrowhit4 = new Sound();
music_base.arrowhit4.attachSound("arrow_hit4");
music_base.Whoosh = new Sound();
music_base.Whoosh.attachSound("archer_attack1");
music_base.Whoosh2 = new Sound();
music_base.Whoosh2.attachSound("archer_attack2");
music_base.Whoosh3 = new Sound();
music_base.Whoosh3.attachSound("archer_attack3");
music_base.Whoosh4 = new Sound();
music_base.Whoosh4.attachSound("archer_attack4");
music_base.Fireball3 = new Sound();
music_base.Fireball3.attachSound("Fireball3");
music_base.Boom2 = new Sound();
music_base.Boom2.attachSound("Aliens-Monsters-30");
music_base.Boom = new Sound();
music_base.Boom.attachSound("Aliens-Monsters-31");
music_base.mageattack = new Sound();
music_base.mageattack.attachSound("Whoosh");
music_base.goblinsword1 = new Sound();
music_base.goblinsword1.attachSound("combat_whoosh_02");
music_base.goblinsword2 = new Sound();
music_base.goblinsword2.attachSound("combat_whoosh_03");
music_base.goblinsword3 = new Sound();
music_base.goblinsword3.attachSound("combat_whoosh_04");
music_base.bodyfall = new Sound();
music_base.bodyfall.attachSound("body_fall_floor");
music_base.die1 = new Sound();
music_base.die1.attachSound("466142_SOUNDDOGS_Si");
music_base.die2 = new Sound();
music_base.die2.attachSound("behemoth_die2");
music_base.die3 = new Sound();
music_base.die3.attachSound("behemoth_die3");
music_base.die4 = new Sound();
music_base.die4.attachSound("behemoth_die4");
DisplayTrace = function () {
if (gamemode == 1) {
gamecount++;
if (clevel == 1) {
if (gamecount == 20) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips._y = 50;
_root.game_tips._x = 130;
gamemode = 3;
}
if (gamecount == 22) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips._y = 50;
_root.game_tips._x = 130;
_root.game_tips.gotoAndStop(2);
gamemode = 3;
}
if (gamecount == 24) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips._y = 50;
_root.game_tips._x = 130;
_root.game_tips.gotoAndStop(3);
gamemode = 3;
}
if (gamecount == 26) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips._y = 50;
_root.game_tips._x = 130;
_root.game_tips.gotoAndStop(4);
gamemode = 3;
}
}
if (locked) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips._y = 50;
_root.game_tips._x = 130;
_root.game_tips.gotoAndStop(44);
gamemode = 3;
}
detectKeys();
if (clickdelay > 0) {
clickdelay--;
}
creatingmore();
randomsound--;
if (randomsound < 0) {
if ((Math.random() * 100) > 50) {
music_base.Boom.start();
} else {
music_base.Boom2.start();
}
randomsound = int(Math.random() * 500);
}
} else if (gamemode == 2) {
detectMouse();
}
};
var intervalID = setInterval(DisplayTrace, 35);
this.onMouseDown = function () {
if (_root._currentframe == 6) {
if (!isMouseDown) {
isMouseDown = true;
char[0].pathcount = 5;
var _local4 = Math.min(Math.max(int(((4 + heroagil) + _global.equip_agility) / 8), 1), 35);
if (clickdelay > 0) {
} else {
char[0].shooting = _local4 + 6;
char[0].targetx = this._xmouse - game.clip._x;
char[0].targety = this._ymouse - game.clip._y;
fire(0, char[0].targetx, char[0].targety);
game.clip.char0.gotoAndPlay(27);
}
}
mouseisdownnow();
}
};
this.onMouseUp = function () {
isMouseDown = false;
var _local2 = Math.min(Math.max(int(((4 + heroagil) + _global.equip_agility) / 8), 1), 35);
if (clickdelay == 0) {
if ((char[0].shooting - _local2) > 5) {
char[0].shooting = 0;
}
} else {
char[0].shooting = 0;
}
};
buildMap(_root["myMap" + game.currentMap]);
stop();
Symbol 97 MovieClip [movingriver] Frame 1
var i = 1;
while (i < 6) {
this["n" + i]._x = this["n" + i]._x - 1;
if (this["n" + i]._x < -299) {
this["n" + i]._x = 1200;
}
i++;
}
Symbol 196 MovieClip [ag_intro_mc] Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 196 MovieClip [ag_intro_mc] Frame 225
stop();
_root.goblinarenasplash.play();
_parent._parent.play();
_parent.removeMovieClip();
_parent._x = 2000;
Symbol 219 MovieClip Frame 35
stop();
Instance of Symbol 177 MovieClip [linktogoblinarena] in Symbol 234 MovieClip [GoblinArenaSplash] Frame 1
on (press) {
getURL ("http://www.goblinarena.com", blank);
}
Symbol 234 MovieClip [GoblinArenaSplash] Frame 34
stop();
Instance of Symbol 197 MovieClip [agscreen] "ag_intro" in Symbol 234 MovieClip [GoblinArenaSplash] Frame 34
on (press) {
getURL ("http://armor.ag/MoreGames", blank);
}
Instance of Symbol 177 MovieClip [linktogoblinarena] in Symbol 234 MovieClip [GoblinArenaSplash] Frame 35
on (press) {
getURL ("http://www.goblinarena.com", blank);
}
Symbol 234 MovieClip [GoblinArenaSplash] Frame 207
_root.gotoAndStop(2);
Instance of Symbol 177 MovieClip [linktogoblinarena] in Symbol 234 MovieClip [GoblinArenaSplash] Frame 262
on (press) {
getURL ("http://www.goblinarena.com", blank);
}
Symbol 234 MovieClip [GoblinArenaSplash] Frame 290
stop();
this.removeMovieClip();
Instance of Symbol 177 MovieClip [linktogoblinarena] in Symbol 234 MovieClip [GoblinArenaSplash] Frame 290
on (press) {
getURL ("http://www.goblinarena.com", blank);
}
Symbol 235 MovieClip [poisonsplatter2] Frame 2
var xstr = [];
var ystr = [];
var galpha = 100;
var limit = [];
var i = 0;
while (i < 15) {
this.attachMovie("poisondrop2", "bp" + i, 10000 + i);
xstr[i] = (Math.random() * 4) - 2;
ystr[i] = Math.random() * 6;
limit[i] = (Math.random() * 20) + 20;
this["bp" + i]._x = (Math.random() * 8) - 4;
this["bp" + i]._y = (Math.random() * 8) + 10;
this["bp" + i]._xscale = (Math.random() * 10) + 60;
this["bp" + i]._yscale = (Math.random() * 10) + 60;
i++;
}
Symbol 235 MovieClip [poisonsplatter2] Frame 4
if (galpha > 1) {
galpha = galpha - 5;
var i = 0;
while (i < 15) {
if ((this["bp" + i]._y + Math.abs(this["bp" + i]._x)) < limit[i]) {
this["bp" + i]._x = this["bp" + i]._x + xstr[i];
this["bp" + i]._y = this["bp" + i]._y - ystr[i];
this["bp" + i]._rotation = this["bp" + i]._rotation + 4;
ystr[i] = ystr[i] - 0.2;
}
this["bp" + i]._alpha = galpha;
i++;
}
gotoAndPlay (3);
} else {
this.swapDepths(1);
var i = 0;
while (i < 15) {
this["bp" + i].swapDepths(1);
this["bp" + i].removeMovieClip();
this["bp" + i].removeMovieClip();
i++;
}
this.removeMovieClip();
gotoAndStop (1);
}
Symbol 236 MovieClip [poisonsplatter] Frame 2
var xstr = [];
var ystr = [];
var galpha = 100;
var limit = [];
var i = 0;
while (i < 15) {
this.attachMovie("poisondrop", "bp" + i, 10000 + i);
xstr[i] = (Math.random() * 4) - 2;
ystr[i] = Math.random() * 6;
limit[i] = (Math.random() * 20) + 20;
this["bp" + i]._x = (Math.random() * 8) - 4;
this["bp" + i]._y = (Math.random() * 8) + 10;
this["bp" + i]._xscale = (Math.random() * 10) + 60;
this["bp" + i]._yscale = (Math.random() * 10) + 60;
i++;
}
Symbol 236 MovieClip [poisonsplatter] Frame 4
if (galpha > 1) {
galpha = galpha - 5;
var i = 0;
while (i < 15) {
if ((this["bp" + i]._y + Math.abs(this["bp" + i]._x)) < limit[i]) {
this["bp" + i]._x = this["bp" + i]._x + xstr[i];
this["bp" + i]._y = this["bp" + i]._y - ystr[i];
this["bp" + i]._rotation = this["bp" + i]._rotation + 4;
ystr[i] = ystr[i] - 0.2;
}
this["bp" + i]._alpha = galpha;
i++;
}
gotoAndPlay (3);
} else {
this.swapDepths(1);
var i = 0;
while (i < 15) {
this["bp" + i].swapDepths(1);
this["bp" + i].removeMovieClip();
this["bp" + i].removeMovieClip();
i++;
}
this.removeMovieClip();
gotoAndStop (1);
}
Symbol 241 MovieClip [bloodspatter] Frame 2
var xstr = [];
var ystr = [];
var galpha = 100;
var limit = [];
var i = 0;
while (i < 25) {
this.attachMovie("blooddrop", "bp" + i, 10000 + i);
xstr[i] = (Math.random() * 4) - 2;
ystr[i] = Math.random() * 6;
limit[i] = (Math.random() * 20) + 20;
this["bp" + i]._x = (Math.random() * 8) - 4;
this["bp" + i]._y = (Math.random() * 8) + 10;
this["bp" + i]._xscale = (Math.random() * 10) + 60;
this["bp" + i]._yscale = (Math.random() * 10) + 60;
i++;
}
Symbol 241 MovieClip [bloodspatter] Frame 4
if (galpha > 1) {
galpha = galpha - 5;
var i = 0;
while (i < 25) {
if ((this["bp" + i]._y + Math.abs(this["bp" + i]._x)) < limit[i]) {
this["bp" + i]._x = this["bp" + i]._x + xstr[i];
this["bp" + i]._y = this["bp" + i]._y - ystr[i];
ystr[i] = ystr[i] - 0.2;
}
this["bp" + i]._alpha = galpha;
i++;
}
gotoAndPlay (3);
} else {
this.swapDepths(1);
var i = 0;
while (i < 15) {
this["bp" + i].swapDepths(1);
this["bp" + i].removeMovieClip();
this["bp" + i].removeMovieClip();
i++;
}
this.removeMovieClip();
gotoAndStop (1);
}
Symbol 247 MovieClip [dmtext_poison] Frame 14
this.removeMovieClip();
Instance of Symbol 260 MovieClip [dbprofilebutton] in Symbol 267 MovieClip [dashboard] Frame 1
on (release) {
_root.attachMovie("charprofile", "ingamebox", 110004);
_root.ingamebox._x = 20;
_root.ingamebox._y = 40;
_root.attachMovie("charprofile", "charprofile", 110005);
_root.charprofile._x = 320;
_root.charprofile._y = 40;
_root.commentbox.removeMovieClip();
}
on (rollOver) {
_root.attachMovie("commentbox", "commentbox", 110010);
_root.commentbox._x = 360;
_root.commentbox._y = 350;
_root.commentbox.commenting = "Click on the box to start the game";
}
on (rollOut) {
_root.commentbox.removeMovieClip();
}
Symbol 273 MovieClip [darkness] Frame 28
Symbol 273 MovieClip [darkness] Frame 30
Symbol 273 MovieClip [darkness] Frame 57
stop();
Symbol 274 MovieClip [coins] Frame 1
var coincount = 0;
var i = 0;
while (i < 10) {
attachMovie("coin", "coin" + i, 100 + i);
this["coin" + i]._x = (Math.random() * 20) - 10;
this["coin" + i]._y = (Math.random() * 20) - 10;
i++;
}
play();
Symbol 274 MovieClip [coins] Frame 3
coincount++;
if (countcount > 100) {
this._alpha--;
}
if (this._alpha < 10) {
this.removeMovieClip();
}
gotoAndPlay (2);
Symbol 281 MovieClip [close] Frame 1
stop();
Instance of Symbol 281 MovieClip [close] in Symbol 285 MovieClip [ingamebox] Frame 1
on (release) {
_parent._parent.removeMovieClip();
}
Symbol 319 MovieClip [charprofile] Frame 1
stop();
Symbol 322 MovieClip Frame 14
stop();
Symbol 349 MovieClip [electric] Frame 16
gotoAndPlay (14);
Symbol 382 MovieClip Frame 30
stop();
Symbol 445 MovieClip [explosion1] Frame 34
stop();
this.removeMovieClip();
Symbol 453 MovieClip [leveluptext] Frame 83
stop();
this.removeMovieClip();
Symbol 456 MovieClip [xptext] Frame 58
this.removeMovieClip();
Symbol 459 MovieClip [goldtext] Frame 14
this.removeMovieClip();
Symbol 462 MovieClip [dmtext] Frame 14
this.removeMovieClip();
Symbol 604 MovieClip [goblin] Frame 20
gotoAndPlay (1);
Symbol 604 MovieClip [goblin] Frame 46
gotoAndStop (1);
Symbol 604 MovieClip [goblin] Frame 163
stop();
Symbol 673 MovieClip [goblinarcher] Frame 21
gotoAndPlay (1);
Symbol 673 MovieClip [goblinarcher] Frame 51
stop();
Symbol 673 MovieClip [goblinarcher] Frame 157
stop();
Symbol 776 MovieClip [lionman] Frame 20
gotoAndPlay (1);
Symbol 776 MovieClip [lionman] Frame 45
gotoAndStop (1);
Symbol 776 MovieClip [lionman] Frame 166
stop();
Symbol 833 MovieClip [lizardman] Frame 19
gotoAndPlay (1);
Symbol 833 MovieClip [lizardman] Frame 40
gotoAndStop (1);
Symbol 833 MovieClip [lizardman] Frame 158
stop();
Symbol 924 MovieClip [troll] Frame 15
gotoAndPlay (1);
Symbol 924 MovieClip [troll] Frame 50
gotoAndStop (1);
Symbol 924 MovieClip [troll] Frame 165
stop();
Symbol 1055 MovieClip [battleogre] Frame 14
gotoAndPlay (1);
Symbol 1055 MovieClip [battleogre] Frame 41
gotoAndStop (1);
Symbol 1055 MovieClip [battleogre] Frame 70
gotoAndStop (1);
Symbol 1055 MovieClip [battleogre] Frame 101
gotoAndStop (1);
Symbol 1055 MovieClip [battleogre] Frame 132
gotoAndStop (1);
Symbol 1055 MovieClip [battleogre] Frame 157
stop();
Symbol 1108 MovieClip [skelsword] Frame 15
gotoAndPlay (1);
Symbol 1108 MovieClip [skelsword] Frame 39
gotoAndStop (1);
Symbol 1108 MovieClip [skelsword] Frame 159
stop();
Symbol 1181 MovieClip [skelmage] Frame 15
gotoAndPlay (1);
Symbol 1181 MovieClip [skelmage] Frame 51
gotoAndStop (1);
Symbol 1181 MovieClip [skelmage] Frame 159
stop();
Symbol 1228 MovieClip [skelaxe] Frame 13
gotoAndPlay (1);
Symbol 1228 MovieClip [skelaxe] Frame 37
gotoAndStop (1);
Symbol 1228 MovieClip [skelaxe] Frame 159
stop();
Symbol 1281 MovieClip [skelarcher] Frame 15
gotoAndPlay (1);
Symbol 1281 MovieClip [skelarcher] Frame 51
gotoAndStop (1);
Symbol 1281 MovieClip [skelarcher] Frame 159
stop();
Symbol 1390 MovieClip [orgak] Frame 14
gotoAndPlay (1);
Symbol 1390 MovieClip [orgak] Frame 44
gotoAndStop (1);
Symbol 1390 MovieClip [orgak] Frame 175
stop();
Symbol 1465 MovieClip [rogue] Frame 19
gotoAndPlay (1);
Symbol 1465 MovieClip [rogue] Frame 46
gotoAndStop (1);
Symbol 1465 MovieClip [rogue] Frame 161
stop();
Symbol 1546 MovieClip [footman] Frame 25
gotoAndPlay (1);
Symbol 1546 MovieClip [footman] Frame 42
gotoAndStop (1);
Symbol 1546 MovieClip [footman] Frame 162
stop();
Symbol 1587 MovieClip [herotop] Frame 17
gotoAndPlay (1);
Symbol 1587 MovieClip [herotop] Frame 35
gotoAndStop (1);
Symbol 1587 MovieClip [herotop] Frame 151
stop();
Symbol 1650 MovieClip [herobottom] Frame 7
var rand = int(Math.random() * 4);
switch (rand) {
case 0 :
_root.playSound("footstep_single_dirt_01_var01.wav", _root.ingame_sound, 1);
break;
case 1 :
_root.playSound("footstep_single_dirt_01_var02.wav", _root.ingame_sound, 1);
break;
case 2 :
_root.playSound("footstep_single_dirt_01_var03.wav", _root.ingame_sound, 1);
break;
case 3 :
_root.playSound("footstep_single_dirt_01_var04.wav", _root.ingame_sound, 1);
break;
default :
_root.playSound("footstep_single_dirt_01_var01.wav", _root.ingame_sound, 1);
}
Symbol 1650 MovieClip [herobottom] Frame 15
var rand = int(Math.random() * 4);
switch (rand) {
case 0 :
_root.playSound("footstep_single_dirt_01_var01.wav", _root.ingame_sound, 1);
break;
case 1 :
_root.playSound("footstep_single_dirt_01_var02.wav", _root.ingame_sound, 1);
break;
case 2 :
_root.playSound("footstep_single_dirt_01_var03.wav", _root.ingame_sound, 1);
break;
case 3 :
_root.playSound("footstep_single_dirt_01_var04.wav", _root.ingame_sound, 1);
break;
default :
_root.playSound("footstep_single_dirt_01_var01.wav", _root.ingame_sound, 1);
}
Symbol 1650 MovieClip [herobottom] Frame 17
gotoAndPlay (1);
Symbol 1650 MovieClip [herobottom] Frame 35
gotoAndStop (1);
Symbol 1650 MovieClip [herobottom] Frame 161
stop();
Symbol 1736 MovieClip [wizard] Frame 21
gotoAndPlay (1);
Symbol 1736 MovieClip [wizard] Frame 44
gotoAndStop (1);
Symbol 1736 MovieClip [wizard] Frame 160
stop();
Symbol 1756 MovieClip [bullseye] Frame 1
stop();
Symbol 1756 MovieClip [bullseye] Frame 3
stop();
Symbol 1895 MovieClip [demon] Frame 14
gotoAndPlay (1);
Symbol 1895 MovieClip [demon] Frame 40
gotoAndStop (1);
Symbol 1895 MovieClip [demon] Frame 70
gotoAndStop (1);
Symbol 1895 MovieClip [demon] Frame 101
gotoAndStop (1);
Symbol 1895 MovieClip [demon] Frame 134
gotoAndStop (1);
Symbol 1895 MovieClip [demon] Frame 160
stop();
Symbol 2018 MovieClip Frame 11
gotoAndPlay (1);
Symbol 2018 MovieClip Frame 39
gotoAndStop (1);
Symbol 2018 MovieClip Frame 69
gotoAndStop (1);
Symbol 2018 MovieClip Frame 98
gotoAndStop (1);
Symbol 2018 MovieClip Frame 135
gotoAndStop (1);
Symbol 2018 MovieClip Frame 159
stop();
Symbol 2079 MovieClip [rat] Frame 8
gotoAndPlay (1);
Symbol 2079 MovieClip [rat] Frame 38
gotoAndStop (1);
Symbol 2079 MovieClip [rat] Frame 68
gotoAndStop (1);
Symbol 2079 MovieClip [rat] Frame 98
gotoAndStop (1);
Symbol 2079 MovieClip [rat] Frame 128
gotoAndStop (1);
Symbol 2079 MovieClip [rat] Frame 164
stop();
Symbol 2156 MovieClip [spidergoblin] Frame 15
gotoAndPlay (1);
Symbol 2156 MovieClip [spidergoblin] Frame 51
gotoAndStop (1);
Symbol 2156 MovieClip [spidergoblin] Frame 157
stop();
Symbol 2225 MovieClip [wolfrider] Frame 13
gotoAndPlay (1);
Symbol 2225 MovieClip [wolfrider] Frame 41
gotoAndStop (1);
Symbol 2225 MovieClip [wolfrider] Frame 160
stop();
Symbol 2235 MovieClip [soundbox] Frame 1
gotoAndStop (2);
Symbol 2320 MovieClip [goblinassasin] Frame 13
gotoAndStop (1);
Symbol 2320 MovieClip [goblinassasin] Frame 46
gotoAndStop (1);
Symbol 2320 MovieClip [goblinassasin] Frame 164
stop();
Symbol 2407 MovieClip [goblinguard] Frame 13
gotoAndPlay (1);
Symbol 2407 MovieClip [goblinguard] Frame 46
gotoAndStop (1);
Symbol 2407 MovieClip [goblinguard] Frame 164
stop();
Symbol 2494 MovieClip [goblinmage] Frame 13
gotoAndPlay (1);
Symbol 2494 MovieClip [goblinmage] Frame 40
stop();
Symbol 2494 MovieClip [goblinmage] Frame 163
stop();
Symbol 2581 MovieClip [goblinelitearcher] Frame 13
gotoAndPlay (1);
Symbol 2581 MovieClip [goblinelitearcher] Frame 40
stop();
Symbol 2581 MovieClip [goblinelitearcher] Frame 164
stop();
Symbol 2585 MovieClip [rogueicon] Frame 1
stop();
Symbol 2587 MovieClip [mageicon] Frame 1
stop();
Symbol 2589 MovieClip [footmanicon] Frame 1
stop();
Symbol 2590 MovieClip [unitbuilds] Frame 1
stop();
Symbol 2590 MovieClip [unitbuilds] Frame 2
stop();
Instance of Symbol 2585 MovieClip [rogueicon] "roguebuild" in Symbol 2590 MovieClip [unitbuilds] Frame 2
on (release) {
if (this.currentFrame == 1) {
_root.unitcreation = "rogueicon";
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
_root.unitcreation = "";
}
}
Instance of Symbol 2587 MovieClip [mageicon] "magebuild" in Symbol 2590 MovieClip [unitbuilds] Frame 3
on (release) {
if (this.currentFrame == 1) {
_root.unitcreation = "mageicon";
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
_root.unitcreation = "";
}
}
Instance of Symbol 2589 MovieClip [footmanicon] "footmanbuild" in Symbol 2590 MovieClip [unitbuilds] Frame 4
on (release) {
if (this.currentFrame == 1) {
_root.unitcreation = "footmanicon";
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
_root.unitcreation = "";
}
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2599 MovieClip [attributes_button] Frame 1
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(19);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
_root.levelup_icon = 0;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Symbol 2599 MovieClip [attributes_button] Frame 15
stop();
_root.playSound("magical_intro_1.wav", _root.ingame_sound, 1);
Symbol 2644 MovieClip [new_creature] Frame 1
stop();
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 1
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(20);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 2
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(21);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 3
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(24);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 4
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(22);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 5
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(23);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 6
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(26);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 7
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(28);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 8
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(25);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 9
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(33);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 10
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(36);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 11
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(38);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 12
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(27);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 13
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(32);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 14
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(35);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 15
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(29);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 16
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(30);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 17
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(37);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 18
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(34);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 19
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(31);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 30
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(45);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 31
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(40);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 32
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(46);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 33
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(47);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 34
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(48);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2644 MovieClip [new_creature] Frame 35
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(49);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Symbol 2684 MovieClip [new_skill] Frame 1
stop();
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 1
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(12);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 2
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(13);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 3
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(15);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 4
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(14);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 5
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(16);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 6
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(17);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 7
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(9);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 8
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(10);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 9
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(11);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 10
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(7);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2598 MovieClip [round_button_transparent] in Symbol 2684 MovieClip [new_skill] Frame 11
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(8);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
if (_parent._y == 170) {
_root.iconspace2 = 0;
} else if (_parent._y == 290) {
_root.iconspace3 = 0;
} else if (_parent._y == 410) {
_root.iconspace4 = 0;
} else if (_parent._y == 530) {
_root.iconspace5 = 0;
} else {
_root.iconspace1 = 0;
}
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Symbol 2797 MovieClip [lion] Frame 13
gotoAndPlay (1);
Symbol 2797 MovieClip [lion] Frame 46
gotoAndStop (1);
Symbol 2797 MovieClip [lion] Frame 175
stop();
Symbol 2808 MovieClip Frame 1
hb._visible = false;
Symbol 2811 MovieClip [firebolt] Frame 1
hb._visible = false;
Symbol 2811 MovieClip [firebolt] Frame 9
stop();
Symbol 2811 MovieClip [firebolt] Frame 10
stop();
Symbol 2828 MovieClip [weapon_choice] Frame 1
stop();
Instance of Symbol 2814 MovieClip [arrow0] "arrowicon" in Symbol 2828 MovieClip [weapon_choice] Frame 1
on (release) {
_parent.gotoAndStop(5);
}
on (rollOver) {
_root.abilitybox._x = 235;
_root.abilitybox._y = 200;
_root.abilitybox.ability_header.text = "Choose Arrow Type.";
_root.abilitybox.ability_txt.text = "Click to choose your arrow type. If quantity is zero will default on standard arrows.";
}
on (rollOut) {
_root.abilitybox._y = 1000;
}
Symbol 2828 MovieClip [weapon_choice] Frame 2
this.ammo_txt = _root.poisonarrow_qty;
Instance of Symbol 2818 MovieClip [arrow1] "arrowicon" in Symbol 2828 MovieClip [weapon_choice] Frame 2
on (release) {
_parent.gotoAndStop(5);
}
on (rollOver) {
_root.abilitybox._x = 235;
_root.abilitybox._y = 200;
_root.abilitybox.ability_header.text = "Choose Arrow Type.";
_root.abilitybox.ability_txt.text = "Click to choose your arrow type. If quantity is zero will default on standard arrows.";
}
on (rollOut) {
_root.abilitybox._y = 1000;
}
Symbol 2828 MovieClip [weapon_choice] Frame 3
this.ammo_txt = _root.firearrow_qty;
Instance of Symbol 2821 MovieClip [arrow2] "arrowicon" in Symbol 2828 MovieClip [weapon_choice] Frame 3
on (release) {
_parent.gotoAndStop(5);
}
on (rollOver) {
_root.abilitybox._x = 235;
_root.abilitybox._y = 200;
_root.abilitybox.ability_header.text = "Choose Arrow Type.";
_root.abilitybox.ability_txt.text = "Click to choose your arrow type. If quantity is zero will default on standard arrows.";
}
on (rollOut) {
_root.abilitybox._y = 1000;
}
Symbol 2828 MovieClip [weapon_choice] Frame 4
this.ammo_txt = _root.icearrow_qty;
Instance of Symbol 2822 MovieClip [arrow3] "arrowicon" in Symbol 2828 MovieClip [weapon_choice] Frame 4
on (release) {
_parent.gotoAndStop(5);
}
on (rollOver) {
_root.abilitybox._x = 235;
_root.abilitybox._y = 200;
_root.abilitybox.ability_header.text = "Choose Arrow Type.";
_root.abilitybox.ability_txt.text = "Click to choose your arrow type. If quantity is zero will default on standard arrows.";
}
on (rollOut) {
_root.abilitybox._y = 1000;
}
Symbol 2828 MovieClip [weapon_choice] Frame 5
stop();
this.poison_txt = _root.poisonarrow_qty;
this.fire_txt = _root.firearrow_qty;
this.ice_txt = _root.icearrow_qty;
Instance of Symbol 2814 MovieClip [arrow0] "arrow" in Symbol 2828 MovieClip [weapon_choice] Frame 5
on (release) {
_root.currentarrow = "arrow";
_root.char[0].rweapon = _root.currentarrow;
_root.char[0].lweapon = _root.currentarrow;
_parent.gotoAndStop(1);
}
on (rollOver) {
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 2818 MovieClip [arrow1] "greenarrow" in Symbol 2828 MovieClip [weapon_choice] Frame 5
on (release) {
_root.currentarrow = "greenarrow";
_root.char[0].rweapon = _root.currentarrow;
_root.char[0].lweapon = _root.currentarrow;
_parent.gotoAndStop(2);
}
on (rollOver) {
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 2821 MovieClip [arrow2] "firearrow" in Symbol 2828 MovieClip [weapon_choice] Frame 5
on (release) {
_root.currentarrow = "firearrow";
_root.char[0].rweapon = _root.currentarrow;
_root.char[0].lweapon = _root.currentarrow;
_parent.gotoAndStop(3);
}
on (rollOver) {
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 2822 MovieClip [arrow3] "icearrow" in Symbol 2828 MovieClip [weapon_choice] Frame 5
on (release) {
_root.currentarrow = "icearrow";
_root.char[0].rweapon = _root.currentarrow;
_root.char[0].lweapon = _root.currentarrow;
_parent.gotoAndStop(4);
}
on (rollOver) {
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Symbol 2840 MovieClip [skill_choice] Frame 1
stop();
Instance of Symbol 2832 MovieClip [skill_book] "arrowicon" in Symbol 2840 MovieClip [skill_choice] Frame 1
on (release) {
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips.gotoAndStop(18);
_root.game_tips._y = 50;
_root.game_tips._x = 120;
_root.gamemode = 3;
}
on (rollOver) {
}
on (rollOut) {
}
Symbol 2840 MovieClip [skill_choice] Frame 2
this.ammo_txt = _root.poisonarrow_qty;
Instance of Symbol 2654 MovieClip [arrow_split] "arrowicon" in Symbol 2840 MovieClip [skill_choice] Frame 2
on (release) {
_parent.gotoAndStop(5);
}
on (rollOver) {
_root.abilitybox._x = 235;
_root.abilitybox._y = 200;
_root.abilitybox.ability_header.text = "Choose Arrow Type.";
_root.abilitybox.ability_txt.text = "Click to choose your arrow type. If quantity is zero will default on standard arrows.";
}
on (rollOut) {
_root.abilitybox._y = 1000;
}
Symbol 2840 MovieClip [skill_choice] Frame 3
this.ammo_txt = _root.firearrow_qty;
Instance of Symbol 2657 MovieClip [arrow_volley] "arrowicon" in Symbol 2840 MovieClip [skill_choice] Frame 3
on (release) {
_parent.gotoAndStop(5);
}
on (rollOver) {
_root.abilitybox._x = 235;
_root.abilitybox._y = 200;
_root.abilitybox.ability_header.text = "Choose Arrow Type.";
_root.abilitybox.ability_txt.text = "Click to choose your arrow type. If quantity is zero will default on standard arrows.";
}
on (rollOut) {
_root.abilitybox._y = 1000;
}
Symbol 2840 MovieClip [skill_choice] Frame 4
this.ammo_txt = _root.icearrow_qty;
Instance of Symbol 2822 MovieClip [arrow3] "arrowicon" in Symbol 2840 MovieClip [skill_choice] Frame 4
on (release) {
_parent.gotoAndStop(5);
}
on (rollOver) {
_root.abilitybox._x = 235;
_root.abilitybox._y = 200;
_root.abilitybox.ability_header.text = "Choose Arrow Type.";
_root.abilitybox.ability_txt.text = "Click to choose your arrow type. If quantity is zero will default on standard arrows.";
}
on (rollOut) {
_root.abilitybox._y = 1000;
}
Symbol 2840 MovieClip [skill_choice] Frame 5
stop();
if (_root.splitarrow_researched > 0) {
if (_root.splitarrow_recharge > 0) {
this.splitarrow_txt = "Charging";
} else {
this.splitarrow_txt = "Ready!";
}
} else {
this.splitarrow_txt = "Locked";
}
if (_root.volley_researched > 0) {
if (_root.volley_recharge > 0) {
this.volley_txt = "Charging";
} else {
this.volley_txt = "Ready!";
}
} else {
this.volley_txt = "Locked";
}
this.poison_txt = _root.poisonarrow_qty;
this.fire_txt = _root.firearrow_qty;
this.ice_txt = _root.icearrow_qty;
Instance of Symbol 2654 MovieClip [arrow_split] "splitarrow" in Symbol 2840 MovieClip [skill_choice] Frame 5
on (release) {
if (_root.splitarrow_researched > 0) {
if (_root.splitarrow_recharge > 0) {
} else {
_root.splitarrow_recharge = _root.splitarrow_totalrecharge;
_root.splitarrow_activecount = _root.splitarrow_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_parent.gotoAndStop(2);
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2657 MovieClip [arrow_volley] "greenarrow" in Symbol 2840 MovieClip [skill_choice] Frame 5
on (release) {
if (_root.volley_researched > 0) {
if (_root.volley_recharge > 0) {
} else {
_root.volley_recharge = _root.volley_totalrecharge;
_root.volley_activecount = _root.volley_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_parent.gotoAndStop(3);
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2660 MovieClip [haste_spell] "firearrow" in Symbol 2840 MovieClip [skill_choice] Frame 5
on (release) {
if (_root.dash_researched > 0) {
if (_root.dash_recharge > 0) {
} else {
_root.dash_recharge = _root.dash_totalrecharge;
_root.dash_activecount = _root.dash_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_parent.gotoAndStop(3);
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2666 MovieClip [companion_spell] "icearrow" in Symbol 2840 MovieClip [skill_choice] Frame 5
on (release) {
if (_root.summon_researched > 0) {
if (_root.summon_recharge > 0) {
} else {
_root.summon_recharge = _root.summon_totalrecharge;
_root.summon();
_root.game.clip.char2.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char2._x;
_root.game.clip.buff_white._y = _root.game.clip.char2._y;
_parent.gotoAndStop(3);
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2663 MovieClip [whirlwind_spell] "icearrow" in Symbol 2840 MovieClip [skill_choice] Frame 5
on (release) {
if (_root.wind_researched > 0) {
if (_root.wind_recharge > 0) {
} else {
_root.wind_recharge = _root.wind_totalrecharge;
_root.wind_activecount = _root.wind_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_parent.gotoAndStop(3);
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2828 MovieClip [weapon_choice] "weapon_choice" in Symbol 2841 MovieClip [experiencebar] Frame 1
/* no clip actions */
Symbol 2842 MovieClip [castle1] Frame 1
stop();
Symbol 2958 MovieClip Frame 1
stop();
Symbol 2958 MovieClip Frame 2
stop();
Symbol 2966 MovieClip Frame 1
stop();
Symbol 2966 MovieClip Frame 2
stop();
Symbol 3101 MovieClip [goblinarmored] Frame 16
gotoAndPlay (1);
Symbol 3101 MovieClip [goblinarmored] Frame 40
gotoAndStop (1);
Symbol 3101 MovieClip [goblinarmored] Frame 164
stop();
Symbol 3137 MovieClip [goblintent] Frame 188
stop();
Symbol 3140 MovieClip [goblintower] Frame 1
stop();
Symbol 3140 MovieClip [goblintower] Frame 18
gotoAndStop (1);
Symbol 3140 MovieClip [goblintower] Frame 40
stop();
Symbol 3140 MovieClip [goblintower] Frame 164
stop();
Symbol 3242 MovieClip [drake] Frame 18
gotoAndPlay (1);
Symbol 3242 MovieClip [drake] Frame 44
gotoAndStop (1);
Symbol 3242 MovieClip [drake] Frame 163
stop();
Symbol 3249 MovieClip [goblintower2] Frame 1
stop();
Symbol 3249 MovieClip [goblintower2] Frame 18
gotoAndStop (1);
Symbol 3249 MovieClip [goblintower2] Frame 41
stop();
Symbol 3249 MovieClip [goblintower2] Frame 164
stop();
Symbol 3272 MovieClip [game_tips] Frame 1
stop();
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 1
on (release) {
_parent._y = 2000;
_root.gamemode = 1;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 1
on (release) {
_parent._y = 2000;
_root.gamemode = 1;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 6
on (release) {
_parent._y = 2000;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 6
on (release) {
_parent._y = 2000;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Symbol 3272 MovieClip [game_tips] Frame 7
stop();
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 7
on (release) {
_parent._y = 2000;
_root.gamemode = 1;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 7
on (release) {
_parent._y = 2000;
_root.gamemode = 1;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Symbol 3272 MovieClip [game_tips] Frame 18
if (_global.soundVolume == 0) {
sound_button.gotoAndStop(2);
} else {
sound_button.gotoAndStop(1);
}
if (_global.musicVolume == 0) {
music_button.gotoAndStop(2);
} else {
music_button.gotoAndStop(1);
}
Instance of Symbol 2945 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 18
on (release) {
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodef = (0 + int((_root.heroagil + _global.equip_agility) * 5)) + _global.equip_armor;
_root.herolife = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.heromana = (50 + (_root.heroint * 25)) + (_global.equip_intelligence * 25);
_root.heroattackrate = 20 - int((_root.heroagil + _global.equip_agility) / 5);
_root.attachMovie("shop", "shop", 12555);
_root.shop.gold_txt = _global.GOLD;
_root.shop.health_txt = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.shop.level_txt = _root.herolvl;
_root.shop.damage_txt = _root.herodmg;
_root.shop.agility_txt = _root.heroagil + _global.equip_agility;
_root.shop.intelligence_txt = _root.heroint + _global.equip_intelligence;
_root.shop.strength_txt = _root.herostr + _global.equip_strength;
_root.shop.magic_txt = _root.heromana;
_root.shop.defense_txt = _root.herodef;
_root.shop.experience_txt = _root.heroexp;
_root.shop.poison_qty_txt = _root.poisonarrow_qty;
_root.shop.fire_qty_txt = _root.firearrow_qty;
_root.shop.ice_qty_txt = _root.icearrow_qty;
_root.shop.slots.head_slot.gotoAndStop(_root.current_head_slot + 1);
_root.shop.slots.chest_slot.gotoAndStop(_root.current_chest_slot + 1);
_root.shop.slots.weapon_slot.gotoAndStop(_root.current_weapon_slot + 1);
_root.shop.slots.leg_slot.gotoAndStop(_root.current_leg_slot + 1);
_root.shop.slots.hand_slot.gotoAndStop(_root.current_hand_slot + 1);
_root.shop.slots.feet_slot.gotoAndStop(_root.current_feet_slot + 1);
_root.shop.slots.finger_slot.gotoAndStop(_root.current_finger_slot + 1);
_root.shop.slots.finger2_slot.gotoAndStop(_root.current_finger2_slot + 1);
if (_root.nova_special) {
_root.shop.nova_tick._x = 602.5;
_root.shop.black_arrow_tick._x = 542.5;
} else {
_root.shop.nova_tick._x = 1602.5;
_root.shop.black_arrow_tick._x = 1542.5;
}
_root.herodefenses();
_root.shop.defense_txt = ((_root.herodef + "(") + _root.defensepercent) + "%)";
_root.darkness.swapDepths(501);
_root.darkness.removeMovieClip();
_root.iconspace1 = 0;
_root.iconspace2 = 0;
_root.iconspace3 = 0;
_root.iconspace4 = 0;
_root.attributes_button.swapDepths(501);
_root.attributes_button.removeMovieClip();
_root.new_creature.swapDepths(501);
_root.new_creature.removeMovieClip();
_root.new_skill.swapDepths(501);
_root.new_skill.removeMovieClip();
_root.new_icon1.swapDepths(501);
_root.new_icon1.removeMovieClip();
_root.new_icon2.swapDepths(501);
_root.new_icon2.removeMovieClip();
_root.new_icon3.swapDepths(501);
_root.new_icon3.removeMovieClip();
_root.new_icon4.swapDepths(501);
_root.new_icon4.removeMovieClip();
_root.new_icon5.swapDepths(501);
_root.new_icon5.removeMovieClip();
_root.levelup_icon = 0;
_root.levelend.swapDepths(501);
_root.levelend.removeMovieClip();
var i = 0;
while (i < 9) {
_root["spellReady" + i].swapDepths(501);
_root["spellReady" + i].removeMovieClip();
_root.spellslots[i] = false;
i++;
}
_root.experiencebar._y = 2000;
_root.topshade._y = 2000;
_root.bottomshade._y = 2000;
_root.gamemode = 2;
_root.clearunits();
_root._quality = "HIGH";
_parent.removeMovieClip();
}
Instance of Symbol 2958 MovieClip "music_button" in Symbol 3272 MovieClip [game_tips] Frame 18
on (release) {
if (this._currentframe == 1) {
_global.musicVolume = 0;
_root.ingame_music = _global.musicVolume;
stopAllSounds();
this.gotoAndStop(2);
} else {
_global.musicVolume = 25;
_root.ingame_music = _global.musicVolume;
_root.playSound("music3", _root.ingame_music, 99);
this.gotoAndStop(1);
}
}
Instance of Symbol 2966 MovieClip "sound_button" in Symbol 3272 MovieClip [game_tips] Frame 18
on (release) {
if (this._currentframe == 1) {
_global.soundVolume = 0;
_root.ingame_sound = _global.soundVolume;
this.gotoAndStop(2);
} else {
_global.soundVolume = 50;
_root.ingame_sound = _global.soundVolume;
this.gotoAndStop(1);
}
}
Instance of Symbol 2945 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 18
on (release) {
_root.savegame(_root.current_slot);
_root.clearInterval(_root.intervalID);
clearInterval(_root.intervalID);
_root.intervalID = null;
_root.clearingtimer();
_root.darkness.swapDepths(501);
_root.darkness.removeMovieClip();
_root.levelend.swapDepths(501);
_root.levelend.removeMovieClip();
_root.iconspace1 = 0;
_root.iconspace2 = 0;
_root.iconspace3 = 0;
_root.iconspace4 = 0;
_root.attributes_button.swapDepths(501);
_root.attributes_button.removeMovieClip();
_root.new_creature.swapDepths(501);
_root.new_creature.removeMovieClip();
_root.new_skill.swapDepths(501);
_root.new_skill.removeMovieClip();
_root.new_icon1.swapDepths(501);
_root.new_icon1.removeMovieClip();
_root.new_icon2.swapDepths(501);
_root.new_icon2.removeMovieClip();
_root.new_icon3.swapDepths(501);
_root.new_icon3.removeMovieClip();
_root.new_icon4.swapDepths(501);
_root.new_icon4.removeMovieClip();
_root.new_icon5.swapDepths(501);
_root.new_icon5.removeMovieClip();
_root.levelup_icon = 0;
if (_root.splitarrow_researched > 0) {
_root.splitarrow_recharge = 50000;
}
if (_root.volley_researched > 0) {
_root.volley_recharge = 50000;
}
if (_root.summon_researched > 0) {
_root.summon_recharge = 50000;
}
if (_root.wind_researched > 0) {
_root.wind_recharge = 50000;
}
if (_root.dash_researched > 0) {
_root.dash_recharge = 50000;
}
if (_root.arrow_splash_researched > 0) {
_root.arrow_splash_recharge = 50000;
}
if (_root.black_arrow_researched > 0) {
_root.black_arrow_recharge = 50000;
}
if (_root.nova_researched > 0) {
_root.nova_recharge = 50000;
}
_root.splitarrow_activecount = 0;
_root.volley_activecount = 0;
_root.summon_activecount = 0;
_root.wind_activecount = 0;
_root.dash_activecount = 0;
_root.arrow_splash_activecount = 0;
_root.black_arrow_activecount = 0;
_root.nova_activecount = 0;
var i = 0;
while (i < 8) {
_root["spellReady" + i].swapDepths(501);
_root["spellReady" + i].removeMovieClip();
_root.spellslots[i] = false;
i++;
}
_root.experiencebar._y = 2000;
_root.topshade._y = 2000;
_root.bottomshade._y = 2000;
_root.gamemode = 3;
_root.clearunits();
_root._quality = "HIGH";
_root.iconspace1 = 0;
_root.iconspace2 = 0;
_root.iconspace3 = 0;
_root.iconspace4 = 0;
_root.attributes_button.swapDepths(501);
_root.attributes_button.removeMovieClip();
_root.new_creature.swapDepths(501);
_root.new_creature.removeMovieClip();
_root.new_skill.swapDepths(501);
_root.new_skill.removeMovieClip();
_root.new_icon1.swapDepths(501);
_root.new_icon1.removeMovieClip();
_root.new_icon2.swapDepths(501);
_root.new_icon2.removeMovieClip();
_root.new_icon3.swapDepths(501);
_root.new_icon3.removeMovieClip();
_root.new_icon4.swapDepths(501);
_root.new_icon4.removeMovieClip();
_root.new_icon5.swapDepths(501);
_root.new_icon5.removeMovieClip();
_root.levelup_icon = 0;
_root.experiencebar._y = 2000;
_root.topshade._y = 2000;
_root.bottomshade._y = 2000;
_root.gamemode = 2;
_root.clearunits();
_root._quality = "HIGH";
_root.cleararea();
_root.tiles.swapDepths(501);
_root.tiles.removeMovieClip();
_root.gotoAndStop(2);
_parent.removeMovieClip();
}
Symbol 3272 MovieClip [game_tips] Frame 19
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodef = (0 + int((_root.heroagil + _global.equip_agility) / 2)) + _global.equip_armor;
_root.herolife = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.heromana = (50 + (_root.heroint * 25)) + (_global.equip_intelligence * 25);
_root.heroattackrate = 20 - int((_root.heroagil + _global.equip_agility) / 5);
_root.game_tips.gold_txt = _global.GOLD;
_root.game_tips.ability_points_txt = _root.abilitypoints;
_root.game_tips.health_txt = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.game_tips.level_txt = _root.herolvl;
_root.game_tips.damage_txt = _root.herodmg;
_root.game_tips.agility_txt = _root.heroagil + _global.equip_agility;
_root.game_tips.intelligence_txt = _root.heroint + _global.equip_intelligence;
_root.game_tips.strength_txt = _root.herostr + _global.equip_strength;
_root.game_tips.magic_txt = _root.heromana;
_root.game_tips.defense_txt = ((_root.herodef + "(") + _root.defensepercent) + "%)";
_root.game_tips.experience_txt = _root.heroexp;
Instance of Symbol 2988 MovieClip [plus_button] in Symbol 3272 MovieClip [game_tips] Frame 19
on (release) {
if (_root.abilitypoints >= 1) {
_root.abilitypoints--;
_root.herostr++;
_root.game_tips.ability_points_txt = _root.abilitypoints;
_root.game_tips.strength_txt = _root.herostr + _global.equip_strength;
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodef = (0 + int((_root.heroagil + _global.equip_agility) / 2)) + _global.equip_armor;
_root.herolife = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.heromana = (50 + (_root.heroint * 25)) + (_global.equip_intelligence * 25);
_root.heroattackrate = 20 - int((_root.heroagil + _global.equip_agility) / 5);
_root.game_tips.health_txt = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.game_tips.level_txt = _root.herolvl;
_root.game_tips.damage_txt = _root.herodmg;
_root.char[0].speed = _root.herospeed;
_root.char[0].mattack = _root.herodmg;
_root.char[0].hpMax = _root.herolife;
_root.herodefenses();
_root.setup_special();
_root.herospeed = Math.min(Math.max(int(((20 + _root.heroagil) + _global.equip_agility) / 5), 6), 12);
_root.char[0].speed = _root.herospeed;
}
}
on (rollOver) {
_parent.abilitybox._x = 100;
_parent.abilitybox.ability_header.text = "Strength";
_parent.abilitybox.ability_txt.text = "Strength increases Arrow Damage and Health.";
}
on (rollOut) {
_parent.abilitybox._x = -500;
}
Instance of Symbol 2988 MovieClip [plus_button] in Symbol 3272 MovieClip [game_tips] Frame 19
on (release) {
if (_root.abilitypoints >= 1) {
_root.abilitypoints--;
_root.heroagil++;
_root.game_tips.ability_points_txt = _root.abilitypoints;
_root.game_tips.agility_txt = _root.heroagil + _global.equip_agility;
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodef = (0 + int((_root.heroagil + _global.equip_agility) / 2)) + _global.equip_armor;
_root.herolife = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.heromana = (50 + (_root.heroint * 25)) + (_global.equip_intelligence * 25);
_root.heroattackrate = 20 - int((_root.heroagil + _global.equip_agility) / 5);
_root.game_tips.health_txt = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.game_tips.level_txt = _root.herolvl;
_root.game_tips.damage_txt = _root.herodmg;
_root.char[0].speed = _root.herospeed;
_root.char[0].mattack = _root.herodmg;
_root.char[0].hpMax = _root.herolife;
_root.herodefenses();
_root.game_tips.defense_txt = ((_root.herodef + "(") + _root.defensepercent) + "%)";
_root.setup_special();
_root.herospeed = Math.min(Math.max(int(((20 + _root.heroagil) + _global.equip_agility) / 5), 6), 12);
_root.char[0].speed = _root.herospeed;
}
}
on (rollOver) {
_parent.abilitybox._x = 100;
_parent.abilitybox.ability_header.text = "Agility";
_parent.abilitybox.ability_txt.text = "Agility improves movement speed, fire rate and defense.";
}
on (rollOut) {
_parent.abilitybox._x = -500;
}
Instance of Symbol 2988 MovieClip [plus_button] in Symbol 3272 MovieClip [game_tips] Frame 19
on (release) {
if (_root.abilitypoints >= 1) {
_root.abilitypoints--;
_root.heroint++;
_root.game_tips.ability_points_txt = _root.abilitypoints;
_root.game_tips.intelligence_txt = _root.heroint + _global.equip_intelligence;
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodef = (0 + int((_root.heroagil + _global.equip_agility) / 2)) + _global.equip_armor;
_root.herolife = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.heromana = (50 + (_root.heroint * 25)) + (_global.equip_intelligence * 25);
_root.heroattackrate = 20 - int((_root.heroagil + _global.equip_agility) / 5);
_root.game_tips.health_txt = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.game_tips.level_txt = _root.herolvl;
_root.game_tips.damage_txt = _root.herodmg;
_root.char[0].speed = _root.herospeed;
_root.char[0].mattack = _root.herodmg;
_root.char[0].hpMax = _root.herolife;
_root.herodefenses();
_root.setup_special();
_root.herospeed = Math.min(Math.max(int(((20 + _root.heroagil) + _global.equip_agility) / 5), 6), 12);
_root.char[0].speed = _root.herospeed;
}
}
on (rollOver) {
_parent.abilitybox._x = 100;
_parent.abilitybox.ability_header.text = "Intelligence";
_parent.abilitybox.ability_txt.text = "Intelligence improves the effects of spells (more damage, stronger summon, lasts longer etc). Also, intelligence reduces the in-between recharge time of spells.";
}
on (rollOut) {
_parent.abilitybox._x = -500;
}
Instance of Symbol 2993 MovieClip [repick_abilities_button] in Symbol 3272 MovieClip [game_tips] Frame 19
on (release) {
var resetstr = (_root.herostr - 5);
var resetagil = (_root.heroagil - 5);
var resetint = (_root.heroint - 5);
_root.herostr = 5;
_root.heroagil = 5;
_root.heroint = 5;
_root.game_tips.strength_txt = _root.herostr + _global.equip_strength;
_root.game_tips.agility_txt = _root.heroagil + _global.equip_agility;
_root.game_tips.intelligence_txt = _root.heroint + _global.equip_intelligence;
_root.abilitypoints = ((_root.abilitypoints + resetstr) + resetagil) + resetint;
_root.game_tips.ability_points_txt = _root.abilitypoints;
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodef = (0 + int((_root.heroagil + _global.equip_agility) / 2)) + _global.equip_armor;
_root.herolife = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.heromana = (50 + (_root.heroint * 25)) + (_global.equip_intelligence * 25);
_root.heroattackrate = 20 - int((_root.heroagil + _global.equip_agility) / 5);
_root.game_tips.health_txt = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.game_tips.level_txt = _root.herolvl;
_root.game_tips.damage_txt = _root.herodmg;
_root.char[0].speed = _root.herospeed;
_root.char[0].mattack = _root.herodmg;
_root.char[0].hpMax = _root.herolife;
_root.herodefenses();
_root.setup_special();
_root.herospeed = Math.min(Math.max(int(((20 + _root.heroagil) + _global.equip_agility) / 5), 6), 12);
_root.char[0].speed = _root.herospeed;
}
on (rollOver) {
_parent.abilitybox._x = 100;
_parent.abilitybox.ability_header.text = "Re-pick abilities";
_parent.abilitybox.ability_txt.text = "Click to reset your abilities, you can then re-pick your ability points.";
}
on (rollOut) {
_parent.abilitybox._x = -500;
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 41
on (release) {
_parent.gotoAndStop(42);
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 41
on (release) {
_parent.gotoAndStop(42);
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 41
on (release) {
_parent.gotoAndStop(42);
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 42
on (release) {
_parent.gotoAndStop(43);
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 42
on (release) {
_parent.gotoAndStop(43);
}
Instance of Symbol 484 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 43
on (release) {
getURL ("http://www.goblinarena.com", blank);
}
Instance of Symbol 487 MovieClip [facebooklink] "facebook_link" in Symbol 3272 MovieClip [game_tips] Frame 43
on (press) {
getURL ("http://www.facebook.com/GoblinArenaGames", blank);
}
Instance of Symbol 490 MovieClip [goblin_arena_games_logo] in Symbol 3272 MovieClip [game_tips] Frame 43
on (press) {
getURL ("http://www.goblinarena.com", blank);
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 43
on (release) {
_parent._y = 2000;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 43
on (release) {
_parent._y = 2000;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Symbol 3272 MovieClip [game_tips] Frame 44
stop();
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 44
on (release) {
_parent._y = 2000;
_root.gamemode = 1;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Instance of Symbol 2868 MovieClip in Symbol 3272 MovieClip [game_tips] Frame 44
on (release) {
_parent._y = 2000;
_root.gamemode = 1;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
Symbol 3274 MovieClip [buff_white] Frame 40
stop();
this.swapDepths(501);
this.removeMovieClip();
Symbol 3284 MovieClip [spellReady] Frame 1
stop();
Instance of Symbol 2654 MovieClip [arrow_split] "splitarrow" in Symbol 3284 MovieClip [spellReady] Frame 1
on (release) {
if (_root.splitarrow_researched > 0) {
if (_root.splitarrow_recharge > 0) {
} else {
_root.splitarrow_recharge = _root.splitarrow_totalrecharge;
_root.splitarrow_activecount = _root.splitarrow_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_blue", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_01_Jamaal3_converted.wav", _root.ingame_sound, 1);
_parent.filters = [_root.whiteGlowFilter];
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2657 MovieClip [arrow_volley] "greenarrow" in Symbol 3284 MovieClip [spellReady] Frame 2
on (release) {
if (_root.volley_researched > 0) {
if (_root.volley_recharge > 0) {
} else {
_root.volley_recharge = _root.volley_totalrecharge;
_root.volley_activecount = _root.volley_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_01_Jamaal3_converted.wav", _root.ingame_sound, 1);
_parent.filters = [_root.whiteGlowFilter];
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2660 MovieClip [haste_spell] "firearrow" in Symbol 3284 MovieClip [spellReady] Frame 3
on (release) {
if (_root.dash_researched > 0) {
if (_root.dash_recharge > 0) {
} else {
_root.dash_recharge = _root.dash_totalrecharge;
_root.dash_activecount = _root.dash_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_05_Jamaal3_converted.wav", _root.ingame_sound, 1);
_parent.filters = [_root.whiteGlowFilter];
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2666 MovieClip [companion_spell] "icearrow" in Symbol 3284 MovieClip [spellReady] Frame 4
on (release) {
if (_root.summon_researched > 0) {
if (_root.summon_recharge > 0) {
} else {
_root.summon_recharge = _root.summon_totalrecharge;
_root.summon();
_root.game.clip.char2.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_yellow", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char2._x;
_root.game.clip.buff_white._y = _root.game.clip.char2._y;
var k = int((-(_parent._y - 490)) / 60);
_root.spellslots[k] = false;
_root.spellslots2[4] = 0;
_parent.swapDepths(501);
_parent.removeMovieClip();
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2663 MovieClip [whirlwind_spell] "icearrow" in Symbol 3284 MovieClip [spellReady] Frame 5
on (release) {
if (_root.wind_researched > 0) {
if (_root.wind_recharge > 0) {
} else {
_root.wind_recharge = _root.wind_totalrecharge;
_root.wind_activecount = _root.wind_activemax;
_root.windsound.setVolume(_root.ingame_sound);
_root.windsound.start(0, 3);
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_05_Jamaal3_converted.wav", _root.ingame_sound, 1);
_parent.filters = [_root.whiteGlowFilter];
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2669 MovieClip [arrow_splash_spell] "icearrow" in Symbol 3284 MovieClip [spellReady] Frame 6
on (release) {
if (_root.arrow_splash_researched > 0) {
if (_root.arrow_splash_recharge > 0) {
} else {
_root.arrow_splash_recharge = _root.arrow_splash_totalrecharge;
_root.arrow_splash_activecount = _root.arrow_splash_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_05_Jamaal3_converted.wav", _root.ingame_sound, 1);
_parent.filters = [_root.whiteGlowFilter];
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2680 MovieClip [blackarrow_spell] in Symbol 3284 MovieClip [spellReady] Frame 7
on (release) {
if (_root.black_arrow_researched > 0) {
if (_root.black_arrow_recharge > 0) {
} else {
_root.black_arrow_recharge = _root.black_arrow_totalrecharge;
_root.black_arrow_activecount = _root.black_arrow_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_05_Jamaal3_converted.wav", _root.ingame_sound, 1);
_parent.filters = [_root.whiteGlowFilter];
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Instance of Symbol 2683 MovieClip [nova_spell] in Symbol 3284 MovieClip [spellReady] Frame 8
on (release) {
if (_root.nova_researched > 0) {
if (_root.nova_recharge > 0) {
} else {
_root.nova_recharge = _root.nova_totalrecharge;
_root.nova_activecount = _root.nova_activemax;
_root.game.clip.char0.filters = [_root.whiteGlowFilter];
_root.game.clip.attachMovie("buff_white", "buff_white", 900701);
_root.game.clip.buff_white._x = _root.game.clip.char0._x;
_root.game.clip.buff_white._y = _root.game.clip.char0._y;
_root.playSound("Male_ChargeUp_05_Jamaal3_converted.wav", _root.ingame_sound, 1);
_parent.filters = [_root.whiteGlowFilter];
}
}
}
on (rollOver) {
}
on (rollOut) {
}
Symbol 3289 MovieClip Frame 1
stop();
Symbol 3361 MovieClip [music] Frame 2
stop();
Symbol 3361 MovieClip [music] Frame 70
stop();
Symbol 3364 MovieClip [buff_red] Frame 40
stop();
this.swapDepths(501);
this.removeMovieClip();
Symbol 3374 MovieClip [introduction_hero1] Frame 110
herotop.stop();
_root.playSound("body_fall_floor", _root.ingame_sound, 1);
Symbol 3374 MovieClip [introduction_hero1] Frame 117
_parent.voice.gotoAndStop(2);
stop();
herotop.stop();
Symbol 3374 MovieClip [introduction_hero1] Frame 120
_parent.voice.gotoAndStop(3);
stop();
herotop.stop();
Symbol 3374 MovieClip [introduction_hero1] Frame 123
_parent.voice.gotoAndStop(1);
Symbol 3374 MovieClip [introduction_hero1] Frame 124
herotop.gotoAndPlay(1);
Symbol 3374 MovieClip [introduction_hero1] Frame 161
_parent.gotoAndPlay(2);
Symbol 3407 MovieClip [introduction_commentary] Frame 1
stop();
Instance of Symbol 3389 MovieClip [fightbutton] "gofight" in Symbol 3407 MovieClip [introduction_commentary] Frame 2
on (release) {
_parent._parent.intro_hero.play();
}
Symbol 3431 MovieClip Frame 73
_parent.voice.gotoAndStop(4);
stop();
herotop.stop();
_root.playSound("body_fall_floor", _root.ingame_sound, 1);
Symbol 3431 MovieClip Frame 77
_parent.voice.gotoAndStop(5);
stop();
herotop.stop();
Symbol 3431 MovieClip Frame 80
_parent.voice.gotoAndStop(1);
Symbol 3431 MovieClip Frame 81
herotop.gotoAndPlay(1);
Symbol 3431 MovieClip Frame 98
_parent.voice.gotoAndStop(6);
stop();
herotop.stop();
Symbol 3431 MovieClip Frame 101
_parent.voice.gotoAndStop(1);
herotop.gotoAndPlay(1);
Symbol 3431 MovieClip Frame 110
_parent.voice.gotoAndStop(7);
_root.playSound("Male_Sad_01_Jamaal3_converted.wav", _root.ingame_sound * 2, 1);
stop();
herotop.stop();
Symbol 3431 MovieClip Frame 112
_parent.voice.gotoAndStop(8);
stop();
herotop.stop();
Symbol 3431 MovieClip Frame 114
_parent.voice.gotoAndStop(1);
herotop.gotoAndPlay(1);
Symbol 3431 MovieClip Frame 162
_parent.gotoAndPlay(3);
Symbol 3451 MovieClip Frame 25
_parent.voice.gotoAndStop(9);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 26
_parent.voice.gotoAndStop(1);
herotop.gotoAndPlay(1);
Symbol 3451 MovieClip Frame 48
_parent.voice.gotoAndStop(10);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 49
_parent.voice.gotoAndStop(11);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 50
_parent.voice.gotoAndStop(12);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 51
_parent.voice.gotoAndStop(13);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 52
_parent.voice.gotoAndStop(14);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 53
_parent.voice.gotoAndStop(15);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 54
_parent.voice.gotoAndStop(16);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 55
_parent.voice.gotoAndStop(17);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 56
_parent.voice.gotoAndStop(18);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 57
_parent.voice.gotoAndStop(1);
Symbol 3451 MovieClip Frame 59
_root.playSound("2. You Gonna Be Dead.wav", _root.ingame_sound, 1);
Symbol 3451 MovieClip Frame 74
herotop.gotoAndPlay(25);
Symbol 3451 MovieClip Frame 77
_root.playSound("archer_attack1", _root.ingame_sound, 1);
Symbol 3451 MovieClip Frame 88
herotop.gotoAndPlay(25);
Symbol 3451 MovieClip Frame 91
_root.playSound("arrow_hit3", _root.ingame_sound, 1);
g1.gotoAndPlay(151);
Symbol 3451 MovieClip Frame 92
_root.playSound("archer_attack1", _root.ingame_sound, 1);
Symbol 3451 MovieClip Frame 94
_root.playSound("behemoth_die2", _root.ingame_sound, 1);
Symbol 3451 MovieClip Frame 102
_root.playSound("arrow_hit3", _root.ingame_sound, 1);
g2.gotoAndPlay(151);
Symbol 3451 MovieClip Frame 103
_root.playSound("behemoth_die4", _root.ingame_sound, 1);
Symbol 3451 MovieClip Frame 138
_parent.voice.gotoAndStop(19);
stop();
herotop.stop();
Symbol 3451 MovieClip Frame 139
_parent.voice.gotoAndStop(1);
herotop.gotoAndPlay(1);
Symbol 3451 MovieClip Frame 200
_root.gotoAndStop(4);
_parent.removeMovieClip();
Symbol 3454 MovieClip [introduction] Frame 1
stop();
Instance of Symbol 3410 MovieClip [skip_intro] in Symbol 3454 MovieClip [introduction] Frame 1
on (release) {
_root.gotoAndStop(4);
_parent.removeMovieClip();
}
Symbol 3454 MovieClip [introduction] Frame 2
stop();
Symbol 3454 MovieClip [introduction] Frame 3
stop();
Symbol 3462 MovieClip [buff_spin] Frame 41
stop();
this.swapDepths(501);
this.removeMovieClip();
Symbol 3466 MovieClip [buff_green] Frame 40
stop();
this.swapDepths(501);
this.removeMovieClip();
Symbol 3471 MovieClip [buff_nova] Frame 63
stop();
this.swapDepths(501);
this.removeMovieClip();
Symbol 3476 MovieClip [click_to_moregames] Frame 1
stop();
Symbol 3479 MovieClip [click_to_credits] Frame 1
stop();
Instance of Symbol 2945 MovieClip in Symbol 3490 MovieClip [levelend] Frame 1
on (release) {
_root.update_equiped_attributes();
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodef = (0 + int((_root.heroagil + _global.equip_agility) * 5)) + _global.equip_armor;
_root.herolife = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.heromana = (50 + (_root.heroint * 25)) + (_global.equip_intelligence * 25);
_root.heroattackrate = 20 - int((_root.heroagil + _global.equip_agility) / 5);
_root.attachMovie("shop", "shop", 12555);
_root.shop.gold_txt = _global.GOLD;
_root.shop.health_txt = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.shop.level_txt = _root.herolvl;
_root.shop.damage_txt = _root.herodmg;
_root.shop.agility_txt = _root.heroagil + _global.equip_agility;
_root.shop.intelligence_txt = _root.heroint + _global.equip_intelligence;
_root.shop.strength_txt = _root.herostr + _global.equip_strength;
_root.shop.magic_txt = _root.heromana;
_root.shop.defense_txt = _root.herodef;
_root.shop.experience_txt = _root.heroexp;
_root.shop.poison_qty_txt = _root.poisonarrow_qty;
_root.shop.fire_qty_txt = _root.firearrow_qty;
_root.shop.ice_qty_txt = _root.icearrow_qty;
_root.shop.slots.head_slot.gotoAndStop(_root.current_head_slot + 1);
_root.shop.slots.chest_slot.gotoAndStop(_root.current_chest_slot + 1);
_root.shop.slots.weapon_slot.gotoAndStop(_root.current_weapon_slot + 1);
_root.shop.slots.leg_slot.gotoAndStop(_root.current_leg_slot + 1);
_root.shop.slots.hand_slot.gotoAndStop(_root.current_hand_slot + 1);
_root.shop.slots.feet_slot.gotoAndStop(_root.current_feet_slot + 1);
_root.shop.slots.finger_slot.gotoAndStop(_root.current_finger_slot + 1);
_root.shop.slots.finger2_slot.gotoAndStop(_root.current_finger2_slot + 1);
if (_root.nova_special) {
_root.shop.nova_tick._x = 602.5;
_root.shop.black_arrow_tick._x = 542.5;
} else {
_root.shop.nova_tick._x = 1602.5;
_root.shop.black_arrow_tick._x = 1542.5;
}
_root.herodefenses();
_root.shop.defense_txt = ((_root.herodef + "(") + _root.defensepercent) + "%)";
_root.iconspace1 = 0;
_root.iconspace2 = 0;
_root.iconspace3 = 0;
_root.iconspace4 = 0;
_root.attributes_button.swapDepths(501);
_root.attributes_button.removeMovieClip();
_root.new_creature.swapDepths(501);
_root.new_creature.removeMovieClip();
_root.new_skill.swapDepths(501);
_root.new_skill.removeMovieClip();
_root.new_icon1.swapDepths(501);
_root.new_icon1.removeMovieClip();
_root.new_icon2.swapDepths(501);
_root.new_icon2.removeMovieClip();
_root.new_icon3.swapDepths(501);
_root.new_icon3.removeMovieClip();
_root.new_icon4.swapDepths(501);
_root.new_icon4.removeMovieClip();
_root.new_icon5.swapDepths(501);
_root.new_icon5.removeMovieClip();
_root.new_icon6.swapDepths(501);
_root.new_icon6.removeMovieClip();
_root.new_icon7.swapDepths(501);
_root.new_icon7.removeMovieClip();
_root.new_icon8.swapDepths(501);
_root.new_icon8.removeMovieClip();
_root.levelup_icon = 0;
stopAllSounds();
_root.playSound("music1", _root.ingame_music, 99);
_root.victorycount = 0;
_root.defeatcount = 0;
_root.gamemode = 2;
_root.splitarrow_recharge = 0;
_root.volley_recharge = 0;
_root.summon_recharge = 0;
_root.wind_recharge = 0;
_root.dash_recharge = 0;
_root.arrow_splash_recharge = 0;
_root.black_arrow_recharge = 0;
_root.nova_recharge = 0;
var i = 0;
while (i < 8) {
_root["spellReady" + i].swapDepths(501);
_root["spellReady" + i].removeMovieClip();
_root.spellslots[i] = false;
i++;
}
_root.experiencebar._y = 2000;
_root.topshade._y = 2000;
_root.bottomshade._y = 2000;
_root.gamemode = 2;
_root.clearunits();
_parent.removeMovieClip();
}
Symbol 3490 MovieClip [levelend] Frame 2
stopAllSounds();
_root.playSound("4 Victory.wav", _root.ingame_music, 1);
_root.playSound("Male_BattleWon_01_Jamaal3_converted.wav", _root.ingame_sound, 1);
Instance of Symbol 2945 MovieClip in Symbol 3490 MovieClip [levelend] Frame 2
on (release) {
_root.clevel++;
_root.update_equiped_attributes();
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodef = (0 + int((_root.heroagil + _global.equip_agility) * 5)) + _global.equip_armor;
_root.herolife = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.heromana = (50 + (_root.heroint * 25)) + (_global.equip_intelligence * 25);
_root.heroattackrate = 20 - int((_root.heroagil + _global.equip_agility) / 5);
_root.attachMovie("shop", "shop", 12555);
_root.shop.gold_txt = _global.GOLD;
_root.shop.health_txt = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.shop.level_txt = _root.herolvl;
_root.shop.damage_txt = _root.herodmg;
_root.shop.agility_txt = _root.heroagil + _global.equip_agility;
_root.shop.intelligence_txt = _root.heroint + _global.equip_intelligence;
_root.shop.strength_txt = _root.herostr + _global.equip_strength;
_root.shop.magic_txt = _root.heromana;
_root.shop.defense_txt = _root.herodef;
_root.shop.experience_txt = _root.heroexp;
_root.shop.poison_qty_txt = _root.poisonarrow_qty;
_root.shop.fire_qty_txt = _root.firearrow_qty;
_root.shop.ice_qty_txt = _root.icearrow_qty;
_root.shop.slots.head_slot.gotoAndStop(_root.current_head_slot + 1);
_root.shop.slots.chest_slot.gotoAndStop(_root.current_chest_slot + 1);
_root.shop.slots.weapon_slot.gotoAndStop(_root.current_weapon_slot + 1);
_root.shop.slots.leg_slot.gotoAndStop(_root.current_leg_slot + 1);
_root.shop.slots.hand_slot.gotoAndStop(_root.current_hand_slot + 1);
_root.shop.slots.feet_slot.gotoAndStop(_root.current_feet_slot + 1);
_root.shop.slots.finger_slot.gotoAndStop(_root.current_finger_slot + 1);
_root.shop.slots.finger2_slot.gotoAndStop(_root.current_finger2_slot + 1);
if (_root.nova_special) {
_root.shop.nova_tick._x = 602.5;
_root.shop.black_arrow_tick._x = 542.5;
} else {
_root.shop.nova_tick._x = 1602.5;
_root.shop.black_arrow_tick._x = 1542.5;
}
_root.herodefenses();
_root.shop.defense_txt = ((_root.herodef + "(") + _root.defensepercent) + "%)";
_root.iconspace1 = 0;
_root.iconspace2 = 0;
_root.iconspace3 = 0;
_root.iconspace4 = 0;
_root.attributes_button.swapDepths(501);
_root.attributes_button.removeMovieClip();
_root.new_creature.swapDepths(501);
_root.new_creature.removeMovieClip();
_root.new_skill.swapDepths(501);
_root.new_skill.removeMovieClip();
_root.new_icon1.swapDepths(501);
_root.new_icon1.removeMovieClip();
_root.new_icon2.swapDepths(501);
_root.new_icon2.removeMovieClip();
_root.new_icon3.swapDepths(501);
_root.new_icon3.removeMovieClip();
_root.new_icon4.swapDepths(501);
_root.new_icon4.removeMovieClip();
_root.new_icon5.swapDepths(501);
_root.new_icon5.removeMovieClip();
_root.new_icon6.swapDepths(501);
_root.new_icon6.removeMovieClip();
_root.new_icon7.swapDepths(501);
_root.new_icon7.removeMovieClip();
_root.new_icon8.swapDepths(501);
_root.new_icon8.removeMovieClip();
_root.levelup_icon = 0;
stopAllSounds();
_root.victorycount = 0;
_root.defeatcount = 0;
_root.gamemode = 2;
_root.splitarrow_recharge = 0;
_root.volley_recharge = 0;
_root.summon_recharge = 0;
_root.wind_recharge = 0;
_root.dash_recharge = 0;
_root.arrow_splash_recharge = 0;
_root.black_arrow_recharge = 0;
_root.nova_recharge = 0;
_root.playSound("music1", _root.ingame_music, 99);
var i = 0;
while (i < 8) {
_root["spellReady" + i].swapDepths(501);
_root["spellReady" + i].removeMovieClip();
_root.spellslots[i] = false;
i++;
}
_root.experiencebar._y = 2000;
_root.topshade._y = 2000;
_root.bottomshade._y = 2000;
_root.gamemode = 2;
_root.clearunits();
_parent.removeMovieClip();
}
Symbol 3510 MovieClip [head_slot] Frame 1
stop();
Symbol 3529 MovieClip [chest_slot] Frame 1
stop();
Symbol 3542 MovieClip [arm_slot] Frame 1
stop();
Symbol 3555 MovieClip [legs_slot] Frame 1
stop();
Symbol 3574 MovieClip [feet_slot] Frame 1
stop();
Symbol 3596 MovieClip [weapon_slot] Frame 1
stop();
Symbol 3609 MovieClip [finger_slot] Frame 1
stop();
Symbol 3653 MovieClip [buyconfirmation] Frame 1
stop();
Instance of Symbol 3639 MovieClip in Symbol 3653 MovieClip [buyconfirmation] Frame 1
on (release) {
_parent._parent.slots[_root.purchase_slot_type].gotoAndStop(_root.purchase_slot_number + 1);
_global.GOLD = _global.GOLD - _root.purchase_slot_price;
_parent._parent.gold_txt = _global.GOLD;
_root.playSound("Equip_GearSwitch_converted.wav", _root.ingame_sound, 1);
_root.playSound("Drop_Coins_01_converted.wav", _root.ingame_sound, 1);
_global.equip_strength = _global.equip_strength - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].strength;
_global.equip_agility = _global.equip_agility - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].agility;
_global.equip_intelligence = _global.equip_intelligence - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].intelligence;
_global.equip_attack = _global.equip_attack - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].attack;
_global.equip_armor = _global.equip_armor - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].armor;
_global.equip_health = _global.equip_health - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].health;
_root["current_" + _root.purchase_slot_type] = _root.purchase_slot_number;
_global.equip_strength = _global.equip_strength + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].strength;
_global.equip_agility = _global.equip_agility + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].agility;
_global.equip_intelligence = _global.equip_intelligence + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].intelligence;
_global.equip_attack = _global.equip_attack + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].attack;
_global.equip_armor = _global.equip_armor + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].armor;
_global.equip_health = _global.equip_health + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].health;
_root.update_equiped_attributes();
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodef = (0 + int((_root.heroagil + _global.equip_agility) * 5)) + _global.equip_armor;
_root.herolife = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.heromana = (50 + (_root.heroint * 25)) + (_global.equip_intelligence * 25);
_root.heroattackrate = 20 - int((_root.heroagil + _global.equip_agility) / 5);
_root.shop.gold_txt = _global.GOLD;
_root.shop.health_txt = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.shop.level_txt = _root.herolvl;
_root.shop.damage_txt = _root.herodmg;
_root.shop.agility_txt = _root.heroagil + _global.equip_agility;
_root.shop.intelligence_txt = _root.heroint + _global.equip_intelligence;
_root.shop.strength_txt = _root.herostr + _global.equip_strength;
_root.shop.magic_txt = _root.heromana;
_root.shop.defense_txt = _root.herodef;
_root.shop.experience_txt = _root.heroexp;
_root.herodefenses();
_root.setup_special();
_root.shop.defense_txt = ((_root.herodef + "(") + _root.defensepercent) + "%)";
_parent._y = 1000;
}
Instance of Symbol 3639 MovieClip in Symbol 3653 MovieClip [buyconfirmation] Frame 1
on (release) {
_parent._y = 1000;
}
Instance of Symbol 3639 MovieClip in Symbol 3653 MovieClip [buyconfirmation] Frame 2
on (release) {
_parent._y = 1000;
}
Symbol 3653 MovieClip [buyconfirmation] Frame 3
stop();
Instance of Symbol 3647 MovieClip [finger2_button] "finger2_button" in Symbol 3653 MovieClip [buyconfirmation] Frame 3
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "finger2_slot";
var equipmentrank = _root.selectedequipmentrank;
var currentslotvalue = _root.finger_slot_array[equipmentrank].cost;
var currentequipprice = _root.finger_slot_array[_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root.finger_slot_array[equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
_root.purchase_slot_ring = equipmentslot;
if (_global.GOLD >= netprice) {
_parent.yes_button._y = 120;
_parent.no_button._y = 120;
_parent._parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.ok_button._y = 120;
_parent._parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
_parent.finger1_button._y = 800;
_parent.finger2_button._y = 800;
}
Instance of Symbol 3649 MovieClip [finger1_button] "finger1_button" in Symbol 3653 MovieClip [buyconfirmation] Frame 3
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "finger_slot";
var equipmentrank = _root.selectedequipmentrank;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
_root.purchase_slot_ring = equipmentslot;
if (_global.GOLD >= netprice) {
_parent.yes_button._y = 120;
_parent.no_button._y = 120;
_parent._parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.ok_button._y = 120;
_parent._parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
_parent.finger1_button._y = 800;
_parent.finger2_button._y = 800;
}
Instance of Symbol 3650 MovieClip [ok_button] "ok_button" in Symbol 3653 MovieClip [buyconfirmation] Frame 3
on (release) {
_parent._y = 1000;
_parent.gotoAndStop(1);
}
Instance of Symbol 3651 MovieClip [no_button] "no_button" in Symbol 3653 MovieClip [buyconfirmation] Frame 3
on (release) {
_parent._y = 1000;
_parent.gotoAndStop(1);
}
Instance of Symbol 3652 MovieClip [yes_button] "yes_button" in Symbol 3653 MovieClip [buyconfirmation] Frame 3
on (release) {
_parent._parent.slots[_root.purchase_slot_ring].gotoAndStop(_root.purchase_slot_number + 1);
_global.GOLD = _global.GOLD - _root.purchase_slot_price;
_parent._parent.gold_txt = _global.GOLD;
if (_root.purchase_slot_type == "finger2_slot") {
_global.equip_strength = _global.equip_strength - _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].strength;
_global.equip_agility = _global.equip_agility - _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].agility;
_global.equip_intelligence = _global.equip_intelligence - _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].intelligence;
_global.equip_attack = _global.equip_attack - _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].attack;
_global.equip_armor = _global.equip_armor - _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].armor;
_global.equip_health = _global.equip_health - _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].health;
_root["current_" + _root.purchase_slot_ring] = _root.purchase_slot_number;
_root.update_equiped_attributes();
_global.equip_strength = _global.equip_strength + _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].strength;
_global.equip_agility = _global.equip_agility + _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].agility;
_global.equip_intelligence = _global.equip_intelligence + _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].intelligence;
_global.equip_attack = _global.equip_attack + _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].attack;
_global.equip_armor = _global.equip_armor + _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].armor;
_global.equip_health = _global.equip_health + _root.finger_slot_array[_root["current_" + _root.purchase_slot_type]].health;
} else {
_global.equip_strength = _global.equip_strength - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].strength;
_global.equip_agility = _global.equip_agility - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].agility;
_global.equip_intelligence = _global.equip_intelligence - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].intelligence;
_global.equip_attack = _global.equip_attack - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].attack;
_global.equip_armor = _global.equip_armor - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].armor;
_global.equip_health = _global.equip_health - _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].health;
_root["current_" + _root.purchase_slot_ring] = _root.purchase_slot_number;
_global.equip_strength = _global.equip_strength + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].strength;
_global.equip_agility = _global.equip_agility + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].agility;
_global.equip_intelligence = _global.equip_intelligence + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].intelligence;
_global.equip_attack = _global.equip_attack + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].attack;
_global.equip_armor = _global.equip_armor + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].armor;
_global.equip_health = _global.equip_health + _root[_root.purchase_slot_type + "_array"][_root["current_" + _root.purchase_slot_type]].health;
}
_root.update_equiped_attributes();
_root.herodmg = (5 + ((_root.herostr + _global.equip_strength) * 2)) + _global.equip_attack;
_root.herodef = (0 + int((_root.heroagil + _global.equip_agility) / 2)) + _global.equip_armor;
_root.herolife = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.heromana = (50 + (_root.heroint * 25)) + (_global.equip_intelligence * 25);
_root.heroattackrate = 20 - int((_root.heroagil + _global.equip_agility) / 5);
_root.shop.gold_txt = _global.GOLD;
_root.shop.health_txt = ((100 + (_root.herostr * 50)) + (_global.equip_strength * 50)) + _global.equip_health;
_root.shop.level_txt = _root.herolvl;
_root.shop.damage_txt = _root.herodmg;
_root.shop.agility_txt = _root.heroagil + _global.equip_agility;
_root.shop.intelligence_txt = _root.heroint + _global.equip_intelligence;
_root.shop.strength_txt = _root.herostr + _global.equip_strength;
_root.shop.magic_txt = _root.heromana;
_root.shop.defense_txt = _root.herodef;
_root.shop.experience_txt = _root.heroexp;
_root.herodefenses();
_root.setup_special();
_root.shop.defense_txt = ((_root.herodef + "(") + _root.defensepercent) + "%)";
_parent._y = 1000;
_parent.gotoAndStop(1);
}
Symbol 3679 MovieClip [BonusBox] Frame 1
stop();
bonusaddress = "http://www.GoblinArena.com/goblin-arena-bonus-code.php?ID=" + _global.bonuskey;
if (_global.bonusunlocked) {
gotoAndPlay (155);
}
Instance of Symbol 3664 MovieClip in Symbol 3679 MovieClip [BonusBox] Frame 1
on (release) {
_parent.removeMovieClip();
}
Instance of Symbol 3668 MovieClip in Symbol 3679 MovieClip [BonusBox] Frame 1
on (release) {
var sendText = "http://www.GoblinArena.com/goblin-arena-bonus-code.php?";
sendText = sendText + ("ID=" + _global.bonuskey);
getURL (sendText, "_blank");
_parent.gotoAndStop(2);
}
Symbol 3679 MovieClip [BonusBox] Frame 2
_parent.BonusBox.codeentered.text = "Enter Code here.";
_parent.BonusBox.addressfield.text = bonusaddress;
_parent.BonusBox.codeentered.onSetFocus = function () {
_parent.BonusBox.codeentered.text = "";
};
Instance of Symbol 3639 MovieClip in Symbol 3679 MovieClip [BonusBox] Frame 2
on (release) {
trace("codeentered=" + _parent.codeentered.text);
trace("global.bonuscode=" + _global.bonuscode);
if (_parent.codeentered.text == _global.bonuscode) {
_global.bonusunlocked = true;
localInfo = SharedObject.getLocal("rangerdefense");
localInfo.data.bonusunlock = _global.bonusunlocked;
_root.nova_special = true;
_parent._parent.nova_tick._x = 602.5;
_parent._parent.black_arrow_tick._x = 542.5;
_root.black_arrow_special = true;
if (_global.bonusunlocked) {
_root.bonuslock1._x = 2000;
_root.bonuslock2._x = 2000;
}
_parent.gotoAndPlay(155);
} else {
_parent.gotoAndPlay(4);
}
}
Symbol 3679 MovieClip [BonusBox] Frame 3
stop();
Instance of Symbol 2854 MovieClip [confirmbutton] in Symbol 3679 MovieClip [BonusBox] Frame 3
on (release) {
_parent.removeMovieClip();
}
Instance of Symbol 3664 MovieClip in Symbol 3679 MovieClip [BonusBox] Frame 4
on (release) {
_root.BonusBox.removeMovieClip();
}
Instance of Symbol 2854 MovieClip [confirmbutton] in Symbol 3679 MovieClip [BonusBox] Frame 4
on (release) {
_root.BonusBox.removeMovieClip();
}
Symbol 3679 MovieClip [BonusBox] Frame 154
gotoAndStop (1);
Symbol 3679 MovieClip [BonusBox] Frame 155
stop();
Instance of Symbol 3664 MovieClip in Symbol 3679 MovieClip [BonusBox] Frame 155
on (release) {
_parent.removeMovieClip();
}
Instance of Symbol 2854 MovieClip [confirmbutton] in Symbol 3679 MovieClip [BonusBox] Frame 155
on (release) {
_parent.removeMovieClip();
}
Symbol 3679 MovieClip [BonusBox] Frame 450
_parent.BonusBox.removeMovieClip();
Instance of Symbol 3664 MovieClip in Symbol 3679 MovieClip [BonusBox] Frame 450
on (release) {
_root.BonusBox.removeMovieClip();
}
Symbol 3690 MovieClip [mappoint] Frame 1
stop();
Symbol 3693 MovieClip [highlight_button] Frame 1
stop();
Instance of Symbol 3693 MovieClip [highlight_button] in Symbol 3699 MovieClip [select_part] Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.partselected = 1;
_root.nextlevel();
}
Instance of Symbol 3693 MovieClip [highlight_button] in Symbol 3699 MovieClip [select_part] Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
if (_parent.part3_txt == "Part 2 - Locked") {
} else {
_root.partselected = 2;
_root.nextlevel();
}
}
Instance of Symbol 3693 MovieClip [highlight_button] in Symbol 3699 MovieClip [select_part] Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
trace("Part 3 - Locked = " + _parent.part3_txt);
if (_parent.part3_txt == "Part 3 - Locked") {
} else {
_root.partselected = 3;
_root.nextlevel();
}
}
Symbol 3700 MovieClip [shop] Frame 1
stop();
if (_root.levels_complete[18]) {
if (_root.gameend_notice < 1) {
_root.gameend_notice++;
_root.attachMovie("game_tips", "game_tips", 9999509);
_root.game_tips._y = 50;
_root.game_tips._x = 130;
_root.game_tips.gotoAndStop(41);
if (_root.nova_special) {
nova_tick._x = 602.5;
black_arrow_tick._x = 542.5;
} else {
nova_tick._x = 1602.5;
black_arrow_tick._x = 1542.5;
}
}
}
Instance of Symbol 3500 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "head_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "head_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3503 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "head_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "head_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3506 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "head_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "head_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3509 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "head_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "head_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3513 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "chest_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "chest_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3516 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "chest_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "chest_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3519 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "chest_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "chest_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3522 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "chest_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "chest_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3532 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "hand_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "hand_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3535 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "hand_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "hand_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3538 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "hand_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "hand_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3541 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "hand_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "hand_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3545 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "leg_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "leg_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3548 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "leg_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "leg_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3551 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "leg_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "leg_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3554 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "leg_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "leg_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3558 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "feet_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "feet_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3561 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "feet_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "feet_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3564 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "feet_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "feet_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3567 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "feet_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "feet_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3577 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "weapon_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "weapon_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3580 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "weapon_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "weapon_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3583 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "weapon_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "weapon_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3586 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "weapon_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "weapon_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3589 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "weapon_slot";
var equipmentrank = 5;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "weapon_slot";
var equipmentrank = 5;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3592 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "weapon_slot";
var equipmentrank = 6;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "weapon_slot";
var equipmentrank = 6;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3595 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "weapon_slot";
var equipmentrank = 7;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "weapon_slot";
var equipmentrank = 7;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3599 MovieClip [ring1] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "finger_slot";
var equipmentrank = 1;
_root.selectedequipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = currentslotvalue;
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
_parent.confirmation.gotoAndStop(3);
_parent.confirmation.finger1_button._y = 120;
_parent.confirmation.finger2_button._y = 120;
_parent.confirmation.ok_button._y = 800;
_parent.confirmation.yes_button._y = 800;
_parent.confirmation.no_button._y = 800;
}
on (rollOver) {
var equipmentslot = "finger_slot";
var equipmentrank = 1;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ("Price: " + netprice) + " gp (excludes trade-in)";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3602 MovieClip [ring2] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "finger_slot";
var equipmentrank = 2;
_root.selectedequipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = currentslotvalue;
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
_parent.confirmation.gotoAndStop(3);
_parent.confirmation.finger1_button._y = 120;
_parent.confirmation.finger2_button._y = 120;
_parent.confirmation.ok_button._y = 800;
_parent.confirmation.yes_button._y = 800;
_parent.confirmation.no_button._y = 800;
}
on (rollOver) {
var equipmentslot = "finger_slot";
var equipmentrank = 2;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ("Price: " + netprice) + " gp (excludes trade-in)";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3605 MovieClip [ring3] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "finger_slot";
var equipmentrank = 3;
_root.selectedequipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = currentslotvalue;
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
_parent.confirmation.gotoAndStop(3);
_parent.confirmation.finger1_button._y = 120;
_parent.confirmation.finger2_button._y = 120;
_parent.confirmation.ok_button._y = 800;
_parent.confirmation.yes_button._y = 800;
_parent.confirmation.no_button._y = 800;
}
on (rollOver) {
var equipmentslot = "finger_slot";
var equipmentrank = 3;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ("Price: " + netprice) + " gp (excludes trade-in)";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3608 MovieClip [ring4] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "finger_slot";
var equipmentrank = 4;
_root.selectedequipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = currentslotvalue;
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
_parent.confirmation.gotoAndStop(3);
_parent.confirmation.finger1_button._y = 120;
_parent.confirmation.finger2_button._y = 120;
_parent.confirmation.ok_button._y = 800;
_parent.confirmation.yes_button._y = 800;
_parent.confirmation.no_button._y = 800;
}
on (rollOver) {
var equipmentslot = "finger_slot";
var equipmentrank = 4;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ("Price: " + netprice) + " gp (excludes trade-in)";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3570 MovieClip [feet5] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "feet_slot";
var equipmentrank = 5;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "feet_slot";
var equipmentrank = 5;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3573 MovieClip [feet6] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "feet_slot";
var equipmentrank = 6;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "feet_slot";
var equipmentrank = 6;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3525 MovieClip [chest5] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "chest_slot";
var equipmentrank = 5;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "chest_slot";
var equipmentrank = 5;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3528 MovieClip [chest6] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
var equipmentslot = "chest_slot";
var equipmentrank = 6;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
_root.purchase_slot_type = equipmentslot;
_root.purchase_slot_number = equipmentrank;
_root.purchase_slot_price = netprice;
if (_global.GOLD >= netprice) {
_parent.confirmation.gotoAndStop(1);
_parent.confirmation.ability_txt.text = ((("Are you sure you want to trade in for " + equipdescription) + " at ") + netprice) + "gold pieces?.";
} else {
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = ((("You don't have enough money.\rYou need " + netprice) + " gold pieces to trade for ") + equipdescription) + ".";
}
}
on (rollOver) {
var equipmentslot = "chest_slot";
var equipmentrank = 6;
var currentslotvalue = _root[equipmentslot + "_array"][equipmentrank].cost;
var currentequipprice = _root[equipmentslot + "_array"][_root["current_" + equipmentslot]].cost;
var netprice = ((-currentequipprice) + currentslotvalue);
var equipdescription = _root[equipmentslot + "_array"][equipmentrank].description;
var armor = _root[equipmentslot + "_array"][equipmentrank].armor;
var health = _root[equipmentslot + "_array"][equipmentrank].health;
var strength = _root[equipmentslot + "_array"][equipmentrank].strength;
var agility = _root[equipmentslot + "_array"][equipmentrank].agility;
var intelligence = _root[equipmentslot + "_array"][equipmentrank].intelligence;
var attack = _root[equipmentslot + "_array"][equipmentrank].attack;
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = equipdescription + ".";
_parent.abilitybox.ability_txt.text = ((("Price: " + netprice) + " gp (includes trade-in of ") + currentequipprice) + ")";
if (armor > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Armor:+") + armor) + ".";
}
if (health > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Health:+") + health) + ".";
}
if (attack > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Attack:+") + attack) + ".";
}
if (strength > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Strength:+") + strength) + ".";
}
if (agility > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Agility:+") + agility) + ".";
}
if (intelligence > 0) {
_parent.abilitybox.ability_txt.text = (((_parent.abilitybox.ability_txt.text + newline) + "Intelligence:+") + intelligence) + ".";
}
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3389 MovieClip [fightbutton] "gofight" in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_parent.gotoAndStop(2);
_root.savegame(_root.current_slot);
}
Instance of Symbol 2818 MovieClip [arrow1] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
if (_global.GOLD >= 50) {
_global.GOLD = _global.GOLD - 50;
_parent.gold_txt = _global.GOLD;
_root.poisonarrow_qty = _root.poisonarrow_qty + 10;
_parent.poison_qty_txt = _root.poisonarrow_qty;
} else {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = "You don't have enough money.\rYou need 50 gold pieces to buy 10x Poison Tip Arrows. +50% Bonus Damage";
}
}
on (rollOver) {
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = "Poison Tip Arrows x10.";
_parent.abilitybox.ability_txt.text = "Price: 50 gp for 10 Arrows\rPoison Arrows slow enemy units down and also cause on-going poison damage for a limited time.";
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 2821 MovieClip [arrow2] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
if (_global.GOLD >= 75) {
_global.GOLD = _global.GOLD - 75;
_parent.gold_txt = _global.GOLD;
_root.firearrow_qty = _root.firearrow_qty + 10;
_parent.fire_qty_txt = _root.firearrow_qty;
} else {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = "You don't have enough money.\rYou need 75 gold pieces to buy 10x Fire Tip Arrows.";
}
}
on (rollOver) {
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = "Fire Tip Arrows x10.";
_parent.abilitybox.ability_txt.text = "Price: 75 gp for 10 Arrows\rFire Arrows blast the enemies backwards causing bonus damage of between 50-150% and stunning them for a short time.";
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 2822 MovieClip [arrow3] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
if (_global.GOLD >= 100) {
_global.GOLD = _global.GOLD - 100;
_parent.gold_txt = _global.GOLD;
_root.icearrow_qty = _root.icearrow_qty + 10;
_parent.ice_qty_txt = _root.icearrow_qty;
} else {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = "You don't have enough money.\rYou need 50 gold pieces to buy 10x ice Tip Arrows.";
}
}
on (rollOver) {
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = "Ice Tip Arrows x10.";
_parent.abilitybox.ability_txt.text = "Price: 100 gp for 10 Arrows\rIce Arrows initially freezes enemy units for a period and then as they defrost they are still slow. +100 Bonus Damage";
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3659 MovieClip [main_menu_button] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
_root.savegame(_root.current_slot);
_root.clearInterval(_root.intervalID);
clearInterval(_root.intervalID);
_root.clearingtimer();
_root.iconspace1 = 0;
_root.iconspace2 = 0;
_root.iconspace3 = 0;
_root.iconspace4 = 0;
_root.attributes_button.swapDepths(501);
_root.attributes_button.removeMovieClip();
_root.new_creature.swapDepths(501);
_root.new_creature.removeMovieClip();
_root.new_skill.swapDepths(501);
_root.new_skill.removeMovieClip();
_root.new_icon1.swapDepths(501);
_root.new_icon1.removeMovieClip();
_root.new_icon2.swapDepths(501);
_root.new_icon2.removeMovieClip();
_root.new_icon3.swapDepths(501);
_root.new_icon3.removeMovieClip();
_root.new_icon4.swapDepths(501);
_root.new_icon4.removeMovieClip();
_root.new_icon5.swapDepths(501);
_root.new_icon5.removeMovieClip();
_root.levelup_icon = 0;
_root.levelend.swapDepths(501);
_root.levelend.removeMovieClip();
_root.victorycount = 0;
_root.defeatcount = 0;
_root.gamemode = 2;
_root.splitarrow_recharge = 0;
_root.volley_recharge = 0;
_root.summon_recharge = 0;
_root.wind_recharge = 0;
_root.dash_recharge = 0;
_root.arrow_splash_recharge = 0;
_root.black_arrow_recharge = 0;
_root.nova_recharge = 0;
var i = 0;
while (i < 8) {
_root["spellReady" + i].swapDepths(501);
_root["spellReady" + i].removeMovieClip();
_root.spellslots[i] = false;
i++;
}
_root.experiencebar._y = 2000;
_root.topshade._y = 2000;
_root.bottomshade._y = 2000;
_root.gamemode = 2;
_root.clearunits();
_root._quality = "HIGH";
_root.cleararea();
_root.tiles.swapDepths(501);
_root.tiles.removeMovieClip();
_root.gotoAndStop(2);
_parent.removeMovieClip();
}
Instance of Symbol 3681 MovieClip [small_button] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
if (_global.GOLD >= 500) {
_global.GOLD = _global.GOLD - 500;
_parent.gold_txt = _global.GOLD;
_root.poisonarrow_qty = _root.poisonarrow_qty + 100;
_parent.poison_qty_txt = _root.poisonarrow_qty;
} else {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = "You don't have enough money.\rYou need 50 gold pieces to buy 10x Poison Tip Arrows. +50% Bonus Damage";
}
}
on (rollOver) {
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = "Poison Tip Arrows x100.";
_parent.abilitybox.ability_txt.text = "Price: 500 gp for 100 Arrows\rPoison Arrows slow enemy units down and also cause on-going poison damage for a limited time.";
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3681 MovieClip [small_button] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
if (_global.GOLD >= 50) {
_global.GOLD = _global.GOLD - 50;
_parent.gold_txt = _global.GOLD;
_root.poisonarrow_qty = _root.poisonarrow_qty + 10;
_parent.poison_qty_txt = _root.poisonarrow_qty;
} else {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = "You don't have enough money.\rYou need 50 gold pieces to buy 10x Poison Tip Arrows. +50% Bonus Damage";
}
}
on (rollOver) {
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = "Poison Tip Arrows x10.";
_parent.abilitybox.ability_txt.text = "Price: 50 gp for 10 Arrows\rPoison Arrows slow enemy units down and also cause on-going poison damage for a limited time.";
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3681 MovieClip [small_button] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
if (_global.GOLD >= 750) {
_global.GOLD = _global.GOLD - 750;
_parent.gold_txt = _global.GOLD;
_root.firearrow_qty = _root.firearrow_qty + 100;
_parent.fire_qty_txt = _root.firearrow_qty;
} else {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = "You don't have enough money.\rYou need 75 gold pieces to buy 10x Fire Tip Arrows.";
}
}
on (rollOver) {
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = "Fire Tip Arrows x100.";
_parent.abilitybox.ability_txt.text = "Price: 750 gp for 100 Arrows\rFire Arrows blast the enemies backwards causing bonus damage of between 50-150% and stunning them for a short time.";
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3681 MovieClip [small_button] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
if (_global.GOLD >= 75) {
_global.GOLD = _global.GOLD - 75;
_parent.gold_txt = _global.GOLD;
_root.firearrow_qty = _root.firearrow_qty + 10;
_parent.fire_qty_txt = _root.firearrow_qty;
} else {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = "You don't have enough money.\rYou need 75 gold pieces to buy 10x Fire Tip Arrows.";
}
}
on (rollOver) {
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = "Fire Tip Arrows x10.";
_parent.abilitybox.ability_txt.text = "Price: 75 gp for 10 Arrows\rFire Arrows blast the enemies backwards causing bonus damage of between 50-150% and stunning them for a short time.";
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3681 MovieClip [small_button] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
if (_global.GOLD >= 1000) {
_global.GOLD = _global.GOLD - 1000;
_parent.gold_txt = _global.GOLD;
_root.icearrow_qty = _root.icearrow_qty + 100;
_parent.ice_qty_txt = _root.icearrow_qty;
} else {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = "You don't have enough money.\rYou need 50 gold pieces to buy 10x ice Tip Arrows.";
}
}
on (rollOver) {
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = "Ice Tip Arrows x100.";
_parent.abilitybox.ability_txt.text = "Price: 1000 gp for 100 Arrows\rIce Arrows initially freezes enemy units for a period and then as they defrost they are still slow. +100 Bonus Damage";
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 3681 MovieClip [small_button] in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
if (_global.GOLD >= 100) {
_global.GOLD = _global.GOLD - 100;
_parent.gold_txt = _global.GOLD;
_root.icearrow_qty = _root.icearrow_qty + 10;
_parent.ice_qty_txt = _root.icearrow_qty;
} else {
_parent.abilitybox._y = 1200;
_parent.confirmation._x = 250;
_parent.confirmation._y = 200;
_parent.confirmation.gotoAndStop(2);
_parent.confirmation.ability_txt.text = "You don't have enough money.\rYou need 50 gold pieces to buy 10x ice Tip Arrows.";
}
}
on (rollOver) {
_parent.abilitybox._x = 235;
_parent.abilitybox._y = 200;
_parent.abilitybox.ability_header.text = "Ice Tip Arrows x10.";
_parent.abilitybox.ability_txt.text = "Price: 100 gp for 10 Arrows\rIce Arrows initially freezes enemy units for a period and then as they defrost they are still slow. +100 Bonus Damage";
}
on (rollOut) {
_parent.abilitybox._y = 1000;
}
Instance of Symbol 484 MovieClip in Symbol 3700 MovieClip [shop] Frame 1
on (release) {
getURL ("http://www.goblinarena.com", blank);
}
Instance of Symbol 490 MovieClip [goblin_arena_games_logo] in Symbol 3700 MovieClip [shop] Frame 1
on (press) {
getURL ("http://www.goblinarena.com", blank);
}
Instance of Symbol 498 MovieClip [ArmorGames_logo] "armorgames_logo" in Symbol 3700 MovieClip [shop] Frame 1
on (press) {
getURL ("http://armor.ag/MoreGames", blank);
}
Symbol 3700 MovieClip [shop] Frame 2
if (_root.levels_complete[3]) {
mallowwood.gotoAndStop(3);
paths.gotoAndStop(2);
if (_root.levels_complete[6]) {
aelwynne.gotoAndStop(3);
paths.gotoAndStop(3);
if (_root.levels_complete[9]) {
ironriver.gotoAndStop(3);
paths.gotoAndStop(4);
if (_root.levels_complete[12]) {
esterfall.gotoAndStop(3);
paths.gotoAndStop(5);
if (_root.levels_complete[15]) {
woodgriffin.gotoAndStop(3);
paths.gotoAndStop(6);
if (_root.levels_complete[18]) {
northmount.gotoAndStop(3);
} else {
northmount.gotoAndStop(2);
}
} else {
woodgriffin.gotoAndStop(2);
}
} else {
esterfall.gotoAndStop(2);
}
} else {
ironriver.gotoAndStop(2);
}
} else {
aelwynne.gotoAndStop(2);
}
} else {
mallowwood.gotoAndStop(2);
}
Instance of Symbol 3389 MovieClip [fightbutton] "gofight" in Symbol 3700 MovieClip [shop] Frame 2
on (release) {
_root.cityselected = int(_root.clevel / 3) + 1;
_root.partselected = _root.clevel % 3;
_root.nextlevel();
}
Instance of Symbol 3690 MovieClip [mappoint] "mallowwood" in Symbol 3700 MovieClip [shop] Frame 2
on (rollOver) {
_root.cityselected = 1;
_parent.select_part._x = this._x - 40;
_parent.select_part._y = this._y - 30;
_parent.select_part.city_txt = "Mallow Wood";
if (_root.levels_complete[1]) {
_parent.select_part.part1_txt = "Part 1 - Complete";
if (_root.levels_complete[2]) {
_parent.select_part.part2_txt = "Part 2 - Complete";
if (_root.levels_complete[3]) {
_parent.select_part.part3_txt = "Part 3 - Complete";
} else {
_parent.select_part.part3_txt = "Part 3 - Ready";
}
} else {
_parent.select_part.part2_txt = "Part 2 - Ready";
}
} else {
_parent.select_part.part1_txt = "Part 1 - Ready";
_parent.select_part.part2_txt = "Part 2 - Locked";
_parent.select_part.part3_txt = "Part 3 - Locked";
}
}
Instance of Symbol 3690 MovieClip [mappoint] "aelwynne" in Symbol 3700 MovieClip [shop] Frame 2
on (rollOver) {
_root.cityselected = 2;
_parent.select_part._x = this._x - 40;
_parent.select_part._y = this._y - 30;
_parent.select_part.city_txt = "Aelwynne";
if (_root.levels_complete[4]) {
_parent.select_part.part1_txt = "Part 1 - Complete";
if (_root.levels_complete[5]) {
_parent.select_part.part2_txt = "Part 2 - Complete";
if (_root.levels_complete[6]) {
_parent.select_part.part3_txt = "Part 3 - Complete";
} else {
_parent.select_part.part3_txt = "Part 3 - Ready";
}
} else {
_parent.select_part.part2_txt = "Part 2 - Ready";
}
} else {
_parent.select_part.part1_txt = "Part 1 - Ready";
_parent.select_part.part2_txt = "Part 2 - Locked";
_parent.select_part.part3_txt = "Part 3 - Locked";
}
}
Instance of Symbol 3690 MovieClip [mappoint] "ironriver" in Symbol 3700 MovieClip [shop] Frame 2
on (rollOver) {
_root.cityselected = 3;
_parent.select_part._x = this._x - 40;
_parent.select_part._y = this._y - 30;
_parent.select_part.city_txt = "Iron River";
if (_root.levels_complete[7]) {
_parent.select_part.part1_txt = "Part 1 - Complete";
if (_root.levels_complete[8]) {
_parent.select_part.part2_txt = "Part 2 - Complete";
if (_root.levels_complete[9]) {
_parent.select_part.part3_txt = "Part 3 - Complete";
} else {
_parent.select_part.part3_txt = "Part 3 - Ready";
}
} else {
_parent.select_part.part2_txt = "Part 2 - Ready";
}
} else {
_parent.select_part.part1_txt = "Part 1 - Ready";
_parent.select_part.part2_txt = "Part 2 - Locked";
_parent.select_part.part3_txt = "Part 3 - Locked";
}
}
Instance of Symbol 3690 MovieClip [mappoint] "esterfall" in Symbol 3700 MovieClip [shop] Frame 2
on (rollOver) {
_root.cityselected = 4;
_parent.select_part._x = this._x - 40;
_parent.select_part._y = this._y - 30;
_parent.select_part.city_txt = "Esterfall";
if (_root.levels_complete[10]) {
_parent.select_part.part1_txt = "Part 1 - Complete";
if (_root.levels_complete[11]) {
_parent.select_part.part2_txt = "Part 2 - Complete";
if (_root.levels_complete[12]) {
_parent.select_part.part3_txt = "Part 3 - Complete";
} else {
_parent.select_part.part3_txt = "Part 3 - Ready";
}
} else {
_parent.select_part.part2_txt = "Part 2 - Ready";
}
} else {
_parent.select_part.part1_txt = "Part 1 - Ready";
_parent.select_part.part2_txt = "Part 2 - Locked";
_parent.select_part.part3_txt = "Part 3 - Locked";
}
}
Instance of Symbol 3690 MovieClip [mappoint] "woodgriffin" in Symbol 3700 MovieClip [shop] Frame 2
on (rollOver) {
_root.cityselected = 5;
_parent.select_part._x = this._x - 40;
_parent.select_part._y = this._y - 30;
_parent.select_part.city_txt = "Woodgriffin";
if (_root.levels_complete[13]) {
_parent.select_part.part1_txt = "Part 1 - Complete";
if (_root.levels_complete[14]) {
_parent.select_part.part2_txt = "Part 2 - Complete";
if (_root.levels_complete[15]) {
_parent.select_part.part3_txt = "Part 3 - Complete";
} else {
_parent.select_part.part3_txt = "Part 3 - Ready";
}
} else {
_parent.select_part.part2_txt = "Part 2 - Ready";
}
} else {
_parent.select_part.part1_txt = "Part 1 - Ready";
_parent.select_part.part2_txt = "Part 2 - Locked";
_parent.select_part.part3_txt = "Part 3 - Locked";
}
}
Instance of Symbol 3690 MovieClip [mappoint] "northmount" in Symbol 3700 MovieClip [shop] Frame 2
on (rollOver) {
_root.cityselected = 6;
_parent.select_part._x = this._x - 40;
_parent.select_part._y = this._y - 30;
_parent.select_part.city_txt = "Northmount";
if (_root.levels_complete[16]) {
_parent.select_part.part1_txt = "Part 1 - Complete";
if (_root.levels_complete[17]) {
_parent.select_part.part2_txt = "Part 2 - Complete";
if (_root.levels_complete[18]) {
_parent.select_part.part3_txt = "Part 3 - Complete";
} else {
_parent.select_part.part3_txt = "Part 3 - Ready";
}
} else {
_parent.select_part.part2_txt = "Part 2 - Ready";
}
} else {
_parent.select_part.part1_txt = "Part 1 - Ready";
_parent.select_part.part2_txt = "Part 2 - Locked";
_parent.select_part.part3_txt = "Part 3 - Locked";
}
}
Instance of Symbol 3659 MovieClip [main_menu_button] in Symbol 3700 MovieClip [shop] Frame 2
on (release) {
_root.savegame(_root.current_slot);
_root.clearInterval(_root.intervalID);
clearInterval(_root.intervalID);
_root.iconspace1 = 0;
_root.iconspace2 = 0;
_root.iconspace3 = 0;
_root.iconspace4 = 0;
_root.attributes_button.swapDepths(501);
_root.attributes_button.removeMovieClip();
_root.new_creature.swapDepths(501);
_root.new_creature.removeMovieClip();
_root.new_skill.swapDepths(501);
_root.new_skill.removeMovieClip();
_root.new_icon1.swapDepths(501);
_root.new_icon1.removeMovieClip();
_root.new_icon2.swapDepths(501);
_root.new_icon2.removeMovieClip();
_root.new_icon3.swapDepths(501);
_root.new_icon3.removeMovieClip();
_root.new_icon4.swapDepths(501);
_root.new_icon4.removeMovieClip();
_root.new_icon5.swapDepths(501);
_root.new_icon5.removeMovieClip();
_root.levelup_icon = 0;
var i = 0;
while (i < 5) {
_root["spellReady" + i].swapDepths(501);
_root["spellReady" + i].removeMovieClip();
_root.spellslots[i] = false;
i++;
}
_root.experiencebar._y = 2000;
_root.topshade._y = 2000;
_root.bottomshade._y = 2000;
_root.gamemode = 2;
_root.clearunits();
_root._quality = "HIGH";
_root.cleararea();
_root.tiles.swapDepths(501);
_root.tiles.removeMovieClip();
_root.gotoAndStop(2);
_parent.removeMovieClip();
}
Symbol 3863 MovieClip [buff_blue] Frame 40
stop();
this.swapDepths(501);
this.removeMovieClip();
Symbol 3864 MovieClip [buff_yellow] Frame 40
stop();
this.swapDepths(501);
this.removeMovieClip();