Frame 1
MochiAd.showPreGameAd({id:"9f06e6129e52cc4a", res:"700x300"});
Frame 7
MochiAd.showInterLevelAd({id:"9f06e6129e52cc4a", res:"700x300"});
Frame 8
gotoAndStop ("start");
Instance of Symbol 469 MovieClip in Frame 8
onClipEvent (enterFrame) {
gotoAndStop ("start");
}
Frame 9
stop();
_global.muteall = false;
_global.core = this;
_global.make_sound = function (mc_name, depth, tvolume, tname) {
var _local2 = _global.core.createEmptyMovieClip(mc_name, depth);
var snd = new Sound(_local2);
snd.setVolume(tvolume);
snd.attachSound(tname);
snd.onSoundComplete = function () {
snd.start();
};
return(snd);
};
_global.m_paradisetitle = _global.make_sound("m_paradisetitle", 200, 100, "paradise_title");
_global.m_paradisetraining = _global.make_sound("m_paradisetraining", 201, 100, "paradise_training");
_global.m_the_great_collision = _global.make_sound("m_the_great_collision", 202, 100, "the_great_collision");
_global.calchpmp = function () {
_global.hP = (100 + (_global.level * 5)) + (_global.vitality * 7);
_global.mP = (50 + (_global.level * 3)) + (_global.magic * 5);
_global.chP = _global.hP;
_global.cmP = _global.mP;
_global.defense = Math.floor(_global.speed / 3) + _global.defensearmor;
_global.range = Math.floor(_global.speed / 1.5);
};
_global.questidian = 0;
_global.uppressed = false;
_global.GF = new generalfunctions();
_global.pausemove = false;
_global.clickedbutton = false;
_global.save_x = 50;
_global.gold = 10;
_global.level = 1;
_global.xp = 0;
_global.strength = 0;
_global.vitality = 0;
_global.magic = 0;
_global.speed = 0;
_global.monsteralive = true;
_global.damage_bonus = 0;
_global.defense = 0;
_global.defensearmor = 0;
_global.range = 0;
_global.save1 = SharedObject.getLocal("save_profile1");
_global.save2 = SharedObject.getLocal("save_profile2");
_global.save3 = SharedObject.getLocal("save_profile3");
_global.chestArray = Array(20);
_global.magicArray = Array(24);
_global.invArray = Array(20);
_global.shopArray = Array(24);
_global.equipArray = {range:"none", weapon:"none", shield:"none", boots:"none", ring:"none", ring2:"none", armor:"none", helmet:"none"};
_global.itemdataArray = {none:{desc:"none", itype:"none", damagetext:"1-3", damagelow:1, damagemax:3, defense:0, effect:"none", bonus:0}, dagger:{desc:"Small Throwing Dagger", itype:"range", damagetext:"3-5", damagelow:3, damagemax:5, defense:0, effect:"Small Throwing Dagger", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:50, sell:5}, bow:{desc:"Short Bow", itype:"range", damagetext:"3-6", damagelow:3, damagemax:6, defense:0, effect:"Short Bow", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:50, sell:5}, staff:{desc:"Wood Staff", itype:"weapon", damagetext:"3-5", damagelow:3, damagemax:5, defense:0, effect:"Wood Staff", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:50, sell:5}, ssword:{desc:"Short Sword", itype:"weapon", damagetext:"5-10", damagelow:5, damagemax:10, defense:0, effect:"Normal Sword", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:100, sell:15}, deathsword:{desc:"Death Sword", itype:"weapon", damagetext:"10-15", damagelow:10, damagemax:15, defense:0, effect:"Deadly Sword +1", effectstat:"", effectbonus:0, bonus:1, lvlrequired:5, buy:300, sell:100}, clotharmor:{desc:"Cloth Armor", itype:"armor", damagetext:"none", damagelow:0, damagemax:0, defense:5, effect:"Armor +5", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:50, sell:15}, clothhelm:{desc:"Cloth Helm", itype:"helmet", damagetext:"none", damagelow:0, damagemax:0, defense:2, effect:"Armor +2", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:30, sell:10}, boots:{desc:"Cloth Boots", itype:"boots", damagetext:"none", damagelow:0, damagemax:0, defense:1, effect:"Armor +1", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:20, sell:8}, robe:{desc:"Cloth Robe", itype:"armor", damagetext:"none", damagelow:0, damagemax:0, defense:3, effect:"Armor +3", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:40, sell:15}, shield:{desc:"Wood Shield", itype:"shield", damagetext:"none", damagelow:0, damagemax:0, defense:3, effect:"Armor +3", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:50, sell:15}, strengthring:{desc:"Ring of Strength", itype:"ring", damagetext:"none", damagelow:0, damagemax:0, defense:0, effect:"Strength +1", effectstat:"strength", effectbonus:1, bonus:0, lvlrequired:1, buy:1000, sell:200}, strengthring2:{desc:"Master Ring of Strength", itype:"ring", damagetext:"none", damagelow:0, damagemax:0, defense:0, effect:"Strength +5", effectstat:"strength", effectbonus:5, bonus:0, lvlrequired:5, buy:5000, sell:1500}, vitalityring:{desc:"Ring of Health", itype:"ring", damagetext:"none", damagelow:0, damagemax:0, defense:0, effect:"Vitality +1", effectstat:"vitality", effectbonus:1, bonus:0, lvlrequired:1, buy:1500, sell:250}, chest1key:{desc:"Chest Key", itype:"key", damagetext:"none", damagelow:0, damagemax:0, defense:0, effect:"", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:1500, sell:0}, crabmeat:{desc:"Crab Meat", itype:"quest", damagetext:"none", damagelow:0, damagemax:0, defense:0, effect:"", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:1500, sell:0}, other:{desc:"other", itype:"none"}};
_global.magicdataArray = {none:{desc:"none", spelltype:"", cclass:"all", element:"", mana:0, damagetext:"", damagelow:0, damagemax:0, effect:"", effectstat:"", effectbonus:0, bonus:0, lvlrequired:0, buy:0}, flameball1:{desc:"Flameball Lvl 1", spelltype:"flameball", cclass:"mage,warlock,priest", element:"fire", mana:20, damagetext:"5-10", damagelow:5, damagemax:10, effect:"Shoot ball of Flame", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:100}, flameball2:{desc:"Flameball Lvl 2", spelltype:"flameball", cclass:"mage,warlock", element:"fire", mana:30, damagetext:"10-15", damagelow:10, damagemax:15, effect:"Shoot ball of Flame", effectstat:"", effectbonus:0, bonus:0, lvlrequired:5, buy:1000}, iceball1:{desc:"Iceball Lvl 1", spelltype:"iceball", cclass:"mage,warlock", element:"water", mana:25, damagetext:"6-12", damagelow:6, damagemax:12, effect:"Shoot ball of Ice", effectstat:"", effectbonus:0, bonus:0, lvlrequired:1, buy:100}, iceball2:{desc:"Iceball Lvl 2", spelltype:"iceball", cclass:"mage,warlock", element:"water", mana:30, damagetext:"10-15", damagelow:10, damagemax:15, effect:"Shoot ball of Ice", effectstat:"", effectbonus:0, bonus:0, lvlrequired:5, buy:1000}, heal1:{desc:"Heal Level 1", spelltype:"defense", cclass:"priest,rogue,mage,warlock", element:"water", mana:30, damagetext:"0", damagelow:0, damagemax:0, effect:"Heals 50 hp", effectstat:"chP", effectbonus:50, bonus:0, lvlrequired:1, buy:150}, heal2:{desc:"Heal Level 2", spelltype:"defense", cclass:"priest", element:"water", mana:50, damagetext:"0", damagelow:0, damagemax:0, effect:"Heals 150 hp", effectstat:"chP", effectbonus:150, bonus:0, lvlrequired:5, buy:1500}, bless:{desc:"Bless", spelltype:"defense", cclass:"priest", element:"water", mana:30, damagetext:"0", damagelow:0, damagemax:0, effect:"Bless", effectstat:"defense", effectbonus:10, bonus:0, lvlrequired:1, buy:100}, crush:{desc:"Crushing Blow", spelltype:"attack", cclass:"warrior,warlock", element:"none", mana:40, damagetext:"5-10+10", damagelow:5, damagemax:10, effect:"Adds 5-10 + 10 damage to attack", effectstat:"", effectbonus:0, bonus:10, lvlrequired:1, buy:1}, sneak:{desc:"Sneak Attack", spelltype:"attack", cclass:"rogue", element:"none", mana:60, damagetext:"5-10+20", damagelow:5, damagemax:10, effect:"Adds 5-10 + 20 damage to attack", effectstat:"", effectbonus:0, bonus:20, lvlrequired:1, buy:1}, endofarray:{desc:"end of array"}};
_global.calchpmp();
i = 0;
while (i <= 20) {
_global.invArray[i] = "none";
_global.skillsArray[i] = "none";
_global.chestArray[i] = 0;
i++;
}
i = 0;
while (i <= 24) {
_global.magicArray[i] = "none";
_global.shopArray[i] = "none";
i++;
}
_global.m_paradisetitle.start();
Instance of Symbol 508 MovieClip in Frame 9
onClipEvent (load) {
if (((_global.save1.data.level != undefined) or (_global.save2.data.level != undefined)) or (_global.save3.data.level != undefined)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 16
function setwaiting(torf) {
_global.waiting = torf;
}
stop();
_global.m_paradisetraining.stop();
_global.m_the_great_collision.start();
Instance of Symbol 696 MovieClip "monsters" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_global.monstertype);
}
onClipEvent (enterFrame) {
if (_global.mon_chP < 1) {
this.gotoAndStop(_global.monstertype + "_die");
}
if (_global.chP < 1) {
_global.setmonstat = 0;
_global.monsteralive = true;
_root.gotoAndStop("end");
}
if (_global.waiting) {
if (_global.mon_chP < 1) {
_global.setmonstat = 0;
_global.monsteralive = false;
_root.gotoAndStop("combatdone");
}
this.gotoAndStop(_global.monstertype + "_attack");
}
}
Instance of Symbol 703 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_global.waiting) {
this.gotoAndStop(1);
} else if (_global.clickedbutton) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 708 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_global.waiting) {
this.gotoAndStop(1);
} else if (_global.clickedbutton) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 713 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_global.waiting) {
this.gotoAndStop(1);
} else if (_global.clickedbutton) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 718 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_global.waiting) {
this.gotoAndStop(1);
} else if (_global.clickedbutton) {
this.gotoAndStop(1);
} else if (_global.equipArray.range != "none") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 738 MovieClip "man" in Frame 16
/* no clip actions */
Instance of Symbol 742 MovieClip "health" in Frame 16
onClipEvent (enterFrame) {
if (_global.mon_chP > 0) {
this._xscale = 200 - (2 * (100 * ((_global.mon_hP - _global.mon_chP) / _global.mon_hP)));
_root.mon_hptext.text = (("HP: " + _global.mon_chP) + " / ") + _global.mon_hP;
} else {
this._xscale = 0;
_root.mon_hptext.text = "HP: 0 / " + _global.mon_hP;
}
}
Instance of Symbol 744 MovieClip "magic" in Frame 16
onClipEvent (enterFrame) {
if (_global.mon_cmP > 0) {
this._xscale = 200 - (2 * (100 * ((_global.mon_mP - _global.mon_cmP) / _global.mon_mP)));
_root.mon_mptext.text = (("MP: " + _global.mon_cmP) + " / ") + _global.mon_mP;
} else {
this._xscale = 0;
_root.mon_mptext.text = "MP: 0 / " + _global.mon_mP;
}
}
Instance of Symbol 771 MovieClip in Frame 17
onClipEvent (load) {
_global.waiting = false;
_root.attachMovie("loot", "loot", _root.getNextHighestDepth(), {_x:180, _y:60});
clevel = _global.level;
_global.xp = _global.xp + _global.mon_xp;
cxp = _global.xp;
gainedxp = _global.mon_xp;
statpoints = _global.points;
goldfound = _global.monster_gold;
_global.gold = _global.gold + _global.monster_gold;
chklvl = GF.CheckLevelUP(_global.level, _global.xp);
if (chklvl) {
clevel = _global.level;
statpoints = _global.points;
var sfx = new Sound();
sfx.attachSound("levelupsound");
sfx.start(0, 1);
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:440, _y:210});
_root.popup.popuptext.text = "You have Gained a Level!";
}
}
Frame 19
stop();
_global.m_paradisetitle.start();
_global.m_paradisetraining.stop();
_global.m_the_great_collision.stop();
Instance of Symbol 738 MovieClip "man" in Frame 19
onClipEvent (load) {
this._x = _global.save_x;
this.gotoAndStop("dead");
}
Frame 20
stop();
_global.m_paradisetitle.stop();
_global.m_paradisetraining.start();
_global.m_the_great_collision.stop();
Frame 21
stop();
_global.currentlevel = "room1";
Instance of Symbol 788 MovieClip "chest_mc" in Frame 21
onClipEvent (load) {
_global.currentchest = 0;
if (_global.chestArray[_global.currentchest] == 1) {
this.gotoAndStop(2);
_global.canopenchest = false;
} else {
_global.canopenchest = true;
i = 1;
while (i <= 24) {
_global.shopArray[i] = "none";
i++;
}
_global.shopArray[1] = "boots";
_global.shopArray[2] = "clothhelm";
}
}
Instance of Symbol 790 MovieClip "room2" in Frame 21
onClipEvent (load) {
_global.nextroom2 = "room2";
}
Instance of Symbol 738 MovieClip "man" in Frame 21
onClipEvent (load) {
speed = 12;
this._x = _global.save_x;
}
onClipEvent (enterFrame) {
if (!_global.pausemove) {
_root.man;
if (hitTest(_root.monster)) {
_global.save_x = this._x;
_root.gotoAndStop("combat");
}
if (Key.isDown(37) && (!Key.isDown(39))) {
if ((this._x - speed) > 10) {
this._x = this._x - speed;
}
this._xscale = -100;
_root.man;
if (hitTest(_root.room1)) {
_global.save_x = 620;
_global.monsteralive = true;
this._x = _global.save_x;
_root.gotoAndPlay(_global.nextroom1);
}
} else if (Key.isDown(39) && (!Key.isDown(37))) {
if ((this._x + speed) < (Stage.width - 10)) {
this._x = this._x + speed;
}
this._xscale = 100;
_root.man;
if (hitTest(_root.room2)) {
_global.save_x = 35;
_global.monsteralive = true;
this._x = _global.save_x;
_root.gotoAndPlay(_global.nextroom2);
}
}
if (Key.isDown(38)) {
_root.man;
if (hitTest(_root.enterbuilding)) {
_global.save_x = this._x;
_root.gotoAndPlay(_global.building);
} else {
_root.man;
if (hitTest(_root.interactnpc)) {
_global.pausemove = true;
_global.uppressed = true;
} else {
_root.man;
if (hitTest(_root.interactnpcshop)) {
_root.inventory.removeMovieClip();
_root.shop.removeMovieClip();
_global.pausemove = true;
_root.attachMovie("inventory", "inventory", _root.getNextHighestDepth(), {_x:450, _y:40});
_root.attachMovie("shop", "shop", _root.getNextHighestDepth(), {_x:180, _y:60});
} else {
_root.man;
if (hitTest(_root.interactnpcmagicshop)) {
_root.magicshop.removeMovieClip();
_global.pausemove = true;
_root.attachMovie("magicshop", "magicshop", _root.getNextHighestDepth(), {_x:180, _y:60});
} else {
_root.man;
if (hitTest(_root.chest_mc)) {
if (_global.canopenchest) {
_global.canopenchest = false;
_root.chest_mc.gotoAndStop(2);
_global.chestArray[_global.currentchest] = 1;
_global.pausemove = true;
_root.attachMovie("inventory", "inventory", _root.getNextHighestDepth(), {_x:450, _y:40});
_root.attachMovie("loot", "loot", _root.getNextHighestDepth(), {_x:180, _y:60});
}
} else {
_root.man;
if (hitTest(_root.signpost)) {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:180, _y:60});
_root.popup.popuptext.text = _global.signposttext;
}
}
}
}
}
}
} else if (Key.isDown(40)) {
_root.man;
if (hitTest(_root.leavebuilding)) {
_global.save_x = this._x;
_root.gotoAndStop(_global.currentlevel);
}
}
if (Key.isDown(75)) {
}
}
}
onClipEvent (keyDown) {
if (!_global.pausemove) {
if (Key.isDown(37) && (!Key.isDown(39))) {
gotoAndStop ("walk");
} else if (Key.isDown(39) && (!Key.isDown(37))) {
gotoAndStop ("walk");
}
}
}
onClipEvent (keyUp) {
gotoAndStop ("stand");
speed = 12;
}
Instance of Symbol 749 MovieClip "healthbar" in Frame 21
onClipEvent (enterFrame) {
if (_global.chP != _global.hP) {
_global.chP = _global.chP + 1;
if (_global.cmP != _global.mP) {
_global.cmP = _global.cmP + 1;
}
} else if (_global.cmP != _global.mP) {
_global.cmP = _global.cmP + 1;
}
if (_global.chP < 1) {
_global.save_x = this._x;
_root.gotoAndStop("end");
}
}
Frame 26
stop();
_global.currentlevel = "room2";
Instance of Symbol 820 MovieClip "monster" in Frame 26
onClipEvent (load) {
if (_global.monsteralive) {
_global.monstertype = "crab";
_global.monster_gold = 10;
_global.monsterlevel = _global.level;
_global.mon_hP = 50 + (_global.monsterlevel * 5);
_global.mon_mP = 50 + (_global.monsterlevel * 3);
_global.monster_speed = 10;
_global.monster_defense = 2 * _global.monsterlevel;
_global.monster_magic_defense = 2 * _global.monsterlevel;
_global.monster_damage_low = 5;
_global.monster_damage_high = 8;
_global.monster_strength = 6 + _global.monsterlevel;
_global.mon_xp = _global.monsterlevel * (100 * _global.monsterlevel);
_global.mon_chP = _global.mon_hP;
_global.mon_cmP = _global.mon_mP;
tempvar = Math.random() * 100;
if (tempvar > 30) {
i = 1;
while (i <= 24) {
_global.shopArray[i] = "none";
i++;
}
_global.shopArray[1] = "crabmeat";
}
this._y = 179;
}
}
Instance of Symbol 790 MovieClip "room2" in Frame 26
onClipEvent (load) {
_global.nextroom2 = "room3";
}
Instance of Symbol 790 MovieClip "room1" in Frame 26
onClipEvent (load) {
_global.nextroom1 = "room1";
}
Frame 27
stop();
_global.currentlevel = "room3";
Instance of Symbol 620 MovieClip "monster" in Frame 27
onClipEvent (load) {
if (_global.monsteralive) {
_global.monstertype = "crab";
_global.monster_gold = 10;
_global.monsterlevel = _global.level;
_global.mon_hP = 50 + (_global.monsterlevel * 5);
_global.mon_mP = 50 + (_global.monsterlevel * 3);
_global.monster_speed = 10;
_global.monster_defense = 2 * _global.monsterlevel;
_global.monster_magic_defense = 2 * _global.monsterlevel;
_global.monster_damage_low = 5;
_global.monster_damage_high = 8;
_global.monster_strength = 6 + _global.monsterlevel;
_global.mon_xp = _global.monsterlevel * (100 * _global.monsterlevel);
_global.mon_chP = _global.mon_hP;
_global.mon_cmP = _global.mon_mP;
tempvar = Math.random() * 100;
i = 1;
while (i <= 24) {
_global.shopArray[i] = "none";
i++;
}
if (tempvar > 30) {
_global.shopArray[1] = "crabmeat";
}
this._y = 179;
}
}
Instance of Symbol 790 MovieClip "room2" in Frame 27
onClipEvent (load) {
_global.nextroom2 = "room4";
}
Instance of Symbol 790 MovieClip "room1" in Frame 27
onClipEvent (load) {
_global.nextroom1 = "room2";
}
Frame 28
stop();
_global.currentlevel = "room4";
Instance of Symbol 833 MovieClip "monster" in Frame 28
onClipEvent (load) {
if (_global.monsteralive) {
_global.monstertype = "crab";
_global.monster_gold = 10;
_global.monsterlevel = _global.level;
_global.mon_hP = 50 + (_global.monsterlevel * 5);
_global.mon_mP = 50 + (_global.monsterlevel * 3);
_global.monster_speed = 10;
_global.monster_defense = 2 * _global.monsterlevel;
_global.monster_magic_defense = 2 * _global.monsterlevel;
_global.monster_damage_low = 5;
_global.monster_damage_high = 8;
_global.monster_strength = 6 + _global.monsterlevel;
_global.mon_xp = _global.monsterlevel * (100 * _global.monsterlevel);
_global.mon_chP = _global.mon_hP;
_global.mon_cmP = _global.mon_mP;
tempvar = Math.random() * 100;
if (tempvar > 30) {
i = 1;
while (i <= 24) {
_global.shopArray[i] = "none";
i++;
}
_global.shopArray[1] = "crabmeat";
}
this._y = 179;
}
}
Instance of Symbol 790 MovieClip "room2" in Frame 28
onClipEvent (load) {
_global.nextroom2 = "town1";
}
Instance of Symbol 790 MovieClip "room1" in Frame 28
onClipEvent (load) {
_global.nextroom1 = "room3";
}
Frame 33
stop();
_global.currentlevel = "town1";
Instance of Symbol 835 MovieClip "signpost" in Frame 33
onClipEvent (load) {
_global.signposttext = "Welcome Town of Sorilia";
}
Instance of Symbol 837 MovieClip "interactnpc" in Frame 33
onClipEvent (load) {
_global.npcname = "Idian";
_global.npctext = "Please don't bother me right now.";
}
onClipEvent (enterFrame) {
_root.interactnpc;
if (hitTest(_root.man)) {
if (_global.uppressed) {
if (_global.questidian == "0") {
_global.npctext = "Hello, my name is Idian. I need your help finding ingredients for a potion im making. Please find me 6 pieces of Crab Meat and bring it to me. I will reward you greatly.";
_root.chat.removeMovieClip();
_root.attachMovie("chat", "chat", _root.getNextHighestDepth(), {_x:232, _y:195});
_root.chat.npcnametext.text = _global.npcname;
_root.chat.chattext.text = _global.npctext;
_global.questidian = 2;
_global.uppressed = false;
} else if (_global.questidian == "1") {
_global.npctext = "Thanks again for your help.";
_root.chat.removeMovieClip();
_root.attachMovie("chat", "chat", _root.getNextHighestDepth(), {_x:232, _y:195});
_root.chat.npcnametext.text = _global.npcname;
_root.chat.chattext.text = _global.npctext;
_global.uppressed = false;
} else {
var countitems = 0;
var i = 0;
while (i <= _global.invArray.length) {
if (_global.invArray[i] == "crabmeat") {
countitems = countitems + 1;
}
i++;
}
if (countitems >= 6) {
_global.npctext = "Thank you soo much for the ingredients. I can finally finish my potions. Here is your reward.";
_root.chat.removeMovieClip();
_root.attachMovie("chat", "chat", _root.getNextHighestDepth(), {_x:232, _y:195});
_root.chat.npcnametext.text = _global.npcname;
_root.chat.chattext.text = _global.npctext;
_global.GF.removeinventoryitemsquest("crabmeat", 6);
_global.questidian = 1;
_global.xp = _global.xp + 500;
_global.gold = _global.gold + 100;
chklvl = _global.GF.CheckLevelUP(_global.level, _global.xp);
if (chklvl) {
clevel = _global.level;
statpoints = _global.points;
var sfx = new Sound();
sfx.attachSound("levelupsound");
sfx.start(0, 1);
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:440, _y:210});
_root.popup.popuptext.text = "You have gained 500 XP and 100 gold. You have Gained a Level!";
} else {
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:485, _y:153});
_root.popup.popuptext.text = "You have gained 500 XP and 100 gold.";
}
_global.uppressed = false;
} else {
_global.npctext = "Hello, my name is Idian. I need your help finding ingredients for a potion im making. Please find me 6 pieces of Crab Meat and bring it to me. I will reward you greatly.";
_root.chat.removeMovieClip();
_root.attachMovie("chat", "chat", _root.getNextHighestDepth(), {_x:232, _y:195});
_root.chat.npcnametext.text = _global.npcname;
_root.chat.chattext.text = _global.npctext;
_global.uppressed = false;
}
}
}
}
}
Instance of Symbol 790 MovieClip "room2" in Frame 33
onClipEvent (load) {
_global.nextroom2 = "town2";
}
Instance of Symbol 790 MovieClip "room1" in Frame 33
onClipEvent (load) {
_global.nextroom1 = "room4";
}
Frame 34
stop();
_global.currentlevel = "town2";
Instance of Symbol 790 MovieClip "enterbuilding" in Frame 34
onClipEvent (load) {
_global.building = "building1";
}
Instance of Symbol 790 MovieClip "room2" in Frame 34
onClipEvent (load) {
_global.nextroom2 = "forest1";
}
Instance of Symbol 790 MovieClip "room1" in Frame 34
onClipEvent (load) {
_global.nextroom1 = "town1";
}
Frame 35
stop();
Instance of Symbol 790 MovieClip "leavebuilding" in Frame 35
onClipEvent (load) {
_global.building = "building1";
}
Instance of Symbol 790 MovieClip "interactnpcshop" in Frame 35
onClipEvent (enterFrame) {
_root.interactnpcshop;
if (hitTest(_root.man)) {
i = 1;
while (i <= 24) {
_global.shopArray[i] = "none";
i++;
}
_global.shopArray[1] = "dagger";
_global.shopArray[2] = "bow";
_global.shopArray[3] = "staff";
_global.shopArray[4] = "ssword";
_global.shopArray[5] = "deathsword";
_global.shopArray[6] = "clotharmor";
_global.shopArray[7] = "clothhelm";
_global.shopArray[8] = "boots";
_global.shopArray[9] = "robe";
_global.shopArray[10] = "shield";
_global.shopArray[11] = "strengthring";
_global.shopArray[12] = "strengthring2";
_global.shopArray[13] = "vitalityring";
}
}
Instance of Symbol 790 MovieClip "interactnpcmagicshop" in Frame 35
onClipEvent (enterFrame) {
_root.interactnpcmagicshop;
if (hitTest(_root.man)) {
i = 1;
while (i <= 24) {
_global.shopArray[i] = "none";
i++;
}
_global.shopArray[1] = "flameball1";
_global.shopArray[2] = "iceball1";
_global.shopArray[3] = "heal1";
_global.shopArray[4] = "crush";
_global.shopArray[5] = "sneak";
_global.shopArray[9] = "flameball2";
_global.shopArray[10] = "iceball2";
}
}
Frame 36
stop();
_global.currentlevel = "forest1";
Instance of Symbol 625 MovieClip "monster" in Frame 36
onClipEvent (load) {
if (_global.monsteralive) {
_global.monstertype = "wolf";
_global.monster_gold = 20;
_global.monsterlevel = _global.level + 1;
_global.mon_hP = 100 + (_global.monsterlevel * 5);
_global.mon_mP = 50 + (_global.monsterlevel * 3);
_global.monster_speed = 12;
_global.monster_defense = 3 * _global.monsterlevel;
_global.monster_magic_defense = 2 * _global.monsterlevel;
_global.monster_damage_low = 8;
_global.monster_damage_high = 10;
_global.monster_strength = 8;
_global.mon_xp = 150 * _global.monsterlevel;
_global.mon_chP = _global.mon_hP;
_global.mon_cmP = _global.mon_mP;
i = 1;
while (i <= 24) {
_global.shopArray[i] = "none";
i++;
}
tempvar = Math.random() * 100;
if (tempvar > 2) {
this._y = 250;
}
}
}
Instance of Symbol 790 MovieClip "room2" in Frame 36
onClipEvent (load) {
_global.nextroom2 = "forest2";
}
Instance of Symbol 790 MovieClip "room1" in Frame 36
onClipEvent (load) {
_global.nextroom1 = "town2";
}
Frame 37
stop();
_global.currentlevel = "forest2";
Instance of Symbol 855 MovieClip "monster" in Frame 37
onClipEvent (load) {
if (_global.monsteralive) {
_global.monstertype = "wolf";
_global.monster_gold = 50;
_global.monsterlevel = 10;
_global.mon_hP = 150 + (_global.monsterlevel * 5);
_global.mon_mP = 50 + (_global.monsterlevel * 3);
_global.monster_speed = 20;
_global.monster_defense = 2 * _global.monsterlevel;
_global.monster_magic_defense = 2 * _global.monsterlevel;
_global.monster_damage_low = 8;
_global.monster_damage_high = 10;
_global.monster_strength = 9 + _global.monsterlevel;
_global.mon_xp = _global.monsterlevel * (180 * _global.monsterlevel);
_global.mon_chP = _global.mon_hP;
_global.mon_cmP = _global.mon_mP;
i = 1;
while (i <= 24) {
_global.shopArray[i] = "none";
i++;
}
_global.shopArray[1] = "vitalityring";
tempvar = Math.random() * 100;
this._y = 250;
}
}
Instance of Symbol 790 MovieClip "room2" in Frame 37
onClipEvent (load) {
_global.nextroom2 = "forest3";
}
Instance of Symbol 790 MovieClip "room1" in Frame 37
onClipEvent (load) {
_global.nextroom1 = "forest1";
}
Symbol 6 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 856 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 857 MovieClip [__Packages.generalfunctions] Frame 0
class generalfunctions
{
function generalfunctions () {
}
function loadgamedata(savegamename) {
_quality = _global[savegamename].data.qual;
_global.level = _global[savegamename].data.level;
_global.cclass = _global[savegamename].data.cclass;
_global.xp = _global[savegamename].data.xp;
_global.strength = _global[savegamename].data.strength;
_global.vitality = _global[savegamename].data.vitality;
_global.magic = _global[savegamename].data.magic;
_global.speed = _global[savegamename].data.speed;
_global.points = _global[savegamename].data.points;
_global.defense = _global[savegamename].data.defense;
_global.range = _global[savegamename].data.range;
_global.gold = _global[savegamename].data.gold;
_global.damage_bonus = _global[savegamename].data.damage_bonus;
_global.defensearmor = _global[savegamename].data.defensearmor;
_global.invArray = _global[savegamename].data.invArray;
_global.equipArray = _global[savegamename].data.equipArray;
_global.magicArray = _global[savegamename].data.magicArray;
_global.monsteralive = _global[savegamename].data.monsteralive;
_global.chestArray = _global[savegamename].data.chestArray;
_global.questidian = _global[savegamename].data.questidian;
_global.calchpmp();
return(_global[savegamename].data.clocation);
}
function savegamedata(savegamename) {
_global[savegamename].data.qual = _quality;
_global[savegamename].data.level = _global.level;
_global[savegamename].data.cclass = _global.cclass;
_global[savegamename].data.xp = _global.xp;
_global[savegamename].data.strength = _global.strength;
_global[savegamename].data.vitality = _global.vitality;
_global[savegamename].data.magic = _global.magic;
_global[savegamename].data.speed = _global.speed;
_global[savegamename].data.points = _global.points;
_global[savegamename].data.defense = _global.defense;
_global[savegamename].data.range = _global.range;
_global[savegamename].data.gold = _global.gold;
_global[savegamename].data.damage_bonus = _global.damage_bonus;
_global[savegamename].data.defensearmor = _global.defensearmor;
_global[savegamename].data.invArray = _global.invArray;
_global[savegamename].data.equipArray = _global.equipArray;
_global[savegamename].data.magicArray = _global.magicArray;
_global[savegamename].data.monsteralive = _global.monsteralive;
_global[savegamename].data.questidian = _global.questidian;
if (_global.chestArray == undefined) {
_global.chestArray = Array(20);
var _local2 = 0;
while (_local2 <= 20) {
_global.chestArray[_local2] = 0;
_local2++;
}
}
_global[savegamename].data.chestArray = _global.chestArray;
_global[savegamename].data.clocation = _global.currentlevel;
if (_global[savegamename].data.level != undefined) {
return(true);
}
return(false);
}
function GetDamage(varweplow, varwephigh, varstr, vardef, varbonus) {
var _local1 = Math.floor(Math.random() * (varwephigh - varweplow)) + varweplow;
var _local3 = Math.floor(vardef * 0.1);
var _local2 = 0;
_local2 = varstr - _local3;
if (_local2 > 0) {
_local1 = _local1 + _local2;
}
_local1 = _local1 + varbonus;
return(_local1);
}
function GetDamageSkill(varmagicname, varweplow, varwephigh, varstr, vardef, varbonus) {
varweplow = varweplow + _global.magicdataArray[varmagicname].damagelow;
varwephigh = varwephigh + _global.magicdataArray[varmagicname].damagemax;
var _local2 = Math.floor(Math.random() * (varwephigh - varweplow)) + varweplow;
var _local5 = Math.floor(vardef * 0.1);
var _local3 = 0;
_local3 = varstr - _local5;
if (_local3 > 0) {
_local2 = _local2 + _local3;
}
_local2 = _local2 + varbonus;
_local2 = _local2 + _global.magicdataArray[varmagicname].bonus;
return(_local2);
}
function GetMagicDamage(varweplow, varwephigh, varmagic, vardef, varbonus) {
var _local1 = Math.floor(Math.random() * (varwephigh - varweplow)) + varweplow;
var _local3 = Math.floor(vardef * 0.1);
var _local2 = 0;
_local2 = varmagic - _local3;
if (_local2 > 0) {
_local1 = _local1 + _local2;
}
_local1 = _local1 + varbonus;
return(_local1);
}
function GetRangeDamage(varweplow, varwephigh, varrange, vardef, varbonus) {
var _local1 = Math.floor(Math.random() * (varwephigh - varweplow)) + varweplow;
var _local3 = Math.floor(vardef * 0.1);
var _local2 = 0;
_local2 = varrange - _local3;
if (_local2 > 0) {
_local1 = _local1 + _local2;
}
_local1 = _local1 + varbonus;
return(_local1);
}
function CastDefenseSpell(spellname) {
var _local5 = _global.magicdataArray[spellname].mana;
var _local4 = _global.magicdataArray[spellname].effectstat;
var _local3 = _global.magicdataArray[spellname].effectbonus;
if (_global.cmP >= _local5) {
_global.cmP = _global.cmP - _local5;
if (_local4 == "chP") {
if ((_global.chP + _local3) > _global.hP) {
_global.chP = _global.hP;
} else {
_global[_local4] = _global[_local4] + _local3;
}
} else {
_global[_local4] = _global[_local4] + _local3;
}
} else {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
_root.popup.popuptext.text = "Not enough mana to cast spell.";
}
return(_local3);
}
function CheckLevelUP(varcurlevel, varxp) {
if (varxp >= (varcurlevel * (varcurlevel * 1000))) {
_global.level = _global.level + 1;
_global.points = _global.points + 1;
_global.calchpmp();
if (varxp > ((varcurlevel + 1) * ((varcurlevel + 1) * 1000))) {
var _local5 = CheckLevelUP(varcurlevel + 1, varxp);
}
return(true);
}
return(false);
}
function GetXPNextLvl(varcurlevel, varxp) {
var _local1 = varcurlevel * (varcurlevel * 1000);
return(_local1);
}
function useequipitem(spritename, slotnumber) {
var _local3 = _global.itemdataArray[spritename].itype;
var _local7 = _global.itemdataArray[spritename].lvlrequired;
var _local6 = false;
if (_global.level >= _local7) {
_local6 = true;
}
if (_local6) {
if (_global.equipArray[_local3] == "none") {
_global.invArray[slotnumber] = "none";
_global.equipArray[_local3] = spritename;
} else if (_local3 == "ring") {
if (_global.equipArray.ring2 == "none") {
_global.invArray[slotnumber] = "none";
_global.equipArray.ring2 = spritename;
} else {
_global.defensearmor = _global.defensearmor - _global.itemdataArray[_global.equipArray[_local3]].defense;
if (_global.itemdataArray[_global.equipArray[_local3]].effectstat != "") {
_global[_global.itemdataArray[_global.equipArray[_local3]].effectstat] = _global[_global.itemdataArray[_global.equipArray[_local3]].effectstat] - _global.itemdataArray[_global.equipArray[_local3]].effectbonus;
}
_global.invArray[slotnumber] = _global.equipArray[_local3];
_global.equipArray[_local3] = spritename;
}
} else if (_local3 == "key") {
} else if (_local3 == "quest") {
} else {
_global.defensearmor = _global.defensearmor - _global.itemdataArray[_global.equipArray[_local3]].defense;
if (_global.itemdataArray[_global.equipArray[_local3]].effectstat != "") {
_global[_global.itemdataArray[_global.equipArray[_local3]].effectstat] = _global[_global.itemdataArray[_global.equipArray[_local3]].effectstat] - _global.itemdataArray[_global.equipArray[_local3]].effectbonus;
}
_global.invArray[slotnumber] = _global.equipArray[_local3];
_global.equipArray[_local3] = spritename;
}
_global.defensearmor = _global.defensearmor + _global.itemdataArray[spritename].defense;
if (_global.itemdataArray[spritename].effectstat != "") {
_global[_global.itemdataArray[spritename].effectstat] = _global[_global.itemdataArray[spritename].effectstat] + _global.itemdataArray[spritename].effectbonus;
}
_root.slotiteminfo.removeMovieClip();
_root.inventory["slot" + slotnumber].gotoAndStop("none");
_global.calchpmp();
_root.slotiteminfo.removeMovieClip();
} else {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:440, _y:210});
_root.popup.popuptext.text = "Your Level is not high enough to Equip.";
}
}
function unequipitem(spritename, slotname) {
var _local3 = 1;
while (_local3 <= 20) {
if (_global.invArray[_local3] == "none") {
_global.invArray[_local3] = spritename;
_local3 = 21;
}
_local3++;
}
_global.defensearmor = _global.defensearmor - _global.itemdataArray[spritename].defense;
if (_global.itemdataArray[spritename].effectstat != "") {
_global[_global.itemdataArray[spritename].effectstat] = _global[_global.itemdataArray[spritename].effectstat] - _global.itemdataArray[spritename].effectbonus;
}
_global.equipArray[slotname] = "none";
_root.slotiteminfo.removeMovieClip();
_global.calchpmp();
}
function sellitem(spritename, slotnumber) {
var _local5 = _global.itemdataArray[spritename].itype;
var _local3 = _global.itemdataArray[spritename].sell;
_global.invArray[slotnumber] = "none";
_global.gold = _global.gold + _local3;
_root.slotiteminfo.removeMovieClip();
}
function buyitem(spritename) {
var _local4 = _global.itemdataArray[spritename].buy;
if (_global.gold < _local4) {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:440, _y:210});
_root.popup.popuptext.text = "Not enough gold to purchase item.";
} else {
var _local3 = 1;
while (_local3 <= 20) {
if (_global.invArray[_local3] == "none") {
_global.invArray[_local3] = spritename;
_global.gold = _global.gold - _local4;
_root.slotiteminfo.removeMovieClip();
_local3 = 25;
}
_local3++;
}
if (_local3 < 25) {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:440, _y:210});
_root.popup.popuptext.text = "Not enough room in Inventory.";
}
}
}
function lootitem(spritename, slotnum) {
var _local3 = 1;
while (_local3 <= 20) {
if (_global.invArray[_local3] == "none") {
_global.invArray[_local3] = spritename;
_global.shopArray[slotnum] = "none";
_root.slotiteminfo.removeMovieClip();
_local3 = 25;
}
_local3++;
}
if (_local3 < 25) {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:440, _y:210});
_root.popup.popuptext.text = "Not enough room in Inventory.";
}
}
function CanBuySpell(magicname) {
var _local4 = _global.magicdataArray[magicname].buy;
var _local3 = _global.magicdataArray[magicname].cclass;
var _local2 = _local3.indexOf(_global.cclass);
if (_local2 != -1) {
return(true);
}
return(false);
}
function buymagic(magicname) {
var _local6 = _global.magicdataArray[magicname].buy;
var _local5 = false;
var _local7 = false;
if (_global.gold < _local6) {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
_root.popup.popuptext.text = "Not enough gold to purchase this spell.";
} else {
var _local3 = 1;
while (_local3 <= 24) {
if (_global.magicArray[_local3] == magicname) {
_local5 = false;
_local3 = 99;
} else {
_local5 = true;
}
_local3++;
}
if (_local5) {
_local3 = 1;
while (_local3 <= 24) {
if (_global.magicArray[_local3] == "none") {
_global.magicArray[_local3] = magicname;
_global.gold = _global.gold - _local6;
_local7 = true;
_local3 = 99;
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
_root.popup.popuptext.text = magicname + " Added to Magic Book.";
}
_local3++;
}
if (!_local7) {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
_root.popup.popuptext.text = "Not enough room in Magic Book.";
}
} else {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
_root.popup.popuptext.text = "You already have this spell.";
}
}
}
function removeinventoryitemsquest(theobject, amounttoremove) {
var _local3 = 0;
var _local2 = 0;
while (_local2 <= _global.invArray.length) {
if (_global.invArray[_local2] == theobject) {
if (_local3 < amounttoremove) {
_global.invArray[_local2] = "none";
_local3++;
}
}
_local2++;
}
}
}
Symbol 45 Button
on (release) {
_global.pausemove = false;
_root.equip.removeMovieClip();
}
Symbol 72 MovieClip [inv_slot] Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
if (_global.equipArray.weapon == "none") {
if (_global.equipArray.range == "none") {
gotoAndStop ("none");
} else {
gotoAndStop(_global.equipArray.range);
}
} else if (_global.equipArray.range == "none") {
gotoAndStop(_global.equipArray.weapon);
} else if (_global.isranging) {
gotoAndStop(_global.equipArray.range);
} else {
gotoAndStop(_global.equipArray.weapon);
}
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 6
stop();
Symbol 112 Button
on (release) {
var slotname = "weapon";
if (_global.equipArray[slotname] != "none") {
_global.GF.unequipitem(_global.equipArray[slotname], slotname);
_root.slotiteminfo.removeMovieClip();
_root.equip[slotname].gotoAndStop("none");
}
}
on (rollOver) {
var slotname = "weapon";
if (_global.equipArray[slotname] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.equipArray[slotname]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.equipArray[slotname]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.equipArray[slotname]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.equipArray[slotname]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.equipArray[slotname]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.equipArray[slotname]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 113 Button
on (release) {
var slotname = "armor";
if (_global.equipArray[slotname] != "none") {
_global.GF.unequipitem(_global.equipArray[slotname], slotname);
_root.slotiteminfo.removeMovieClip();
_root.equip[slotname].gotoAndStop("none");
}
}
on (rollOver) {
var slotname = "armor";
if (_global.equipArray[slotname] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.equipArray[slotname]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.equipArray[slotname]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.equipArray[slotname]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.equipArray[slotname]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.equipArray[slotname]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.equipArray[slotname]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 114 Button
on (release) {
var slotname = "helmet";
if (_global.equipArray[slotname] != "none") {
_global.GF.unequipitem(_global.equipArray[slotname], slotname);
_root.slotiteminfo.removeMovieClip();
_root.equip[slotname].gotoAndStop("none");
}
}
on (rollOver) {
var slotname = "helmet";
if (_global.equipArray[slotname] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.equipArray[slotname]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.equipArray[slotname]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.equipArray[slotname]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.equipArray[slotname]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.equipArray[slotname]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.equipArray[slotname]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 115 Button
on (release) {
var slotname = "shield";
if (_global.equipArray[slotname] != "none") {
_global.GF.unequipitem(_global.equipArray[slotname], slotname);
_root.slotiteminfo.removeMovieClip();
_root.equip[slotname].gotoAndStop("none");
}
}
on (rollOver) {
var slotname = "shield";
if (_global.equipArray[slotname] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.equipArray[slotname]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.equipArray[slotname]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.equipArray[slotname]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.equipArray[slotname]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.equipArray[slotname]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.equipArray[slotname]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 116 Button
on (release) {
var slotname = "boots";
if (_global.equipArray[slotname] != "none") {
_global.GF.unequipitem(_global.equipArray[slotname], slotname);
_root.slotiteminfo.removeMovieClip();
_root.equip[slotname].gotoAndStop("none");
}
}
on (rollOver) {
var slotname = "boots";
if (_global.equipArray[slotname] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.equipArray[slotname]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.equipArray[slotname]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.equipArray[slotname]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.equipArray[slotname]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.equipArray[slotname]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.equipArray[slotname]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 117 Button
on (release) {
var slotname = "ring";
if (_global.equipArray[slotname] != "none") {
_global.GF.unequipitem(_global.equipArray[slotname], slotname);
_root.slotiteminfo.removeMovieClip();
_root.equip[slotname].gotoAndStop("none");
}
}
on (rollOver) {
var slotname = "ring";
if (_global.equipArray[slotname] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.equipArray[slotname]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.equipArray[slotname]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.equipArray[slotname]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.equipArray[slotname]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.equipArray[slotname]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.equipArray[slotname]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 118 Button
on (release) {
var slotname = "ring2";
if (_global.equipArray[slotname] != "none") {
_global.GF.unequipitem(_global.equipArray[slotname], slotname);
_root.slotiteminfo.removeMovieClip();
_root.equip[slotname].gotoAndStop("none");
}
}
on (rollOver) {
var slotname = "ring2";
if (_global.equipArray[slotname] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.equipArray[slotname]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.equipArray[slotname]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.equipArray[slotname]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.equipArray[slotname]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.equipArray[slotname]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.equipArray[slotname]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 119 Button
on (release) {
var slotname = "range";
if (_global.equipArray[slotname] != "none") {
_global.GF.unequipitem(_global.equipArray[slotname], slotname);
_root.slotiteminfo.removeMovieClip();
_root.equip[slotname].gotoAndStop("none");
}
}
on (rollOver) {
var slotname = "range";
if (_global.equipArray[slotname] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.equipArray[slotname]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.equipArray[slotname]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.equipArray[slotname]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.equipArray[slotname]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.equipArray[slotname]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.equipArray[slotname]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 122 Button
on (release) {
if (_global.points > 0) {
_global.points = _global.points - 1;
_global.strength = _global.strength + 1;
_global.calchpmp();
}
}
Symbol 123 Button
on (release) {
if (_global.points > 0) {
_global.points = _global.points - 1;
_global.vitality = _global.vitality + 1;
_global.calchpmp();
}
}
Symbol 124 Button
on (release) {
if (_global.points > 0) {
_global.points = _global.points - 1;
_global.magic = _global.magic + 1;
_global.calchpmp();
}
}
Symbol 125 Button
on (release) {
if (_global.points > 0) {
_global.points = _global.points - 1;
_global.speed = _global.speed + 1;
_global.calchpmp();
}
}
Instance of Symbol 8 MovieClip in Symbol 126 MovieClip [equip] Frame 1
onClipEvent (enterFrame) {
_root.equip.eslot_weapon.gotoAndStop(_global.equipArray.weapon);
_root.equip.eslot_shield.gotoAndStop(_global.equipArray.shield);
_root.equip.eslot_boots.gotoAndStop(_global.equipArray.boots);
_root.equip.eslot_ring.gotoAndStop(_global.equipArray.ring);
_root.equip.eslot_ring2.gotoAndStop(_global.equipArray.ring2);
_root.equip.eslot_range.gotoAndStop(_global.equipArray.range);
_root.equip.eslot_armor.gotoAndStop(_global.equipArray.armor);
_root.equip.eslot_helmet.gotoAndStop(_global.equipArray.helmet);
_root.equip.currentdefense.text = _global.defense;
_root.equip.currentrange.text = _global.range;
_root.equip.currentattack.text = _global.itemdataArray[_global.equipArray.weapon].damagetext;
_root.equip.currentbonus.text = _global.itemdataArray[_global.equipArray.weapon].bonus;
_root.equip.currentstrength.text = _global.strength;
_root.equip.currentvitality.text = _global.vitality;
_root.equip.currentmagic.text = _global.magic;
_root.equip.currentspeed.text = _global.speed;
_root.equip.currentpoints.text = _global.points;
_root.equip.currentxp.text = _global.xp;
_root.equip.nextlevelxp.text = _global.GF.GetXPNextLvl(_global.level, _global.xp);
}
Symbol 130 MovieClip [damageanimation] Frame 11
stop();
Symbol 135 MovieClip [healanimation] Frame 11
stop();
Symbol 141 Button
on (release) {
_global.pausemove = false;
_root.shop.removeMovieClip();
_root.inventory.removeMovieClip();
}
Symbol 142 Button
on (release) {
_global.pausemove = false;
_root.shop.removeMovieClip();
_root.inventory.removeMovieClip();
}
Symbol 148 Button
on (release) {
var slotnum = 1;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 1;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 149 Button
on (release) {
var slotnum = 2;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 2;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 150 Button
on (release) {
var slotnum = 4;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 4;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 151 Button
on (release) {
var slotnum = 5;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 5;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 152 Button
on (release) {
var slotnum = 3;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 3;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 153 Button
on (release) {
var slotnum = 6;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 6;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 154 Button
on (release) {
var slotnum = 7;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 7;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 155 Button
on (release) {
var slotnum = 9;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 9;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 156 Button
on (release) {
var slotnum = 10;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 10;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 157 Button
on (release) {
var slotnum = 8;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 8;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 158 Button
on (release) {
var slotnum = 11;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 11;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 159 Button
on (release) {
var slotnum = 12;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 12;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 160 Button
on (release) {
var slotnum = 14;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 14;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 161 Button
on (release) {
var slotnum = 15;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 15;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 162 Button
on (release) {
var slotnum = 13;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 13;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 163 Button
on (release) {
var slotnum = 16;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 16;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 164 Button
on (release) {
var slotnum = 17;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 17;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 165 Button
on (release) {
var slotnum = 19;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 19;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 166 Button
on (release) {
var slotnum = 20;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 20;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 167 Button
on (release) {
var slotnum = 18;
if (_global.invArray[slotnum] != "none") {
if (_root.shop) {
_global.GF.sellitem(_global.invArray[slotnum], slotnum);
} else {
_global.GF.useequipitem(_global.invArray[slotnum], slotnum);
}
}
}
on (rollOver) {
var slotnum = 18;
if (_global.invArray[slotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.invArray[slotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.invArray[slotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.invArray[slotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.invArray[slotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.invArray[slotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.invArray[slotnum]].itype;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Instance of Symbol 145 MovieClip in Symbol 168 MovieClip [inventory] Frame 1
onClipEvent (enterFrame) {
var i = 1;
while (i <= 20) {
_root.inventory["slot" + i].gotoAndStop(invArray[i]);
i++;
}
_root.inventory.currentgold.text = _global.gold + "gp";
}
Symbol 175 Button
on (release) {
var levelname = _global.GF.loadgamedata(this._name);
if (levelname != undefined) {
_global.m_paradisetitle.stop();
_global.m_paradisetraining.start();
_root.gotoAndPlay(levelname);
} else {
trace("Failed to load level");
}
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 2
stop();
Symbol 188 Button
on (release) {
_root.gotoAndStop("start");
}
Instance of Symbol 182 MovieClip "save1" in Symbol 189 MovieClip [loadgamemenu] Frame 1
onClipEvent (load) {
if (_global.save1.data.level == undefined) {
this.gotoAndStop(2);
} else {
this.save_level.text = _global.save1.data.level;
this.save_cclass.text = _global.save1.data.cclass;
this.save_location.text = _global.save1.data.clocation;
this.gotoAndStop(1);
}
}
Instance of Symbol 182 MovieClip "save2" in Symbol 189 MovieClip [loadgamemenu] Frame 1
onClipEvent (load) {
if (_global.save2.data.level == undefined) {
this.gotoAndStop(2);
} else {
this.save_level.text = _global.save2.data.level;
this.save_cclass.text = _global.save2.data.cclass;
this.save_location.text = _global.save2.data.clocation;
this.gotoAndStop(1);
}
}
Instance of Symbol 182 MovieClip "save3" in Symbol 189 MovieClip [loadgamemenu] Frame 1
onClipEvent (load) {
if (_global.save3.data.level == undefined) {
this.gotoAndStop(2);
} else {
this.save_level.text = _global.save3.data.level;
this.save_cclass.text = _global.save3.data.cclass;
this.save_location.text = _global.save3.data.clocation;
this.gotoAndStop(1);
}
}
Symbol 193 Button
on (rollOver) {
var mlslotnum = 1;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicbook.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicbook.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicbook.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicbook.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicbook.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicbook.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 194 Button
on (rollOver) {
var mlslotnum = 2;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicbook.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicbook.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicbook.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicbook.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicbook.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicbook.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 195 Button
on (rollOver) {
var mlslotnum = 3;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicbook.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicbook.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicbook.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicbook.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicbook.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicbook.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 196 Button
on (rollOver) {
var mlslotnum = 4;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicbook.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicbook.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicbook.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicbook.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicbook.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicbook.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 197 Button
on (rollOver) {
var mlslotnum = 5;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicbook.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicbook.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicbook.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicbook.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicbook.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicbook.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 198 Button
on (rollOver) {
var mlslotnum = 6;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicbook.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicbook.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicbook.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicbook.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicbook.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicbook.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 199 Button
on (rollOver) {
var mlslotnum = 7;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicbook.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicbook.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicbook.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicbook.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicbook.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicbook.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 200 Button
on (rollOver) {
var mlslotnum = 8;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicbook.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicbook.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicbook.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicbook.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicbook.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicbook.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 205 Button
on (release) {
var my_sound = new Sound();
my_sound.attachSound("pageturn1");
my_sound.start();
_global.pagenumber = _global.pagenumber - 1;
}
Symbol 211 Button
on (release) {
var my_sound = new Sound();
my_sound.attachSound("pageturn1");
my_sound.start();
_global.pagenumber = _global.pagenumber + 1;
}
Symbol 213 Button
on (release) {
_global.pausemove = false;
var my_sound = new Sound();
my_sound.attachSound("bookclose2");
my_sound.start();
_root.magicbook.removeMovieClip();
}
Instance of Symbol 206 MovieClip in Symbol 245 MovieClip [magicbook] Frame 1
onClipEvent (enterFrame) {
if ((_global.pagenumber - 1) > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 212 MovieClip in Symbol 245 MovieClip [magicbook] Frame 1
onClipEvent (enterFrame) {
if ((_global.pagenumber + 1) <= _global.maxpages) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 217 MovieClip in Symbol 245 MovieClip [magicbook] Frame 1
onClipEvent (load) {
_global.pagenumber = 1;
_global.maxpages = 3;
_global.selectedmagic = "";
}
onClipEvent (enterFrame) {
_root.magicbook.pagenumber.text = _global.pagenumber;
i = 1;
while (i <= 8) {
mlslot = i;
if (_global.pagenumber > 1) {
mlslot = mlslot + (8 * (_global.pagenumber - 1));
}
if (_global.magicArray[mlslot] != "none") {
_root.magicbook["ml_name_slot" + i].text = _global.magicdataArray[_global.magicArray[mlslot]].desc;
_root.magicbook["ml_cost_slot" + i].text = _global.magicdataArray[_global.magicArray[mlslot]].mana;
} else {
_root.magicbook["ml_name_slot" + i].text = "";
_root.magicbook["ml_cost_slot" + i].text = "";
}
i++;
}
}
Symbol 247 Button
on (release) {
var mlslotnum = 1;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
if (_global.cmP >= _global.magicdataArray[mlmagicname].mana) {
_global.selectedmagic = mlmagicname;
_global.clickedbutton = true;
_root.man.gotoAndStop("magic");
_root.magiclistmc.removeMovieClip();
}
}
}
Symbol 248 Button
on (release) {
var mlslotnum = 2;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
if (_global.cmP >= _global.magicdataArray[mlmagicname].mana) {
_global.selectedmagic = mlmagicname;
_global.clickedbutton = true;
_root.man.gotoAndStop("magic");
_root.magiclistmc.removeMovieClip();
}
}
}
Symbol 249 Button
on (release) {
var mlslotnum = 3;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
if (_global.cmP >= _global.magicdataArray[mlmagicname].mana) {
_global.selectedmagic = mlmagicname;
_global.clickedbutton = true;
_root.man.gotoAndStop("magic");
_root.magiclistmc.removeMovieClip();
}
}
}
Symbol 250 Button
on (release) {
var mlslotnum = 4;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
if (_global.cmP >= _global.magicdataArray[mlmagicname].mana) {
_global.selectedmagic = mlmagicname;
_global.clickedbutton = true;
_root.man.gotoAndStop("magic");
_root.magiclistmc.removeMovieClip();
}
}
}
Symbol 251 Button
on (release) {
var mlslotnum = 5;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
if (_global.cmP >= _global.magicdataArray[mlmagicname].mana) {
_global.selectedmagic = mlmagicname;
_global.clickedbutton = true;
_root.man.gotoAndStop("magic");
_root.magiclistmc.removeMovieClip();
}
}
}
Symbol 252 Button
on (release) {
var mlslotnum = 6;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
if (_global.cmP >= _global.magicdataArray[mlmagicname].mana) {
_global.selectedmagic = mlmagicname;
_global.clickedbutton = true;
_root.man.gotoAndStop("magic");
_root.magiclistmc.removeMovieClip();
}
}
}
Symbol 253 Button
on (release) {
var mlslotnum = 7;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
if (_global.cmP >= _global.magicdataArray[mlmagicname].mana) {
_global.selectedmagic = mlmagicname;
_global.clickedbutton = true;
_root.man.gotoAndStop("magic");
_root.magiclistmc.removeMovieClip();
}
}
}
Symbol 254 Button
on (release) {
var mlslotnum = 8;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.magicArray[mlslotnum];
if (mlmagicname != "none") {
if (_global.cmP >= _global.magicdataArray[mlmagicname].mana) {
_global.selectedmagic = mlmagicname;
_global.clickedbutton = true;
_root.man.gotoAndStop("magic");
_root.magiclistmc.removeMovieClip();
}
}
}
Instance of Symbol 206 MovieClip in Symbol 274 MovieClip [magiclistmc] Frame 1
onClipEvent (enterFrame) {
if ((_global.pagenumber - 1) > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 212 MovieClip in Symbol 274 MovieClip [magiclistmc] Frame 1
onClipEvent (enterFrame) {
if ((_global.pagenumber + 1) <= _global.maxpages) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 257 MovieClip in Symbol 274 MovieClip [magiclistmc] Frame 1
onClipEvent (load) {
_global.pagenumber = 1;
_global.maxpages = 3;
_global.selectedmagic = "";
}
onClipEvent (enterFrame) {
_root.magiclistmc.pagenumber.text = _global.pagenumber;
i = 1;
while (i <= 8) {
mlslot = i;
if (_global.pagenumber > 1) {
mlslot = mlslot + (8 * (_global.pagenumber - 1));
}
if (_global.magicArray[mlslot] != "none") {
_root.magiclistmc["ml_name_slot" + i].text = _global.magicdataArray[_global.magicArray[mlslot]].desc;
_root.magiclistmc["ml_cost_slot" + i].text = _global.magicdataArray[_global.magicArray[mlslot]].mana;
} else {
_root.magiclistmc["ml_name_slot" + i].text = "";
_root.magiclistmc["ml_cost_slot" + i].text = "";
}
i++;
}
}
Symbol 276 Button
on (release) {
var mlslotnum = 1;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_global.GF.buymagic(mlmagicname);
}
}
on (rollOver) {
var mlslotnum = 1;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicshop.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicshop.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicshop.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicshop.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicshop.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicshop.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 277 Button
on (release) {
var mlslotnum = 2;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_global.GF.buymagic(mlmagicname);
}
}
on (rollOver) {
var mlslotnum = 2;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicshop.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicshop.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicshop.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicshop.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicshop.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicshop.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 278 Button
on (release) {
var mlslotnum = 3;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_global.GF.buymagic(mlmagicname);
}
}
on (rollOver) {
var mlslotnum = 3;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicshop.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicshop.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicshop.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicshop.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicshop.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicshop.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 279 Button
on (release) {
var mlslotnum = 4;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_global.GF.buymagic(mlmagicname);
}
}
on (rollOver) {
var mlslotnum = 4;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicshop.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicshop.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicshop.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicshop.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicshop.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicshop.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 280 Button
on (release) {
var mlslotnum = 5;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_global.GF.buymagic(mlmagicname);
}
}
on (rollOver) {
var mlslotnum = 5;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicshop.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicshop.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicshop.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicshop.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicshop.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicshop.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 281 Button
on (release) {
var mlslotnum = 6;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_global.GF.buymagic(mlmagicname);
}
}
on (rollOver) {
var mlslotnum = 6;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicshop.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicshop.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicshop.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicshop.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicshop.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicshop.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 282 Button
on (release) {
var mlslotnum = 7;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_global.GF.buymagic(mlmagicname);
}
}
on (rollOver) {
var mlslotnum = 7;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicshop.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicshop.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicshop.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicshop.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicshop.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicshop.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 283 Button
on (release) {
var mlslotnum = 8;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_global.GF.buymagic(mlmagicname);
}
}
on (rollOver) {
var mlslotnum = 8;
if (_global.pagenumber > 1) {
mlslotnum = mlslotnum + (8 * (_global.pagenumber - 1));
}
var mlmagicname = _global.shopArray[mlslotnum];
if (mlmagicname != "none") {
_root.magicshop.mb_spell_name.text = _global.magicdataArray[mlmagicname].desc;
_root.magicshop.mb_spell_lvlrequired.text = _global.magicdataArray[mlmagicname].lvlrequired;
_root.magicshop.mb_spell_element.text = _global.magicdataArray[mlmagicname].element;
_root.magicshop.mb_spell_damage.text = _global.magicdataArray[mlmagicname].damagetext;
_root.magicshop.mb_spell_damagebonus.text = _global.magicdataArray[mlmagicname].bonus;
_root.magicshop.mb_spell_effect.text = _global.magicdataArray[mlmagicname].effect;
}
}
Symbol 284 Button
on (release) {
var my_sound = new Sound();
my_sound.attachSound("bookclose2");
my_sound.start();
_global.pausemove = false;
_root.magicshop.removeMovieClip();
}
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
stop();
Instance of Symbol 206 MovieClip in Symbol 313 MovieClip [magicshop] Frame 1
onClipEvent (enterFrame) {
if ((_global.pagenumber - 1) > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 212 MovieClip in Symbol 313 MovieClip [magicshop] Frame 1
onClipEvent (enterFrame) {
if ((_global.pagenumber + 1) <= _global.maxpages) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 287 MovieClip in Symbol 313 MovieClip [magicshop] Frame 1
onClipEvent (load) {
_global.pagenumber = 1;
_global.maxpages = 3;
_global.selectedmagic = "";
}
onClipEvent (enterFrame) {
_root.magicshop.pagenumber.text = _global.pagenumber;
_root.magicshop.gold.text = _global.gold;
i = 1;
while (i <= 8) {
mlslot = i;
if (_global.pagenumber > 1) {
mlslot = mlslot + (8 * (_global.pagenumber - 1));
}
if (_global.shopArray[mlslot] != "none") {
_root.magicshop["ml_name_slot" + i].text = _global.magicdataArray[_global.shopArray[mlslot]].desc;
_root.magicshop["ml_cost_slot" + i].text = _global.magicdataArray[_global.shopArray[mlslot]].buy;
var canibuy = _global.GF.CanBuySpell(_global.shopArray[mlslot]);
if (canibuy) {
_root.magicshop["ms_line" + i].gotoAndStop(2);
_root.magicshop["ml_slot" + i].enabled = true;
} else {
_root.magicshop["ms_line" + i].gotoAndStop(1);
_root.magicshop["ml_slot" + i].enabled = false;
}
} else {
_root.magicshop["ml_name_slot" + i].text = "";
_root.magicshop["ml_cost_slot" + i].text = "";
_root.magicshop["ms_line" + i].gotoAndStop(1);
_root.magicshop["ml_slot" + i].enabled = false;
}
i++;
}
}
Symbol 321 MovieClip [musicnote_mc] Frame 1
stop();
Symbol 321 MovieClip [musicnote_mc] Frame 2
stop();
Symbol 326 Button
on (release) {
_root.attachMovie("savegamemenu", "savegamemenu", _root.getNextHighestDepth(), {_x:180, _y:60});
}
Symbol 329 Button
on (release) {
_global.pausemove = false;
_root.pausemenu.removeMovieClip();
}
Symbol 332 Button
on (release) {
_root.gotoAndStop("start");
_root.pausemenu.removeMovieClip();
}
Symbol 335 Button
on (release) {
_root.attachMovie("quality_mc", "quality_mc", _root.getNextHighestDepth(), {_x:180, _y:60});
}
Symbol 339 Button
on (release) {
_root.popup.removeMovieClip();
}
Symbol 344 Button
on (release) {
_quality = "BEST";
}
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 2
stop();
Symbol 349 Button
on (release) {
_quality = "HIGH";
}
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
stop();
Symbol 352 Button
on (release) {
_root.quality_mc.removeMovieClip();
}
Symbol 355 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 2
stop();
Symbol 360 Button
on (release) {
_quality = "LOW";
}
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 2
stop();
Instance of Symbol 346 MovieClip in Symbol 363 MovieClip [quality_mc] Frame 1
onClipEvent (enterFrame) {
if (_quality == "BEST") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 351 MovieClip in Symbol 363 MovieClip [quality_mc] Frame 1
onClipEvent (enterFrame) {
if (_quality == "HIGH") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 357 MovieClip in Symbol 363 MovieClip [quality_mc] Frame 1
onClipEvent (enterFrame) {
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 362 MovieClip in Symbol 363 MovieClip [quality_mc] Frame 1
onClipEvent (enterFrame) {
if (_quality == "LOW") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 364 Button
on (release) {
var savegood = _global.GF.savegamedata(this._name);
if (savegood) {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:400, _y:100});
_root.popup.popuptext.text = "Saved Game.";
_root.savegamemenu.removeMovieClip();
} else {
_root.popup.removeMovieClip();
_root.attachMovie("popup", "popup", _root.getNextHighestDepth(), {_x:400, _y:100});
_root.popup.popuptext.text = "Save Game Failed.";
}
}
Symbol 368 MovieClip Frame 1
stop();
Symbol 369 Button
on (release) {
_root.savegamemenu.removeMovieClip();
}
Instance of Symbol 368 MovieClip "save1" in Symbol 370 MovieClip [savegamemenu] Frame 1
onClipEvent (load) {
if (_global.save1.data.level == undefined) {
this.gotoAndStop(2);
} else {
this.save_level.text = _global.save1.data.level;
this.save_cclass.text = _global.save1.data.cclass;
this.save_location.text = _global.save1.data.clocation;
this.gotoAndStop(1);
}
}
Instance of Symbol 368 MovieClip "save2" in Symbol 370 MovieClip [savegamemenu] Frame 1
onClipEvent (load) {
if (_global.save2.data.level == undefined) {
this.gotoAndStop(2);
} else {
this.save_level.text = _global.save2.data.level;
this.save_cclass.text = _global.save2.data.cclass;
this.save_location.text = _global.save2.data.clocation;
this.gotoAndStop(1);
}
}
Instance of Symbol 368 MovieClip "save3" in Symbol 370 MovieClip [savegamemenu] Frame 1
onClipEvent (load) {
if (_global.save3.data.level == undefined) {
this.gotoAndStop(2);
} else {
this.save_level.text = _global.save3.data.level;
this.save_cclass.text = _global.save3.data.cclass;
this.save_location.text = _global.save3.data.clocation;
this.gotoAndStop(1);
}
}
Symbol 371 Button
on (release) {
_global.pausemove = false;
_root.inventory.removeMovieClip();
_root.shop.removeMovieClip();
}
Symbol 372 Button
on (release) {
_global.pausemove = false;
_root.inventory.removeMovieClip();
_root.shop.removeMovieClip();
}
Symbol 377 Button
on (release) {
var shopslotnum = 1;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 1;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 378 Button
on (release) {
var shopslotnum = 2;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 2;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 379 Button
on (release) {
var shopslotnum = 4;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 4;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 380 Button
on (release) {
var shopslotnum = 5;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 5;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 381 Button
on (release) {
var shopslotnum = 3;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 3;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 382 Button
on (release) {
var shopslotnum = 6;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 6;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 383 Button
on (release) {
var shopslotnum = 7;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 7;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 384 Button
on (release) {
var shopslotnum = 9;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 9;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 385 Button
on (release) {
var shopslotnum = 10;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 10;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 386 Button
on (release) {
var shopslotnum = 8;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 8;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 387 Button
on (release) {
var shopslotnum = 11;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 11;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 388 Button
on (release) {
var shopslotnum = 12;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 12;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 389 Button
on (release) {
var shopslotnum = 14;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 14;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 390 Button
on (release) {
var shopslotnum = 15;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 15;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 391 Button
on (release) {
var shopslotnum = 13;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 13;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 392 Button
on (release) {
var shopslotnum = 16;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 16;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 393 Button
on (release) {
var shopslotnum = 17;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 17;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 394 Button
on (release) {
var shopslotnum = 19;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 19;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 395 Button
on (release) {
var shopslotnum = 20;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 20;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 396 Button
on (release) {
var shopslotnum = 18;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.buyitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 18;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.shop.currentcost.text = _global.itemdataArray[_global.shopArray[shopslotnum]].buy;
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Instance of Symbol 374 MovieClip in Symbol 397 MovieClip [shop] Frame 1
onClipEvent (enterFrame) {
var i = 1;
while (i <= 20) {
_root.shop["slot" + i].gotoAndStop(shopArray[i]);
i++;
}
}
Symbol 425 MovieClip Frame 34
var damageamt = _global.GF.GetDamageSkill(_global.selectedmagic, _global.itemdataArray[_global.equipArray.weapon].damagelow, _global.itemdataArray[_global.equipArray.weapon].damagemax, _global.strength, _global.monster_defense, _global.itemdataArray[_global.equipArray.weapon].bonus);
_global.mon_chP = _global.mon_chP - damageamt;
_global.cmP = _global.cmP - _global.magicdataArray[_global.selectedmagic].mana;
_root.attachMovie("damageanimation", "damageanimation", _root.getNextHighestDepth(), {_x:450, _y:120});
_root.damageanimation.damagetext.text = damageamt;
Symbol 425 MovieClip Frame 47
_global.waiting = true;
_global.clickedbutton = false;
_root.damageanimation.removeMovieClip();
_root.man.gotoAndStop("stand");
Symbol 426 MovieClip Frame 5
var healamt = _global.GF.CastDefenseSpell(_global.selectedmagic);
_root.attachMovie("healanimation", "healanimation", _root.getNextHighestDepth(), {_x:223, _y:102});
_root.healanimation.damagetext.text = healamt;
Symbol 426 MovieClip Frame 16
stop();
_global.waiting = true;
_global.clickedbutton = false;
_global.selectedmagic = "";
_root.damageanimation.removeMovieClip();
_root.man.gotoAndStop("stand");
Symbol 432 MovieClip Frame 11
var damageamt = _global.GF.GetMagicDamage(_global.magicdataArray[_global.selectedmagic].damagelow, _global.magicdataArray[_global.selectedmagic].damagemax, _global.magic, _global.monster_magic_defense, _global.magicdataArray[_global.selectedmagic].bonus);
_global.mon_chP = _global.mon_chP - damageamt;
_global.cmP = _global.cmP - _global.magicdataArray[_global.selectedmagic].mana;
_root.attachMovie("damageanimation", "damageanimation", _root.getNextHighestDepth(), {_x:450, _y:120});
_root.damageanimation.damagetext.text = damageamt;
Symbol 432 MovieClip Frame 15
_global.waiting = true;
_global.clickedbutton = false;
_global.selectedmagic = "";
_root.damageanimation.removeMovieClip();
_root.man.gotoAndStop("stand");
Symbol 437 MovieClip Frame 11
var damageamt = _global.GF.GetMagicDamage(_global.magicdataArray[_global.selectedmagic].damagelow, _global.magicdataArray[_global.selectedmagic].damagemax, _global.magic, _global.monster_magic_defense, _global.magicdataArray[_global.selectedmagic].bonus);
_global.mon_chP = _global.mon_chP - damageamt;
_global.cmP = _global.cmP - _global.magicdataArray[_global.selectedmagic].mana;
_root.attachMovie("damageanimation", "damageanimation", _root.getNextHighestDepth(), {_x:450, _y:120});
_root.damageanimation.damagetext.text = damageamt;
Symbol 437 MovieClip Frame 15
_global.waiting = true;
_global.clickedbutton = false;
_global.selectedmagic = "";
_root.damageanimation.removeMovieClip();
_root.man.gotoAndStop("stand");
Symbol 438 MovieClip [man_magic_control] Frame 1
stop();
Symbol 438 MovieClip [man_magic_control] Frame 2
stop();
Symbol 438 MovieClip [man_magic_control] Frame 3
stop();
Symbol 438 MovieClip [man_magic_control] Frame 4
stop();
Symbol 443 Button
on (release) {
_global.yesorno = "yes";
}
Symbol 446 Button
on (release) {
_global.yesorno = "no";
}
Symbol 449 Button
on (release) {
var cancloseit = true;
i = 1;
while (i <= 4) {
if (_global.shopArray[i] != "none") {
_global.yesorno = "";
_root.attachMovie("yesorno", "yesorno", _root.getNextHighestDepth(), {_x:440, _y:210});
_root.yesorno.yesornotext.text = "Are you sure you want to leave this loot behind?";
_root.yesorno.onEnterFrame = function () {
if (_global.yesorno == "yes") {
_global.yesorno = "";
_global.pausemove = false;
_root.yesorno.removeMovieClip();
_root.inventory.removeMovieClip();
_root.loot.removeMovieClip();
} else if (_global.yesorno == "no") {
_global.yesorno = "";
_root.yesorno.removeMovieClip();
}
};
i = 99;
cancloseit = false;
}
i++;
}
if (cancloseit) {
_global.pausemove = false;
_root.inventory.removeMovieClip();
_root.loot.removeMovieClip();
}
}
Symbol 452 Button
on (release) {
var shopslotnum = 1;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.lootitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 1;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.loot.currentcost.text = "";
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 453 Button
on (release) {
var shopslotnum = 2;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.lootitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 2;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.loot.currentcost.text = "";
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 454 Button
on (release) {
var shopslotnum = 4;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.lootitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 4;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.loot.currentcost.text = "";
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Symbol 455 Button
on (release) {
var shopslotnum = 3;
if (_global.shopArray[shopslotnum] != "none") {
_global.GF.lootitem(_global.shopArray[shopslotnum], shopslotnum);
}
}
on (rollOver) {
var shopslotnum = 3;
if (_global.shopArray[shopslotnum] != "none") {
_root.attachMovie("slotiteminfo", "slotiteminfo", _root.getNextHighestDepth(), {_x:320, _y:100});
_root.slotiteminfo.slot_nametext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].desc;
_root.slotiteminfo.slot_damagetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].damagetext;
_root.slotiteminfo.slot_defensetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].defense;
_root.slotiteminfo.slot_effecttext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].effect;
_root.slotiteminfo.slot_bonustext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].bonus;
_root.slotiteminfo.slot_typetext.text = _global.itemdataArray[_global.shopArray[shopslotnum]].itype;
_root.loot.currentcost.text = "";
}
}
on (rollOut) {
_root.slotiteminfo.removeMovieClip();
}
Instance of Symbol 451 MovieClip in Symbol 456 MovieClip [loot] Frame 1
onClipEvent (enterFrame) {
var i = 1;
while (i <= 4) {
_root.loot["slot" + i].gotoAndStop(shopArray[i]);
i++;
}
}
Symbol 459 Button
on (release) {
_global.pausemove = false;
_global.uppressed = false;
_root.chat.removeMovieClip();
}
Symbol 481 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 485 Button
on (release) {
_root.gotoAndStop("character");
}
Symbol 507 Button
on (release) {
_root.gotoAndStop("loadgame");
}
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 2
stop();
Symbol 510 Button
on (release) {
if (_global.muteall) {
_global.muteall = false;
global_sound.setVolume(100);
_global.m_paradisetitle.setVolume(100);
_global.m_paradisetraining.setVolume(100);
_global.m_the_great_collision.setVolume(100);
_root.cancelout.removeMovieClip();
} else {
_global.muteall = true;
global_sound.setVolume(0);
_global.m_paradisetitle.setVolume(0);
_global.m_paradisetraining.setVolume(0);
_global.m_the_great_collision.setVolume(0);
_root.attachMovie("cancelout", "cancelout", this.getNextHighestDepth(), {_x:660, _y:260});
}
}
Symbol 515 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 534 Button
on (release) {
if (_global.points > 0) {
gotoAndStop ("pointsleft");
} else {
_global.m_paradisetitle.stop();
_root.gotoAndStop("intro");
}
}
Symbol 537 Button
on (release) {
_global.cclass = "warrior";
selectclass();
}
Symbol 539 Button
on (release) {
_global.cclass = "rogue";
selectclass();
}
Symbol 541 Button
on (release) {
_global.cclass = "mage";
selectclass();
}
Symbol 543 Button
on (release) {
_global.cclass = "priest";
selectclass();
}
Symbol 545 Button
on (release) {
_global.cclass = "warlock";
selectclass();
}
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 3
stop();
Symbol 579 MovieClip Frame 4
stop();
Symbol 579 MovieClip Frame 5
stop();
Symbol 579 MovieClip Frame 6
stop();
Symbol 582 Button
on (release) {
if (_global.points > 0) {
_global.strength++;
_global.points--;
}
_global.calchpmp();
}
Symbol 585 Button
on (release) {
if (_global.strength > 1) {
_global.strength--;
_global.points++;
}
_global.calchpmp();
}
Symbol 586 Button
on (release) {
if (_global.points > 0) {
_global.vitality++;
_global.points--;
}
_global.calchpmp();
}
Symbol 587 Button
on (release) {
if (_global.vitality > 1) {
_global.vitality--;
_global.points++;
}
_global.calchpmp();
}
Symbol 588 Button
on (release) {
if (_global.points > 0) {
_global.magic++;
_global.points--;
}
_global.calchpmp();
}
Symbol 589 Button
on (release) {
if (_global.magic > 1) {
_global.magic--;
_global.points++;
}
_global.calchpmp();
}
Symbol 590 Button
on (release) {
if (_global.points > 0) {
_global.speed++;
_global.points--;
}
_global.calchpmp();
}
Symbol 591 Button
on (release) {
if (_global.speed > 1) {
_global.speed--;
_global.points++;
}
_global.calchpmp();
}
Symbol 599 Button
on (release) {
gotoAndStop ("create");
}
Symbol 604 Button
on (release) {
_root.gotoAndStop("intro");
}
Symbol 605 MovieClip Frame 1
function selectclass() {
_global.points = 5;
faces.gotoAndStop(_global.cclass);
switch (_global.cclass) {
case "warrior" :
classtext = "Warrior";
classdesc = "Born with sword in hand warriors are trained from day one to fight. Having little knowledge of Magical Arts they are limited to Melee skills/spells.";
_global.strength = 10;
_global.vitality = 8;
_global.magic = 2;
_global.speed = 5;
_global.magicArray[1] = "crush";
_global.equipArray.weapon = "ssword";
_global.equipArray.range = "none";
arrow._y = 47;
break;
case "rogue" :
classtext = "Rogue";
classdesc = "A Rogue is a stealthy fighter hiding in the shadows. What he lacks in strength and intelligence he makes up for with speed and stealth. Can kill his enemies with a single precise blow.";
_global.strength = 8;
_global.vitality = 6;
_global.magic = 2;
_global.speed = 10;
_global.magicArray[1] = "sneak";
_global.equipArray.weapon = "none";
_global.equipArray.range = "dagger";
arrow._y = 80;
break;
case "mage" :
classtext = "Mage";
classdesc = "Spending his life reading books and practicing magic, a mage has many powerful spells at his disposal. They are weak in melee combat.";
_global.strength = 3;
_global.vitality = 6;
_global.magic = 10;
_global.speed = 6;
_global.magicArray[1] = "flameball1";
_global.equipArray.weapon = "staff";
_global.equipArray.range = "none";
arrow._y = 112;
break;
case "priest" :
classtext = "Priest";
classdesc = "Raised in a Monestary, he is protected from harm by the blessings of the gods. Priests make decent fighters that can withstand a lot of damage.";
_global.strength = 6;
_global.vitality = 10;
_global.magic = 6;
_global.speed = 3;
_global.magicArray[1] = "heal1";
_global.equipArray.weapon = "ssword";
_global.equipArray.range = "none";
arrow._y = 145;
break;
case "warlock" :
classtext = "Warlock";
classdesc = "Warlocks spend half their day training to fight, then spent the night studying books and practicing spells. He may not learn the best of spells, but he makes up for it in combat.";
_global.strength = 7;
_global.vitality = 6;
_global.magic = 7;
_global.speed = 5;
_global.magicArray[1] = "flameball1";
_global.equipArray.weapon = "ssword";
_global.equipArray.range = "none";
arrow._y = 177;
}
_global.calchpmp();
}
stop();
_global.level = 1;
_global.xp = 0;
_global.strength = 10;
_global.vitality = 8;
_global.magic = 2;
_global.speed = 5;
_global.cclass = "warrior";
_global.points = 5;
_global.defense = 0;
_global.range = 0;
_global.calchpmp();
selectclass();
Instance of Symbol 562 MovieClip in Symbol 605 MovieClip Frame 1
onClipEvent (enterFrame) {
str = _global.strength;
vit = _global.vitality;
mag = _global.magic;
spd = _global.speed;
lvl = _global.level;
hP = _global.hP;
mP = _global.mP;
points = _global.points;
}
Symbol 605 MovieClip Frame 10
stop();
Symbol 629 MovieClip Frame 11
var edamageamt = GF.GetDamage(_global.monster_damage_low, _global.monster_damage_high, _global.monster_strength, _global.defense, 0);
_global.chP = _global.chP - edamageamt;
_root.attachMovie("damageanimation", "damageanimation2", _root.getNextHighestDepth(), {_x:210, _y:120});
_root.damageanimation2.damagetext.text = edamageamt;
Symbol 629 MovieClip Frame 23
_global.waiting = false;
_root.damageanimation2.removeMovieClip();
_root.monsters.gotoAndStop(_global.monstertype);
Symbol 630 MovieClip Frame 7
stop();
Symbol 682 MovieClip Frame 28
var edamageamt = GF.GetDamage(_global.monster_damage_low, _global.monster_damage_high, _global.monster_strength, _global.defense, 0);
_global.chP = _global.chP - edamageamt;
_root.attachMovie("damageanimation", "damageanimation2", _root.getNextHighestDepth(), {_x:210, _y:120});
_root.damageanimation2.damagetext.text = edamageamt;
Symbol 682 MovieClip Frame 43
_global.waiting = false;
_root.damageanimation2.removeMovieClip();
_root.monsters.gotoAndStop(_global.monstertype);
Symbol 695 MovieClip Frame 6
stop();
Symbol 696 MovieClip Frame 1
stop();
Symbol 696 MovieClip Frame 2
stop();
Symbol 696 MovieClip Frame 3
stop();
Symbol 696 MovieClip Frame 4
stop();
Symbol 696 MovieClip Frame 9
stop();
Symbol 696 MovieClip Frame 10
stop();
Symbol 696 MovieClip Frame 11
stop();
Symbol 702 Button
on (release) {
if (_root.magiclistmc) {
_root.magiclistmc.removeMovieClip();
} else {
_root.attachMovie("magiclistmc", "magiclistmc", _root.getNextHighestDepth(), {_x:140, _y:70});
}
}
Symbol 707 Button
on (release) {
if (_root.magiclistmc) {
_root.magiclistmc.removeMovieClip();
}
_root.man.gotoAndStop("attack");
_global.clickedbutton = true;
this.gotoAndStop(1);
}
Symbol 712 Button
on (release) {
if (_root.magiclistmc) {
_root.magiclistmc.removeMovieClip();
}
_global.save_x = "20";
_global.m_paradisetraining.start();
_global.m_the_great_collision.stop();
_root.gotoAndStop(_global.currentlevel);
}
Symbol 717 Button
on (release) {
if (_root.magiclistmc) {
_root.magiclistmc.removeMovieClip();
}
_root.man.gotoAndStop("range_" + _global.equipArray.range);
_global.clickedbutton = true;
this.gotoAndStop(1);
}
Symbol 727 MovieClip Frame 22
var damageamt = _global.GF.GetDamage(_global.itemdataArray[_global.equipArray.weapon].damagelow, _global.itemdataArray[_global.equipArray.weapon].damagemax, _global.strength, _global.monster_defense, _global.itemdataArray[_global.equipArray.weapon].bonus);
_global.mon_chP = _global.mon_chP - damageamt;
_root.attachMovie("damageanimation", "damageanimation", _root.getNextHighestDepth(), {_x:450, _y:120});
_root.damageanimation.damagetext.text = damageamt;
Symbol 727 MovieClip Frame 37
_global.waiting = true;
_global.clickedbutton = false;
_root.damageanimation.removeMovieClip();
_root.man.gotoAndStop("stand");
Symbol 728 MovieClip Frame 11
var damageamt = _global.GF.GetRangeDamage(_global.itemdataArray[_global.equipArray.range].damagelow, _global.itemdataArray[_global.equipArray.range].damagemax, _global.range, _global.monster_defense, _global.itemdataArray[_global.equipArray.range].bonus);
_global.mon_chP = _global.mon_chP - damageamt;
_root.attachMovie("damageanimation", "damageanimation", _root.getNextHighestDepth(), {_x:450, _y:120});
_root.damageanimation.damagetext.text = damageamt;
Symbol 728 MovieClip Frame 14
_global.waiting = true;
_global.clickedbutton = false;
_root.damageanimation.removeMovieClip();
_root.man.gotoAndStop("stand");
Symbol 737 MovieClip Frame 1
Instance of Symbol 87 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
_global.isranging = true;
this.gotoAndStop(1);
}
Symbol 737 MovieClip Frame 21
var damageamt = _global.GF.GetRangeDamage(_global.itemdataArray[_global.equipArray.range].damagelow, _global.itemdataArray[_global.equipArray.range].damagemax, _global.range, _global.monster_defense, _global.itemdataArray[_global.equipArray.range].bonus);
_global.mon_chP = _global.mon_chP - damageamt;
_root.attachMovie("damageanimation", "damageanimation", _root.getNextHighestDepth(), {_x:450, _y:120});
_root.damageanimation.damagetext.text = damageamt;
Symbol 737 MovieClip Frame 26
_global.waiting = true;
_global.isranging = false;
_global.clickedbutton = false;
_root.damageanimation.removeMovieClip();
_root.man.gotoAndStop("stand");
Instance of Symbol 87 MovieClip in Symbol 737 MovieClip Frame 26
onClipEvent (load) {
_global.isranging = false;
this.gotoAndStop(1);
}
Symbol 738 MovieClip Frame 1
stop();
Symbol 738 MovieClip Frame 2
stop();
Symbol 738 MovieClip Frame 3
stop();
Symbol 738 MovieClip Frame 4
stop();
Symbol 738 MovieClip Frame 5
stop();
Symbol 738 MovieClip Frame 6
stop();
Instance of Symbol 438 MovieClip [man_magic_control] in Symbol 738 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_global.magicdataArray[_global.selectedmagic].spelltype);
}
Symbol 738 MovieClip Frame 7
stop();
Symbol 738 MovieClip Frame 8
stop();
Symbol 742 MovieClip Frame 1
stop();
Instance of Symbol 579 MovieClip "faces" in Symbol 749 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_global.cclass);
}
Instance of Symbol 742 MovieClip "health" in Symbol 749 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.chP > 0) {
this._xscale = 200 - (2 * (100 * ((_global.hP - _global.chP) / _global.hP)));
_root.healthbar.hptext.text = (("HP: " + _global.chP) + " / ") + _global.hP;
} else {
this._xscale = 0;
_root.healthbar.hptext.text = "HP: 0 / " + _global.hP;
}
}
Instance of Symbol 744 MovieClip "magic" in Symbol 749 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.cmP > 0) {
this._xscale = 200 - (2 * (100 * ((_global.mP - _global.cmP) / _global.mP)));
_root.healthbar.mptext.text = (("MP: " + _global.cmP) + " / ") + _global.mP;
} else {
this._xscale = 0;
_root.healthbar.mptext.text = "MP: 0 / " + _global.mP;
}
}
Symbol 755 MovieClip Frame 1
stop();
Instance of Symbol 754 MovieClip in Symbol 755 MovieClip Frame 1
onClipEvent (enterFrame) {
showlevel = _global.level;
}
Symbol 756 MovieClip Frame 1
stop();
Instance of Symbol 754 MovieClip in Symbol 756 MovieClip Frame 1
onClipEvent (enterFrame) {
showlevel = _global.monsterlevel;
}
Symbol 760 Button
on (release) {
_global.m_paradisetraining.start();
_global.m_the_great_collision.stop();
_root.loot.removeMovieClip();
_root.gotoAndStop(_global.currentlevel);
}
Symbol 776 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 782 MovieClip Frame 650
_global.m_paradisetraining.stop();
_global.m_paradisetraining.start();
_root.gotoAndStop("room1");
Symbol 784 Button
on (release) {
_global.m_paradisetraining.stop();
_global.m_paradisetraining.start();
gotoAndStop ("room1");
}
Symbol 788 MovieClip Frame 1
stop();
Symbol 788 MovieClip Frame 2
stop();
Symbol 795 Button
on (release) {
if (_root.inventory) {
_global.pausemove = false;
_root.inventory.removeMovieClip();
} else {
_root.attachMovie("inventory", "inventory", _root.getNextHighestDepth(), {_x:450, _y:40});
_global.pausemove = true;
}
}
Symbol 798 Button
on (release) {
if (_root.equip) {
_global.pausemove = false;
_root.equip.removeMovieClip();
} else {
_root.attachMovie("equip", "equip", _root.getNextHighestDepth(), {_x:180, _y:60});
_global.pausemove = true;
}
}
Symbol 802 Button
on (release) {
if (_root.pausemenu) {
_global.pausemove = false;
_root.pausemenu.removeMovieClip();
} else {
_global.pausemove = true;
_root.attachMovie("pausemenu", "pausemenu", _root.getNextHighestDepth(), {_x:0, _y:0});
}
}
Symbol 807 Button
on (release) {
if (_root.magicbook) {
_global.pausemove = false;
_root.magicbook.removeMovieClip();
} else {
_root.attachMovie("magicbook", "magicbook", _root.getNextHighestDepth(), {_x:180, _y:60});
_global.pausemove = true;
}
}